livekit-server-sdk 1.0.3 → 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.
- package/dist/EgressClient.d.ts +22 -4
- package/dist/EgressClient.js +32 -12
- package/dist/EgressClient.js.map +1 -1
- package/dist/IngressClient.d.ts +84 -0
- package/dist/IngressClient.js +113 -0
- package/dist/IngressClient.js.map +1 -0
- package/dist/RoomServiceClient.d.ts +2 -4
- package/dist/RoomServiceClient.js +10 -13
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/ServiceBase.d.ts +16 -0
- package/dist/ServiceBase.js +27 -0
- package/dist/ServiceBase.js.map +1 -0
- package/dist/grants.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +5 -5
- package/dist/proto/google/protobuf/timestamp.js +17 -32
- package/dist/proto/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto/livekit_egress.d.ts +3317 -653
- package/dist/proto/livekit_egress.js +842 -507
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_ingress.d.ts +152 -110
- package/dist/proto/livekit_ingress.js +218 -272
- package/dist/proto/livekit_ingress.js.map +1 -1
- package/dist/proto/livekit_models.d.ts +77 -58
- package/dist/proto/livekit_models.js +396 -447
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +456 -115
- package/dist/proto/livekit_room.js +188 -223
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +986 -85
- package/dist/proto/livekit_webhook.js +43 -68
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/generate-proto.sh +25 -0
- package/package.json +3 -3
- package/dist/proto/google/protobuf/empty.d.ts +0 -31
- package/dist/proto/google/protobuf/empty.js +0 -67
- 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.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.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
|
|
29
|
-
exports.protobufPackage =
|
|
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
|
|
22
|
+
case "DEFAULT_FILETYPE":
|
|
42
23
|
return EncodedFileType.DEFAULT_FILETYPE;
|
|
43
24
|
case 1:
|
|
44
|
-
case
|
|
25
|
+
case "MP4":
|
|
45
26
|
return EncodedFileType.MP4;
|
|
46
27
|
case 2:
|
|
47
|
-
case
|
|
28
|
+
case "OGG":
|
|
48
29
|
return EncodedFileType.OGG;
|
|
49
30
|
case -1:
|
|
50
|
-
case
|
|
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
|
|
40
|
+
return "DEFAULT_FILETYPE";
|
|
60
41
|
case EncodedFileType.MP4:
|
|
61
|
-
return
|
|
42
|
+
return "MP4";
|
|
62
43
|
case EncodedFileType.OGG:
|
|
63
|
-
return
|
|
44
|
+
return "OGG";
|
|
45
|
+
case EncodedFileType.UNRECOGNIZED:
|
|
64
46
|
default:
|
|
65
|
-
return
|
|
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
|
|
61
|
+
case "DEFAULT_PROTOCOL":
|
|
80
62
|
return StreamProtocol.DEFAULT_PROTOCOL;
|
|
81
63
|
case 1:
|
|
82
|
-
case
|
|
64
|
+
case "RTMP":
|
|
83
65
|
return StreamProtocol.RTMP;
|
|
84
66
|
case -1:
|
|
85
|
-
case
|
|
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
|
|
76
|
+
return "DEFAULT_PROTOCOL";
|
|
95
77
|
case StreamProtocol.RTMP:
|
|
96
|
-
return
|
|
78
|
+
return "RTMP";
|
|
79
|
+
case StreamProtocol.UNRECOGNIZED:
|
|
97
80
|
default:
|
|
98
|
-
return
|
|
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
|
|
94
|
+
case "DEFAULT_SEGMENTED_FILE_PROTOCOL":
|
|
112
95
|
return SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
|
|
113
96
|
case 1:
|
|
114
|
-
case
|
|
97
|
+
case "HLS_PROTOCOL":
|
|
115
98
|
return SegmentedFileProtocol.HLS_PROTOCOL;
|
|
116
99
|
case -1:
|
|
117
|
-
case
|
|
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
|
|
109
|
+
return "DEFAULT_SEGMENTED_FILE_PROTOCOL";
|
|
127
110
|
case SegmentedFileProtocol.HLS_PROTOCOL:
|
|
128
|
-
return
|
|
111
|
+
return "HLS_PROTOCOL";
|
|
112
|
+
case SegmentedFileProtocol.UNRECOGNIZED:
|
|
129
113
|
default:
|
|
130
|
-
return
|
|
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
|
|
128
|
+
case "DEFAULT_AC":
|
|
145
129
|
return AudioCodec.DEFAULT_AC;
|
|
146
130
|
case 1:
|
|
147
|
-
case
|
|
131
|
+
case "OPUS":
|
|
148
132
|
return AudioCodec.OPUS;
|
|
149
133
|
case 2:
|
|
150
|
-
case
|
|
134
|
+
case "AAC":
|
|
151
135
|
return AudioCodec.AAC;
|
|
152
136
|
case -1:
|
|
153
|
-
case
|
|
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
|
|
146
|
+
return "DEFAULT_AC";
|
|
163
147
|
case AudioCodec.OPUS:
|
|
164
|
-
return
|
|
148
|
+
return "OPUS";
|
|
165
149
|
case AudioCodec.AAC:
|
|
166
|
-
return
|
|
150
|
+
return "AAC";
|
|
151
|
+
case AudioCodec.UNRECOGNIZED:
|
|
167
152
|
default:
|
|
168
|
-
return
|
|
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
|
|
168
|
+
case "DEFAULT_VC":
|
|
184
169
|
return VideoCodec.DEFAULT_VC;
|
|
185
170
|
case 1:
|
|
186
|
-
case
|
|
171
|
+
case "H264_BASELINE":
|
|
187
172
|
return VideoCodec.H264_BASELINE;
|
|
188
173
|
case 2:
|
|
189
|
-
case
|
|
174
|
+
case "H264_MAIN":
|
|
190
175
|
return VideoCodec.H264_MAIN;
|
|
191
176
|
case 3:
|
|
192
|
-
case
|
|
177
|
+
case "H264_HIGH":
|
|
193
178
|
return VideoCodec.H264_HIGH;
|
|
194
179
|
case -1:
|
|
195
|
-
case
|
|
180
|
+
case "UNRECOGNIZED":
|
|
196
181
|
default:
|
|
197
182
|
return VideoCodec.UNRECOGNIZED;
|
|
198
183
|
}
|
|
@@ -201,15 +186,16 @@ exports.videoCodecFromJSON = videoCodecFromJSON;
|
|
|
201
186
|
function videoCodecToJSON(object) {
|
|
202
187
|
switch (object) {
|
|
203
188
|
case VideoCodec.DEFAULT_VC:
|
|
204
|
-
return
|
|
189
|
+
return "DEFAULT_VC";
|
|
205
190
|
case VideoCodec.H264_BASELINE:
|
|
206
|
-
return
|
|
191
|
+
return "H264_BASELINE";
|
|
207
192
|
case VideoCodec.H264_MAIN:
|
|
208
|
-
return
|
|
193
|
+
return "H264_MAIN";
|
|
209
194
|
case VideoCodec.H264_HIGH:
|
|
210
|
-
return
|
|
195
|
+
return "H264_HIGH";
|
|
196
|
+
case VideoCodec.UNRECOGNIZED:
|
|
211
197
|
default:
|
|
212
|
-
return
|
|
198
|
+
return "UNRECOGNIZED";
|
|
213
199
|
}
|
|
214
200
|
}
|
|
215
201
|
exports.videoCodecToJSON = videoCodecToJSON;
|
|
@@ -236,31 +222,31 @@ var EncodingOptionsPreset;
|
|
|
236
222
|
function encodingOptionsPresetFromJSON(object) {
|
|
237
223
|
switch (object) {
|
|
238
224
|
case 0:
|
|
239
|
-
case
|
|
225
|
+
case "H264_720P_30":
|
|
240
226
|
return EncodingOptionsPreset.H264_720P_30;
|
|
241
227
|
case 1:
|
|
242
|
-
case
|
|
228
|
+
case "H264_720P_60":
|
|
243
229
|
return EncodingOptionsPreset.H264_720P_60;
|
|
244
230
|
case 2:
|
|
245
|
-
case
|
|
231
|
+
case "H264_1080P_30":
|
|
246
232
|
return EncodingOptionsPreset.H264_1080P_30;
|
|
247
233
|
case 3:
|
|
248
|
-
case
|
|
234
|
+
case "H264_1080P_60":
|
|
249
235
|
return EncodingOptionsPreset.H264_1080P_60;
|
|
250
236
|
case 4:
|
|
251
|
-
case
|
|
237
|
+
case "PORTRAIT_H264_720P_30":
|
|
252
238
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_30;
|
|
253
239
|
case 5:
|
|
254
|
-
case
|
|
240
|
+
case "PORTRAIT_H264_720P_60":
|
|
255
241
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_60;
|
|
256
242
|
case 6:
|
|
257
|
-
case
|
|
243
|
+
case "PORTRAIT_H264_1080P_30":
|
|
258
244
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_30;
|
|
259
245
|
case 7:
|
|
260
|
-
case
|
|
246
|
+
case "PORTRAIT_H264_1080P_60":
|
|
261
247
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_60;
|
|
262
248
|
case -1:
|
|
263
|
-
case
|
|
249
|
+
case "UNRECOGNIZED":
|
|
264
250
|
default:
|
|
265
251
|
return EncodingOptionsPreset.UNRECOGNIZED;
|
|
266
252
|
}
|
|
@@ -269,23 +255,24 @@ exports.encodingOptionsPresetFromJSON = encodingOptionsPresetFromJSON;
|
|
|
269
255
|
function encodingOptionsPresetToJSON(object) {
|
|
270
256
|
switch (object) {
|
|
271
257
|
case EncodingOptionsPreset.H264_720P_30:
|
|
272
|
-
return
|
|
258
|
+
return "H264_720P_30";
|
|
273
259
|
case EncodingOptionsPreset.H264_720P_60:
|
|
274
|
-
return
|
|
260
|
+
return "H264_720P_60";
|
|
275
261
|
case EncodingOptionsPreset.H264_1080P_30:
|
|
276
|
-
return
|
|
262
|
+
return "H264_1080P_30";
|
|
277
263
|
case EncodingOptionsPreset.H264_1080P_60:
|
|
278
|
-
return
|
|
264
|
+
return "H264_1080P_60";
|
|
279
265
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_30:
|
|
280
|
-
return
|
|
266
|
+
return "PORTRAIT_H264_720P_30";
|
|
281
267
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_60:
|
|
282
|
-
return
|
|
268
|
+
return "PORTRAIT_H264_720P_60";
|
|
283
269
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_30:
|
|
284
|
-
return
|
|
270
|
+
return "PORTRAIT_H264_1080P_30";
|
|
285
271
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_60:
|
|
286
|
-
return
|
|
272
|
+
return "PORTRAIT_H264_1080P_60";
|
|
273
|
+
case EncodingOptionsPreset.UNRECOGNIZED:
|
|
287
274
|
default:
|
|
288
|
-
return
|
|
275
|
+
return "UNRECOGNIZED";
|
|
289
276
|
}
|
|
290
277
|
}
|
|
291
278
|
exports.encodingOptionsPresetToJSON = encodingOptionsPresetToJSON;
|
|
@@ -303,28 +290,28 @@ var EgressStatus;
|
|
|
303
290
|
function egressStatusFromJSON(object) {
|
|
304
291
|
switch (object) {
|
|
305
292
|
case 0:
|
|
306
|
-
case
|
|
293
|
+
case "EGRESS_STARTING":
|
|
307
294
|
return EgressStatus.EGRESS_STARTING;
|
|
308
295
|
case 1:
|
|
309
|
-
case
|
|
296
|
+
case "EGRESS_ACTIVE":
|
|
310
297
|
return EgressStatus.EGRESS_ACTIVE;
|
|
311
298
|
case 2:
|
|
312
|
-
case
|
|
299
|
+
case "EGRESS_ENDING":
|
|
313
300
|
return EgressStatus.EGRESS_ENDING;
|
|
314
301
|
case 3:
|
|
315
|
-
case
|
|
302
|
+
case "EGRESS_COMPLETE":
|
|
316
303
|
return EgressStatus.EGRESS_COMPLETE;
|
|
317
304
|
case 4:
|
|
318
|
-
case
|
|
305
|
+
case "EGRESS_FAILED":
|
|
319
306
|
return EgressStatus.EGRESS_FAILED;
|
|
320
307
|
case 5:
|
|
321
|
-
case
|
|
308
|
+
case "EGRESS_ABORTED":
|
|
322
309
|
return EgressStatus.EGRESS_ABORTED;
|
|
323
310
|
case 6:
|
|
324
|
-
case
|
|
311
|
+
case "EGRESS_LIMIT_REACHED":
|
|
325
312
|
return EgressStatus.EGRESS_LIMIT_REACHED;
|
|
326
313
|
case -1:
|
|
327
|
-
case
|
|
314
|
+
case "UNRECOGNIZED":
|
|
328
315
|
default:
|
|
329
316
|
return EgressStatus.UNRECOGNIZED;
|
|
330
317
|
}
|
|
@@ -333,21 +320,22 @@ exports.egressStatusFromJSON = egressStatusFromJSON;
|
|
|
333
320
|
function egressStatusToJSON(object) {
|
|
334
321
|
switch (object) {
|
|
335
322
|
case EgressStatus.EGRESS_STARTING:
|
|
336
|
-
return
|
|
323
|
+
return "EGRESS_STARTING";
|
|
337
324
|
case EgressStatus.EGRESS_ACTIVE:
|
|
338
|
-
return
|
|
325
|
+
return "EGRESS_ACTIVE";
|
|
339
326
|
case EgressStatus.EGRESS_ENDING:
|
|
340
|
-
return
|
|
327
|
+
return "EGRESS_ENDING";
|
|
341
328
|
case EgressStatus.EGRESS_COMPLETE:
|
|
342
|
-
return
|
|
329
|
+
return "EGRESS_COMPLETE";
|
|
343
330
|
case EgressStatus.EGRESS_FAILED:
|
|
344
|
-
return
|
|
331
|
+
return "EGRESS_FAILED";
|
|
345
332
|
case EgressStatus.EGRESS_ABORTED:
|
|
346
|
-
return
|
|
333
|
+
return "EGRESS_ABORTED";
|
|
347
334
|
case EgressStatus.EGRESS_LIMIT_REACHED:
|
|
348
|
-
return
|
|
335
|
+
return "EGRESS_LIMIT_REACHED";
|
|
336
|
+
case EgressStatus.UNRECOGNIZED:
|
|
349
337
|
default:
|
|
350
|
-
return
|
|
338
|
+
return "UNRECOGNIZED";
|
|
351
339
|
}
|
|
352
340
|
}
|
|
353
341
|
exports.egressStatusToJSON = egressStatusToJSON;
|
|
@@ -361,16 +349,16 @@ var StreamInfo_Status;
|
|
|
361
349
|
function streamInfo_StatusFromJSON(object) {
|
|
362
350
|
switch (object) {
|
|
363
351
|
case 0:
|
|
364
|
-
case
|
|
352
|
+
case "ACTIVE":
|
|
365
353
|
return StreamInfo_Status.ACTIVE;
|
|
366
354
|
case 1:
|
|
367
|
-
case
|
|
355
|
+
case "FINISHED":
|
|
368
356
|
return StreamInfo_Status.FINISHED;
|
|
369
357
|
case 2:
|
|
370
|
-
case
|
|
358
|
+
case "FAILED":
|
|
371
359
|
return StreamInfo_Status.FAILED;
|
|
372
360
|
case -1:
|
|
373
|
-
case
|
|
361
|
+
case "UNRECOGNIZED":
|
|
374
362
|
default:
|
|
375
363
|
return StreamInfo_Status.UNRECOGNIZED;
|
|
376
364
|
}
|
|
@@ -379,23 +367,24 @@ exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
|
|
|
379
367
|
function streamInfo_StatusToJSON(object) {
|
|
380
368
|
switch (object) {
|
|
381
369
|
case StreamInfo_Status.ACTIVE:
|
|
382
|
-
return
|
|
370
|
+
return "ACTIVE";
|
|
383
371
|
case StreamInfo_Status.FINISHED:
|
|
384
|
-
return
|
|
372
|
+
return "FINISHED";
|
|
385
373
|
case StreamInfo_Status.FAILED:
|
|
386
|
-
return
|
|
374
|
+
return "FAILED";
|
|
375
|
+
case StreamInfo_Status.UNRECOGNIZED:
|
|
387
376
|
default:
|
|
388
|
-
return
|
|
377
|
+
return "UNRECOGNIZED";
|
|
389
378
|
}
|
|
390
379
|
}
|
|
391
380
|
exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
|
|
392
381
|
function createBaseRoomCompositeEgressRequest() {
|
|
393
382
|
return {
|
|
394
|
-
roomName:
|
|
395
|
-
layout:
|
|
383
|
+
roomName: "",
|
|
384
|
+
layout: "",
|
|
396
385
|
audioOnly: false,
|
|
397
386
|
videoOnly: false,
|
|
398
|
-
customBaseUrl:
|
|
387
|
+
customBaseUrl: "",
|
|
399
388
|
file: undefined,
|
|
400
389
|
stream: undefined,
|
|
401
390
|
segments: undefined,
|
|
@@ -404,11 +393,11 @@ function createBaseRoomCompositeEgressRequest() {
|
|
|
404
393
|
};
|
|
405
394
|
}
|
|
406
395
|
exports.RoomCompositeEgressRequest = {
|
|
407
|
-
encode(message, writer =
|
|
408
|
-
if (message.roomName !==
|
|
396
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
397
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
409
398
|
writer.uint32(10).string(message.roomName);
|
|
410
399
|
}
|
|
411
|
-
if (message.layout !==
|
|
400
|
+
if (message.layout !== undefined && message.layout !== "") {
|
|
412
401
|
writer.uint32(18).string(message.layout);
|
|
413
402
|
}
|
|
414
403
|
if (message.audioOnly === true) {
|
|
@@ -417,7 +406,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
417
406
|
if (message.videoOnly === true) {
|
|
418
407
|
writer.uint32(32).bool(message.videoOnly);
|
|
419
408
|
}
|
|
420
|
-
if (message.customBaseUrl !==
|
|
409
|
+
if (message.customBaseUrl !== undefined && message.customBaseUrl !== "") {
|
|
421
410
|
writer.uint32(42).string(message.customBaseUrl);
|
|
422
411
|
}
|
|
423
412
|
if (message.file !== undefined) {
|
|
@@ -438,7 +427,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
438
427
|
return writer;
|
|
439
428
|
},
|
|
440
429
|
decode(input, length) {
|
|
441
|
-
const reader = input instanceof
|
|
430
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
442
431
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
443
432
|
const message = createBaseRoomCompositeEgressRequest();
|
|
444
433
|
while (reader.pos < end) {
|
|
@@ -483,11 +472,11 @@ exports.RoomCompositeEgressRequest = {
|
|
|
483
472
|
},
|
|
484
473
|
fromJSON(object) {
|
|
485
474
|
return {
|
|
486
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
487
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
475
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
476
|
+
layout: isSet(object.layout) ? String(object.layout) : "",
|
|
488
477
|
audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
|
|
489
478
|
videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
|
|
490
|
-
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) :
|
|
479
|
+
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : "",
|
|
491
480
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
492
481
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
493
482
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
@@ -502,15 +491,12 @@ exports.RoomCompositeEgressRequest = {
|
|
|
502
491
|
message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
|
|
503
492
|
message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
|
|
504
493
|
message.customBaseUrl !== undefined && (obj.customBaseUrl = message.customBaseUrl);
|
|
505
|
-
message.file !== undefined &&
|
|
506
|
-
|
|
507
|
-
message.stream !== undefined &&
|
|
508
|
-
(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);
|
|
509
496
|
message.segments !== undefined &&
|
|
510
497
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
511
498
|
message.preset !== undefined &&
|
|
512
|
-
(obj.preset =
|
|
513
|
-
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
499
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
514
500
|
message.advanced !== undefined &&
|
|
515
501
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
516
502
|
return obj;
|
|
@@ -518,36 +504,32 @@ exports.RoomCompositeEgressRequest = {
|
|
|
518
504
|
fromPartial(object) {
|
|
519
505
|
var _a, _b, _c, _d, _e, _f;
|
|
520
506
|
const message = createBaseRoomCompositeEgressRequest();
|
|
521
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
522
|
-
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 : "";
|
|
523
509
|
message.audioOnly = (_c = object.audioOnly) !== null && _c !== void 0 ? _c : false;
|
|
524
510
|
message.videoOnly = (_d = object.videoOnly) !== null && _d !== void 0 ? _d : false;
|
|
525
|
-
message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e :
|
|
526
|
-
message.file =
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
object.segments !== undefined && object.segments !== null
|
|
536
|
-
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
537
|
-
: 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;
|
|
538
521
|
message.preset = (_f = object.preset) !== null && _f !== void 0 ? _f : undefined;
|
|
539
|
-
message.advanced =
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
: undefined;
|
|
522
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
523
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
524
|
+
: undefined;
|
|
543
525
|
return message;
|
|
544
526
|
},
|
|
545
527
|
};
|
|
546
528
|
function createBaseTrackCompositeEgressRequest() {
|
|
547
529
|
return {
|
|
548
|
-
roomName:
|
|
549
|
-
audioTrackId:
|
|
550
|
-
videoTrackId:
|
|
530
|
+
roomName: "",
|
|
531
|
+
audioTrackId: "",
|
|
532
|
+
videoTrackId: "",
|
|
551
533
|
file: undefined,
|
|
552
534
|
stream: undefined,
|
|
553
535
|
segments: undefined,
|
|
@@ -556,14 +538,14 @@ function createBaseTrackCompositeEgressRequest() {
|
|
|
556
538
|
};
|
|
557
539
|
}
|
|
558
540
|
exports.TrackCompositeEgressRequest = {
|
|
559
|
-
encode(message, writer =
|
|
560
|
-
if (message.roomName !==
|
|
541
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
542
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
561
543
|
writer.uint32(10).string(message.roomName);
|
|
562
544
|
}
|
|
563
|
-
if (message.audioTrackId !==
|
|
545
|
+
if (message.audioTrackId !== undefined && message.audioTrackId !== "") {
|
|
564
546
|
writer.uint32(18).string(message.audioTrackId);
|
|
565
547
|
}
|
|
566
|
-
if (message.videoTrackId !==
|
|
548
|
+
if (message.videoTrackId !== undefined && message.videoTrackId !== "") {
|
|
567
549
|
writer.uint32(26).string(message.videoTrackId);
|
|
568
550
|
}
|
|
569
551
|
if (message.file !== undefined) {
|
|
@@ -584,7 +566,7 @@ exports.TrackCompositeEgressRequest = {
|
|
|
584
566
|
return writer;
|
|
585
567
|
},
|
|
586
568
|
decode(input, length) {
|
|
587
|
-
const reader = input instanceof
|
|
569
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
588
570
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
589
571
|
const message = createBaseTrackCompositeEgressRequest();
|
|
590
572
|
while (reader.pos < end) {
|
|
@@ -623,9 +605,9 @@ exports.TrackCompositeEgressRequest = {
|
|
|
623
605
|
},
|
|
624
606
|
fromJSON(object) {
|
|
625
607
|
return {
|
|
626
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
627
|
-
audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) :
|
|
628
|
-
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) : "",
|
|
629
611
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
630
612
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
631
613
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
@@ -638,15 +620,12 @@ exports.TrackCompositeEgressRequest = {
|
|
|
638
620
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
639
621
|
message.audioTrackId !== undefined && (obj.audioTrackId = message.audioTrackId);
|
|
640
622
|
message.videoTrackId !== undefined && (obj.videoTrackId = message.videoTrackId);
|
|
641
|
-
message.file !== undefined &&
|
|
642
|
-
|
|
643
|
-
message.stream !== undefined &&
|
|
644
|
-
(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);
|
|
645
625
|
message.segments !== undefined &&
|
|
646
626
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
647
627
|
message.preset !== undefined &&
|
|
648
|
-
(obj.preset =
|
|
649
|
-
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
628
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
650
629
|
message.advanced !== undefined &&
|
|
651
630
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
652
631
|
return obj;
|
|
@@ -654,38 +633,34 @@ exports.TrackCompositeEgressRequest = {
|
|
|
654
633
|
fromPartial(object) {
|
|
655
634
|
var _a, _b, _c, _d;
|
|
656
635
|
const message = createBaseTrackCompositeEgressRequest();
|
|
657
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
658
|
-
message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b :
|
|
659
|
-
message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c :
|
|
660
|
-
message.file =
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
object.segments !== undefined && object.segments !== null
|
|
670
|
-
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
671
|
-
: 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;
|
|
672
648
|
message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
|
|
673
|
-
message.advanced =
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
: undefined;
|
|
649
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
650
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
651
|
+
: undefined;
|
|
677
652
|
return message;
|
|
678
653
|
},
|
|
679
654
|
};
|
|
680
655
|
function createBaseTrackEgressRequest() {
|
|
681
|
-
return { roomName:
|
|
656
|
+
return { roomName: "", trackId: "", file: undefined, websocketUrl: undefined };
|
|
682
657
|
}
|
|
683
658
|
exports.TrackEgressRequest = {
|
|
684
|
-
encode(message, writer =
|
|
685
|
-
if (message.roomName !==
|
|
659
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
660
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
686
661
|
writer.uint32(10).string(message.roomName);
|
|
687
662
|
}
|
|
688
|
-
if (message.trackId !==
|
|
663
|
+
if (message.trackId !== undefined && message.trackId !== "") {
|
|
689
664
|
writer.uint32(18).string(message.trackId);
|
|
690
665
|
}
|
|
691
666
|
if (message.file !== undefined) {
|
|
@@ -697,7 +672,7 @@ exports.TrackEgressRequest = {
|
|
|
697
672
|
return writer;
|
|
698
673
|
},
|
|
699
674
|
decode(input, length) {
|
|
700
|
-
const reader = input instanceof
|
|
675
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
701
676
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
702
677
|
const message = createBaseTrackEgressRequest();
|
|
703
678
|
while (reader.pos < end) {
|
|
@@ -724,8 +699,8 @@ exports.TrackEgressRequest = {
|
|
|
724
699
|
},
|
|
725
700
|
fromJSON(object) {
|
|
726
701
|
return {
|
|
727
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
728
|
-
trackId: isSet(object.trackId) ? String(object.trackId) :
|
|
702
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
703
|
+
trackId: isSet(object.trackId) ? String(object.trackId) : "",
|
|
729
704
|
file: isSet(object.file) ? exports.DirectFileOutput.fromJSON(object.file) : undefined,
|
|
730
705
|
websocketUrl: isSet(object.websocketUrl) ? String(object.websocketUrl) : undefined,
|
|
731
706
|
};
|
|
@@ -734,40 +709,166 @@ exports.TrackEgressRequest = {
|
|
|
734
709
|
const obj = {};
|
|
735
710
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
736
711
|
message.trackId !== undefined && (obj.trackId = message.trackId);
|
|
737
|
-
message.file !== undefined &&
|
|
738
|
-
(obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
|
|
712
|
+
message.file !== undefined && (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
|
|
739
713
|
message.websocketUrl !== undefined && (obj.websocketUrl = message.websocketUrl);
|
|
740
714
|
return obj;
|
|
741
715
|
},
|
|
742
716
|
fromPartial(object) {
|
|
743
717
|
var _a, _b, _c;
|
|
744
718
|
const message = createBaseTrackEgressRequest();
|
|
745
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
746
|
-
message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b :
|
|
747
|
-
message.file =
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
: 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;
|
|
751
724
|
message.websocketUrl = (_c = object.websocketUrl) !== null && _c !== void 0 ? _c : undefined;
|
|
752
725
|
return message;
|
|
753
726
|
},
|
|
754
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
|
+
};
|
|
755
855
|
function createBaseEncodedFileOutput() {
|
|
756
856
|
return {
|
|
757
857
|
fileType: 0,
|
|
758
|
-
filepath:
|
|
858
|
+
filepath: "",
|
|
759
859
|
disableManifest: false,
|
|
760
860
|
s3: undefined,
|
|
761
861
|
gcp: undefined,
|
|
762
862
|
azure: undefined,
|
|
863
|
+
aliOSS: undefined,
|
|
763
864
|
};
|
|
764
865
|
}
|
|
765
866
|
exports.EncodedFileOutput = {
|
|
766
|
-
encode(message, writer =
|
|
767
|
-
if (message.fileType !== 0) {
|
|
867
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
868
|
+
if (message.fileType !== undefined && message.fileType !== 0) {
|
|
768
869
|
writer.uint32(8).int32(message.fileType);
|
|
769
870
|
}
|
|
770
|
-
if (message.filepath !==
|
|
871
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
771
872
|
writer.uint32(18).string(message.filepath);
|
|
772
873
|
}
|
|
773
874
|
if (message.disableManifest === true) {
|
|
@@ -782,10 +883,13 @@ exports.EncodedFileOutput = {
|
|
|
782
883
|
if (message.azure !== undefined) {
|
|
783
884
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(42).fork()).ldelim();
|
|
784
885
|
}
|
|
886
|
+
if (message.aliOSS !== undefined) {
|
|
887
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(58).fork()).ldelim();
|
|
888
|
+
}
|
|
785
889
|
return writer;
|
|
786
890
|
},
|
|
787
891
|
decode(input, length) {
|
|
788
|
-
const reader = input instanceof
|
|
892
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
789
893
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
790
894
|
const message = createBaseEncodedFileOutput();
|
|
791
895
|
while (reader.pos < end) {
|
|
@@ -809,6 +913,9 @@ exports.EncodedFileOutput = {
|
|
|
809
913
|
case 5:
|
|
810
914
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
811
915
|
break;
|
|
916
|
+
case 7:
|
|
917
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
918
|
+
break;
|
|
812
919
|
default:
|
|
813
920
|
reader.skipType(tag & 7);
|
|
814
921
|
break;
|
|
@@ -819,11 +926,12 @@ exports.EncodedFileOutput = {
|
|
|
819
926
|
fromJSON(object) {
|
|
820
927
|
return {
|
|
821
928
|
fileType: isSet(object.fileType) ? encodedFileTypeFromJSON(object.fileType) : 0,
|
|
822
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
929
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
823
930
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
824
931
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
825
932
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
826
933
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
934
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
827
935
|
};
|
|
828
936
|
},
|
|
829
937
|
toJSON(message) {
|
|
@@ -832,55 +940,53 @@ exports.EncodedFileOutput = {
|
|
|
832
940
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
833
941
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
834
942
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
835
|
-
message.gcp !== undefined &&
|
|
836
|
-
|
|
837
|
-
message.
|
|
838
|
-
(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);
|
|
839
946
|
return obj;
|
|
840
947
|
},
|
|
841
948
|
fromPartial(object) {
|
|
842
949
|
var _a, _b, _c;
|
|
843
950
|
const message = createBaseEncodedFileOutput();
|
|
844
951
|
message.fileType = (_a = object.fileType) !== null && _a !== void 0 ? _a : 0;
|
|
845
|
-
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b :
|
|
952
|
+
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : "";
|
|
846
953
|
message.disableManifest = (_c = object.disableManifest) !== null && _c !== void 0 ? _c : false;
|
|
847
|
-
message.s3 =
|
|
848
|
-
|
|
849
|
-
message.
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
856
|
-
: undefined;
|
|
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;
|
|
857
962
|
return message;
|
|
858
963
|
},
|
|
859
964
|
};
|
|
860
965
|
function createBaseSegmentedFileOutput() {
|
|
861
966
|
return {
|
|
862
967
|
protocol: 0,
|
|
863
|
-
filenamePrefix:
|
|
864
|
-
playlistName:
|
|
968
|
+
filenamePrefix: "",
|
|
969
|
+
playlistName: "",
|
|
865
970
|
segmentDuration: 0,
|
|
866
971
|
disableManifest: false,
|
|
867
972
|
s3: undefined,
|
|
868
973
|
gcp: undefined,
|
|
869
974
|
azure: undefined,
|
|
975
|
+
aliOSS: undefined,
|
|
870
976
|
};
|
|
871
977
|
}
|
|
872
978
|
exports.SegmentedFileOutput = {
|
|
873
|
-
encode(message, writer =
|
|
874
|
-
if (message.protocol !== 0) {
|
|
979
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
980
|
+
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
875
981
|
writer.uint32(8).int32(message.protocol);
|
|
876
982
|
}
|
|
877
|
-
if (message.filenamePrefix !==
|
|
983
|
+
if (message.filenamePrefix !== undefined && message.filenamePrefix !== "") {
|
|
878
984
|
writer.uint32(18).string(message.filenamePrefix);
|
|
879
985
|
}
|
|
880
|
-
if (message.playlistName !==
|
|
986
|
+
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
881
987
|
writer.uint32(26).string(message.playlistName);
|
|
882
988
|
}
|
|
883
|
-
if (message.segmentDuration !== 0) {
|
|
989
|
+
if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
|
|
884
990
|
writer.uint32(32).uint32(message.segmentDuration);
|
|
885
991
|
}
|
|
886
992
|
if (message.disableManifest === true) {
|
|
@@ -895,10 +1001,13 @@ exports.SegmentedFileOutput = {
|
|
|
895
1001
|
if (message.azure !== undefined) {
|
|
896
1002
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(58).fork()).ldelim();
|
|
897
1003
|
}
|
|
1004
|
+
if (message.aliOSS !== undefined) {
|
|
1005
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(74).fork()).ldelim();
|
|
1006
|
+
}
|
|
898
1007
|
return writer;
|
|
899
1008
|
},
|
|
900
1009
|
decode(input, length) {
|
|
901
|
-
const reader = input instanceof
|
|
1010
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
902
1011
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
1012
|
const message = createBaseSegmentedFileOutput();
|
|
904
1013
|
while (reader.pos < end) {
|
|
@@ -928,6 +1037,9 @@ exports.SegmentedFileOutput = {
|
|
|
928
1037
|
case 7:
|
|
929
1038
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
930
1039
|
break;
|
|
1040
|
+
case 9:
|
|
1041
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1042
|
+
break;
|
|
931
1043
|
default:
|
|
932
1044
|
reader.skipType(tag & 7);
|
|
933
1045
|
break;
|
|
@@ -938,58 +1050,54 @@ exports.SegmentedFileOutput = {
|
|
|
938
1050
|
fromJSON(object) {
|
|
939
1051
|
return {
|
|
940
1052
|
protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
|
|
941
|
-
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) :
|
|
942
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
1053
|
+
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
|
|
1054
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
943
1055
|
segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
|
|
944
1056
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
945
1057
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
946
1058
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
947
1059
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1060
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
948
1061
|
};
|
|
949
1062
|
},
|
|
950
1063
|
toJSON(message) {
|
|
951
1064
|
const obj = {};
|
|
952
|
-
message.protocol !== undefined &&
|
|
953
|
-
(obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
1065
|
+
message.protocol !== undefined && (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
954
1066
|
message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
|
|
955
1067
|
message.playlistName !== undefined && (obj.playlistName = message.playlistName);
|
|
956
|
-
message.segmentDuration !== undefined &&
|
|
957
|
-
(obj.segmentDuration = Math.round(message.segmentDuration));
|
|
1068
|
+
message.segmentDuration !== undefined && (obj.segmentDuration = Math.round(message.segmentDuration));
|
|
958
1069
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
959
1070
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
960
|
-
message.gcp !== undefined &&
|
|
961
|
-
|
|
962
|
-
message.
|
|
963
|
-
(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);
|
|
964
1074
|
return obj;
|
|
965
1075
|
},
|
|
966
1076
|
fromPartial(object) {
|
|
967
1077
|
var _a, _b, _c, _d, _e;
|
|
968
1078
|
const message = createBaseSegmentedFileOutput();
|
|
969
1079
|
message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
|
|
970
|
-
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b :
|
|
971
|
-
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 : "";
|
|
972
1082
|
message.segmentDuration = (_d = object.segmentDuration) !== null && _d !== void 0 ? _d : 0;
|
|
973
1083
|
message.disableManifest = (_e = object.disableManifest) !== null && _e !== void 0 ? _e : false;
|
|
974
|
-
message.s3 =
|
|
975
|
-
|
|
976
|
-
message.
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
983
|
-
: undefined;
|
|
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;
|
|
984
1092
|
return message;
|
|
985
1093
|
},
|
|
986
1094
|
};
|
|
987
1095
|
function createBaseDirectFileOutput() {
|
|
988
|
-
return { filepath:
|
|
1096
|
+
return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined, aliOSS: undefined };
|
|
989
1097
|
}
|
|
990
1098
|
exports.DirectFileOutput = {
|
|
991
|
-
encode(message, writer =
|
|
992
|
-
if (message.filepath !==
|
|
1099
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1100
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
993
1101
|
writer.uint32(10).string(message.filepath);
|
|
994
1102
|
}
|
|
995
1103
|
if (message.disableManifest === true) {
|
|
@@ -1004,10 +1112,13 @@ exports.DirectFileOutput = {
|
|
|
1004
1112
|
if (message.azure !== undefined) {
|
|
1005
1113
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(34).fork()).ldelim();
|
|
1006
1114
|
}
|
|
1115
|
+
if (message.aliOSS !== undefined) {
|
|
1116
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(50).fork()).ldelim();
|
|
1117
|
+
}
|
|
1007
1118
|
return writer;
|
|
1008
1119
|
},
|
|
1009
1120
|
decode(input, length) {
|
|
1010
|
-
const reader = input instanceof
|
|
1121
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1011
1122
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1012
1123
|
const message = createBaseDirectFileOutput();
|
|
1013
1124
|
while (reader.pos < end) {
|
|
@@ -1028,6 +1139,9 @@ exports.DirectFileOutput = {
|
|
|
1028
1139
|
case 4:
|
|
1029
1140
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
1030
1141
|
break;
|
|
1142
|
+
case 6:
|
|
1143
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1144
|
+
break;
|
|
1031
1145
|
default:
|
|
1032
1146
|
reader.skipType(tag & 7);
|
|
1033
1147
|
break;
|
|
@@ -1037,11 +1151,12 @@ exports.DirectFileOutput = {
|
|
|
1037
1151
|
},
|
|
1038
1152
|
fromJSON(object) {
|
|
1039
1153
|
return {
|
|
1040
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
1154
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
1041
1155
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1042
1156
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1043
1157
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
1044
1158
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1159
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
1045
1160
|
};
|
|
1046
1161
|
},
|
|
1047
1162
|
toJSON(message) {
|
|
@@ -1049,54 +1164,69 @@ exports.DirectFileOutput = {
|
|
|
1049
1164
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
1050
1165
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1051
1166
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1052
|
-
message.gcp !== undefined &&
|
|
1053
|
-
|
|
1054
|
-
message.
|
|
1055
|
-
(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);
|
|
1056
1170
|
return obj;
|
|
1057
1171
|
},
|
|
1058
1172
|
fromPartial(object) {
|
|
1059
1173
|
var _a, _b;
|
|
1060
1174
|
const message = createBaseDirectFileOutput();
|
|
1061
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
1175
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
|
|
1062
1176
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
1063
|
-
message.s3 =
|
|
1064
|
-
|
|
1065
|
-
message.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1072
|
-
: undefined;
|
|
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;
|
|
1073
1185
|
return message;
|
|
1074
1186
|
},
|
|
1075
1187
|
};
|
|
1076
1188
|
function createBaseS3Upload() {
|
|
1077
|
-
return {
|
|
1189
|
+
return {
|
|
1190
|
+
accessKey: "",
|
|
1191
|
+
secret: "",
|
|
1192
|
+
region: "",
|
|
1193
|
+
endpoint: "",
|
|
1194
|
+
bucket: "",
|
|
1195
|
+
forcePathStyle: false,
|
|
1196
|
+
metadata: {},
|
|
1197
|
+
tagging: "",
|
|
1198
|
+
};
|
|
1078
1199
|
}
|
|
1079
1200
|
exports.S3Upload = {
|
|
1080
|
-
encode(message, writer =
|
|
1081
|
-
if (message.accessKey !==
|
|
1201
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1202
|
+
if (message.accessKey !== undefined && message.accessKey !== "") {
|
|
1082
1203
|
writer.uint32(10).string(message.accessKey);
|
|
1083
1204
|
}
|
|
1084
|
-
if (message.secret !==
|
|
1205
|
+
if (message.secret !== undefined && message.secret !== "") {
|
|
1085
1206
|
writer.uint32(18).string(message.secret);
|
|
1086
1207
|
}
|
|
1087
|
-
if (message.region !==
|
|
1208
|
+
if (message.region !== undefined && message.region !== "") {
|
|
1088
1209
|
writer.uint32(26).string(message.region);
|
|
1089
1210
|
}
|
|
1090
|
-
if (message.endpoint !==
|
|
1211
|
+
if (message.endpoint !== undefined && message.endpoint !== "") {
|
|
1091
1212
|
writer.uint32(34).string(message.endpoint);
|
|
1092
1213
|
}
|
|
1093
|
-
if (message.bucket !==
|
|
1214
|
+
if (message.bucket !== undefined && message.bucket !== "") {
|
|
1094
1215
|
writer.uint32(42).string(message.bucket);
|
|
1095
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
|
+
}
|
|
1096
1226
|
return writer;
|
|
1097
1227
|
},
|
|
1098
1228
|
decode(input, length) {
|
|
1099
|
-
const reader = input instanceof
|
|
1229
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1100
1230
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1101
1231
|
const message = createBaseS3Upload();
|
|
1102
1232
|
while (reader.pos < end) {
|
|
@@ -1117,6 +1247,18 @@ exports.S3Upload = {
|
|
|
1117
1247
|
case 5:
|
|
1118
1248
|
message.bucket = reader.string();
|
|
1119
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;
|
|
1120
1262
|
default:
|
|
1121
1263
|
reader.skipType(tag & 7);
|
|
1122
1264
|
break;
|
|
@@ -1126,11 +1268,19 @@ exports.S3Upload = {
|
|
|
1126
1268
|
},
|
|
1127
1269
|
fromJSON(object) {
|
|
1128
1270
|
return {
|
|
1129
|
-
accessKey: isSet(object.accessKey) ? String(object.accessKey) :
|
|
1130
|
-
secret: isSet(object.secret) ? String(object.secret) :
|
|
1131
|
-
region: isSet(object.region) ? String(object.region) :
|
|
1132
|
-
endpoint: isSet(object.endpoint) ? String(object.endpoint) :
|
|
1133
|
-
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) : "",
|
|
1134
1284
|
};
|
|
1135
1285
|
},
|
|
1136
1286
|
toJSON(message) {
|
|
@@ -1140,34 +1290,100 @@ exports.S3Upload = {
|
|
|
1140
1290
|
message.region !== undefined && (obj.region = message.region);
|
|
1141
1291
|
message.endpoint !== undefined && (obj.endpoint = message.endpoint);
|
|
1142
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);
|
|
1143
1301
|
return obj;
|
|
1144
1302
|
},
|
|
1145
1303
|
fromPartial(object) {
|
|
1146
|
-
var _a, _b, _c, _d, _e;
|
|
1304
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1147
1305
|
const message = createBaseS3Upload();
|
|
1148
|
-
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a :
|
|
1149
|
-
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b :
|
|
1150
|
-
message.region = (_c = object.region) !== null && _c !== void 0 ? _c :
|
|
1151
|
-
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d :
|
|
1152
|
-
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 : "";
|
|
1153
1369
|
return message;
|
|
1154
1370
|
},
|
|
1155
1371
|
};
|
|
1156
1372
|
function createBaseGCPUpload() {
|
|
1157
|
-
return { credentials: new Uint8Array(), bucket:
|
|
1373
|
+
return { credentials: new Uint8Array(), bucket: "" };
|
|
1158
1374
|
}
|
|
1159
1375
|
exports.GCPUpload = {
|
|
1160
|
-
encode(message, writer =
|
|
1161
|
-
if (message.credentials.length !== 0) {
|
|
1376
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1377
|
+
if (message.credentials !== undefined && message.credentials.length !== 0) {
|
|
1162
1378
|
writer.uint32(10).bytes(message.credentials);
|
|
1163
1379
|
}
|
|
1164
|
-
if (message.bucket !==
|
|
1380
|
+
if (message.bucket !== undefined && message.bucket !== "") {
|
|
1165
1381
|
writer.uint32(18).string(message.bucket);
|
|
1166
1382
|
}
|
|
1167
1383
|
return writer;
|
|
1168
1384
|
},
|
|
1169
1385
|
decode(input, length) {
|
|
1170
|
-
const reader = input instanceof
|
|
1386
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1171
1387
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1172
1388
|
const message = createBaseGCPUpload();
|
|
1173
1389
|
while (reader.pos < end) {
|
|
@@ -1188,10 +1404,8 @@ exports.GCPUpload = {
|
|
|
1188
1404
|
},
|
|
1189
1405
|
fromJSON(object) {
|
|
1190
1406
|
return {
|
|
1191
|
-
credentials: isSet(object.credentials)
|
|
1192
|
-
|
|
1193
|
-
: new Uint8Array(),
|
|
1194
|
-
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) : "",
|
|
1195
1409
|
};
|
|
1196
1410
|
},
|
|
1197
1411
|
toJSON(message) {
|
|
@@ -1205,28 +1419,28 @@ exports.GCPUpload = {
|
|
|
1205
1419
|
var _a, _b;
|
|
1206
1420
|
const message = createBaseGCPUpload();
|
|
1207
1421
|
message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
1208
|
-
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b :
|
|
1422
|
+
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : "";
|
|
1209
1423
|
return message;
|
|
1210
1424
|
},
|
|
1211
1425
|
};
|
|
1212
1426
|
function createBaseAzureBlobUpload() {
|
|
1213
|
-
return { accountName:
|
|
1427
|
+
return { accountName: "", accountKey: "", containerName: "" };
|
|
1214
1428
|
}
|
|
1215
1429
|
exports.AzureBlobUpload = {
|
|
1216
|
-
encode(message, writer =
|
|
1217
|
-
if (message.accountName !==
|
|
1430
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1431
|
+
if (message.accountName !== undefined && message.accountName !== "") {
|
|
1218
1432
|
writer.uint32(10).string(message.accountName);
|
|
1219
1433
|
}
|
|
1220
|
-
if (message.accountKey !==
|
|
1434
|
+
if (message.accountKey !== undefined && message.accountKey !== "") {
|
|
1221
1435
|
writer.uint32(18).string(message.accountKey);
|
|
1222
1436
|
}
|
|
1223
|
-
if (message.containerName !==
|
|
1437
|
+
if (message.containerName !== undefined && message.containerName !== "") {
|
|
1224
1438
|
writer.uint32(26).string(message.containerName);
|
|
1225
1439
|
}
|
|
1226
1440
|
return writer;
|
|
1227
1441
|
},
|
|
1228
1442
|
decode(input, length) {
|
|
1229
|
-
const reader = input instanceof
|
|
1443
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1230
1444
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1231
1445
|
const message = createBaseAzureBlobUpload();
|
|
1232
1446
|
while (reader.pos < end) {
|
|
@@ -1250,9 +1464,9 @@ exports.AzureBlobUpload = {
|
|
|
1250
1464
|
},
|
|
1251
1465
|
fromJSON(object) {
|
|
1252
1466
|
return {
|
|
1253
|
-
accountName: isSet(object.accountName) ? String(object.accountName) :
|
|
1254
|
-
accountKey: isSet(object.accountKey) ? String(object.accountKey) :
|
|
1255
|
-
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) : "",
|
|
1256
1470
|
};
|
|
1257
1471
|
},
|
|
1258
1472
|
toJSON(message) {
|
|
@@ -1265,9 +1479,89 @@ exports.AzureBlobUpload = {
|
|
|
1265
1479
|
fromPartial(object) {
|
|
1266
1480
|
var _a, _b, _c;
|
|
1267
1481
|
const message = createBaseAzureBlobUpload();
|
|
1268
|
-
message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a :
|
|
1269
|
-
message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b :
|
|
1270
|
-
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 : "";
|
|
1271
1565
|
return message;
|
|
1272
1566
|
},
|
|
1273
1567
|
};
|
|
@@ -1275,17 +1569,19 @@ function createBaseStreamOutput() {
|
|
|
1275
1569
|
return { protocol: 0, urls: [] };
|
|
1276
1570
|
}
|
|
1277
1571
|
exports.StreamOutput = {
|
|
1278
|
-
encode(message, writer =
|
|
1279
|
-
if (message.protocol !== 0) {
|
|
1572
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1573
|
+
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
1280
1574
|
writer.uint32(8).int32(message.protocol);
|
|
1281
1575
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1576
|
+
if (message.urls !== undefined && message.urls.length !== 0) {
|
|
1577
|
+
for (const v of message.urls) {
|
|
1578
|
+
writer.uint32(18).string(v);
|
|
1579
|
+
}
|
|
1284
1580
|
}
|
|
1285
1581
|
return writer;
|
|
1286
1582
|
},
|
|
1287
1583
|
decode(input, length) {
|
|
1288
|
-
const reader = input instanceof
|
|
1584
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1289
1585
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1290
1586
|
const message = createBaseStreamOutput();
|
|
1291
1587
|
while (reader.pos < end) {
|
|
@@ -1343,38 +1639,38 @@ function createBaseEncodingOptions() {
|
|
|
1343
1639
|
};
|
|
1344
1640
|
}
|
|
1345
1641
|
exports.EncodingOptions = {
|
|
1346
|
-
encode(message, writer =
|
|
1347
|
-
if (message.width !== 0) {
|
|
1642
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1643
|
+
if (message.width !== undefined && message.width !== 0) {
|
|
1348
1644
|
writer.uint32(8).int32(message.width);
|
|
1349
1645
|
}
|
|
1350
|
-
if (message.height !== 0) {
|
|
1646
|
+
if (message.height !== undefined && message.height !== 0) {
|
|
1351
1647
|
writer.uint32(16).int32(message.height);
|
|
1352
1648
|
}
|
|
1353
|
-
if (message.depth !== 0) {
|
|
1649
|
+
if (message.depth !== undefined && message.depth !== 0) {
|
|
1354
1650
|
writer.uint32(24).int32(message.depth);
|
|
1355
1651
|
}
|
|
1356
|
-
if (message.framerate !== 0) {
|
|
1652
|
+
if (message.framerate !== undefined && message.framerate !== 0) {
|
|
1357
1653
|
writer.uint32(32).int32(message.framerate);
|
|
1358
1654
|
}
|
|
1359
|
-
if (message.audioCodec !== 0) {
|
|
1655
|
+
if (message.audioCodec !== undefined && message.audioCodec !== 0) {
|
|
1360
1656
|
writer.uint32(40).int32(message.audioCodec);
|
|
1361
1657
|
}
|
|
1362
|
-
if (message.audioBitrate !== 0) {
|
|
1658
|
+
if (message.audioBitrate !== undefined && message.audioBitrate !== 0) {
|
|
1363
1659
|
writer.uint32(48).int32(message.audioBitrate);
|
|
1364
1660
|
}
|
|
1365
|
-
if (message.audioFrequency !== 0) {
|
|
1661
|
+
if (message.audioFrequency !== undefined && message.audioFrequency !== 0) {
|
|
1366
1662
|
writer.uint32(56).int32(message.audioFrequency);
|
|
1367
1663
|
}
|
|
1368
|
-
if (message.videoCodec !== 0) {
|
|
1664
|
+
if (message.videoCodec !== undefined && message.videoCodec !== 0) {
|
|
1369
1665
|
writer.uint32(64).int32(message.videoCodec);
|
|
1370
1666
|
}
|
|
1371
|
-
if (message.videoBitrate !== 0) {
|
|
1667
|
+
if (message.videoBitrate !== undefined && message.videoBitrate !== 0) {
|
|
1372
1668
|
writer.uint32(72).int32(message.videoBitrate);
|
|
1373
1669
|
}
|
|
1374
1670
|
return writer;
|
|
1375
1671
|
},
|
|
1376
1672
|
decode(input, length) {
|
|
1377
|
-
const reader = input instanceof
|
|
1673
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1378
1674
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1379
1675
|
const message = createBaseEncodingOptions();
|
|
1380
1676
|
while (reader.pos < end) {
|
|
@@ -1435,8 +1731,7 @@ exports.EncodingOptions = {
|
|
|
1435
1731
|
message.framerate !== undefined && (obj.framerate = Math.round(message.framerate));
|
|
1436
1732
|
message.audioCodec !== undefined && (obj.audioCodec = audioCodecToJSON(message.audioCodec));
|
|
1437
1733
|
message.audioBitrate !== undefined && (obj.audioBitrate = Math.round(message.audioBitrate));
|
|
1438
|
-
message.audioFrequency !== undefined &&
|
|
1439
|
-
(obj.audioFrequency = Math.round(message.audioFrequency));
|
|
1734
|
+
message.audioFrequency !== undefined && (obj.audioFrequency = Math.round(message.audioFrequency));
|
|
1440
1735
|
message.videoCodec !== undefined && (obj.videoCodec = videoCodecToJSON(message.videoCodec));
|
|
1441
1736
|
message.videoBitrate !== undefined && (obj.videoBitrate = Math.round(message.videoBitrate));
|
|
1442
1737
|
return obj;
|
|
@@ -1457,20 +1752,20 @@ exports.EncodingOptions = {
|
|
|
1457
1752
|
},
|
|
1458
1753
|
};
|
|
1459
1754
|
function createBaseUpdateLayoutRequest() {
|
|
1460
|
-
return { egressId:
|
|
1755
|
+
return { egressId: "", layout: "" };
|
|
1461
1756
|
}
|
|
1462
1757
|
exports.UpdateLayoutRequest = {
|
|
1463
|
-
encode(message, writer =
|
|
1464
|
-
if (message.egressId !==
|
|
1758
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1759
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1465
1760
|
writer.uint32(10).string(message.egressId);
|
|
1466
1761
|
}
|
|
1467
|
-
if (message.layout !==
|
|
1762
|
+
if (message.layout !== undefined && message.layout !== "") {
|
|
1468
1763
|
writer.uint32(18).string(message.layout);
|
|
1469
1764
|
}
|
|
1470
1765
|
return writer;
|
|
1471
1766
|
},
|
|
1472
1767
|
decode(input, length) {
|
|
1473
|
-
const reader = input instanceof
|
|
1768
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1474
1769
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1475
1770
|
const message = createBaseUpdateLayoutRequest();
|
|
1476
1771
|
while (reader.pos < end) {
|
|
@@ -1491,8 +1786,8 @@ exports.UpdateLayoutRequest = {
|
|
|
1491
1786
|
},
|
|
1492
1787
|
fromJSON(object) {
|
|
1493
1788
|
return {
|
|
1494
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1495
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
1789
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
1790
|
+
layout: isSet(object.layout) ? String(object.layout) : "",
|
|
1496
1791
|
};
|
|
1497
1792
|
},
|
|
1498
1793
|
toJSON(message) {
|
|
@@ -1504,29 +1799,33 @@ exports.UpdateLayoutRequest = {
|
|
|
1504
1799
|
fromPartial(object) {
|
|
1505
1800
|
var _a, _b;
|
|
1506
1801
|
const message = createBaseUpdateLayoutRequest();
|
|
1507
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1508
|
-
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 : "";
|
|
1509
1804
|
return message;
|
|
1510
1805
|
},
|
|
1511
1806
|
};
|
|
1512
1807
|
function createBaseUpdateStreamRequest() {
|
|
1513
|
-
return { egressId:
|
|
1808
|
+
return { egressId: "", addOutputUrls: [], removeOutputUrls: [] };
|
|
1514
1809
|
}
|
|
1515
1810
|
exports.UpdateStreamRequest = {
|
|
1516
|
-
encode(message, writer =
|
|
1517
|
-
if (message.egressId !==
|
|
1811
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1812
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1518
1813
|
writer.uint32(10).string(message.egressId);
|
|
1519
1814
|
}
|
|
1520
|
-
|
|
1521
|
-
|
|
1815
|
+
if (message.addOutputUrls !== undefined && message.addOutputUrls.length !== 0) {
|
|
1816
|
+
for (const v of message.addOutputUrls) {
|
|
1817
|
+
writer.uint32(18).string(v);
|
|
1818
|
+
}
|
|
1522
1819
|
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1820
|
+
if (message.removeOutputUrls !== undefined && message.removeOutputUrls.length !== 0) {
|
|
1821
|
+
for (const v of message.removeOutputUrls) {
|
|
1822
|
+
writer.uint32(26).string(v);
|
|
1823
|
+
}
|
|
1525
1824
|
}
|
|
1526
1825
|
return writer;
|
|
1527
1826
|
},
|
|
1528
1827
|
decode(input, length) {
|
|
1529
|
-
const reader = input instanceof
|
|
1828
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1530
1829
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1531
1830
|
const message = createBaseUpdateStreamRequest();
|
|
1532
1831
|
while (reader.pos < end) {
|
|
@@ -1550,10 +1849,8 @@ exports.UpdateStreamRequest = {
|
|
|
1550
1849
|
},
|
|
1551
1850
|
fromJSON(object) {
|
|
1552
1851
|
return {
|
|
1553
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1554
|
-
addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
|
|
1555
|
-
? object.addOutputUrls.map((e) => String(e))
|
|
1556
|
-
: [],
|
|
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)) : [],
|
|
1557
1854
|
removeOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.removeOutputUrls)
|
|
1558
1855
|
? object.removeOutputUrls.map((e) => String(e))
|
|
1559
1856
|
: [],
|
|
@@ -1579,24 +1876,24 @@ exports.UpdateStreamRequest = {
|
|
|
1579
1876
|
fromPartial(object) {
|
|
1580
1877
|
var _a, _b, _c;
|
|
1581
1878
|
const message = createBaseUpdateStreamRequest();
|
|
1582
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1879
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
1583
1880
|
message.addOutputUrls = ((_b = object.addOutputUrls) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1584
1881
|
message.removeOutputUrls = ((_c = object.removeOutputUrls) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1585
1882
|
return message;
|
|
1586
1883
|
},
|
|
1587
1884
|
};
|
|
1588
1885
|
function createBaseListEgressRequest() {
|
|
1589
|
-
return { roomName:
|
|
1886
|
+
return { roomName: "" };
|
|
1590
1887
|
}
|
|
1591
1888
|
exports.ListEgressRequest = {
|
|
1592
|
-
encode(message, writer =
|
|
1593
|
-
if (message.roomName !==
|
|
1889
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1890
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
1594
1891
|
writer.uint32(10).string(message.roomName);
|
|
1595
1892
|
}
|
|
1596
1893
|
return writer;
|
|
1597
1894
|
},
|
|
1598
1895
|
decode(input, length) {
|
|
1599
|
-
const reader = input instanceof
|
|
1896
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1600
1897
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1601
1898
|
const message = createBaseListEgressRequest();
|
|
1602
1899
|
while (reader.pos < end) {
|
|
@@ -1613,9 +1910,7 @@ exports.ListEgressRequest = {
|
|
|
1613
1910
|
return message;
|
|
1614
1911
|
},
|
|
1615
1912
|
fromJSON(object) {
|
|
1616
|
-
return {
|
|
1617
|
-
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
1618
|
-
};
|
|
1913
|
+
return { roomName: isSet(object.roomName) ? String(object.roomName) : "" };
|
|
1619
1914
|
},
|
|
1620
1915
|
toJSON(message) {
|
|
1621
1916
|
const obj = {};
|
|
@@ -1625,7 +1920,7 @@ exports.ListEgressRequest = {
|
|
|
1625
1920
|
fromPartial(object) {
|
|
1626
1921
|
var _a;
|
|
1627
1922
|
const message = createBaseListEgressRequest();
|
|
1628
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
1923
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
1629
1924
|
return message;
|
|
1630
1925
|
},
|
|
1631
1926
|
};
|
|
@@ -1633,14 +1928,16 @@ function createBaseListEgressResponse() {
|
|
|
1633
1928
|
return { items: [] };
|
|
1634
1929
|
}
|
|
1635
1930
|
exports.ListEgressResponse = {
|
|
1636
|
-
encode(message, writer =
|
|
1637
|
-
|
|
1638
|
-
|
|
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
|
+
}
|
|
1639
1936
|
}
|
|
1640
1937
|
return writer;
|
|
1641
1938
|
},
|
|
1642
1939
|
decode(input, length) {
|
|
1643
|
-
const reader = input instanceof
|
|
1940
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1644
1941
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1645
1942
|
const message = createBaseListEgressResponse();
|
|
1646
1943
|
while (reader.pos < end) {
|
|
@@ -1657,16 +1954,12 @@ exports.ListEgressResponse = {
|
|
|
1657
1954
|
return message;
|
|
1658
1955
|
},
|
|
1659
1956
|
fromJSON(object) {
|
|
1660
|
-
return {
|
|
1661
|
-
items: Array.isArray(object === null || object === void 0 ? void 0 : object.items)
|
|
1662
|
-
? object.items.map((e) => exports.EgressInfo.fromJSON(e))
|
|
1663
|
-
: [],
|
|
1664
|
-
};
|
|
1957
|
+
return { items: Array.isArray(object === null || object === void 0 ? void 0 : object.items) ? object.items.map((e) => exports.EgressInfo.fromJSON(e)) : [] };
|
|
1665
1958
|
},
|
|
1666
1959
|
toJSON(message) {
|
|
1667
1960
|
const obj = {};
|
|
1668
1961
|
if (message.items) {
|
|
1669
|
-
obj.items = message.items.map((e) =>
|
|
1962
|
+
obj.items = message.items.map((e) => e ? exports.EgressInfo.toJSON(e) : undefined);
|
|
1670
1963
|
}
|
|
1671
1964
|
else {
|
|
1672
1965
|
obj.items = [];
|
|
@@ -1681,17 +1974,17 @@ exports.ListEgressResponse = {
|
|
|
1681
1974
|
},
|
|
1682
1975
|
};
|
|
1683
1976
|
function createBaseStopEgressRequest() {
|
|
1684
|
-
return { egressId:
|
|
1977
|
+
return { egressId: "" };
|
|
1685
1978
|
}
|
|
1686
1979
|
exports.StopEgressRequest = {
|
|
1687
|
-
encode(message, writer =
|
|
1688
|
-
if (message.egressId !==
|
|
1980
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1981
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1689
1982
|
writer.uint32(10).string(message.egressId);
|
|
1690
1983
|
}
|
|
1691
1984
|
return writer;
|
|
1692
1985
|
},
|
|
1693
1986
|
decode(input, length) {
|
|
1694
|
-
const reader = input instanceof
|
|
1987
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1695
1988
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1696
1989
|
const message = createBaseStopEgressRequest();
|
|
1697
1990
|
while (reader.pos < end) {
|
|
@@ -1708,9 +2001,7 @@ exports.StopEgressRequest = {
|
|
|
1708
2001
|
return message;
|
|
1709
2002
|
},
|
|
1710
2003
|
fromJSON(object) {
|
|
1711
|
-
return {
|
|
1712
|
-
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
1713
|
-
};
|
|
2004
|
+
return { egressId: isSet(object.egressId) ? String(object.egressId) : "" };
|
|
1714
2005
|
},
|
|
1715
2006
|
toJSON(message) {
|
|
1716
2007
|
const obj = {};
|
|
@@ -1720,48 +2011,49 @@ exports.StopEgressRequest = {
|
|
|
1720
2011
|
fromPartial(object) {
|
|
1721
2012
|
var _a;
|
|
1722
2013
|
const message = createBaseStopEgressRequest();
|
|
1723
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2014
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
1724
2015
|
return message;
|
|
1725
2016
|
},
|
|
1726
2017
|
};
|
|
1727
2018
|
function createBaseEgressInfo() {
|
|
1728
2019
|
return {
|
|
1729
|
-
egressId:
|
|
1730
|
-
roomId:
|
|
1731
|
-
roomName:
|
|
2020
|
+
egressId: "",
|
|
2021
|
+
roomId: "",
|
|
2022
|
+
roomName: "",
|
|
1732
2023
|
status: 0,
|
|
1733
2024
|
startedAt: 0,
|
|
1734
2025
|
endedAt: 0,
|
|
1735
|
-
error:
|
|
2026
|
+
error: "",
|
|
1736
2027
|
roomComposite: undefined,
|
|
1737
2028
|
trackComposite: undefined,
|
|
1738
2029
|
track: undefined,
|
|
2030
|
+
web: undefined,
|
|
1739
2031
|
stream: undefined,
|
|
1740
2032
|
file: undefined,
|
|
1741
2033
|
segments: undefined,
|
|
1742
2034
|
};
|
|
1743
2035
|
}
|
|
1744
2036
|
exports.EgressInfo = {
|
|
1745
|
-
encode(message, writer =
|
|
1746
|
-
if (message.egressId !==
|
|
2037
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2038
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1747
2039
|
writer.uint32(10).string(message.egressId);
|
|
1748
2040
|
}
|
|
1749
|
-
if (message.roomId !==
|
|
2041
|
+
if (message.roomId !== undefined && message.roomId !== "") {
|
|
1750
2042
|
writer.uint32(18).string(message.roomId);
|
|
1751
2043
|
}
|
|
1752
|
-
if (message.roomName !==
|
|
2044
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
1753
2045
|
writer.uint32(106).string(message.roomName);
|
|
1754
2046
|
}
|
|
1755
|
-
if (message.status !== 0) {
|
|
2047
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
1756
2048
|
writer.uint32(24).int32(message.status);
|
|
1757
2049
|
}
|
|
1758
|
-
if (message.startedAt !== 0) {
|
|
2050
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
1759
2051
|
writer.uint32(80).int64(message.startedAt);
|
|
1760
2052
|
}
|
|
1761
|
-
if (message.endedAt !== 0) {
|
|
2053
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
1762
2054
|
writer.uint32(88).int64(message.endedAt);
|
|
1763
2055
|
}
|
|
1764
|
-
if (message.error !==
|
|
2056
|
+
if (message.error !== undefined && message.error !== "") {
|
|
1765
2057
|
writer.uint32(74).string(message.error);
|
|
1766
2058
|
}
|
|
1767
2059
|
if (message.roomComposite !== undefined) {
|
|
@@ -1773,6 +2065,9 @@ exports.EgressInfo = {
|
|
|
1773
2065
|
if (message.track !== undefined) {
|
|
1774
2066
|
exports.TrackEgressRequest.encode(message.track, writer.uint32(50).fork()).ldelim();
|
|
1775
2067
|
}
|
|
2068
|
+
if (message.web !== undefined) {
|
|
2069
|
+
exports.WebEgressRequest.encode(message.web, writer.uint32(114).fork()).ldelim();
|
|
2070
|
+
}
|
|
1776
2071
|
if (message.stream !== undefined) {
|
|
1777
2072
|
exports.StreamInfoList.encode(message.stream, writer.uint32(58).fork()).ldelim();
|
|
1778
2073
|
}
|
|
@@ -1785,7 +2080,7 @@ exports.EgressInfo = {
|
|
|
1785
2080
|
return writer;
|
|
1786
2081
|
},
|
|
1787
2082
|
decode(input, length) {
|
|
1788
|
-
const reader = input instanceof
|
|
2083
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1789
2084
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1790
2085
|
const message = createBaseEgressInfo();
|
|
1791
2086
|
while (reader.pos < end) {
|
|
@@ -1821,6 +2116,9 @@ exports.EgressInfo = {
|
|
|
1821
2116
|
case 6:
|
|
1822
2117
|
message.track = exports.TrackEgressRequest.decode(reader, reader.uint32());
|
|
1823
2118
|
break;
|
|
2119
|
+
case 14:
|
|
2120
|
+
message.web = exports.WebEgressRequest.decode(reader, reader.uint32());
|
|
2121
|
+
break;
|
|
1824
2122
|
case 7:
|
|
1825
2123
|
message.stream = exports.StreamInfoList.decode(reader, reader.uint32());
|
|
1826
2124
|
break;
|
|
@@ -1839,13 +2137,13 @@ exports.EgressInfo = {
|
|
|
1839
2137
|
},
|
|
1840
2138
|
fromJSON(object) {
|
|
1841
2139
|
return {
|
|
1842
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1843
|
-
roomId: isSet(object.roomId) ? String(object.roomId) :
|
|
1844
|
-
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) : "",
|
|
1845
2143
|
status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
|
|
1846
2144
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
1847
2145
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
1848
|
-
error: isSet(object.error) ? String(object.error) :
|
|
2146
|
+
error: isSet(object.error) ? String(object.error) : "",
|
|
1849
2147
|
roomComposite: isSet(object.roomComposite)
|
|
1850
2148
|
? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
|
|
1851
2149
|
: undefined,
|
|
@@ -1853,6 +2151,7 @@ exports.EgressInfo = {
|
|
|
1853
2151
|
? exports.TrackCompositeEgressRequest.fromJSON(object.trackComposite)
|
|
1854
2152
|
: undefined,
|
|
1855
2153
|
track: isSet(object.track) ? exports.TrackEgressRequest.fromJSON(object.track) : undefined,
|
|
2154
|
+
web: isSet(object.web) ? exports.WebEgressRequest.fromJSON(object.web) : undefined,
|
|
1856
2155
|
stream: isSet(object.stream) ? exports.StreamInfoList.fromJSON(object.stream) : undefined,
|
|
1857
2156
|
file: isSet(object.file) ? exports.FileInfo.fromJSON(object.file) : undefined,
|
|
1858
2157
|
segments: isSet(object.segments) ? exports.SegmentsInfo.fromJSON(object.segments) : undefined,
|
|
@@ -1871,16 +2170,13 @@ exports.EgressInfo = {
|
|
|
1871
2170
|
(obj.roomComposite = message.roomComposite
|
|
1872
2171
|
? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
|
|
1873
2172
|
: undefined);
|
|
1874
|
-
message.trackComposite !== undefined &&
|
|
1875
|
-
(
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
message.
|
|
1879
|
-
|
|
1880
|
-
message.
|
|
1881
|
-
(obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
|
|
1882
|
-
message.file !== undefined &&
|
|
1883
|
-
(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);
|
|
1884
2180
|
message.segments !== undefined &&
|
|
1885
2181
|
(obj.segments = message.segments ? exports.SegmentsInfo.toJSON(message.segments) : undefined);
|
|
1886
2182
|
return obj;
|
|
@@ -1888,37 +2184,32 @@ exports.EgressInfo = {
|
|
|
1888
2184
|
fromPartial(object) {
|
|
1889
2185
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1890
2186
|
const message = createBaseEgressInfo();
|
|
1891
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1892
|
-
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b :
|
|
1893
|
-
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 : "";
|
|
1894
2190
|
message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
|
|
1895
2191
|
message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
|
|
1896
2192
|
message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
|
|
1897
|
-
message.error = (_g = object.error) !== null && _g !== void 0 ? _g :
|
|
1898
|
-
message.roomComposite =
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
message.stream =
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
message.
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
: undefined;
|
|
1918
|
-
message.segments =
|
|
1919
|
-
object.segments !== undefined && object.segments !== null
|
|
1920
|
-
? exports.SegmentsInfo.fromPartial(object.segments)
|
|
1921
|
-
: 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;
|
|
1922
2213
|
return message;
|
|
1923
2214
|
},
|
|
1924
2215
|
};
|
|
@@ -1926,14 +2217,16 @@ function createBaseStreamInfoList() {
|
|
|
1926
2217
|
return { info: [] };
|
|
1927
2218
|
}
|
|
1928
2219
|
exports.StreamInfoList = {
|
|
1929
|
-
encode(message, writer =
|
|
1930
|
-
|
|
1931
|
-
|
|
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
|
+
}
|
|
1932
2225
|
}
|
|
1933
2226
|
return writer;
|
|
1934
2227
|
},
|
|
1935
2228
|
decode(input, length) {
|
|
1936
|
-
const reader = input instanceof
|
|
2229
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1937
2230
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1938
2231
|
const message = createBaseStreamInfoList();
|
|
1939
2232
|
while (reader.pos < end) {
|
|
@@ -1950,14 +2243,12 @@ exports.StreamInfoList = {
|
|
|
1950
2243
|
return message;
|
|
1951
2244
|
},
|
|
1952
2245
|
fromJSON(object) {
|
|
1953
|
-
return {
|
|
1954
|
-
info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [],
|
|
1955
|
-
};
|
|
2246
|
+
return { info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [] };
|
|
1956
2247
|
},
|
|
1957
2248
|
toJSON(message) {
|
|
1958
2249
|
const obj = {};
|
|
1959
2250
|
if (message.info) {
|
|
1960
|
-
obj.info = message.info.map((e) =>
|
|
2251
|
+
obj.info = message.info.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
|
|
1961
2252
|
}
|
|
1962
2253
|
else {
|
|
1963
2254
|
obj.info = [];
|
|
@@ -1972,29 +2263,29 @@ exports.StreamInfoList = {
|
|
|
1972
2263
|
},
|
|
1973
2264
|
};
|
|
1974
2265
|
function createBaseStreamInfo() {
|
|
1975
|
-
return { url:
|
|
2266
|
+
return { url: "", startedAt: 0, endedAt: 0, duration: 0, status: 0 };
|
|
1976
2267
|
}
|
|
1977
2268
|
exports.StreamInfo = {
|
|
1978
|
-
encode(message, writer =
|
|
1979
|
-
if (message.url !==
|
|
2269
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2270
|
+
if (message.url !== undefined && message.url !== "") {
|
|
1980
2271
|
writer.uint32(10).string(message.url);
|
|
1981
2272
|
}
|
|
1982
|
-
if (message.startedAt !== 0) {
|
|
2273
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
1983
2274
|
writer.uint32(16).int64(message.startedAt);
|
|
1984
2275
|
}
|
|
1985
|
-
if (message.endedAt !== 0) {
|
|
2276
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
1986
2277
|
writer.uint32(24).int64(message.endedAt);
|
|
1987
2278
|
}
|
|
1988
|
-
if (message.duration !== 0) {
|
|
2279
|
+
if (message.duration !== undefined && message.duration !== 0) {
|
|
1989
2280
|
writer.uint32(32).int64(message.duration);
|
|
1990
2281
|
}
|
|
1991
|
-
if (message.status !== 0) {
|
|
2282
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
1992
2283
|
writer.uint32(40).int32(message.status);
|
|
1993
2284
|
}
|
|
1994
2285
|
return writer;
|
|
1995
2286
|
},
|
|
1996
2287
|
decode(input, length) {
|
|
1997
|
-
const reader = input instanceof
|
|
2288
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1998
2289
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1999
2290
|
const message = createBaseStreamInfo();
|
|
2000
2291
|
while (reader.pos < end) {
|
|
@@ -2024,7 +2315,7 @@ exports.StreamInfo = {
|
|
|
2024
2315
|
},
|
|
2025
2316
|
fromJSON(object) {
|
|
2026
2317
|
return {
|
|
2027
|
-
url: isSet(object.url) ? String(object.url) :
|
|
2318
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
2028
2319
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2029
2320
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2030
2321
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
@@ -2043,7 +2334,7 @@ exports.StreamInfo = {
|
|
|
2043
2334
|
fromPartial(object) {
|
|
2044
2335
|
var _a, _b, _c, _d, _e;
|
|
2045
2336
|
const message = createBaseStreamInfo();
|
|
2046
|
-
message.url = (_a = object.url) !== null && _a !== void 0 ? _a :
|
|
2337
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
2047
2338
|
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
2048
2339
|
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
2049
2340
|
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
@@ -2052,26 +2343,32 @@ exports.StreamInfo = {
|
|
|
2052
2343
|
},
|
|
2053
2344
|
};
|
|
2054
2345
|
function createBaseFileInfo() {
|
|
2055
|
-
return { filename:
|
|
2346
|
+
return { filename: "", startedAt: 0, endedAt: 0, duration: 0, size: 0, location: "" };
|
|
2056
2347
|
}
|
|
2057
2348
|
exports.FileInfo = {
|
|
2058
|
-
encode(message, writer =
|
|
2059
|
-
if (message.filename !==
|
|
2349
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2350
|
+
if (message.filename !== undefined && message.filename !== "") {
|
|
2060
2351
|
writer.uint32(10).string(message.filename);
|
|
2061
2352
|
}
|
|
2062
|
-
if (message.
|
|
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) {
|
|
2063
2360
|
writer.uint32(48).int64(message.duration);
|
|
2064
2361
|
}
|
|
2065
|
-
if (message.size !== 0) {
|
|
2362
|
+
if (message.size !== undefined && message.size !== 0) {
|
|
2066
2363
|
writer.uint32(32).int64(message.size);
|
|
2067
2364
|
}
|
|
2068
|
-
if (message.location !==
|
|
2365
|
+
if (message.location !== undefined && message.location !== "") {
|
|
2069
2366
|
writer.uint32(42).string(message.location);
|
|
2070
2367
|
}
|
|
2071
2368
|
return writer;
|
|
2072
2369
|
},
|
|
2073
2370
|
decode(input, length) {
|
|
2074
|
-
const reader = input instanceof
|
|
2371
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2075
2372
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2076
2373
|
const message = createBaseFileInfo();
|
|
2077
2374
|
while (reader.pos < end) {
|
|
@@ -2080,6 +2377,12 @@ exports.FileInfo = {
|
|
|
2080
2377
|
case 1:
|
|
2081
2378
|
message.filename = reader.string();
|
|
2082
2379
|
break;
|
|
2380
|
+
case 2:
|
|
2381
|
+
message.startedAt = longToNumber(reader.int64());
|
|
2382
|
+
break;
|
|
2383
|
+
case 3:
|
|
2384
|
+
message.endedAt = longToNumber(reader.int64());
|
|
2385
|
+
break;
|
|
2083
2386
|
case 6:
|
|
2084
2387
|
message.duration = longToNumber(reader.int64());
|
|
2085
2388
|
break;
|
|
@@ -2098,54 +2401,66 @@ exports.FileInfo = {
|
|
|
2098
2401
|
},
|
|
2099
2402
|
fromJSON(object) {
|
|
2100
2403
|
return {
|
|
2101
|
-
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,
|
|
2102
2407
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2103
2408
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2104
|
-
location: isSet(object.location) ? String(object.location) :
|
|
2409
|
+
location: isSet(object.location) ? String(object.location) : "",
|
|
2105
2410
|
};
|
|
2106
2411
|
},
|
|
2107
2412
|
toJSON(message) {
|
|
2108
2413
|
const obj = {};
|
|
2109
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));
|
|
2110
2417
|
message.duration !== undefined && (obj.duration = Math.round(message.duration));
|
|
2111
2418
|
message.size !== undefined && (obj.size = Math.round(message.size));
|
|
2112
2419
|
message.location !== undefined && (obj.location = message.location);
|
|
2113
2420
|
return obj;
|
|
2114
2421
|
},
|
|
2115
2422
|
fromPartial(object) {
|
|
2116
|
-
var _a, _b, _c, _d;
|
|
2423
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2117
2424
|
const message = createBaseFileInfo();
|
|
2118
|
-
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a :
|
|
2119
|
-
message.
|
|
2120
|
-
message.
|
|
2121
|
-
message.
|
|
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 : "";
|
|
2122
2431
|
return message;
|
|
2123
2432
|
},
|
|
2124
2433
|
};
|
|
2125
2434
|
function createBaseSegmentsInfo() {
|
|
2126
|
-
return { playlistName:
|
|
2435
|
+
return { playlistName: "", duration: 0, size: 0, playlistLocation: "", segmentCount: 0, startedAt: 0, endedAt: 0 };
|
|
2127
2436
|
}
|
|
2128
2437
|
exports.SegmentsInfo = {
|
|
2129
|
-
encode(message, writer =
|
|
2130
|
-
if (message.playlistName !==
|
|
2438
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2439
|
+
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
2131
2440
|
writer.uint32(10).string(message.playlistName);
|
|
2132
2441
|
}
|
|
2133
|
-
if (message.duration !== 0) {
|
|
2442
|
+
if (message.duration !== undefined && message.duration !== 0) {
|
|
2134
2443
|
writer.uint32(16).int64(message.duration);
|
|
2135
2444
|
}
|
|
2136
|
-
if (message.size !== 0) {
|
|
2445
|
+
if (message.size !== undefined && message.size !== 0) {
|
|
2137
2446
|
writer.uint32(24).int64(message.size);
|
|
2138
2447
|
}
|
|
2139
|
-
if (message.playlistLocation !==
|
|
2448
|
+
if (message.playlistLocation !== undefined && message.playlistLocation !== "") {
|
|
2140
2449
|
writer.uint32(34).string(message.playlistLocation);
|
|
2141
2450
|
}
|
|
2142
|
-
if (message.segmentCount !== 0) {
|
|
2451
|
+
if (message.segmentCount !== undefined && message.segmentCount !== 0) {
|
|
2143
2452
|
writer.uint32(40).int64(message.segmentCount);
|
|
2144
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
|
+
}
|
|
2145
2460
|
return writer;
|
|
2146
2461
|
},
|
|
2147
2462
|
decode(input, length) {
|
|
2148
|
-
const reader = input instanceof
|
|
2463
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2149
2464
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2150
2465
|
const message = createBaseSegmentsInfo();
|
|
2151
2466
|
while (reader.pos < end) {
|
|
@@ -2166,6 +2481,12 @@ exports.SegmentsInfo = {
|
|
|
2166
2481
|
case 5:
|
|
2167
2482
|
message.segmentCount = longToNumber(reader.int64());
|
|
2168
2483
|
break;
|
|
2484
|
+
case 6:
|
|
2485
|
+
message.startedAt = longToNumber(reader.int64());
|
|
2486
|
+
break;
|
|
2487
|
+
case 7:
|
|
2488
|
+
message.endedAt = longToNumber(reader.int64());
|
|
2489
|
+
break;
|
|
2169
2490
|
default:
|
|
2170
2491
|
reader.skipType(tag & 7);
|
|
2171
2492
|
break;
|
|
@@ -2175,11 +2496,13 @@ exports.SegmentsInfo = {
|
|
|
2175
2496
|
},
|
|
2176
2497
|
fromJSON(object) {
|
|
2177
2498
|
return {
|
|
2178
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
2499
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
2179
2500
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2180
2501
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2181
|
-
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) :
|
|
2502
|
+
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : "",
|
|
2182
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,
|
|
2183
2506
|
};
|
|
2184
2507
|
},
|
|
2185
2508
|
toJSON(message) {
|
|
@@ -2189,25 +2512,29 @@ exports.SegmentsInfo = {
|
|
|
2189
2512
|
message.size !== undefined && (obj.size = Math.round(message.size));
|
|
2190
2513
|
message.playlistLocation !== undefined && (obj.playlistLocation = message.playlistLocation);
|
|
2191
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));
|
|
2192
2517
|
return obj;
|
|
2193
2518
|
},
|
|
2194
2519
|
fromPartial(object) {
|
|
2195
|
-
var _a, _b, _c, _d, _e;
|
|
2520
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2196
2521
|
const message = createBaseSegmentsInfo();
|
|
2197
|
-
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a :
|
|
2522
|
+
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : "";
|
|
2198
2523
|
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
2199
2524
|
message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
|
|
2200
|
-
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d :
|
|
2525
|
+
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : "";
|
|
2201
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;
|
|
2202
2529
|
return message;
|
|
2203
2530
|
},
|
|
2204
2531
|
};
|
|
2205
2532
|
function createBaseAutoTrackEgress() {
|
|
2206
|
-
return { filepath:
|
|
2533
|
+
return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
|
|
2207
2534
|
}
|
|
2208
2535
|
exports.AutoTrackEgress = {
|
|
2209
|
-
encode(message, writer =
|
|
2210
|
-
if (message.filepath !==
|
|
2536
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2537
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
2211
2538
|
writer.uint32(10).string(message.filepath);
|
|
2212
2539
|
}
|
|
2213
2540
|
if (message.disableManifest === true) {
|
|
@@ -2225,7 +2552,7 @@ exports.AutoTrackEgress = {
|
|
|
2225
2552
|
return writer;
|
|
2226
2553
|
},
|
|
2227
2554
|
decode(input, length) {
|
|
2228
|
-
const reader = input instanceof
|
|
2555
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2229
2556
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2230
2557
|
const message = createBaseAutoTrackEgress();
|
|
2231
2558
|
while (reader.pos < end) {
|
|
@@ -2255,7 +2582,7 @@ exports.AutoTrackEgress = {
|
|
|
2255
2582
|
},
|
|
2256
2583
|
fromJSON(object) {
|
|
2257
2584
|
return {
|
|
2258
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
2585
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
2259
2586
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
2260
2587
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
2261
2588
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -2267,67 +2594,75 @@ exports.AutoTrackEgress = {
|
|
|
2267
2594
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
2268
2595
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
2269
2596
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
2270
|
-
message.gcp !== undefined &&
|
|
2271
|
-
|
|
2272
|
-
message.azure !== undefined &&
|
|
2273
|
-
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : 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);
|
|
2274
2599
|
return obj;
|
|
2275
2600
|
},
|
|
2276
2601
|
fromPartial(object) {
|
|
2277
2602
|
var _a, _b;
|
|
2278
2603
|
const message = createBaseAutoTrackEgress();
|
|
2279
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
2604
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
|
|
2280
2605
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
2281
|
-
message.s3 =
|
|
2282
|
-
|
|
2283
|
-
message.
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
: undefined;
|
|
2287
|
-
message.azure =
|
|
2288
|
-
object.azure !== undefined && object.azure !== null
|
|
2289
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
2290
|
-
: undefined;
|
|
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;
|
|
2291
2611
|
return message;
|
|
2292
2612
|
},
|
|
2293
2613
|
};
|
|
2294
2614
|
var globalThis = (() => {
|
|
2295
|
-
if (typeof globalThis !==
|
|
2615
|
+
if (typeof globalThis !== "undefined") {
|
|
2296
2616
|
return globalThis;
|
|
2297
|
-
|
|
2617
|
+
}
|
|
2618
|
+
if (typeof self !== "undefined") {
|
|
2298
2619
|
return self;
|
|
2299
|
-
|
|
2620
|
+
}
|
|
2621
|
+
if (typeof window !== "undefined") {
|
|
2300
2622
|
return window;
|
|
2301
|
-
|
|
2623
|
+
}
|
|
2624
|
+
if (typeof global !== "undefined") {
|
|
2302
2625
|
return global;
|
|
2303
|
-
|
|
2626
|
+
}
|
|
2627
|
+
throw "Unable to locate global object";
|
|
2304
2628
|
})();
|
|
2305
|
-
const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary'));
|
|
2306
2629
|
function bytesFromBase64(b64) {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
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;
|
|
2311
2640
|
}
|
|
2312
|
-
return arr;
|
|
2313
2641
|
}
|
|
2314
|
-
const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
|
|
2315
2642
|
function base64FromBytes(arr) {
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
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(""));
|
|
2319
2652
|
}
|
|
2320
|
-
return btoa(bin.join(''));
|
|
2321
2653
|
}
|
|
2322
2654
|
function longToNumber(long) {
|
|
2323
2655
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2324
|
-
throw new globalThis.Error(
|
|
2656
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2325
2657
|
}
|
|
2326
2658
|
return long.toNumber();
|
|
2327
2659
|
}
|
|
2328
|
-
if (
|
|
2329
|
-
|
|
2330
|
-
|
|
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;
|
|
2331
2666
|
}
|
|
2332
2667
|
function isSet(value) {
|
|
2333
2668
|
return value !== null && value !== undefined;
|