livekit-server-sdk 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.eslintrc.js +1 -1
  2. package/README.md +2 -0
  3. package/dist/EgressClient.d.ts +68 -12
  4. package/dist/EgressClient.js +59 -28
  5. package/dist/EgressClient.js.map +1 -1
  6. package/dist/IngressClient.d.ts +84 -0
  7. package/dist/IngressClient.js +113 -0
  8. package/dist/IngressClient.js.map +1 -0
  9. package/dist/RoomServiceClient.d.ts +10 -6
  10. package/dist/RoomServiceClient.js +13 -14
  11. package/dist/RoomServiceClient.js.map +1 -1
  12. package/dist/ServiceBase.d.ts +16 -0
  13. package/dist/ServiceBase.js +27 -0
  14. package/dist/ServiceBase.js.map +1 -0
  15. package/dist/grants.d.ts +2 -0
  16. package/dist/index.d.ts +3 -1
  17. package/dist/index.js +9 -6
  18. package/dist/index.js.map +1 -1
  19. package/dist/proto/google/protobuf/timestamp.d.ts +5 -5
  20. package/dist/proto/google/protobuf/timestamp.js +17 -32
  21. package/dist/proto/google/protobuf/timestamp.js.map +1 -1
  22. package/dist/proto/livekit_egress.d.ts +3750 -929
  23. package/dist/proto/livekit_egress.js +973 -486
  24. package/dist/proto/livekit_egress.js.map +1 -1
  25. package/dist/proto/livekit_ingress.d.ts +152 -110
  26. package/dist/proto/livekit_ingress.js +218 -272
  27. package/dist/proto/livekit_ingress.js.map +1 -1
  28. package/dist/proto/livekit_models.d.ts +77 -58
  29. package/dist/proto/livekit_models.js +396 -447
  30. package/dist/proto/livekit_models.js.map +1 -1
  31. package/dist/proto/livekit_room.d.ts +1238 -79
  32. package/dist/proto/livekit_room.js +252 -197
  33. package/dist/proto/livekit_room.js.map +1 -1
  34. package/dist/proto/livekit_webhook.d.ts +1015 -89
  35. package/dist/proto/livekit_webhook.js +43 -68
  36. package/dist/proto/livekit_webhook.js.map +1 -1
  37. package/generate-proto.sh +25 -0
  38. package/package.json +3 -3
  39. package/dist/proto/google/protobuf/empty.d.ts +0 -31
  40. package/dist/proto/google/protobuf/empty.js +0 -67
  41. package/dist/proto/google/protobuf/empty.js.map +0 -1
@@ -1,32 +1,13 @@
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
  };
24
5
  Object.defineProperty(exports, "__esModule", { value: true });
25
- 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.AzureBlobUpload = exports.GCPUpload = exports.S3Upload = exports.DirectFileOutput = exports.SegmentedFileOutput = exports.EncodedFileOutput = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.RoomCompositeEgressRequest = exports.streamInfo_StatusToJSON = exports.streamInfo_StatusFromJSON = exports.StreamInfo_Status = exports.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.videoCodecToJSON = exports.videoCodecFromJSON = exports.VideoCodec = exports.audioCodecToJSON = exports.audioCodecFromJSON = exports.AudioCodec = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = exports.protobufPackage = void 0;
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.WebEgressRequest = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.RoomCompositeEgressRequest = exports.streamInfo_StatusToJSON = exports.streamInfo_StatusFromJSON = exports.StreamInfo_Status = exports.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.videoCodecToJSON = exports.videoCodecFromJSON = exports.VideoCodec = exports.audioCodecToJSON = exports.audioCodecFromJSON = exports.AudioCodec = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = 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"));
29
- exports.protobufPackage = 'livekit';
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "livekit";
30
11
  var EncodedFileType;
