livekit-server-sdk 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
22
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
4
  };
@@ -25,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
6
  exports.AutoTrackEgress = exports.SegmentsInfo = exports.FileInfo = exports.StreamInfo = exports.StreamInfoList = exports.EgressInfo = exports.StopEgressRequest = exports.ListEgressResponse = exports.ListEgressRequest = exports.UpdateStreamRequest = exports.UpdateLayoutRequest = exports.EncodingOptions = exports.StreamOutput = exports.AliOSSUpload = exports.AzureBlobUpload = exports.GCPUpload = exports.S3Upload_MetadataEntry = exports.S3Upload = exports.DirectFileOutput = exports.SegmentedFileOutput = exports.EncodedFileOutput = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.WebEgressRequest = exports.RoomCompositeEgressRequest = exports.streamInfo_StatusToJSON = exports.streamInfo_StatusFromJSON = exports.StreamInfo_Status = exports.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = exports.segmentedFileSuffixToJSON = exports.segmentedFileSuffixFromJSON = exports.SegmentedFileSuffix = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = exports.protobufPackage = void 0;
26
7
  /* eslint-disable */
27
8
  const long_1 = __importDefault(require("long"));
28
- const _m0 = __importStar(require("protobufjs/minimal"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
29
10
  const livekit_models_1 = require("./livekit_models");
30
- exports.protobufPackage = 'livekit';
11
+ exports.protobufPackage = "livekit";
31
12
  var EncodedFileType;
32
13
  (function (EncodedFileType) {
33
14
  /** DEFAULT_FILETYPE - file type chosen based on codecs */
@@ -39,16 +20,16 @@ var EncodedFileType;
39
20
  function encodedFileTypeFromJSON(object) {
40
21
  switch (object) {
41
22
  case 0:
42
- case 'DEFAULT_FILETYPE':
23
+ case "DEFAULT_FILETYPE":
43
24
  return EncodedFileType.DEFAULT_FILETYPE;
44
25
  case 1:
45
- case 'MP4':
26
+ case "MP4":
46
27
  return EncodedFileType.MP4;
47
28
  case 2:
48
- case 'OGG':
29
+ case "OGG":
49
30
  return EncodedFileType.OGG;
50
31
  case -1:
51
- case 'UNRECOGNIZED':
32
+ case "UNRECOGNIZED":
52
33
  default:
53
34
  return EncodedFileType.UNRECOGNIZED;
54
35
  }
@@ -57,13 +38,14 @@ exports.encodedFileTypeFromJSON = encodedFileTypeFromJSON;
57
38
  function encodedFileTypeToJSON(object) {
58
39
  switch (object) {
59
40
  case EncodedFileType.DEFAULT_FILETYPE:
60
- return 'DEFAULT_FILETYPE';
41
+ return "DEFAULT_FILETYPE";
61
42
  case EncodedFileType.MP4:
62
- return 'MP4';
43
+ return "MP4";
63
44
  case EncodedFileType.OGG:
64
- return 'OGG';
45
+ return "OGG";
46
+ case EncodedFileType.UNRECOGNIZED:
65
47
  default:
66
- return 'UNKNOWN';
48
+ return "UNRECOGNIZED";
67
49
  }
68
50
  }
69
51
  exports.encodedFileTypeToJSON = encodedFileTypeToJSON;
@@ -76,13 +58,13 @@ var SegmentedFileProtocol;
76
58
  function segmentedFileProtocolFromJSON(object) {
77
59
  switch (object) {
78
60
  case 0:
79
- case 'DEFAULT_SEGMENTED_FILE_PROTOCOL':
61
+ case "DEFAULT_SEGMENTED_FILE_PROTOCOL":
80
62
  return SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
81
63
  case 1:
82
- case 'HLS_PROTOCOL':
64
+ case "HLS_PROTOCOL":
83
65
  return SegmentedFileProtocol.HLS_PROTOCOL;
84
66
  case -1:
85
- case 'UNRECOGNIZED':
67
+ case "UNRECOGNIZED":
86
68
  default:
87
69
  return SegmentedFileProtocol.UNRECOGNIZED;
88
70
  }
@@ -91,11 +73,12 @@ exports.segmentedFileProtocolFromJSON = segmentedFileProtocolFromJSON;
91
73
  function segmentedFileProtocolToJSON(object) {
92
74
  switch (object) {
93
75
  case SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL:
94
- return 'DEFAULT_SEGMENTED_FILE_PROTOCOL';
76
+ return "DEFAULT_SEGMENTED_FILE_PROTOCOL";
95
77
  case SegmentedFileProtocol.HLS_PROTOCOL:
96
- return 'HLS_PROTOCOL';
78
+ return "HLS_PROTOCOL";
79
+ case SegmentedFileProtocol.UNRECOGNIZED:
97
80
  default:
98
- return 'UNKNOWN';
81
+ return "UNRECOGNIZED";
99
82
  }
100
83
  }
101
84
  exports.segmentedFileProtocolToJSON = segmentedFileProtocolToJSON;
@@ -108,13 +91,13 @@ var SegmentedFileSuffix;
108
91
  function segmentedFileSuffixFromJSON(object) {
109
92
  switch (object) {
110
93
  case 0:
111
- case 'INDEX':
94
+ case "INDEX":
112
95
  return SegmentedFileSuffix.INDEX;
113
96
  case 1:
114
- case 'TIMESTAMP':
97
+ case "TIMESTAMP":
115
98
  return SegmentedFileSuffix.TIMESTAMP;
116
99
  case -1:
117
- case 'UNRECOGNIZED':
100
+ case "UNRECOGNIZED":
118
101
  default:
119
102
  return SegmentedFileSuffix.UNRECOGNIZED;
120
103
  }
@@ -123,11 +106,12 @@ exports.segmentedFileSuffixFromJSON = segmentedFileSuffixFromJSON;
123
106
  function segmentedFileSuffixToJSON(object) {
124
107
  switch (object) {
125
108
  case SegmentedFileSuffix.INDEX:
126
- return 'INDEX';
109
+ return "INDEX";
127
110
  case SegmentedFileSuffix.TIMESTAMP:
128
- return 'TIMESTAMP';
111
+ return "TIMESTAMP";
112
+ case SegmentedFileSuffix.UNRECOGNIZED:
129
113
  default:
130
- return 'UNKNOWN';
114
+ return "UNRECOGNIZED";
131
115
  }
132
116
  }
133
117
  exports.segmentedFileSuffixToJSON = segmentedFileSuffixToJSON;
@@ -141,13 +125,13 @@ var StreamProtocol;
141
125
  function streamProtocolFromJSON(object) {
142
126
  switch (object) {
143
127
  case 0:
144
- case 'DEFAULT_PROTOCOL':
128
+ case "DEFAULT_PROTOCOL":
145
129
  return StreamProtocol.DEFAULT_PROTOCOL;
146
130
  case 1:
147
- case 'RTMP':
131
+ case "RTMP":
148
132
  return StreamProtocol.RTMP;
149
133
  case -1:
150
- case 'UNRECOGNIZED':
134
+ case "UNRECOGNIZED":
151
135
  default:
152
136
  return StreamProtocol.UNRECOGNIZED;
153
137
  }
@@ -156,11 +140,12 @@ exports.streamProtocolFromJSON = streamProtocolFromJSON;
156
140
  function streamProtocolToJSON(object) {
157
141
  switch (object) {
158
142
  case StreamProtocol.DEFAULT_PROTOCOL:
159
- return 'DEFAULT_PROTOCOL';
143
+ return "DEFAULT_PROTOCOL";
160
144
  case StreamProtocol.RTMP:
161
- return 'RTMP';
145
+ return "RTMP";
146
+ case StreamProtocol.UNRECOGNIZED:
162
147
  default:
163
- return 'UNKNOWN';
148
+ return "UNRECOGNIZED";
164
149
  }
165
150
  }
166
151
  exports.streamProtocolToJSON = streamProtocolToJSON;
@@ -187,31 +172,31 @@ var EncodingOptionsPreset;
187
172
  function encodingOptionsPresetFromJSON(object) {
188
173
  switch (object) {
189
174
  case 0:
190
- case 'H264_720P_30':
175
+ case "H264_720P_30":
191
176
  return EncodingOptionsPreset.H264_720P_30;
192
177
  case 1:
193
- case 'H264_720P_60':
178
+ case "H264_720P_60":
194
179
  return EncodingOptionsPreset.H264_720P_60;
195
180
  case 2:
196
- case 'H264_1080P_30':
181
+ case "H264_1080P_30":
197
182
  return EncodingOptionsPreset.H264_1080P_30;
198
183
  case 3:
199
- case 'H264_1080P_60':
184
+ case "H264_1080P_60":
200
185
  return EncodingOptionsPreset.H264_1080P_60;
201
186
  case 4:
202
- case 'PORTRAIT_H264_720P_30':
187
+ case "PORTRAIT_H264_720P_30":
203
188
  return EncodingOptionsPreset.PORTRAIT_H264_720P_30;
204
189
  case 5:
205
- case 'PORTRAIT_H264_720P_60':
190
+ case "PORTRAIT_H264_720P_60":
206
191
  return EncodingOptionsPreset.PORTRAIT_H264_720P_60;
207
192
  case 6:
208
- case 'PORTRAIT_H264_1080P_30':
193
+ case "PORTRAIT_H264_1080P_30":
209
194
  return EncodingOptionsPreset.PORTRAIT_H264_1080P_30;
210
195
  case 7:
211
- case 'PORTRAIT_H264_1080P_60':
196
+ case "PORTRAIT_H264_1080P_60":
212
197
  return EncodingOptionsPreset.PORTRAIT_H264_1080P_60;
213
198
  case -1:
214
- case 'UNRECOGNIZED':
199
+ case "UNRECOGNIZED":
215
200
  default:
216
201
  return EncodingOptionsPreset.UNRECOGNIZED;
217
202
  }
@@ -220,23 +205,24 @@ exports.encodingOptionsPresetFromJSON = encodingOptionsPresetFromJSON;
220
205
  function encodingOptionsPresetToJSON(object) {
221
206
  switch (object) {
222
207
  case EncodingOptionsPreset.H264_720P_30:
223
- return 'H264_720P_30';
208
+ return "H264_720P_30";
224
209
  case EncodingOptionsPreset.H264_720P_60:
225
- return 'H264_720P_60';
210
+ return "H264_720P_60";
226
211
  case EncodingOptionsPreset.H264_1080P_30:
227
- return 'H264_1080P_30';
212
+ return "H264_1080P_30";
228
213
  case EncodingOptionsPreset.H264_1080P_60:
229
- return 'H264_1080P_60';
214
+ return "H264_1080P_60";
230
215
  case EncodingOptionsPreset.PORTRAIT_H264_720P_30:
231
- return 'PORTRAIT_H264_720P_30';
216
+ return "PORTRAIT_H264_720P_30";
232
217
  case EncodingOptionsPreset.PORTRAIT_H264_720P_60:
233
- return 'PORTRAIT_H264_720P_60';
218
+ return "PORTRAIT_H264_720P_60";
234
219
  case EncodingOptionsPreset.PORTRAIT_H264_1080P_30:
235
- return 'PORTRAIT_H264_1080P_30';
220
+ return "PORTRAIT_H264_1080P_30";
236
221
  case EncodingOptionsPreset.PORTRAIT_H264_1080P_60:
237
- return 'PORTRAIT_H264_1080P_60';
222
+ return "PORTRAIT_H264_1080P_60";
223
+ case EncodingOptionsPreset.UNRECOGNIZED:
238
224
  default:
239
- return 'UNKNOWN';
225
+ return "UNRECOGNIZED";
240
226
  }
241
227
  }
242
228
  exports.encodingOptionsPresetToJSON = encodingOptionsPresetToJSON;
@@ -254,28 +240,28 @@ var EgressStatus;
254
240
  function egressStatusFromJSON(object) {
255
241
  switch (object) {
256
242
  case 0:
257
- case 'EGRESS_STARTING':
243
+ case "EGRESS_STARTING":
258
244
  return EgressStatus.EGRESS_STARTING;
259
245
  case 1:
260
- case 'EGRESS_ACTIVE':
246
+ case "EGRESS_ACTIVE":
261
247
  return EgressStatus.EGRESS_ACTIVE;
262
248
  case 2:
263
- case 'EGRESS_ENDING':
249
+ case "EGRESS_ENDING":
264
250
  return EgressStatus.EGRESS_ENDING;
265
251
  case 3:
266
- case 'EGRESS_COMPLETE':
252
+ case "EGRESS_COMPLETE":
267
253
  return EgressStatus.EGRESS_COMPLETE;
268
254
  case 4:
269
- case 'EGRESS_FAILED':
255
+ case "EGRESS_FAILED":
270
256
  return EgressStatus.EGRESS_FAILED;
271
257
  case 5:
272
- case 'EGRESS_ABORTED':
258
+ case "EGRESS_ABORTED":
273
259
  return EgressStatus.EGRESS_ABORTED;
274
260
  case 6:
275
- case 'EGRESS_LIMIT_REACHED':
261
+ case "EGRESS_LIMIT_REACHED":
276
262
  return EgressStatus.EGRESS_LIMIT_REACHED;
277
263
  case -1:
278
- case 'UNRECOGNIZED':
264
+ case "UNRECOGNIZED":
279
265
  default:
280
266
  return EgressStatus.UNRECOGNIZED;
281
267
  }
@@ -284,21 +270,22 @@ exports.egressStatusFromJSON = egressStatusFromJSON;
284
270
  function egressStatusToJSON(object) {
285
271
  switch (object) {
286
272
  case EgressStatus.EGRESS_STARTING:
287
- return 'EGRESS_STARTING';
273
+ return "EGRESS_STARTING";
288
274
  case EgressStatus.EGRESS_ACTIVE:
289
- return 'EGRESS_ACTIVE';
275
+ return "EGRESS_ACTIVE";
290
276
  case EgressStatus.EGRESS_ENDING:
291
- return 'EGRESS_ENDING';
277
+ return "EGRESS_ENDING";
292
278
  case EgressStatus.EGRESS_COMPLETE:
293
- return 'EGRESS_COMPLETE';
279
+ return "EGRESS_COMPLETE";
294
280
  case EgressStatus.EGRESS_FAILED:
295
- return 'EGRESS_FAILED';
281
+ return "EGRESS_FAILED";
296
282
  case EgressStatus.EGRESS_ABORTED:
297
- return 'EGRESS_ABORTED';
283
+ return "EGRESS_ABORTED";
298
284
  case EgressStatus.EGRESS_LIMIT_REACHED:
299
- return 'EGRESS_LIMIT_REACHED';
285
+ return "EGRESS_LIMIT_REACHED";
286
+ case EgressStatus.UNRECOGNIZED:
300
287
  default:
301
- return 'UNKNOWN';
288
+ return "UNRECOGNIZED";
302
289
  }
303
290
  }
304
291
  exports.egressStatusToJSON = egressStatusToJSON;
@@ -312,16 +299,16 @@ var StreamInfo_Status;
312
299
  function streamInfo_StatusFromJSON(object) {
313
300
  switch (object) {
314
301
  case 0:
315
- case 'ACTIVE':
302
+ case "ACTIVE":
316
303
  return StreamInfo_Status.ACTIVE;
317
304
  case 1:
318
- case 'FINISHED':
305
+ case "FINISHED":
319
306
  return StreamInfo_Status.FINISHED;
320
307
  case 2:
321
- case 'FAILED':
308
+ case "FAILED":
322
309
  return StreamInfo_Status.FAILED;
323
310
  case -1:
324
- case 'UNRECOGNIZED':
311
+ case "UNRECOGNIZED":
325
312
  default:
326
313
  return StreamInfo_Status.UNRECOGNIZED;
327
314
  }
@@ -330,23 +317,24 @@ exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
330
317
  function streamInfo_StatusToJSON(object) {
331
318
  switch (object) {
332
319
  case StreamInfo_Status.ACTIVE:
333
- return 'ACTIVE';
320
+ return "ACTIVE";
334
321
  case StreamInfo_Status.FINISHED:
335
- return 'FINISHED';
322
+ return "FINISHED";
336
323
  case StreamInfo_Status.FAILED:
337
- return 'FAILED';
324
+ return "FAILED";
325
+ case StreamInfo_Status.UNRECOGNIZED:
338
326
  default:
339
- return 'UNKNOWN';
327
+ return "UNRECOGNIZED";
340
328
  }
341
329
  }
342
330
  exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
343
331
  function createBaseRoomCompositeEgressRequest() {
344
332
  return {
345
- roomName: '',
346
- layout: '',
333
+ roomName: "",
334
+ layout: "",
347
335
  audioOnly: false,
348
336
  videoOnly: false,
349
- customBaseUrl: '',
337
+ customBaseUrl: "",
350
338
  file: undefined,
351
339
  stream: undefined,
352
340
  segments: undefined,
@@ -358,11 +346,11 @@ function createBaseRoomCompositeEgressRequest() {
358
346
  };
359
347
  }
360
348
  exports.RoomCompositeEgressRequest = {
361
- encode(message, writer = _m0.Writer.create()) {
362
- if (message.roomName !== undefined && message.roomName !== '') {
349
+ encode(message, writer = minimal_1.default.Writer.create()) {
350
+ if (message.roomName !== undefined && message.roomName !== "") {
363
351
  writer.uint32(10).string(message.roomName);
364
352
  }
365
- if (message.layout !== undefined && message.layout !== '') {
353
+ if (message.layout !== undefined && message.layout !== "") {
366
354
  writer.uint32(18).string(message.layout);
367
355
  }
368
356
  if (message.audioOnly === true) {
@@ -371,7 +359,7 @@ exports.RoomCompositeEgressRequest = {
371
359
  if (message.videoOnly === true) {
372
360
  writer.uint32(32).bool(message.videoOnly);
373
361
  }
374
- if (message.customBaseUrl !== undefined && message.customBaseUrl !== '') {
362
+ if (message.customBaseUrl !== undefined && message.customBaseUrl !== "") {
375
363
  writer.uint32(42).string(message.customBaseUrl);
376
364
  }
377
365
  if (message.file !== undefined) {
@@ -407,7 +395,7 @@ exports.RoomCompositeEgressRequest = {
407
395
  return writer;
408
396
  },
409
397
  decode(input, length) {
410
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
398
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
411
399
  let end = length === undefined ? reader.len : reader.pos + length;
412
400
  const message = createBaseRoomCompositeEgressRequest();
413
401
  while (reader.pos < end) {
@@ -461,11 +449,11 @@ exports.RoomCompositeEgressRequest = {
461
449
  },
462
450
  fromJSON(object) {
463
451
  return {
464
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
465
- layout: isSet(object.layout) ? String(object.layout) : '',
452
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
453
+ layout: isSet(object.layout) ? String(object.layout) : "",
466
454
  audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
467
455
  videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
468
- customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : '',
456
+ customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : "",
469
457
  file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
470
458
  stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
471
459
  segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
@@ -489,15 +477,12 @@ exports.RoomCompositeEgressRequest = {
489
477
  message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
490
478
  message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
491
479
  message.customBaseUrl !== undefined && (obj.customBaseUrl = message.customBaseUrl);
492
- message.file !== undefined &&
493
- (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
494
- message.stream !== undefined &&
495
- (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
480
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
481
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
496
482
  message.segments !== undefined &&
497
483
  (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
498
484
  message.preset !== undefined &&
499
- (obj.preset =
500
- message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
485
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
501
486
  message.advanced !== undefined &&
502
487
  (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
503
488
  if (message.fileOutputs) {
@@ -523,38 +508,33 @@ exports.RoomCompositeEgressRequest = {
523
508
  fromPartial(object) {
524
509
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
525
510
  const message = createBaseRoomCompositeEgressRequest();
526
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
527
- message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
511
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
512
+ message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
528
513
  message.audioOnly = (_c = object.audioOnly) !== null && _c !== void 0 ? _c : false;
529
514
  message.videoOnly = (_d = object.videoOnly) !== null && _d !== void 0 ? _d : false;
530
- message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : '';
531
- message.file =
532
- object.file !== undefined && object.file !== null
533
- ? exports.EncodedFileOutput.fromPartial(object.file)
534
- : undefined;
535
- message.stream =
536
- object.stream !== undefined && object.stream !== null
537
- ? exports.StreamOutput.fromPartial(object.stream)
538
- : undefined;
539
- message.segments =
540
- object.segments !== undefined && object.segments !== null
541
- ? exports.SegmentedFileOutput.fromPartial(object.segments)
542
- : undefined;
515
+ message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : "";
516
+ message.file = (object.file !== undefined && object.file !== null)
517
+ ? exports.EncodedFileOutput.fromPartial(object.file)
518
+ : undefined;
519
+ message.stream = (object.stream !== undefined && object.stream !== null)
520
+ ? exports.StreamOutput.fromPartial(object.stream)
521
+ : undefined;
522
+ message.segments = (object.segments !== undefined && object.segments !== null)
523
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
524
+ : undefined;
543
525
  message.preset = (_f = object.preset) !== null && _f !== void 0 ? _f : undefined;
544
- message.advanced =
545
- object.advanced !== undefined && object.advanced !== null
546
- ? exports.EncodingOptions.fromPartial(object.advanced)
547
- : undefined;
526
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
527
+ ? exports.EncodingOptions.fromPartial(object.advanced)
528
+ : undefined;
548
529
  message.fileOutputs = ((_g = object.fileOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
549
530
  message.streamOutputs = ((_h = object.streamOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamOutput.fromPartial(e))) || [];
550
- message.segmentOutputs =
551
- ((_j = object.segmentOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
531
+ message.segmentOutputs = ((_j = object.segmentOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
552
532
  return message;
553
533
  },
554
534
  };
555
535
  function createBaseWebEgressRequest() {
556
536
  return {
557
- url: '',
537
+ url: "",
558
538
  audioOnly: false,
559
539
  videoOnly: false,
560
540
  awaitStartSignal: false,
@@ -569,8 +549,8 @@ function createBaseWebEgressRequest() {
569
549
  };
570
550
  }
571
551
  exports.WebEgressRequest = {
572
- encode(message, writer = _m0.Writer.create()) {
573
- if (message.url !== undefined && message.url !== '') {
552
+ encode(message, writer = minimal_1.default.Writer.create()) {
553
+ if (message.url !== undefined && message.url !== "") {
574
554
  writer.uint32(10).string(message.url);
575
555
  }
576
556
  if (message.audioOnly === true) {
@@ -615,7 +595,7 @@ exports.WebEgressRequest = {
615
595
  return writer;
616
596
  },
617
597
  decode(input, length) {
618
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
598
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
619
599
  let end = length === undefined ? reader.len : reader.pos + length;
620
600
  const message = createBaseWebEgressRequest();
621
601
  while (reader.pos < end) {
@@ -666,7 +646,7 @@ exports.WebEgressRequest = {
666
646
  },
667
647
  fromJSON(object) {
668
648
  return {
669
- url: isSet(object.url) ? String(object.url) : '',
649
+ url: isSet(object.url) ? String(object.url) : "",
670
650
  audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
671
651
  videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
672
652
  awaitStartSignal: isSet(object.awaitStartSignal) ? Boolean(object.awaitStartSignal) : false,
@@ -692,15 +672,12 @@ exports.WebEgressRequest = {
692
672
  message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
693
673
  message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
694
674
  message.awaitStartSignal !== undefined && (obj.awaitStartSignal = message.awaitStartSignal);
695
- message.file !== undefined &&
696
- (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
697
- message.stream !== undefined &&
698
- (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
675
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
676
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
699
677
  message.segments !== undefined &&
700
678
  (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
701
679
  message.preset !== undefined &&
702
- (obj.preset =
703
- message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
680
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
704
681
  message.advanced !== undefined &&
705
682
  (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
706
683
  if (message.fileOutputs) {
@@ -726,39 +703,34 @@ exports.WebEgressRequest = {
726
703
  fromPartial(object) {
727
704
  var _a, _b, _c, _d, _e, _f, _g, _h;
728
705
  const message = createBaseWebEgressRequest();
729
- message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
706
+ message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
730
707
  message.audioOnly = (_b = object.audioOnly) !== null && _b !== void 0 ? _b : false;
731
708
  message.videoOnly = (_c = object.videoOnly) !== null && _c !== void 0 ? _c : false;
732
709
  message.awaitStartSignal = (_d = object.awaitStartSignal) !== null && _d !== void 0 ? _d : false;
733
- message.file =
734
- object.file !== undefined && object.file !== null
735
- ? exports.EncodedFileOutput.fromPartial(object.file)
736
- : undefined;
737
- message.stream =
738
- object.stream !== undefined && object.stream !== null
739
- ? exports.StreamOutput.fromPartial(object.stream)
740
- : undefined;
741
- message.segments =
742
- object.segments !== undefined && object.segments !== null
743
- ? exports.SegmentedFileOutput.fromPartial(object.segments)
744
- : undefined;
710
+ message.file = (object.file !== undefined && object.file !== null)
711
+ ? exports.EncodedFileOutput.fromPartial(object.file)
712
+ : undefined;
713
+ message.stream = (object.stream !== undefined && object.stream !== null)
714
+ ? exports.StreamOutput.fromPartial(object.stream)
715
+ : undefined;
716
+ message.segments = (object.segments !== undefined && object.segments !== null)
717
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
718
+ : undefined;
745
719
  message.preset = (_e = object.preset) !== null && _e !== void 0 ? _e : undefined;
746
- message.advanced =
747
- object.advanced !== undefined && object.advanced !== null
748
- ? exports.EncodingOptions.fromPartial(object.advanced)
749
- : undefined;
720
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
721
+ ? exports.EncodingOptions.fromPartial(object.advanced)
722
+ : undefined;
750
723
  message.fileOutputs = ((_f = object.fileOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
751
724
  message.streamOutputs = ((_g = object.streamOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.StreamOutput.fromPartial(e))) || [];
752
- message.segmentOutputs =
753
- ((_h = object.segmentOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
725
+ message.segmentOutputs = ((_h = object.segmentOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
754
726
  return message;
755
727
  },
756
728
  };
757
729
  function createBaseTrackCompositeEgressRequest() {
758
730
  return {
759
- roomName: '',
760
- audioTrackId: '',
761
- videoTrackId: '',
731
+ roomName: "",
732
+ audioTrackId: "",
733
+ videoTrackId: "",
762
734
  file: undefined,
763
735
  stream: undefined,
764
736
  segments: undefined,
@@ -770,14 +742,14 @@ function createBaseTrackCompositeEgressRequest() {
770
742
  };
771
743
  }
772
744
  exports.TrackCompositeEgressRequest = {
773
- encode(message, writer = _m0.Writer.create()) {
774
- if (message.roomName !== undefined && message.roomName !== '') {
745
+ encode(message, writer = minimal_1.default.Writer.create()) {
746
+ if (message.roomName !== undefined && message.roomName !== "") {
775
747
  writer.uint32(10).string(message.roomName);
776
748
  }
777
- if (message.audioTrackId !== undefined && message.audioTrackId !== '') {
749
+ if (message.audioTrackId !== undefined && message.audioTrackId !== "") {
778
750
  writer.uint32(18).string(message.audioTrackId);
779
751
  }
780
- if (message.videoTrackId !== undefined && message.videoTrackId !== '') {
752
+ if (message.videoTrackId !== undefined && message.videoTrackId !== "") {
781
753
  writer.uint32(26).string(message.videoTrackId);
782
754
  }
783
755
  if (message.file !== undefined) {
@@ -813,7 +785,7 @@ exports.TrackCompositeEgressRequest = {
813
785
  return writer;
814
786
  },
815
787
  decode(input, length) {
816
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
788
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
817
789
  let end = length === undefined ? reader.len : reader.pos + length;
818
790
  const message = createBaseTrackCompositeEgressRequest();
819
791
  while (reader.pos < end) {
@@ -861,9 +833,9 @@ exports.TrackCompositeEgressRequest = {
861
833
  },
862
834
  fromJSON(object) {
863
835
  return {
864
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
865
- audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : '',
866
- videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : '',
836
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
837
+ audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : "",
838
+ videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : "",
867
839
  file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
868
840
  stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
869
841
  segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
@@ -885,15 +857,12 @@ exports.TrackCompositeEgressRequest = {
885
857
  message.roomName !== undefined && (obj.roomName = message.roomName);
886
858
  message.audioTrackId !== undefined && (obj.audioTrackId = message.audioTrackId);
887
859
  message.videoTrackId !== undefined && (obj.videoTrackId = message.videoTrackId);
888
- message.file !== undefined &&
889
- (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
890
- message.stream !== undefined &&
891
- (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
860
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
861
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
892
862
  message.segments !== undefined &&
893
863
  (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
894
864
  message.preset !== undefined &&
895
- (obj.preset =
896
- message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
865
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
897
866
  message.advanced !== undefined &&
898
867
  (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
899
868
  if (message.fileOutputs) {
@@ -919,42 +888,37 @@ exports.TrackCompositeEgressRequest = {
919
888
  fromPartial(object) {
920
889
  var _a, _b, _c, _d, _e, _f, _g;
921
890
  const message = createBaseTrackCompositeEgressRequest();
922
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
923
- message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : '';
924
- message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c : '';
925
- message.file =
926
- object.file !== undefined && object.file !== null
927
- ? exports.EncodedFileOutput.fromPartial(object.file)
928
- : undefined;
929
- message.stream =
930
- object.stream !== undefined && object.stream !== null
931
- ? exports.StreamOutput.fromPartial(object.stream)
932
- : undefined;
933
- message.segments =
934
- object.segments !== undefined && object.segments !== null
935
- ? exports.SegmentedFileOutput.fromPartial(object.segments)
936
- : undefined;
891
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
892
+ message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : "";
893
+ message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c : "";
894
+ message.file = (object.file !== undefined && object.file !== null)
895
+ ? exports.EncodedFileOutput.fromPartial(object.file)
896
+ : undefined;
897
+ message.stream = (object.stream !== undefined && object.stream !== null)
898
+ ? exports.StreamOutput.fromPartial(object.stream)
899
+ : undefined;
900
+ message.segments = (object.segments !== undefined && object.segments !== null)
901
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
902
+ : undefined;
937
903
  message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
938
- message.advanced =
939
- object.advanced !== undefined && object.advanced !== null
940
- ? exports.EncodingOptions.fromPartial(object.advanced)
941
- : undefined;
904
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
905
+ ? exports.EncodingOptions.fromPartial(object.advanced)
906
+ : undefined;
942
907
  message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
943
908
  message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
944
- message.segmentOutputs =
945
- ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
909
+ message.segmentOutputs = ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
946
910
  return message;
947
911
  },
948
912
  };
949
913
  function createBaseTrackEgressRequest() {
950
- return { roomName: '', trackId: '', file: undefined, websocketUrl: undefined };
914
+ return { roomName: "", trackId: "", file: undefined, websocketUrl: undefined };
951
915
  }
952
916
  exports.TrackEgressRequest = {
953
- encode(message, writer = _m0.Writer.create()) {
954
- if (message.roomName !== undefined && message.roomName !== '') {
917
+ encode(message, writer = minimal_1.default.Writer.create()) {
918
+ if (message.roomName !== undefined && message.roomName !== "") {
955
919
  writer.uint32(10).string(message.roomName);
956
920
  }
957
- if (message.trackId !== undefined && message.trackId !== '') {
921
+ if (message.trackId !== undefined && message.trackId !== "") {
958
922
  writer.uint32(18).string(message.trackId);
959
923
  }
960
924
  if (message.file !== undefined) {
@@ -966,7 +930,7 @@ exports.TrackEgressRequest = {
966
930
  return writer;
967
931
  },
968
932
  decode(input, length) {
969
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
933
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
970
934
  let end = length === undefined ? reader.len : reader.pos + length;
971
935
  const message = createBaseTrackEgressRequest();
972
936
  while (reader.pos < end) {
@@ -993,8 +957,8 @@ exports.TrackEgressRequest = {
993
957
  },
994
958
  fromJSON(object) {
995
959
  return {
996
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
997
- trackId: isSet(object.trackId) ? String(object.trackId) : '',
960
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
961
+ trackId: isSet(object.trackId) ? String(object.trackId) : "",
998
962
  file: isSet(object.file) ? exports.DirectFileOutput.fromJSON(object.file) : undefined,
999
963
  websocketUrl: isSet(object.websocketUrl) ? String(object.websocketUrl) : undefined,
1000
964
  };
@@ -1003,20 +967,18 @@ exports.TrackEgressRequest = {
1003
967
  const obj = {};
1004
968
  message.roomName !== undefined && (obj.roomName = message.roomName);
1005
969
  message.trackId !== undefined && (obj.trackId = message.trackId);
1006
- message.file !== undefined &&
1007
- (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
970
+ message.file !== undefined && (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
1008
971
  message.websocketUrl !== undefined && (obj.websocketUrl = message.websocketUrl);
1009
972
  return obj;
1010
973
  },
1011
974
  fromPartial(object) {
1012
975
  var _a, _b, _c;
1013
976
  const message = createBaseTrackEgressRequest();
1014
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
1015
- message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b : '';
1016
- message.file =
1017
- object.file !== undefined && object.file !== null
1018
- ? exports.DirectFileOutput.fromPartial(object.file)
1019
- : undefined;
977
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
978
+ message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b : "";
979
+ message.file = (object.file !== undefined && object.file !== null)
980
+ ? exports.DirectFileOutput.fromPartial(object.file)
981
+ : undefined;
1020
982
  message.websocketUrl = (_c = object.websocketUrl) !== null && _c !== void 0 ? _c : undefined;
1021
983
  return message;
1022
984
  },
@@ -1024,7 +986,7 @@ exports.TrackEgressRequest = {
1024
986
  function createBaseEncodedFileOutput() {
1025
987
  return {
1026
988
  fileType: 0,
1027
- filepath: '',
989
+ filepath: "",
1028
990
  disableManifest: false,
1029
991
  s3: undefined,
1030
992
  gcp: undefined,
@@ -1033,11 +995,11 @@ function createBaseEncodedFileOutput() {
1033
995
  };
1034
996
  }
1035
997
  exports.EncodedFileOutput = {
1036
- encode(message, writer = _m0.Writer.create()) {
998
+ encode(message, writer = minimal_1.default.Writer.create()) {
1037
999
  if (message.fileType !== undefined && message.fileType !== 0) {
1038
1000
  writer.uint32(8).int32(message.fileType);
1039
1001
  }
1040
- if (message.filepath !== undefined && message.filepath !== '') {
1002
+ if (message.filepath !== undefined && message.filepath !== "") {
1041
1003
  writer.uint32(18).string(message.filepath);
1042
1004
  }
1043
1005
  if (message.disableManifest === true) {
@@ -1058,7 +1020,7 @@ exports.EncodedFileOutput = {
1058
1020
  return writer;
1059
1021
  },
1060
1022
  decode(input, length) {
1061
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1023
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1062
1024
  let end = length === undefined ? reader.len : reader.pos + length;
1063
1025
  const message = createBaseEncodedFileOutput();
1064
1026
  while (reader.pos < end) {
@@ -1095,7 +1057,7 @@ exports.EncodedFileOutput = {
1095
1057
  fromJSON(object) {
1096
1058
  return {
1097
1059
  fileType: isSet(object.fileType) ? encodedFileTypeFromJSON(object.fileType) : 0,
1098
- filepath: isSet(object.filepath) ? String(object.filepath) : '',
1060
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
1099
1061
  disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
1100
1062
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
1101
1063
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
@@ -1109,42 +1071,33 @@ exports.EncodedFileOutput = {
1109
1071
  message.filepath !== undefined && (obj.filepath = message.filepath);
1110
1072
  message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
1111
1073
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
1112
- message.gcp !== undefined &&
1113
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1114
- message.azure !== undefined &&
1115
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1116
- message.aliOSS !== undefined &&
1117
- (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1074
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1075
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1076
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1118
1077
  return obj;
1119
1078
  },
1120
1079
  fromPartial(object) {
1121
1080
  var _a, _b, _c;
1122
1081
  const message = createBaseEncodedFileOutput();
1123
1082
  message.fileType = (_a = object.fileType) !== null && _a !== void 0 ? _a : 0;
1124
- message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : '';
1083
+ message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : "";
1125
1084
  message.disableManifest = (_c = object.disableManifest) !== null && _c !== void 0 ? _c : false;
1126
- message.s3 =
1127
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
1128
- message.gcp =
1129
- object.gcp !== undefined && object.gcp !== null
1130
- ? exports.GCPUpload.fromPartial(object.gcp)
1131
- : undefined;
1132
- message.azure =
1133
- object.azure !== undefined && object.azure !== null
1134
- ? exports.AzureBlobUpload.fromPartial(object.azure)
1135
- : undefined;
1136
- message.aliOSS =
1137
- object.aliOSS !== undefined && object.aliOSS !== null
1138
- ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1139
- : undefined;
1085
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
1086
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
1087
+ message.azure = (object.azure !== undefined && object.azure !== null)
1088
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
1089
+ : undefined;
1090
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
1091
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1092
+ : undefined;
1140
1093
  return message;
1141
1094
  },
1142
1095
  };
1143
1096
  function createBaseSegmentedFileOutput() {
1144
1097
  return {
1145
1098
  protocol: 0,
1146
- filenamePrefix: '',
1147
- playlistName: '',
1099
+ filenamePrefix: "",
1100
+ playlistName: "",
1148
1101
  segmentDuration: 0,
1149
1102
  filenameSuffix: 0,
1150
1103
  disableManifest: false,
@@ -1155,14 +1108,14 @@ function createBaseSegmentedFileOutput() {
1155
1108
  };
1156
1109
  }
1157
1110
  exports.SegmentedFileOutput = {
1158
- encode(message, writer = _m0.Writer.create()) {
1111
+ encode(message, writer = minimal_1.default.Writer.create()) {
1159
1112
  if (message.protocol !== undefined && message.protocol !== 0) {
1160
1113
  writer.uint32(8).int32(message.protocol);
1161
1114
  }
1162
- if (message.filenamePrefix !== undefined && message.filenamePrefix !== '') {
1115
+ if (message.filenamePrefix !== undefined && message.filenamePrefix !== "") {
1163
1116
  writer.uint32(18).string(message.filenamePrefix);
1164
1117
  }
1165
- if (message.playlistName !== undefined && message.playlistName !== '') {
1118
+ if (message.playlistName !== undefined && message.playlistName !== "") {
1166
1119
  writer.uint32(26).string(message.playlistName);
1167
1120
  }
1168
1121
  if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
@@ -1189,7 +1142,7 @@ exports.SegmentedFileOutput = {
1189
1142
  return writer;
1190
1143
  },
1191
1144
  decode(input, length) {
1192
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1145
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1193
1146
  let end = length === undefined ? reader.len : reader.pos + length;
1194
1147
  const message = createBaseSegmentedFileOutput();
1195
1148
  while (reader.pos < end) {
@@ -1235,12 +1188,10 @@ exports.SegmentedFileOutput = {
1235
1188
  fromJSON(object) {
1236
1189
  return {
1237
1190
  protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
1238
- filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : '',
1239
- playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
1191
+ filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
1192
+ playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
1240
1193
  segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
1241
- filenameSuffix: isSet(object.filenameSuffix)
1242
- ? segmentedFileSuffixFromJSON(object.filenameSuffix)
1243
- : 0,
1194
+ filenameSuffix: isSet(object.filenameSuffix) ? segmentedFileSuffixFromJSON(object.filenameSuffix) : 0,
1244
1195
  disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
1245
1196
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
1246
1197
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
@@ -1250,63 +1201,44 @@ exports.SegmentedFileOutput = {
1250
1201
  },
1251
1202
  toJSON(message) {
1252
1203
  const obj = {};
1253
- message.protocol !== undefined &&
1254
- (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
1204
+ message.protocol !== undefined && (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
1255
1205
  message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
1256
1206
  message.playlistName !== undefined && (obj.playlistName = message.playlistName);
1257
- message.segmentDuration !== undefined &&
1258
- (obj.segmentDuration = Math.round(message.segmentDuration));
1259
- message.filenameSuffix !== undefined &&
1260
- (obj.filenameSuffix = segmentedFileSuffixToJSON(message.filenameSuffix));
1207
+ message.segmentDuration !== undefined && (obj.segmentDuration = Math.round(message.segmentDuration));
1208
+ message.filenameSuffix !== undefined && (obj.filenameSuffix = segmentedFileSuffixToJSON(message.filenameSuffix));
1261
1209
  message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
1262
1210
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
1263
- message.gcp !== undefined &&
1264
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1265
- message.azure !== undefined &&
1266
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1267
- message.aliOSS !== undefined &&
1268
- (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1211
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1212
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1213
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1269
1214
  return obj;
1270
1215
  },
1271
1216
  fromPartial(object) {
1272
1217
  var _a, _b, _c, _d, _e, _f;
1273
1218
  const message = createBaseSegmentedFileOutput();
1274
1219
  message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
1275
- message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : '';
1276
- message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : '';
1220
+ message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : "";
1221
+ message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : "";
1277
1222
  message.segmentDuration = (_d = object.segmentDuration) !== null && _d !== void 0 ? _d : 0;
1278
1223
  message.filenameSuffix = (_e = object.filenameSuffix) !== null && _e !== void 0 ? _e : 0;
1279
1224
  message.disableManifest = (_f = object.disableManifest) !== null && _f !== void 0 ? _f : false;
1280
- message.s3 =
1281
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
1282
- message.gcp =
1283
- object.gcp !== undefined && object.gcp !== null
1284
- ? exports.GCPUpload.fromPartial(object.gcp)
1285
- : undefined;
1286
- message.azure =
1287
- object.azure !== undefined && object.azure !== null
1288
- ? exports.AzureBlobUpload.fromPartial(object.azure)
1289
- : undefined;
1290
- message.aliOSS =
1291
- object.aliOSS !== undefined && object.aliOSS !== null
1292
- ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1293
- : undefined;
1225
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
1226
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
1227
+ message.azure = (object.azure !== undefined && object.azure !== null)
1228
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
1229
+ : undefined;
1230
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
1231
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1232
+ : undefined;
1294
1233
  return message;
1295
1234
  },
1296
1235
  };
1297
1236
  function createBaseDirectFileOutput() {
1298
- return {
1299
- filepath: '',
1300
- disableManifest: false,
1301
- s3: undefined,
1302
- gcp: undefined,
1303
- azure: undefined,
1304
- aliOSS: undefined,
1305
- };
1237
+ return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined, aliOSS: undefined };
1306
1238
  }
1307
1239
  exports.DirectFileOutput = {
1308
- encode(message, writer = _m0.Writer.create()) {
1309
- if (message.filepath !== undefined && message.filepath !== '') {
1240
+ encode(message, writer = minimal_1.default.Writer.create()) {
1241
+ if (message.filepath !== undefined && message.filepath !== "") {
1310
1242
  writer.uint32(10).string(message.filepath);
1311
1243
  }
1312
1244
  if (message.disableManifest === true) {
@@ -1327,7 +1259,7 @@ exports.DirectFileOutput = {
1327
1259
  return writer;
1328
1260
  },
1329
1261
  decode(input, length) {
1330
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1262
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1331
1263
  let end = length === undefined ? reader.len : reader.pos + length;
1332
1264
  const message = createBaseDirectFileOutput();
1333
1265
  while (reader.pos < end) {
@@ -1360,7 +1292,7 @@ exports.DirectFileOutput = {
1360
1292
  },
1361
1293
  fromJSON(object) {
1362
1294
  return {
1363
- filepath: isSet(object.filepath) ? String(object.filepath) : '',
1295
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
1364
1296
  disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
1365
1297
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
1366
1298
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
@@ -1373,63 +1305,54 @@ exports.DirectFileOutput = {
1373
1305
  message.filepath !== undefined && (obj.filepath = message.filepath);
1374
1306
  message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
1375
1307
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
1376
- message.gcp !== undefined &&
1377
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1378
- message.azure !== undefined &&
1379
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1380
- message.aliOSS !== undefined &&
1381
- (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1308
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1309
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1310
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
1382
1311
  return obj;
1383
1312
  },
1384
1313
  fromPartial(object) {
1385
1314
  var _a, _b;
1386
1315
  const message = createBaseDirectFileOutput();
1387
- message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : '';
1316
+ message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
1388
1317
  message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
1389
- message.s3 =
1390
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
1391
- message.gcp =
1392
- object.gcp !== undefined && object.gcp !== null
1393
- ? exports.GCPUpload.fromPartial(object.gcp)
1394
- : undefined;
1395
- message.azure =
1396
- object.azure !== undefined && object.azure !== null
1397
- ? exports.AzureBlobUpload.fromPartial(object.azure)
1398
- : undefined;
1399
- message.aliOSS =
1400
- object.aliOSS !== undefined && object.aliOSS !== null
1401
- ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1402
- : undefined;
1318
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
1319
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
1320
+ message.azure = (object.azure !== undefined && object.azure !== null)
1321
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
1322
+ : undefined;
1323
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
1324
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1325
+ : undefined;
1403
1326
  return message;
1404
1327
  },
1405
1328
  };
1406
1329
  function createBaseS3Upload() {
1407
1330
  return {
1408
- accessKey: '',
1409
- secret: '',
1410
- region: '',
1411
- endpoint: '',
1412
- bucket: '',
1331
+ accessKey: "",
1332
+ secret: "",
1333
+ region: "",
1334
+ endpoint: "",
1335
+ bucket: "",
1413
1336
  forcePathStyle: false,
1414
1337
  metadata: {},
1415
- tagging: '',
1338
+ tagging: "",
1416
1339
  };
1417
1340
  }
1418
1341
  exports.S3Upload = {
1419
- encode(message, writer = _m0.Writer.create()) {
1420
- if (message.accessKey !== undefined && message.accessKey !== '') {
1342
+ encode(message, writer = minimal_1.default.Writer.create()) {
1343
+ if (message.accessKey !== undefined && message.accessKey !== "") {
1421
1344
  writer.uint32(10).string(message.accessKey);
1422
1345
  }
1423
- if (message.secret !== undefined && message.secret !== '') {
1346
+ if (message.secret !== undefined && message.secret !== "") {
1424
1347
  writer.uint32(18).string(message.secret);
1425
1348
  }
1426
- if (message.region !== undefined && message.region !== '') {
1349
+ if (message.region !== undefined && message.region !== "") {
1427
1350
  writer.uint32(26).string(message.region);
1428
1351
  }
1429
- if (message.endpoint !== undefined && message.endpoint !== '') {
1352
+ if (message.endpoint !== undefined && message.endpoint !== "") {
1430
1353
  writer.uint32(34).string(message.endpoint);
1431
1354
  }
1432
- if (message.bucket !== undefined && message.bucket !== '') {
1355
+ if (message.bucket !== undefined && message.bucket !== "") {
1433
1356
  writer.uint32(42).string(message.bucket);
1434
1357
  }
1435
1358
  if (message.forcePathStyle === true) {
@@ -1438,13 +1361,13 @@ exports.S3Upload = {
1438
1361
  Object.entries(message.metadata || {}).forEach(([key, value]) => {
1439
1362
  exports.S3Upload_MetadataEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
1440
1363
  });
1441
- if (message.tagging !== undefined && message.tagging !== '') {
1364
+ if (message.tagging !== undefined && message.tagging !== "") {
1442
1365
  writer.uint32(66).string(message.tagging);
1443
1366
  }
1444
1367
  return writer;
1445
1368
  },
1446
1369
  decode(input, length) {
1447
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1370
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1448
1371
  let end = length === undefined ? reader.len : reader.pos + length;
1449
1372
  const message = createBaseS3Upload();
1450
1373
  while (reader.pos < end) {
@@ -1486,11 +1409,11 @@ exports.S3Upload = {
1486
1409
  },
1487
1410
  fromJSON(object) {
1488
1411
  return {
1489
- accessKey: isSet(object.accessKey) ? String(object.accessKey) : '',
1490
- secret: isSet(object.secret) ? String(object.secret) : '',
1491
- region: isSet(object.region) ? String(object.region) : '',
1492
- endpoint: isSet(object.endpoint) ? String(object.endpoint) : '',
1493
- bucket: isSet(object.bucket) ? String(object.bucket) : '',
1412
+ accessKey: isSet(object.accessKey) ? String(object.accessKey) : "",
1413
+ secret: isSet(object.secret) ? String(object.secret) : "",
1414
+ region: isSet(object.region) ? String(object.region) : "",
1415
+ endpoint: isSet(object.endpoint) ? String(object.endpoint) : "",
1416
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1494
1417
  forcePathStyle: isSet(object.forcePathStyle) ? Boolean(object.forcePathStyle) : false,
1495
1418
  metadata: isObject(object.metadata)
1496
1419
  ? Object.entries(object.metadata).reduce((acc, [key, value]) => {
@@ -1498,7 +1421,7 @@ exports.S3Upload = {
1498
1421
  return acc;
1499
1422
  }, {})
1500
1423
  : {},
1501
- tagging: isSet(object.tagging) ? String(object.tagging) : '',
1424
+ tagging: isSet(object.tagging) ? String(object.tagging) : "",
1502
1425
  };
1503
1426
  },
1504
1427
  toJSON(message) {
@@ -1521,11 +1444,11 @@ exports.S3Upload = {
1521
1444
  fromPartial(object) {
1522
1445
  var _a, _b, _c, _d, _e, _f, _g, _h;
1523
1446
  const message = createBaseS3Upload();
1524
- message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : '';
1525
- message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : '';
1526
- message.region = (_c = object.region) !== null && _c !== void 0 ? _c : '';
1527
- message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : '';
1528
- message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : '';
1447
+ message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : "";
1448
+ message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : "";
1449
+ message.region = (_c = object.region) !== null && _c !== void 0 ? _c : "";
1450
+ message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : "";
1451
+ message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : "";
1529
1452
  message.forcePathStyle = (_f = object.forcePathStyle) !== null && _f !== void 0 ? _f : false;
1530
1453
  message.metadata = Object.entries((_g = object.metadata) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
1531
1454
  if (value !== undefined) {
@@ -1533,25 +1456,25 @@ exports.S3Upload = {
1533
1456
  }
1534
1457
  return acc;
1535
1458
  }, {});
1536
- message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h : '';
1459
+ message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h : "";
1537
1460
  return message;
1538
1461
  },
1539
1462
  };
1540
1463
  function createBaseS3Upload_MetadataEntry() {
1541
- return { key: '', value: '' };
1464
+ return { key: "", value: "" };
1542
1465
  }
1543
1466
  exports.S3Upload_MetadataEntry = {
1544
- encode(message, writer = _m0.Writer.create()) {
1545
- if (message.key !== '') {
1467
+ encode(message, writer = minimal_1.default.Writer.create()) {
1468
+ if (message.key !== "") {
1546
1469
  writer.uint32(10).string(message.key);
1547
1470
  }
1548
- if (message.value !== '') {
1471
+ if (message.value !== "") {
1549
1472
  writer.uint32(18).string(message.value);
1550
1473
  }
1551
1474
  return writer;
1552
1475
  },
1553
1476
  decode(input, length) {
1554
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1477
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1555
1478
  let end = length === undefined ? reader.len : reader.pos + length;
1556
1479
  const message = createBaseS3Upload_MetadataEntry();
1557
1480
  while (reader.pos < end) {
@@ -1571,10 +1494,7 @@ exports.S3Upload_MetadataEntry = {
1571
1494
  return message;
1572
1495
  },
1573
1496
  fromJSON(object) {
1574
- return {
1575
- key: isSet(object.key) ? String(object.key) : '',
1576
- value: isSet(object.value) ? String(object.value) : '',
1577
- };
1497
+ return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1578
1498
  },
1579
1499
  toJSON(message) {
1580
1500
  const obj = {};
@@ -1585,26 +1505,26 @@ exports.S3Upload_MetadataEntry = {
1585
1505
  fromPartial(object) {
1586
1506
  var _a, _b;
1587
1507
  const message = createBaseS3Upload_MetadataEntry();
1588
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : '';
1589
- message.value = (_b = object.value) !== null && _b !== void 0 ? _b : '';
1508
+ message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
1509
+ message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
1590
1510
  return message;
1591
1511
  },
1592
1512
  };
1593
1513
  function createBaseGCPUpload() {
1594
- return { credentials: '', bucket: '' };
1514
+ return { credentials: "", bucket: "" };
1595
1515
  }
1596
1516
  exports.GCPUpload = {
1597
- encode(message, writer = _m0.Writer.create()) {
1598
- if (message.credentials !== undefined && message.credentials !== '') {
1517
+ encode(message, writer = minimal_1.default.Writer.create()) {
1518
+ if (message.credentials !== undefined && message.credentials !== "") {
1599
1519
  writer.uint32(10).string(message.credentials);
1600
1520
  }
1601
- if (message.bucket !== undefined && message.bucket !== '') {
1521
+ if (message.bucket !== undefined && message.bucket !== "") {
1602
1522
  writer.uint32(18).string(message.bucket);
1603
1523
  }
1604
1524
  return writer;
1605
1525
  },
1606
1526
  decode(input, length) {
1607
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1527
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1608
1528
  let end = length === undefined ? reader.len : reader.pos + length;
1609
1529
  const message = createBaseGCPUpload();
1610
1530
  while (reader.pos < end) {
@@ -1625,8 +1545,8 @@ exports.GCPUpload = {
1625
1545
  },
1626
1546
  fromJSON(object) {
1627
1547
  return {
1628
- credentials: isSet(object.credentials) ? String(object.credentials) : '',
1629
- bucket: isSet(object.bucket) ? String(object.bucket) : '',
1548
+ credentials: isSet(object.credentials) ? String(object.credentials) : "",
1549
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1630
1550
  };
1631
1551
  },
1632
1552
  toJSON(message) {
@@ -1638,29 +1558,29 @@ exports.GCPUpload = {
1638
1558
  fromPartial(object) {
1639
1559
  var _a, _b;
1640
1560
  const message = createBaseGCPUpload();
1641
- message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : '';
1642
- message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : '';
1561
+ message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : "";
1562
+ message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : "";
1643
1563
  return message;
1644
1564
  },
1645
1565
  };
1646
1566
  function createBaseAzureBlobUpload() {
1647
- return { accountName: '', accountKey: '', containerName: '' };
1567
+ return { accountName: "", accountKey: "", containerName: "" };
1648
1568
  }
1649
1569
  exports.AzureBlobUpload = {
1650
- encode(message, writer = _m0.Writer.create()) {
1651
- if (message.accountName !== undefined && message.accountName !== '') {
1570
+ encode(message, writer = minimal_1.default.Writer.create()) {
1571
+ if (message.accountName !== undefined && message.accountName !== "") {
1652
1572
  writer.uint32(10).string(message.accountName);
1653
1573
  }
1654
- if (message.accountKey !== undefined && message.accountKey !== '') {
1574
+ if (message.accountKey !== undefined && message.accountKey !== "") {
1655
1575
  writer.uint32(18).string(message.accountKey);
1656
1576
  }
1657
- if (message.containerName !== undefined && message.containerName !== '') {
1577
+ if (message.containerName !== undefined && message.containerName !== "") {
1658
1578
  writer.uint32(26).string(message.containerName);
1659
1579
  }
1660
1580
  return writer;
1661
1581
  },
1662
1582
  decode(input, length) {
1663
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1583
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1664
1584
  let end = length === undefined ? reader.len : reader.pos + length;
1665
1585
  const message = createBaseAzureBlobUpload();
1666
1586
  while (reader.pos < end) {
@@ -1684,9 +1604,9 @@ exports.AzureBlobUpload = {
1684
1604
  },
1685
1605
  fromJSON(object) {
1686
1606
  return {
1687
- accountName: isSet(object.accountName) ? String(object.accountName) : '',
1688
- accountKey: isSet(object.accountKey) ? String(object.accountKey) : '',
1689
- containerName: isSet(object.containerName) ? String(object.containerName) : '',
1607
+ accountName: isSet(object.accountName) ? String(object.accountName) : "",
1608
+ accountKey: isSet(object.accountKey) ? String(object.accountKey) : "",
1609
+ containerName: isSet(object.containerName) ? String(object.containerName) : "",
1690
1610
  };
1691
1611
  },
1692
1612
  toJSON(message) {
@@ -1699,36 +1619,36 @@ exports.AzureBlobUpload = {
1699
1619
  fromPartial(object) {
1700
1620
  var _a, _b, _c;
1701
1621
  const message = createBaseAzureBlobUpload();
1702
- message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a : '';
1703
- message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b : '';
1704
- message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c : '';
1622
+ message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a : "";
1623
+ message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b : "";
1624
+ message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c : "";
1705
1625
  return message;
1706
1626
  },
1707
1627
  };
1708
1628
  function createBaseAliOSSUpload() {
1709
- return { accessKey: '', secret: '', region: '', endpoint: '', bucket: '' };
1629
+ return { accessKey: "", secret: "", region: "", endpoint: "", bucket: "" };
1710
1630
  }
1711
1631
  exports.AliOSSUpload = {
1712
- encode(message, writer = _m0.Writer.create()) {
1713
- if (message.accessKey !== undefined && message.accessKey !== '') {
1632
+ encode(message, writer = minimal_1.default.Writer.create()) {
1633
+ if (message.accessKey !== undefined && message.accessKey !== "") {
1714
1634
  writer.uint32(10).string(message.accessKey);
1715
1635
  }
1716
- if (message.secret !== undefined && message.secret !== '') {
1636
+ if (message.secret !== undefined && message.secret !== "") {
1717
1637
  writer.uint32(18).string(message.secret);
1718
1638
  }
1719
- if (message.region !== undefined && message.region !== '') {
1639
+ if (message.region !== undefined && message.region !== "") {
1720
1640
  writer.uint32(26).string(message.region);
1721
1641
  }
1722
- if (message.endpoint !== undefined && message.endpoint !== '') {
1642
+ if (message.endpoint !== undefined && message.endpoint !== "") {
1723
1643
  writer.uint32(34).string(message.endpoint);
1724
1644
  }
1725
- if (message.bucket !== undefined && message.bucket !== '') {
1645
+ if (message.bucket !== undefined && message.bucket !== "") {
1726
1646
  writer.uint32(42).string(message.bucket);
1727
1647
  }
1728
1648
  return writer;
1729
1649
  },
1730
1650
  decode(input, length) {
1731
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1651
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1732
1652
  let end = length === undefined ? reader.len : reader.pos + length;
1733
1653
  const message = createBaseAliOSSUpload();
1734
1654
  while (reader.pos < end) {
@@ -1758,11 +1678,11 @@ exports.AliOSSUpload = {
1758
1678
  },
1759
1679
  fromJSON(object) {
1760
1680
  return {
1761
- accessKey: isSet(object.accessKey) ? String(object.accessKey) : '',
1762
- secret: isSet(object.secret) ? String(object.secret) : '',
1763
- region: isSet(object.region) ? String(object.region) : '',
1764
- endpoint: isSet(object.endpoint) ? String(object.endpoint) : '',
1765
- bucket: isSet(object.bucket) ? String(object.bucket) : '',
1681
+ accessKey: isSet(object.accessKey) ? String(object.accessKey) : "",
1682
+ secret: isSet(object.secret) ? String(object.secret) : "",
1683
+ region: isSet(object.region) ? String(object.region) : "",
1684
+ endpoint: isSet(object.endpoint) ? String(object.endpoint) : "",
1685
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1766
1686
  };
1767
1687
  },
1768
1688
  toJSON(message) {
@@ -1777,11 +1697,11 @@ exports.AliOSSUpload = {
1777
1697
  fromPartial(object) {
1778
1698
  var _a, _b, _c, _d, _e;
1779
1699
  const message = createBaseAliOSSUpload();
1780
- message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : '';
1781
- message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : '';
1782
- message.region = (_c = object.region) !== null && _c !== void 0 ? _c : '';
1783
- message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : '';
1784
- message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : '';
1700
+ message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : "";
1701
+ message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : "";
1702
+ message.region = (_c = object.region) !== null && _c !== void 0 ? _c : "";
1703
+ message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : "";
1704
+ message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : "";
1785
1705
  return message;
1786
1706
  },
1787
1707
  };
@@ -1789,7 +1709,7 @@ function createBaseStreamOutput() {
1789
1709
  return { protocol: 0, urls: [] };
1790
1710
  }
1791
1711
  exports.StreamOutput = {
1792
- encode(message, writer = _m0.Writer.create()) {
1712
+ encode(message, writer = minimal_1.default.Writer.create()) {
1793
1713
  if (message.protocol !== undefined && message.protocol !== 0) {
1794
1714
  writer.uint32(8).int32(message.protocol);
1795
1715
  }
@@ -1801,7 +1721,7 @@ exports.StreamOutput = {
1801
1721
  return writer;
1802
1722
  },
1803
1723
  decode(input, length) {
1804
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1724
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1805
1725
  let end = length === undefined ? reader.len : reader.pos + length;
1806
1726
  const message = createBaseStreamOutput();
1807
1727
  while (reader.pos < end) {
@@ -1860,7 +1780,7 @@ function createBaseEncodingOptions() {
1860
1780
  };
1861
1781
  }
1862
1782
  exports.EncodingOptions = {
1863
- encode(message, writer = _m0.Writer.create()) {
1783
+ encode(message, writer = minimal_1.default.Writer.create()) {
1864
1784
  if (message.width !== undefined && message.width !== 0) {
1865
1785
  writer.uint32(8).int32(message.width);
1866
1786
  }
@@ -1894,7 +1814,7 @@ exports.EncodingOptions = {
1894
1814
  return writer;
1895
1815
  },
1896
1816
  decode(input, length) {
1897
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1817
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1898
1818
  let end = length === undefined ? reader.len : reader.pos + length;
1899
1819
  const message = createBaseEncodingOptions();
1900
1820
  while (reader.pos < end) {
@@ -1959,8 +1879,7 @@ exports.EncodingOptions = {
1959
1879
  message.framerate !== undefined && (obj.framerate = Math.round(message.framerate));
1960
1880
  message.audioCodec !== undefined && (obj.audioCodec = livekit_models_1.audioCodecToJSON(message.audioCodec));
1961
1881
  message.audioBitrate !== undefined && (obj.audioBitrate = Math.round(message.audioBitrate));
1962
- message.audioFrequency !== undefined &&
1963
- (obj.audioFrequency = Math.round(message.audioFrequency));
1882
+ message.audioFrequency !== undefined && (obj.audioFrequency = Math.round(message.audioFrequency));
1964
1883
  message.videoCodec !== undefined && (obj.videoCodec = livekit_models_1.videoCodecToJSON(message.videoCodec));
1965
1884
  message.videoBitrate !== undefined && (obj.videoBitrate = Math.round(message.videoBitrate));
1966
1885
  message.keyFrameInterval !== undefined && (obj.keyFrameInterval = message.keyFrameInterval);
@@ -1983,20 +1902,20 @@ exports.EncodingOptions = {
1983
1902
  },
1984
1903
  };
1985
1904
  function createBaseUpdateLayoutRequest() {
1986
- return { egressId: '', layout: '' };
1905
+ return { egressId: "", layout: "" };
1987
1906
  }
1988
1907
  exports.UpdateLayoutRequest = {
1989
- encode(message, writer = _m0.Writer.create()) {
1990
- if (message.egressId !== undefined && message.egressId !== '') {
1908
+ encode(message, writer = minimal_1.default.Writer.create()) {
1909
+ if (message.egressId !== undefined && message.egressId !== "") {
1991
1910
  writer.uint32(10).string(message.egressId);
1992
1911
  }
1993
- if (message.layout !== undefined && message.layout !== '') {
1912
+ if (message.layout !== undefined && message.layout !== "") {
1994
1913
  writer.uint32(18).string(message.layout);
1995
1914
  }
1996
1915
  return writer;
1997
1916
  },
1998
1917
  decode(input, length) {
1999
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1918
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2000
1919
  let end = length === undefined ? reader.len : reader.pos + length;
2001
1920
  const message = createBaseUpdateLayoutRequest();
2002
1921
  while (reader.pos < end) {
@@ -2017,8 +1936,8 @@ exports.UpdateLayoutRequest = {
2017
1936
  },
2018
1937
  fromJSON(object) {
2019
1938
  return {
2020
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
2021
- layout: isSet(object.layout) ? String(object.layout) : '',
1939
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
1940
+ layout: isSet(object.layout) ? String(object.layout) : "",
2022
1941
  };
2023
1942
  },
2024
1943
  toJSON(message) {
@@ -2030,17 +1949,17 @@ exports.UpdateLayoutRequest = {
2030
1949
  fromPartial(object) {
2031
1950
  var _a, _b;
2032
1951
  const message = createBaseUpdateLayoutRequest();
2033
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
2034
- message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
1952
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
1953
+ message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
2035
1954
  return message;
2036
1955
  },
2037
1956
  };
2038
1957
  function createBaseUpdateStreamRequest() {
2039
- return { egressId: '', addOutputUrls: [], removeOutputUrls: [] };
1958
+ return { egressId: "", addOutputUrls: [], removeOutputUrls: [] };
2040
1959
  }
2041
1960
  exports.UpdateStreamRequest = {
2042
- encode(message, writer = _m0.Writer.create()) {
2043
- if (message.egressId !== undefined && message.egressId !== '') {
1961
+ encode(message, writer = minimal_1.default.Writer.create()) {
1962
+ if (message.egressId !== undefined && message.egressId !== "") {
2044
1963
  writer.uint32(10).string(message.egressId);
2045
1964
  }
2046
1965
  if (message.addOutputUrls !== undefined && message.addOutputUrls.length !== 0) {
@@ -2056,7 +1975,7 @@ exports.UpdateStreamRequest = {
2056
1975
  return writer;
2057
1976
  },
2058
1977
  decode(input, length) {
2059
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1978
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2060
1979
  let end = length === undefined ? reader.len : reader.pos + length;
2061
1980
  const message = createBaseUpdateStreamRequest();
2062
1981
  while (reader.pos < end) {
@@ -2080,10 +1999,8 @@ exports.UpdateStreamRequest = {
2080
1999
  },
2081
2000
  fromJSON(object) {
2082
2001
  return {
2083
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
2084
- addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
2085
- ? object.addOutputUrls.map((e) => String(e))
2086
- : [],
2002
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
2003
+ addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls) ? object.addOutputUrls.map((e) => String(e)) : [],
2087
2004
  removeOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.removeOutputUrls)
2088
2005
  ? object.removeOutputUrls.map((e) => String(e))
2089
2006
  : [],
@@ -2109,21 +2026,21 @@ exports.UpdateStreamRequest = {
2109
2026
  fromPartial(object) {
2110
2027
  var _a, _b, _c;
2111
2028
  const message = createBaseUpdateStreamRequest();
2112
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
2029
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
2113
2030
  message.addOutputUrls = ((_b = object.addOutputUrls) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
2114
2031
  message.removeOutputUrls = ((_c = object.removeOutputUrls) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
2115
2032
  return message;
2116
2033
  },
2117
2034
  };
2118
2035
  function createBaseListEgressRequest() {
2119
- return { roomName: '', egressId: '', active: false };
2036
+ return { roomName: "", egressId: "", active: false };
2120
2037
  }
2121
2038
  exports.ListEgressRequest = {
2122
- encode(message, writer = _m0.Writer.create()) {
2123
- if (message.roomName !== undefined && message.roomName !== '') {
2039
+ encode(message, writer = minimal_1.default.Writer.create()) {
2040
+ if (message.roomName !== undefined && message.roomName !== "") {
2124
2041
  writer.uint32(10).string(message.roomName);
2125
2042
  }
2126
- if (message.egressId !== undefined && message.egressId !== '') {
2043
+ if (message.egressId !== undefined && message.egressId !== "") {
2127
2044
  writer.uint32(18).string(message.egressId);
2128
2045
  }
2129
2046
  if (message.active === true) {
@@ -2132,7 +2049,7 @@ exports.ListEgressRequest = {
2132
2049
  return writer;
2133
2050
  },
2134
2051
  decode(input, length) {
2135
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2052
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2136
2053
  let end = length === undefined ? reader.len : reader.pos + length;
2137
2054
  const message = createBaseListEgressRequest();
2138
2055
  while (reader.pos < end) {
@@ -2156,8 +2073,8 @@ exports.ListEgressRequest = {
2156
2073
  },
2157
2074
  fromJSON(object) {
2158
2075
  return {
2159
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
2160
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
2076
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
2077
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
2161
2078
  active: isSet(object.active) ? Boolean(object.active) : false,
2162
2079
  };
2163
2080
  },
@@ -2171,8 +2088,8 @@ exports.ListEgressRequest = {
2171
2088
  fromPartial(object) {
2172
2089
  var _a, _b, _c;
2173
2090
  const message = createBaseListEgressRequest();
2174
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
2175
- message.egressId = (_b = object.egressId) !== null && _b !== void 0 ? _b : '';
2091
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
2092
+ message.egressId = (_b = object.egressId) !== null && _b !== void 0 ? _b : "";
2176
2093
  message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
2177
2094
  return message;
2178
2095
  },
@@ -2181,7 +2098,7 @@ function createBaseListEgressResponse() {
2181
2098
  return { items: [] };
2182
2099
  }
2183
2100
  exports.ListEgressResponse = {
2184
- encode(message, writer = _m0.Writer.create()) {
2101
+ encode(message, writer = minimal_1.default.Writer.create()) {
2185
2102
  if (message.items !== undefined && message.items.length !== 0) {
2186
2103
  for (const v of message.items) {
2187
2104
  exports.EgressInfo.encode(v, writer.uint32(10).fork()).ldelim();
@@ -2190,7 +2107,7 @@ exports.ListEgressResponse = {
2190
2107
  return writer;
2191
2108
  },
2192
2109
  decode(input, length) {
2193
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2110
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2194
2111
  let end = length === undefined ? reader.len : reader.pos + length;
2195
2112
  const message = createBaseListEgressResponse();
2196
2113
  while (reader.pos < end) {
@@ -2207,16 +2124,12 @@ exports.ListEgressResponse = {
2207
2124
  return message;
2208
2125
  },
2209
2126
  fromJSON(object) {
2210
- return {
2211
- items: Array.isArray(object === null || object === void 0 ? void 0 : object.items)
2212
- ? object.items.map((e) => exports.EgressInfo.fromJSON(e))
2213
- : [],
2214
- };
2127
+ return { items: Array.isArray(object === null || object === void 0 ? void 0 : object.items) ? object.items.map((e) => exports.EgressInfo.fromJSON(e)) : [] };
2215
2128
  },
2216
2129
  toJSON(message) {
2217
2130
  const obj = {};
2218
2131
  if (message.items) {
2219
- obj.items = message.items.map((e) => (e ? exports.EgressInfo.toJSON(e) : undefined));
2132
+ obj.items = message.items.map((e) => e ? exports.EgressInfo.toJSON(e) : undefined);
2220
2133
  }
2221
2134
  else {
2222
2135
  obj.items = [];
@@ -2231,17 +2144,17 @@ exports.ListEgressResponse = {
2231
2144
  },
2232
2145
  };
2233
2146
  function createBaseStopEgressRequest() {
2234
- return { egressId: '' };
2147
+ return { egressId: "" };
2235
2148
  }
2236
2149
  exports.StopEgressRequest = {
2237
- encode(message, writer = _m0.Writer.create()) {
2238
- if (message.egressId !== undefined && message.egressId !== '') {
2150
+ encode(message, writer = minimal_1.default.Writer.create()) {
2151
+ if (message.egressId !== undefined && message.egressId !== "") {
2239
2152
  writer.uint32(10).string(message.egressId);
2240
2153
  }
2241
2154
  return writer;
2242
2155
  },
2243
2156
  decode(input, length) {
2244
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2157
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2245
2158
  let end = length === undefined ? reader.len : reader.pos + length;
2246
2159
  const message = createBaseStopEgressRequest();
2247
2160
  while (reader.pos < end) {
@@ -2258,9 +2171,7 @@ exports.StopEgressRequest = {
2258
2171
  return message;
2259
2172
  },
2260
2173
  fromJSON(object) {
2261
- return {
2262
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
2263
- };
2174
+ return { egressId: isSet(object.egressId) ? String(object.egressId) : "" };
2264
2175
  },
2265
2176
  toJSON(message) {
2266
2177
  const obj = {};
@@ -2270,19 +2181,20 @@ exports.StopEgressRequest = {
2270
2181
  fromPartial(object) {
2271
2182
  var _a;
2272
2183
  const message = createBaseStopEgressRequest();
2273
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
2184
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
2274
2185
  return message;
2275
2186
  },
2276
2187
  };
2277
2188
  function createBaseEgressInfo() {
2278
2189
  return {
2279
- egressId: '',
2280
- roomId: '',
2281
- roomName: '',
2190
+ egressId: "",
2191
+ roomId: "",
2192
+ roomName: "",
2282
2193
  status: 0,
2283
2194
  startedAt: 0,
2284
2195
  endedAt: 0,
2285
- error: '',
2196
+ updatedAt: 0,
2197
+ error: "",
2286
2198
  roomComposite: undefined,
2287
2199
  trackComposite: undefined,
2288
2200
  track: undefined,
@@ -2296,14 +2208,14 @@ function createBaseEgressInfo() {
2296
2208
  };
2297
2209
  }
2298
2210
  exports.EgressInfo = {
2299
- encode(message, writer = _m0.Writer.create()) {
2300
- if (message.egressId !== undefined && message.egressId !== '') {
2211
+ encode(message, writer = minimal_1.default.Writer.create()) {
2212
+ if (message.egressId !== undefined && message.egressId !== "") {
2301
2213
  writer.uint32(10).string(message.egressId);
2302
2214
  }
2303
- if (message.roomId !== undefined && message.roomId !== '') {
2215
+ if (message.roomId !== undefined && message.roomId !== "") {
2304
2216
  writer.uint32(18).string(message.roomId);
2305
2217
  }
2306
- if (message.roomName !== undefined && message.roomName !== '') {
2218
+ if (message.roomName !== undefined && message.roomName !== "") {
2307
2219
  writer.uint32(106).string(message.roomName);
2308
2220
  }
2309
2221
  if (message.status !== undefined && message.status !== 0) {
@@ -2315,7 +2227,10 @@ exports.EgressInfo = {
2315
2227
  if (message.endedAt !== undefined && message.endedAt !== 0) {
2316
2228
  writer.uint32(88).int64(message.endedAt);
2317
2229
  }
2318
- if (message.error !== undefined && message.error !== '') {
2230
+ if (message.updatedAt !== undefined && message.updatedAt !== 0) {
2231
+ writer.uint32(144).int64(message.updatedAt);
2232
+ }
2233
+ if (message.error !== undefined && message.error !== "") {
2319
2234
  writer.uint32(74).string(message.error);
2320
2235
  }
2321
2236
  if (message.roomComposite !== undefined) {
@@ -2357,7 +2272,7 @@ exports.EgressInfo = {
2357
2272
  return writer;
2358
2273
  },
2359
2274
  decode(input, length) {
2360
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2275
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2361
2276
  let end = length === undefined ? reader.len : reader.pos + length;
2362
2277
  const message = createBaseEgressInfo();
2363
2278
  while (reader.pos < end) {
@@ -2381,6 +2296,9 @@ exports.EgressInfo = {
2381
2296
  case 11:
2382
2297
  message.endedAt = longToNumber(reader.int64());
2383
2298
  break;
2299
+ case 18:
2300
+ message.updatedAt = longToNumber(reader.int64());
2301
+ break;
2384
2302
  case 9:
2385
2303
  message.error = reader.string();
2386
2304
  break;
@@ -2423,13 +2341,14 @@ exports.EgressInfo = {
2423
2341
  },
2424
2342
  fromJSON(object) {
2425
2343
  return {
2426
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
2427
- roomId: isSet(object.roomId) ? String(object.roomId) : '',
2428
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
2344
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
2345
+ roomId: isSet(object.roomId) ? String(object.roomId) : "",
2346
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
2429
2347
  status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
2430
2348
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2431
2349
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
2432
- error: isSet(object.error) ? String(object.error) : '',
2350
+ updatedAt: isSet(object.updatedAt) ? Number(object.updatedAt) : 0,
2351
+ error: isSet(object.error) ? String(object.error) : "",
2433
2352
  roomComposite: isSet(object.roomComposite)
2434
2353
  ? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
2435
2354
  : undefined,
@@ -2444,9 +2363,7 @@ exports.EgressInfo = {
2444
2363
  streamResults: Array.isArray(object === null || object === void 0 ? void 0 : object.streamResults)
2445
2364
  ? object.streamResults.map((e) => exports.StreamInfo.fromJSON(e))
2446
2365
  : [],
2447
- fileResults: Array.isArray(object === null || object === void 0 ? void 0 : object.fileResults)
2448
- ? object.fileResults.map((e) => exports.FileInfo.fromJSON(e))
2449
- : [],
2366
+ fileResults: Array.isArray(object === null || object === void 0 ? void 0 : object.fileResults) ? object.fileResults.map((e) => exports.FileInfo.fromJSON(e)) : [],
2450
2367
  segmentResults: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentResults)
2451
2368
  ? object.segmentResults.map((e) => exports.SegmentsInfo.fromJSON(e))
2452
2369
  : [],
@@ -2460,33 +2377,29 @@ exports.EgressInfo = {
2460
2377
  message.status !== undefined && (obj.status = egressStatusToJSON(message.status));
2461
2378
  message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
2462
2379
  message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
2380
+ message.updatedAt !== undefined && (obj.updatedAt = Math.round(message.updatedAt));
2463
2381
  message.error !== undefined && (obj.error = message.error);
2464
2382
  message.roomComposite !== undefined &&
2465
2383
  (obj.roomComposite = message.roomComposite
2466
2384
  ? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
2467
2385
  : undefined);
2468
- message.trackComposite !== undefined &&
2469
- (obj.trackComposite = message.trackComposite
2470
- ? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
2471
- : undefined);
2472
- message.track !== undefined &&
2473
- (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
2474
- message.web !== undefined &&
2475
- (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
2476
- message.stream !== undefined &&
2477
- (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
2478
- message.file !== undefined &&
2479
- (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
2386
+ message.trackComposite !== undefined && (obj.trackComposite = message.trackComposite
2387
+ ? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
2388
+ : undefined);
2389
+ message.track !== undefined && (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
2390
+ message.web !== undefined && (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
2391
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
2392
+ message.file !== undefined && (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
2480
2393
  message.segments !== undefined &&
2481
2394
  (obj.segments = message.segments ? exports.SegmentsInfo.toJSON(message.segments) : undefined);
2482
2395
  if (message.streamResults) {
2483
- obj.streamResults = message.streamResults.map((e) => (e ? exports.StreamInfo.toJSON(e) : undefined));
2396
+ obj.streamResults = message.streamResults.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
2484
2397
  }
2485
2398
  else {
2486
2399
  obj.streamResults = [];
2487
2400
  }
2488
2401
  if (message.fileResults) {
2489
- obj.fileResults = message.fileResults.map((e) => (e ? exports.FileInfo.toJSON(e) : undefined));
2402
+ obj.fileResults = message.fileResults.map((e) => e ? exports.FileInfo.toJSON(e) : undefined);
2490
2403
  }
2491
2404
  else {
2492
2405
  obj.fileResults = [];
@@ -2500,46 +2413,38 @@ exports.EgressInfo = {
2500
2413
  return obj;
2501
2414
  },
2502
2415
  fromPartial(object) {
2503
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2416
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2504
2417
  const message = createBaseEgressInfo();
2505
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
2506
- message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : '';
2507
- message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : '';
2418
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
2419
+ message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : "";
2420
+ message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : "";
2508
2421
  message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
2509
2422
  message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
2510
2423
  message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
2511
- message.error = (_g = object.error) !== null && _g !== void 0 ? _g : '';
2512
- message.roomComposite =
2513
- object.roomComposite !== undefined && object.roomComposite !== null
2514
- ? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
2515
- : undefined;
2516
- message.trackComposite =
2517
- object.trackComposite !== undefined && object.trackComposite !== null
2518
- ? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
2519
- : undefined;
2520
- message.track =
2521
- object.track !== undefined && object.track !== null
2522
- ? exports.TrackEgressRequest.fromPartial(object.track)
2523
- : undefined;
2524
- message.web =
2525
- object.web !== undefined && object.web !== null
2526
- ? exports.WebEgressRequest.fromPartial(object.web)
2527
- : undefined;
2528
- message.stream =
2529
- object.stream !== undefined && object.stream !== null
2530
- ? exports.StreamInfoList.fromPartial(object.stream)
2531
- : undefined;
2532
- message.file =
2533
- object.file !== undefined && object.file !== null
2534
- ? exports.FileInfo.fromPartial(object.file)
2535
- : undefined;
2536
- message.segments =
2537
- object.segments !== undefined && object.segments !== null
2538
- ? exports.SegmentsInfo.fromPartial(object.segments)
2539
- : undefined;
2540
- message.streamResults = ((_h = object.streamResults) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamInfo.fromPartial(e))) || [];
2541
- message.fileResults = ((_j = object.fileResults) === null || _j === void 0 ? void 0 : _j.map((e) => exports.FileInfo.fromPartial(e))) || [];
2542
- message.segmentResults = ((_k = object.segmentResults) === null || _k === void 0 ? void 0 : _k.map((e) => exports.SegmentsInfo.fromPartial(e))) || [];
2424
+ message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : 0;
2425
+ message.error = (_h = object.error) !== null && _h !== void 0 ? _h : "";
2426
+ message.roomComposite = (object.roomComposite !== undefined && object.roomComposite !== null)
2427
+ ? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
2428
+ : undefined;
2429
+ message.trackComposite = (object.trackComposite !== undefined && object.trackComposite !== null)
2430
+ ? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
2431
+ : undefined;
2432
+ message.track = (object.track !== undefined && object.track !== null)
2433
+ ? exports.TrackEgressRequest.fromPartial(object.track)
2434
+ : undefined;
2435
+ message.web = (object.web !== undefined && object.web !== null)
2436
+ ? exports.WebEgressRequest.fromPartial(object.web)
2437
+ : undefined;
2438
+ message.stream = (object.stream !== undefined && object.stream !== null)
2439
+ ? exports.StreamInfoList.fromPartial(object.stream)
2440
+ : undefined;
2441
+ message.file = (object.file !== undefined && object.file !== null) ? exports.FileInfo.fromPartial(object.file) : undefined;
2442
+ message.segments = (object.segments !== undefined && object.segments !== null)
2443
+ ? exports.SegmentsInfo.fromPartial(object.segments)
2444
+ : undefined;
2445
+ message.streamResults = ((_j = object.streamResults) === null || _j === void 0 ? void 0 : _j.map((e) => exports.StreamInfo.fromPartial(e))) || [];
2446
+ message.fileResults = ((_k = object.fileResults) === null || _k === void 0 ? void 0 : _k.map((e) => exports.FileInfo.fromPartial(e))) || [];
2447
+ message.segmentResults = ((_l = object.segmentResults) === null || _l === void 0 ? void 0 : _l.map((e) => exports.SegmentsInfo.fromPartial(e))) || [];
2543
2448
  return message;
2544
2449
  },
2545
2450
  };
@@ -2547,7 +2452,7 @@ function createBaseStreamInfoList() {
2547
2452
  return { info: [] };
2548
2453
  }
2549
2454
  exports.StreamInfoList = {
2550
- encode(message, writer = _m0.Writer.create()) {
2455
+ encode(message, writer = minimal_1.default.Writer.create()) {
2551
2456
  if (message.info !== undefined && message.info.length !== 0) {
2552
2457
  for (const v of message.info) {
2553
2458
  exports.StreamInfo.encode(v, writer.uint32(10).fork()).ldelim();
@@ -2556,7 +2461,7 @@ exports.StreamInfoList = {
2556
2461
  return writer;
2557
2462
  },
2558
2463
  decode(input, length) {
2559
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2464
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2560
2465
  let end = length === undefined ? reader.len : reader.pos + length;
2561
2466
  const message = createBaseStreamInfoList();
2562
2467
  while (reader.pos < end) {
@@ -2573,14 +2478,12 @@ exports.StreamInfoList = {
2573
2478
  return message;
2574
2479
  },
2575
2480
  fromJSON(object) {
2576
- return {
2577
- info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [],
2578
- };
2481
+ return { info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [] };
2579
2482
  },
2580
2483
  toJSON(message) {
2581
2484
  const obj = {};
2582
2485
  if (message.info) {
2583
- obj.info = message.info.map((e) => (e ? exports.StreamInfo.toJSON(e) : undefined));
2486
+ obj.info = message.info.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
2584
2487
  }
2585
2488
  else {
2586
2489
  obj.info = [];
@@ -2595,11 +2498,11 @@ exports.StreamInfoList = {
2595
2498
  },
2596
2499
  };
2597
2500
  function createBaseStreamInfo() {
2598
- return { url: '', startedAt: 0, endedAt: 0, duration: 0, status: 0, error: '' };
2501
+ return { url: "", startedAt: 0, endedAt: 0, duration: 0, status: 0, error: "" };
2599
2502
  }
2600
2503
  exports.StreamInfo = {
2601
- encode(message, writer = _m0.Writer.create()) {
2602
- if (message.url !== undefined && message.url !== '') {
2504
+ encode(message, writer = minimal_1.default.Writer.create()) {
2505
+ if (message.url !== undefined && message.url !== "") {
2603
2506
  writer.uint32(10).string(message.url);
2604
2507
  }
2605
2508
  if (message.startedAt !== undefined && message.startedAt !== 0) {
@@ -2614,13 +2517,13 @@ exports.StreamInfo = {
2614
2517
  if (message.status !== undefined && message.status !== 0) {
2615
2518
  writer.uint32(40).int32(message.status);
2616
2519
  }
2617
- if (message.error !== undefined && message.error !== '') {
2520
+ if (message.error !== undefined && message.error !== "") {
2618
2521
  writer.uint32(50).string(message.error);
2619
2522
  }
2620
2523
  return writer;
2621
2524
  },
2622
2525
  decode(input, length) {
2623
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2526
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2624
2527
  let end = length === undefined ? reader.len : reader.pos + length;
2625
2528
  const message = createBaseStreamInfo();
2626
2529
  while (reader.pos < end) {
@@ -2653,12 +2556,12 @@ exports.StreamInfo = {
2653
2556
  },
2654
2557
  fromJSON(object) {
2655
2558
  return {
2656
- url: isSet(object.url) ? String(object.url) : '',
2559
+ url: isSet(object.url) ? String(object.url) : "",
2657
2560
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2658
2561
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
2659
2562
  duration: isSet(object.duration) ? Number(object.duration) : 0,
2660
2563
  status: isSet(object.status) ? streamInfo_StatusFromJSON(object.status) : 0,
2661
- error: isSet(object.error) ? String(object.error) : '',
2564
+ error: isSet(object.error) ? String(object.error) : "",
2662
2565
  };
2663
2566
  },
2664
2567
  toJSON(message) {
@@ -2674,21 +2577,21 @@ exports.StreamInfo = {
2674
2577
  fromPartial(object) {
2675
2578
  var _a, _b, _c, _d, _e, _f;
2676
2579
  const message = createBaseStreamInfo();
2677
- message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
2580
+ message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
2678
2581
  message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
2679
2582
  message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
2680
2583
  message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
2681
2584
  message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
2682
- message.error = (_f = object.error) !== null && _f !== void 0 ? _f : '';
2585
+ message.error = (_f = object.error) !== null && _f !== void 0 ? _f : "";
2683
2586
  return message;
2684
2587
  },
2685
2588
  };
2686
2589
  function createBaseFileInfo() {
2687
- return { filename: '', startedAt: 0, endedAt: 0, duration: 0, size: 0, location: '' };
2590
+ return { filename: "", startedAt: 0, endedAt: 0, duration: 0, size: 0, location: "" };
2688
2591
  }
2689
2592
  exports.FileInfo = {
2690
- encode(message, writer = _m0.Writer.create()) {
2691
- if (message.filename !== undefined && message.filename !== '') {
2593
+ encode(message, writer = minimal_1.default.Writer.create()) {
2594
+ if (message.filename !== undefined && message.filename !== "") {
2692
2595
  writer.uint32(10).string(message.filename);
2693
2596
  }
2694
2597
  if (message.startedAt !== undefined && message.startedAt !== 0) {
@@ -2703,13 +2606,13 @@ exports.FileInfo = {
2703
2606
  if (message.size !== undefined && message.size !== 0) {
2704
2607
  writer.uint32(32).int64(message.size);
2705
2608
  }
2706
- if (message.location !== undefined && message.location !== '') {
2609
+ if (message.location !== undefined && message.location !== "") {
2707
2610
  writer.uint32(42).string(message.location);
2708
2611
  }
2709
2612
  return writer;
2710
2613
  },
2711
2614
  decode(input, length) {
2712
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2615
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2713
2616
  let end = length === undefined ? reader.len : reader.pos + length;
2714
2617
  const message = createBaseFileInfo();
2715
2618
  while (reader.pos < end) {
@@ -2742,12 +2645,12 @@ exports.FileInfo = {
2742
2645
  },
2743
2646
  fromJSON(object) {
2744
2647
  return {
2745
- filename: isSet(object.filename) ? String(object.filename) : '',
2648
+ filename: isSet(object.filename) ? String(object.filename) : "",
2746
2649
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2747
2650
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
2748
2651
  duration: isSet(object.duration) ? Number(object.duration) : 0,
2749
2652
  size: isSet(object.size) ? Number(object.size) : 0,
2750
- location: isSet(object.location) ? String(object.location) : '',
2653
+ location: isSet(object.location) ? String(object.location) : "",
2751
2654
  };
2752
2655
  },
2753
2656
  toJSON(message) {
@@ -2763,29 +2666,21 @@ exports.FileInfo = {
2763
2666
  fromPartial(object) {
2764
2667
  var _a, _b, _c, _d, _e, _f;
2765
2668
  const message = createBaseFileInfo();
2766
- message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : '';
2669
+ message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : "";
2767
2670
  message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
2768
2671
  message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
2769
2672
  message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
2770
2673
  message.size = (_e = object.size) !== null && _e !== void 0 ? _e : 0;
2771
- message.location = (_f = object.location) !== null && _f !== void 0 ? _f : '';
2674
+ message.location = (_f = object.location) !== null && _f !== void 0 ? _f : "";
2772
2675
  return message;
2773
2676
  },
2774
2677
  };
2775
2678
  function createBaseSegmentsInfo() {
2776
- return {
2777
- playlistName: '',
2778
- duration: 0,
2779
- size: 0,
2780
- playlistLocation: '',
2781
- segmentCount: 0,
2782
- startedAt: 0,
2783
- endedAt: 0,
2784
- };
2679
+ return { playlistName: "", duration: 0, size: 0, playlistLocation: "", segmentCount: 0, startedAt: 0, endedAt: 0 };
2785
2680
  }
2786
2681
  exports.SegmentsInfo = {
2787
- encode(message, writer = _m0.Writer.create()) {
2788
- if (message.playlistName !== undefined && message.playlistName !== '') {
2682
+ encode(message, writer = minimal_1.default.Writer.create()) {
2683
+ if (message.playlistName !== undefined && message.playlistName !== "") {
2789
2684
  writer.uint32(10).string(message.playlistName);
2790
2685
  }
2791
2686
  if (message.duration !== undefined && message.duration !== 0) {
@@ -2794,7 +2689,7 @@ exports.SegmentsInfo = {
2794
2689
  if (message.size !== undefined && message.size !== 0) {
2795
2690
  writer.uint32(24).int64(message.size);
2796
2691
  }
2797
- if (message.playlistLocation !== undefined && message.playlistLocation !== '') {
2692
+ if (message.playlistLocation !== undefined && message.playlistLocation !== "") {
2798
2693
  writer.uint32(34).string(message.playlistLocation);
2799
2694
  }
2800
2695
  if (message.segmentCount !== undefined && message.segmentCount !== 0) {
@@ -2809,7 +2704,7 @@ exports.SegmentsInfo = {
2809
2704
  return writer;
2810
2705
  },
2811
2706
  decode(input, length) {
2812
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2707
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2813
2708
  let end = length === undefined ? reader.len : reader.pos + length;
2814
2709
  const message = createBaseSegmentsInfo();
2815
2710
  while (reader.pos < end) {
@@ -2845,10 +2740,10 @@ exports.SegmentsInfo = {
2845
2740
  },
2846
2741
  fromJSON(object) {
2847
2742
  return {
2848
- playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
2743
+ playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
2849
2744
  duration: isSet(object.duration) ? Number(object.duration) : 0,
2850
2745
  size: isSet(object.size) ? Number(object.size) : 0,
2851
- playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : '',
2746
+ playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : "",
2852
2747
  segmentCount: isSet(object.segmentCount) ? Number(object.segmentCount) : 0,
2853
2748
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2854
2749
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
@@ -2868,10 +2763,10 @@ exports.SegmentsInfo = {
2868
2763
  fromPartial(object) {
2869
2764
  var _a, _b, _c, _d, _e, _f, _g;
2870
2765
  const message = createBaseSegmentsInfo();
2871
- message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : '';
2766
+ message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : "";
2872
2767
  message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
2873
2768
  message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
2874
- message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : '';
2769
+ message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : "";
2875
2770
  message.segmentCount = (_e = object.segmentCount) !== null && _e !== void 0 ? _e : 0;
2876
2771
  message.startedAt = (_f = object.startedAt) !== null && _f !== void 0 ? _f : 0;
2877
2772
  message.endedAt = (_g = object.endedAt) !== null && _g !== void 0 ? _g : 0;
@@ -2879,11 +2774,11 @@ exports.SegmentsInfo = {
2879
2774
  },
2880
2775
  };
2881
2776
  function createBaseAutoTrackEgress() {
2882
- return { filepath: '', disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
2777
+ return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
2883
2778
  }
2884
2779
  exports.AutoTrackEgress = {
2885
- encode(message, writer = _m0.Writer.create()) {
2886
- if (message.filepath !== undefined && message.filepath !== '') {
2780
+ encode(message, writer = minimal_1.default.Writer.create()) {
2781
+ if (message.filepath !== undefined && message.filepath !== "") {
2887
2782
  writer.uint32(10).string(message.filepath);
2888
2783
  }
2889
2784
  if (message.disableManifest === true) {
@@ -2901,7 +2796,7 @@ exports.AutoTrackEgress = {
2901
2796
  return writer;
2902
2797
  },
2903
2798
  decode(input, length) {
2904
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2799
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2905
2800
  let end = length === undefined ? reader.len : reader.pos + length;
2906
2801
  const message = createBaseAutoTrackEgress();
2907
2802
  while (reader.pos < end) {
@@ -2931,7 +2826,7 @@ exports.AutoTrackEgress = {
2931
2826
  },
2932
2827
  fromJSON(object) {
2933
2828
  return {
2934
- filepath: isSet(object.filepath) ? String(object.filepath) : '',
2829
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
2935
2830
  disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
2936
2831
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
2937
2832
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
@@ -2943,53 +2838,50 @@ exports.AutoTrackEgress = {
2943
2838
  message.filepath !== undefined && (obj.filepath = message.filepath);
2944
2839
  message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
2945
2840
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
2946
- message.gcp !== undefined &&
2947
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
2948
- message.azure !== undefined &&
2949
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
2841
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
2842
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
2950
2843
  return obj;
2951
2844
  },
2952
2845
  fromPartial(object) {
2953
2846
  var _a, _b;
2954
2847
  const message = createBaseAutoTrackEgress();
2955
- message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : '';
2848
+ message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
2956
2849
  message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
2957
- message.s3 =
2958
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
2959
- message.gcp =
2960
- object.gcp !== undefined && object.gcp !== null
2961
- ? exports.GCPUpload.fromPartial(object.gcp)
2962
- : undefined;
2963
- message.azure =
2964
- object.azure !== undefined && object.azure !== null
2965
- ? exports.AzureBlobUpload.fromPartial(object.azure)
2966
- : undefined;
2850
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
2851
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
2852
+ message.azure = (object.azure !== undefined && object.azure !== null)
2853
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
2854
+ : undefined;
2967
2855
  return message;
2968
2856
  },
2969
2857
  };
2970
2858
  var globalThis = (() => {
2971
- if (typeof globalThis !== 'undefined')
2859
+ if (typeof globalThis !== "undefined") {
2972
2860
  return globalThis;
2973
- if (typeof self !== 'undefined')
2861
+ }
2862
+ if (typeof self !== "undefined") {
2974
2863
  return self;
2975
- if (typeof window !== 'undefined')
2864
+ }
2865
+ if (typeof window !== "undefined") {
2976
2866
  return window;
2977
- if (typeof global !== 'undefined')
2867
+ }
2868
+ if (typeof global !== "undefined") {
2978
2869
  return global;
2979
- throw 'Unable to locate global object';
2870
+ }
2871
+ throw "Unable to locate global object";
2980
2872
  })();
2981
2873
  function longToNumber(long) {
2982
2874
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
2983
- throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
2875
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2984
2876
  }
2985
2877
  return long.toNumber();
2986
2878
  }
2987
- if (_m0.util.Long !== long_1.default) {
2988
- _m0.util.Long = long_1.default;
2989
- _m0.configure();
2879
+ if (minimal_1.default.util.Long !== long_1.default) {
2880
+ minimal_1.default.util.Long = long_1.default;
2881
+ minimal_1.default.configure();
2990
2882
  }
2991
2883
  function isObject(value) {
2992
- return typeof value === 'object' && value !== null;
2884
+ return typeof value === "object" && value !== null;
2993
2885
  }
2994
2886
  function isSet(value) {
2995
2887
  return value !== null && value !== undefined;