31
12
  (function (EncodedFileType) {
32
13
  /** DEFAULT_FILETYPE - file type chosen based on codecs */
@@ -38,16 +19,16 @@ var EncodedFileType;
38
19
  function encodedFileTypeFromJSON(object) {
39
20
  switch (object) {
40
21
  case 0:
41
- case 'DEFAULT_FILETYPE':
22
+ case "DEFAULT_FILETYPE":
42
23
  return EncodedFileType.DEFAULT_FILETYPE;
43
24
  case 1:
44
- case 'MP4':
25
+ case "MP4":
45
26
  return EncodedFileType.MP4;
46
27
  case 2:
47
- case 'OGG':
28
+ case "OGG":
48
29
  return EncodedFileType.OGG;
49
30
  case -1:
50
- case 'UNRECOGNIZED':
31
+ case "UNRECOGNIZED":
51
32
  default:
52
33
  return EncodedFileType.UNRECOGNIZED;
53
34
  }
@@ -56,13 +37,14 @@ exports.encodedFileTypeFromJSON = encodedFileTypeFromJSON;
56
37
  function encodedFileTypeToJSON(object) {
57
38
  switch (object) {
58
39
  case EncodedFileType.DEFAULT_FILETYPE:
59
- return 'DEFAULT_FILETYPE';
40
+ return "DEFAULT_FILETYPE";
60
41
  case EncodedFileType.MP4:
61
- return 'MP4';
42
+ return "MP4";
62
43
  case EncodedFileType.OGG:
63
- return 'OGG';
44
+ return "OGG";
45
+ case EncodedFileType.UNRECOGNIZED:
64
46
  default:
65
- return 'UNKNOWN';
47
+ return "UNRECOGNIZED";
66
48
  }
67
49
  }
68
50
  exports.encodedFileTypeToJSON = encodedFileTypeToJSON;
@@ -76,13 +58,13 @@ var StreamProtocol;
76
58
  function streamProtocolFromJSON(object) {
77
59
  switch (object) {
78
60
  case 0:
79
- case 'DEFAULT_PROTOCOL':
61
+ case "DEFAULT_PROTOCOL":
80
62
  return StreamProtocol.DEFAULT_PROTOCOL;
81
63
  case 1:
82
- case 'RTMP':
64
+ case "RTMP":
83
65
  return StreamProtocol.RTMP;
84
66
  case -1:
85
- case 'UNRECOGNIZED':
67
+ case "UNRECOGNIZED":
86
68
  default:
87
69
  return StreamProtocol.UNRECOGNIZED;
88
70
  }
@@ -91,11 +73,12 @@ exports.streamProtocolFromJSON = streamProtocolFromJSON;
91
73
  function streamProtocolToJSON(object) {
92
74
  switch (object) {
93
75
  case StreamProtocol.DEFAULT_PROTOCOL:
94
- return 'DEFAULT_PROTOCOL';
76
+ return "DEFAULT_PROTOCOL";
95
77
  case StreamProtocol.RTMP:
96
- return 'RTMP';
78
+ return "RTMP";
79
+ case StreamProtocol.UNRECOGNIZED:
97
80
  default:
98
- return 'UNKNOWN';
81
+ return "UNRECOGNIZED";
99
82
  }
100
83
  }
101
84
  exports.streamProtocolToJSON = streamProtocolToJSON;
@@ -108,13 +91,13 @@ var SegmentedFileProtocol;
108
91
  function segmentedFileProtocolFromJSON(object) {
109
92
  switch (object) {
110
93
  case 0:
111
- case 'DEFAULT_SEGMENTED_FILE_PROTOCOL':
94
+ case "DEFAULT_SEGMENTED_FILE_PROTOCOL":
112
95
  return SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
113
96
  case 1:
114
- case 'HLS_PROTOCOL':
97
+ case "HLS_PROTOCOL":
115
98
  return SegmentedFileProtocol.HLS_PROTOCOL;
116
99
  case -1:
117
- case 'UNRECOGNIZED':
100
+ case "UNRECOGNIZED":
118
101
  default:
119
102
  return SegmentedFileProtocol.UNRECOGNIZED;
120
103
  }
@@ -123,11 +106,12 @@ exports.segmentedFileProtocolFromJSON = segmentedFileProtocolFromJSON;
123
106
  function segmentedFileProtocolToJSON(object) {
124
107
  switch (object) {
125
108
  case SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL:
126
- return 'DEFAULT_SEGMENTED_FILE_PROTOCOL';
109
+ return "DEFAULT_SEGMENTED_FILE_PROTOCOL";
127
110
  case SegmentedFileProtocol.HLS_PROTOCOL:
128
- return 'HLS_PROTOCOL';
111
+ return "HLS_PROTOCOL";
112
+ case SegmentedFileProtocol.UNRECOGNIZED:
129
113
  default:
130
- return 'UNKNOWN';
114
+ return "UNRECOGNIZED";
131
115
  }
132
116
  }
133
117
  exports.segmentedFileProtocolToJSON = segmentedFileProtocolToJSON;
@@ -141,16 +125,16 @@ var AudioCodec;
141
125
  function audioCodecFromJSON(object) {
142
126
  switch (object) {
143
127
  case 0:
144
- case 'DEFAULT_AC':
128
+ case "DEFAULT_AC":
145
129
  return AudioCodec.DEFAULT_AC;
146
130
  case 1:
147
- case 'OPUS':
131
+ case "OPUS":
148
132
  return AudioCodec.OPUS;
149
133
  case 2:
150
- case 'AAC':
134
+ case "AAC":
151
135
  return AudioCodec.AAC;
152
136
  case -1:
153
- case 'UNRECOGNIZED':
137
+ case "UNRECOGNIZED":
154
138
  default:
155
139
  return AudioCodec.UNRECOGNIZED;
156
140
  }
@@ -159,13 +143,14 @@ exports.audioCodecFromJSON = audioCodecFromJSON;
159
143
  function audioCodecToJSON(object) {
160
144
  switch (object) {
161
145
  case AudioCodec.DEFAULT_AC:
162
- return 'DEFAULT_AC';
146
+ return "DEFAULT_AC";
163
147
  case AudioCodec.OPUS:
164
- return 'OPUS';
148
+ return "OPUS";
165
149
  case AudioCodec.AAC:
166
- return 'AAC';
150
+ return "AAC";
151
+ case AudioCodec.UNRECOGNIZED:
167
152
  default:
168
- return 'UNKNOWN';
153
+ return "UNRECOGNIZED";
169
154
  }
170
155
  }
171
156
  exports.audioCodecToJSON = audioCodecToJSON;
@@ -180,19 +165,19 @@ var VideoCodec;
180
165
  function videoCodecFromJSON(object) {
181
166
  switch (object) {
182
167
  case 0:
183
- case 'DEFAULT_VC':
168
+ case "DEFAULT_VC":
184
169
  return VideoCodec.DEFAULT_VC;
185
170
  case 1:
186
- case 'H264_BASELINE':
171
+ case "H264_BASELINE":
187
172
  return VideoCodec.H264_BASELINE;
188
173
  case 2:
189
- case 'H264_MAIN':
174
+ case "H264_MAIN":
190
175
  return VideoCodec.H264_MAIN;
191
176
  case 3:
192
- case 'H264_HIGH':
177
+ case "H264_HIGH":
193
178
  return VideoCodec.H264_HIGH;
194
179
  case -1:
195
- case 'UNRECOGNIZED':
180
+ case "UNRECOGNIZED":
196
181
  default:
197
182
  return VideoCodec.UNRECOGNIZED;
198
183
  }
@@ -201,46 +186,67 @@ exports.videoCodecFromJSON = videoCodecFromJSON;
201
186
  function videoCodecToJSON(object) {
202
187
  switch (object) {
203
188
  case VideoCodec.DEFAULT_VC:
204
- return 'DEFAULT_VC';
189
+ return "DEFAULT_VC";
205
190
  case VideoCodec.H264_BASELINE:
206
- return 'H264_BASELINE';
191
+ return "H264_BASELINE";
207
192
  case VideoCodec.H264_MAIN:
208
- return 'H264_MAIN';
193
+ return "H264_MAIN";
209
194
  case VideoCodec.H264_HIGH:
210
- return 'H264_HIGH';
195
+ return "H264_HIGH";
196
+ case VideoCodec.UNRECOGNIZED:
211
197
  default:
212
- return 'UNKNOWN';
198
+ return "UNRECOGNIZED";
213
199
  }
214
200
  }
215
201
  exports.videoCodecToJSON = videoCodecToJSON;
216
202
  var EncodingOptionsPreset;
217
203
  (function (EncodingOptionsPreset) {
218
- /** H264_720P_30 - 720p, 30fps, 3000kpbs, H.264_MAIN / OPUS */
204
+ /** H264_720P_30 - 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS */
219
205
  EncodingOptionsPreset[EncodingOptionsPreset["H264_720P_30"] = 0] = "H264_720P_30";
220
- /** H264_720P_60 - 720p, 60fps, 4500kbps, H.264_MAIN / OPUS */
206
+ /** H264_720P_60 - 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS */
221
207
  EncodingOptionsPreset[EncodingOptionsPreset["H264_720P_60"] = 1] = "H264_720P_60";
222
- /** H264_1080P_30 - 1080p, 30fps, 4500kbps, H.264_MAIN / OPUS */
208
+ /** H264_1080P_30 - 1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS */
223
209
  EncodingOptionsPreset[EncodingOptionsPreset["H264_1080P_30"] = 2] = "H264_1080P_30";
224
- /** H264_1080P_60 - 1080p, 60fps, 6000kbps, H.264_MAIN / OPUS */
210
+ /** H264_1080P_60 - 1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS */
225
211
  EncodingOptionsPreset[EncodingOptionsPreset["H264_1080P_60"] = 3] = "H264_1080P_60";
212
+ /** PORTRAIT_H264_720P_30 - 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS */
213
+ EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_720P_30"] = 4] = "PORTRAIT_H264_720P_30";
214
+ /** PORTRAIT_H264_720P_60 - 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS */
215
+ EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_720P_60"] = 5] = "PORTRAIT_H264_720P_60";
216
+ /** PORTRAIT_H264_1080P_30 - 1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS */
217
+ EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_1080P_30"] = 6] = "PORTRAIT_H264_1080P_30";
218
+ /** PORTRAIT_H264_1080P_60 - 1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS */
219
+ EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_1080P_60"] = 7] = "PORTRAIT_H264_1080P_60";
226
220
  EncodingOptionsPreset[EncodingOptionsPreset["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
227
221
  })(EncodingOptionsPreset = exports.EncodingOptionsPreset || (exports.EncodingOptionsPreset = {}));
228
222
  function encodingOptionsPresetFromJSON(object) {
229
223
  switch (object) {
230
224
  case 0:
231
- case 'H264_720P_30':
225
+ case "H264_720P_30":
232
226
  return EncodingOptionsPreset.H264_720P_30;
233
227
  case 1:
234
- case 'H264_720P_60':
228
+ case "H264_720P_60":
235
229
  return EncodingOptionsPreset.H264_720P_60;
236
230
  case 2:
237
- case 'H264_1080P_30':
231
+ case "H264_1080P_30":
238
232
  return EncodingOptionsPreset.H264_1080P_30;
239
233
  case 3:
240
- case 'H264_1080P_60':
234
+ case "H264_1080P_60":
241
235
  return EncodingOptionsPreset.H264_1080P_60;
236
+ case 4:
237
+ case "PORTRAIT_H264_720P_30":
238
+ return EncodingOptionsPreset.PORTRAIT_H264_720P_30;
239
+ case 5:
240
+ case "PORTRAIT_H264_720P_60":
241
+ return EncodingOptionsPreset.PORTRAIT_H264_720P_60;
242
+ case 6:
243
+ case "PORTRAIT_H264_1080P_30":
244
+ return EncodingOptionsPreset.PORTRAIT_H264_1080P_30;
245
+ case 7:
246
+ case "PORTRAIT_H264_1080P_60":
247
+ return EncodingOptionsPreset.PORTRAIT_H264_1080P_60;
242
248
  case -1:
243
- case 'UNRECOGNIZED':
249
+ case "UNRECOGNIZED":
244
250
  default:
245
251
  return EncodingOptionsPreset.UNRECOGNIZED;
246
252
  }
@@ -249,15 +255,24 @@ exports.encodingOptionsPresetFromJSON = encodingOptionsPresetFromJSON;
249
255
  function encodingOptionsPresetToJSON(object) {
250
256
  switch (object) {
251
257
  case EncodingOptionsPreset.H264_720P_30:
252
- return 'H264_720P_30';
258
+ return "H264_720P_30";
253
259
  case EncodingOptionsPreset.H264_720P_60:
254
- return 'H264_720P_60';
260
+ return "H264_720P_60";
255
261
  case EncodingOptionsPreset.H264_1080P_30:
256
- return 'H264_1080P_30';
262
+ return "H264_1080P_30";
257
263
  case EncodingOptionsPreset.H264_1080P_60:
258
- return 'H264_1080P_60';
264
+ return "H264_1080P_60";
265
+ case EncodingOptionsPreset.PORTRAIT_H264_720P_30:
266
+ return "PORTRAIT_H264_720P_30";
267
+ case EncodingOptionsPreset.PORTRAIT_H264_720P_60:
268
+ return "PORTRAIT_H264_720P_60";
269
+ case EncodingOptionsPreset.PORTRAIT_H264_1080P_30:
270
+ return "PORTRAIT_H264_1080P_30";
271
+ case EncodingOptionsPreset.PORTRAIT_H264_1080P_60:
272
+ return "PORTRAIT_H264_1080P_60";
273
+ case EncodingOptionsPreset.UNRECOGNIZED:
259
274
  default:
260
- return 'UNKNOWN';
275
+ return "UNRECOGNIZED";
261
276
  }
262
277
  }
263
278
  exports.encodingOptionsPresetToJSON = encodingOptionsPresetToJSON;
@@ -275,28 +290,28 @@ var EgressStatus;
275
290
  function egressStatusFromJSON(object) {
276
291
  switch (object) {
277
292
  case 0:
278
- case 'EGRESS_STARTING':
293
+ case "EGRESS_STARTING":
279
294
  return EgressStatus.EGRESS_STARTING;
280
295
  case 1:
281
- case 'EGRESS_ACTIVE':
296
+ case "EGRESS_ACTIVE":
282
297
  return EgressStatus.EGRESS_ACTIVE;
283
298
  case 2:
284
- case 'EGRESS_ENDING':
299
+ case "EGRESS_ENDING":
285
300
  return EgressStatus.EGRESS_ENDING;
286
301
  case 3:
287
- case 'EGRESS_COMPLETE':
302
+ case "EGRESS_COMPLETE":
288
303
  return EgressStatus.EGRESS_COMPLETE;
289
304
  case 4:
290
- case 'EGRESS_FAILED':
305
+ case "EGRESS_FAILED":
291
306
  return EgressStatus.EGRESS_FAILED;
292
307
  case 5:
293
- case 'EGRESS_ABORTED':
308
+ case "EGRESS_ABORTED":
294
309
  return EgressStatus.EGRESS_ABORTED;
295
310
  case 6:
296
- case 'EGRESS_LIMIT_REACHED':
311
+ case "EGRESS_LIMIT_REACHED":
297
312
  return EgressStatus.EGRESS_LIMIT_REACHED;
298
313
  case -1:
299
- case 'UNRECOGNIZED':
314
+ case "UNRECOGNIZED":
300
315
  default:
301
316
  return EgressStatus.UNRECOGNIZED;
302
317
  }
@@ -305,21 +320,22 @@ exports.egressStatusFromJSON = egressStatusFromJSON;
305
320
  function egressStatusToJSON(object) {
306
321
  switch (object) {
307
322
  case EgressStatus.EGRESS_STARTING:
308
- return 'EGRESS_STARTING';
323
+ return "EGRESS_STARTING";
309
324
  case EgressStatus.EGRESS_ACTIVE:
310
- return 'EGRESS_ACTIVE';
325
+ return "EGRESS_ACTIVE";
311
326
  case EgressStatus.EGRESS_ENDING:
312
- return 'EGRESS_ENDING';
327
+ return "EGRESS_ENDING";
313
328
  case EgressStatus.EGRESS_COMPLETE:
314
- return 'EGRESS_COMPLETE';
329
+ return "EGRESS_COMPLETE";
315
330
  case EgressStatus.EGRESS_FAILED:
316
- return 'EGRESS_FAILED';
331
+ return "EGRESS_FAILED";
317
332
  case EgressStatus.EGRESS_ABORTED:
318
- return 'EGRESS_ABORTED';
333
+ return "EGRESS_ABORTED";
319
334
  case EgressStatus.EGRESS_LIMIT_REACHED:
320
- return 'EGRESS_LIMIT_REACHED';
335
+ return "EGRESS_LIMIT_REACHED";
336
+ case EgressStatus.UNRECOGNIZED:
321
337
  default:
322
- return 'UNKNOWN';
338
+ return "UNRECOGNIZED";
323
339
  }
324
340
  }
325
341
  exports.egressStatusToJSON = egressStatusToJSON;
@@ -333,16 +349,16 @@ var StreamInfo_Status;
333
349
  function streamInfo_StatusFromJSON(object) {
334
350
  switch (object) {
335
351
  case 0:
336
- case 'ACTIVE':
352
+ case "ACTIVE":
337
353
  return StreamInfo_Status.ACTIVE;
338
354
  case 1:
339
- case 'FINISHED':
355
+ case "FINISHED":
340
356
  return StreamInfo_Status.FINISHED;
341
357
  case 2:
342
- case 'FAILED':
358
+ case "FAILED":
343
359
  return StreamInfo_Status.FAILED;
344
360
  case -1:
345
- case 'UNRECOGNIZED':
361
+ case "UNRECOGNIZED":
346
362
  default:
347
363
  return StreamInfo_Status.UNRECOGNIZED;
348
364
  }
@@ -351,23 +367,24 @@ exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
351
367
  function streamInfo_StatusToJSON(object) {
352
368
  switch (object) {
353
369
  case StreamInfo_Status.ACTIVE:
354
- return 'ACTIVE';
370
+ return "ACTIVE";
355
371
  case StreamInfo_Status.FINISHED:
356
- return 'FINISHED';
372
+ return "FINISHED";
357
373
  case StreamInfo_Status.FAILED:
358
- return 'FAILED';
374
+ return "FAILED";
375
+ case StreamInfo_Status.UNRECOGNIZED:
359
376
  default:
360
- return 'UNKNOWN';
377
+ return "UNRECOGNIZED";
361
378
  }
362
379
  }
363
380
  exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
364
381
  function createBaseRoomCompositeEgressRequest() {
365
382
  return {
366
- roomName: '',
367
- layout: '',
383
+ roomName: "",
384
+ layout: "",
368
385
  audioOnly: false,
369
386
  videoOnly: false,
370
- customBaseUrl: '',
387
+ customBaseUrl: "",
371
388
  file: undefined,
372
389
  stream: undefined,
373
390
  segments: undefined,
@@ -376,11 +393,11 @@ function createBaseRoomCompositeEgressRequest() {
376
393
  };
377
394
  }
378
395
  exports.RoomCompositeEgressRequest = {
379
- encode(message, writer = _m0.Writer.create()) {
380
- if (message.roomName !== '') {
396
+ encode(message, writer = minimal_1.default.Writer.create()) {
397
+ if (message.roomName !== undefined && message.roomName !== "") {
381
398
  writer.uint32(10).string(message.roomName);
382
399
  }
383
- if (message.layout !== '') {
400
+ if (message.layout !== undefined && message.layout !== "") {
384
401
  writer.uint32(18).string(message.layout);
385
402
  }
386
403
  if (message.audioOnly === true) {
@@ -389,7 +406,7 @@ exports.RoomCompositeEgressRequest = {
389
406
  if (message.videoOnly === true) {
390
407
  writer.uint32(32).bool(message.videoOnly);
391
408
  }
392
- if (message.customBaseUrl !== '') {
409
+ if (message.customBaseUrl !== undefined && message.customBaseUrl !== "") {
393
410
  writer.uint32(42).string(message.customBaseUrl);
394
411
  }
395
412
  if (message.file !== undefined) {
@@ -410,7 +427,7 @@ exports.RoomCompositeEgressRequest = {
410
427
  return writer;
411
428
  },
412
429
  decode(input, length) {
413
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
430
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
414
431
  let end = length === undefined ? reader.len : reader.pos + length;
415
432
  const message = createBaseRoomCompositeEgressRequest();
416
433
  while (reader.pos < end) {
@@ -455,11 +472,11 @@ exports.RoomCompositeEgressRequest = {
455
472
  },
456
473
  fromJSON(object) {
457
474
  return {
458
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
459
- layout: isSet(object.layout) ? String(object.layout) : '',
475
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
476
+ layout: isSet(object.layout) ? String(object.layout) : "",
460
477
  audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
461
478
  videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
462
- customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : '',
479
+ customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : "",
463
480
  file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
464
481
  stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
465
482
  segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
@@ -474,15 +491,12 @@ exports.RoomCompositeEgressRequest = {
474
491
  message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
475
492
  message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
476
493
  message.customBaseUrl !== undefined && (obj.customBaseUrl = message.customBaseUrl);
477
- message.file !== undefined &&
478
- (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
479
- message.stream !== undefined &&
480
- (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
494
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
495
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
481
496
  message.segments !== undefined &&
482
497
  (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
483
498
  message.preset !== undefined &&
484
- (obj.preset =
485
- message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
499
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
486
500
  message.advanced !== undefined &&
487
501
  (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
488
502
  return obj;
@@ -490,36 +504,32 @@ exports.RoomCompositeEgressRequest = {
490
504
  fromPartial(object) {
491
505
  var _a, _b, _c, _d, _e, _f;
492
506
  const message = createBaseRoomCompositeEgressRequest();
493
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
494
- message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
507
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
508
+ message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
495
509
  message.audioOnly = (_c = object.audioOnly) !== null && _c !== void 0 ? _c : false;
496
510
  message.videoOnly = (_d = object.videoOnly) !== null && _d !== void 0 ? _d : false;
497
- message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : '';
498
- message.file =
499
- object.file !== undefined && object.file !== null
500
- ? exports.EncodedFileOutput.fromPartial(object.file)
501
- : undefined;
502
- message.stream =
503
- object.stream !== undefined && object.stream !== null
504
- ? exports.StreamOutput.fromPartial(object.stream)
505
- : undefined;
506
- message.segments =
507
- object.segments !== undefined && object.segments !== null
508
- ? exports.SegmentedFileOutput.fromPartial(object.segments)
509
- : undefined;
511
+ message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : "";
512
+ message.file = (object.file !== undefined && object.file !== null)
513
+ ? exports.EncodedFileOutput.fromPartial(object.file)
514
+ : undefined;
515
+ message.stream = (object.stream !== undefined && object.stream !== null)
516
+ ? exports.StreamOutput.fromPartial(object.stream)
517
+ : undefined;
518
+ message.segments = (object.segments !== undefined && object.segments !== null)
519
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
520
+ : undefined;
510
521
  message.preset = (_f = object.preset) !== null && _f !== void 0 ? _f : undefined;
511
- message.advanced =
512
- object.advanced !== undefined && object.advanced !== null
513
- ? exports.EncodingOptions.fromPartial(object.advanced)
514
- : undefined;
522
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
523
+ ? exports.EncodingOptions.fromPartial(object.advanced)
524
+ : undefined;
515
525
  return message;
516
526
  },
517
527
  };
518
528
  function createBaseTrackCompositeEgressRequest() {
519
529
  return {
520
- roomName: '',
521
- audioTrackId: '',
522
- videoTrackId: '',
530
+ roomName: "",
531
+ audioTrackId: "",
532
+ videoTrackId: "",
523
533
  file: undefined,
524
534
  stream: undefined,
525
535
  segments: undefined,
@@ -528,14 +538,14 @@ function createBaseTrackCompositeEgressRequest() {
528
538
  };
529
539
  }
530
540
  exports.TrackCompositeEgressRequest = {
531
- encode(message, writer = _m0.Writer.create()) {
532
- if (message.roomName !== '') {
541
+ encode(message, writer = minimal_1.default.Writer.create()) {
542
+ if (message.roomName !== undefined && message.roomName !== "") {
533
543
  writer.uint32(10).string(message.roomName);
534
544
  }
535
- if (message.audioTrackId !== '') {
545
+ if (message.audioTrackId !== undefined && message.audioTrackId !== "") {
536
546
  writer.uint32(18).string(message.audioTrackId);
537
547
  }
538
- if (message.videoTrackId !== '') {
548
+ if (message.videoTrackId !== undefined && message.videoTrackId !== "") {
539
549
  writer.uint32(26).string(message.videoTrackId);
540
550
  }
541
551
  if (message.file !== undefined) {
@@ -556,7 +566,7 @@ exports.TrackCompositeEgressRequest = {
556
566
  return writer;
557
567
  },
558
568
  decode(input, length) {
559
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
569
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
560
570
  let end = length === undefined ? reader.len : reader.pos + length;
561
571
  const message = createBaseTrackCompositeEgressRequest();
562
572
  while (reader.pos < end) {
@@ -595,9 +605,9 @@ exports.TrackCompositeEgressRequest = {
595
605
  },
596
606
  fromJSON(object) {
597
607
  return {
598
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
599
- audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : '',
600
- videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : '',
608
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
609
+ audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : "",
610
+ videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : "",
601
611
  file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
602
612
  stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
603
613
  segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
@@ -610,15 +620,12 @@ exports.TrackCompositeEgressRequest = {
610
620
  message.roomName !== undefined && (obj.roomName = message.roomName);
611
621
  message.audioTrackId !== undefined && (obj.audioTrackId = message.audioTrackId);
612
622
  message.videoTrackId !== undefined && (obj.videoTrackId = message.videoTrackId);
613
- message.file !== undefined &&
614
- (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
615
- message.stream !== undefined &&
616
- (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
623
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
624
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
617
625
  message.segments !== undefined &&
618
626
  (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
619
627
  message.preset !== undefined &&
620
- (obj.preset =
621
- message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
628
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
622
629
  message.advanced !== undefined &&
623
630
  (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
624
631
  return obj;
@@ -626,38 +633,34 @@ exports.TrackCompositeEgressRequest = {
626
633
  fromPartial(object) {
627
634
  var _a, _b, _c, _d;
628
635
  const message = createBaseTrackCompositeEgressRequest();
629
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
630
- message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : '';
631
- message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c : '';
632
- message.file =
633
- object.file !== undefined && object.file !== null
634
- ? exports.EncodedFileOutput.fromPartial(object.file)
635
- : undefined;
636
- message.stream =
637
- object.stream !== undefined && object.stream !== null
638
- ? exports.StreamOutput.fromPartial(object.stream)
639
- : undefined;
640
- message.segments =
641
- object.segments !== undefined && object.segments !== null
642
- ? exports.SegmentedFileOutput.fromPartial(object.segments)
643
- : undefined;
636
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
637
+ message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : "";
638
+ message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c : "";
639
+ message.file = (object.file !== undefined && object.file !== null)
640
+ ? exports.EncodedFileOutput.fromPartial(object.file)
641
+ : undefined;
642
+ message.stream = (object.stream !== undefined && object.stream !== null)
643
+ ? exports.StreamOutput.fromPartial(object.stream)
644
+ : undefined;
645
+ message.segments = (object.segments !== undefined && object.segments !== null)
646
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
647
+ : undefined;
644
648
  message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
645
- message.advanced =
646
- object.advanced !== undefined && object.advanced !== null
647
- ? exports.EncodingOptions.fromPartial(object.advanced)
648
- : undefined;
649
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
650
+ ? exports.EncodingOptions.fromPartial(object.advanced)
651
+ : undefined;
649
652
  return message;
650
653
  },
651
654
  };
652
655
  function createBaseTrackEgressRequest() {
653
- return { roomName: '', trackId: '', file: undefined, websocketUrl: undefined };
656
+ return { roomName: "", trackId: "", file: undefined, websocketUrl: undefined };
654
657
  }
655
658
  exports.TrackEgressRequest = {
656
- encode(message, writer = _m0.Writer.create()) {
657
- if (message.roomName !== '') {
659
+ encode(message, writer = minimal_1.default.Writer.create()) {
660
+ if (message.roomName !== undefined && message.roomName !== "") {
658
661
  writer.uint32(10).string(message.roomName);
659
662
  }
660
- if (message.trackId !== '') {
663
+ if (message.trackId !== undefined && message.trackId !== "") {
661
664
  writer.uint32(18).string(message.trackId);
662
665
  }
663
666
  if (message.file !== undefined) {
@@ -669,7 +672,7 @@ exports.TrackEgressRequest = {
669
672
  return writer;
670
673
  },
671
674
  decode(input, length) {
672
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
675
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
673
676
  let end = length === undefined ? reader.len : reader.pos + length;
674
677
  const message = createBaseTrackEgressRequest();
675
678
  while (reader.pos < end) {
@@ -696,8 +699,8 @@ exports.TrackEgressRequest = {
696
699
  },
697
700
  fromJSON(object) {
698
701
  return {
699
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
700
- trackId: isSet(object.trackId) ? String(object.trackId) : '',
702
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
703
+ trackId: isSet(object.trackId) ? String(object.trackId) : "",
701
704
  file: isSet(object.file) ? exports.DirectFileOutput.fromJSON(object.file) : undefined,
702
705
  websocketUrl: isSet(object.websocketUrl) ? String(object.websocketUrl) : undefined,
703
706
  };
@@ -706,35 +709,171 @@ exports.TrackEgressRequest = {
706
709
  const obj = {};
707
710
  message.roomName !== undefined && (obj.roomName = message.roomName);
708
711
  message.trackId !== undefined && (obj.trackId = message.trackId);
709
- message.file !== undefined &&
710
- (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
712
+ message.file !== undefined && (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
711
713
  message.websocketUrl !== undefined && (obj.websocketUrl = message.websocketUrl);
712
714
  return obj;
713
715
  },
714
716
  fromPartial(object) {
715
717
  var _a, _b, _c;
716
718
  const message = createBaseTrackEgressRequest();
717
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
718
- message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b : '';
719
- message.file =
720
- object.file !== undefined && object.file !== null
721
- ? exports.DirectFileOutput.fromPartial(object.file)
722
- : undefined;
719
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
720
+ message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b : "";
721
+ message.file = (object.file !== undefined && object.file !== null)
722
+ ? exports.DirectFileOutput.fromPartial(object.file)
723
+ : undefined;
723
724
  message.websocketUrl = (_c = object.websocketUrl) !== null && _c !== void 0 ? _c : undefined;
724
725
  return message;
725
726
  },
726
727
  };
728
+ function createBaseWebEgressRequest() {
729
+ return {
730
+ url: "",
731
+ audioOnly: false,
732
+ videoOnly: false,
733
+ file: undefined,
734
+ stream: undefined,
735
+ segments: undefined,
736
+ preset: undefined,
737
+ advanced: undefined,
738
+ };
739
+ }
740
+ exports.WebEgressRequest = {
741
+ encode(message, writer = minimal_1.default.Writer.create()) {
742
+ if (message.url !== undefined && message.url !== "") {
743
+ writer.uint32(10).string(message.url);
744
+ }
745
+ if (message.audioOnly === true) {
746
+ writer.uint32(16).bool(message.audioOnly);
747
+ }
748
+ if (message.videoOnly === true) {
749
+ writer.uint32(24).bool(message.videoOnly);
750
+ }
751
+ if (message.file !== undefined) {
752
+ exports.EncodedFileOutput.encode(message.file, writer.uint32(34).fork()).ldelim();
753
+ }
754
+ if (message.stream !== undefined) {
755
+ exports.StreamOutput.encode(message.stream, writer.uint32(42).fork()).ldelim();
756
+ }
757
+ if (message.segments !== undefined) {
758
+ exports.SegmentedFileOutput.encode(message.segments, writer.uint32(50).fork()).ldelim();
759
+ }
760
+ if (message.preset !== undefined) {
761
+ writer.uint32(56).int32(message.preset);
762
+ }
763
+ if (message.advanced !== undefined) {
764
+ exports.EncodingOptions.encode(message.advanced, writer.uint32(66).fork()).ldelim();
765
+ }
766
+ return writer;
767
+ },
768
+ decode(input, length) {
769
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
770
+ let end = length === undefined ? reader.len : reader.pos + length;
771
+ const message = createBaseWebEgressRequest();
772
+ while (reader.pos < end) {
773
+ const tag = reader.uint32();
774
+ switch (tag >>> 3) {
775
+ case 1:
776
+ message.url = reader.string();
777
+ break;
778
+ case 2:
779
+ message.audioOnly = reader.bool();
780
+ break;
781
+ case 3:
782
+ message.videoOnly = reader.bool();
783
+ break;
784
+ case 4:
785
+ message.file = exports.EncodedFileOutput.decode(reader, reader.uint32());
786
+ break;
787
+ case 5:
788
+ message.stream = exports.StreamOutput.decode(reader, reader.uint32());
789
+ break;
790
+ case 6:
791
+ message.segments = exports.SegmentedFileOutput.decode(reader, reader.uint32());
792
+ break;
793
+ case 7:
794
+ message.preset = reader.int32();
795
+ break;
796
+ case 8:
797
+ message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
798
+ break;
799
+ default:
800
+ reader.skipType(tag & 7);
801
+ break;
802
+ }
803
+ }
804
+ return message;
805
+ },
806
+ fromJSON(object) {
807
+ return {
808
+ url: isSet(object.url) ? String(object.url) : "",
809
+ audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
810
+ videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
811
+ file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
812
+ stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
813
+ segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
814
+ preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
815
+ advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
816
+ };
817
+ },
818
+ toJSON(message) {
819
+ const obj = {};
820
+ message.url !== undefined && (obj.url = message.url);
821
+ message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
822
+ message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
823
+ message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
824
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
825
+ message.segments !== undefined &&
826
+ (obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
827
+ message.preset !== undefined &&
828
+ (obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
829
+ message.advanced !== undefined &&
830
+ (obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
831
+ return obj;
832
+ },
833
+ fromPartial(object) {
834
+ var _a, _b, _c, _d;
835
+ const message = createBaseWebEgressRequest();
836
+ message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
837
+ message.audioOnly = (_b = object.audioOnly) !== null && _b !== void 0 ? _b : false;
838
+ message.videoOnly = (_c = object.videoOnly) !== null && _c !== void 0 ? _c : false;
839
+ message.file = (object.file !== undefined && object.file !== null)
840
+ ? exports.EncodedFileOutput.fromPartial(object.file)
841
+ : undefined;
842
+ message.stream = (object.stream !== undefined && object.stream !== null)
843
+ ? exports.StreamOutput.fromPartial(object.stream)
844
+ : undefined;
845
+ message.segments = (object.segments !== undefined && object.segments !== null)
846
+ ? exports.SegmentedFileOutput.fromPartial(object.segments)
847
+ : undefined;
848
+ message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
849
+ message.advanced = (object.advanced !== undefined && object.advanced !== null)
850
+ ? exports.EncodingOptions.fromPartial(object.advanced)
851
+ : undefined;
852
+ return message;
853
+ },
854
+ };
727
855
  function createBaseEncodedFileOutput() {
728
- return { fileType: 0, filepath: '', s3: undefined, gcp: undefined, azure: undefined };
856
+ return {
857
+ fileType: 0,
858
+ filepath: "",
859
+ disableManifest: false,
860
+ s3: undefined,
861
+ gcp: undefined,
862
+ azure: undefined,
863
+ aliOSS: undefined,
864
+ };
729
865
  }
730
866
  exports.EncodedFileOutput = {
731
- encode(message, writer = _m0.Writer.create()) {
732
- if (message.fileType !== 0) {
867
+ encode(message, writer = minimal_1.default.Writer.create()) {
868
+ if (message.fileType !== undefined && message.fileType !== 0) {
733
869
  writer.uint32(8).int32(message.fileType);
734
870
  }
735
- if (message.filepath !== '') {
871
+ if (message.filepath !== undefined && message.filepath !== "") {
736
872
  writer.uint32(18).string(message.filepath);
737
873
  }
874
+ if (message.disableManifest === true) {
875
+ writer.uint32(48).bool(message.disableManifest);
876
+ }
738
877
  if (message.s3 !== undefined) {
739
878
  exports.S3Upload.encode(message.s3, writer.uint32(26).fork()).ldelim();
740
879
  }
@@ -744,10 +883,13 @@ exports.EncodedFileOutput = {
744
883
  if (message.azure !== undefined) {
745
884
  exports.AzureBlobUpload.encode(message.azure, writer.uint32(42).fork()).ldelim();
746
885
  }
886
+ if (message.aliOSS !== undefined) {
887
+ exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(58).fork()).ldelim();
888
+ }
747
889
  return writer;
748
890
  },
749
891
  decode(input, length) {
750
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
892
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
751
893
  let end = length === undefined ? reader.len : reader.pos + length;
752
894
  const message = createBaseEncodedFileOutput();
753
895
  while (reader.pos < end) {
@@ -759,6 +901,9 @@ exports.EncodedFileOutput = {
759
901
  case 2:
760
902
  message.filepath = reader.string();
761
903
  break;
904
+ case 6:
905
+ message.disableManifest = reader.bool();
906
+ break;
762
907
  case 3:
763
908
  message.s3 = exports.S3Upload.decode(reader, reader.uint32());
764
909
  break;
@@ -768,6 +913,9 @@ exports.EncodedFileOutput = {
768
913
  case 5:
769
914
  message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
770
915
  break;
916
+ case 7:
917
+ message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
918
+ break;
771
919
  default:
772
920
  reader.skipType(tag & 7);
773
921
  break;
@@ -778,66 +926,72 @@ exports.EncodedFileOutput = {
778
926
  fromJSON(object) {
779
927
  return {
780
928
  fileType: isSet(object.fileType) ? encodedFileTypeFromJSON(object.fileType) : 0,
781
- filepath: isSet(object.filepath) ? String(object.filepath) : '',
929
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
930
+ disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
782
931
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
783
932
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
784
933
  azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
934
+ aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
785
935
  };
786
936
  },
787
937
  toJSON(message) {
788
938
  const obj = {};
789
939
  message.fileType !== undefined && (obj.fileType = encodedFileTypeToJSON(message.fileType));
790
940
  message.filepath !== undefined && (obj.filepath = message.filepath);
941
+ message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
791
942
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
792
- message.gcp !== undefined &&
793
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
794
- message.azure !== undefined &&
795
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
943
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
944
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
945
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
796
946
  return obj;
797
947
  },
798
948
  fromPartial(object) {
799
- var _a, _b;
949
+ var _a, _b, _c;
800
950
  const message = createBaseEncodedFileOutput();
801
951
  message.fileType = (_a = object.fileType) !== null && _a !== void 0 ? _a : 0;
802
- message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : '';
803
- message.s3 =
804
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
805
- message.gcp =
806
- object.gcp !== undefined && object.gcp !== null
807
- ? exports.GCPUpload.fromPartial(object.gcp)
808
- : undefined;
809
- message.azure =
810
- object.azure !== undefined && object.azure !== null
811
- ? exports.AzureBlobUpload.fromPartial(object.azure)
812
- : undefined;
952
+ message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : "";
953
+ message.disableManifest = (_c = object.disableManifest) !== null && _c !== void 0 ? _c : false;
954
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
955
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
956
+ message.azure = (object.azure !== undefined && object.azure !== null)
957
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
958
+ : undefined;
959
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
960
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
961
+ : undefined;
813
962
  return message;
814
963
  },
815
964
  };
816
965
  function createBaseSegmentedFileOutput() {
817
966
  return {
818
967
  protocol: 0,
819
- filenamePrefix: '',
820
- playlistName: '',
968
+ filenamePrefix: "",
969
+ playlistName: "",
821
970
  segmentDuration: 0,
971
+ disableManifest: false,
822
972
  s3: undefined,
823
973
  gcp: undefined,
824
974
  azure: undefined,
975
+ aliOSS: undefined,
825
976
  };
826
977
  }
827
978
  exports.SegmentedFileOutput = {
828
- encode(message, writer = _m0.Writer.create()) {
829
- if (message.protocol !== 0) {
979
+ encode(message, writer = minimal_1.default.Writer.create()) {
980
+ if (message.protocol !== undefined && message.protocol !== 0) {
830
981
  writer.uint32(8).int32(message.protocol);
831
982
  }
832
- if (message.filenamePrefix !== '') {
983
+ if (message.filenamePrefix !== undefined && message.filenamePrefix !== "") {
833
984
  writer.uint32(18).string(message.filenamePrefix);
834
985
  }
835
- if (message.playlistName !== '') {
986
+ if (message.playlistName !== undefined && message.playlistName !== "") {
836
987
  writer.uint32(26).string(message.playlistName);
837
988
  }
838
- if (message.segmentDuration !== 0) {
989
+ if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
839
990
  writer.uint32(32).uint32(message.segmentDuration);
840
991
  }
992
+ if (message.disableManifest === true) {
993
+ writer.uint32(64).bool(message.disableManifest);
994
+ }
841
995
  if (message.s3 !== undefined) {
842
996
  exports.S3Upload.encode(message.s3, writer.uint32(42).fork()).ldelim();
843
997
  }
@@ -847,10 +1001,13 @@ exports.SegmentedFileOutput = {
847
1001
  if (message.azure !== undefined) {
848
1002
  exports.AzureBlobUpload.encode(message.azure, writer.uint32(58).fork()).ldelim();
849
1003
  }
1004
+ if (message.aliOSS !== undefined) {
1005
+ exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(74).fork()).ldelim();
1006
+ }
850
1007
  return writer;
851
1008
  },
852
1009
  decode(input, length) {
853
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1010
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
854
1011
  let end = length === undefined ? reader.len : reader.pos + length;
855
1012
  const message = createBaseSegmentedFileOutput();
856
1013
  while (reader.pos < end) {
@@ -868,6 +1025,9 @@ exports.SegmentedFileOutput = {
868
1025
  case 4:
869
1026
  message.segmentDuration = reader.uint32();
870
1027
  break;
1028
+ case 8:
1029
+ message.disableManifest = reader.bool();
1030
+ break;
871
1031
  case 5:
872
1032
  message.s3 = exports.S3Upload.decode(reader, reader.uint32());
873
1033
  break;
@@ -877,6 +1037,9 @@ exports.SegmentedFileOutput = {
877
1037
  case 7:
878
1038
  message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
879
1039
  break;
1040
+ case 9:
1041
+ message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
1042
+ break;
880
1043
  default:
881
1044
  reader.skipType(tag & 7);
882
1045
  break;
@@ -887,57 +1050,59 @@ exports.SegmentedFileOutput = {
887
1050
  fromJSON(object) {
888
1051
  return {
889
1052
  protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
890
- filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : '',
891
- playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
1053
+ filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
1054
+ playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
892
1055
  segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
1056
+ disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
893
1057
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
894
1058
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
895
1059
  azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
1060
+ aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
896
1061
  };
897
1062
  },
898
1063
  toJSON(message) {
899
1064
  const obj = {};
900
- message.protocol !== undefined &&
901
- (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
1065
+ message.protocol !== undefined && (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
902
1066
  message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
903
1067
  message.playlistName !== undefined && (obj.playlistName = message.playlistName);
904
- message.segmentDuration !== undefined &&
905
- (obj.segmentDuration = Math.round(message.segmentDuration));
1068
+ message.segmentDuration !== undefined && (obj.segmentDuration = Math.round(message.segmentDuration));
1069
+ message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
906
1070
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
907
- message.gcp !== undefined &&
908
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
909
- message.azure !== undefined &&
910
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1071
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1072
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1073
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
911
1074
  return obj;
912
1075
  },
913
1076
  fromPartial(object) {
914
- var _a, _b, _c, _d;
1077
+ var _a, _b, _c, _d, _e;
915
1078
  const message = createBaseSegmentedFileOutput();
916
1079
  message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
917
- message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : '';
918
- message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : '';
1080
+ message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : "";
1081
+ message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : "";
919
1082
  message.segmentDuration = (_d = object.segmentDuration) !== null && _d !== void 0 ? _d : 0;
920
- message.s3 =
921
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
922
- message.gcp =
923
- object.gcp !== undefined && object.gcp !== null
924
- ? exports.GCPUpload.fromPartial(object.gcp)
925
- : undefined;
926
- message.azure =
927
- object.azure !== undefined && object.azure !== null
928
- ? exports.AzureBlobUpload.fromPartial(object.azure)
929
- : undefined;
1083
+ message.disableManifest = (_e = object.disableManifest) !== null && _e !== void 0 ? _e : false;
1084
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
1085
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
1086
+ message.azure = (object.azure !== undefined && object.azure !== null)
1087
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
1088
+ : undefined;
1089
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
1090
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1091
+ : undefined;
930
1092
  return message;
931
1093
  },
932
1094
  };
933
1095
  function createBaseDirectFileOutput() {
934
- return { filepath: '', s3: undefined, gcp: undefined, azure: undefined };
1096
+ return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined, aliOSS: undefined };
935
1097
  }
936
1098
  exports.DirectFileOutput = {
937
- encode(message, writer = _m0.Writer.create()) {
938
- if (message.filepath !== '') {
1099
+ encode(message, writer = minimal_1.default.Writer.create()) {
1100
+ if (message.filepath !== undefined && message.filepath !== "") {
939
1101
  writer.uint32(10).string(message.filepath);
940
1102
  }
1103
+ if (message.disableManifest === true) {
1104
+ writer.uint32(40).bool(message.disableManifest);
1105
+ }
941
1106
  if (message.s3 !== undefined) {
942
1107
  exports.S3Upload.encode(message.s3, writer.uint32(18).fork()).ldelim();
943
1108
  }
@@ -947,10 +1112,13 @@ exports.DirectFileOutput = {
947
1112
  if (message.azure !== undefined) {
948
1113
  exports.AzureBlobUpload.encode(message.azure, writer.uint32(34).fork()).ldelim();
949
1114
  }
1115
+ if (message.aliOSS !== undefined) {
1116
+ exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(50).fork()).ldelim();
1117
+ }
950
1118
  return writer;
951
1119
  },
952
1120
  decode(input, length) {
953
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1121
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
954
1122
  let end = length === undefined ? reader.len : reader.pos + length;
955
1123
  const message = createBaseDirectFileOutput();
956
1124
  while (reader.pos < end) {
@@ -959,6 +1127,9 @@ exports.DirectFileOutput = {
959
1127
  case 1:
960
1128
  message.filepath = reader.string();
961
1129
  break;
1130
+ case 5:
1131
+ message.disableManifest = reader.bool();
1132
+ break;
962
1133
  case 2:
963
1134
  message.s3 = exports.S3Upload.decode(reader, reader.uint32());
964
1135
  break;
@@ -968,6 +1139,9 @@ exports.DirectFileOutput = {
968
1139
  case 4:
969
1140
  message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
970
1141
  break;
1142
+ case 6:
1143
+ message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
1144
+ break;
971
1145
  default:
972
1146
  reader.skipType(tag & 7);
973
1147
  break;
@@ -977,63 +1151,82 @@ exports.DirectFileOutput = {
977
1151
  },
978
1152
  fromJSON(object) {
979
1153
  return {
980
- filepath: isSet(object.filepath) ? String(object.filepath) : '',
1154
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
1155
+ disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
981
1156
  s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
982
1157
  gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
983
1158
  azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
1159
+ aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
984
1160
  };
985
1161
  },
986
1162
  toJSON(message) {
987
1163
  const obj = {};
988
1164
  message.filepath !== undefined && (obj.filepath = message.filepath);
1165
+ message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
989
1166
  message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
990
- message.gcp !== undefined &&
991
- (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
992
- message.azure !== undefined &&
993
- (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1167
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
1168
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
1169
+ message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
994
1170
  return obj;
995
1171
  },
996
1172
  fromPartial(object) {
997
- var _a;
1173
+ var _a, _b;
998
1174
  const message = createBaseDirectFileOutput();
999
- message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : '';
1000
- message.s3 =
1001
- object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
1002
- message.gcp =
1003
- object.gcp !== undefined && object.gcp !== null
1004
- ? exports.GCPUpload.fromPartial(object.gcp)
1005
- : undefined;
1006
- message.azure =
1007
- object.azure !== undefined && object.azure !== null
1008
- ? exports.AzureBlobUpload.fromPartial(object.azure)
1009
- : undefined;
1175
+ message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
1176
+ message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
1177
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
1178
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
1179
+ message.azure = (object.azure !== undefined && object.azure !== null)
1180
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
1181
+ : undefined;
1182
+ message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
1183
+ ? exports.AliOSSUpload.fromPartial(object.aliOSS)
1184
+ : undefined;
1010
1185
  return message;
1011
1186
  },
1012
1187
  };
1013
1188
  function createBaseS3Upload() {
1014
- return { accessKey: '', secret: '', region: '', endpoint: '', bucket: '' };
1189
+ return {
1190
+ accessKey: "",
1191
+ secret: "",
1192
+ region: "",
1193
+ endpoint: "",
1194
+ bucket: "",
1195
+ forcePathStyle: false,
1196
+ metadata: {},
1197
+ tagging: "",
1198
+ };
1015
1199
  }
1016
1200
  exports.S3Upload = {
1017
- encode(message, writer = _m0.Writer.create()) {
1018
- if (message.accessKey !== '') {
1201
+ encode(message, writer = minimal_1.default.Writer.create()) {
1202
+ if (message.accessKey !== undefined && message.accessKey !== "") {
1019
1203
  writer.uint32(10).string(message.accessKey);
1020
1204
  }
1021
- if (message.secret !== '') {
1205
+ if (message.secret !== undefined && message.secret !== "") {
1022
1206
  writer.uint32(18).string(message.secret);
1023
1207
  }
1024
- if (message.region !== '') {
1208
+ if (message.region !== undefined && message.region !== "") {
1025
1209
  writer.uint32(26).string(message.region);
1026
1210
  }
1027
- if (message.endpoint !== '') {
1211
+ if (message.endpoint !== undefined && message.endpoint !== "") {
1028
1212
  writer.uint32(34).string(message.endpoint);
1029
1213
  }
1030
- if (message.bucket !== '') {
1214
+ if (message.bucket !== undefined && message.bucket !== "") {
1031
1215
  writer.uint32(42).string(message.bucket);
1032
1216
  }
1217
+ if (message.forcePathStyle === true) {
1218
+ writer.uint32(48).bool(message.forcePathStyle);
1219
+ }
1220
+ Object.entries(message.metadata || {}).forEach(([key, value]) => {
1221
+ exports.S3Upload_MetadataEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
1222
+ });
1223
+ if (message.tagging !== undefined && message.tagging !== "") {
1224
+ writer.uint32(66).string(message.tagging);
1225
+ }
1033
1226
  return writer;
1034
1227
  },
1035
1228
  decode(input, length) {
1036
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1229
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1037
1230
  let end = length === undefined ? reader.len : reader.pos + length;
1038
1231
  const message = createBaseS3Upload();
1039
1232
  while (reader.pos < end) {
@@ -1054,6 +1247,18 @@ exports.S3Upload = {
1054
1247
  case 5:
1055
1248
  message.bucket = reader.string();
1056
1249
  break;
1250
+ case 6:
1251
+ message.forcePathStyle = reader.bool();
1252
+ break;
1253
+ case 7:
1254
+ const entry7 = exports.S3Upload_MetadataEntry.decode(reader, reader.uint32());
1255
+ if (entry7.value !== undefined) {
1256
+ message.metadata[entry7.key] = entry7.value;
1257
+ }
1258
+ break;
1259
+ case 8:
1260
+ message.tagging = reader.string();
1261
+ break;
1057
1262
  default:
1058
1263
  reader.skipType(tag & 7);
1059
1264
  break;
@@ -1063,11 +1268,19 @@ exports.S3Upload = {
1063
1268
  },
1064
1269
  fromJSON(object) {
1065
1270
  return {
1066
- accessKey: isSet(object.accessKey) ? String(object.accessKey) : '',
1067
- secret: isSet(object.secret) ? String(object.secret) : '',
1068
- region: isSet(object.region) ? String(object.region) : '',
1069
- endpoint: isSet(object.endpoint) ? String(object.endpoint) : '',
1070
- bucket: isSet(object.bucket) ? String(object.bucket) : '',
1271
+ accessKey: isSet(object.accessKey) ? String(object.accessKey) : "",
1272
+ secret: isSet(object.secret) ? String(object.secret) : "",
1273
+ region: isSet(object.region) ? String(object.region) : "",
1274
+ endpoint: isSet(object.endpoint) ? String(object.endpoint) : "",
1275
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1276
+ forcePathStyle: isSet(object.forcePathStyle) ? Boolean(object.forcePathStyle) : false,
1277
+ metadata: isObject(object.metadata)
1278
+ ? Object.entries(object.metadata).reduce((acc, [key, value]) => {
1279
+ acc[key] = String(value);
1280
+ return acc;
1281
+ }, {})
1282
+ : {},
1283
+ tagging: isSet(object.tagging) ? String(object.tagging) : "",
1071
1284
  };
1072
1285
  },
1073
1286
  toJSON(message) {
@@ -1077,34 +1290,100 @@ exports.S3Upload = {
1077
1290
  message.region !== undefined && (obj.region = message.region);
1078
1291
  message.endpoint !== undefined && (obj.endpoint = message.endpoint);
1079
1292
  message.bucket !== undefined && (obj.bucket = message.bucket);
1293
+ message.forcePathStyle !== undefined && (obj.forcePathStyle = message.forcePathStyle);
1294
+ obj.metadata = {};
1295
+ if (message.metadata) {
1296
+ Object.entries(message.metadata).forEach(([k, v]) => {
1297
+ obj.metadata[k] = v;
1298
+ });
1299
+ }
1300
+ message.tagging !== undefined && (obj.tagging = message.tagging);
1080
1301
  return obj;
1081
1302
  },
1082
1303
  fromPartial(object) {
1083
- var _a, _b, _c, _d, _e;
1304
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1084
1305
  const message = createBaseS3Upload();
1085
- message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : '';
1086
- message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : '';
1087
- message.region = (_c = object.region) !== null && _c !== void 0 ? _c : '';
1088
- message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : '';
1089
- message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : '';
1306
+ message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : "";
1307
+ message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : "";
1308
+ message.region = (_c = object.region) !== null && _c !== void 0 ? _c : "";
1309
+ message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : "";
1310
+ message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : "";
1311
+ message.forcePathStyle = (_f = object.forcePathStyle) !== null && _f !== void 0 ? _f : false;
1312
+ message.metadata = Object.entries((_g = object.metadata) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
1313
+ if (value !== undefined) {
1314
+ acc[key] = String(value);
1315
+ }
1316
+ return acc;
1317
+ }, {});
1318
+ message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h : "";
1319
+ return message;
1320
+ },
1321
+ };
1322
+ function createBaseS3Upload_MetadataEntry() {
1323
+ return { key: "", value: "" };
1324
+ }
1325
+ exports.S3Upload_MetadataEntry = {
1326
+ encode(message, writer = minimal_1.default.Writer.create()) {
1327
+ if (message.key !== "") {
1328
+ writer.uint32(10).string(message.key);
1329
+ }
1330
+ if (message.value !== "") {
1331
+ writer.uint32(18).string(message.value);
1332
+ }
1333
+ return writer;
1334
+ },
1335
+ decode(input, length) {
1336
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1337
+ let end = length === undefined ? reader.len : reader.pos + length;
1338
+ const message = createBaseS3Upload_MetadataEntry();
1339
+ while (reader.pos < end) {
1340
+ const tag = reader.uint32();
1341
+ switch (tag >>> 3) {
1342
+ case 1:
1343
+ message.key = reader.string();
1344
+ break;
1345
+ case 2:
1346
+ message.value = reader.string();
1347
+ break;
1348
+ default:
1349
+ reader.skipType(tag & 7);
1350
+ break;
1351
+ }
1352
+ }
1353
+ return message;
1354
+ },
1355
+ fromJSON(object) {
1356
+ return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1357
+ },
1358
+ toJSON(message) {
1359
+ const obj = {};
1360
+ message.key !== undefined && (obj.key = message.key);
1361
+ message.value !== undefined && (obj.value = message.value);
1362
+ return obj;
1363
+ },
1364
+ fromPartial(object) {
1365
+ var _a, _b;
1366
+ const message = createBaseS3Upload_MetadataEntry();
1367
+ message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
1368
+ message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
1090
1369
  return message;
1091
1370
  },
1092
1371
  };
1093
1372
  function createBaseGCPUpload() {
1094
- return { credentials: new Uint8Array(), bucket: '' };
1373
+ return { credentials: new Uint8Array(), bucket: "" };
1095
1374
  }
1096
1375
  exports.GCPUpload = {
1097
- encode(message, writer = _m0.Writer.create()) {
1098
- if (message.credentials.length !== 0) {
1376
+ encode(message, writer = minimal_1.default.Writer.create()) {
1377
+ if (message.credentials !== undefined && message.credentials.length !== 0) {
1099
1378
  writer.uint32(10).bytes(message.credentials);
1100
1379
  }
1101
- if (message.bucket !== '') {
1380
+ if (message.bucket !== undefined && message.bucket !== "") {
1102
1381
  writer.uint32(18).string(message.bucket);
1103
1382
  }
1104
1383
  return writer;
1105
1384
  },
1106
1385
  decode(input, length) {
1107
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1386
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1108
1387
  let end = length === undefined ? reader.len : reader.pos + length;
1109
1388
  const message = createBaseGCPUpload();
1110
1389
  while (reader.pos < end) {
@@ -1125,10 +1404,8 @@ exports.GCPUpload = {
1125
1404
  },
1126
1405
  fromJSON(object) {
1127
1406
  return {
1128
- credentials: isSet(object.credentials)
1129
- ? bytesFromBase64(object.credentials)
1130
- : new Uint8Array(),
1131
- bucket: isSet(object.bucket) ? String(object.bucket) : '',
1407
+ credentials: isSet(object.credentials) ? bytesFromBase64(object.credentials) : new Uint8Array(),
1408
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1132
1409
  };
1133
1410
  },
1134
1411
  toJSON(message) {
@@ -1142,28 +1419,28 @@ exports.GCPUpload = {
1142
1419
  var _a, _b;
1143
1420
  const message = createBaseGCPUpload();
1144
1421
  message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : new Uint8Array();
1145
- message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : '';
1422
+ message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : "";
1146
1423
  return message;
1147
1424
  },
1148
1425
  };
1149
1426
  function createBaseAzureBlobUpload() {
1150
- return { accountName: '', accountKey: '', containerName: '' };
1427
+ return { accountName: "", accountKey: "", containerName: "" };
1151
1428
  }
1152
1429
  exports.AzureBlobUpload = {
1153
- encode(message, writer = _m0.Writer.create()) {
1154
- if (message.accountName !== '') {
1430
+ encode(message, writer = minimal_1.default.Writer.create()) {
1431
+ if (message.accountName !== undefined && message.accountName !== "") {
1155
1432
  writer.uint32(10).string(message.accountName);
1156
1433
  }
1157
- if (message.accountKey !== '') {
1434
+ if (message.accountKey !== undefined && message.accountKey !== "") {
1158
1435
  writer.uint32(18).string(message.accountKey);
1159
1436
  }
1160
- if (message.containerName !== '') {
1437
+ if (message.containerName !== undefined && message.containerName !== "") {
1161
1438
  writer.uint32(26).string(message.containerName);
1162
1439
  }
1163
1440
  return writer;
1164
1441
  },
1165
1442
  decode(input, length) {
1166
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1443
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1167
1444
  let end = length === undefined ? reader.len : reader.pos + length;
1168
1445
  const message = createBaseAzureBlobUpload();
1169
1446
  while (reader.pos < end) {
@@ -1187,9 +1464,9 @@ exports.AzureBlobUpload = {
1187
1464
  },
1188
1465
  fromJSON(object) {
1189
1466
  return {
1190
- accountName: isSet(object.accountName) ? String(object.accountName) : '',
1191
- accountKey: isSet(object.accountKey) ? String(object.accountKey) : '',
1192
- containerName: isSet(object.containerName) ? String(object.containerName) : '',
1467
+ accountName: isSet(object.accountName) ? String(object.accountName) : "",
1468
+ accountKey: isSet(object.accountKey) ? String(object.accountKey) : "",
1469
+ containerName: isSet(object.containerName) ? String(object.containerName) : "",
1193
1470
  };
1194
1471
  },
1195
1472
  toJSON(message) {
@@ -1202,9 +1479,89 @@ exports.AzureBlobUpload = {
1202
1479
  fromPartial(object) {
1203
1480
  var _a, _b, _c;
1204
1481
  const message = createBaseAzureBlobUpload();
1205
- message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a : '';
1206
- message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b : '';
1207
- message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c : '';
1482
+ message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a : "";
1483
+ message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b : "";
1484
+ message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c : "";
1485
+ return message;
1486
+ },
1487
+ };
1488
+ function createBaseAliOSSUpload() {
1489
+ return { accessKey: "", secret: "", region: "", endpoint: "", bucket: "" };
1490
+ }
1491
+ exports.AliOSSUpload = {
1492
+ encode(message, writer = minimal_1.default.Writer.create()) {
1493
+ if (message.accessKey !== undefined && message.accessKey !== "") {
1494
+ writer.uint32(10).string(message.accessKey);
1495
+ }
1496
+ if (message.secret !== undefined && message.secret !== "") {
1497
+ writer.uint32(18).string(message.secret);
1498
+ }
1499
+ if (message.region !== undefined && message.region !== "") {
1500
+ writer.uint32(26).string(message.region);
1501
+ }
1502
+ if (message.endpoint !== undefined && message.endpoint !== "") {
1503
+ writer.uint32(34).string(message.endpoint);
1504
+ }
1505
+ if (message.bucket !== undefined && message.bucket !== "") {
1506
+ writer.uint32(42).string(message.bucket);
1507
+ }
1508
+ return writer;
1509
+ },
1510
+ decode(input, length) {
1511
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1512
+ let end = length === undefined ? reader.len : reader.pos + length;
1513
+ const message = createBaseAliOSSUpload();
1514
+ while (reader.pos < end) {
1515
+ const tag = reader.uint32();
1516
+ switch (tag >>> 3) {
1517
+ case 1:
1518
+ message.accessKey = reader.string();
1519
+ break;
1520
+ case 2:
1521
+ message.secret = reader.string();
1522
+ break;
1523
+ case 3:
1524
+ message.region = reader.string();
1525
+ break;
1526
+ case 4:
1527
+ message.endpoint = reader.string();
1528
+ break;
1529
+ case 5:
1530
+ message.bucket = reader.string();
1531
+ break;
1532
+ default:
1533
+ reader.skipType(tag & 7);
1534
+ break;
1535
+ }
1536
+ }
1537
+ return message;
1538
+ },
1539
+ fromJSON(object) {
1540
+ return {
1541
+ accessKey: isSet(object.accessKey) ? String(object.accessKey) : "",
1542
+ secret: isSet(object.secret) ? String(object.secret) : "",
1543
+ region: isSet(object.region) ? String(object.region) : "",
1544
+ endpoint: isSet(object.endpoint) ? String(object.endpoint) : "",
1545
+ bucket: isSet(object.bucket) ? String(object.bucket) : "",
1546
+ };
1547
+ },
1548
+ toJSON(message) {
1549
+ const obj = {};
1550
+ message.accessKey !== undefined && (obj.accessKey = message.accessKey);
1551
+ message.secret !== undefined && (obj.secret = message.secret);
1552
+ message.region !== undefined && (obj.region = message.region);
1553
+ message.endpoint !== undefined && (obj.endpoint = message.endpoint);
1554
+ message.bucket !== undefined && (obj.bucket = message.bucket);
1555
+ return obj;
1556
+ },
1557
+ fromPartial(object) {
1558
+ var _a, _b, _c, _d, _e;
1559
+ const message = createBaseAliOSSUpload();
1560
+ message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : "";
1561
+ message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : "";
1562
+ message.region = (_c = object.region) !== null && _c !== void 0 ? _c : "";
1563
+ message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : "";
1564
+ message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : "";
1208
1565
  return message;
1209
1566
  },
1210
1567
  };
@@ -1212,17 +1569,19 @@ function createBaseStreamOutput() {
1212
1569
  return { protocol: 0, urls: [] };
1213
1570
  }
1214
1571
  exports.StreamOutput = {
1215
- encode(message, writer = _m0.Writer.create()) {
1216
- if (message.protocol !== 0) {
1572
+ encode(message, writer = minimal_1.default.Writer.create()) {
1573
+ if (message.protocol !== undefined && message.protocol !== 0) {
1217
1574
  writer.uint32(8).int32(message.protocol);
1218
1575
  }
1219
- for (const v of message.urls) {
1220
- writer.uint32(18).string(v);
1576
+ if (message.urls !== undefined && message.urls.length !== 0) {
1577
+ for (const v of message.urls) {
1578
+ writer.uint32(18).string(v);
1579
+ }
1221
1580
  }
1222
1581
  return writer;
1223
1582
  },
1224
1583
  decode(input, length) {
1225
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1584
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1226
1585
  let end = length === undefined ? reader.len : reader.pos + length;
1227
1586
  const message = createBaseStreamOutput();
1228
1587
  while (reader.pos < end) {
@@ -1280,38 +1639,38 @@ function createBaseEncodingOptions() {
1280
1639
  };
1281
1640
  }
1282
1641
  exports.EncodingOptions = {
1283
- encode(message, writer = _m0.Writer.create()) {
1284
- if (message.width !== 0) {
1642
+ encode(message, writer = minimal_1.default.Writer.create()) {
1643
+ if (message.width !== undefined && message.width !== 0) {
1285
1644
  writer.uint32(8).int32(message.width);
1286
1645
  }
1287
- if (message.height !== 0) {
1646
+ if (message.height !== undefined && message.height !== 0) {
1288
1647
  writer.uint32(16).int32(message.height);
1289
1648
  }
1290
- if (message.depth !== 0) {
1649
+ if (message.depth !== undefined && message.depth !== 0) {
1291
1650
  writer.uint32(24).int32(message.depth);
1292
1651
  }
1293
- if (message.framerate !== 0) {
1652
+ if (message.framerate !== undefined && message.framerate !== 0) {
1294
1653
  writer.uint32(32).int32(message.framerate);
1295
1654
  }
1296
- if (message.audioCodec !== 0) {
1655
+ if (message.audioCodec !== undefined && message.audioCodec !== 0) {
1297
1656
  writer.uint32(40).int32(message.audioCodec);
1298
1657
  }
1299
- if (message.audioBitrate !== 0) {
1658
+ if (message.audioBitrate !== undefined && message.audioBitrate !== 0) {
1300
1659
  writer.uint32(48).int32(message.audioBitrate);
1301
1660
  }
1302
- if (message.audioFrequency !== 0) {
1661
+ if (message.audioFrequency !== undefined && message.audioFrequency !== 0) {
1303
1662
  writer.uint32(56).int32(message.audioFrequency);
1304
1663
  }
1305
- if (message.videoCodec !== 0) {
1664
+ if (message.videoCodec !== undefined && message.videoCodec !== 0) {
1306
1665
  writer.uint32(64).int32(message.videoCodec);
1307
1666
  }
1308
- if (message.videoBitrate !== 0) {
1667
+ if (message.videoBitrate !== undefined && message.videoBitrate !== 0) {
1309
1668
  writer.uint32(72).int32(message.videoBitrate);
1310
1669
  }
1311
1670
  return writer;
1312
1671
  },
1313
1672
  decode(input, length) {
1314
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1673
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1315
1674
  let end = length === undefined ? reader.len : reader.pos + length;
1316
1675
  const message = createBaseEncodingOptions();
1317
1676
  while (reader.pos < end) {
@@ -1372,8 +1731,7 @@ exports.EncodingOptions = {
1372
1731
  message.framerate !== undefined && (obj.framerate = Math.round(message.framerate));
1373
1732
  message.audioCodec !== undefined && (obj.audioCodec = audioCodecToJSON(message.audioCodec));
1374
1733
  message.audioBitrate !== undefined && (obj.audioBitrate = Math.round(message.audioBitrate));
1375
- message.audioFrequency !== undefined &&
1376
- (obj.audioFrequency = Math.round(message.audioFrequency));
1734
+ message.audioFrequency !== undefined && (obj.audioFrequency = Math.round(message.audioFrequency));
1377
1735
  message.videoCodec !== undefined && (obj.videoCodec = videoCodecToJSON(message.videoCodec));
1378
1736
  message.videoBitrate !== undefined && (obj.videoBitrate = Math.round(message.videoBitrate));
1379
1737
  return obj;
@@ -1394,20 +1752,20 @@ exports.EncodingOptions = {
1394
1752
  },
1395
1753
  };
1396
1754
  function createBaseUpdateLayoutRequest() {
1397
- return { egressId: '', layout: '' };
1755
+ return { egressId: "", layout: "" };
1398
1756
  }
1399
1757
  exports.UpdateLayoutRequest = {
1400
- encode(message, writer = _m0.Writer.create()) {
1401
- if (message.egressId !== '') {
1758
+ encode(message, writer = minimal_1.default.Writer.create()) {
1759
+ if (message.egressId !== undefined && message.egressId !== "") {
1402
1760
  writer.uint32(10).string(message.egressId);
1403
1761
  }
1404
- if (message.layout !== '') {
1762
+ if (message.layout !== undefined && message.layout !== "") {
1405
1763
  writer.uint32(18).string(message.layout);
1406
1764
  }
1407
1765
  return writer;
1408
1766
  },
1409
1767
  decode(input, length) {
1410
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1768
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1411
1769
  let end = length === undefined ? reader.len : reader.pos + length;
1412
1770
  const message = createBaseUpdateLayoutRequest();
1413
1771
  while (reader.pos < end) {
@@ -1428,8 +1786,8 @@ exports.UpdateLayoutRequest = {
1428
1786
  },
1429
1787
  fromJSON(object) {
1430
1788
  return {
1431
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
1432
- layout: isSet(object.layout) ? String(object.layout) : '',
1789
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
1790
+ layout: isSet(object.layout) ? String(object.layout) : "",
1433
1791
  };
1434
1792
  },
1435
1793
  toJSON(message) {
@@ -1441,29 +1799,33 @@ exports.UpdateLayoutRequest = {
1441
1799
  fromPartial(object) {
1442
1800
  var _a, _b;
1443
1801
  const message = createBaseUpdateLayoutRequest();
1444
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
1445
- message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
1802
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
1803
+ message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
1446
1804
  return message;
1447
1805
  },
1448
1806
  };
1449
1807
  function createBaseUpdateStreamRequest() {
1450
- return { egressId: '', addOutputUrls: [], removeOutputUrls: [] };
1808
+ return { egressId: "", addOutputUrls: [], removeOutputUrls: [] };
1451
1809
  }
1452
1810
  exports.UpdateStreamRequest = {
1453
- encode(message, writer = _m0.Writer.create()) {
1454
- if (message.egressId !== '') {
1811
+ encode(message, writer = minimal_1.default.Writer.create()) {
1812
+ if (message.egressId !== undefined && message.egressId !== "") {
1455
1813
  writer.uint32(10).string(message.egressId);
1456
1814
  }
1457
- for (const v of message.addOutputUrls) {
1458
- writer.uint32(18).string(v);
1815
+ if (message.addOutputUrls !== undefined && message.addOutputUrls.length !== 0) {
1816
+ for (const v of message.addOutputUrls) {
1817
+ writer.uint32(18).string(v);
1818
+ }
1459
1819
  }
1460
- for (const v of message.removeOutputUrls) {
1461
- writer.uint32(26).string(v);
1820
+ if (message.removeOutputUrls !== undefined && message.removeOutputUrls.length !== 0) {
1821
+ for (const v of message.removeOutputUrls) {
1822
+ writer.uint32(26).string(v);
1823
+ }
1462
1824
  }
1463
1825
  return writer;
1464
1826
  },
1465
1827
  decode(input, length) {
1466
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1828
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1467
1829
  let end = length === undefined ? reader.len : reader.pos + length;
1468
1830
  const message = createBaseUpdateStreamRequest();
1469
1831
  while (reader.pos < end) {
@@ -1487,10 +1849,8 @@ exports.UpdateStreamRequest = {
1487
1849
  },
1488
1850
  fromJSON(object) {
1489
1851
  return {
1490
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
1491
- addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
1492
- ? object.addOutputUrls.map((e) => String(e))
1493
- : [],
1852
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
1853
+ addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls) ? object.addOutputUrls.map((e) => String(e)) : [],
1494
1854
  removeOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.removeOutputUrls)
1495
1855
  ? object.removeOutputUrls.map((e) => String(e))
1496
1856
  : [],
@@ -1516,24 +1876,24 @@ exports.UpdateStreamRequest = {
1516
1876
  fromPartial(object) {
1517
1877
  var _a, _b, _c;
1518
1878
  const message = createBaseUpdateStreamRequest();
1519
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
1879
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
1520
1880
  message.addOutputUrls = ((_b = object.addOutputUrls) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
1521
1881
  message.removeOutputUrls = ((_c = object.removeOutputUrls) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
1522
1882
  return message;
1523
1883
  },
1524
1884
  };
1525
1885
  function createBaseListEgressRequest() {
1526
- return { roomName: '' };
1886
+ return { roomName: "" };
1527
1887
  }
1528
1888
  exports.ListEgressRequest = {
1529
- encode(message, writer = _m0.Writer.create()) {
1530
- if (message.roomName !== '') {
1889
+ encode(message, writer = minimal_1.default.Writer.create()) {
1890
+ if (message.roomName !== undefined && message.roomName !== "") {
1531
1891
  writer.uint32(10).string(message.roomName);
1532
1892
  }
1533
1893
  return writer;
1534
1894
  },
1535
1895
  decode(input, length) {
1536
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1896
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1537
1897
  let end = length === undefined ? reader.len : reader.pos + length;
1538
1898
  const message = createBaseListEgressRequest();
1539
1899
  while (reader.pos < end) {
@@ -1550,9 +1910,7 @@ exports.ListEgressRequest = {
1550
1910
  return message;
1551
1911
  },
1552
1912
  fromJSON(object) {
1553
- return {
1554
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
1555
- };
1913
+ return { roomName: isSet(object.roomName) ? String(object.roomName) : "" };
1556
1914
  },
1557
1915
  toJSON(message) {
1558
1916
  const obj = {};
@@ -1562,7 +1920,7 @@ exports.ListEgressRequest = {
1562
1920
  fromPartial(object) {
1563
1921
  var _a;
1564
1922
  const message = createBaseListEgressRequest();
1565
- message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
1923
+ message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
1566
1924
  return message;
1567
1925
  },
1568
1926
  };
@@ -1570,14 +1928,16 @@ function createBaseListEgressResponse() {
1570
1928
  return { items: [] };
1571
1929
  }
1572
1930
  exports.ListEgressResponse = {
1573
- encode(message, writer = _m0.Writer.create()) {
1574
- for (const v of message.items) {
1575
- exports.EgressInfo.encode(v, writer.uint32(10).fork()).ldelim();
1931
+ encode(message, writer = minimal_1.default.Writer.create()) {
1932
+ if (message.items !== undefined && message.items.length !== 0) {
1933
+ for (const v of message.items) {
1934
+ exports.EgressInfo.encode(v, writer.uint32(10).fork()).ldelim();
1935
+ }
1576
1936
  }
1577
1937
  return writer;
1578
1938
  },
1579
1939
  decode(input, length) {
1580
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1940
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1581
1941
  let end = length === undefined ? reader.len : reader.pos + length;
1582
1942
  const message = createBaseListEgressResponse();
1583
1943
  while (reader.pos < end) {
@@ -1594,16 +1954,12 @@ exports.ListEgressResponse = {
1594
1954
  return message;
1595
1955
  },
1596
1956
  fromJSON(object) {
1597
- return {
1598
- items: Array.isArray(object === null || object === void 0 ? void 0 : object.items)
1599
- ? object.items.map((e) => exports.EgressInfo.fromJSON(e))
1600
- : [],
1601
- };
1957
+ return { items: Array.isArray(object === null || object === void 0 ? void 0 : object.items) ? object.items.map((e) => exports.EgressInfo.fromJSON(e)) : [] };
1602
1958
  },
1603
1959
  toJSON(message) {
1604
1960
  const obj = {};
1605
1961
  if (message.items) {
1606
- obj.items = message.items.map((e) => (e ? exports.EgressInfo.toJSON(e) : undefined));
1962
+ obj.items = message.items.map((e) => e ? exports.EgressInfo.toJSON(e) : undefined);
1607
1963
  }
1608
1964
  else {
1609
1965
  obj.items = [];
@@ -1618,17 +1974,17 @@ exports.ListEgressResponse = {
1618
1974
  },
1619
1975
  };
1620
1976
  function createBaseStopEgressRequest() {
1621
- return { egressId: '' };
1977
+ return { egressId: "" };
1622
1978
  }
1623
1979
  exports.StopEgressRequest = {
1624
- encode(message, writer = _m0.Writer.create()) {
1625
- if (message.egressId !== '') {
1980
+ encode(message, writer = minimal_1.default.Writer.create()) {
1981
+ if (message.egressId !== undefined && message.egressId !== "") {
1626
1982
  writer.uint32(10).string(message.egressId);
1627
1983
  }
1628
1984
  return writer;
1629
1985
  },
1630
1986
  decode(input, length) {
1631
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1987
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1632
1988
  let end = length === undefined ? reader.len : reader.pos + length;
1633
1989
  const message = createBaseStopEgressRequest();
1634
1990
  while (reader.pos < end) {
@@ -1645,9 +2001,7 @@ exports.StopEgressRequest = {
1645
2001
  return message;
1646
2002
  },
1647
2003
  fromJSON(object) {
1648
- return {
1649
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
1650
- };
2004
+ return { egressId: isSet(object.egressId) ? String(object.egressId) : "" };
1651
2005
  },
1652
2006
  toJSON(message) {
1653
2007
  const obj = {};
@@ -1657,48 +2011,49 @@ exports.StopEgressRequest = {
1657
2011
  fromPartial(object) {
1658
2012
  var _a;
1659
2013
  const message = createBaseStopEgressRequest();
1660
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
2014
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
1661
2015
  return message;
1662
2016
  },
1663
2017
  };
1664
2018
  function createBaseEgressInfo() {
1665
2019
  return {
1666
- egressId: '',
1667
- roomId: '',
1668
- roomName: '',
2020
+ egressId: "",
2021
+ roomId: "",
2022
+ roomName: "",
1669
2023
  status: 0,
1670
2024
  startedAt: 0,
1671
2025
  endedAt: 0,
1672
- error: '',
2026
+ error: "",
1673
2027
  roomComposite: undefined,
1674
2028
  trackComposite: undefined,
1675
2029
  track: undefined,
2030
+ web: undefined,
1676
2031
  stream: undefined,
1677
2032
  file: undefined,
1678
2033
  segments: undefined,
1679
2034
  };
1680
2035
  }
1681
2036
  exports.EgressInfo = {
1682
- encode(message, writer = _m0.Writer.create()) {
1683
- if (message.egressId !== '') {
2037
+ encode(message, writer = minimal_1.default.Writer.create()) {
2038
+ if (message.egressId !== undefined && message.egressId !== "") {
1684
2039
  writer.uint32(10).string(message.egressId);
1685
2040
  }
1686
- if (message.roomId !== '') {
2041
+ if (message.roomId !== undefined && message.roomId !== "") {
1687
2042
  writer.uint32(18).string(message.roomId);
1688
2043
  }
1689
- if (message.roomName !== '') {
2044
+ if (message.roomName !== undefined && message.roomName !== "") {
1690
2045
  writer.uint32(106).string(message.roomName);
1691
2046
  }
1692
- if (message.status !== 0) {
2047
+ if (message.status !== undefined && message.status !== 0) {
1693
2048
  writer.uint32(24).int32(message.status);
1694
2049
  }
1695
- if (message.startedAt !== 0) {
2050
+ if (message.startedAt !== undefined && message.startedAt !== 0) {
1696
2051
  writer.uint32(80).int64(message.startedAt);
1697
2052
  }
1698
- if (message.endedAt !== 0) {
2053
+ if (message.endedAt !== undefined && message.endedAt !== 0) {
1699
2054
  writer.uint32(88).int64(message.endedAt);
1700
2055
  }
1701
- if (message.error !== '') {
2056
+ if (message.error !== undefined && message.error !== "") {
1702
2057
  writer.uint32(74).string(message.error);
1703
2058
  }
1704
2059
  if (message.roomComposite !== undefined) {
@@ -1710,6 +2065,9 @@ exports.EgressInfo = {
1710
2065
  if (message.track !== undefined) {
1711
2066
  exports.TrackEgressRequest.encode(message.track, writer.uint32(50).fork()).ldelim();
1712
2067
  }
2068
+ if (message.web !== undefined) {
2069
+ exports.WebEgressRequest.encode(message.web, writer.uint32(114).fork()).ldelim();
2070
+ }
1713
2071
  if (message.stream !== undefined) {
1714
2072
  exports.StreamInfoList.encode(message.stream, writer.uint32(58).fork()).ldelim();
1715
2073
  }
@@ -1722,7 +2080,7 @@ exports.EgressInfo = {
1722
2080
  return writer;
1723
2081
  },
1724
2082
  decode(input, length) {
1725
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2083
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1726
2084
  let end = length === undefined ? reader.len : reader.pos + length;
1727
2085
  const message = createBaseEgressInfo();
1728
2086
  while (reader.pos < end) {
@@ -1758,6 +2116,9 @@ exports.EgressInfo = {
1758
2116
  case 6:
1759
2117
  message.track = exports.TrackEgressRequest.decode(reader, reader.uint32());
1760
2118
  break;
2119
+ case 14:
2120
+ message.web = exports.WebEgressRequest.decode(reader, reader.uint32());
2121
+ break;
1761
2122
  case 7:
1762
2123
  message.stream = exports.StreamInfoList.decode(reader, reader.uint32());
1763
2124
  break;
@@ -1776,13 +2137,13 @@ exports.EgressInfo = {
1776
2137
  },
1777
2138
  fromJSON(object) {
1778
2139
  return {
1779
- egressId: isSet(object.egressId) ? String(object.egressId) : '',
1780
- roomId: isSet(object.roomId) ? String(object.roomId) : '',
1781
- roomName: isSet(object.roomName) ? String(object.roomName) : '',
2140
+ egressId: isSet(object.egressId) ? String(object.egressId) : "",
2141
+ roomId: isSet(object.roomId) ? String(object.roomId) : "",
2142
+ roomName: isSet(object.roomName) ? String(object.roomName) : "",
1782
2143
  status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
1783
2144
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
1784
2145
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
1785
- error: isSet(object.error) ? String(object.error) : '',
2146
+ error: isSet(object.error) ? String(object.error) : "",
1786
2147
  roomComposite: isSet(object.roomComposite)
1787
2148
  ? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
1788
2149
  : undefined,
@@ -1790,6 +2151,7 @@ exports.EgressInfo = {
1790
2151
  ? exports.TrackCompositeEgressRequest.fromJSON(object.trackComposite)
1791
2152
  : undefined,
1792
2153
  track: isSet(object.track) ? exports.TrackEgressRequest.fromJSON(object.track) : undefined,
2154
+ web: isSet(object.web) ? exports.WebEgressRequest.fromJSON(object.web) : undefined,
1793
2155
  stream: isSet(object.stream) ? exports.StreamInfoList.fromJSON(object.stream) : undefined,
1794
2156
  file: isSet(object.file) ? exports.FileInfo.fromJSON(object.file) : undefined,
1795
2157
  segments: isSet(object.segments) ? exports.SegmentsInfo.fromJSON(object.segments) : undefined,
@@ -1808,16 +2170,13 @@ exports.EgressInfo = {
1808
2170
  (obj.roomComposite = message.roomComposite
1809
2171
  ? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
1810
2172
  : undefined);
1811
- message.trackComposite !== undefined &&
1812
- (obj.trackComposite = message.trackComposite
1813
- ? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
1814
- : undefined);
1815
- message.track !== undefined &&
1816
- (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
1817
- message.stream !== undefined &&
1818
- (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
1819
- message.file !== undefined &&
1820
- (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
2173
+ message.trackComposite !== undefined && (obj.trackComposite = message.trackComposite
2174
+ ? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
2175
+ : undefined);
2176
+ message.track !== undefined && (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
2177
+ message.web !== undefined && (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
2178
+ message.stream !== undefined && (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
2179
+ message.file !== undefined && (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
1821
2180
  message.segments !== undefined &&
1822
2181
  (obj.segments = message.segments ? exports.SegmentsInfo.toJSON(message.segments) : undefined);
1823
2182
  return obj;
@@ -1825,37 +2184,32 @@ exports.EgressInfo = {
1825
2184
  fromPartial(object) {
1826
2185
  var _a, _b, _c, _d, _e, _f, _g;
1827
2186
  const message = createBaseEgressInfo();
1828
- message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
1829
- message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : '';
1830
- message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : '';
2187
+ message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
2188
+ message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : "";
2189
+ message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : "";
1831
2190
  message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
1832
2191
  message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
1833
2192
  message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
1834
- message.error = (_g = object.error) !== null && _g !== void 0 ? _g : '';
1835
- message.roomComposite =
1836
- object.roomComposite !== undefined && object.roomComposite !== null
1837
- ? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
1838
- : undefined;
1839
- message.trackComposite =
1840
- object.trackComposite !== undefined && object.trackComposite !== null
1841
- ? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
1842
- : undefined;
1843
- message.track =
1844
- object.track !== undefined && object.track !== null
1845
- ? exports.TrackEgressRequest.fromPartial(object.track)
1846
- : undefined;
1847
- message.stream =
1848
- object.stream !== undefined && object.stream !== null
1849
- ? exports.StreamInfoList.fromPartial(object.stream)
1850
- : undefined;
1851
- message.file =
1852
- object.file !== undefined && object.file !== null
1853
- ? exports.FileInfo.fromPartial(object.file)
1854
- : undefined;
1855
- message.segments =
1856
- object.segments !== undefined && object.segments !== null
1857
- ? exports.SegmentsInfo.fromPartial(object.segments)
1858
- : undefined;
2193
+ message.error = (_g = object.error) !== null && _g !== void 0 ? _g : "";
2194
+ message.roomComposite = (object.roomComposite !== undefined && object.roomComposite !== null)
2195
+ ? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
2196
+ : undefined;
2197
+ message.trackComposite = (object.trackComposite !== undefined && object.trackComposite !== null)
2198
+ ? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
2199
+ : undefined;
2200
+ message.track = (object.track !== undefined && object.track !== null)
2201
+ ? exports.TrackEgressRequest.fromPartial(object.track)
2202
+ : undefined;
2203
+ message.web = (object.web !== undefined && object.web !== null)
2204
+ ? exports.WebEgressRequest.fromPartial(object.web)
2205
+ : undefined;
2206
+ message.stream = (object.stream !== undefined && object.stream !== null)
2207
+ ? exports.StreamInfoList.fromPartial(object.stream)
2208
+ : undefined;
2209
+ message.file = (object.file !== undefined && object.file !== null) ? exports.FileInfo.fromPartial(object.file) : undefined;
2210
+ message.segments = (object.segments !== undefined && object.segments !== null)
2211
+ ? exports.SegmentsInfo.fromPartial(object.segments)
2212
+ : undefined;
1859
2213
  return message;
1860
2214
  },
1861
2215
  };
@@ -1863,14 +2217,16 @@ function createBaseStreamInfoList() {
1863
2217
  return { info: [] };
1864
2218
  }
1865
2219
  exports.StreamInfoList = {
1866
- encode(message, writer = _m0.Writer.create()) {
1867
- for (const v of message.info) {
1868
- exports.StreamInfo.encode(v, writer.uint32(10).fork()).ldelim();
2220
+ encode(message, writer = minimal_1.default.Writer.create()) {
2221
+ if (message.info !== undefined && message.info.length !== 0) {
2222
+ for (const v of message.info) {
2223
+ exports.StreamInfo.encode(v, writer.uint32(10).fork()).ldelim();
2224
+ }
1869
2225
  }
1870
2226
  return writer;
1871
2227
  },
1872
2228
  decode(input, length) {
1873
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2229
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1874
2230
  let end = length === undefined ? reader.len : reader.pos + length;
1875
2231
  const message = createBaseStreamInfoList();
1876
2232
  while (reader.pos < end) {
@@ -1887,14 +2243,12 @@ exports.StreamInfoList = {
1887
2243
  return message;
1888
2244
  },
1889
2245
  fromJSON(object) {
1890
- return {
1891
- info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [],
1892
- };
2246
+ return { info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [] };
1893
2247
  },
1894
2248
  toJSON(message) {
1895
2249
  const obj = {};
1896
2250
  if (message.info) {
1897
- obj.info = message.info.map((e) => (e ? exports.StreamInfo.toJSON(e) : undefined));
2251
+ obj.info = message.info.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
1898
2252
  }
1899
2253
  else {
1900
2254
  obj.info = [];
@@ -1909,29 +2263,29 @@ exports.StreamInfoList = {
1909
2263
  },
1910
2264
  };
1911
2265
  function createBaseStreamInfo() {
1912
- return { url: '', startedAt: 0, endedAt: 0, duration: 0, status: 0 };
2266
+ return { url: "", startedAt: 0, endedAt: 0, duration: 0, status: 0 };
1913
2267
  }
1914
2268
  exports.StreamInfo = {
1915
- encode(message, writer = _m0.Writer.create()) {
1916
- if (message.url !== '') {
2269
+ encode(message, writer = minimal_1.default.Writer.create()) {
2270
+ if (message.url !== undefined && message.url !== "") {
1917
2271
  writer.uint32(10).string(message.url);
1918
2272
  }
1919
- if (message.startedAt !== 0) {
2273
+ if (message.startedAt !== undefined && message.startedAt !== 0) {
1920
2274
  writer.uint32(16).int64(message.startedAt);
1921
2275
  }
1922
- if (message.endedAt !== 0) {
2276
+ if (message.endedAt !== undefined && message.endedAt !== 0) {
1923
2277
  writer.uint32(24).int64(message.endedAt);
1924
2278
  }
1925
- if (message.duration !== 0) {
2279
+ if (message.duration !== undefined && message.duration !== 0) {
1926
2280
  writer.uint32(32).int64(message.duration);
1927
2281
  }
1928
- if (message.status !== 0) {
2282
+ if (message.status !== undefined && message.status !== 0) {
1929
2283
  writer.uint32(40).int32(message.status);
1930
2284
  }
1931
2285
  return writer;
1932
2286
  },
1933
2287
  decode(input, length) {
1934
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2288
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1935
2289
  let end = length === undefined ? reader.len : reader.pos + length;
1936
2290
  const message = createBaseStreamInfo();
1937
2291
  while (reader.pos < end) {
@@ -1961,7 +2315,7 @@ exports.StreamInfo = {
1961
2315
  },
1962
2316
  fromJSON(object) {
1963
2317
  return {
1964
- url: isSet(object.url) ? String(object.url) : '',
2318
+ url: isSet(object.url) ? String(object.url) : "",
1965
2319
  startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
1966
2320
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
1967
2321
  duration: isSet(object.duration) ? Number(object.duration) : 0,
@@ -1980,7 +2334,7 @@ exports.StreamInfo = {
1980
2334
  fromPartial(object) {
1981
2335
  var _a, _b, _c, _d, _e;
1982
2336
  const message = createBaseStreamInfo();
1983
- message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
2337
+ message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
1984
2338
  message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
1985
2339
  message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
1986
2340
  message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
@@ -1989,26 +2343,32 @@ exports.StreamInfo = {
1989
2343
  },
1990
2344
  };
1991
2345
  function createBaseFileInfo() {
1992
- return { filename: '', duration: 0, size: 0, location: '' };
2346
+ return { filename: "", startedAt: 0, endedAt: 0, duration: 0, size: 0, location: "" };
1993
2347
  }
1994
2348
  exports.FileInfo = {
1995
- encode(message, writer = _m0.Writer.create()) {
1996
- if (message.filename !== '') {
2349
+ encode(message, writer = minimal_1.default.Writer.create()) {
2350
+ if (message.filename !== undefined && message.filename !== "") {
1997
2351
  writer.uint32(10).string(message.filename);
1998
2352
  }
1999
- if (message.duration !== 0) {
2353
+ if (message.startedAt !== undefined && message.startedAt !== 0) {
2354
+ writer.uint32(16).int64(message.startedAt);
2355
+ }
2356
+ if (message.endedAt !== undefined && message.endedAt !== 0) {
2357
+ writer.uint32(24).int64(message.endedAt);
2358
+ }
2359
+ if (message.duration !== undefined && message.duration !== 0) {
2000
2360
  writer.uint32(48).int64(message.duration);
2001
2361
  }
2002
- if (message.size !== 0) {
2362
+ if (message.size !== undefined && message.size !== 0) {
2003
2363
  writer.uint32(32).int64(message.size);
2004
2364
  }
2005
- if (message.location !== '') {
2365
+ if (message.location !== undefined && message.location !== "") {
2006
2366
  writer.uint32(42).string(message.location);
2007
2367
  }
2008
2368
  return writer;
2009
2369
  },
2010
2370
  decode(input, length) {
2011
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2371
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2012
2372
  let end = length === undefined ? reader.len : reader.pos + length;
2013
2373
  const message = createBaseFileInfo();
2014
2374
  while (reader.pos < end) {
@@ -2017,6 +2377,12 @@ exports.FileInfo = {
2017
2377
  case 1:
2018
2378
  message.filename = reader.string();
2019
2379
  break;
2380
+ case 2:
2381
+ message.startedAt = longToNumber(reader.int64());
2382
+ break;
2383
+ case 3:
2384
+ message.endedAt = longToNumber(reader.int64());
2385
+ break;
2020
2386
  case 6:
2021
2387
  message.duration = longToNumber(reader.int64());
2022
2388
  break;
@@ -2035,54 +2401,66 @@ exports.FileInfo = {
2035
2401
  },
2036
2402
  fromJSON(object) {
2037
2403
  return {
2038
- filename: isSet(object.filename) ? String(object.filename) : '',
2404
+ filename: isSet(object.filename) ? String(object.filename) : "",
2405
+ startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2406
+ endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
2039
2407
  duration: isSet(object.duration) ? Number(object.duration) : 0,
2040
2408
  size: isSet(object.size) ? Number(object.size) : 0,
2041
- location: isSet(object.location) ? String(object.location) : '',
2409
+ location: isSet(object.location) ? String(object.location) : "",
2042
2410
  };
2043
2411
  },
2044
2412
  toJSON(message) {
2045
2413
  const obj = {};
2046
2414
  message.filename !== undefined && (obj.filename = message.filename);
2415
+ message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
2416
+ message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
2047
2417
  message.duration !== undefined && (obj.duration = Math.round(message.duration));
2048
2418
  message.size !== undefined && (obj.size = Math.round(message.size));
2049
2419
  message.location !== undefined && (obj.location = message.location);
2050
2420
  return obj;
2051
2421
  },
2052
2422
  fromPartial(object) {
2053
- var _a, _b, _c, _d;
2423
+ var _a, _b, _c, _d, _e, _f;
2054
2424
  const message = createBaseFileInfo();
2055
- message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : '';
2056
- message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
2057
- message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
2058
- message.location = (_d = object.location) !== null && _d !== void 0 ? _d : '';
2425
+ message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : "";
2426
+ message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
2427
+ message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
2428
+ message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
2429
+ message.size = (_e = object.size) !== null && _e !== void 0 ? _e : 0;
2430
+ message.location = (_f = object.location) !== null && _f !== void 0 ? _f : "";
2059
2431
  return message;
2060
2432
  },
2061
2433
  };
2062
2434
  function createBaseSegmentsInfo() {
2063
- return { playlistName: '', duration: 0, size: 0, playlistLocation: '', segmentCount: 0 };
2435
+ return { playlistName: "", duration: 0, size: 0, playlistLocation: "", segmentCount: 0, startedAt: 0, endedAt: 0 };
2064
2436
  }
2065
2437
  exports.SegmentsInfo = {
2066
- encode(message, writer = _m0.Writer.create()) {
2067
- if (message.playlistName !== '') {
2438
+ encode(message, writer = minimal_1.default.Writer.create()) {
2439
+ if (message.playlistName !== undefined && message.playlistName !== "") {
2068
2440
  writer.uint32(10).string(message.playlistName);
2069
2441
  }
2070
- if (message.duration !== 0) {
2442
+ if (message.duration !== undefined && message.duration !== 0) {
2071
2443
  writer.uint32(16).int64(message.duration);
2072
2444
  }
2073
- if (message.size !== 0) {
2445
+ if (message.size !== undefined && message.size !== 0) {
2074
2446
  writer.uint32(24).int64(message.size);
2075
2447
  }
2076
- if (message.playlistLocation !== '') {
2448
+ if (message.playlistLocation !== undefined && message.playlistLocation !== "") {
2077
2449
  writer.uint32(34).string(message.playlistLocation);
2078
2450
  }
2079
- if (message.segmentCount !== 0) {
2451
+ if (message.segmentCount !== undefined && message.segmentCount !== 0) {
2080
2452
  writer.uint32(40).int64(message.segmentCount);
2081
2453
  }
2454
+ if (message.startedAt !== undefined && message.startedAt !== 0) {
2455
+ writer.uint32(48).int64(message.startedAt);
2456
+ }
2457
+ if (message.endedAt !== undefined && message.endedAt !== 0) {
2458
+ writer.uint32(56).int64(message.endedAt);
2459
+ }
2082
2460
  return writer;
2083
2461
  },
2084
2462
  decode(input, length) {
2085
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2463
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2086
2464
  let end = length === undefined ? reader.len : reader.pos + length;
2087
2465
  const message = createBaseSegmentsInfo();
2088
2466
  while (reader.pos < end) {
@@ -2103,6 +2481,12 @@ exports.SegmentsInfo = {
2103
2481
  case 5:
2104
2482
  message.segmentCount = longToNumber(reader.int64());
2105
2483
  break;
2484
+ case 6:
2485
+ message.startedAt = longToNumber(reader.int64());
2486
+ break;
2487
+ case 7:
2488
+ message.endedAt = longToNumber(reader.int64());
2489
+ break;
2106
2490
  default:
2107
2491
  reader.skipType(tag & 7);
2108
2492
  break;
@@ -2112,11 +2496,13 @@ exports.SegmentsInfo = {
2112
2496
  },
2113
2497
  fromJSON(object) {
2114
2498
  return {
2115
- playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
2499
+ playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
2116
2500
  duration: isSet(object.duration) ? Number(object.duration) : 0,
2117
2501
  size: isSet(object.size) ? Number(object.size) : 0,
2118
- playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : '',
2502
+ playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : "",
2119
2503
  segmentCount: isSet(object.segmentCount) ? Number(object.segmentCount) : 0,
2504
+ startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
2505
+ endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
2120
2506
  };
2121
2507
  },
2122
2508
  toJSON(message) {
@@ -2126,56 +2512,157 @@ exports.SegmentsInfo = {
2126
2512
  message.size !== undefined && (obj.size = Math.round(message.size));
2127
2513
  message.playlistLocation !== undefined && (obj.playlistLocation = message.playlistLocation);
2128
2514
  message.segmentCount !== undefined && (obj.segmentCount = Math.round(message.segmentCount));
2515
+ message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
2516
+ message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
2129
2517
  return obj;
2130
2518
  },
2131
2519
  fromPartial(object) {
2132
- var _a, _b, _c, _d, _e;
2520
+ var _a, _b, _c, _d, _e, _f, _g;
2133
2521
  const message = createBaseSegmentsInfo();
2134
- message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : '';
2522
+ message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : "";
2135
2523
  message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
2136
2524
  message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
2137
- message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : '';
2525
+ message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : "";
2138
2526
  message.segmentCount = (_e = object.segmentCount) !== null && _e !== void 0 ? _e : 0;
2527
+ message.startedAt = (_f = object.startedAt) !== null && _f !== void 0 ? _f : 0;
2528
+ message.endedAt = (_g = object.endedAt) !== null && _g !== void 0 ? _g : 0;
2529
+ return message;
2530
+ },
2531
+ };
2532
+ function createBaseAutoTrackEgress() {
2533
+ return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
2534
+ }
2535
+ exports.AutoTrackEgress = {
2536
+ encode(message, writer = minimal_1.default.Writer.create()) {
2537
+ if (message.filepath !== undefined && message.filepath !== "") {
2538
+ writer.uint32(10).string(message.filepath);
2539
+ }
2540
+ if (message.disableManifest === true) {
2541
+ writer.uint32(40).bool(message.disableManifest);
2542
+ }
2543
+ if (message.s3 !== undefined) {
2544
+ exports.S3Upload.encode(message.s3, writer.uint32(18).fork()).ldelim();
2545
+ }
2546
+ if (message.gcp !== undefined) {
2547
+ exports.GCPUpload.encode(message.gcp, writer.uint32(26).fork()).ldelim();
2548
+ }
2549
+ if (message.azure !== undefined) {
2550
+ exports.AzureBlobUpload.encode(message.azure, writer.uint32(34).fork()).ldelim();
2551
+ }
2552
+ return writer;
2553
+ },
2554
+ decode(input, length) {
2555
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
2556
+ let end = length === undefined ? reader.len : reader.pos + length;
2557
+ const message = createBaseAutoTrackEgress();
2558
+ while (reader.pos < end) {
2559
+ const tag = reader.uint32();
2560
+ switch (tag >>> 3) {
2561
+ case 1:
2562
+ message.filepath = reader.string();
2563
+ break;
2564
+ case 5:
2565
+ message.disableManifest = reader.bool();
2566
+ break;
2567
+ case 2:
2568
+ message.s3 = exports.S3Upload.decode(reader, reader.uint32());
2569
+ break;
2570
+ case 3:
2571
+ message.gcp = exports.GCPUpload.decode(reader, reader.uint32());
2572
+ break;
2573
+ case 4:
2574
+ message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
2575
+ break;
2576
+ default:
2577
+ reader.skipType(tag & 7);
2578
+ break;
2579
+ }
2580
+ }
2581
+ return message;
2582
+ },
2583
+ fromJSON(object) {
2584
+ return {
2585
+ filepath: isSet(object.filepath) ? String(object.filepath) : "",
2586
+ disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
2587
+ s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
2588
+ gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
2589
+ azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
2590
+ };
2591
+ },
2592
+ toJSON(message) {
2593
+ const obj = {};
2594
+ message.filepath !== undefined && (obj.filepath = message.filepath);
2595
+ message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
2596
+ message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
2597
+ message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
2598
+ message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
2599
+ return obj;
2600
+ },
2601
+ fromPartial(object) {
2602
+ var _a, _b;
2603
+ const message = createBaseAutoTrackEgress();
2604
+ message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
2605
+ message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
2606
+ message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
2607
+ message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
2608
+ message.azure = (object.azure !== undefined && object.azure !== null)
2609
+ ? exports.AzureBlobUpload.fromPartial(object.azure)
2610
+ : undefined;
2139
2611
  return message;
2140
2612
  },
2141
2613
  };
2142
2614
  var globalThis = (() => {
2143
- if (typeof globalThis !== 'undefined')
2615
+ if (typeof globalThis !== "undefined") {
2144
2616
  return globalThis;
2145
- if (typeof self !== 'undefined')
2617
+ }
2618
+ if (typeof self !== "undefined") {
2146
2619
  return self;
2147
- if (typeof window !== 'undefined')
2620
+ }
2621
+ if (typeof window !== "undefined") {
2148
2622
  return window;
2149
- if (typeof global !== 'undefined')
2623
+ }
2624
+ if (typeof global !== "undefined") {
2150
2625
  return global;
2151
- throw 'Unable to locate global object';
2626
+ }
2627
+ throw "Unable to locate global object";
2152
2628
  })();
2153
- const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary'));
2154
2629
  function bytesFromBase64(b64) {
2155
- const bin = atob(b64);
2156
- const arr = new Uint8Array(bin.length);
2157
- for (let i = 0; i < bin.length; ++i) {
2158
- arr[i] = bin.charCodeAt(i);
2630
+ if (globalThis.Buffer) {
2631
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2632
+ }
2633
+ else {
2634
+ const bin = globalThis.atob(b64);
2635
+ const arr = new Uint8Array(bin.length);
2636
+ for (let i = 0; i < bin.length; ++i) {
2637
+ arr[i] = bin.charCodeAt(i);
2638
+ }
2639
+ return arr;
2159
2640
  }
2160
- return arr;
2161
2641
  }
2162
- const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
2163
2642
  function base64FromBytes(arr) {
2164
- const bin = [];
2165
- for (const byte of arr) {
2166
- bin.push(String.fromCharCode(byte));
2643
+ if (globalThis.Buffer) {
2644
+ return globalThis.Buffer.from(arr).toString("base64");
2645
+ }
2646
+ else {
2647
+ const bin = [];
2648
+ arr.forEach((byte) => {
2649
+ bin.push(String.fromCharCode(byte));
2650
+ });
2651
+ return globalThis.btoa(bin.join(""));
2167
2652
  }
2168
- return btoa(bin.join(''));
2169
2653
  }
2170
2654
  function longToNumber(long) {
2171
2655
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
2172
- throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
2656
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2173
2657
  }
2174
2658
  return long.toNumber();
2175
2659
  }
2176
- if (_m0.util.Long !== long_1.default) {
2177
- _m0.util.Long = long_1.default;
2178
- _m0.configure();
2660
+ if (minimal_1.default.util.Long !== long_1.default) {
2661
+ minimal_1.default.util.Long = long_1.default;
2662
+ minimal_1.default.configure();
2663
+ }
2664
+ function isObject(value) {
2665
+ return typeof value === "object" && value !== null;
2179
2666
  }
2180
2667
  function isSet(value) {
2181
2668
  return value !== null && value !== undefined;