@stinkycomputing/sesame-api-client 1.4.1-alpha.9 → 1.4.1-beta.10
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/README.md +60 -136
- package/dist/index.browser.mjs +2054 -1520
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +2058 -1522
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2054 -1520
- package/dist/index.mjs.map +4 -4
- package/dist/jobs-api.d.ts +5 -6
- package/dist/jobs-api.d.ts.map +1 -1
- package/dist/proto/api.d.ts +936 -897
- package/dist/proto/api.js +3716 -3072
- package/dist/rpc-client.d.ts +7 -0
- package/dist/rpc-client.d.ts.map +1 -1
- package/dist/sesame-api-client.d.ts +5 -6
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/dist/sesame-connection.d.ts +11 -2
- package/dist/sesame-connection.d.ts.map +1 -1
- package/dist/sesame-wire-protocol.d.ts +29 -0
- package/dist/sesame-wire-protocol.d.ts.map +1 -0
- package/dist/status-api.d.ts +0 -1
- package/dist/status-api.d.ts.map +1 -1
- package/docs/protocol-reference.md +1218 -0
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -32,19 +32,21 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
CodecType: () => CodecType,
|
|
34
34
|
CommandList: () => CommandList,
|
|
35
|
+
ConnectionState: () => ConnectionState,
|
|
35
36
|
EaseKind: () => EaseKind,
|
|
36
37
|
Event: () => Event,
|
|
38
|
+
FrameHeader: () => FrameHeader,
|
|
39
|
+
FrameType: () => FrameType,
|
|
37
40
|
JobsApi: () => JobsApi,
|
|
38
41
|
Message: () => Message,
|
|
39
|
-
PacketType: () => PacketType,
|
|
40
42
|
RPCClient: () => RPCClient,
|
|
41
43
|
RecorderApi: () => RecorderApi,
|
|
42
44
|
Request: () => Request,
|
|
43
45
|
Response: () => Response,
|
|
44
|
-
SesameBinaryProtocol: () => SesameBinaryProtocol,
|
|
45
46
|
SesameClient: () => SesameClient,
|
|
46
47
|
SesameConnection: () => SesameConnection,
|
|
47
48
|
StatusApi: () => StatusApi,
|
|
49
|
+
WireProtocol: () => WireProtocol,
|
|
48
50
|
getLogger: () => getLogger,
|
|
49
51
|
log: () => log,
|
|
50
52
|
sesame: () => sesame,
|
|
@@ -3201,15 +3203,20 @@ var sesame = $root.sesame = (() => {
|
|
|
3201
3203
|
values[valuesById[4] = "VIDEO_FORMAT_1080_60P"] = 4;
|
|
3202
3204
|
return values;
|
|
3203
3205
|
}();
|
|
3204
|
-
common.
|
|
3206
|
+
common.CodecType = function() {
|
|
3205
3207
|
const valuesById = {}, values = Object.create(valuesById);
|
|
3206
|
-
values[valuesById[0] = "
|
|
3207
|
-
values[valuesById[1] = "
|
|
3208
|
-
values[valuesById[2] = "
|
|
3209
|
-
values[valuesById[3] = "
|
|
3210
|
-
values[valuesById[4] = "
|
|
3211
|
-
values[valuesById[5] = "
|
|
3212
|
-
values[valuesById[6] = "
|
|
3208
|
+
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
3209
|
+
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
3210
|
+
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
3211
|
+
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
3212
|
+
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
3213
|
+
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
3214
|
+
values[valuesById[6] = "CODEC_TYPE_VIDEO_PRORES"] = 6;
|
|
3215
|
+
values[valuesById[7] = "CODEC_TYPE_VIDEO_DNXHR"] = 7;
|
|
3216
|
+
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
3217
|
+
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
3218
|
+
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
3219
|
+
values[valuesById[67] = "CODEC_TYPE_AUDIO_PCM_S24LE"] = 67;
|
|
3213
3220
|
return values;
|
|
3214
3221
|
}();
|
|
3215
3222
|
common.Empty = function() {
|
|
@@ -3797,7 +3804,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3797
3804
|
}
|
|
3798
3805
|
}
|
|
3799
3806
|
NameValue.prototype.name = "";
|
|
3800
|
-
NameValue.prototype.value =
|
|
3807
|
+
NameValue.prototype.value = null;
|
|
3801
3808
|
NameValue.create = function create(properties) {
|
|
3802
3809
|
return new NameValue(properties);
|
|
3803
3810
|
};
|
|
@@ -3810,10 +3817,10 @@ var sesame = $root.sesame = (() => {
|
|
|
3810
3817
|
10
|
|
3811
3818
|
).string(message.name);
|
|
3812
3819
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
3813
|
-
writer.uint32(
|
|
3820
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
3814
3821
|
/* id 2, wireType 2 =*/
|
|
3815
3822
|
18
|
|
3816
|
-
).
|
|
3823
|
+
).fork()).ldelim();
|
|
3817
3824
|
return writer;
|
|
3818
3825
|
};
|
|
3819
3826
|
NameValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3833,7 +3840,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3833
3840
|
break;
|
|
3834
3841
|
}
|
|
3835
3842
|
case 2: {
|
|
3836
|
-
message.value = reader.
|
|
3843
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
3837
3844
|
break;
|
|
3838
3845
|
}
|
|
3839
3846
|
default:
|
|
@@ -3856,8 +3863,9 @@ var sesame = $root.sesame = (() => {
|
|
|
3856
3863
|
return "name: string expected";
|
|
3857
3864
|
}
|
|
3858
3865
|
if (message.value != null && message.hasOwnProperty("value")) {
|
|
3859
|
-
|
|
3860
|
-
|
|
3866
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
3867
|
+
if (error)
|
|
3868
|
+
return "value." + error;
|
|
3861
3869
|
}
|
|
3862
3870
|
return null;
|
|
3863
3871
|
};
|
|
@@ -3867,8 +3875,11 @@ var sesame = $root.sesame = (() => {
|
|
|
3867
3875
|
let message = new $root.sesame.v1.common.NameValue();
|
|
3868
3876
|
if (object.name != null)
|
|
3869
3877
|
message.name = String(object.name);
|
|
3870
|
-
if (object.value != null)
|
|
3871
|
-
|
|
3878
|
+
if (object.value != null) {
|
|
3879
|
+
if (typeof object.value !== "object")
|
|
3880
|
+
throw TypeError(".sesame.v1.common.NameValue.value: object expected");
|
|
3881
|
+
message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
|
|
3882
|
+
}
|
|
3872
3883
|
return message;
|
|
3873
3884
|
};
|
|
3874
3885
|
NameValue.toObject = function toObject(message, options) {
|
|
@@ -3877,12 +3888,12 @@ var sesame = $root.sesame = (() => {
|
|
|
3877
3888
|
let object = {};
|
|
3878
3889
|
if (options.defaults) {
|
|
3879
3890
|
object.name = "";
|
|
3880
|
-
object.value =
|
|
3891
|
+
object.value = null;
|
|
3881
3892
|
}
|
|
3882
3893
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
3883
3894
|
object.name = message.name;
|
|
3884
3895
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
3885
|
-
object.value = message.value;
|
|
3896
|
+
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
3886
3897
|
return object;
|
|
3887
3898
|
};
|
|
3888
3899
|
NameValue.prototype.toJSON = function toJSON() {
|
|
@@ -4118,8 +4129,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4118
4129
|
values[valuesById[1] = "EVENT_TOPIC_ERROR"] = 1;
|
|
4119
4130
|
values[valuesById[2] = "EVENT_TOPIC_TRANSPORT"] = 2;
|
|
4120
4131
|
values[valuesById[3] = "EVENT_TOPIC_CALLBACK"] = 3;
|
|
4121
|
-
values[valuesById[4] = "
|
|
4122
|
-
values[valuesById[5] = "EVENT_TOPIC_CLIP_IMPORT"] = 5;
|
|
4132
|
+
values[valuesById[4] = "EVENT_TOPIC_JOB"] = 4;
|
|
4123
4133
|
values[valuesById[6] = "EVENT_TOPIC_RECORDER"] = 6;
|
|
4124
4134
|
return values;
|
|
4125
4135
|
}();
|
|
@@ -4179,14 +4189,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4179
4189
|
values[valuesById[15] = "SOURCE_TRANSPORT_CMD_SET_SCRUBBING"] = 15;
|
|
4180
4190
|
return values;
|
|
4181
4191
|
}();
|
|
4182
|
-
sources.DecoderType = function() {
|
|
4183
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
4184
|
-
values[valuesById[0] = "DECODER_TYPE_UNSPECIFIED"] = 0;
|
|
4185
|
-
values[valuesById[1] = "DECODER_TYPE_H264"] = 1;
|
|
4186
|
-
values[valuesById[2] = "DECODER_TYPE_HEVC"] = 2;
|
|
4187
|
-
values[valuesById[3] = "DECODER_TYPE_AV1"] = 3;
|
|
4188
|
-
return values;
|
|
4189
|
-
}();
|
|
4190
4192
|
sources.SourceTextureSize = function() {
|
|
4191
4193
|
const valuesById = {}, values = Object.create(valuesById);
|
|
4192
4194
|
values[valuesById[0] = "SOURCE_TEXTURE_SIZE_UNSPECIFIED"] = 0;
|
|
@@ -4948,7 +4950,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4948
4950
|
}
|
|
4949
4951
|
}
|
|
4950
4952
|
RecorderSourceConfig.prototype.recorderId = "";
|
|
4951
|
-
RecorderSourceConfig.prototype.
|
|
4953
|
+
RecorderSourceConfig.prototype.codec = 0;
|
|
4952
4954
|
RecorderSourceConfig.create = function create(properties) {
|
|
4953
4955
|
return new RecorderSourceConfig(properties);
|
|
4954
4956
|
};
|
|
@@ -4960,11 +4962,11 @@ var sesame = $root.sesame = (() => {
|
|
|
4960
4962
|
/* id 1, wireType 2 =*/
|
|
4961
4963
|
10
|
|
4962
4964
|
).string(message.recorderId);
|
|
4963
|
-
if (message.
|
|
4965
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
4964
4966
|
writer.uint32(
|
|
4965
4967
|
/* id 2, wireType 0 =*/
|
|
4966
4968
|
16
|
|
4967
|
-
).int32(message.
|
|
4969
|
+
).int32(message.codec);
|
|
4968
4970
|
return writer;
|
|
4969
4971
|
};
|
|
4970
4972
|
RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -4984,7 +4986,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4984
4986
|
break;
|
|
4985
4987
|
}
|
|
4986
4988
|
case 2: {
|
|
4987
|
-
message.
|
|
4989
|
+
message.codec = reader.int32();
|
|
4988
4990
|
break;
|
|
4989
4991
|
}
|
|
4990
4992
|
default:
|
|
@@ -5006,14 +5008,22 @@ var sesame = $root.sesame = (() => {
|
|
|
5006
5008
|
if (!$util.isString(message.recorderId))
|
|
5007
5009
|
return "recorderId: string expected";
|
|
5008
5010
|
}
|
|
5009
|
-
if (message.
|
|
5010
|
-
switch (message.
|
|
5011
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
5012
|
+
switch (message.codec) {
|
|
5011
5013
|
default:
|
|
5012
|
-
return "
|
|
5014
|
+
return "codec: enum value expected";
|
|
5013
5015
|
case 0:
|
|
5014
5016
|
case 1:
|
|
5015
5017
|
case 2:
|
|
5016
5018
|
case 3:
|
|
5019
|
+
case 4:
|
|
5020
|
+
case 5:
|
|
5021
|
+
case 6:
|
|
5022
|
+
case 7:
|
|
5023
|
+
case 64:
|
|
5024
|
+
case 65:
|
|
5025
|
+
case 66:
|
|
5026
|
+
case 67:
|
|
5017
5027
|
break;
|
|
5018
5028
|
}
|
|
5019
5029
|
return null;
|
|
@@ -5024,28 +5034,60 @@ var sesame = $root.sesame = (() => {
|
|
|
5024
5034
|
let message = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
5025
5035
|
if (object.recorderId != null)
|
|
5026
5036
|
message.recorderId = String(object.recorderId);
|
|
5027
|
-
switch (object.
|
|
5037
|
+
switch (object.codec) {
|
|
5028
5038
|
default:
|
|
5029
|
-
if (typeof object.
|
|
5030
|
-
message.
|
|
5039
|
+
if (typeof object.codec === "number") {
|
|
5040
|
+
message.codec = object.codec;
|
|
5031
5041
|
break;
|
|
5032
5042
|
}
|
|
5033
5043
|
break;
|
|
5034
|
-
case "
|
|
5044
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
5035
5045
|
case 0:
|
|
5036
|
-
message.
|
|
5046
|
+
message.codec = 0;
|
|
5037
5047
|
break;
|
|
5038
|
-
case "
|
|
5048
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
5039
5049
|
case 1:
|
|
5040
|
-
message.
|
|
5050
|
+
message.codec = 1;
|
|
5041
5051
|
break;
|
|
5042
|
-
case "
|
|
5052
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
5043
5053
|
case 2:
|
|
5044
|
-
message.
|
|
5054
|
+
message.codec = 2;
|
|
5045
5055
|
break;
|
|
5046
|
-
case "
|
|
5056
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
5047
5057
|
case 3:
|
|
5048
|
-
message.
|
|
5058
|
+
message.codec = 3;
|
|
5059
|
+
break;
|
|
5060
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
5061
|
+
case 4:
|
|
5062
|
+
message.codec = 4;
|
|
5063
|
+
break;
|
|
5064
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
5065
|
+
case 5:
|
|
5066
|
+
message.codec = 5;
|
|
5067
|
+
break;
|
|
5068
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
5069
|
+
case 6:
|
|
5070
|
+
message.codec = 6;
|
|
5071
|
+
break;
|
|
5072
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
5073
|
+
case 7:
|
|
5074
|
+
message.codec = 7;
|
|
5075
|
+
break;
|
|
5076
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
5077
|
+
case 64:
|
|
5078
|
+
message.codec = 64;
|
|
5079
|
+
break;
|
|
5080
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
5081
|
+
case 65:
|
|
5082
|
+
message.codec = 65;
|
|
5083
|
+
break;
|
|
5084
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
5085
|
+
case 66:
|
|
5086
|
+
message.codec = 66;
|
|
5087
|
+
break;
|
|
5088
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
5089
|
+
case 67:
|
|
5090
|
+
message.codec = 67;
|
|
5049
5091
|
break;
|
|
5050
5092
|
}
|
|
5051
5093
|
return message;
|
|
@@ -5056,12 +5098,12 @@ var sesame = $root.sesame = (() => {
|
|
|
5056
5098
|
let object = {};
|
|
5057
5099
|
if (options.defaults) {
|
|
5058
5100
|
object.recorderId = "";
|
|
5059
|
-
object.
|
|
5101
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
5060
5102
|
}
|
|
5061
5103
|
if (message.recorderId != null && message.hasOwnProperty("recorderId"))
|
|
5062
5104
|
object.recorderId = message.recorderId;
|
|
5063
|
-
if (message.
|
|
5064
|
-
object.
|
|
5105
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
5106
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
5065
5107
|
return object;
|
|
5066
5108
|
};
|
|
5067
5109
|
RecorderSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -8235,7 +8277,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8235
8277
|
RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8236
8278
|
RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8237
8279
|
RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8238
|
-
RecorderClip.prototype.
|
|
8280
|
+
RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8239
8281
|
RecorderClip.create = function create(properties) {
|
|
8240
8282
|
return new RecorderClip(properties);
|
|
8241
8283
|
};
|
|
@@ -8282,11 +8324,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8282
8324
|
/* id 8, wireType 0 =*/
|
|
8283
8325
|
64
|
|
8284
8326
|
).int64(message.lockedEndUs);
|
|
8285
|
-
if (message.
|
|
8327
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
8286
8328
|
writer.uint32(
|
|
8287
8329
|
/* id 9, wireType 0 =*/
|
|
8288
8330
|
72
|
|
8289
|
-
).int64(message.
|
|
8331
|
+
).int64(message.userTimeUs);
|
|
8290
8332
|
return writer;
|
|
8291
8333
|
};
|
|
8292
8334
|
RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -8334,7 +8376,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8334
8376
|
break;
|
|
8335
8377
|
}
|
|
8336
8378
|
case 9: {
|
|
8337
|
-
message.
|
|
8379
|
+
message.userTimeUs = reader.int64();
|
|
8338
8380
|
break;
|
|
8339
8381
|
}
|
|
8340
8382
|
default:
|
|
@@ -8384,9 +8426,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8384
8426
|
if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
|
|
8385
8427
|
return "lockedEndUs: integer|Long expected";
|
|
8386
8428
|
}
|
|
8387
|
-
if (message.
|
|
8388
|
-
if (!$util.isInteger(message.
|
|
8389
|
-
return "
|
|
8429
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
8430
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
8431
|
+
return "userTimeUs: integer|Long expected";
|
|
8390
8432
|
}
|
|
8391
8433
|
return null;
|
|
8392
8434
|
};
|
|
@@ -8458,15 +8500,15 @@ var sesame = $root.sesame = (() => {
|
|
|
8458
8500
|
else if (typeof object.lockedEndUs === "object")
|
|
8459
8501
|
message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
|
|
8460
8502
|
}
|
|
8461
|
-
if (object.
|
|
8503
|
+
if (object.userTimeUs != null) {
|
|
8462
8504
|
if ($util.Long)
|
|
8463
|
-
(message.
|
|
8464
|
-
else if (typeof object.
|
|
8465
|
-
message.
|
|
8466
|
-
else if (typeof object.
|
|
8467
|
-
message.
|
|
8468
|
-
else if (typeof object.
|
|
8469
|
-
message.
|
|
8505
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
8506
|
+
else if (typeof object.userTimeUs === "string")
|
|
8507
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
8508
|
+
else if (typeof object.userTimeUs === "number")
|
|
8509
|
+
message.userTimeUs = object.userTimeUs;
|
|
8510
|
+
else if (typeof object.userTimeUs === "object")
|
|
8511
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
8470
8512
|
}
|
|
8471
8513
|
return message;
|
|
8472
8514
|
};
|
|
@@ -8509,9 +8551,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8509
8551
|
object.lockedEndUs = options.longs === String ? "0" : 0;
|
|
8510
8552
|
if ($util.Long) {
|
|
8511
8553
|
let long = new $util.Long(0, 0, false);
|
|
8512
|
-
object.
|
|
8554
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8513
8555
|
} else
|
|
8514
|
-
object.
|
|
8556
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
8515
8557
|
}
|
|
8516
8558
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8517
8559
|
if (typeof message.id === "number")
|
|
@@ -8547,11 +8589,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8547
8589
|
object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
|
|
8548
8590
|
else
|
|
8549
8591
|
object.lockedEndUs = options.longs === String ? $util.Long.prototype.toString.call(message.lockedEndUs) : options.longs === Number ? new $util.LongBits(message.lockedEndUs.low >>> 0, message.lockedEndUs.high >>> 0).toNumber() : message.lockedEndUs;
|
|
8550
|
-
if (message.
|
|
8551
|
-
if (typeof message.
|
|
8552
|
-
object.
|
|
8592
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
8593
|
+
if (typeof message.userTimeUs === "number")
|
|
8594
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
8553
8595
|
else
|
|
8554
|
-
object.
|
|
8596
|
+
object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
|
|
8555
8597
|
return object;
|
|
8556
8598
|
};
|
|
8557
8599
|
RecorderClip.prototype.toJSON = function toJSON() {
|
|
@@ -13359,15 +13401,22 @@ var sesame = $root.sesame = (() => {
|
|
|
13359
13401
|
}
|
|
13360
13402
|
TransportEvent.prototype.sourceId = "";
|
|
13361
13403
|
TransportEvent.prototype.userId = "";
|
|
13404
|
+
TransportEvent.prototype.uri = "";
|
|
13362
13405
|
TransportEvent.prototype.state = 0;
|
|
13363
13406
|
TransportEvent.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13364
13407
|
TransportEvent.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13365
13408
|
TransportEvent.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13409
|
+
TransportEvent.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13410
|
+
TransportEvent.prototype.speed = 0;
|
|
13366
13411
|
TransportEvent.prototype.userPlaylistId = "";
|
|
13367
13412
|
TransportEvent.prototype.playlistIndex = 0;
|
|
13368
13413
|
TransportEvent.prototype.playlistLength = 0;
|
|
13369
13414
|
TransportEvent.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
13370
13415
|
TransportEvent.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13416
|
+
TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13417
|
+
TransportEvent.prototype.preroll = 0;
|
|
13418
|
+
TransportEvent.prototype.postroll = 0;
|
|
13419
|
+
TransportEvent.prototype.metadata = null;
|
|
13371
13420
|
TransportEvent.create = function create(properties) {
|
|
13372
13421
|
return new TransportEvent(properties);
|
|
13373
13422
|
};
|
|
@@ -13384,51 +13433,86 @@ var sesame = $root.sesame = (() => {
|
|
|
13384
13433
|
/* id 2, wireType 2 =*/
|
|
13385
13434
|
18
|
|
13386
13435
|
).string(message.userId);
|
|
13436
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
13437
|
+
writer.uint32(
|
|
13438
|
+
/* id 3, wireType 2 =*/
|
|
13439
|
+
26
|
|
13440
|
+
).string(message.uri);
|
|
13387
13441
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
13388
13442
|
writer.uint32(
|
|
13389
|
-
/* id
|
|
13390
|
-
|
|
13443
|
+
/* id 4, wireType 0 =*/
|
|
13444
|
+
32
|
|
13391
13445
|
).int32(message.state);
|
|
13392
13446
|
if (message.durationUs != null && Object.hasOwnProperty.call(message, "durationUs"))
|
|
13393
13447
|
writer.uint32(
|
|
13394
|
-
/* id
|
|
13395
|
-
|
|
13448
|
+
/* id 5, wireType 0 =*/
|
|
13449
|
+
40
|
|
13396
13450
|
).int64(message.durationUs);
|
|
13397
13451
|
if (message.positionUs != null && Object.hasOwnProperty.call(message, "positionUs"))
|
|
13398
13452
|
writer.uint32(
|
|
13399
|
-
/* id
|
|
13400
|
-
|
|
13453
|
+
/* id 6, wireType 0 =*/
|
|
13454
|
+
48
|
|
13401
13455
|
).int64(message.positionUs);
|
|
13402
13456
|
if (message.materialPositionUs != null && Object.hasOwnProperty.call(message, "materialPositionUs"))
|
|
13403
13457
|
writer.uint32(
|
|
13404
|
-
/* id
|
|
13405
|
-
|
|
13458
|
+
/* id 7, wireType 0 =*/
|
|
13459
|
+
56
|
|
13406
13460
|
).int64(message.materialPositionUs);
|
|
13461
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
13462
|
+
writer.uint32(
|
|
13463
|
+
/* id 8, wireType 0 =*/
|
|
13464
|
+
64
|
|
13465
|
+
).int64(message.userTimeUs);
|
|
13466
|
+
if (message.speed != null && Object.hasOwnProperty.call(message, "speed"))
|
|
13467
|
+
writer.uint32(
|
|
13468
|
+
/* id 9, wireType 5 =*/
|
|
13469
|
+
77
|
|
13470
|
+
).float(message.speed);
|
|
13407
13471
|
if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
|
|
13408
13472
|
writer.uint32(
|
|
13409
|
-
/* id
|
|
13410
|
-
|
|
13473
|
+
/* id 10, wireType 2 =*/
|
|
13474
|
+
82
|
|
13411
13475
|
).string(message.userPlaylistId);
|
|
13412
13476
|
if (message.playlistIndex != null && Object.hasOwnProperty.call(message, "playlistIndex"))
|
|
13413
13477
|
writer.uint32(
|
|
13414
|
-
/* id
|
|
13415
|
-
|
|
13478
|
+
/* id 11, wireType 0 =*/
|
|
13479
|
+
88
|
|
13416
13480
|
).uint32(message.playlistIndex);
|
|
13417
13481
|
if (message.playlistLength != null && Object.hasOwnProperty.call(message, "playlistLength"))
|
|
13418
13482
|
writer.uint32(
|
|
13419
|
-
/* id
|
|
13420
|
-
|
|
13483
|
+
/* id 12, wireType 0 =*/
|
|
13484
|
+
96
|
|
13421
13485
|
).uint32(message.playlistLength);
|
|
13422
13486
|
if (message.clipId != null && Object.hasOwnProperty.call(message, "clipId"))
|
|
13423
13487
|
writer.uint32(
|
|
13424
|
-
/* id
|
|
13425
|
-
|
|
13488
|
+
/* id 13, wireType 0 =*/
|
|
13489
|
+
104
|
|
13426
13490
|
).uint64(message.clipId);
|
|
13427
13491
|
if (message.clipPositionUs != null && Object.hasOwnProperty.call(message, "clipPositionUs"))
|
|
13428
13492
|
writer.uint32(
|
|
13429
|
-
/* id
|
|
13430
|
-
|
|
13493
|
+
/* id 14, wireType 0 =*/
|
|
13494
|
+
112
|
|
13431
13495
|
).int64(message.clipPositionUs);
|
|
13496
|
+
if (message.clipDurationUs != null && Object.hasOwnProperty.call(message, "clipDurationUs"))
|
|
13497
|
+
writer.uint32(
|
|
13498
|
+
/* id 15, wireType 0 =*/
|
|
13499
|
+
120
|
|
13500
|
+
).int64(message.clipDurationUs);
|
|
13501
|
+
if (message.preroll != null && Object.hasOwnProperty.call(message, "preroll"))
|
|
13502
|
+
writer.uint32(
|
|
13503
|
+
/* id 16, wireType 0 =*/
|
|
13504
|
+
128
|
|
13505
|
+
).uint32(message.preroll);
|
|
13506
|
+
if (message.postroll != null && Object.hasOwnProperty.call(message, "postroll"))
|
|
13507
|
+
writer.uint32(
|
|
13508
|
+
/* id 17, wireType 0 =*/
|
|
13509
|
+
136
|
|
13510
|
+
).uint32(message.postroll);
|
|
13511
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
13512
|
+
$root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
|
|
13513
|
+
/* id 18, wireType 2 =*/
|
|
13514
|
+
146
|
|
13515
|
+
).fork()).ldelim();
|
|
13432
13516
|
return writer;
|
|
13433
13517
|
};
|
|
13434
13518
|
TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -13452,41 +13536,69 @@ var sesame = $root.sesame = (() => {
|
|
|
13452
13536
|
break;
|
|
13453
13537
|
}
|
|
13454
13538
|
case 3: {
|
|
13455
|
-
message.
|
|
13539
|
+
message.uri = reader.string();
|
|
13456
13540
|
break;
|
|
13457
13541
|
}
|
|
13458
13542
|
case 4: {
|
|
13459
|
-
message.
|
|
13543
|
+
message.state = reader.int32();
|
|
13460
13544
|
break;
|
|
13461
13545
|
}
|
|
13462
13546
|
case 5: {
|
|
13463
|
-
message.
|
|
13547
|
+
message.durationUs = reader.int64();
|
|
13464
13548
|
break;
|
|
13465
13549
|
}
|
|
13466
13550
|
case 6: {
|
|
13467
|
-
message.
|
|
13551
|
+
message.positionUs = reader.int64();
|
|
13468
13552
|
break;
|
|
13469
13553
|
}
|
|
13470
13554
|
case 7: {
|
|
13471
|
-
message.
|
|
13555
|
+
message.materialPositionUs = reader.int64();
|
|
13472
13556
|
break;
|
|
13473
13557
|
}
|
|
13474
13558
|
case 8: {
|
|
13475
|
-
message.
|
|
13559
|
+
message.userTimeUs = reader.int64();
|
|
13476
13560
|
break;
|
|
13477
13561
|
}
|
|
13478
13562
|
case 9: {
|
|
13479
|
-
message.
|
|
13563
|
+
message.speed = reader.float();
|
|
13480
13564
|
break;
|
|
13481
13565
|
}
|
|
13482
13566
|
case 10: {
|
|
13483
|
-
message.
|
|
13567
|
+
message.userPlaylistId = reader.string();
|
|
13484
13568
|
break;
|
|
13485
13569
|
}
|
|
13486
13570
|
case 11: {
|
|
13571
|
+
message.playlistIndex = reader.uint32();
|
|
13572
|
+
break;
|
|
13573
|
+
}
|
|
13574
|
+
case 12: {
|
|
13575
|
+
message.playlistLength = reader.uint32();
|
|
13576
|
+
break;
|
|
13577
|
+
}
|
|
13578
|
+
case 13: {
|
|
13579
|
+
message.clipId = reader.uint64();
|
|
13580
|
+
break;
|
|
13581
|
+
}
|
|
13582
|
+
case 14: {
|
|
13487
13583
|
message.clipPositionUs = reader.int64();
|
|
13488
13584
|
break;
|
|
13489
13585
|
}
|
|
13586
|
+
case 15: {
|
|
13587
|
+
message.clipDurationUs = reader.int64();
|
|
13588
|
+
break;
|
|
13589
|
+
}
|
|
13590
|
+
case 16: {
|
|
13591
|
+
message.preroll = reader.uint32();
|
|
13592
|
+
break;
|
|
13593
|
+
}
|
|
13594
|
+
case 17: {
|
|
13595
|
+
message.postroll = reader.uint32();
|
|
13596
|
+
break;
|
|
13597
|
+
}
|
|
13598
|
+
case 18: {
|
|
13599
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
|
|
13600
|
+
break;
|
|
13601
|
+
}
|
|
13490
13602
|
default:
|
|
13491
13603
|
reader.skipType(tag & 7);
|
|
13492
13604
|
break;
|
|
@@ -13510,6 +13622,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13510
13622
|
if (!$util.isString(message.userId))
|
|
13511
13623
|
return "userId: string expected";
|
|
13512
13624
|
}
|
|
13625
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
13626
|
+
if (!$util.isString(message.uri))
|
|
13627
|
+
return "uri: string expected";
|
|
13628
|
+
}
|
|
13513
13629
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13514
13630
|
switch (message.state) {
|
|
13515
13631
|
default:
|
|
@@ -13533,6 +13649,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13533
13649
|
if (!$util.isInteger(message.materialPositionUs) && !(message.materialPositionUs && $util.isInteger(message.materialPositionUs.low) && $util.isInteger(message.materialPositionUs.high)))
|
|
13534
13650
|
return "materialPositionUs: integer|Long expected";
|
|
13535
13651
|
}
|
|
13652
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
13653
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
13654
|
+
return "userTimeUs: integer|Long expected";
|
|
13655
|
+
}
|
|
13656
|
+
if (message.speed != null && message.hasOwnProperty("speed")) {
|
|
13657
|
+
if (typeof message.speed !== "number")
|
|
13658
|
+
return "speed: number expected";
|
|
13659
|
+
}
|
|
13536
13660
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
|
|
13537
13661
|
if (!$util.isString(message.userPlaylistId))
|
|
13538
13662
|
return "userPlaylistId: string expected";
|
|
@@ -13553,6 +13677,23 @@ var sesame = $root.sesame = (() => {
|
|
|
13553
13677
|
if (!$util.isInteger(message.clipPositionUs) && !(message.clipPositionUs && $util.isInteger(message.clipPositionUs.low) && $util.isInteger(message.clipPositionUs.high)))
|
|
13554
13678
|
return "clipPositionUs: integer|Long expected";
|
|
13555
13679
|
}
|
|
13680
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs")) {
|
|
13681
|
+
if (!$util.isInteger(message.clipDurationUs) && !(message.clipDurationUs && $util.isInteger(message.clipDurationUs.low) && $util.isInteger(message.clipDurationUs.high)))
|
|
13682
|
+
return "clipDurationUs: integer|Long expected";
|
|
13683
|
+
}
|
|
13684
|
+
if (message.preroll != null && message.hasOwnProperty("preroll")) {
|
|
13685
|
+
if (!$util.isInteger(message.preroll))
|
|
13686
|
+
return "preroll: integer expected";
|
|
13687
|
+
}
|
|
13688
|
+
if (message.postroll != null && message.hasOwnProperty("postroll")) {
|
|
13689
|
+
if (!$util.isInteger(message.postroll))
|
|
13690
|
+
return "postroll: integer expected";
|
|
13691
|
+
}
|
|
13692
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
13693
|
+
let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
|
|
13694
|
+
if (error)
|
|
13695
|
+
return "metadata." + error;
|
|
13696
|
+
}
|
|
13556
13697
|
return null;
|
|
13557
13698
|
};
|
|
13558
13699
|
TransportEvent.fromObject = function fromObject(object) {
|
|
@@ -13563,6 +13704,8 @@ var sesame = $root.sesame = (() => {
|
|
|
13563
13704
|
message.sourceId = String(object.sourceId);
|
|
13564
13705
|
if (object.userId != null)
|
|
13565
13706
|
message.userId = String(object.userId);
|
|
13707
|
+
if (object.uri != null)
|
|
13708
|
+
message.uri = String(object.uri);
|
|
13566
13709
|
switch (object.state) {
|
|
13567
13710
|
default:
|
|
13568
13711
|
if (typeof object.state === "number") {
|
|
@@ -13621,6 +13764,18 @@ var sesame = $root.sesame = (() => {
|
|
|
13621
13764
|
else if (typeof object.materialPositionUs === "object")
|
|
13622
13765
|
message.materialPositionUs = new $util.LongBits(object.materialPositionUs.low >>> 0, object.materialPositionUs.high >>> 0).toNumber();
|
|
13623
13766
|
}
|
|
13767
|
+
if (object.userTimeUs != null) {
|
|
13768
|
+
if ($util.Long)
|
|
13769
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
13770
|
+
else if (typeof object.userTimeUs === "string")
|
|
13771
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
13772
|
+
else if (typeof object.userTimeUs === "number")
|
|
13773
|
+
message.userTimeUs = object.userTimeUs;
|
|
13774
|
+
else if (typeof object.userTimeUs === "object")
|
|
13775
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
13776
|
+
}
|
|
13777
|
+
if (object.speed != null)
|
|
13778
|
+
message.speed = Number(object.speed);
|
|
13624
13779
|
if (object.userPlaylistId != null)
|
|
13625
13780
|
message.userPlaylistId = String(object.userPlaylistId);
|
|
13626
13781
|
if (object.playlistIndex != null)
|
|
@@ -13647,6 +13802,25 @@ var sesame = $root.sesame = (() => {
|
|
|
13647
13802
|
else if (typeof object.clipPositionUs === "object")
|
|
13648
13803
|
message.clipPositionUs = new $util.LongBits(object.clipPositionUs.low >>> 0, object.clipPositionUs.high >>> 0).toNumber();
|
|
13649
13804
|
}
|
|
13805
|
+
if (object.clipDurationUs != null) {
|
|
13806
|
+
if ($util.Long)
|
|
13807
|
+
(message.clipDurationUs = $util.Long.fromValue(object.clipDurationUs)).unsigned = false;
|
|
13808
|
+
else if (typeof object.clipDurationUs === "string")
|
|
13809
|
+
message.clipDurationUs = parseInt(object.clipDurationUs, 10);
|
|
13810
|
+
else if (typeof object.clipDurationUs === "number")
|
|
13811
|
+
message.clipDurationUs = object.clipDurationUs;
|
|
13812
|
+
else if (typeof object.clipDurationUs === "object")
|
|
13813
|
+
message.clipDurationUs = new $util.LongBits(object.clipDurationUs.low >>> 0, object.clipDurationUs.high >>> 0).toNumber();
|
|
13814
|
+
}
|
|
13815
|
+
if (object.preroll != null)
|
|
13816
|
+
message.preroll = object.preroll >>> 0;
|
|
13817
|
+
if (object.postroll != null)
|
|
13818
|
+
message.postroll = object.postroll >>> 0;
|
|
13819
|
+
if (object.metadata != null) {
|
|
13820
|
+
if (typeof object.metadata !== "object")
|
|
13821
|
+
throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
|
|
13822
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
|
|
13823
|
+
}
|
|
13650
13824
|
return message;
|
|
13651
13825
|
};
|
|
13652
13826
|
TransportEvent.toObject = function toObject(message, options) {
|
|
@@ -13656,6 +13830,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13656
13830
|
if (options.defaults) {
|
|
13657
13831
|
object.sourceId = "";
|
|
13658
13832
|
object.userId = "";
|
|
13833
|
+
object.uri = "";
|
|
13659
13834
|
object.state = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
13660
13835
|
if ($util.Long) {
|
|
13661
13836
|
let long = new $util.Long(0, 0, false);
|
|
@@ -13672,6 +13847,12 @@ var sesame = $root.sesame = (() => {
|
|
|
13672
13847
|
object.materialPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13673
13848
|
} else
|
|
13674
13849
|
object.materialPositionUs = options.longs === String ? "0" : 0;
|
|
13850
|
+
if ($util.Long) {
|
|
13851
|
+
let long = new $util.Long(0, 0, false);
|
|
13852
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13853
|
+
} else
|
|
13854
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
13855
|
+
object.speed = 0;
|
|
13675
13856
|
object.userPlaylistId = "";
|
|
13676
13857
|
object.playlistIndex = 0;
|
|
13677
13858
|
object.playlistLength = 0;
|
|
@@ -13685,11 +13866,21 @@ var sesame = $root.sesame = (() => {
|
|
|
13685
13866
|
object.clipPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13686
13867
|
} else
|
|
13687
13868
|
object.clipPositionUs = options.longs === String ? "0" : 0;
|
|
13869
|
+
if ($util.Long) {
|
|
13870
|
+
let long = new $util.Long(0, 0, false);
|
|
13871
|
+
object.clipDurationUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13872
|
+
} else
|
|
13873
|
+
object.clipDurationUs = options.longs === String ? "0" : 0;
|
|
13874
|
+
object.preroll = 0;
|
|
13875
|
+
object.postroll = 0;
|
|
13876
|
+
object.metadata = null;
|
|
13688
13877
|
}
|
|
13689
13878
|
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
13690
13879
|
object.sourceId = message.sourceId;
|
|
13691
13880
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13692
13881
|
object.userId = message.userId;
|
|
13882
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
13883
|
+
object.uri = message.uri;
|
|
13693
13884
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13694
13885
|
object.state = options.enums === String ? $root.sesame.v1.sources.SourceTransportState[message.state] === void 0 ? message.state : $root.sesame.v1.sources.SourceTransportState[message.state] : message.state;
|
|
13695
13886
|
if (message.durationUs != null && message.hasOwnProperty("durationUs"))
|
|
@@ -13707,6 +13898,13 @@ var sesame = $root.sesame = (() => {
|
|
|
13707
13898
|
object.materialPositionUs = options.longs === String ? String(message.materialPositionUs) : message.materialPositionUs;
|
|
13708
13899
|
else
|
|
13709
13900
|
object.materialPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.materialPositionUs) : options.longs === Number ? new $util.LongBits(message.materialPositionUs.low >>> 0, message.materialPositionUs.high >>> 0).toNumber() : message.materialPositionUs;
|
|
13901
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
13902
|
+
if (typeof message.userTimeUs === "number")
|
|
13903
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
13904
|
+
else
|
|
13905
|
+
object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
|
|
13906
|
+
if (message.speed != null && message.hasOwnProperty("speed"))
|
|
13907
|
+
object.speed = options.json && !isFinite(message.speed) ? String(message.speed) : message.speed;
|
|
13710
13908
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
|
|
13711
13909
|
object.userPlaylistId = message.userPlaylistId;
|
|
13712
13910
|
if (message.playlistIndex != null && message.hasOwnProperty("playlistIndex"))
|
|
@@ -13723,6 +13921,17 @@ var sesame = $root.sesame = (() => {
|
|
|
13723
13921
|
object.clipPositionUs = options.longs === String ? String(message.clipPositionUs) : message.clipPositionUs;
|
|
13724
13922
|
else
|
|
13725
13923
|
object.clipPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipPositionUs) : options.longs === Number ? new $util.LongBits(message.clipPositionUs.low >>> 0, message.clipPositionUs.high >>> 0).toNumber() : message.clipPositionUs;
|
|
13924
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
|
|
13925
|
+
if (typeof message.clipDurationUs === "number")
|
|
13926
|
+
object.clipDurationUs = options.longs === String ? String(message.clipDurationUs) : message.clipDurationUs;
|
|
13927
|
+
else
|
|
13928
|
+
object.clipDurationUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipDurationUs) : options.longs === Number ? new $util.LongBits(message.clipDurationUs.low >>> 0, message.clipDurationUs.high >>> 0).toNumber() : message.clipDurationUs;
|
|
13929
|
+
if (message.preroll != null && message.hasOwnProperty("preroll"))
|
|
13930
|
+
object.preroll = message.preroll;
|
|
13931
|
+
if (message.postroll != null && message.hasOwnProperty("postroll"))
|
|
13932
|
+
object.postroll = message.postroll;
|
|
13933
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13934
|
+
object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
|
|
13726
13935
|
return object;
|
|
13727
13936
|
};
|
|
13728
13937
|
TransportEvent.prototype.toJSON = function toJSON() {
|
|
@@ -13747,12 +13956,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13747
13956
|
Event2.prototype.errorEvent = null;
|
|
13748
13957
|
Event2.prototype.transportEvent = null;
|
|
13749
13958
|
Event2.prototype.callbackEvent = null;
|
|
13750
|
-
Event2.prototype.
|
|
13751
|
-
Event2.prototype.clipImportEvent = null;
|
|
13959
|
+
Event2.prototype.jobEvent = null;
|
|
13752
13960
|
Event2.prototype.recorderEvent = null;
|
|
13753
13961
|
let $oneOfFields;
|
|
13754
13962
|
Object.defineProperty(Event2.prototype, "event", {
|
|
13755
|
-
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "
|
|
13963
|
+
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
|
|
13756
13964
|
set: $util.oneOfSetter($oneOfFields)
|
|
13757
13965
|
});
|
|
13758
13966
|
Event2.create = function create(properties) {
|
|
@@ -13776,16 +13984,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13776
13984
|
/* id 3, wireType 2 =*/
|
|
13777
13985
|
26
|
|
13778
13986
|
).fork()).ldelim();
|
|
13779
|
-
if (message.
|
|
13780
|
-
$root.sesame.v1.jobs.
|
|
13987
|
+
if (message.jobEvent != null && Object.hasOwnProperty.call(message, "jobEvent"))
|
|
13988
|
+
$root.sesame.v1.jobs.Job.encode(message.jobEvent, writer.uint32(
|
|
13781
13989
|
/* id 4, wireType 2 =*/
|
|
13782
13990
|
34
|
|
13783
13991
|
).fork()).ldelim();
|
|
13784
|
-
if (message.clipImportEvent != null && Object.hasOwnProperty.call(message, "clipImportEvent"))
|
|
13785
|
-
$root.sesame.v1.jobs.JobEvent.encode(message.clipImportEvent, writer.uint32(
|
|
13786
|
-
/* id 5, wireType 2 =*/
|
|
13787
|
-
42
|
|
13788
|
-
).fork()).ldelim();
|
|
13789
13992
|
if (message.recorderEvent != null && Object.hasOwnProperty.call(message, "recorderEvent"))
|
|
13790
13993
|
$root.sesame.v1.recorder.RecorderEvent.encode(message.recorderEvent, writer.uint32(
|
|
13791
13994
|
/* id 6, wireType 2 =*/
|
|
@@ -13818,11 +14021,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13818
14021
|
break;
|
|
13819
14022
|
}
|
|
13820
14023
|
case 4: {
|
|
13821
|
-
message.
|
|
13822
|
-
break;
|
|
13823
|
-
}
|
|
13824
|
-
case 5: {
|
|
13825
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
|
|
14024
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.decode(reader, reader.uint32());
|
|
13826
14025
|
break;
|
|
13827
14026
|
}
|
|
13828
14027
|
case 6: {
|
|
@@ -13873,24 +14072,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13873
14072
|
return "callbackEvent." + error;
|
|
13874
14073
|
}
|
|
13875
14074
|
}
|
|
13876
|
-
if (message.
|
|
13877
|
-
if (properties.event === 1)
|
|
13878
|
-
return "event: multiple values";
|
|
13879
|
-
properties.event = 1;
|
|
13880
|
-
{
|
|
13881
|
-
let error = $root.sesame.v1.jobs.JobEvent.verify(message.playlistExportEvent);
|
|
13882
|
-
if (error)
|
|
13883
|
-
return "playlistExportEvent." + error;
|
|
13884
|
-
}
|
|
13885
|
-
}
|
|
13886
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
14075
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
13887
14076
|
if (properties.event === 1)
|
|
13888
14077
|
return "event: multiple values";
|
|
13889
14078
|
properties.event = 1;
|
|
13890
14079
|
{
|
|
13891
|
-
let error = $root.sesame.v1.jobs.
|
|
14080
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobEvent);
|
|
13892
14081
|
if (error)
|
|
13893
|
-
return "
|
|
14082
|
+
return "jobEvent." + error;
|
|
13894
14083
|
}
|
|
13895
14084
|
}
|
|
13896
14085
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
@@ -13924,15 +14113,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13924
14113
|
throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
|
|
13925
14114
|
message.callbackEvent = $root.sesame.v1.common.Callback.fromObject(object.callbackEvent);
|
|
13926
14115
|
}
|
|
13927
|
-
if (object.
|
|
13928
|
-
if (typeof object.
|
|
13929
|
-
throw TypeError(".sesame.v1.status.Event.
|
|
13930
|
-
message.
|
|
13931
|
-
}
|
|
13932
|
-
if (object.clipImportEvent != null) {
|
|
13933
|
-
if (typeof object.clipImportEvent !== "object")
|
|
13934
|
-
throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
|
|
13935
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.clipImportEvent);
|
|
14116
|
+
if (object.jobEvent != null) {
|
|
14117
|
+
if (typeof object.jobEvent !== "object")
|
|
14118
|
+
throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
|
|
14119
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.fromObject(object.jobEvent);
|
|
13936
14120
|
}
|
|
13937
14121
|
if (object.recorderEvent != null) {
|
|
13938
14122
|
if (typeof object.recorderEvent !== "object")
|
|
@@ -13960,15 +14144,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13960
14144
|
if (options.oneofs)
|
|
13961
14145
|
object.event = "callbackEvent";
|
|
13962
14146
|
}
|
|
13963
|
-
if (message.
|
|
13964
|
-
object.
|
|
13965
|
-
if (options.oneofs)
|
|
13966
|
-
object.event = "playlistExportEvent";
|
|
13967
|
-
}
|
|
13968
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
13969
|
-
object.clipImportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.clipImportEvent, options);
|
|
14147
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
14148
|
+
object.jobEvent = $root.sesame.v1.jobs.Job.toObject(message.jobEvent, options);
|
|
13970
14149
|
if (options.oneofs)
|
|
13971
|
-
object.event = "
|
|
14150
|
+
object.event = "jobEvent";
|
|
13972
14151
|
}
|
|
13973
14152
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
13974
14153
|
object.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(message.recorderEvent, options);
|
|
@@ -14079,7 +14258,6 @@ var sesame = $root.sesame = (() => {
|
|
|
14079
14258
|
case 2:
|
|
14080
14259
|
case 3:
|
|
14081
14260
|
case 4:
|
|
14082
|
-
case 5:
|
|
14083
14261
|
case 6:
|
|
14084
14262
|
break;
|
|
14085
14263
|
}
|
|
@@ -14124,14 +14302,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14124
14302
|
case 3:
|
|
14125
14303
|
message.eventTopics[i] = 3;
|
|
14126
14304
|
break;
|
|
14127
|
-
case "
|
|
14305
|
+
case "EVENT_TOPIC_JOB":
|
|
14128
14306
|
case 4:
|
|
14129
14307
|
message.eventTopics[i] = 4;
|
|
14130
14308
|
break;
|
|
14131
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
14132
|
-
case 5:
|
|
14133
|
-
message.eventTopics[i] = 5;
|
|
14134
|
-
break;
|
|
14135
14309
|
case "EVENT_TOPIC_RECORDER":
|
|
14136
14310
|
case 6:
|
|
14137
14311
|
message.eventTopics[i] = 6;
|
|
@@ -14217,7 +14391,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14217
14391
|
this[keys[i]] = properties[keys[i]];
|
|
14218
14392
|
}
|
|
14219
14393
|
}
|
|
14220
|
-
EncoderConfig.prototype.
|
|
14394
|
+
EncoderConfig.prototype.codec = 0;
|
|
14221
14395
|
EncoderConfig.prototype.preset = 0;
|
|
14222
14396
|
EncoderConfig.prototype.bitrateKbps = 0;
|
|
14223
14397
|
EncoderConfig.prototype.keyframeInterval = 0;
|
|
@@ -14230,11 +14404,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14230
14404
|
EncoderConfig.encode = function encode(message, writer) {
|
|
14231
14405
|
if (!writer)
|
|
14232
14406
|
writer = $Writer.create();
|
|
14233
|
-
if (message.
|
|
14407
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
14234
14408
|
writer.uint32(
|
|
14235
14409
|
/* id 1, wireType 0 =*/
|
|
14236
14410
|
8
|
|
14237
|
-
).int32(message.
|
|
14411
|
+
).int32(message.codec);
|
|
14238
14412
|
if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
|
|
14239
14413
|
writer.uint32(
|
|
14240
14414
|
/* id 2, wireType 0 =*/
|
|
@@ -14280,7 +14454,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14280
14454
|
break;
|
|
14281
14455
|
switch (tag >>> 3) {
|
|
14282
14456
|
case 1: {
|
|
14283
|
-
message.
|
|
14457
|
+
message.codec = reader.int32();
|
|
14284
14458
|
break;
|
|
14285
14459
|
}
|
|
14286
14460
|
case 2: {
|
|
@@ -14322,10 +14496,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14322
14496
|
EncoderConfig.verify = function verify(message) {
|
|
14323
14497
|
if (typeof message !== "object" || message === null)
|
|
14324
14498
|
return "object expected";
|
|
14325
|
-
if (message.
|
|
14326
|
-
switch (message.
|
|
14499
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14500
|
+
switch (message.codec) {
|
|
14327
14501
|
default:
|
|
14328
|
-
return "
|
|
14502
|
+
return "codec: enum value expected";
|
|
14329
14503
|
case 0:
|
|
14330
14504
|
case 1:
|
|
14331
14505
|
case 2:
|
|
@@ -14333,6 +14507,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14333
14507
|
case 4:
|
|
14334
14508
|
case 5:
|
|
14335
14509
|
case 6:
|
|
14510
|
+
case 7:
|
|
14511
|
+
case 64:
|
|
14512
|
+
case 65:
|
|
14513
|
+
case 66:
|
|
14514
|
+
case 67:
|
|
14336
14515
|
break;
|
|
14337
14516
|
}
|
|
14338
14517
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
@@ -14371,40 +14550,60 @@ var sesame = $root.sesame = (() => {
|
|
|
14371
14550
|
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
14372
14551
|
return object;
|
|
14373
14552
|
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
14374
|
-
switch (object.
|
|
14553
|
+
switch (object.codec) {
|
|
14375
14554
|
default:
|
|
14376
|
-
if (typeof object.
|
|
14377
|
-
message.
|
|
14555
|
+
if (typeof object.codec === "number") {
|
|
14556
|
+
message.codec = object.codec;
|
|
14378
14557
|
break;
|
|
14379
14558
|
}
|
|
14380
14559
|
break;
|
|
14381
|
-
case "
|
|
14560
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
14382
14561
|
case 0:
|
|
14383
|
-
message.
|
|
14562
|
+
message.codec = 0;
|
|
14384
14563
|
break;
|
|
14385
|
-
case "
|
|
14564
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
14386
14565
|
case 1:
|
|
14387
|
-
message.
|
|
14566
|
+
message.codec = 1;
|
|
14388
14567
|
break;
|
|
14389
|
-
case "
|
|
14568
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
14390
14569
|
case 2:
|
|
14391
|
-
message.
|
|
14570
|
+
message.codec = 2;
|
|
14392
14571
|
break;
|
|
14393
|
-
case "
|
|
14572
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
14394
14573
|
case 3:
|
|
14395
|
-
message.
|
|
14574
|
+
message.codec = 3;
|
|
14396
14575
|
break;
|
|
14397
|
-
case "
|
|
14576
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
14398
14577
|
case 4:
|
|
14399
|
-
message.
|
|
14578
|
+
message.codec = 4;
|
|
14400
14579
|
break;
|
|
14401
|
-
case "
|
|
14580
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
14402
14581
|
case 5:
|
|
14403
|
-
message.
|
|
14582
|
+
message.codec = 5;
|
|
14404
14583
|
break;
|
|
14405
|
-
case "
|
|
14584
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
14406
14585
|
case 6:
|
|
14407
|
-
message.
|
|
14586
|
+
message.codec = 6;
|
|
14587
|
+
break;
|
|
14588
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
14589
|
+
case 7:
|
|
14590
|
+
message.codec = 7;
|
|
14591
|
+
break;
|
|
14592
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
14593
|
+
case 64:
|
|
14594
|
+
message.codec = 64;
|
|
14595
|
+
break;
|
|
14596
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
14597
|
+
case 65:
|
|
14598
|
+
message.codec = 65;
|
|
14599
|
+
break;
|
|
14600
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
14601
|
+
case 66:
|
|
14602
|
+
message.codec = 66;
|
|
14603
|
+
break;
|
|
14604
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
14605
|
+
case 67:
|
|
14606
|
+
message.codec = 67;
|
|
14408
14607
|
break;
|
|
14409
14608
|
}
|
|
14410
14609
|
switch (object.preset) {
|
|
@@ -14448,7 +14647,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14448
14647
|
options = {};
|
|
14449
14648
|
let object = {};
|
|
14450
14649
|
if (options.defaults) {
|
|
14451
|
-
object.
|
|
14650
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
14452
14651
|
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
14453
14652
|
object.bitrateKbps = 0;
|
|
14454
14653
|
object.keyframeInterval = 0;
|
|
@@ -14456,8 +14655,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14456
14655
|
object.height = 0;
|
|
14457
14656
|
object.fps = 0;
|
|
14458
14657
|
}
|
|
14459
|
-
if (message.
|
|
14460
|
-
object.
|
|
14658
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14659
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
14461
14660
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
14462
14661
|
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
14463
14662
|
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
@@ -18039,6 +18238,13 @@ var sesame = $root.sesame = (() => {
|
|
|
18039
18238
|
}();
|
|
18040
18239
|
v1.jobs = function() {
|
|
18041
18240
|
const jobs = {};
|
|
18241
|
+
jobs.JobType = function() {
|
|
18242
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
18243
|
+
values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
|
|
18244
|
+
values[valuesById[1] = "JOB_TYPE_EXPORT"] = 1;
|
|
18245
|
+
values[valuesById[2] = "JOB_TYPE_IMPORT"] = 2;
|
|
18246
|
+
return values;
|
|
18247
|
+
}();
|
|
18042
18248
|
jobs.JobStatus = function() {
|
|
18043
18249
|
const valuesById = {}, values = Object.create(valuesById);
|
|
18044
18250
|
values[valuesById[0] = "JOB_STATUS_UNSPECIFIED"] = 0;
|
|
@@ -18058,15 +18264,6 @@ var sesame = $root.sesame = (() => {
|
|
|
18058
18264
|
values[valuesById[4] = "CONTAINER_FORMAT_MXF"] = 4;
|
|
18059
18265
|
return values;
|
|
18060
18266
|
}();
|
|
18061
|
-
jobs.AudioCodecId = function() {
|
|
18062
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
18063
|
-
values[valuesById[0] = "AUDIO_CODEC_ID_UNSPECIFIED"] = 0;
|
|
18064
|
-
values[valuesById[1] = "AUDIO_CODEC_ID_AAC"] = 1;
|
|
18065
|
-
values[valuesById[2] = "AUDIO_CODEC_ID_OPUS"] = 2;
|
|
18066
|
-
values[valuesById[3] = "AUDIO_CODEC_ID_PCM_S16LE"] = 3;
|
|
18067
|
-
values[valuesById[4] = "AUDIO_CODEC_ID_PCM_S24LE"] = 4;
|
|
18068
|
-
return values;
|
|
18069
|
-
}();
|
|
18070
18267
|
jobs.RateControlMode = function() {
|
|
18071
18268
|
const valuesById = {}, values = Object.create(valuesById);
|
|
18072
18269
|
values[valuesById[0] = "RATE_CONTROL_MODE_UNSPECIFIED"] = 0;
|
|
@@ -18213,107 +18410,131 @@ var sesame = $root.sesame = (() => {
|
|
|
18213
18410
|
};
|
|
18214
18411
|
return TimingInfo;
|
|
18215
18412
|
}();
|
|
18216
|
-
jobs.
|
|
18217
|
-
function
|
|
18413
|
+
jobs.Job = function() {
|
|
18414
|
+
function Job(properties) {
|
|
18218
18415
|
if (properties) {
|
|
18219
18416
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18220
18417
|
if (properties[keys[i]] != null)
|
|
18221
18418
|
this[keys[i]] = properties[keys[i]];
|
|
18222
18419
|
}
|
|
18223
18420
|
}
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18421
|
+
Job.prototype.id = 0;
|
|
18422
|
+
Job.prototype.type = 0;
|
|
18423
|
+
Job.prototype.status = 0;
|
|
18424
|
+
Job.prototype.name = "";
|
|
18425
|
+
Job.prototype.description = "";
|
|
18426
|
+
Job.prototype.error = null;
|
|
18427
|
+
Job.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18428
|
+
Job.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18429
|
+
Job.prototype.timingInfo = null;
|
|
18231
18430
|
let $oneOfFields;
|
|
18232
|
-
Object.defineProperty(
|
|
18431
|
+
Object.defineProperty(Job.prototype, "_error", {
|
|
18233
18432
|
get: $util.oneOfGetter($oneOfFields = ["error"]),
|
|
18234
18433
|
set: $util.oneOfSetter($oneOfFields)
|
|
18235
18434
|
});
|
|
18236
|
-
|
|
18237
|
-
|
|
18435
|
+
Object.defineProperty(Job.prototype, "_timingInfo", {
|
|
18436
|
+
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18437
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18438
|
+
});
|
|
18439
|
+
Job.create = function create(properties) {
|
|
18440
|
+
return new Job(properties);
|
|
18238
18441
|
};
|
|
18239
|
-
|
|
18442
|
+
Job.encode = function encode(message, writer) {
|
|
18240
18443
|
if (!writer)
|
|
18241
18444
|
writer = $Writer.create();
|
|
18242
|
-
if (message.
|
|
18445
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
18243
18446
|
writer.uint32(
|
|
18244
18447
|
/* id 1, wireType 0 =*/
|
|
18245
18448
|
8
|
|
18246
|
-
).uint32(message.
|
|
18449
|
+
).uint32(message.id);
|
|
18450
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
18451
|
+
writer.uint32(
|
|
18452
|
+
/* id 2, wireType 0 =*/
|
|
18453
|
+
16
|
|
18454
|
+
).int32(message.type);
|
|
18455
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18456
|
+
writer.uint32(
|
|
18457
|
+
/* id 3, wireType 0 =*/
|
|
18458
|
+
24
|
|
18459
|
+
).int32(message.status);
|
|
18247
18460
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
18248
18461
|
writer.uint32(
|
|
18249
|
-
/* id
|
|
18250
|
-
|
|
18462
|
+
/* id 4, wireType 2 =*/
|
|
18463
|
+
34
|
|
18251
18464
|
).string(message.name);
|
|
18252
18465
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
18253
18466
|
writer.uint32(
|
|
18254
|
-
/* id
|
|
18255
|
-
|
|
18467
|
+
/* id 5, wireType 2 =*/
|
|
18468
|
+
42
|
|
18256
18469
|
).string(message.description);
|
|
18257
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18258
|
-
writer.uint32(
|
|
18259
|
-
/* id 4, wireType 0 =*/
|
|
18260
|
-
32
|
|
18261
|
-
).int32(message.status);
|
|
18262
18470
|
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18263
18471
|
writer.uint32(
|
|
18264
|
-
/* id
|
|
18265
|
-
|
|
18472
|
+
/* id 6, wireType 2 =*/
|
|
18473
|
+
50
|
|
18266
18474
|
).string(message.error);
|
|
18267
18475
|
if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
|
|
18268
|
-
writer.uint32(
|
|
18269
|
-
/* id 6, wireType 0 =*/
|
|
18270
|
-
48
|
|
18271
|
-
).uint32(message.progress);
|
|
18272
|
-
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18273
18476
|
writer.uint32(
|
|
18274
18477
|
/* id 7, wireType 0 =*/
|
|
18275
18478
|
56
|
|
18276
|
-
).
|
|
18479
|
+
).int64(message.progress);
|
|
18480
|
+
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18481
|
+
writer.uint32(
|
|
18482
|
+
/* id 8, wireType 0 =*/
|
|
18483
|
+
64
|
|
18484
|
+
).int64(message.total);
|
|
18485
|
+
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18486
|
+
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18487
|
+
/* id 9, wireType 2 =*/
|
|
18488
|
+
74
|
|
18489
|
+
).fork()).ldelim();
|
|
18277
18490
|
return writer;
|
|
18278
18491
|
};
|
|
18279
|
-
|
|
18492
|
+
Job.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18280
18493
|
return this.encode(message, writer).ldelim();
|
|
18281
18494
|
};
|
|
18282
|
-
|
|
18495
|
+
Job.decode = function decode(reader, length, error) {
|
|
18283
18496
|
if (!(reader instanceof $Reader))
|
|
18284
18497
|
reader = $Reader.create(reader);
|
|
18285
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18498
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.Job();
|
|
18286
18499
|
while (reader.pos < end) {
|
|
18287
18500
|
let tag = reader.uint32();
|
|
18288
18501
|
if (tag === error)
|
|
18289
18502
|
break;
|
|
18290
18503
|
switch (tag >>> 3) {
|
|
18291
18504
|
case 1: {
|
|
18292
|
-
message.
|
|
18505
|
+
message.id = reader.uint32();
|
|
18293
18506
|
break;
|
|
18294
18507
|
}
|
|
18295
18508
|
case 2: {
|
|
18296
|
-
message.
|
|
18509
|
+
message.type = reader.int32();
|
|
18297
18510
|
break;
|
|
18298
18511
|
}
|
|
18299
18512
|
case 3: {
|
|
18300
|
-
message.
|
|
18513
|
+
message.status = reader.int32();
|
|
18301
18514
|
break;
|
|
18302
18515
|
}
|
|
18303
18516
|
case 4: {
|
|
18304
|
-
message.
|
|
18517
|
+
message.name = reader.string();
|
|
18305
18518
|
break;
|
|
18306
18519
|
}
|
|
18307
18520
|
case 5: {
|
|
18308
|
-
message.
|
|
18521
|
+
message.description = reader.string();
|
|
18309
18522
|
break;
|
|
18310
18523
|
}
|
|
18311
18524
|
case 6: {
|
|
18312
|
-
message.
|
|
18525
|
+
message.error = reader.string();
|
|
18313
18526
|
break;
|
|
18314
18527
|
}
|
|
18315
18528
|
case 7: {
|
|
18316
|
-
message.
|
|
18529
|
+
message.progress = reader.int64();
|
|
18530
|
+
break;
|
|
18531
|
+
}
|
|
18532
|
+
case 8: {
|
|
18533
|
+
message.total = reader.int64();
|
|
18534
|
+
break;
|
|
18535
|
+
}
|
|
18536
|
+
case 9: {
|
|
18537
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18317
18538
|
break;
|
|
18318
18539
|
}
|
|
18319
18540
|
default:
|
|
@@ -18323,27 +18544,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18323
18544
|
}
|
|
18324
18545
|
return message;
|
|
18325
18546
|
};
|
|
18326
|
-
|
|
18547
|
+
Job.decodeDelimited = function decodeDelimited(reader) {
|
|
18327
18548
|
if (!(reader instanceof $Reader))
|
|
18328
18549
|
reader = new $Reader(reader);
|
|
18329
18550
|
return this.decode(reader, reader.uint32());
|
|
18330
18551
|
};
|
|
18331
|
-
|
|
18552
|
+
Job.verify = function verify(message) {
|
|
18332
18553
|
if (typeof message !== "object" || message === null)
|
|
18333
18554
|
return "object expected";
|
|
18334
18555
|
let properties = {};
|
|
18335
|
-
if (message.
|
|
18336
|
-
if (!$util.isInteger(message.
|
|
18337
|
-
return "
|
|
18338
|
-
}
|
|
18339
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18340
|
-
if (!$util.isString(message.name))
|
|
18341
|
-
return "name: string expected";
|
|
18342
|
-
}
|
|
18343
|
-
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18344
|
-
if (!$util.isString(message.description))
|
|
18345
|
-
return "description: string expected";
|
|
18556
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
18557
|
+
if (!$util.isInteger(message.id))
|
|
18558
|
+
return "id: integer expected";
|
|
18346
18559
|
}
|
|
18560
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18561
|
+
switch (message.type) {
|
|
18562
|
+
default:
|
|
18563
|
+
return "type: enum value expected";
|
|
18564
|
+
case 0:
|
|
18565
|
+
case 1:
|
|
18566
|
+
case 2:
|
|
18567
|
+
break;
|
|
18568
|
+
}
|
|
18347
18569
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
18348
18570
|
switch (message.status) {
|
|
18349
18571
|
default:
|
|
@@ -18356,31 +18578,63 @@ var sesame = $root.sesame = (() => {
|
|
|
18356
18578
|
case 5:
|
|
18357
18579
|
break;
|
|
18358
18580
|
}
|
|
18581
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18582
|
+
if (!$util.isString(message.name))
|
|
18583
|
+
return "name: string expected";
|
|
18584
|
+
}
|
|
18585
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18586
|
+
if (!$util.isString(message.description))
|
|
18587
|
+
return "description: string expected";
|
|
18588
|
+
}
|
|
18359
18589
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18360
18590
|
properties._error = 1;
|
|
18361
18591
|
if (!$util.isString(message.error))
|
|
18362
18592
|
return "error: string expected";
|
|
18363
18593
|
}
|
|
18364
18594
|
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
18365
|
-
if (!$util.isInteger(message.progress))
|
|
18366
|
-
return "progress: integer expected";
|
|
18595
|
+
if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
|
|
18596
|
+
return "progress: integer|Long expected";
|
|
18367
18597
|
}
|
|
18368
18598
|
if (message.total != null && message.hasOwnProperty("total")) {
|
|
18369
|
-
if (!$util.isInteger(message.total))
|
|
18370
|
-
return "total: integer expected";
|
|
18599
|
+
if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high)))
|
|
18600
|
+
return "total: integer|Long expected";
|
|
18601
|
+
}
|
|
18602
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18603
|
+
properties._timingInfo = 1;
|
|
18604
|
+
{
|
|
18605
|
+
let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
|
|
18606
|
+
if (error)
|
|
18607
|
+
return "timingInfo." + error;
|
|
18608
|
+
}
|
|
18371
18609
|
}
|
|
18372
18610
|
return null;
|
|
18373
18611
|
};
|
|
18374
|
-
|
|
18375
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18612
|
+
Job.fromObject = function fromObject(object) {
|
|
18613
|
+
if (object instanceof $root.sesame.v1.jobs.Job)
|
|
18376
18614
|
return object;
|
|
18377
|
-
let message = new $root.sesame.v1.jobs.
|
|
18378
|
-
if (object.
|
|
18379
|
-
message.
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18615
|
+
let message = new $root.sesame.v1.jobs.Job();
|
|
18616
|
+
if (object.id != null)
|
|
18617
|
+
message.id = object.id >>> 0;
|
|
18618
|
+
switch (object.type) {
|
|
18619
|
+
default:
|
|
18620
|
+
if (typeof object.type === "number") {
|
|
18621
|
+
message.type = object.type;
|
|
18622
|
+
break;
|
|
18623
|
+
}
|
|
18624
|
+
break;
|
|
18625
|
+
case "JOB_TYPE_UNSPECIFIED":
|
|
18626
|
+
case 0:
|
|
18627
|
+
message.type = 0;
|
|
18628
|
+
break;
|
|
18629
|
+
case "JOB_TYPE_EXPORT":
|
|
18630
|
+
case 1:
|
|
18631
|
+
message.type = 1;
|
|
18632
|
+
break;
|
|
18633
|
+
case "JOB_TYPE_IMPORT":
|
|
18634
|
+
case 2:
|
|
18635
|
+
message.type = 2;
|
|
18636
|
+
break;
|
|
18637
|
+
}
|
|
18384
18638
|
switch (object.status) {
|
|
18385
18639
|
default:
|
|
18386
18640
|
if (typeof object.status === "number") {
|
|
@@ -18413,58 +18667,105 @@ var sesame = $root.sesame = (() => {
|
|
|
18413
18667
|
message.status = 5;
|
|
18414
18668
|
break;
|
|
18415
18669
|
}
|
|
18670
|
+
if (object.name != null)
|
|
18671
|
+
message.name = String(object.name);
|
|
18672
|
+
if (object.description != null)
|
|
18673
|
+
message.description = String(object.description);
|
|
18416
18674
|
if (object.error != null)
|
|
18417
18675
|
message.error = String(object.error);
|
|
18418
|
-
if (object.progress != null)
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18676
|
+
if (object.progress != null) {
|
|
18677
|
+
if ($util.Long)
|
|
18678
|
+
(message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
|
|
18679
|
+
else if (typeof object.progress === "string")
|
|
18680
|
+
message.progress = parseInt(object.progress, 10);
|
|
18681
|
+
else if (typeof object.progress === "number")
|
|
18682
|
+
message.progress = object.progress;
|
|
18683
|
+
else if (typeof object.progress === "object")
|
|
18684
|
+
message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
|
|
18685
|
+
}
|
|
18686
|
+
if (object.total != null) {
|
|
18687
|
+
if ($util.Long)
|
|
18688
|
+
(message.total = $util.Long.fromValue(object.total)).unsigned = false;
|
|
18689
|
+
else if (typeof object.total === "string")
|
|
18690
|
+
message.total = parseInt(object.total, 10);
|
|
18691
|
+
else if (typeof object.total === "number")
|
|
18692
|
+
message.total = object.total;
|
|
18693
|
+
else if (typeof object.total === "object")
|
|
18694
|
+
message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber();
|
|
18695
|
+
}
|
|
18696
|
+
if (object.timingInfo != null) {
|
|
18697
|
+
if (typeof object.timingInfo !== "object")
|
|
18698
|
+
throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
|
|
18699
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
|
|
18700
|
+
}
|
|
18422
18701
|
return message;
|
|
18423
18702
|
};
|
|
18424
|
-
|
|
18703
|
+
Job.toObject = function toObject(message, options) {
|
|
18425
18704
|
if (!options)
|
|
18426
18705
|
options = {};
|
|
18427
18706
|
let object = {};
|
|
18428
18707
|
if (options.defaults) {
|
|
18429
|
-
object.
|
|
18708
|
+
object.id = 0;
|
|
18709
|
+
object.type = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
|
|
18710
|
+
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18430
18711
|
object.name = "";
|
|
18431
18712
|
object.description = "";
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18713
|
+
if ($util.Long) {
|
|
18714
|
+
let long = new $util.Long(0, 0, false);
|
|
18715
|
+
object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18716
|
+
} else
|
|
18717
|
+
object.progress = options.longs === String ? "0" : 0;
|
|
18718
|
+
if ($util.Long) {
|
|
18719
|
+
let long = new $util.Long(0, 0, false);
|
|
18720
|
+
object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18721
|
+
} else
|
|
18722
|
+
object.total = options.longs === String ? "0" : 0;
|
|
18435
18723
|
}
|
|
18436
|
-
if (message.
|
|
18437
|
-
object.
|
|
18724
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18725
|
+
object.id = message.id;
|
|
18726
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18727
|
+
object.type = options.enums === String ? $root.sesame.v1.jobs.JobType[message.type] === void 0 ? message.type : $root.sesame.v1.jobs.JobType[message.type] : message.type;
|
|
18728
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
18729
|
+
object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
|
|
18438
18730
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18439
18731
|
object.name = message.name;
|
|
18440
18732
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
18441
18733
|
object.description = message.description;
|
|
18442
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18443
|
-
object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
|
|
18444
18734
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18445
18735
|
object.error = message.error;
|
|
18446
18736
|
if (options.oneofs)
|
|
18447
18737
|
object._error = "error";
|
|
18448
18738
|
}
|
|
18449
18739
|
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
18450
|
-
|
|
18740
|
+
if (typeof message.progress === "number")
|
|
18741
|
+
object.progress = options.longs === String ? String(message.progress) : message.progress;
|
|
18742
|
+
else
|
|
18743
|
+
object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
|
|
18451
18744
|
if (message.total != null && message.hasOwnProperty("total"))
|
|
18452
|
-
|
|
18745
|
+
if (typeof message.total === "number")
|
|
18746
|
+
object.total = options.longs === String ? String(message.total) : message.total;
|
|
18747
|
+
else
|
|
18748
|
+
object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber() : message.total;
|
|
18749
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18750
|
+
object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
|
|
18751
|
+
if (options.oneofs)
|
|
18752
|
+
object._timingInfo = "timingInfo";
|
|
18753
|
+
}
|
|
18453
18754
|
return object;
|
|
18454
18755
|
};
|
|
18455
|
-
|
|
18756
|
+
Job.prototype.toJSON = function toJSON() {
|
|
18456
18757
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18457
18758
|
};
|
|
18458
|
-
|
|
18759
|
+
Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18459
18760
|
if (typeUrlPrefix === void 0) {
|
|
18460
18761
|
typeUrlPrefix = "type.googleapis.com";
|
|
18461
18762
|
}
|
|
18462
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18763
|
+
return typeUrlPrefix + "/sesame.v1.jobs.Job";
|
|
18463
18764
|
};
|
|
18464
|
-
return
|
|
18765
|
+
return Job;
|
|
18465
18766
|
}();
|
|
18466
|
-
jobs.
|
|
18467
|
-
function
|
|
18767
|
+
jobs.JobList = function() {
|
|
18768
|
+
function JobList(properties) {
|
|
18468
18769
|
this.jobs = [];
|
|
18469
18770
|
if (properties) {
|
|
18470
18771
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -18472,28 +18773,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18472
18773
|
this[keys[i]] = properties[keys[i]];
|
|
18473
18774
|
}
|
|
18474
18775
|
}
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
return new
|
|
18776
|
+
JobList.prototype.jobs = $util.emptyArray;
|
|
18777
|
+
JobList.create = function create(properties) {
|
|
18778
|
+
return new JobList(properties);
|
|
18478
18779
|
};
|
|
18479
|
-
|
|
18780
|
+
JobList.encode = function encode(message, writer) {
|
|
18480
18781
|
if (!writer)
|
|
18481
18782
|
writer = $Writer.create();
|
|
18482
18783
|
if (message.jobs != null && message.jobs.length)
|
|
18483
18784
|
for (let i = 0; i < message.jobs.length; ++i)
|
|
18484
|
-
$root.sesame.v1.jobs.
|
|
18785
|
+
$root.sesame.v1.jobs.Job.encode(message.jobs[i], writer.uint32(
|
|
18485
18786
|
/* id 1, wireType 2 =*/
|
|
18486
18787
|
10
|
|
18487
18788
|
).fork()).ldelim();
|
|
18488
18789
|
return writer;
|
|
18489
18790
|
};
|
|
18490
|
-
|
|
18791
|
+
JobList.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18491
18792
|
return this.encode(message, writer).ldelim();
|
|
18492
18793
|
};
|
|
18493
|
-
|
|
18794
|
+
JobList.decode = function decode(reader, length, error) {
|
|
18494
18795
|
if (!(reader instanceof $Reader))
|
|
18495
18796
|
reader = $Reader.create(reader);
|
|
18496
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18797
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobList();
|
|
18497
18798
|
while (reader.pos < end) {
|
|
18498
18799
|
let tag = reader.uint32();
|
|
18499
18800
|
if (tag === error)
|
|
@@ -18502,7 +18803,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18502
18803
|
case 1: {
|
|
18503
18804
|
if (!(message.jobs && message.jobs.length))
|
|
18504
18805
|
message.jobs = [];
|
|
18505
|
-
message.jobs.push($root.sesame.v1.jobs.
|
|
18806
|
+
message.jobs.push($root.sesame.v1.jobs.Job.decode(reader, reader.uint32()));
|
|
18506
18807
|
break;
|
|
18507
18808
|
}
|
|
18508
18809
|
default:
|
|
@@ -18512,42 +18813,42 @@ var sesame = $root.sesame = (() => {
|
|
|
18512
18813
|
}
|
|
18513
18814
|
return message;
|
|
18514
18815
|
};
|
|
18515
|
-
|
|
18816
|
+
JobList.decodeDelimited = function decodeDelimited(reader) {
|
|
18516
18817
|
if (!(reader instanceof $Reader))
|
|
18517
18818
|
reader = new $Reader(reader);
|
|
18518
18819
|
return this.decode(reader, reader.uint32());
|
|
18519
18820
|
};
|
|
18520
|
-
|
|
18821
|
+
JobList.verify = function verify(message) {
|
|
18521
18822
|
if (typeof message !== "object" || message === null)
|
|
18522
18823
|
return "object expected";
|
|
18523
18824
|
if (message.jobs != null && message.hasOwnProperty("jobs")) {
|
|
18524
18825
|
if (!Array.isArray(message.jobs))
|
|
18525
18826
|
return "jobs: array expected";
|
|
18526
18827
|
for (let i = 0; i < message.jobs.length; ++i) {
|
|
18527
|
-
let error = $root.sesame.v1.jobs.
|
|
18828
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobs[i]);
|
|
18528
18829
|
if (error)
|
|
18529
18830
|
return "jobs." + error;
|
|
18530
18831
|
}
|
|
18531
18832
|
}
|
|
18532
18833
|
return null;
|
|
18533
18834
|
};
|
|
18534
|
-
|
|
18535
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18835
|
+
JobList.fromObject = function fromObject(object) {
|
|
18836
|
+
if (object instanceof $root.sesame.v1.jobs.JobList)
|
|
18536
18837
|
return object;
|
|
18537
|
-
let message = new $root.sesame.v1.jobs.
|
|
18838
|
+
let message = new $root.sesame.v1.jobs.JobList();
|
|
18538
18839
|
if (object.jobs) {
|
|
18539
18840
|
if (!Array.isArray(object.jobs))
|
|
18540
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18841
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
|
|
18541
18842
|
message.jobs = [];
|
|
18542
18843
|
for (let i = 0; i < object.jobs.length; ++i) {
|
|
18543
18844
|
if (typeof object.jobs[i] !== "object")
|
|
18544
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18545
|
-
message.jobs[i] = $root.sesame.v1.jobs.
|
|
18845
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
|
|
18846
|
+
message.jobs[i] = $root.sesame.v1.jobs.Job.fromObject(object.jobs[i]);
|
|
18546
18847
|
}
|
|
18547
18848
|
}
|
|
18548
18849
|
return message;
|
|
18549
18850
|
};
|
|
18550
|
-
|
|
18851
|
+
JobList.toObject = function toObject(message, options) {
|
|
18551
18852
|
if (!options)
|
|
18552
18853
|
options = {};
|
|
18553
18854
|
let object = {};
|
|
@@ -18556,116 +18857,72 @@ var sesame = $root.sesame = (() => {
|
|
|
18556
18857
|
if (message.jobs && message.jobs.length) {
|
|
18557
18858
|
object.jobs = [];
|
|
18558
18859
|
for (let j = 0; j < message.jobs.length; ++j)
|
|
18559
|
-
object.jobs[j] = $root.sesame.v1.jobs.
|
|
18860
|
+
object.jobs[j] = $root.sesame.v1.jobs.Job.toObject(message.jobs[j], options);
|
|
18560
18861
|
}
|
|
18561
18862
|
return object;
|
|
18562
18863
|
};
|
|
18563
|
-
|
|
18864
|
+
JobList.prototype.toJSON = function toJSON() {
|
|
18564
18865
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18565
18866
|
};
|
|
18566
|
-
|
|
18867
|
+
JobList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18567
18868
|
if (typeUrlPrefix === void 0) {
|
|
18568
18869
|
typeUrlPrefix = "type.googleapis.com";
|
|
18569
18870
|
}
|
|
18570
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18871
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobList";
|
|
18571
18872
|
};
|
|
18572
|
-
return
|
|
18873
|
+
return JobList;
|
|
18573
18874
|
}();
|
|
18574
|
-
jobs.
|
|
18575
|
-
function
|
|
18875
|
+
jobs.JobStartRequest = function() {
|
|
18876
|
+
function JobStartRequest(properties) {
|
|
18576
18877
|
if (properties) {
|
|
18577
18878
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18578
18879
|
if (properties[keys[i]] != null)
|
|
18579
18880
|
this[keys[i]] = properties[keys[i]];
|
|
18580
18881
|
}
|
|
18581
18882
|
}
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
JobEvent.prototype.status = 0;
|
|
18585
|
-
JobEvent.prototype.statusText = "";
|
|
18586
|
-
JobEvent.prototype.error = null;
|
|
18587
|
-
JobEvent.prototype.timingInfo = null;
|
|
18883
|
+
JobStartRequest.prototype.exportRequest = null;
|
|
18884
|
+
JobStartRequest.prototype.importRequest = null;
|
|
18588
18885
|
let $oneOfFields;
|
|
18589
|
-
Object.defineProperty(
|
|
18590
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
18591
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
18592
|
-
});
|
|
18593
|
-
Object.defineProperty(JobEvent.prototype, "_timingInfo", {
|
|
18594
|
-
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18886
|
+
Object.defineProperty(JobStartRequest.prototype, "config", {
|
|
18887
|
+
get: $util.oneOfGetter($oneOfFields = ["exportRequest", "importRequest"]),
|
|
18595
18888
|
set: $util.oneOfSetter($oneOfFields)
|
|
18596
18889
|
});
|
|
18597
|
-
|
|
18598
|
-
return new
|
|
18890
|
+
JobStartRequest.create = function create(properties) {
|
|
18891
|
+
return new JobStartRequest(properties);
|
|
18599
18892
|
};
|
|
18600
|
-
|
|
18893
|
+
JobStartRequest.encode = function encode(message, writer) {
|
|
18601
18894
|
if (!writer)
|
|
18602
18895
|
writer = $Writer.create();
|
|
18603
|
-
if (message.
|
|
18604
|
-
writer.uint32(
|
|
18605
|
-
/* id 1, wireType
|
|
18606
|
-
|
|
18607
|
-
).
|
|
18608
|
-
if (message.
|
|
18609
|
-
writer.uint32(
|
|
18896
|
+
if (message.exportRequest != null && Object.hasOwnProperty.call(message, "exportRequest"))
|
|
18897
|
+
$root.sesame.v1.jobs.ExportStartRequest.encode(message.exportRequest, writer.uint32(
|
|
18898
|
+
/* id 1, wireType 2 =*/
|
|
18899
|
+
10
|
|
18900
|
+
).fork()).ldelim();
|
|
18901
|
+
if (message.importRequest != null && Object.hasOwnProperty.call(message, "importRequest"))
|
|
18902
|
+
$root.sesame.v1.jobs.ImportStartRequest.encode(message.importRequest, writer.uint32(
|
|
18610
18903
|
/* id 2, wireType 2 =*/
|
|
18611
18904
|
18
|
|
18612
|
-
).string(message.source);
|
|
18613
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18614
|
-
writer.uint32(
|
|
18615
|
-
/* id 3, wireType 0 =*/
|
|
18616
|
-
24
|
|
18617
|
-
).int32(message.status);
|
|
18618
|
-
if (message.statusText != null && Object.hasOwnProperty.call(message, "statusText"))
|
|
18619
|
-
writer.uint32(
|
|
18620
|
-
/* id 4, wireType 2 =*/
|
|
18621
|
-
34
|
|
18622
|
-
).string(message.statusText);
|
|
18623
|
-
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18624
|
-
writer.uint32(
|
|
18625
|
-
/* id 5, wireType 2 =*/
|
|
18626
|
-
42
|
|
18627
|
-
).string(message.error);
|
|
18628
|
-
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18629
|
-
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18630
|
-
/* id 6, wireType 2 =*/
|
|
18631
|
-
50
|
|
18632
18905
|
).fork()).ldelim();
|
|
18633
18906
|
return writer;
|
|
18634
18907
|
};
|
|
18635
|
-
|
|
18908
|
+
JobStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18636
18909
|
return this.encode(message, writer).ldelim();
|
|
18637
18910
|
};
|
|
18638
|
-
|
|
18911
|
+
JobStartRequest.decode = function decode(reader, length, error) {
|
|
18639
18912
|
if (!(reader instanceof $Reader))
|
|
18640
18913
|
reader = $Reader.create(reader);
|
|
18641
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18914
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18642
18915
|
while (reader.pos < end) {
|
|
18643
18916
|
let tag = reader.uint32();
|
|
18644
18917
|
if (tag === error)
|
|
18645
18918
|
break;
|
|
18646
18919
|
switch (tag >>> 3) {
|
|
18647
18920
|
case 1: {
|
|
18648
|
-
message.
|
|
18921
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(reader, reader.uint32());
|
|
18649
18922
|
break;
|
|
18650
18923
|
}
|
|
18651
18924
|
case 2: {
|
|
18652
|
-
message.
|
|
18653
|
-
break;
|
|
18654
|
-
}
|
|
18655
|
-
case 3: {
|
|
18656
|
-
message.status = reader.int32();
|
|
18657
|
-
break;
|
|
18658
|
-
}
|
|
18659
|
-
case 4: {
|
|
18660
|
-
message.statusText = reader.string();
|
|
18661
|
-
break;
|
|
18662
|
-
}
|
|
18663
|
-
case 5: {
|
|
18664
|
-
message.error = reader.string();
|
|
18665
|
-
break;
|
|
18666
|
-
}
|
|
18667
|
-
case 6: {
|
|
18668
|
-
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18925
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(reader, reader.uint32());
|
|
18669
18926
|
break;
|
|
18670
18927
|
}
|
|
18671
18928
|
default:
|
|
@@ -18675,174 +18932,346 @@ var sesame = $root.sesame = (() => {
|
|
|
18675
18932
|
}
|
|
18676
18933
|
return message;
|
|
18677
18934
|
};
|
|
18678
|
-
|
|
18935
|
+
JobStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
18679
18936
|
if (!(reader instanceof $Reader))
|
|
18680
18937
|
reader = new $Reader(reader);
|
|
18681
18938
|
return this.decode(reader, reader.uint32());
|
|
18682
18939
|
};
|
|
18683
|
-
|
|
18940
|
+
JobStartRequest.verify = function verify(message) {
|
|
18684
18941
|
if (typeof message !== "object" || message === null)
|
|
18685
18942
|
return "object expected";
|
|
18686
18943
|
let properties = {};
|
|
18687
|
-
if (message.
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
return "source: string expected";
|
|
18694
|
-
}
|
|
18695
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18696
|
-
switch (message.status) {
|
|
18697
|
-
default:
|
|
18698
|
-
return "status: enum value expected";
|
|
18699
|
-
case 0:
|
|
18700
|
-
case 1:
|
|
18701
|
-
case 2:
|
|
18702
|
-
case 3:
|
|
18703
|
-
case 4:
|
|
18704
|
-
case 5:
|
|
18705
|
-
break;
|
|
18944
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18945
|
+
properties.config = 1;
|
|
18946
|
+
{
|
|
18947
|
+
let error = $root.sesame.v1.jobs.ExportStartRequest.verify(message.exportRequest);
|
|
18948
|
+
if (error)
|
|
18949
|
+
return "exportRequest." + error;
|
|
18706
18950
|
}
|
|
18707
|
-
if (message.statusText != null && message.hasOwnProperty("statusText")) {
|
|
18708
|
-
if (!$util.isString(message.statusText))
|
|
18709
|
-
return "statusText: string expected";
|
|
18710
|
-
}
|
|
18711
|
-
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18712
|
-
properties._error = 1;
|
|
18713
|
-
if (!$util.isString(message.error))
|
|
18714
|
-
return "error: string expected";
|
|
18715
18951
|
}
|
|
18716
|
-
if (message.
|
|
18717
|
-
properties.
|
|
18952
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18953
|
+
if (properties.config === 1)
|
|
18954
|
+
return "config: multiple values";
|
|
18955
|
+
properties.config = 1;
|
|
18718
18956
|
{
|
|
18719
|
-
let error = $root.sesame.v1.jobs.
|
|
18957
|
+
let error = $root.sesame.v1.jobs.ImportStartRequest.verify(message.importRequest);
|
|
18720
18958
|
if (error)
|
|
18721
|
-
return "
|
|
18959
|
+
return "importRequest." + error;
|
|
18722
18960
|
}
|
|
18723
18961
|
}
|
|
18724
18962
|
return null;
|
|
18725
18963
|
};
|
|
18726
|
-
|
|
18727
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18964
|
+
JobStartRequest.fromObject = function fromObject(object) {
|
|
18965
|
+
if (object instanceof $root.sesame.v1.jobs.JobStartRequest)
|
|
18728
18966
|
return object;
|
|
18729
|
-
let message = new $root.sesame.v1.jobs.
|
|
18730
|
-
if (object.
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
message.
|
|
18734
|
-
switch (object.status) {
|
|
18735
|
-
default:
|
|
18736
|
-
if (typeof object.status === "number") {
|
|
18737
|
-
message.status = object.status;
|
|
18738
|
-
break;
|
|
18739
|
-
}
|
|
18740
|
-
break;
|
|
18741
|
-
case "JOB_STATUS_UNSPECIFIED":
|
|
18742
|
-
case 0:
|
|
18743
|
-
message.status = 0;
|
|
18744
|
-
break;
|
|
18745
|
-
case "JOB_STATUS_PENDING":
|
|
18746
|
-
case 1:
|
|
18747
|
-
message.status = 1;
|
|
18748
|
-
break;
|
|
18749
|
-
case "JOB_STATUS_IN_PROGRESS":
|
|
18750
|
-
case 2:
|
|
18751
|
-
message.status = 2;
|
|
18752
|
-
break;
|
|
18753
|
-
case "JOB_STATUS_COMPLETE":
|
|
18754
|
-
case 3:
|
|
18755
|
-
message.status = 3;
|
|
18756
|
-
break;
|
|
18757
|
-
case "JOB_STATUS_ABORTED":
|
|
18758
|
-
case 4:
|
|
18759
|
-
message.status = 4;
|
|
18760
|
-
break;
|
|
18761
|
-
case "JOB_STATUS_ERROR":
|
|
18762
|
-
case 5:
|
|
18763
|
-
message.status = 5;
|
|
18764
|
-
break;
|
|
18967
|
+
let message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18968
|
+
if (object.exportRequest != null) {
|
|
18969
|
+
if (typeof object.exportRequest !== "object")
|
|
18970
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
|
|
18971
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(object.exportRequest);
|
|
18765
18972
|
}
|
|
18766
|
-
if (object.
|
|
18767
|
-
|
|
18768
|
-
|
|
18769
|
-
message.
|
|
18770
|
-
if (object.timingInfo != null) {
|
|
18771
|
-
if (typeof object.timingInfo !== "object")
|
|
18772
|
-
throw TypeError(".sesame.v1.jobs.JobEvent.timingInfo: object expected");
|
|
18773
|
-
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
|
|
18973
|
+
if (object.importRequest != null) {
|
|
18974
|
+
if (typeof object.importRequest !== "object")
|
|
18975
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
|
|
18976
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(object.importRequest);
|
|
18774
18977
|
}
|
|
18775
18978
|
return message;
|
|
18776
18979
|
};
|
|
18777
|
-
|
|
18980
|
+
JobStartRequest.toObject = function toObject(message, options) {
|
|
18778
18981
|
if (!options)
|
|
18779
18982
|
options = {};
|
|
18780
18983
|
let object = {};
|
|
18781
|
-
if (
|
|
18782
|
-
object.
|
|
18783
|
-
object.source = "";
|
|
18784
|
-
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18785
|
-
object.statusText = "";
|
|
18786
|
-
}
|
|
18787
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
18788
|
-
object.jobId = message.jobId;
|
|
18789
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
18790
|
-
object.source = message.source;
|
|
18791
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18792
|
-
object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
|
|
18793
|
-
if (message.statusText != null && message.hasOwnProperty("statusText"))
|
|
18794
|
-
object.statusText = message.statusText;
|
|
18795
|
-
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18796
|
-
object.error = message.error;
|
|
18984
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18985
|
+
object.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(message.exportRequest, options);
|
|
18797
18986
|
if (options.oneofs)
|
|
18798
|
-
object.
|
|
18987
|
+
object.config = "exportRequest";
|
|
18799
18988
|
}
|
|
18800
|
-
if (message.
|
|
18801
|
-
object.
|
|
18989
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18990
|
+
object.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(message.importRequest, options);
|
|
18802
18991
|
if (options.oneofs)
|
|
18803
|
-
object.
|
|
18992
|
+
object.config = "importRequest";
|
|
18804
18993
|
}
|
|
18805
18994
|
return object;
|
|
18806
18995
|
};
|
|
18807
|
-
|
|
18996
|
+
JobStartRequest.prototype.toJSON = function toJSON() {
|
|
18808
18997
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18809
18998
|
};
|
|
18810
|
-
|
|
18999
|
+
JobStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18811
19000
|
if (typeUrlPrefix === void 0) {
|
|
18812
19001
|
typeUrlPrefix = "type.googleapis.com";
|
|
18813
19002
|
}
|
|
18814
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
19003
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStartRequest";
|
|
18815
19004
|
};
|
|
18816
|
-
return
|
|
19005
|
+
return JobStartRequest;
|
|
18817
19006
|
}();
|
|
18818
|
-
jobs.
|
|
18819
|
-
function
|
|
18820
|
-
this.audioRouting = [];
|
|
19007
|
+
jobs.JobAbortRequest = function() {
|
|
19008
|
+
function JobAbortRequest(properties) {
|
|
18821
19009
|
if (properties) {
|
|
18822
19010
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18823
19011
|
if (properties[keys[i]] != null)
|
|
18824
19012
|
this[keys[i]] = properties[keys[i]];
|
|
18825
19013
|
}
|
|
18826
19014
|
}
|
|
18827
|
-
|
|
18828
|
-
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
|
|
18832
|
-
|
|
18833
|
-
|
|
18834
|
-
|
|
18835
|
-
|
|
18836
|
-
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
19015
|
+
JobAbortRequest.prototype.jobId = 0;
|
|
19016
|
+
JobAbortRequest.create = function create(properties) {
|
|
19017
|
+
return new JobAbortRequest(properties);
|
|
19018
|
+
};
|
|
19019
|
+
JobAbortRequest.encode = function encode(message, writer) {
|
|
19020
|
+
if (!writer)
|
|
19021
|
+
writer = $Writer.create();
|
|
19022
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19023
|
+
writer.uint32(
|
|
19024
|
+
/* id 1, wireType 0 =*/
|
|
19025
|
+
8
|
|
19026
|
+
).uint32(message.jobId);
|
|
19027
|
+
return writer;
|
|
19028
|
+
};
|
|
19029
|
+
JobAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19030
|
+
return this.encode(message, writer).ldelim();
|
|
19031
|
+
};
|
|
19032
|
+
JobAbortRequest.decode = function decode(reader, length, error) {
|
|
19033
|
+
if (!(reader instanceof $Reader))
|
|
19034
|
+
reader = $Reader.create(reader);
|
|
19035
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
19036
|
+
while (reader.pos < end) {
|
|
19037
|
+
let tag = reader.uint32();
|
|
19038
|
+
if (tag === error)
|
|
19039
|
+
break;
|
|
19040
|
+
switch (tag >>> 3) {
|
|
19041
|
+
case 1: {
|
|
19042
|
+
message.jobId = reader.uint32();
|
|
19043
|
+
break;
|
|
19044
|
+
}
|
|
19045
|
+
default:
|
|
19046
|
+
reader.skipType(tag & 7);
|
|
19047
|
+
break;
|
|
19048
|
+
}
|
|
19049
|
+
}
|
|
19050
|
+
return message;
|
|
19051
|
+
};
|
|
19052
|
+
JobAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19053
|
+
if (!(reader instanceof $Reader))
|
|
19054
|
+
reader = new $Reader(reader);
|
|
19055
|
+
return this.decode(reader, reader.uint32());
|
|
19056
|
+
};
|
|
19057
|
+
JobAbortRequest.verify = function verify(message) {
|
|
19058
|
+
if (typeof message !== "object" || message === null)
|
|
19059
|
+
return "object expected";
|
|
19060
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19061
|
+
if (!$util.isInteger(message.jobId))
|
|
19062
|
+
return "jobId: integer expected";
|
|
19063
|
+
}
|
|
19064
|
+
return null;
|
|
19065
|
+
};
|
|
19066
|
+
JobAbortRequest.fromObject = function fromObject(object) {
|
|
19067
|
+
if (object instanceof $root.sesame.v1.jobs.JobAbortRequest)
|
|
19068
|
+
return object;
|
|
19069
|
+
let message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
19070
|
+
if (object.jobId != null)
|
|
19071
|
+
message.jobId = object.jobId >>> 0;
|
|
19072
|
+
return message;
|
|
19073
|
+
};
|
|
19074
|
+
JobAbortRequest.toObject = function toObject(message, options) {
|
|
19075
|
+
if (!options)
|
|
19076
|
+
options = {};
|
|
19077
|
+
let object = {};
|
|
19078
|
+
if (options.defaults)
|
|
19079
|
+
object.jobId = 0;
|
|
19080
|
+
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19081
|
+
object.jobId = message.jobId;
|
|
19082
|
+
return object;
|
|
19083
|
+
};
|
|
19084
|
+
JobAbortRequest.prototype.toJSON = function toJSON() {
|
|
19085
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19086
|
+
};
|
|
19087
|
+
JobAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19088
|
+
if (typeUrlPrefix === void 0) {
|
|
19089
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19090
|
+
}
|
|
19091
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobAbortRequest";
|
|
19092
|
+
};
|
|
19093
|
+
return JobAbortRequest;
|
|
19094
|
+
}();
|
|
19095
|
+
jobs.JobStatusRequest = function() {
|
|
19096
|
+
function JobStatusRequest(properties) {
|
|
19097
|
+
if (properties) {
|
|
19098
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19099
|
+
if (properties[keys[i]] != null)
|
|
19100
|
+
this[keys[i]] = properties[keys[i]];
|
|
19101
|
+
}
|
|
19102
|
+
}
|
|
19103
|
+
JobStatusRequest.prototype.jobId = 0;
|
|
19104
|
+
JobStatusRequest.create = function create(properties) {
|
|
19105
|
+
return new JobStatusRequest(properties);
|
|
19106
|
+
};
|
|
19107
|
+
JobStatusRequest.encode = function encode(message, writer) {
|
|
19108
|
+
if (!writer)
|
|
19109
|
+
writer = $Writer.create();
|
|
19110
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19111
|
+
writer.uint32(
|
|
19112
|
+
/* id 1, wireType 0 =*/
|
|
19113
|
+
8
|
|
19114
|
+
).uint32(message.jobId);
|
|
19115
|
+
return writer;
|
|
19116
|
+
};
|
|
19117
|
+
JobStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19118
|
+
return this.encode(message, writer).ldelim();
|
|
19119
|
+
};
|
|
19120
|
+
JobStatusRequest.decode = function decode(reader, length, error) {
|
|
19121
|
+
if (!(reader instanceof $Reader))
|
|
19122
|
+
reader = $Reader.create(reader);
|
|
19123
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19124
|
+
while (reader.pos < end) {
|
|
19125
|
+
let tag = reader.uint32();
|
|
19126
|
+
if (tag === error)
|
|
19127
|
+
break;
|
|
19128
|
+
switch (tag >>> 3) {
|
|
19129
|
+
case 1: {
|
|
19130
|
+
message.jobId = reader.uint32();
|
|
19131
|
+
break;
|
|
19132
|
+
}
|
|
19133
|
+
default:
|
|
19134
|
+
reader.skipType(tag & 7);
|
|
19135
|
+
break;
|
|
19136
|
+
}
|
|
19137
|
+
}
|
|
19138
|
+
return message;
|
|
19139
|
+
};
|
|
19140
|
+
JobStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19141
|
+
if (!(reader instanceof $Reader))
|
|
19142
|
+
reader = new $Reader(reader);
|
|
19143
|
+
return this.decode(reader, reader.uint32());
|
|
19144
|
+
};
|
|
19145
|
+
JobStatusRequest.verify = function verify(message) {
|
|
19146
|
+
if (typeof message !== "object" || message === null)
|
|
19147
|
+
return "object expected";
|
|
19148
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19149
|
+
if (!$util.isInteger(message.jobId))
|
|
19150
|
+
return "jobId: integer expected";
|
|
19151
|
+
}
|
|
19152
|
+
return null;
|
|
19153
|
+
};
|
|
19154
|
+
JobStatusRequest.fromObject = function fromObject(object) {
|
|
19155
|
+
if (object instanceof $root.sesame.v1.jobs.JobStatusRequest)
|
|
19156
|
+
return object;
|
|
19157
|
+
let message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19158
|
+
if (object.jobId != null)
|
|
19159
|
+
message.jobId = object.jobId >>> 0;
|
|
19160
|
+
return message;
|
|
19161
|
+
};
|
|
19162
|
+
JobStatusRequest.toObject = function toObject(message, options) {
|
|
19163
|
+
if (!options)
|
|
19164
|
+
options = {};
|
|
19165
|
+
let object = {};
|
|
19166
|
+
if (options.defaults)
|
|
19167
|
+
object.jobId = 0;
|
|
19168
|
+
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19169
|
+
object.jobId = message.jobId;
|
|
19170
|
+
return object;
|
|
19171
|
+
};
|
|
19172
|
+
JobStatusRequest.prototype.toJSON = function toJSON() {
|
|
19173
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19174
|
+
};
|
|
19175
|
+
JobStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19176
|
+
if (typeUrlPrefix === void 0) {
|
|
19177
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19178
|
+
}
|
|
19179
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStatusRequest";
|
|
19180
|
+
};
|
|
19181
|
+
return JobStatusRequest;
|
|
19182
|
+
}();
|
|
19183
|
+
jobs.JobListRequest = function() {
|
|
19184
|
+
function JobListRequest(properties) {
|
|
19185
|
+
if (properties) {
|
|
19186
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19187
|
+
if (properties[keys[i]] != null)
|
|
19188
|
+
this[keys[i]] = properties[keys[i]];
|
|
19189
|
+
}
|
|
19190
|
+
}
|
|
19191
|
+
JobListRequest.create = function create(properties) {
|
|
19192
|
+
return new JobListRequest(properties);
|
|
19193
|
+
};
|
|
19194
|
+
JobListRequest.encode = function encode(message, writer) {
|
|
19195
|
+
if (!writer)
|
|
19196
|
+
writer = $Writer.create();
|
|
19197
|
+
return writer;
|
|
19198
|
+
};
|
|
19199
|
+
JobListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19200
|
+
return this.encode(message, writer).ldelim();
|
|
19201
|
+
};
|
|
19202
|
+
JobListRequest.decode = function decode(reader, length, error) {
|
|
19203
|
+
if (!(reader instanceof $Reader))
|
|
19204
|
+
reader = $Reader.create(reader);
|
|
19205
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListRequest();
|
|
19206
|
+
while (reader.pos < end) {
|
|
19207
|
+
let tag = reader.uint32();
|
|
19208
|
+
if (tag === error)
|
|
19209
|
+
break;
|
|
19210
|
+
switch (tag >>> 3) {
|
|
19211
|
+
default:
|
|
19212
|
+
reader.skipType(tag & 7);
|
|
19213
|
+
break;
|
|
19214
|
+
}
|
|
19215
|
+
}
|
|
19216
|
+
return message;
|
|
19217
|
+
};
|
|
19218
|
+
JobListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19219
|
+
if (!(reader instanceof $Reader))
|
|
19220
|
+
reader = new $Reader(reader);
|
|
19221
|
+
return this.decode(reader, reader.uint32());
|
|
19222
|
+
};
|
|
19223
|
+
JobListRequest.verify = function verify(message) {
|
|
19224
|
+
if (typeof message !== "object" || message === null)
|
|
19225
|
+
return "object expected";
|
|
19226
|
+
return null;
|
|
19227
|
+
};
|
|
19228
|
+
JobListRequest.fromObject = function fromObject(object) {
|
|
19229
|
+
if (object instanceof $root.sesame.v1.jobs.JobListRequest)
|
|
19230
|
+
return object;
|
|
19231
|
+
return new $root.sesame.v1.jobs.JobListRequest();
|
|
19232
|
+
};
|
|
19233
|
+
JobListRequest.toObject = function toObject() {
|
|
19234
|
+
return {};
|
|
19235
|
+
};
|
|
19236
|
+
JobListRequest.prototype.toJSON = function toJSON() {
|
|
19237
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19238
|
+
};
|
|
19239
|
+
JobListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19240
|
+
if (typeUrlPrefix === void 0) {
|
|
19241
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19242
|
+
}
|
|
19243
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobListRequest";
|
|
19244
|
+
};
|
|
19245
|
+
return JobListRequest;
|
|
19246
|
+
}();
|
|
19247
|
+
jobs.ExportConfiguration = function() {
|
|
19248
|
+
function ExportConfiguration(properties) {
|
|
19249
|
+
this.audioRouting = [];
|
|
19250
|
+
if (properties) {
|
|
19251
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19252
|
+
if (properties[keys[i]] != null)
|
|
19253
|
+
this[keys[i]] = properties[keys[i]];
|
|
19254
|
+
}
|
|
19255
|
+
}
|
|
19256
|
+
ExportConfiguration.prototype.filename = "";
|
|
19257
|
+
ExportConfiguration.prototype.container = 0;
|
|
19258
|
+
ExportConfiguration.prototype.videoCodec = 0;
|
|
19259
|
+
ExportConfiguration.prototype.width = 0;
|
|
19260
|
+
ExportConfiguration.prototype.height = 0;
|
|
19261
|
+
ExportConfiguration.prototype.fpsNum = 0;
|
|
19262
|
+
ExportConfiguration.prototype.fpsDen = 0;
|
|
19263
|
+
ExportConfiguration.prototype.rateControl = 0;
|
|
19264
|
+
ExportConfiguration.prototype.videoBitrateKbps = 0;
|
|
19265
|
+
ExportConfiguration.prototype.maxVideoBitrateKbps = 0;
|
|
19266
|
+
ExportConfiguration.prototype.gopSize = 0;
|
|
19267
|
+
ExportConfiguration.prototype.maxBFrames = 0;
|
|
19268
|
+
ExportConfiguration.prototype.profile = "";
|
|
19269
|
+
ExportConfiguration.prototype.level = "";
|
|
19270
|
+
ExportConfiguration.prototype.pixelFormat = "";
|
|
19271
|
+
ExportConfiguration.prototype.colorPrimaries = "";
|
|
19272
|
+
ExportConfiguration.prototype.colorTransfer = "";
|
|
19273
|
+
ExportConfiguration.prototype.colorMatrix = "";
|
|
19274
|
+
ExportConfiguration.prototype.fullRange = false;
|
|
18846
19275
|
ExportConfiguration.prototype.audioCodec = 0;
|
|
18847
19276
|
ExportConfiguration.prototype.audioBitrateKbps = 0;
|
|
18848
19277
|
ExportConfiguration.prototype.audioSampleRateHz = 0;
|
|
@@ -19136,6 +19565,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19136
19565
|
case 4:
|
|
19137
19566
|
case 5:
|
|
19138
19567
|
case 6:
|
|
19568
|
+
case 7:
|
|
19569
|
+
case 64:
|
|
19570
|
+
case 65:
|
|
19571
|
+
case 66:
|
|
19572
|
+
case 67:
|
|
19139
19573
|
break;
|
|
19140
19574
|
}
|
|
19141
19575
|
if (message.width != null && message.hasOwnProperty("width")) {
|
|
@@ -19217,6 +19651,13 @@ var sesame = $root.sesame = (() => {
|
|
|
19217
19651
|
case 2:
|
|
19218
19652
|
case 3:
|
|
19219
19653
|
case 4:
|
|
19654
|
+
case 5:
|
|
19655
|
+
case 6:
|
|
19656
|
+
case 7:
|
|
19657
|
+
case 64:
|
|
19658
|
+
case 65:
|
|
19659
|
+
case 66:
|
|
19660
|
+
case 67:
|
|
19220
19661
|
break;
|
|
19221
19662
|
}
|
|
19222
19663
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps")) {
|
|
@@ -19281,34 +19722,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19281
19722
|
break;
|
|
19282
19723
|
}
|
|
19283
19724
|
break;
|
|
19284
|
-
case "
|
|
19725
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19285
19726
|
case 0:
|
|
19286
19727
|
message.videoCodec = 0;
|
|
19287
19728
|
break;
|
|
19288
|
-
case "
|
|
19729
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19289
19730
|
case 1:
|
|
19290
19731
|
message.videoCodec = 1;
|
|
19291
19732
|
break;
|
|
19292
|
-
case "
|
|
19733
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19293
19734
|
case 2:
|
|
19294
19735
|
message.videoCodec = 2;
|
|
19295
19736
|
break;
|
|
19296
|
-
case "
|
|
19737
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19297
19738
|
case 3:
|
|
19298
19739
|
message.videoCodec = 3;
|
|
19299
19740
|
break;
|
|
19300
|
-
case "
|
|
19741
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19301
19742
|
case 4:
|
|
19302
19743
|
message.videoCodec = 4;
|
|
19303
19744
|
break;
|
|
19304
|
-
case "
|
|
19745
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19305
19746
|
case 5:
|
|
19306
19747
|
message.videoCodec = 5;
|
|
19307
19748
|
break;
|
|
19308
|
-
case "
|
|
19749
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19309
19750
|
case 6:
|
|
19310
19751
|
message.videoCodec = 6;
|
|
19311
19752
|
break;
|
|
19753
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19754
|
+
case 7:
|
|
19755
|
+
message.videoCodec = 7;
|
|
19756
|
+
break;
|
|
19757
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19758
|
+
case 64:
|
|
19759
|
+
message.videoCodec = 64;
|
|
19760
|
+
break;
|
|
19761
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19762
|
+
case 65:
|
|
19763
|
+
message.videoCodec = 65;
|
|
19764
|
+
break;
|
|
19765
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19766
|
+
case 66:
|
|
19767
|
+
message.videoCodec = 66;
|
|
19768
|
+
break;
|
|
19769
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19770
|
+
case 67:
|
|
19771
|
+
message.videoCodec = 67;
|
|
19772
|
+
break;
|
|
19312
19773
|
}
|
|
19313
19774
|
if (object.width != null)
|
|
19314
19775
|
message.width = object.width >>> 0;
|
|
@@ -19371,26 +19832,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19371
19832
|
break;
|
|
19372
19833
|
}
|
|
19373
19834
|
break;
|
|
19374
|
-
case "
|
|
19835
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19375
19836
|
case 0:
|
|
19376
19837
|
message.audioCodec = 0;
|
|
19377
19838
|
break;
|
|
19378
|
-
case "
|
|
19839
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19379
19840
|
case 1:
|
|
19380
19841
|
message.audioCodec = 1;
|
|
19381
19842
|
break;
|
|
19382
|
-
case "
|
|
19843
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19383
19844
|
case 2:
|
|
19384
19845
|
message.audioCodec = 2;
|
|
19385
19846
|
break;
|
|
19386
|
-
case "
|
|
19847
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19387
19848
|
case 3:
|
|
19388
19849
|
message.audioCodec = 3;
|
|
19389
19850
|
break;
|
|
19390
|
-
case "
|
|
19851
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19391
19852
|
case 4:
|
|
19392
19853
|
message.audioCodec = 4;
|
|
19393
19854
|
break;
|
|
19855
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19856
|
+
case 5:
|
|
19857
|
+
message.audioCodec = 5;
|
|
19858
|
+
break;
|
|
19859
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19860
|
+
case 6:
|
|
19861
|
+
message.audioCodec = 6;
|
|
19862
|
+
break;
|
|
19863
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19864
|
+
case 7:
|
|
19865
|
+
message.audioCodec = 7;
|
|
19866
|
+
break;
|
|
19867
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19868
|
+
case 64:
|
|
19869
|
+
message.audioCodec = 64;
|
|
19870
|
+
break;
|
|
19871
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19872
|
+
case 65:
|
|
19873
|
+
message.audioCodec = 65;
|
|
19874
|
+
break;
|
|
19875
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19876
|
+
case 66:
|
|
19877
|
+
message.audioCodec = 66;
|
|
19878
|
+
break;
|
|
19879
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19880
|
+
case 67:
|
|
19881
|
+
message.audioCodec = 67;
|
|
19882
|
+
break;
|
|
19394
19883
|
}
|
|
19395
19884
|
if (object.audioBitrateKbps != null)
|
|
19396
19885
|
message.audioBitrateKbps = object.audioBitrateKbps >>> 0;
|
|
@@ -19416,7 +19905,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19416
19905
|
if (options.defaults) {
|
|
19417
19906
|
object.filename = "";
|
|
19418
19907
|
object.container = options.enums === String ? "CONTAINER_FORMAT_UNSPECIFIED" : 0;
|
|
19419
|
-
object.videoCodec = options.enums === String ? "
|
|
19908
|
+
object.videoCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19420
19909
|
object.width = 0;
|
|
19421
19910
|
object.height = 0;
|
|
19422
19911
|
object.fpsNum = 0;
|
|
@@ -19433,7 +19922,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19433
19922
|
object.colorTransfer = "";
|
|
19434
19923
|
object.colorMatrix = "";
|
|
19435
19924
|
object.fullRange = false;
|
|
19436
|
-
object.audioCodec = options.enums === String ? "
|
|
19925
|
+
object.audioCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19437
19926
|
object.audioBitrateKbps = 0;
|
|
19438
19927
|
object.audioSampleRateHz = 0;
|
|
19439
19928
|
object.audioChannels = 0;
|
|
@@ -19443,7 +19932,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19443
19932
|
if (message.container != null && message.hasOwnProperty("container"))
|
|
19444
19933
|
object.container = options.enums === String ? $root.sesame.v1.jobs.ContainerFormat[message.container] === void 0 ? message.container : $root.sesame.v1.jobs.ContainerFormat[message.container] : message.container;
|
|
19445
19934
|
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
19446
|
-
object.videoCodec = options.enums === String ? $root.sesame.v1.common.
|
|
19935
|
+
object.videoCodec = options.enums === String ? $root.sesame.v1.common.CodecType[message.videoCodec] === void 0 ? message.videoCodec : $root.sesame.v1.common.CodecType[message.videoCodec] : message.videoCodec;
|
|
19447
19936
|
if (message.width != null && message.hasOwnProperty("width"))
|
|
19448
19937
|
object.width = message.width;
|
|
19449
19938
|
if (message.height != null && message.hasOwnProperty("height"))
|
|
@@ -19477,7 +19966,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19477
19966
|
if (message.fullRange != null && message.hasOwnProperty("fullRange"))
|
|
19478
19967
|
object.fullRange = message.fullRange;
|
|
19479
19968
|
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
19480
|
-
object.audioCodec = options.enums === String ? $root.sesame.v1.
|
|
19969
|
+
object.audioCodec = options.enums === String ? $root.sesame.v1.common.CodecType[message.audioCodec] === void 0 ? message.audioCodec : $root.sesame.v1.common.CodecType[message.audioCodec] : message.audioCodec;
|
|
19481
19970
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps"))
|
|
19482
19971
|
object.audioBitrateKbps = message.audioBitrateKbps;
|
|
19483
19972
|
if (message.audioSampleRateHz != null && message.hasOwnProperty("audioSampleRateHz"))
|
|
@@ -19634,268 +20123,28 @@ var sesame = $root.sesame = (() => {
|
|
|
19634
20123
|
};
|
|
19635
20124
|
return ExportStartRequest;
|
|
19636
20125
|
}();
|
|
19637
|
-
jobs.
|
|
19638
|
-
function
|
|
20126
|
+
jobs.ImportConfiguration = function() {
|
|
20127
|
+
function ImportConfiguration(properties) {
|
|
20128
|
+
this.audioRouting = [];
|
|
19639
20129
|
if (properties) {
|
|
19640
20130
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19641
20131
|
if (properties[keys[i]] != null)
|
|
19642
20132
|
this[keys[i]] = properties[keys[i]];
|
|
19643
20133
|
}
|
|
19644
20134
|
}
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
20135
|
+
ImportConfiguration.prototype.srcFilename = "";
|
|
20136
|
+
ImportConfiguration.prototype.audioRouting = $util.emptyArray;
|
|
20137
|
+
ImportConfiguration.prototype.dstRecorderId = "";
|
|
20138
|
+
ImportConfiguration.prototype.dstClipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
20139
|
+
ImportConfiguration.prototype.dstClipName = "";
|
|
20140
|
+
ImportConfiguration.prototype.dstClipUserData = "";
|
|
20141
|
+
ImportConfiguration.create = function create(properties) {
|
|
20142
|
+
return new ImportConfiguration(properties);
|
|
19648
20143
|
};
|
|
19649
|
-
|
|
20144
|
+
ImportConfiguration.encode = function encode(message, writer) {
|
|
19650
20145
|
if (!writer)
|
|
19651
20146
|
writer = $Writer.create();
|
|
19652
|
-
if (message.
|
|
19653
|
-
writer.uint32(
|
|
19654
|
-
/* id 1, wireType 0 =*/
|
|
19655
|
-
8
|
|
19656
|
-
).uint32(message.jobId);
|
|
19657
|
-
return writer;
|
|
19658
|
-
};
|
|
19659
|
-
ExportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19660
|
-
return this.encode(message, writer).ldelim();
|
|
19661
|
-
};
|
|
19662
|
-
ExportAbortRequest.decode = function decode(reader, length, error) {
|
|
19663
|
-
if (!(reader instanceof $Reader))
|
|
19664
|
-
reader = $Reader.create(reader);
|
|
19665
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19666
|
-
while (reader.pos < end) {
|
|
19667
|
-
let tag = reader.uint32();
|
|
19668
|
-
if (tag === error)
|
|
19669
|
-
break;
|
|
19670
|
-
switch (tag >>> 3) {
|
|
19671
|
-
case 1: {
|
|
19672
|
-
message.jobId = reader.uint32();
|
|
19673
|
-
break;
|
|
19674
|
-
}
|
|
19675
|
-
default:
|
|
19676
|
-
reader.skipType(tag & 7);
|
|
19677
|
-
break;
|
|
19678
|
-
}
|
|
19679
|
-
}
|
|
19680
|
-
return message;
|
|
19681
|
-
};
|
|
19682
|
-
ExportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19683
|
-
if (!(reader instanceof $Reader))
|
|
19684
|
-
reader = new $Reader(reader);
|
|
19685
|
-
return this.decode(reader, reader.uint32());
|
|
19686
|
-
};
|
|
19687
|
-
ExportAbortRequest.verify = function verify(message) {
|
|
19688
|
-
if (typeof message !== "object" || message === null)
|
|
19689
|
-
return "object expected";
|
|
19690
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19691
|
-
if (!$util.isInteger(message.jobId))
|
|
19692
|
-
return "jobId: integer expected";
|
|
19693
|
-
}
|
|
19694
|
-
return null;
|
|
19695
|
-
};
|
|
19696
|
-
ExportAbortRequest.fromObject = function fromObject(object) {
|
|
19697
|
-
if (object instanceof $root.sesame.v1.jobs.ExportAbortRequest)
|
|
19698
|
-
return object;
|
|
19699
|
-
let message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19700
|
-
if (object.jobId != null)
|
|
19701
|
-
message.jobId = object.jobId >>> 0;
|
|
19702
|
-
return message;
|
|
19703
|
-
};
|
|
19704
|
-
ExportAbortRequest.toObject = function toObject(message, options) {
|
|
19705
|
-
if (!options)
|
|
19706
|
-
options = {};
|
|
19707
|
-
let object = {};
|
|
19708
|
-
if (options.defaults)
|
|
19709
|
-
object.jobId = 0;
|
|
19710
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19711
|
-
object.jobId = message.jobId;
|
|
19712
|
-
return object;
|
|
19713
|
-
};
|
|
19714
|
-
ExportAbortRequest.prototype.toJSON = function toJSON() {
|
|
19715
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19716
|
-
};
|
|
19717
|
-
ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19718
|
-
if (typeUrlPrefix === void 0) {
|
|
19719
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19720
|
-
}
|
|
19721
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportAbortRequest";
|
|
19722
|
-
};
|
|
19723
|
-
return ExportAbortRequest;
|
|
19724
|
-
}();
|
|
19725
|
-
jobs.ExportStatusRequest = function() {
|
|
19726
|
-
function ExportStatusRequest(properties) {
|
|
19727
|
-
if (properties) {
|
|
19728
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19729
|
-
if (properties[keys[i]] != null)
|
|
19730
|
-
this[keys[i]] = properties[keys[i]];
|
|
19731
|
-
}
|
|
19732
|
-
}
|
|
19733
|
-
ExportStatusRequest.prototype.jobId = 0;
|
|
19734
|
-
ExportStatusRequest.create = function create(properties) {
|
|
19735
|
-
return new ExportStatusRequest(properties);
|
|
19736
|
-
};
|
|
19737
|
-
ExportStatusRequest.encode = function encode(message, writer) {
|
|
19738
|
-
if (!writer)
|
|
19739
|
-
writer = $Writer.create();
|
|
19740
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19741
|
-
writer.uint32(
|
|
19742
|
-
/* id 1, wireType 0 =*/
|
|
19743
|
-
8
|
|
19744
|
-
).uint32(message.jobId);
|
|
19745
|
-
return writer;
|
|
19746
|
-
};
|
|
19747
|
-
ExportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19748
|
-
return this.encode(message, writer).ldelim();
|
|
19749
|
-
};
|
|
19750
|
-
ExportStatusRequest.decode = function decode(reader, length, error) {
|
|
19751
|
-
if (!(reader instanceof $Reader))
|
|
19752
|
-
reader = $Reader.create(reader);
|
|
19753
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19754
|
-
while (reader.pos < end) {
|
|
19755
|
-
let tag = reader.uint32();
|
|
19756
|
-
if (tag === error)
|
|
19757
|
-
break;
|
|
19758
|
-
switch (tag >>> 3) {
|
|
19759
|
-
case 1: {
|
|
19760
|
-
message.jobId = reader.uint32();
|
|
19761
|
-
break;
|
|
19762
|
-
}
|
|
19763
|
-
default:
|
|
19764
|
-
reader.skipType(tag & 7);
|
|
19765
|
-
break;
|
|
19766
|
-
}
|
|
19767
|
-
}
|
|
19768
|
-
return message;
|
|
19769
|
-
};
|
|
19770
|
-
ExportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19771
|
-
if (!(reader instanceof $Reader))
|
|
19772
|
-
reader = new $Reader(reader);
|
|
19773
|
-
return this.decode(reader, reader.uint32());
|
|
19774
|
-
};
|
|
19775
|
-
ExportStatusRequest.verify = function verify(message) {
|
|
19776
|
-
if (typeof message !== "object" || message === null)
|
|
19777
|
-
return "object expected";
|
|
19778
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19779
|
-
if (!$util.isInteger(message.jobId))
|
|
19780
|
-
return "jobId: integer expected";
|
|
19781
|
-
}
|
|
19782
|
-
return null;
|
|
19783
|
-
};
|
|
19784
|
-
ExportStatusRequest.fromObject = function fromObject(object) {
|
|
19785
|
-
if (object instanceof $root.sesame.v1.jobs.ExportStatusRequest)
|
|
19786
|
-
return object;
|
|
19787
|
-
let message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19788
|
-
if (object.jobId != null)
|
|
19789
|
-
message.jobId = object.jobId >>> 0;
|
|
19790
|
-
return message;
|
|
19791
|
-
};
|
|
19792
|
-
ExportStatusRequest.toObject = function toObject(message, options) {
|
|
19793
|
-
if (!options)
|
|
19794
|
-
options = {};
|
|
19795
|
-
let object = {};
|
|
19796
|
-
if (options.defaults)
|
|
19797
|
-
object.jobId = 0;
|
|
19798
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19799
|
-
object.jobId = message.jobId;
|
|
19800
|
-
return object;
|
|
19801
|
-
};
|
|
19802
|
-
ExportStatusRequest.prototype.toJSON = function toJSON() {
|
|
19803
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19804
|
-
};
|
|
19805
|
-
ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19806
|
-
if (typeUrlPrefix === void 0) {
|
|
19807
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19808
|
-
}
|
|
19809
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportStatusRequest";
|
|
19810
|
-
};
|
|
19811
|
-
return ExportStatusRequest;
|
|
19812
|
-
}();
|
|
19813
|
-
jobs.ExportListRequest = function() {
|
|
19814
|
-
function ExportListRequest(properties) {
|
|
19815
|
-
if (properties) {
|
|
19816
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19817
|
-
if (properties[keys[i]] != null)
|
|
19818
|
-
this[keys[i]] = properties[keys[i]];
|
|
19819
|
-
}
|
|
19820
|
-
}
|
|
19821
|
-
ExportListRequest.create = function create(properties) {
|
|
19822
|
-
return new ExportListRequest(properties);
|
|
19823
|
-
};
|
|
19824
|
-
ExportListRequest.encode = function encode(message, writer) {
|
|
19825
|
-
if (!writer)
|
|
19826
|
-
writer = $Writer.create();
|
|
19827
|
-
return writer;
|
|
19828
|
-
};
|
|
19829
|
-
ExportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19830
|
-
return this.encode(message, writer).ldelim();
|
|
19831
|
-
};
|
|
19832
|
-
ExportListRequest.decode = function decode(reader, length, error) {
|
|
19833
|
-
if (!(reader instanceof $Reader))
|
|
19834
|
-
reader = $Reader.create(reader);
|
|
19835
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportListRequest();
|
|
19836
|
-
while (reader.pos < end) {
|
|
19837
|
-
let tag = reader.uint32();
|
|
19838
|
-
if (tag === error)
|
|
19839
|
-
break;
|
|
19840
|
-
switch (tag >>> 3) {
|
|
19841
|
-
default:
|
|
19842
|
-
reader.skipType(tag & 7);
|
|
19843
|
-
break;
|
|
19844
|
-
}
|
|
19845
|
-
}
|
|
19846
|
-
return message;
|
|
19847
|
-
};
|
|
19848
|
-
ExportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19849
|
-
if (!(reader instanceof $Reader))
|
|
19850
|
-
reader = new $Reader(reader);
|
|
19851
|
-
return this.decode(reader, reader.uint32());
|
|
19852
|
-
};
|
|
19853
|
-
ExportListRequest.verify = function verify(message) {
|
|
19854
|
-
if (typeof message !== "object" || message === null)
|
|
19855
|
-
return "object expected";
|
|
19856
|
-
return null;
|
|
19857
|
-
};
|
|
19858
|
-
ExportListRequest.fromObject = function fromObject(object) {
|
|
19859
|
-
if (object instanceof $root.sesame.v1.jobs.ExportListRequest)
|
|
19860
|
-
return object;
|
|
19861
|
-
return new $root.sesame.v1.jobs.ExportListRequest();
|
|
19862
|
-
};
|
|
19863
|
-
ExportListRequest.toObject = function toObject() {
|
|
19864
|
-
return {};
|
|
19865
|
-
};
|
|
19866
|
-
ExportListRequest.prototype.toJSON = function toJSON() {
|
|
19867
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19868
|
-
};
|
|
19869
|
-
ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19870
|
-
if (typeUrlPrefix === void 0) {
|
|
19871
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19872
|
-
}
|
|
19873
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportListRequest";
|
|
19874
|
-
};
|
|
19875
|
-
return ExportListRequest;
|
|
19876
|
-
}();
|
|
19877
|
-
jobs.ImportConfiguration = function() {
|
|
19878
|
-
function ImportConfiguration(properties) {
|
|
19879
|
-
this.audioRouting = [];
|
|
19880
|
-
if (properties) {
|
|
19881
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19882
|
-
if (properties[keys[i]] != null)
|
|
19883
|
-
this[keys[i]] = properties[keys[i]];
|
|
19884
|
-
}
|
|
19885
|
-
}
|
|
19886
|
-
ImportConfiguration.prototype.srcFilename = "";
|
|
19887
|
-
ImportConfiguration.prototype.audioRouting = $util.emptyArray;
|
|
19888
|
-
ImportConfiguration.prototype.dstRecorderId = "";
|
|
19889
|
-
ImportConfiguration.prototype.dstClipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
19890
|
-
ImportConfiguration.prototype.dstClipName = "";
|
|
19891
|
-
ImportConfiguration.prototype.dstClipUserData = "";
|
|
19892
|
-
ImportConfiguration.create = function create(properties) {
|
|
19893
|
-
return new ImportConfiguration(properties);
|
|
19894
|
-
};
|
|
19895
|
-
ImportConfiguration.encode = function encode(message, writer) {
|
|
19896
|
-
if (!writer)
|
|
19897
|
-
writer = $Writer.create();
|
|
19898
|
-
if (message.srcFilename != null && Object.hasOwnProperty.call(message, "srcFilename"))
|
|
20147
|
+
if (message.srcFilename != null && Object.hasOwnProperty.call(message, "srcFilename"))
|
|
19899
20148
|
writer.uint32(
|
|
19900
20149
|
/* id 1, wireType 2 =*/
|
|
19901
20150
|
10
|
|
@@ -20189,42 +20438,71 @@ var sesame = $root.sesame = (() => {
|
|
|
20189
20438
|
};
|
|
20190
20439
|
return ImportStartRequest;
|
|
20191
20440
|
}();
|
|
20192
|
-
jobs
|
|
20193
|
-
|
|
20441
|
+
return jobs;
|
|
20442
|
+
}();
|
|
20443
|
+
v1.rpc = function() {
|
|
20444
|
+
const rpc = {};
|
|
20445
|
+
rpc.Message = function() {
|
|
20446
|
+
function Message2(properties) {
|
|
20194
20447
|
if (properties) {
|
|
20195
20448
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20196
20449
|
if (properties[keys[i]] != null)
|
|
20197
20450
|
this[keys[i]] = properties[keys[i]];
|
|
20198
20451
|
}
|
|
20199
20452
|
}
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20453
|
+
Message2.prototype.request = null;
|
|
20454
|
+
Message2.prototype.response = null;
|
|
20455
|
+
Message2.prototype.event = null;
|
|
20456
|
+
let $oneOfFields;
|
|
20457
|
+
Object.defineProperty(Message2.prototype, "payload", {
|
|
20458
|
+
get: $util.oneOfGetter($oneOfFields = ["request", "response", "event"]),
|
|
20459
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20460
|
+
});
|
|
20461
|
+
Message2.create = function create(properties) {
|
|
20462
|
+
return new Message2(properties);
|
|
20203
20463
|
};
|
|
20204
|
-
|
|
20464
|
+
Message2.encode = function encode(message, writer) {
|
|
20205
20465
|
if (!writer)
|
|
20206
20466
|
writer = $Writer.create();
|
|
20207
|
-
if (message.
|
|
20208
|
-
writer.uint32(
|
|
20209
|
-
/* id 1, wireType
|
|
20210
|
-
|
|
20211
|
-
).
|
|
20467
|
+
if (message.request != null && Object.hasOwnProperty.call(message, "request"))
|
|
20468
|
+
$root.sesame.v1.rpc.Request.encode(message.request, writer.uint32(
|
|
20469
|
+
/* id 1, wireType 2 =*/
|
|
20470
|
+
10
|
|
20471
|
+
).fork()).ldelim();
|
|
20472
|
+
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
20473
|
+
$root.sesame.v1.rpc.Response.encode(message.response, writer.uint32(
|
|
20474
|
+
/* id 2, wireType 2 =*/
|
|
20475
|
+
18
|
|
20476
|
+
).fork()).ldelim();
|
|
20477
|
+
if (message.event != null && Object.hasOwnProperty.call(message, "event"))
|
|
20478
|
+
$root.sesame.v1.rpc.Event.encode(message.event, writer.uint32(
|
|
20479
|
+
/* id 3, wireType 2 =*/
|
|
20480
|
+
26
|
|
20481
|
+
).fork()).ldelim();
|
|
20212
20482
|
return writer;
|
|
20213
20483
|
};
|
|
20214
|
-
|
|
20484
|
+
Message2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20215
20485
|
return this.encode(message, writer).ldelim();
|
|
20216
20486
|
};
|
|
20217
|
-
|
|
20487
|
+
Message2.decode = function decode(reader, length, error) {
|
|
20218
20488
|
if (!(reader instanceof $Reader))
|
|
20219
20489
|
reader = $Reader.create(reader);
|
|
20220
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
20490
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.Message();
|
|
20221
20491
|
while (reader.pos < end) {
|
|
20222
20492
|
let tag = reader.uint32();
|
|
20223
20493
|
if (tag === error)
|
|
20224
20494
|
break;
|
|
20225
20495
|
switch (tag >>> 3) {
|
|
20226
20496
|
case 1: {
|
|
20227
|
-
message.
|
|
20497
|
+
message.request = $root.sesame.v1.rpc.Request.decode(reader, reader.uint32());
|
|
20498
|
+
break;
|
|
20499
|
+
}
|
|
20500
|
+
case 2: {
|
|
20501
|
+
message.response = $root.sesame.v1.rpc.Response.decode(reader, reader.uint32());
|
|
20502
|
+
break;
|
|
20503
|
+
}
|
|
20504
|
+
case 3: {
|
|
20505
|
+
message.event = $root.sesame.v1.rpc.Event.decode(reader, reader.uint32());
|
|
20228
20506
|
break;
|
|
20229
20507
|
}
|
|
20230
20508
|
default:
|
|
@@ -20234,291 +20512,22 @@ var sesame = $root.sesame = (() => {
|
|
|
20234
20512
|
}
|
|
20235
20513
|
return message;
|
|
20236
20514
|
};
|
|
20237
|
-
|
|
20515
|
+
Message2.decodeDelimited = function decodeDelimited(reader) {
|
|
20238
20516
|
if (!(reader instanceof $Reader))
|
|
20239
20517
|
reader = new $Reader(reader);
|
|
20240
20518
|
return this.decode(reader, reader.uint32());
|
|
20241
20519
|
};
|
|
20242
|
-
|
|
20520
|
+
Message2.verify = function verify(message) {
|
|
20243
20521
|
if (typeof message !== "object" || message === null)
|
|
20244
20522
|
return "object expected";
|
|
20245
|
-
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
|
|
20249
|
-
|
|
20250
|
-
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
return object;
|
|
20254
|
-
let message = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
20255
|
-
if (object.jobId != null)
|
|
20256
|
-
message.jobId = object.jobId >>> 0;
|
|
20257
|
-
return message;
|
|
20258
|
-
};
|
|
20259
|
-
ImportAbortRequest.toObject = function toObject(message, options) {
|
|
20260
|
-
if (!options)
|
|
20261
|
-
options = {};
|
|
20262
|
-
let object = {};
|
|
20263
|
-
if (options.defaults)
|
|
20264
|
-
object.jobId = 0;
|
|
20265
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
20266
|
-
object.jobId = message.jobId;
|
|
20267
|
-
return object;
|
|
20268
|
-
};
|
|
20269
|
-
ImportAbortRequest.prototype.toJSON = function toJSON() {
|
|
20270
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20271
|
-
};
|
|
20272
|
-
ImportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20273
|
-
if (typeUrlPrefix === void 0) {
|
|
20274
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20275
|
-
}
|
|
20276
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportAbortRequest";
|
|
20277
|
-
};
|
|
20278
|
-
return ImportAbortRequest;
|
|
20279
|
-
}();
|
|
20280
|
-
jobs.ImportStatusRequest = function() {
|
|
20281
|
-
function ImportStatusRequest(properties) {
|
|
20282
|
-
if (properties) {
|
|
20283
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20284
|
-
if (properties[keys[i]] != null)
|
|
20285
|
-
this[keys[i]] = properties[keys[i]];
|
|
20286
|
-
}
|
|
20287
|
-
}
|
|
20288
|
-
ImportStatusRequest.prototype.jobId = 0;
|
|
20289
|
-
ImportStatusRequest.create = function create(properties) {
|
|
20290
|
-
return new ImportStatusRequest(properties);
|
|
20291
|
-
};
|
|
20292
|
-
ImportStatusRequest.encode = function encode(message, writer) {
|
|
20293
|
-
if (!writer)
|
|
20294
|
-
writer = $Writer.create();
|
|
20295
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
20296
|
-
writer.uint32(
|
|
20297
|
-
/* id 1, wireType 0 =*/
|
|
20298
|
-
8
|
|
20299
|
-
).uint32(message.jobId);
|
|
20300
|
-
return writer;
|
|
20301
|
-
};
|
|
20302
|
-
ImportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20303
|
-
return this.encode(message, writer).ldelim();
|
|
20304
|
-
};
|
|
20305
|
-
ImportStatusRequest.decode = function decode(reader, length, error) {
|
|
20306
|
-
if (!(reader instanceof $Reader))
|
|
20307
|
-
reader = $Reader.create(reader);
|
|
20308
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStatusRequest();
|
|
20309
|
-
while (reader.pos < end) {
|
|
20310
|
-
let tag = reader.uint32();
|
|
20311
|
-
if (tag === error)
|
|
20312
|
-
break;
|
|
20313
|
-
switch (tag >>> 3) {
|
|
20314
|
-
case 1: {
|
|
20315
|
-
message.jobId = reader.uint32();
|
|
20316
|
-
break;
|
|
20317
|
-
}
|
|
20318
|
-
default:
|
|
20319
|
-
reader.skipType(tag & 7);
|
|
20320
|
-
break;
|
|
20321
|
-
}
|
|
20322
|
-
}
|
|
20323
|
-
return message;
|
|
20324
|
-
};
|
|
20325
|
-
ImportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20326
|
-
if (!(reader instanceof $Reader))
|
|
20327
|
-
reader = new $Reader(reader);
|
|
20328
|
-
return this.decode(reader, reader.uint32());
|
|
20329
|
-
};
|
|
20330
|
-
ImportStatusRequest.verify = function verify(message) {
|
|
20331
|
-
if (typeof message !== "object" || message === null)
|
|
20332
|
-
return "object expected";
|
|
20333
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
20334
|
-
if (!$util.isInteger(message.jobId))
|
|
20335
|
-
return "jobId: integer expected";
|
|
20336
|
-
}
|
|
20337
|
-
return null;
|
|
20338
|
-
};
|
|
20339
|
-
ImportStatusRequest.fromObject = function fromObject(object) {
|
|
20340
|
-
if (object instanceof $root.sesame.v1.jobs.ImportStatusRequest)
|
|
20341
|
-
return object;
|
|
20342
|
-
let message = new $root.sesame.v1.jobs.ImportStatusRequest();
|
|
20343
|
-
if (object.jobId != null)
|
|
20344
|
-
message.jobId = object.jobId >>> 0;
|
|
20345
|
-
return message;
|
|
20346
|
-
};
|
|
20347
|
-
ImportStatusRequest.toObject = function toObject(message, options) {
|
|
20348
|
-
if (!options)
|
|
20349
|
-
options = {};
|
|
20350
|
-
let object = {};
|
|
20351
|
-
if (options.defaults)
|
|
20352
|
-
object.jobId = 0;
|
|
20353
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
20354
|
-
object.jobId = message.jobId;
|
|
20355
|
-
return object;
|
|
20356
|
-
};
|
|
20357
|
-
ImportStatusRequest.prototype.toJSON = function toJSON() {
|
|
20358
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20359
|
-
};
|
|
20360
|
-
ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20361
|
-
if (typeUrlPrefix === void 0) {
|
|
20362
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20363
|
-
}
|
|
20364
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportStatusRequest";
|
|
20365
|
-
};
|
|
20366
|
-
return ImportStatusRequest;
|
|
20367
|
-
}();
|
|
20368
|
-
jobs.ImportListRequest = function() {
|
|
20369
|
-
function ImportListRequest(properties) {
|
|
20370
|
-
if (properties) {
|
|
20371
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20372
|
-
if (properties[keys[i]] != null)
|
|
20373
|
-
this[keys[i]] = properties[keys[i]];
|
|
20374
|
-
}
|
|
20375
|
-
}
|
|
20376
|
-
ImportListRequest.create = function create(properties) {
|
|
20377
|
-
return new ImportListRequest(properties);
|
|
20378
|
-
};
|
|
20379
|
-
ImportListRequest.encode = function encode(message, writer) {
|
|
20380
|
-
if (!writer)
|
|
20381
|
-
writer = $Writer.create();
|
|
20382
|
-
return writer;
|
|
20383
|
-
};
|
|
20384
|
-
ImportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20385
|
-
return this.encode(message, writer).ldelim();
|
|
20386
|
-
};
|
|
20387
|
-
ImportListRequest.decode = function decode(reader, length, error) {
|
|
20388
|
-
if (!(reader instanceof $Reader))
|
|
20389
|
-
reader = $Reader.create(reader);
|
|
20390
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportListRequest();
|
|
20391
|
-
while (reader.pos < end) {
|
|
20392
|
-
let tag = reader.uint32();
|
|
20393
|
-
if (tag === error)
|
|
20394
|
-
break;
|
|
20395
|
-
switch (tag >>> 3) {
|
|
20396
|
-
default:
|
|
20397
|
-
reader.skipType(tag & 7);
|
|
20398
|
-
break;
|
|
20399
|
-
}
|
|
20400
|
-
}
|
|
20401
|
-
return message;
|
|
20402
|
-
};
|
|
20403
|
-
ImportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20404
|
-
if (!(reader instanceof $Reader))
|
|
20405
|
-
reader = new $Reader(reader);
|
|
20406
|
-
return this.decode(reader, reader.uint32());
|
|
20407
|
-
};
|
|
20408
|
-
ImportListRequest.verify = function verify(message) {
|
|
20409
|
-
if (typeof message !== "object" || message === null)
|
|
20410
|
-
return "object expected";
|
|
20411
|
-
return null;
|
|
20412
|
-
};
|
|
20413
|
-
ImportListRequest.fromObject = function fromObject(object) {
|
|
20414
|
-
if (object instanceof $root.sesame.v1.jobs.ImportListRequest)
|
|
20415
|
-
return object;
|
|
20416
|
-
return new $root.sesame.v1.jobs.ImportListRequest();
|
|
20417
|
-
};
|
|
20418
|
-
ImportListRequest.toObject = function toObject() {
|
|
20419
|
-
return {};
|
|
20420
|
-
};
|
|
20421
|
-
ImportListRequest.prototype.toJSON = function toJSON() {
|
|
20422
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20423
|
-
};
|
|
20424
|
-
ImportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20425
|
-
if (typeUrlPrefix === void 0) {
|
|
20426
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20427
|
-
}
|
|
20428
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportListRequest";
|
|
20429
|
-
};
|
|
20430
|
-
return ImportListRequest;
|
|
20431
|
-
}();
|
|
20432
|
-
return jobs;
|
|
20433
|
-
}();
|
|
20434
|
-
v1.rpc = function() {
|
|
20435
|
-
const rpc = {};
|
|
20436
|
-
rpc.Message = function() {
|
|
20437
|
-
function Message2(properties) {
|
|
20438
|
-
if (properties) {
|
|
20439
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20440
|
-
if (properties[keys[i]] != null)
|
|
20441
|
-
this[keys[i]] = properties[keys[i]];
|
|
20442
|
-
}
|
|
20443
|
-
}
|
|
20444
|
-
Message2.prototype.request = null;
|
|
20445
|
-
Message2.prototype.response = null;
|
|
20446
|
-
Message2.prototype.event = null;
|
|
20447
|
-
let $oneOfFields;
|
|
20448
|
-
Object.defineProperty(Message2.prototype, "payload", {
|
|
20449
|
-
get: $util.oneOfGetter($oneOfFields = ["request", "response", "event"]),
|
|
20450
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
20451
|
-
});
|
|
20452
|
-
Message2.create = function create(properties) {
|
|
20453
|
-
return new Message2(properties);
|
|
20454
|
-
};
|
|
20455
|
-
Message2.encode = function encode(message, writer) {
|
|
20456
|
-
if (!writer)
|
|
20457
|
-
writer = $Writer.create();
|
|
20458
|
-
if (message.request != null && Object.hasOwnProperty.call(message, "request"))
|
|
20459
|
-
$root.sesame.v1.rpc.Request.encode(message.request, writer.uint32(
|
|
20460
|
-
/* id 1, wireType 2 =*/
|
|
20461
|
-
10
|
|
20462
|
-
).fork()).ldelim();
|
|
20463
|
-
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
20464
|
-
$root.sesame.v1.rpc.Response.encode(message.response, writer.uint32(
|
|
20465
|
-
/* id 2, wireType 2 =*/
|
|
20466
|
-
18
|
|
20467
|
-
).fork()).ldelim();
|
|
20468
|
-
if (message.event != null && Object.hasOwnProperty.call(message, "event"))
|
|
20469
|
-
$root.sesame.v1.rpc.Event.encode(message.event, writer.uint32(
|
|
20470
|
-
/* id 3, wireType 2 =*/
|
|
20471
|
-
26
|
|
20472
|
-
).fork()).ldelim();
|
|
20473
|
-
return writer;
|
|
20474
|
-
};
|
|
20475
|
-
Message2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20476
|
-
return this.encode(message, writer).ldelim();
|
|
20477
|
-
};
|
|
20478
|
-
Message2.decode = function decode(reader, length, error) {
|
|
20479
|
-
if (!(reader instanceof $Reader))
|
|
20480
|
-
reader = $Reader.create(reader);
|
|
20481
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.Message();
|
|
20482
|
-
while (reader.pos < end) {
|
|
20483
|
-
let tag = reader.uint32();
|
|
20484
|
-
if (tag === error)
|
|
20485
|
-
break;
|
|
20486
|
-
switch (tag >>> 3) {
|
|
20487
|
-
case 1: {
|
|
20488
|
-
message.request = $root.sesame.v1.rpc.Request.decode(reader, reader.uint32());
|
|
20489
|
-
break;
|
|
20490
|
-
}
|
|
20491
|
-
case 2: {
|
|
20492
|
-
message.response = $root.sesame.v1.rpc.Response.decode(reader, reader.uint32());
|
|
20493
|
-
break;
|
|
20494
|
-
}
|
|
20495
|
-
case 3: {
|
|
20496
|
-
message.event = $root.sesame.v1.rpc.Event.decode(reader, reader.uint32());
|
|
20497
|
-
break;
|
|
20498
|
-
}
|
|
20499
|
-
default:
|
|
20500
|
-
reader.skipType(tag & 7);
|
|
20501
|
-
break;
|
|
20502
|
-
}
|
|
20503
|
-
}
|
|
20504
|
-
return message;
|
|
20505
|
-
};
|
|
20506
|
-
Message2.decodeDelimited = function decodeDelimited(reader) {
|
|
20507
|
-
if (!(reader instanceof $Reader))
|
|
20508
|
-
reader = new $Reader(reader);
|
|
20509
|
-
return this.decode(reader, reader.uint32());
|
|
20510
|
-
};
|
|
20511
|
-
Message2.verify = function verify(message) {
|
|
20512
|
-
if (typeof message !== "object" || message === null)
|
|
20513
|
-
return "object expected";
|
|
20514
|
-
let properties = {};
|
|
20515
|
-
if (message.request != null && message.hasOwnProperty("request")) {
|
|
20516
|
-
properties.payload = 1;
|
|
20517
|
-
{
|
|
20518
|
-
let error = $root.sesame.v1.rpc.Request.verify(message.request);
|
|
20519
|
-
if (error)
|
|
20520
|
-
return "request." + error;
|
|
20521
|
-
}
|
|
20523
|
+
let properties = {};
|
|
20524
|
+
if (message.request != null && message.hasOwnProperty("request")) {
|
|
20525
|
+
properties.payload = 1;
|
|
20526
|
+
{
|
|
20527
|
+
let error = $root.sesame.v1.rpc.Request.verify(message.request);
|
|
20528
|
+
if (error)
|
|
20529
|
+
return "request." + error;
|
|
20530
|
+
}
|
|
20522
20531
|
}
|
|
20523
20532
|
if (message.response != null && message.hasOwnProperty("response")) {
|
|
20524
20533
|
if (properties.payload === 1)
|
|
@@ -20847,93 +20856,799 @@ var sesame = $root.sesame = (() => {
|
|
|
20847
20856
|
else if (object.payload.length >= 0)
|
|
20848
20857
|
message.payload = object.payload;
|
|
20849
20858
|
}
|
|
20850
|
-
if (object.error != null)
|
|
20851
|
-
message.error = String(object.error);
|
|
20859
|
+
if (object.error != null)
|
|
20860
|
+
message.error = String(object.error);
|
|
20861
|
+
return message;
|
|
20862
|
+
};
|
|
20863
|
+
Response2.toObject = function toObject(message, options) {
|
|
20864
|
+
if (!options)
|
|
20865
|
+
options = {};
|
|
20866
|
+
let object = {};
|
|
20867
|
+
if (options.defaults) {
|
|
20868
|
+
object.seq = 0;
|
|
20869
|
+
object.ok = false;
|
|
20870
|
+
if (options.bytes === String)
|
|
20871
|
+
object.payload = "";
|
|
20872
|
+
else {
|
|
20873
|
+
object.payload = [];
|
|
20874
|
+
if (options.bytes !== Array)
|
|
20875
|
+
object.payload = $util.newBuffer(object.payload);
|
|
20876
|
+
}
|
|
20877
|
+
object.error = "";
|
|
20878
|
+
}
|
|
20879
|
+
if (message.seq != null && message.hasOwnProperty("seq"))
|
|
20880
|
+
object.seq = message.seq;
|
|
20881
|
+
if (message.ok != null && message.hasOwnProperty("ok"))
|
|
20882
|
+
object.ok = message.ok;
|
|
20883
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
20884
|
+
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
20885
|
+
if (message.error != null && message.hasOwnProperty("error"))
|
|
20886
|
+
object.error = message.error;
|
|
20887
|
+
return object;
|
|
20888
|
+
};
|
|
20889
|
+
Response2.prototype.toJSON = function toJSON() {
|
|
20890
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20891
|
+
};
|
|
20892
|
+
Response2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20893
|
+
if (typeUrlPrefix === void 0) {
|
|
20894
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20895
|
+
}
|
|
20896
|
+
return typeUrlPrefix + "/sesame.v1.rpc.Response";
|
|
20897
|
+
};
|
|
20898
|
+
return Response2;
|
|
20899
|
+
}();
|
|
20900
|
+
rpc.Event = function() {
|
|
20901
|
+
function Event2(properties) {
|
|
20902
|
+
if (properties) {
|
|
20903
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20904
|
+
if (properties[keys[i]] != null)
|
|
20905
|
+
this[keys[i]] = properties[keys[i]];
|
|
20906
|
+
}
|
|
20907
|
+
}
|
|
20908
|
+
Event2.prototype.topic = 0;
|
|
20909
|
+
Event2.prototype.payload = $util.newBuffer([]);
|
|
20910
|
+
Event2.create = function create(properties) {
|
|
20911
|
+
return new Event2(properties);
|
|
20912
|
+
};
|
|
20913
|
+
Event2.encode = function encode(message, writer) {
|
|
20914
|
+
if (!writer)
|
|
20915
|
+
writer = $Writer.create();
|
|
20916
|
+
if (message.topic != null && Object.hasOwnProperty.call(message, "topic"))
|
|
20917
|
+
writer.uint32(
|
|
20918
|
+
/* id 1, wireType 0 =*/
|
|
20919
|
+
8
|
|
20920
|
+
).int32(message.topic);
|
|
20921
|
+
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
20922
|
+
writer.uint32(
|
|
20923
|
+
/* id 2, wireType 2 =*/
|
|
20924
|
+
18
|
|
20925
|
+
).bytes(message.payload);
|
|
20926
|
+
return writer;
|
|
20927
|
+
};
|
|
20928
|
+
Event2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20929
|
+
return this.encode(message, writer).ldelim();
|
|
20930
|
+
};
|
|
20931
|
+
Event2.decode = function decode(reader, length, error) {
|
|
20932
|
+
if (!(reader instanceof $Reader))
|
|
20933
|
+
reader = $Reader.create(reader);
|
|
20934
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.Event();
|
|
20935
|
+
while (reader.pos < end) {
|
|
20936
|
+
let tag = reader.uint32();
|
|
20937
|
+
if (tag === error)
|
|
20938
|
+
break;
|
|
20939
|
+
switch (tag >>> 3) {
|
|
20940
|
+
case 1: {
|
|
20941
|
+
message.topic = reader.int32();
|
|
20942
|
+
break;
|
|
20943
|
+
}
|
|
20944
|
+
case 2: {
|
|
20945
|
+
message.payload = reader.bytes();
|
|
20946
|
+
break;
|
|
20947
|
+
}
|
|
20948
|
+
default:
|
|
20949
|
+
reader.skipType(tag & 7);
|
|
20950
|
+
break;
|
|
20951
|
+
}
|
|
20952
|
+
}
|
|
20953
|
+
return message;
|
|
20954
|
+
};
|
|
20955
|
+
Event2.decodeDelimited = function decodeDelimited(reader) {
|
|
20956
|
+
if (!(reader instanceof $Reader))
|
|
20957
|
+
reader = new $Reader(reader);
|
|
20958
|
+
return this.decode(reader, reader.uint32());
|
|
20959
|
+
};
|
|
20960
|
+
Event2.verify = function verify(message) {
|
|
20961
|
+
if (typeof message !== "object" || message === null)
|
|
20962
|
+
return "object expected";
|
|
20963
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
20964
|
+
switch (message.topic) {
|
|
20965
|
+
default:
|
|
20966
|
+
return "topic: enum value expected";
|
|
20967
|
+
case 0:
|
|
20968
|
+
case 1:
|
|
20969
|
+
case 2:
|
|
20970
|
+
case 3:
|
|
20971
|
+
case 4:
|
|
20972
|
+
case 6:
|
|
20973
|
+
break;
|
|
20974
|
+
}
|
|
20975
|
+
if (message.payload != null && message.hasOwnProperty("payload")) {
|
|
20976
|
+
if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload)))
|
|
20977
|
+
return "payload: buffer expected";
|
|
20978
|
+
}
|
|
20979
|
+
return null;
|
|
20980
|
+
};
|
|
20981
|
+
Event2.fromObject = function fromObject(object) {
|
|
20982
|
+
if (object instanceof $root.sesame.v1.rpc.Event)
|
|
20983
|
+
return object;
|
|
20984
|
+
let message = new $root.sesame.v1.rpc.Event();
|
|
20985
|
+
switch (object.topic) {
|
|
20986
|
+
default:
|
|
20987
|
+
if (typeof object.topic === "number") {
|
|
20988
|
+
message.topic = object.topic;
|
|
20989
|
+
break;
|
|
20990
|
+
}
|
|
20991
|
+
break;
|
|
20992
|
+
case "EVENT_TOPIC_UNSPECIFIED":
|
|
20993
|
+
case 0:
|
|
20994
|
+
message.topic = 0;
|
|
20995
|
+
break;
|
|
20996
|
+
case "EVENT_TOPIC_ERROR":
|
|
20997
|
+
case 1:
|
|
20998
|
+
message.topic = 1;
|
|
20999
|
+
break;
|
|
21000
|
+
case "EVENT_TOPIC_TRANSPORT":
|
|
21001
|
+
case 2:
|
|
21002
|
+
message.topic = 2;
|
|
21003
|
+
break;
|
|
21004
|
+
case "EVENT_TOPIC_CALLBACK":
|
|
21005
|
+
case 3:
|
|
21006
|
+
message.topic = 3;
|
|
21007
|
+
break;
|
|
21008
|
+
case "EVENT_TOPIC_JOB":
|
|
21009
|
+
case 4:
|
|
21010
|
+
message.topic = 4;
|
|
21011
|
+
break;
|
|
21012
|
+
case "EVENT_TOPIC_RECORDER":
|
|
21013
|
+
case 6:
|
|
21014
|
+
message.topic = 6;
|
|
21015
|
+
break;
|
|
21016
|
+
}
|
|
21017
|
+
if (object.payload != null) {
|
|
21018
|
+
if (typeof object.payload === "string")
|
|
21019
|
+
$util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0);
|
|
21020
|
+
else if (object.payload.length >= 0)
|
|
21021
|
+
message.payload = object.payload;
|
|
21022
|
+
}
|
|
21023
|
+
return message;
|
|
21024
|
+
};
|
|
21025
|
+
Event2.toObject = function toObject(message, options) {
|
|
21026
|
+
if (!options)
|
|
21027
|
+
options = {};
|
|
21028
|
+
let object = {};
|
|
21029
|
+
if (options.defaults) {
|
|
21030
|
+
object.topic = options.enums === String ? "EVENT_TOPIC_UNSPECIFIED" : 0;
|
|
21031
|
+
if (options.bytes === String)
|
|
21032
|
+
object.payload = "";
|
|
21033
|
+
else {
|
|
21034
|
+
object.payload = [];
|
|
21035
|
+
if (options.bytes !== Array)
|
|
21036
|
+
object.payload = $util.newBuffer(object.payload);
|
|
21037
|
+
}
|
|
21038
|
+
}
|
|
21039
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
21040
|
+
object.topic = options.enums === String ? $root.sesame.v1.common.EventTopic[message.topic] === void 0 ? message.topic : $root.sesame.v1.common.EventTopic[message.topic] : message.topic;
|
|
21041
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
21042
|
+
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
21043
|
+
return object;
|
|
21044
|
+
};
|
|
21045
|
+
Event2.prototype.toJSON = function toJSON() {
|
|
21046
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
21047
|
+
};
|
|
21048
|
+
Event2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21049
|
+
if (typeUrlPrefix === void 0) {
|
|
21050
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21051
|
+
}
|
|
21052
|
+
return typeUrlPrefix + "/sesame.v1.rpc.Event";
|
|
21053
|
+
};
|
|
21054
|
+
return Event2;
|
|
21055
|
+
}();
|
|
21056
|
+
rpc.SesameAPIService = function() {
|
|
21057
|
+
function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
|
|
21058
|
+
import_minimal.default.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
21059
|
+
}
|
|
21060
|
+
(SesameAPIService.prototype = Object.create(import_minimal.default.rpc.Service.prototype)).constructor = SesameAPIService;
|
|
21061
|
+
SesameAPIService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
21062
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
21063
|
+
};
|
|
21064
|
+
Object.defineProperty(SesameAPIService.prototype.executeCommandList = function executeCommandList(request, callback) {
|
|
21065
|
+
return this.rpcCall(executeCommandList, $root.sesame.v1.commands.CommandList, $root.sesame.v1.commands.CommandExecutionResponse, request, callback);
|
|
21066
|
+
}, "name", { value: "ExecuteCommandList" });
|
|
21067
|
+
Object.defineProperty(SesameAPIService.prototype.updateSubscriptions = function updateSubscriptions(request, callback) {
|
|
21068
|
+
return this.rpcCall(updateSubscriptions, $root.sesame.v1.status.SubscriptionRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21069
|
+
}, "name", { value: "UpdateSubscriptions" });
|
|
21070
|
+
Object.defineProperty(SesameAPIService.prototype.notImplemented = function notImplemented(request, callback) {
|
|
21071
|
+
return this.rpcCall(notImplemented, $root.sesame.v1.common.Empty, $root.sesame.v1.common.Empty, request, callback);
|
|
21072
|
+
}, "name", { value: "NotImplemented" });
|
|
21073
|
+
Object.defineProperty(SesameAPIService.prototype.requestEvents = function requestEvents(request, callback) {
|
|
21074
|
+
return this.rpcCall(requestEvents, $root.sesame.v1.common.Empty, $root.sesame.v1.status.Event, request, callback);
|
|
21075
|
+
}, "name", { value: "RequestEvents" });
|
|
21076
|
+
Object.defineProperty(SesameAPIService.prototype.requestStatus = function requestStatus(request, callback) {
|
|
21077
|
+
return this.rpcCall(requestStatus, $root.sesame.v1.common.Empty, $root.sesame.v1.status.Status, request, callback);
|
|
21078
|
+
}, "name", { value: "RequestStatus" });
|
|
21079
|
+
Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
|
|
21080
|
+
return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
|
|
21081
|
+
}, "name", { value: "RequestRecorderOperation" });
|
|
21082
|
+
Object.defineProperty(SesameAPIService.prototype.startJob = function startJob(request, callback) {
|
|
21083
|
+
return this.rpcCall(startJob, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21084
|
+
}, "name", { value: "StartJob" });
|
|
21085
|
+
Object.defineProperty(SesameAPIService.prototype.abortJob = function abortJob(request, callback) {
|
|
21086
|
+
return this.rpcCall(abortJob, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21087
|
+
}, "name", { value: "AbortJob" });
|
|
21088
|
+
Object.defineProperty(SesameAPIService.prototype.getJobStatus = function getJobStatus(request, callback) {
|
|
21089
|
+
return this.rpcCall(getJobStatus, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21090
|
+
}, "name", { value: "GetJobStatus" });
|
|
21091
|
+
Object.defineProperty(SesameAPIService.prototype.listJobs = function listJobs(request, callback) {
|
|
21092
|
+
return this.rpcCall(listJobs, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, request, callback);
|
|
21093
|
+
}, "name", { value: "ListJobs" });
|
|
21094
|
+
Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
|
|
21095
|
+
return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21096
|
+
}, "name", { value: "RequestKeyframe" });
|
|
21097
|
+
Object.defineProperty(SesameAPIService.prototype.requestIODeviceList = function requestIODeviceList(request, callback) {
|
|
21098
|
+
return this.rpcCall(requestIODeviceList, $root.sesame.v1.common.Empty, $root.sesame.v1.status.IODeviceListResponse, request, callback);
|
|
21099
|
+
}, "name", { value: "RequestIODeviceList" });
|
|
21100
|
+
return SesameAPIService;
|
|
21101
|
+
}();
|
|
21102
|
+
return rpc;
|
|
21103
|
+
}();
|
|
21104
|
+
v1.wire = function() {
|
|
21105
|
+
const wire = {};
|
|
21106
|
+
wire.FrameType = function() {
|
|
21107
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
21108
|
+
values[valuesById[0] = "FRAME_TYPE_UNSPECIFIED"] = 0;
|
|
21109
|
+
values[valuesById[1] = "FRAME_TYPE_RPC"] = 1;
|
|
21110
|
+
values[valuesById[2] = "FRAME_TYPE_VIDEO"] = 2;
|
|
21111
|
+
values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
|
|
21112
|
+
values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
|
|
21113
|
+
values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
|
|
21114
|
+
values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
|
|
21115
|
+
return values;
|
|
21116
|
+
}();
|
|
21117
|
+
wire.MediaCodecData = function() {
|
|
21118
|
+
function MediaCodecData2(properties) {
|
|
21119
|
+
if (properties) {
|
|
21120
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21121
|
+
if (properties[keys[i]] != null)
|
|
21122
|
+
this[keys[i]] = properties[keys[i]];
|
|
21123
|
+
}
|
|
21124
|
+
}
|
|
21125
|
+
MediaCodecData2.prototype.codecType = 0;
|
|
21126
|
+
MediaCodecData2.prototype.sampleRate = 0;
|
|
21127
|
+
MediaCodecData2.prototype.timebaseNum = 0;
|
|
21128
|
+
MediaCodecData2.prototype.timebaseDen = 0;
|
|
21129
|
+
MediaCodecData2.prototype.codecProfile = 0;
|
|
21130
|
+
MediaCodecData2.prototype.codecLevel = 0;
|
|
21131
|
+
MediaCodecData2.prototype.width = 0;
|
|
21132
|
+
MediaCodecData2.prototype.height = 0;
|
|
21133
|
+
MediaCodecData2.prototype.channels = 0;
|
|
21134
|
+
MediaCodecData2.prototype.bitDepth = 0;
|
|
21135
|
+
MediaCodecData2.create = function create(properties) {
|
|
21136
|
+
return new MediaCodecData2(properties);
|
|
21137
|
+
};
|
|
21138
|
+
MediaCodecData2.encode = function encode(message, writer) {
|
|
21139
|
+
if (!writer)
|
|
21140
|
+
writer = $Writer.create();
|
|
21141
|
+
if (message.codecType != null && Object.hasOwnProperty.call(message, "codecType"))
|
|
21142
|
+
writer.uint32(
|
|
21143
|
+
/* id 1, wireType 0 =*/
|
|
21144
|
+
8
|
|
21145
|
+
).int32(message.codecType);
|
|
21146
|
+
if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate"))
|
|
21147
|
+
writer.uint32(
|
|
21148
|
+
/* id 2, wireType 0 =*/
|
|
21149
|
+
16
|
|
21150
|
+
).uint32(message.sampleRate);
|
|
21151
|
+
if (message.timebaseNum != null && Object.hasOwnProperty.call(message, "timebaseNum"))
|
|
21152
|
+
writer.uint32(
|
|
21153
|
+
/* id 3, wireType 0 =*/
|
|
21154
|
+
24
|
|
21155
|
+
).uint32(message.timebaseNum);
|
|
21156
|
+
if (message.timebaseDen != null && Object.hasOwnProperty.call(message, "timebaseDen"))
|
|
21157
|
+
writer.uint32(
|
|
21158
|
+
/* id 4, wireType 0 =*/
|
|
21159
|
+
32
|
|
21160
|
+
).uint32(message.timebaseDen);
|
|
21161
|
+
if (message.codecProfile != null && Object.hasOwnProperty.call(message, "codecProfile"))
|
|
21162
|
+
writer.uint32(
|
|
21163
|
+
/* id 5, wireType 0 =*/
|
|
21164
|
+
40
|
|
21165
|
+
).uint32(message.codecProfile);
|
|
21166
|
+
if (message.codecLevel != null && Object.hasOwnProperty.call(message, "codecLevel"))
|
|
21167
|
+
writer.uint32(
|
|
21168
|
+
/* id 6, wireType 0 =*/
|
|
21169
|
+
48
|
|
21170
|
+
).uint32(message.codecLevel);
|
|
21171
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
21172
|
+
writer.uint32(
|
|
21173
|
+
/* id 7, wireType 0 =*/
|
|
21174
|
+
56
|
|
21175
|
+
).uint32(message.width);
|
|
21176
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
21177
|
+
writer.uint32(
|
|
21178
|
+
/* id 8, wireType 0 =*/
|
|
21179
|
+
64
|
|
21180
|
+
).uint32(message.height);
|
|
21181
|
+
if (message.channels != null && Object.hasOwnProperty.call(message, "channels"))
|
|
21182
|
+
writer.uint32(
|
|
21183
|
+
/* id 9, wireType 0 =*/
|
|
21184
|
+
72
|
|
21185
|
+
).uint32(message.channels);
|
|
21186
|
+
if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
|
|
21187
|
+
writer.uint32(
|
|
21188
|
+
/* id 10, wireType 0 =*/
|
|
21189
|
+
80
|
|
21190
|
+
).uint32(message.bitDepth);
|
|
21191
|
+
return writer;
|
|
21192
|
+
};
|
|
21193
|
+
MediaCodecData2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21194
|
+
return this.encode(message, writer).ldelim();
|
|
21195
|
+
};
|
|
21196
|
+
MediaCodecData2.decode = function decode(reader, length, error) {
|
|
21197
|
+
if (!(reader instanceof $Reader))
|
|
21198
|
+
reader = $Reader.create(reader);
|
|
21199
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaCodecData();
|
|
21200
|
+
while (reader.pos < end) {
|
|
21201
|
+
let tag = reader.uint32();
|
|
21202
|
+
if (tag === error)
|
|
21203
|
+
break;
|
|
21204
|
+
switch (tag >>> 3) {
|
|
21205
|
+
case 1: {
|
|
21206
|
+
message.codecType = reader.int32();
|
|
21207
|
+
break;
|
|
21208
|
+
}
|
|
21209
|
+
case 2: {
|
|
21210
|
+
message.sampleRate = reader.uint32();
|
|
21211
|
+
break;
|
|
21212
|
+
}
|
|
21213
|
+
case 3: {
|
|
21214
|
+
message.timebaseNum = reader.uint32();
|
|
21215
|
+
break;
|
|
21216
|
+
}
|
|
21217
|
+
case 4: {
|
|
21218
|
+
message.timebaseDen = reader.uint32();
|
|
21219
|
+
break;
|
|
21220
|
+
}
|
|
21221
|
+
case 5: {
|
|
21222
|
+
message.codecProfile = reader.uint32();
|
|
21223
|
+
break;
|
|
21224
|
+
}
|
|
21225
|
+
case 6: {
|
|
21226
|
+
message.codecLevel = reader.uint32();
|
|
21227
|
+
break;
|
|
21228
|
+
}
|
|
21229
|
+
case 7: {
|
|
21230
|
+
message.width = reader.uint32();
|
|
21231
|
+
break;
|
|
21232
|
+
}
|
|
21233
|
+
case 8: {
|
|
21234
|
+
message.height = reader.uint32();
|
|
21235
|
+
break;
|
|
21236
|
+
}
|
|
21237
|
+
case 9: {
|
|
21238
|
+
message.channels = reader.uint32();
|
|
21239
|
+
break;
|
|
21240
|
+
}
|
|
21241
|
+
case 10: {
|
|
21242
|
+
message.bitDepth = reader.uint32();
|
|
21243
|
+
break;
|
|
21244
|
+
}
|
|
21245
|
+
default:
|
|
21246
|
+
reader.skipType(tag & 7);
|
|
21247
|
+
break;
|
|
21248
|
+
}
|
|
21249
|
+
}
|
|
21250
|
+
return message;
|
|
21251
|
+
};
|
|
21252
|
+
MediaCodecData2.decodeDelimited = function decodeDelimited(reader) {
|
|
21253
|
+
if (!(reader instanceof $Reader))
|
|
21254
|
+
reader = new $Reader(reader);
|
|
21255
|
+
return this.decode(reader, reader.uint32());
|
|
21256
|
+
};
|
|
21257
|
+
MediaCodecData2.verify = function verify(message) {
|
|
21258
|
+
if (typeof message !== "object" || message === null)
|
|
21259
|
+
return "object expected";
|
|
21260
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
21261
|
+
switch (message.codecType) {
|
|
21262
|
+
default:
|
|
21263
|
+
return "codecType: enum value expected";
|
|
21264
|
+
case 0:
|
|
21265
|
+
case 1:
|
|
21266
|
+
case 2:
|
|
21267
|
+
case 3:
|
|
21268
|
+
case 4:
|
|
21269
|
+
case 5:
|
|
21270
|
+
case 6:
|
|
21271
|
+
case 7:
|
|
21272
|
+
case 64:
|
|
21273
|
+
case 65:
|
|
21274
|
+
case 66:
|
|
21275
|
+
case 67:
|
|
21276
|
+
break;
|
|
21277
|
+
}
|
|
21278
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) {
|
|
21279
|
+
if (!$util.isInteger(message.sampleRate))
|
|
21280
|
+
return "sampleRate: integer expected";
|
|
21281
|
+
}
|
|
21282
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum")) {
|
|
21283
|
+
if (!$util.isInteger(message.timebaseNum))
|
|
21284
|
+
return "timebaseNum: integer expected";
|
|
21285
|
+
}
|
|
21286
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen")) {
|
|
21287
|
+
if (!$util.isInteger(message.timebaseDen))
|
|
21288
|
+
return "timebaseDen: integer expected";
|
|
21289
|
+
}
|
|
21290
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile")) {
|
|
21291
|
+
if (!$util.isInteger(message.codecProfile))
|
|
21292
|
+
return "codecProfile: integer expected";
|
|
21293
|
+
}
|
|
21294
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel")) {
|
|
21295
|
+
if (!$util.isInteger(message.codecLevel))
|
|
21296
|
+
return "codecLevel: integer expected";
|
|
21297
|
+
}
|
|
21298
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
21299
|
+
if (!$util.isInteger(message.width))
|
|
21300
|
+
return "width: integer expected";
|
|
21301
|
+
}
|
|
21302
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
21303
|
+
if (!$util.isInteger(message.height))
|
|
21304
|
+
return "height: integer expected";
|
|
21305
|
+
}
|
|
21306
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
21307
|
+
if (!$util.isInteger(message.channels))
|
|
21308
|
+
return "channels: integer expected";
|
|
21309
|
+
}
|
|
21310
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
|
|
21311
|
+
if (!$util.isInteger(message.bitDepth))
|
|
21312
|
+
return "bitDepth: integer expected";
|
|
21313
|
+
}
|
|
21314
|
+
return null;
|
|
21315
|
+
};
|
|
21316
|
+
MediaCodecData2.fromObject = function fromObject(object) {
|
|
21317
|
+
if (object instanceof $root.sesame.v1.wire.MediaCodecData)
|
|
21318
|
+
return object;
|
|
21319
|
+
let message = new $root.sesame.v1.wire.MediaCodecData();
|
|
21320
|
+
switch (object.codecType) {
|
|
21321
|
+
default:
|
|
21322
|
+
if (typeof object.codecType === "number") {
|
|
21323
|
+
message.codecType = object.codecType;
|
|
21324
|
+
break;
|
|
21325
|
+
}
|
|
21326
|
+
break;
|
|
21327
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
21328
|
+
case 0:
|
|
21329
|
+
message.codecType = 0;
|
|
21330
|
+
break;
|
|
21331
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
21332
|
+
case 1:
|
|
21333
|
+
message.codecType = 1;
|
|
21334
|
+
break;
|
|
21335
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
21336
|
+
case 2:
|
|
21337
|
+
message.codecType = 2;
|
|
21338
|
+
break;
|
|
21339
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
21340
|
+
case 3:
|
|
21341
|
+
message.codecType = 3;
|
|
21342
|
+
break;
|
|
21343
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
21344
|
+
case 4:
|
|
21345
|
+
message.codecType = 4;
|
|
21346
|
+
break;
|
|
21347
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
21348
|
+
case 5:
|
|
21349
|
+
message.codecType = 5;
|
|
21350
|
+
break;
|
|
21351
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
21352
|
+
case 6:
|
|
21353
|
+
message.codecType = 6;
|
|
21354
|
+
break;
|
|
21355
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
21356
|
+
case 7:
|
|
21357
|
+
message.codecType = 7;
|
|
21358
|
+
break;
|
|
21359
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
21360
|
+
case 64:
|
|
21361
|
+
message.codecType = 64;
|
|
21362
|
+
break;
|
|
21363
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
21364
|
+
case 65:
|
|
21365
|
+
message.codecType = 65;
|
|
21366
|
+
break;
|
|
21367
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
21368
|
+
case 66:
|
|
21369
|
+
message.codecType = 66;
|
|
21370
|
+
break;
|
|
21371
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
21372
|
+
case 67:
|
|
21373
|
+
message.codecType = 67;
|
|
21374
|
+
break;
|
|
21375
|
+
}
|
|
21376
|
+
if (object.sampleRate != null)
|
|
21377
|
+
message.sampleRate = object.sampleRate >>> 0;
|
|
21378
|
+
if (object.timebaseNum != null)
|
|
21379
|
+
message.timebaseNum = object.timebaseNum >>> 0;
|
|
21380
|
+
if (object.timebaseDen != null)
|
|
21381
|
+
message.timebaseDen = object.timebaseDen >>> 0;
|
|
21382
|
+
if (object.codecProfile != null)
|
|
21383
|
+
message.codecProfile = object.codecProfile >>> 0;
|
|
21384
|
+
if (object.codecLevel != null)
|
|
21385
|
+
message.codecLevel = object.codecLevel >>> 0;
|
|
21386
|
+
if (object.width != null)
|
|
21387
|
+
message.width = object.width >>> 0;
|
|
21388
|
+
if (object.height != null)
|
|
21389
|
+
message.height = object.height >>> 0;
|
|
21390
|
+
if (object.channels != null)
|
|
21391
|
+
message.channels = object.channels >>> 0;
|
|
21392
|
+
if (object.bitDepth != null)
|
|
21393
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
21394
|
+
return message;
|
|
21395
|
+
};
|
|
21396
|
+
MediaCodecData2.toObject = function toObject(message, options) {
|
|
21397
|
+
if (!options)
|
|
21398
|
+
options = {};
|
|
21399
|
+
let object = {};
|
|
21400
|
+
if (options.defaults) {
|
|
21401
|
+
object.codecType = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
21402
|
+
object.sampleRate = 0;
|
|
21403
|
+
object.timebaseNum = 0;
|
|
21404
|
+
object.timebaseDen = 0;
|
|
21405
|
+
object.codecProfile = 0;
|
|
21406
|
+
object.codecLevel = 0;
|
|
21407
|
+
object.width = 0;
|
|
21408
|
+
object.height = 0;
|
|
21409
|
+
object.channels = 0;
|
|
21410
|
+
object.bitDepth = 0;
|
|
21411
|
+
}
|
|
21412
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
21413
|
+
object.codecType = options.enums === String ? $root.sesame.v1.common.CodecType[message.codecType] === void 0 ? message.codecType : $root.sesame.v1.common.CodecType[message.codecType] : message.codecType;
|
|
21414
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
|
|
21415
|
+
object.sampleRate = message.sampleRate;
|
|
21416
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
|
|
21417
|
+
object.timebaseNum = message.timebaseNum;
|
|
21418
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
|
|
21419
|
+
object.timebaseDen = message.timebaseDen;
|
|
21420
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
|
|
21421
|
+
object.codecProfile = message.codecProfile;
|
|
21422
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
21423
|
+
object.codecLevel = message.codecLevel;
|
|
21424
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
21425
|
+
object.width = message.width;
|
|
21426
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
21427
|
+
object.height = message.height;
|
|
21428
|
+
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
21429
|
+
object.channels = message.channels;
|
|
21430
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
21431
|
+
object.bitDepth = message.bitDepth;
|
|
21432
|
+
return object;
|
|
21433
|
+
};
|
|
21434
|
+
MediaCodecData2.prototype.toJSON = function toJSON() {
|
|
21435
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
21436
|
+
};
|
|
21437
|
+
MediaCodecData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21438
|
+
if (typeUrlPrefix === void 0) {
|
|
21439
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21440
|
+
}
|
|
21441
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaCodecData";
|
|
21442
|
+
};
|
|
21443
|
+
return MediaCodecData2;
|
|
21444
|
+
}();
|
|
21445
|
+
wire.MediaFrameData = function() {
|
|
21446
|
+
function MediaFrameData(properties) {
|
|
21447
|
+
if (properties) {
|
|
21448
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21449
|
+
if (properties[keys[i]] != null)
|
|
21450
|
+
this[keys[i]] = properties[keys[i]];
|
|
21451
|
+
}
|
|
21452
|
+
}
|
|
21453
|
+
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21454
|
+
MediaFrameData.prototype.keyframe = false;
|
|
21455
|
+
MediaFrameData.prototype.codecData = null;
|
|
21456
|
+
MediaFrameData.create = function create(properties) {
|
|
21457
|
+
return new MediaFrameData(properties);
|
|
21458
|
+
};
|
|
21459
|
+
MediaFrameData.encode = function encode(message, writer) {
|
|
21460
|
+
if (!writer)
|
|
21461
|
+
writer = $Writer.create();
|
|
21462
|
+
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
21463
|
+
writer.uint32(
|
|
21464
|
+
/* id 1, wireType 0 =*/
|
|
21465
|
+
8
|
|
21466
|
+
).uint64(message.pts);
|
|
21467
|
+
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
21468
|
+
writer.uint32(
|
|
21469
|
+
/* id 2, wireType 0 =*/
|
|
21470
|
+
16
|
|
21471
|
+
).bool(message.keyframe);
|
|
21472
|
+
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
21473
|
+
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
|
|
21474
|
+
/* id 3, wireType 2 =*/
|
|
21475
|
+
26
|
|
21476
|
+
).fork()).ldelim();
|
|
21477
|
+
return writer;
|
|
21478
|
+
};
|
|
21479
|
+
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21480
|
+
return this.encode(message, writer).ldelim();
|
|
21481
|
+
};
|
|
21482
|
+
MediaFrameData.decode = function decode(reader, length, error) {
|
|
21483
|
+
if (!(reader instanceof $Reader))
|
|
21484
|
+
reader = $Reader.create(reader);
|
|
21485
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21486
|
+
while (reader.pos < end) {
|
|
21487
|
+
let tag = reader.uint32();
|
|
21488
|
+
if (tag === error)
|
|
21489
|
+
break;
|
|
21490
|
+
switch (tag >>> 3) {
|
|
21491
|
+
case 1: {
|
|
21492
|
+
message.pts = reader.uint64();
|
|
21493
|
+
break;
|
|
21494
|
+
}
|
|
21495
|
+
case 2: {
|
|
21496
|
+
message.keyframe = reader.bool();
|
|
21497
|
+
break;
|
|
21498
|
+
}
|
|
21499
|
+
case 3: {
|
|
21500
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
21501
|
+
break;
|
|
21502
|
+
}
|
|
21503
|
+
default:
|
|
21504
|
+
reader.skipType(tag & 7);
|
|
21505
|
+
break;
|
|
21506
|
+
}
|
|
21507
|
+
}
|
|
21508
|
+
return message;
|
|
21509
|
+
};
|
|
21510
|
+
MediaFrameData.decodeDelimited = function decodeDelimited(reader) {
|
|
21511
|
+
if (!(reader instanceof $Reader))
|
|
21512
|
+
reader = new $Reader(reader);
|
|
21513
|
+
return this.decode(reader, reader.uint32());
|
|
21514
|
+
};
|
|
21515
|
+
MediaFrameData.verify = function verify(message) {
|
|
21516
|
+
if (typeof message !== "object" || message === null)
|
|
21517
|
+
return "object expected";
|
|
21518
|
+
if (message.pts != null && message.hasOwnProperty("pts")) {
|
|
21519
|
+
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
21520
|
+
return "pts: integer|Long expected";
|
|
21521
|
+
}
|
|
21522
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
|
|
21523
|
+
if (typeof message.keyframe !== "boolean")
|
|
21524
|
+
return "keyframe: boolean expected";
|
|
21525
|
+
}
|
|
21526
|
+
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
21527
|
+
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
21528
|
+
if (error)
|
|
21529
|
+
return "codecData." + error;
|
|
21530
|
+
}
|
|
21531
|
+
return null;
|
|
21532
|
+
};
|
|
21533
|
+
MediaFrameData.fromObject = function fromObject(object) {
|
|
21534
|
+
if (object instanceof $root.sesame.v1.wire.MediaFrameData)
|
|
21535
|
+
return object;
|
|
21536
|
+
let message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21537
|
+
if (object.pts != null) {
|
|
21538
|
+
if ($util.Long)
|
|
21539
|
+
(message.pts = $util.Long.fromValue(object.pts)).unsigned = true;
|
|
21540
|
+
else if (typeof object.pts === "string")
|
|
21541
|
+
message.pts = parseInt(object.pts, 10);
|
|
21542
|
+
else if (typeof object.pts === "number")
|
|
21543
|
+
message.pts = object.pts;
|
|
21544
|
+
else if (typeof object.pts === "object")
|
|
21545
|
+
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
21546
|
+
}
|
|
21547
|
+
if (object.keyframe != null)
|
|
21548
|
+
message.keyframe = Boolean(object.keyframe);
|
|
21549
|
+
if (object.codecData != null) {
|
|
21550
|
+
if (typeof object.codecData !== "object")
|
|
21551
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
21552
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
21553
|
+
}
|
|
20852
21554
|
return message;
|
|
20853
21555
|
};
|
|
20854
|
-
|
|
21556
|
+
MediaFrameData.toObject = function toObject(message, options) {
|
|
20855
21557
|
if (!options)
|
|
20856
21558
|
options = {};
|
|
20857
21559
|
let object = {};
|
|
20858
21560
|
if (options.defaults) {
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
object.payload = $util.newBuffer(object.payload);
|
|
20867
|
-
}
|
|
20868
|
-
object.error = "";
|
|
21561
|
+
if ($util.Long) {
|
|
21562
|
+
let long = new $util.Long(0, 0, true);
|
|
21563
|
+
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21564
|
+
} else
|
|
21565
|
+
object.pts = options.longs === String ? "0" : 0;
|
|
21566
|
+
object.keyframe = false;
|
|
21567
|
+
object.codecData = null;
|
|
20869
21568
|
}
|
|
20870
|
-
if (message.
|
|
20871
|
-
|
|
20872
|
-
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
21569
|
+
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
21570
|
+
if (typeof message.pts === "number")
|
|
21571
|
+
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
21572
|
+
else
|
|
21573
|
+
object.pts = options.longs === String ? $util.Long.prototype.toString.call(message.pts) : options.longs === Number ? new $util.LongBits(message.pts.low >>> 0, message.pts.high >>> 0).toNumber(true) : message.pts;
|
|
21574
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
21575
|
+
object.keyframe = message.keyframe;
|
|
21576
|
+
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
21577
|
+
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
20878
21578
|
return object;
|
|
20879
21579
|
};
|
|
20880
|
-
|
|
21580
|
+
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
20881
21581
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20882
21582
|
};
|
|
20883
|
-
|
|
21583
|
+
MediaFrameData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20884
21584
|
if (typeUrlPrefix === void 0) {
|
|
20885
21585
|
typeUrlPrefix = "type.googleapis.com";
|
|
20886
21586
|
}
|
|
20887
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
21587
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaFrameData";
|
|
20888
21588
|
};
|
|
20889
|
-
return
|
|
21589
|
+
return MediaFrameData;
|
|
20890
21590
|
}();
|
|
20891
|
-
|
|
20892
|
-
function
|
|
21591
|
+
wire.FrameHeader = function() {
|
|
21592
|
+
function FrameHeader2(properties) {
|
|
20893
21593
|
if (properties) {
|
|
20894
21594
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20895
21595
|
if (properties[keys[i]] != null)
|
|
20896
21596
|
this[keys[i]] = properties[keys[i]];
|
|
20897
21597
|
}
|
|
20898
21598
|
}
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
21599
|
+
FrameHeader2.prototype.type = 0;
|
|
21600
|
+
FrameHeader2.prototype.routingMetadata = "";
|
|
21601
|
+
FrameHeader2.prototype.media = null;
|
|
21602
|
+
let $oneOfFields;
|
|
21603
|
+
Object.defineProperty(FrameHeader2.prototype, "typeData", {
|
|
21604
|
+
get: $util.oneOfGetter($oneOfFields = ["media"]),
|
|
21605
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21606
|
+
});
|
|
21607
|
+
FrameHeader2.create = function create(properties) {
|
|
21608
|
+
return new FrameHeader2(properties);
|
|
20903
21609
|
};
|
|
20904
|
-
|
|
21610
|
+
FrameHeader2.encode = function encode(message, writer) {
|
|
20905
21611
|
if (!writer)
|
|
20906
21612
|
writer = $Writer.create();
|
|
20907
|
-
if (message.
|
|
21613
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
20908
21614
|
writer.uint32(
|
|
20909
21615
|
/* id 1, wireType 0 =*/
|
|
20910
21616
|
8
|
|
20911
|
-
).int32(message.
|
|
20912
|
-
if (message.
|
|
21617
|
+
).int32(message.type);
|
|
21618
|
+
if (message.routingMetadata != null && Object.hasOwnProperty.call(message, "routingMetadata"))
|
|
20913
21619
|
writer.uint32(
|
|
20914
|
-
/* id
|
|
20915
|
-
|
|
20916
|
-
).
|
|
21620
|
+
/* id 6, wireType 2 =*/
|
|
21621
|
+
50
|
|
21622
|
+
).string(message.routingMetadata);
|
|
21623
|
+
if (message.media != null && Object.hasOwnProperty.call(message, "media"))
|
|
21624
|
+
$root.sesame.v1.wire.MediaFrameData.encode(message.media, writer.uint32(
|
|
21625
|
+
/* id 7, wireType 2 =*/
|
|
21626
|
+
58
|
|
21627
|
+
).fork()).ldelim();
|
|
20917
21628
|
return writer;
|
|
20918
21629
|
};
|
|
20919
|
-
|
|
21630
|
+
FrameHeader2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20920
21631
|
return this.encode(message, writer).ldelim();
|
|
20921
21632
|
};
|
|
20922
|
-
|
|
21633
|
+
FrameHeader2.decode = function decode(reader, length, error) {
|
|
20923
21634
|
if (!(reader instanceof $Reader))
|
|
20924
21635
|
reader = $Reader.create(reader);
|
|
20925
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
21636
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.FrameHeader();
|
|
20926
21637
|
while (reader.pos < end) {
|
|
20927
21638
|
let tag = reader.uint32();
|
|
20928
21639
|
if (tag === error)
|
|
20929
21640
|
break;
|
|
20930
21641
|
switch (tag >>> 3) {
|
|
20931
21642
|
case 1: {
|
|
20932
|
-
message.
|
|
21643
|
+
message.type = reader.int32();
|
|
20933
21644
|
break;
|
|
20934
21645
|
}
|
|
20935
|
-
case
|
|
20936
|
-
message.
|
|
21646
|
+
case 6: {
|
|
21647
|
+
message.routingMetadata = reader.string();
|
|
21648
|
+
break;
|
|
21649
|
+
}
|
|
21650
|
+
case 7: {
|
|
21651
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.decode(reader, reader.uint32());
|
|
20937
21652
|
break;
|
|
20938
21653
|
}
|
|
20939
21654
|
default:
|
|
@@ -20943,18 +21658,19 @@ var sesame = $root.sesame = (() => {
|
|
|
20943
21658
|
}
|
|
20944
21659
|
return message;
|
|
20945
21660
|
};
|
|
20946
|
-
|
|
21661
|
+
FrameHeader2.decodeDelimited = function decodeDelimited(reader) {
|
|
20947
21662
|
if (!(reader instanceof $Reader))
|
|
20948
21663
|
reader = new $Reader(reader);
|
|
20949
21664
|
return this.decode(reader, reader.uint32());
|
|
20950
21665
|
};
|
|
20951
|
-
|
|
21666
|
+
FrameHeader2.verify = function verify(message) {
|
|
20952
21667
|
if (typeof message !== "object" || message === null)
|
|
20953
21668
|
return "object expected";
|
|
20954
|
-
|
|
20955
|
-
|
|
21669
|
+
let properties = {};
|
|
21670
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
21671
|
+
switch (message.type) {
|
|
20956
21672
|
default:
|
|
20957
|
-
return "
|
|
21673
|
+
return "type: enum value expected";
|
|
20958
21674
|
case 0:
|
|
20959
21675
|
case 1:
|
|
20960
21676
|
case 2:
|
|
@@ -20964,150 +21680,100 @@ var sesame = $root.sesame = (() => {
|
|
|
20964
21680
|
case 6:
|
|
20965
21681
|
break;
|
|
20966
21682
|
}
|
|
20967
|
-
if (message.
|
|
20968
|
-
if (
|
|
20969
|
-
return "
|
|
21683
|
+
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata")) {
|
|
21684
|
+
if (!$util.isString(message.routingMetadata))
|
|
21685
|
+
return "routingMetadata: string expected";
|
|
21686
|
+
}
|
|
21687
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21688
|
+
properties.typeData = 1;
|
|
21689
|
+
{
|
|
21690
|
+
let error = $root.sesame.v1.wire.MediaFrameData.verify(message.media);
|
|
21691
|
+
if (error)
|
|
21692
|
+
return "media." + error;
|
|
21693
|
+
}
|
|
20970
21694
|
}
|
|
20971
21695
|
return null;
|
|
20972
21696
|
};
|
|
20973
|
-
|
|
20974
|
-
if (object instanceof $root.sesame.v1.
|
|
21697
|
+
FrameHeader2.fromObject = function fromObject(object) {
|
|
21698
|
+
if (object instanceof $root.sesame.v1.wire.FrameHeader)
|
|
20975
21699
|
return object;
|
|
20976
|
-
let message = new $root.sesame.v1.
|
|
20977
|
-
switch (object.
|
|
21700
|
+
let message = new $root.sesame.v1.wire.FrameHeader();
|
|
21701
|
+
switch (object.type) {
|
|
20978
21702
|
default:
|
|
20979
|
-
if (typeof object.
|
|
20980
|
-
message.
|
|
21703
|
+
if (typeof object.type === "number") {
|
|
21704
|
+
message.type = object.type;
|
|
20981
21705
|
break;
|
|
20982
21706
|
}
|
|
20983
21707
|
break;
|
|
20984
|
-
case "
|
|
21708
|
+
case "FRAME_TYPE_UNSPECIFIED":
|
|
20985
21709
|
case 0:
|
|
20986
|
-
message.
|
|
21710
|
+
message.type = 0;
|
|
20987
21711
|
break;
|
|
20988
|
-
case "
|
|
21712
|
+
case "FRAME_TYPE_RPC":
|
|
20989
21713
|
case 1:
|
|
20990
|
-
message.
|
|
21714
|
+
message.type = 1;
|
|
20991
21715
|
break;
|
|
20992
|
-
case "
|
|
21716
|
+
case "FRAME_TYPE_VIDEO":
|
|
20993
21717
|
case 2:
|
|
20994
|
-
message.
|
|
21718
|
+
message.type = 2;
|
|
20995
21719
|
break;
|
|
20996
|
-
case "
|
|
21720
|
+
case "FRAME_TYPE_AUDIO":
|
|
20997
21721
|
case 3:
|
|
20998
|
-
message.
|
|
21722
|
+
message.type = 3;
|
|
20999
21723
|
break;
|
|
21000
|
-
case "
|
|
21724
|
+
case "FRAME_TYPE_MUXED":
|
|
21001
21725
|
case 4:
|
|
21002
|
-
message.
|
|
21726
|
+
message.type = 4;
|
|
21003
21727
|
break;
|
|
21004
|
-
case "
|
|
21728
|
+
case "FRAME_TYPE_DECODER_DATA":
|
|
21005
21729
|
case 5:
|
|
21006
|
-
message.
|
|
21730
|
+
message.type = 5;
|
|
21007
21731
|
break;
|
|
21008
|
-
case "
|
|
21732
|
+
case "FRAME_TYPE_DATA":
|
|
21009
21733
|
case 6:
|
|
21010
|
-
message.
|
|
21734
|
+
message.type = 6;
|
|
21011
21735
|
break;
|
|
21012
21736
|
}
|
|
21013
|
-
if (object.
|
|
21014
|
-
|
|
21015
|
-
|
|
21016
|
-
|
|
21017
|
-
|
|
21737
|
+
if (object.routingMetadata != null)
|
|
21738
|
+
message.routingMetadata = String(object.routingMetadata);
|
|
21739
|
+
if (object.media != null) {
|
|
21740
|
+
if (typeof object.media !== "object")
|
|
21741
|
+
throw TypeError(".sesame.v1.wire.FrameHeader.media: object expected");
|
|
21742
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.fromObject(object.media);
|
|
21018
21743
|
}
|
|
21019
21744
|
return message;
|
|
21020
21745
|
};
|
|
21021
|
-
|
|
21746
|
+
FrameHeader2.toObject = function toObject(message, options) {
|
|
21022
21747
|
if (!options)
|
|
21023
21748
|
options = {};
|
|
21024
21749
|
let object = {};
|
|
21025
21750
|
if (options.defaults) {
|
|
21026
|
-
object.
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21751
|
+
object.type = options.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0;
|
|
21752
|
+
object.routingMetadata = "";
|
|
21753
|
+
}
|
|
21754
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
21755
|
+
object.type = options.enums === String ? $root.sesame.v1.wire.FrameType[message.type] === void 0 ? message.type : $root.sesame.v1.wire.FrameType[message.type] : message.type;
|
|
21756
|
+
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
|
|
21757
|
+
object.routingMetadata = message.routingMetadata;
|
|
21758
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21759
|
+
object.media = $root.sesame.v1.wire.MediaFrameData.toObject(message.media, options);
|
|
21760
|
+
if (options.oneofs)
|
|
21761
|
+
object.typeData = "media";
|
|
21034
21762
|
}
|
|
21035
|
-
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
21036
|
-
object.topic = options.enums === String ? $root.sesame.v1.common.EventTopic[message.topic] === void 0 ? message.topic : $root.sesame.v1.common.EventTopic[message.topic] : message.topic;
|
|
21037
|
-
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
21038
|
-
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
21039
21763
|
return object;
|
|
21040
21764
|
};
|
|
21041
|
-
|
|
21765
|
+
FrameHeader2.prototype.toJSON = function toJSON() {
|
|
21042
21766
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
21043
21767
|
};
|
|
21044
|
-
|
|
21768
|
+
FrameHeader2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21045
21769
|
if (typeUrlPrefix === void 0) {
|
|
21046
21770
|
typeUrlPrefix = "type.googleapis.com";
|
|
21047
21771
|
}
|
|
21048
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
21049
|
-
};
|
|
21050
|
-
return Event2;
|
|
21051
|
-
}();
|
|
21052
|
-
rpc.SesameAPIService = function() {
|
|
21053
|
-
function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
|
|
21054
|
-
import_minimal.default.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
21055
|
-
}
|
|
21056
|
-
(SesameAPIService.prototype = Object.create(import_minimal.default.rpc.Service.prototype)).constructor = SesameAPIService;
|
|
21057
|
-
SesameAPIService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
21058
|
-
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
21772
|
+
return typeUrlPrefix + "/sesame.v1.wire.FrameHeader";
|
|
21059
21773
|
};
|
|
21060
|
-
|
|
21061
|
-
return this.rpcCall(executeCommandList, $root.sesame.v1.commands.CommandList, $root.sesame.v1.commands.CommandExecutionResponse, request, callback);
|
|
21062
|
-
}, "name", { value: "ExecuteCommandList" });
|
|
21063
|
-
Object.defineProperty(SesameAPIService.prototype.updateSubscriptions = function updateSubscriptions(request, callback) {
|
|
21064
|
-
return this.rpcCall(updateSubscriptions, $root.sesame.v1.status.SubscriptionRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21065
|
-
}, "name", { value: "UpdateSubscriptions" });
|
|
21066
|
-
Object.defineProperty(SesameAPIService.prototype.notImplemented = function notImplemented(request, callback) {
|
|
21067
|
-
return this.rpcCall(notImplemented, $root.sesame.v1.common.Empty, $root.sesame.v1.common.Empty, request, callback);
|
|
21068
|
-
}, "name", { value: "NotImplemented" });
|
|
21069
|
-
Object.defineProperty(SesameAPIService.prototype.requestEvents = function requestEvents(request, callback) {
|
|
21070
|
-
return this.rpcCall(requestEvents, $root.sesame.v1.common.Empty, $root.sesame.v1.status.Event, request, callback);
|
|
21071
|
-
}, "name", { value: "RequestEvents" });
|
|
21072
|
-
Object.defineProperty(SesameAPIService.prototype.requestStatus = function requestStatus(request, callback) {
|
|
21073
|
-
return this.rpcCall(requestStatus, $root.sesame.v1.common.Empty, $root.sesame.v1.status.Status, request, callback);
|
|
21074
|
-
}, "name", { value: "RequestStatus" });
|
|
21075
|
-
Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
|
|
21076
|
-
return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
|
|
21077
|
-
}, "name", { value: "RequestRecorderOperation" });
|
|
21078
|
-
Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStart = function requestPlaylistExportStart(request, callback) {
|
|
21079
|
-
return this.rpcCall(requestPlaylistExportStart, $root.sesame.v1.jobs.ExportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21080
|
-
}, "name", { value: "RequestPlaylistExportStart" });
|
|
21081
|
-
Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportAbort = function requestPlaylistExportAbort(request, callback) {
|
|
21082
|
-
return this.rpcCall(requestPlaylistExportAbort, $root.sesame.v1.jobs.ExportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21083
|
-
}, "name", { value: "RequestPlaylistExportAbort" });
|
|
21084
|
-
Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStatus = function requestPlaylistExportStatus(request, callback) {
|
|
21085
|
-
return this.rpcCall(requestPlaylistExportStatus, $root.sesame.v1.jobs.ExportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21086
|
-
}, "name", { value: "RequestPlaylistExportStatus" });
|
|
21087
|
-
Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportList = function requestPlaylistExportList(request, callback) {
|
|
21088
|
-
return this.rpcCall(requestPlaylistExportList, $root.sesame.v1.jobs.ExportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
|
|
21089
|
-
}, "name", { value: "RequestPlaylistExportList" });
|
|
21090
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStart = function requestClipImportStart(request, callback) {
|
|
21091
|
-
return this.rpcCall(requestClipImportStart, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21092
|
-
}, "name", { value: "RequestClipImportStart" });
|
|
21093
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportAbort = function requestClipImportAbort(request, callback) {
|
|
21094
|
-
return this.rpcCall(requestClipImportAbort, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21095
|
-
}, "name", { value: "RequestClipImportAbort" });
|
|
21096
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStatus = function requestClipImportStatus(request, callback) {
|
|
21097
|
-
return this.rpcCall(requestClipImportStatus, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21098
|
-
}, "name", { value: "RequestClipImportStatus" });
|
|
21099
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportList = function requestClipImportList(request, callback) {
|
|
21100
|
-
return this.rpcCall(requestClipImportList, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
|
|
21101
|
-
}, "name", { value: "RequestClipImportList" });
|
|
21102
|
-
Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
|
|
21103
|
-
return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21104
|
-
}, "name", { value: "RequestKeyframe" });
|
|
21105
|
-
Object.defineProperty(SesameAPIService.prototype.requestIODeviceList = function requestIODeviceList(request, callback) {
|
|
21106
|
-
return this.rpcCall(requestIODeviceList, $root.sesame.v1.common.Empty, $root.sesame.v1.status.IODeviceListResponse, request, callback);
|
|
21107
|
-
}, "name", { value: "RequestIODeviceList" });
|
|
21108
|
-
return SesameAPIService;
|
|
21774
|
+
return FrameHeader2;
|
|
21109
21775
|
}();
|
|
21110
|
-
return
|
|
21776
|
+
return wire;
|
|
21111
21777
|
}();
|
|
21112
21778
|
return v1;
|
|
21113
21779
|
}();
|
|
@@ -21506,8 +22172,8 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
21506
22172
|
} else {
|
|
21507
22173
|
throw new Error("Unsupported RPC message payload");
|
|
21508
22174
|
}
|
|
21509
|
-
} catch (
|
|
21510
|
-
const error = new Error(
|
|
22175
|
+
} catch (err) {
|
|
22176
|
+
const error = new Error(`Got invalid message: ${err instanceof Error ? err.message : String(err)}`);
|
|
21511
22177
|
this.errorHandler(error);
|
|
21512
22178
|
}
|
|
21513
22179
|
};
|
|
@@ -21516,10 +22182,33 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
21516
22182
|
this.connection.on("rpc", (data) => this.messageHandler(data));
|
|
21517
22183
|
this.connection.on("error", this.errorHandler);
|
|
21518
22184
|
this.options = options;
|
|
21519
|
-
this.service = service.create(this.rpcImpl);
|
|
22185
|
+
this.service = this.wrapServicePromises(service.create(this.rpcImpl));
|
|
21520
22186
|
this.eventTypes = options.eventTypes || {};
|
|
21521
22187
|
this.sendTimeout = options.sendTimeout || 5 * 1e3;
|
|
21522
22188
|
}
|
|
22189
|
+
/**
|
|
22190
|
+
* Wraps service method calls to attach a rejection handler on all returned
|
|
22191
|
+
* promises. This prevents unhandled promise rejections (e.g. from timeouts
|
|
22192
|
+
* while disconnected) from crashing the host process. Callers can still
|
|
22193
|
+
* catch errors normally via await / .catch().
|
|
22194
|
+
*/
|
|
22195
|
+
wrapServicePromises(service) {
|
|
22196
|
+
const self = this;
|
|
22197
|
+
return new Proxy(service, {
|
|
22198
|
+
get(target, prop) {
|
|
22199
|
+
const value = target[prop];
|
|
22200
|
+
if (typeof value !== "function") return value;
|
|
22201
|
+
return function(...args) {
|
|
22202
|
+
const result = value.apply(target, args);
|
|
22203
|
+
if (result != null && typeof result.catch === "function") {
|
|
22204
|
+
result.catch(() => {
|
|
22205
|
+
});
|
|
22206
|
+
}
|
|
22207
|
+
return result;
|
|
22208
|
+
};
|
|
22209
|
+
}
|
|
22210
|
+
});
|
|
22211
|
+
}
|
|
21523
22212
|
async flushMessageBuffer() {
|
|
21524
22213
|
const messages = [];
|
|
21525
22214
|
for (const seq in this.messageBuffer) {
|
|
@@ -21548,7 +22237,8 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
21548
22237
|
eventHandler(event) {
|
|
21549
22238
|
const topic = event.topic ?? 0;
|
|
21550
22239
|
if (topic === sesame.v1.common.EventTopic.EVENT_TOPIC_UNSPECIFIED) {
|
|
21551
|
-
|
|
22240
|
+
log.warn(`Ignoring event with unspecified topic: ${event.topic}`);
|
|
22241
|
+
return;
|
|
21552
22242
|
}
|
|
21553
22243
|
const type = this.eventTypes[topic];
|
|
21554
22244
|
let payload;
|
|
@@ -21558,8 +22248,8 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
21558
22248
|
try {
|
|
21559
22249
|
payload = type.decode(event.payload);
|
|
21560
22250
|
object = type.toObject(payload, { longs: Number });
|
|
21561
|
-
} catch (
|
|
21562
|
-
const error = new Error(
|
|
22251
|
+
} catch (err) {
|
|
22252
|
+
const error = new Error(`Could not decode event payload: ${err instanceof Error ? err.message : String(err)}`);
|
|
21563
22253
|
this.errorHandler(error);
|
|
21564
22254
|
return;
|
|
21565
22255
|
}
|
|
@@ -21574,255 +22264,58 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
21574
22264
|
// src/sesame-connection.ts
|
|
21575
22265
|
var import_events2 = require("events");
|
|
21576
22266
|
|
|
21577
|
-
// src/sesame-
|
|
21578
|
-
var
|
|
21579
|
-
var
|
|
21580
|
-
var
|
|
21581
|
-
var
|
|
21582
|
-
var
|
|
21583
|
-
var
|
|
21584
|
-
var FLAG_HAS_METADATA = 1 << 1;
|
|
21585
|
-
var FLAG_IS_KEYFRAME = 1 << 2;
|
|
21586
|
-
var PacketType = /* @__PURE__ */ ((PacketType2) => {
|
|
21587
|
-
PacketType2[PacketType2["VIDEO_FRAME"] = 1] = "VIDEO_FRAME";
|
|
21588
|
-
PacketType2[PacketType2["AUDIO_FRAME"] = 2] = "AUDIO_FRAME";
|
|
21589
|
-
PacketType2[PacketType2["RPC"] = 3] = "RPC";
|
|
21590
|
-
PacketType2[PacketType2["MUXED_DATA"] = 4] = "MUXED_DATA";
|
|
21591
|
-
PacketType2[PacketType2["DECODER_DATA"] = 5] = "DECODER_DATA";
|
|
21592
|
-
return PacketType2;
|
|
21593
|
-
})(PacketType || {});
|
|
21594
|
-
var CodecType = /* @__PURE__ */ ((CodecType2) => {
|
|
21595
|
-
CodecType2[CodecType2["VIDEO_VP8"] = 1] = "VIDEO_VP8";
|
|
21596
|
-
CodecType2[CodecType2["VIDEO_VP9"] = 2] = "VIDEO_VP9";
|
|
21597
|
-
CodecType2[CodecType2["VIDEO_AVC"] = 3] = "VIDEO_AVC";
|
|
21598
|
-
CodecType2[CodecType2["VIDEO_HEVC"] = 4] = "VIDEO_HEVC";
|
|
21599
|
-
CodecType2[CodecType2["VIDEO_AV1"] = 5] = "VIDEO_AV1";
|
|
21600
|
-
CodecType2[CodecType2["AUDIO_OPUS"] = 64] = "AUDIO_OPUS";
|
|
21601
|
-
CodecType2[CodecType2["AUDIO_AAC"] = 65] = "AUDIO_AAC";
|
|
21602
|
-
CodecType2[CodecType2["AUDIO_PCM"] = 66] = "AUDIO_PCM";
|
|
21603
|
-
return CodecType2;
|
|
21604
|
-
})(CodecType || {});
|
|
21605
|
-
var SesameBinaryProtocol = class {
|
|
21606
|
-
/**
|
|
21607
|
-
* Initialize a header data structure with proper defaults
|
|
21608
|
-
*/
|
|
21609
|
-
static initHeader(type, flags, pts, id) {
|
|
21610
|
-
return {
|
|
21611
|
-
magic: PROTOCOL_MAGIC,
|
|
21612
|
-
version: PROTOCOL_VERSION,
|
|
21613
|
-
header_size: this.calculateHeaderSize(flags),
|
|
21614
|
-
type,
|
|
21615
|
-
flags,
|
|
21616
|
-
pts,
|
|
21617
|
-
id,
|
|
21618
|
-
reserved: 0
|
|
21619
|
-
// Always zero reserved fields
|
|
21620
|
-
};
|
|
21621
|
-
}
|
|
21622
|
-
/**
|
|
21623
|
-
* Calculate the total header size based on flags
|
|
21624
|
-
*/
|
|
21625
|
-
static calculateHeaderSize(flags) {
|
|
21626
|
-
let size = HEADER_DATA_SIZE;
|
|
21627
|
-
if (flags & FLAG_HAS_METADATA) {
|
|
21628
|
-
size += HEADER_METADATA_SIZE;
|
|
21629
|
-
}
|
|
21630
|
-
if (flags & FLAG_HAS_CODEC_DATA) {
|
|
21631
|
-
size += HEADER_CODEC_DATA_SIZE;
|
|
21632
|
-
}
|
|
21633
|
-
return size;
|
|
21634
|
-
}
|
|
21635
|
-
/**
|
|
21636
|
-
* Validate a header structure
|
|
21637
|
-
*/
|
|
21638
|
-
static validateHeader(header, totalSize) {
|
|
21639
|
-
if (header.magic !== PROTOCOL_MAGIC) {
|
|
21640
|
-
return false;
|
|
21641
|
-
}
|
|
21642
|
-
if (header.version !== PROTOCOL_VERSION) {
|
|
21643
|
-
return false;
|
|
21644
|
-
}
|
|
21645
|
-
const expectedHeaderSize = this.calculateHeaderSize(header.flags);
|
|
21646
|
-
if (header.header_size !== expectedHeaderSize) {
|
|
21647
|
-
return false;
|
|
21648
|
-
}
|
|
21649
|
-
if (totalSize < header.header_size) {
|
|
21650
|
-
return false;
|
|
21651
|
-
}
|
|
21652
|
-
return true;
|
|
21653
|
-
}
|
|
22267
|
+
// src/sesame-wire-protocol.ts
|
|
22268
|
+
var FrameType = sesame.v1.wire.FrameType;
|
|
22269
|
+
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
22270
|
+
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
22271
|
+
var CodecType = sesame.v1.common.CodecType;
|
|
22272
|
+
var PREFIX_SIZE = 4;
|
|
22273
|
+
var WireProtocol = class {
|
|
21654
22274
|
/**
|
|
21655
|
-
* Serialize
|
|
22275
|
+
* Serialize a wire frame: 4-byte LE header_size + protobuf FrameHeader + payload.
|
|
21656
22276
|
*/
|
|
21657
|
-
static serialize(header,
|
|
21658
|
-
const
|
|
21659
|
-
const
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
view.setUint32(offset, header.magic, true);
|
|
21669
|
-
offset += 4;
|
|
21670
|
-
view.setUint32(offset, header.flags, true);
|
|
21671
|
-
offset += 4;
|
|
21672
|
-
view.setBigUint64(offset, header.pts, true);
|
|
21673
|
-
offset += 8;
|
|
21674
|
-
view.setBigUint64(offset, header.id, true);
|
|
21675
|
-
offset += 8;
|
|
21676
|
-
view.setUint16(offset, header.version, true);
|
|
21677
|
-
offset += 2;
|
|
21678
|
-
view.setUint16(offset, header.header_size, true);
|
|
21679
|
-
offset += 2;
|
|
21680
|
-
view.setUint16(offset, header.type, true);
|
|
21681
|
-
offset += 2;
|
|
21682
|
-
view.setUint16(offset, header.reserved, true);
|
|
21683
|
-
offset += 2;
|
|
21684
|
-
if (includeMetadata && metadata) {
|
|
21685
|
-
const metadataBytes = this.stringToFixedBytes(metadata.metadata, 64);
|
|
21686
|
-
new Uint8Array(buffer, offset, 64).set(metadataBytes);
|
|
21687
|
-
offset += 64;
|
|
21688
|
-
}
|
|
21689
|
-
if (includeCodec && codecData) {
|
|
21690
|
-
view.setUint32(offset, codecData.sample_rate, true);
|
|
21691
|
-
offset += 4;
|
|
21692
|
-
view.setUint32(offset, codecData.timebase_num, true);
|
|
21693
|
-
offset += 4;
|
|
21694
|
-
view.setUint32(offset, codecData.timebase_den, true);
|
|
21695
|
-
offset += 4;
|
|
21696
|
-
view.setUint16(offset, codecData.codec_profile, true);
|
|
21697
|
-
offset += 2;
|
|
21698
|
-
view.setUint16(offset, codecData.codec_level, true);
|
|
21699
|
-
offset += 2;
|
|
21700
|
-
view.setUint16(offset, codecData.width, true);
|
|
21701
|
-
offset += 2;
|
|
21702
|
-
view.setUint16(offset, codecData.height, true);
|
|
21703
|
-
offset += 2;
|
|
21704
|
-
view.setUint8(offset, codecData.codec_type);
|
|
21705
|
-
offset += 1;
|
|
21706
|
-
view.setUint8(offset, codecData.channels);
|
|
21707
|
-
offset += 1;
|
|
21708
|
-
view.setUint8(offset, codecData.bit_depth);
|
|
21709
|
-
offset += 1;
|
|
21710
|
-
view.setUint8(offset, codecData.reserved);
|
|
21711
|
-
offset += 1;
|
|
21712
|
-
}
|
|
21713
|
-
if (payload && payload.length > 0) {
|
|
21714
|
-
new Uint8Array(buffer, offset).set(payload);
|
|
22277
|
+
static serialize(header, payload) {
|
|
22278
|
+
const headerBytes = sesame.v1.wire.FrameHeader.encode(header).finish();
|
|
22279
|
+
const headerSize = headerBytes.length;
|
|
22280
|
+
const payloadSize = payload ? payload.length : 0;
|
|
22281
|
+
const total = PREFIX_SIZE + headerSize + payloadSize;
|
|
22282
|
+
const buffer = new Uint8Array(total);
|
|
22283
|
+
const view = new DataView(buffer.buffer);
|
|
22284
|
+
view.setUint32(0, headerSize, true);
|
|
22285
|
+
buffer.set(headerBytes, PREFIX_SIZE);
|
|
22286
|
+
if (payload && payloadSize > 0) {
|
|
22287
|
+
buffer.set(payload, PREFIX_SIZE + headerSize);
|
|
21715
22288
|
}
|
|
21716
|
-
return
|
|
22289
|
+
return buffer;
|
|
21717
22290
|
}
|
|
21718
22291
|
/**
|
|
21719
|
-
* Parse incoming
|
|
22292
|
+
* Parse an incoming wire frame.
|
|
21720
22293
|
*/
|
|
21721
|
-
static
|
|
21722
|
-
const result = {
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
}
|
|
21733
|
-
const view = new DataView(data.buffer, data.byteOffset);
|
|
21734
|
-
let offset = 0;
|
|
21735
|
-
const header = {
|
|
21736
|
-
magic: view.getUint32(offset, true),
|
|
21737
|
-
flags: view.getUint32(offset + 4, true),
|
|
21738
|
-
pts: view.getBigUint64(offset + 8, true),
|
|
21739
|
-
id: view.getBigUint64(offset + 16, true),
|
|
21740
|
-
version: view.getUint16(offset + 24, true),
|
|
21741
|
-
header_size: view.getUint16(offset + 26, true),
|
|
21742
|
-
type: view.getUint16(offset + 28, true),
|
|
21743
|
-
reserved: view.getUint16(offset + 30, true)
|
|
21744
|
-
};
|
|
21745
|
-
offset += HEADER_DATA_SIZE;
|
|
21746
|
-
if (!this.validateHeader(header, data.length)) {
|
|
21747
|
-
return result;
|
|
21748
|
-
}
|
|
21749
|
-
result.header = header;
|
|
21750
|
-
if (header.flags & FLAG_HAS_METADATA) {
|
|
21751
|
-
if (data.length < offset + HEADER_METADATA_SIZE) {
|
|
21752
|
-
return result;
|
|
21753
|
-
}
|
|
21754
|
-
const metadataBytes = data.slice(offset, offset + HEADER_METADATA_SIZE);
|
|
21755
|
-
const metadataStr = this.fixedBytesToString(metadataBytes);
|
|
21756
|
-
result.metadata = { metadata: metadataStr };
|
|
21757
|
-
offset += HEADER_METADATA_SIZE;
|
|
21758
|
-
}
|
|
21759
|
-
if (header.flags & FLAG_HAS_CODEC_DATA) {
|
|
21760
|
-
if (data.length < offset + HEADER_CODEC_DATA_SIZE) {
|
|
21761
|
-
return result;
|
|
21762
|
-
}
|
|
21763
|
-
result.codec_data = {
|
|
21764
|
-
sample_rate: view.getUint32(offset, true),
|
|
21765
|
-
timebase_num: view.getUint32(offset + 4, true),
|
|
21766
|
-
timebase_den: view.getUint32(offset + 8, true),
|
|
21767
|
-
codec_profile: view.getUint16(offset + 12, true),
|
|
21768
|
-
codec_level: view.getUint16(offset + 14, true),
|
|
21769
|
-
width: view.getUint16(offset + 16, true),
|
|
21770
|
-
height: view.getUint16(offset + 18, true),
|
|
21771
|
-
codec_type: view.getUint8(offset + 20),
|
|
21772
|
-
channels: view.getUint8(offset + 21),
|
|
21773
|
-
bit_depth: view.getUint8(offset + 22),
|
|
21774
|
-
reserved: view.getUint8(offset + 23)
|
|
21775
|
-
};
|
|
21776
|
-
offset += HEADER_CODEC_DATA_SIZE;
|
|
22294
|
+
static parse(data) {
|
|
22295
|
+
const result = { valid: false, header: null, payload: null };
|
|
22296
|
+
if (!data || data.length < PREFIX_SIZE) return result;
|
|
22297
|
+
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
22298
|
+
const headerSize = view.getUint32(0, true);
|
|
22299
|
+
if (data.length < PREFIX_SIZE + headerSize) return result;
|
|
22300
|
+
try {
|
|
22301
|
+
const headerBytes = data.subarray(PREFIX_SIZE, PREFIX_SIZE + headerSize);
|
|
22302
|
+
result.header = sesame.v1.wire.FrameHeader.decode(headerBytes);
|
|
22303
|
+
result.payload = data.subarray(PREFIX_SIZE + headerSize);
|
|
22304
|
+
result.valid = true;
|
|
22305
|
+
} catch {
|
|
21777
22306
|
}
|
|
21778
|
-
if (offset < data.length) {
|
|
21779
|
-
result.payload = data.slice(offset);
|
|
21780
|
-
result.payload_size = result.payload.length;
|
|
21781
|
-
} else {
|
|
21782
|
-
result.payload = new Uint8Array(0);
|
|
21783
|
-
result.payload_size = 0;
|
|
21784
|
-
}
|
|
21785
|
-
result.valid = true;
|
|
21786
22307
|
return result;
|
|
21787
22308
|
}
|
|
21788
|
-
/**
|
|
21789
|
-
* Helper: Convert string to fixed-size byte array (null-terminated)
|
|
21790
|
-
*/
|
|
21791
|
-
static stringToFixedBytes(str, size) {
|
|
21792
|
-
const bytes = new Uint8Array(size);
|
|
21793
|
-
let encoded;
|
|
21794
|
-
if (typeof TextEncoder !== "undefined") {
|
|
21795
|
-
const encoder = new TextEncoder();
|
|
21796
|
-
encoded = encoder.encode(str);
|
|
21797
|
-
} else {
|
|
21798
|
-
encoded = new Uint8Array(Buffer.from(str, "utf8"));
|
|
21799
|
-
}
|
|
21800
|
-
const copyLen = Math.min(encoded.length, size - 1);
|
|
21801
|
-
bytes.set(encoded.slice(0, copyLen));
|
|
21802
|
-
bytes[copyLen] = 0;
|
|
21803
|
-
return bytes;
|
|
21804
|
-
}
|
|
21805
|
-
/**
|
|
21806
|
-
* Helper: Convert fixed-size byte array to string (null-terminated)
|
|
21807
|
-
*/
|
|
21808
|
-
static fixedBytesToString(bytes) {
|
|
21809
|
-
let len = bytes.length;
|
|
21810
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
21811
|
-
if (bytes[i] === 0) {
|
|
21812
|
-
len = i;
|
|
21813
|
-
break;
|
|
21814
|
-
}
|
|
21815
|
-
}
|
|
21816
|
-
if (typeof TextDecoder !== "undefined") {
|
|
21817
|
-
const decoder = new TextDecoder();
|
|
21818
|
-
return decoder.decode(bytes.slice(0, len));
|
|
21819
|
-
} else {
|
|
21820
|
-
return Buffer.from(bytes.slice(0, len)).toString("utf8");
|
|
21821
|
-
}
|
|
21822
|
-
}
|
|
21823
22309
|
};
|
|
21824
22310
|
|
|
21825
22311
|
// src/sesame-connection.ts
|
|
22312
|
+
var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
|
|
22313
|
+
ConnectionState2["Disconnected"] = "disconnected";
|
|
22314
|
+
ConnectionState2["Connecting"] = "connecting";
|
|
22315
|
+
ConnectionState2["Connected"] = "connected";
|
|
22316
|
+
ConnectionState2["Reconnecting"] = "reconnecting";
|
|
22317
|
+
return ConnectionState2;
|
|
22318
|
+
})(ConnectionState || {});
|
|
21826
22319
|
function waitForEvent(emitter, eventName) {
|
|
21827
22320
|
return new Promise((resolve) => {
|
|
21828
22321
|
emitter.once(eventName, resolve);
|
|
@@ -21835,6 +22328,7 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
21835
22328
|
this.numRetries = 0;
|
|
21836
22329
|
this.url = "";
|
|
21837
22330
|
this.autoReconnect = true;
|
|
22331
|
+
this._state = "disconnected" /* Disconnected */;
|
|
21838
22332
|
/* Bound listeners so we can removeEventListener later */
|
|
21839
22333
|
this.boundMessageHandler = (event) => this.messageHandler(event);
|
|
21840
22334
|
this.boundOpenHandler = () => this.openHandler();
|
|
@@ -21842,52 +22336,97 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
21842
22336
|
this.boundErrorHandler = (event) => this.errorHandler(event);
|
|
21843
22337
|
this.openHandler = () => {
|
|
21844
22338
|
this.numRetries = 0;
|
|
22339
|
+
this.setState("connected" /* Connected */);
|
|
21845
22340
|
this.emit("open");
|
|
21846
22341
|
};
|
|
21847
22342
|
this.messageHandler = (event) => {
|
|
21848
22343
|
if (event.data instanceof ArrayBuffer) {
|
|
21849
|
-
const parsed =
|
|
21850
|
-
if (!parsed.valid)
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
}
|
|
21854
|
-
|
|
21855
|
-
|
|
22344
|
+
const parsed = WireProtocol.parse(new Uint8Array(event.data));
|
|
22345
|
+
if (!parsed.valid) {
|
|
22346
|
+
this.emit("error", new Error("Invalid packet received"));
|
|
22347
|
+
return;
|
|
22348
|
+
}
|
|
22349
|
+
const frameType = parsed.header?.type;
|
|
22350
|
+
if (frameType === FrameType.FRAME_TYPE_RPC) {
|
|
21856
22351
|
this.emit("rpc", parsed.payload);
|
|
22352
|
+
} else {
|
|
22353
|
+
this.emit("media-packet", parsed);
|
|
21857
22354
|
}
|
|
21858
22355
|
}
|
|
21859
22356
|
};
|
|
21860
22357
|
this.url = options.url;
|
|
21861
22358
|
this.autoReconnect = options.autoReconnect;
|
|
21862
|
-
if (options.autoConnect) this.connect().catch(() =>
|
|
22359
|
+
if (options.autoConnect) this.connect().catch(() => {
|
|
22360
|
+
});
|
|
22361
|
+
}
|
|
22362
|
+
get state() {
|
|
22363
|
+
return this._state;
|
|
22364
|
+
}
|
|
22365
|
+
setState(newState) {
|
|
22366
|
+
if (this._state === newState) return;
|
|
22367
|
+
const prev = this._state;
|
|
22368
|
+
this._state = newState;
|
|
22369
|
+
switch (newState) {
|
|
22370
|
+
case "connected" /* Connected */:
|
|
22371
|
+
log.info("Connected to Sesame");
|
|
22372
|
+
break;
|
|
22373
|
+
case "reconnecting" /* Reconnecting */:
|
|
22374
|
+
if (prev === "connected" /* Connected */) {
|
|
22375
|
+
log.warn("Lost connection to Sesame, will try reconnect..");
|
|
22376
|
+
} else {
|
|
22377
|
+
log.warn("Failed to connect to Sesame, will try reconnect..");
|
|
22378
|
+
}
|
|
22379
|
+
break;
|
|
22380
|
+
case "disconnected" /* Disconnected */:
|
|
22381
|
+
log.info("Disconnected from Sesame");
|
|
22382
|
+
break;
|
|
22383
|
+
}
|
|
22384
|
+
this.emit("state", newState, prev);
|
|
21863
22385
|
}
|
|
21864
22386
|
isConnected() {
|
|
21865
22387
|
return this.socket !== void 0 && this.socket.readyState === WebSocket.OPEN;
|
|
21866
22388
|
}
|
|
21867
22389
|
async send(data) {
|
|
21868
22390
|
if (!this.isConnected()) throw new Error("Not connected");
|
|
21869
|
-
const header =
|
|
21870
|
-
const
|
|
21871
|
-
|
|
21872
|
-
this.socket.send(data_to_send);
|
|
22391
|
+
const header = { type: sesame.v1.wire.FrameType.FRAME_TYPE_RPC };
|
|
22392
|
+
const frame = WireProtocol.serialize(header, data);
|
|
22393
|
+
this.socket.send(frame);
|
|
21873
22394
|
return Promise.resolve();
|
|
21874
22395
|
}
|
|
21875
22396
|
async connect() {
|
|
21876
22397
|
this.active = true;
|
|
22398
|
+
if (this._state === "disconnected" /* Disconnected */) {
|
|
22399
|
+
this.setState("connecting" /* Connecting */);
|
|
22400
|
+
}
|
|
21877
22401
|
this.socket = new WebSocket(this.url);
|
|
21878
22402
|
this.socket.addEventListener("message", this.boundMessageHandler);
|
|
21879
22403
|
this.socket.addEventListener("open", this.boundOpenHandler);
|
|
21880
22404
|
this.socket.addEventListener("close", this.boundCloseHandler);
|
|
21881
22405
|
this.socket.addEventListener("error", this.boundErrorHandler);
|
|
21882
22406
|
this.socket.binaryType = "arraybuffer";
|
|
21883
|
-
await new Promise((resolve) => {
|
|
21884
|
-
const
|
|
21885
|
-
this.removeListener("open",
|
|
21886
|
-
this.removeListener("close",
|
|
21887
|
-
|
|
22407
|
+
await new Promise((resolve, reject) => {
|
|
22408
|
+
const cleanup = () => {
|
|
22409
|
+
this.removeListener("open", onOpen);
|
|
22410
|
+
this.removeListener("close", onClose);
|
|
22411
|
+
this.removeListener("error", onError);
|
|
21888
22412
|
};
|
|
21889
|
-
|
|
21890
|
-
|
|
22413
|
+
const onOpen = () => {
|
|
22414
|
+
cleanup();
|
|
22415
|
+
resolve();
|
|
22416
|
+
};
|
|
22417
|
+
const onError = (err) => {
|
|
22418
|
+
cleanup();
|
|
22419
|
+
reject(err instanceof Error ? err : new Error("WebSocket connection error"));
|
|
22420
|
+
};
|
|
22421
|
+
const onClose = () => {
|
|
22422
|
+
if (!this.isConnected()) {
|
|
22423
|
+
cleanup();
|
|
22424
|
+
reject(new Error("WebSocket connection closed before opening"));
|
|
22425
|
+
}
|
|
22426
|
+
};
|
|
22427
|
+
this.on("open", onOpen);
|
|
22428
|
+
this.on("close", onClose);
|
|
22429
|
+
this.on("error", onError);
|
|
21891
22430
|
});
|
|
21892
22431
|
}
|
|
21893
22432
|
/**
|
|
@@ -21896,6 +22435,7 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
21896
22435
|
async disconnect() {
|
|
21897
22436
|
this.active = false;
|
|
21898
22437
|
if (!this.socket) {
|
|
22438
|
+
this.setState("disconnected" /* Disconnected */);
|
|
21899
22439
|
return;
|
|
21900
22440
|
}
|
|
21901
22441
|
const sock = this.socket;
|
|
@@ -21913,7 +22453,8 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
21913
22453
|
}
|
|
21914
22454
|
retryHandler() {
|
|
21915
22455
|
if (this.active && this.autoReconnect) {
|
|
21916
|
-
this.connect().catch((
|
|
22456
|
+
this.connect().catch(() => {
|
|
22457
|
+
});
|
|
21917
22458
|
}
|
|
21918
22459
|
}
|
|
21919
22460
|
closeHandler() {
|
|
@@ -21923,13 +22464,17 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
21923
22464
|
}
|
|
21924
22465
|
this.socket = void 0;
|
|
21925
22466
|
if (this.active) {
|
|
21926
|
-
|
|
22467
|
+
if (this.autoReconnect) {
|
|
22468
|
+
this.setState("reconnecting" /* Reconnecting */);
|
|
21927
22469
|
setTimeout(() => {
|
|
21928
22470
|
this.retryHandler();
|
|
21929
22471
|
}, defaultBackoff(++this.numRetries));
|
|
21930
|
-
}
|
|
21931
|
-
|
|
22472
|
+
} else {
|
|
22473
|
+
this.active = false;
|
|
22474
|
+
this.setState("disconnected" /* Disconnected */);
|
|
21932
22475
|
}
|
|
22476
|
+
} else {
|
|
22477
|
+
this.setState("disconnected" /* Disconnected */);
|
|
21933
22478
|
}
|
|
21934
22479
|
}
|
|
21935
22480
|
errorHandler(error) {
|
|
@@ -21955,9 +22500,6 @@ var StatusApi = class {
|
|
|
21955
22500
|
async getIODevices() {
|
|
21956
22501
|
return this.rpc.service.requestIODeviceList(new sesame.v1.common.Empty());
|
|
21957
22502
|
}
|
|
21958
|
-
async requestKeyframe(outputId) {
|
|
21959
|
-
await this.rpc.service.requestKeyframe({ id: outputId });
|
|
21960
|
-
}
|
|
21961
22503
|
};
|
|
21962
22504
|
|
|
21963
22505
|
// src/recorder-api.ts
|
|
@@ -22014,55 +22556,52 @@ var JobsApi = class {
|
|
|
22014
22556
|
this.rpc = rpc;
|
|
22015
22557
|
}
|
|
22016
22558
|
async importClip(config) {
|
|
22017
|
-
const
|
|
22018
|
-
|
|
22019
|
-
const
|
|
22559
|
+
const importReq = sesame.v1.jobs.ImportStartRequest.create();
|
|
22560
|
+
importReq.config = config;
|
|
22561
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ importRequest: importReq });
|
|
22562
|
+
const res = await this.rpc.service.startJob(msg);
|
|
22020
22563
|
if (res.error) {
|
|
22021
22564
|
throw new Error(res.error);
|
|
22022
22565
|
}
|
|
22023
22566
|
return res;
|
|
22024
22567
|
}
|
|
22025
|
-
async getImportStatus() {
|
|
22026
|
-
const msg = sesame.v1.jobs.ImportListRequest.create();
|
|
22027
|
-
return this.rpc.service.requestClipImportList(msg);
|
|
22028
|
-
}
|
|
22029
|
-
async abortImport(jobId) {
|
|
22030
|
-
const msg = { jobId };
|
|
22031
|
-
return this.rpc.service.requestClipImportAbort(msg);
|
|
22032
|
-
}
|
|
22033
22568
|
async exportPlaylist(playlist, config) {
|
|
22034
|
-
const
|
|
22569
|
+
const exportReq = sesame.v1.jobs.ExportStartRequest.create();
|
|
22035
22570
|
if (!config.filename) throw new Error("Filename is required");
|
|
22036
|
-
|
|
22571
|
+
exportReq.config = {
|
|
22037
22572
|
...config,
|
|
22038
|
-
|
|
22039
|
-
videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
|
|
22573
|
+
videoCodec: config.videoCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC,
|
|
22040
22574
|
videoBitrateKbps: config.videoBitrateKbps ?? 1024,
|
|
22041
|
-
audioCodec: config.audioCodec ?? sesame.v1.
|
|
22575
|
+
audioCodec: config.audioCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_AUDIO_AAC,
|
|
22042
22576
|
audioBitrateKbps: config.audioBitrateKbps ?? 128,
|
|
22043
22577
|
audioChannels: config.audioChannels ?? 4,
|
|
22044
22578
|
audioRouting: config.audioRouting ?? [0, 1, 2, 3]
|
|
22045
22579
|
};
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
recorderId: clip.recorderId,
|
|
22580
|
+
exportReq.items = playlist.clips.map((clip) => ({
|
|
22581
|
+
...clip,
|
|
22049
22582
|
transitionTimeUs: clip.transitionTimeUs ?? 0,
|
|
22050
22583
|
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
22051
22584
|
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
|
|
22052
|
-
speed: clip.speed ?? 1
|
|
22053
|
-
audioRouting: clip.audioRouting,
|
|
22054
|
-
startTimeUs: clip.startTimeUs,
|
|
22055
|
-
endTimeUs: clip.endTimeUs
|
|
22585
|
+
speed: clip.speed ?? 1
|
|
22056
22586
|
}));
|
|
22057
|
-
|
|
22587
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ exportRequest: exportReq });
|
|
22588
|
+
const job = await this.rpc.service.startJob(msg);
|
|
22589
|
+
if (job.error) {
|
|
22590
|
+
throw new Error(job.error);
|
|
22591
|
+
}
|
|
22592
|
+
return job;
|
|
22058
22593
|
}
|
|
22059
|
-
async
|
|
22060
|
-
const msg =
|
|
22061
|
-
return this.rpc.service.
|
|
22594
|
+
async abortJob(jobId) {
|
|
22595
|
+
const msg = { jobId };
|
|
22596
|
+
return this.rpc.service.abortJob(msg);
|
|
22062
22597
|
}
|
|
22063
|
-
async
|
|
22598
|
+
async getJobStatus(jobId) {
|
|
22064
22599
|
const msg = { jobId };
|
|
22065
|
-
return this.rpc.service.
|
|
22600
|
+
return this.rpc.service.getJobStatus(msg);
|
|
22601
|
+
}
|
|
22602
|
+
async listJobs() {
|
|
22603
|
+
const msg = {};
|
|
22604
|
+
return this.rpc.service.listJobs(msg);
|
|
22066
22605
|
}
|
|
22067
22606
|
};
|
|
22068
22607
|
|
|
@@ -22106,10 +22645,7 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22106
22645
|
constructor(portOrUrl) {
|
|
22107
22646
|
super();
|
|
22108
22647
|
this.subscriptions = [];
|
|
22109
|
-
this.
|
|
22110
|
-
this.onVideoPacket = () => {
|
|
22111
|
-
};
|
|
22112
|
-
this.onAudioPacket = () => {
|
|
22648
|
+
this.onMediaPacket = () => {
|
|
22113
22649
|
};
|
|
22114
22650
|
this.onCallbackMessage = () => {
|
|
22115
22651
|
};
|
|
@@ -22120,17 +22656,12 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22120
22656
|
autoReconnect: true
|
|
22121
22657
|
});
|
|
22122
22658
|
this.conn.on("error", () => {
|
|
22123
|
-
if (!this.errorIsLogged) {
|
|
22124
|
-
log.warn("Could not connect to Sesame Engine, will keep trying..");
|
|
22125
|
-
this.errorIsLogged = true;
|
|
22126
|
-
}
|
|
22127
22659
|
});
|
|
22128
22660
|
let events = {
|
|
22129
22661
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
|
|
22130
22662
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
|
|
22131
22663
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
|
|
22132
|
-
[sesame.v1.common.EventTopic.
|
|
22133
|
-
[sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
|
|
22664
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
|
|
22134
22665
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
|
|
22135
22666
|
};
|
|
22136
22667
|
let options = {
|
|
@@ -22148,18 +22679,18 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22148
22679
|
}
|
|
22149
22680
|
});
|
|
22150
22681
|
this.rpc.on("error", (err) => {
|
|
22151
|
-
|
|
22682
|
+
if (this.isConnected()) {
|
|
22683
|
+
log.error(`RPC error: ${err.message}`);
|
|
22684
|
+
}
|
|
22152
22685
|
});
|
|
22153
22686
|
this.conn.on("open", async () => {
|
|
22154
22687
|
this.sendSubscriptions();
|
|
22155
|
-
this.errorIsLogged = false;
|
|
22156
22688
|
this.emit("connected");
|
|
22157
22689
|
});
|
|
22158
22690
|
this.conn.on("close", () => {
|
|
22159
22691
|
this.emit("disconnected");
|
|
22160
22692
|
});
|
|
22161
|
-
this.conn.on("
|
|
22162
|
-
this.conn.on("audio-packet", (data) => this.onAudioPacket(this.videoSubscriptionId, data));
|
|
22693
|
+
this.conn.on("media-packet", (frame) => this.onMediaPacket(this.mediaSubscriptionId, frame));
|
|
22163
22694
|
this.subscriptions = [];
|
|
22164
22695
|
}
|
|
22165
22696
|
isConnected() {
|
|
@@ -22169,14 +22700,14 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22169
22700
|
if (!this.isConnected()) return;
|
|
22170
22701
|
const eventTopics = this.subscriptions.map((subscription) => subscription.topic);
|
|
22171
22702
|
const channels = [];
|
|
22172
|
-
if (this.
|
|
22703
|
+
if (this.mediaSubscriptionId) channels.push(`media-stream/${this.mediaSubscriptionId}`);
|
|
22173
22704
|
let subs = { eventTopics, channels };
|
|
22174
22705
|
this.rpc.service.updateSubscriptions(subs).catch((err) => {
|
|
22175
22706
|
log.error(`Failed to update subscriptions: ${err.message}`);
|
|
22176
22707
|
});
|
|
22177
22708
|
}
|
|
22178
|
-
|
|
22179
|
-
this.
|
|
22709
|
+
addMediaSubscription(id) {
|
|
22710
|
+
this.mediaSubscriptionId = id;
|
|
22180
22711
|
this.sendSubscriptions();
|
|
22181
22712
|
}
|
|
22182
22713
|
addSubscription(topic, callback) {
|
|
@@ -22195,6 +22726,9 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22195
22726
|
getService() {
|
|
22196
22727
|
return this.rpc;
|
|
22197
22728
|
}
|
|
22729
|
+
async requestKeyframe(outputId) {
|
|
22730
|
+
await this.rpc.service.requestKeyframe({ id: outputId });
|
|
22731
|
+
}
|
|
22198
22732
|
async execute(cl) {
|
|
22199
22733
|
cl.filterCreatedAndDestroyedSources();
|
|
22200
22734
|
if (cl.getCommandListMsg().commandList.length > 0) {
|
|
@@ -22215,19 +22749,21 @@ var Event = sesame.v1.rpc.Event;
|
|
|
22215
22749
|
0 && (module.exports = {
|
|
22216
22750
|
CodecType,
|
|
22217
22751
|
CommandList,
|
|
22752
|
+
ConnectionState,
|
|
22218
22753
|
EaseKind,
|
|
22219
22754
|
Event,
|
|
22755
|
+
FrameHeader,
|
|
22756
|
+
FrameType,
|
|
22220
22757
|
JobsApi,
|
|
22221
22758
|
Message,
|
|
22222
|
-
PacketType,
|
|
22223
22759
|
RPCClient,
|
|
22224
22760
|
RecorderApi,
|
|
22225
22761
|
Request,
|
|
22226
22762
|
Response,
|
|
22227
|
-
SesameBinaryProtocol,
|
|
22228
22763
|
SesameClient,
|
|
22229
22764
|
SesameConnection,
|
|
22230
22765
|
StatusApi,
|
|
22766
|
+
WireProtocol,
|
|
22231
22767
|
getLogger,
|
|
22232
22768
|
log,
|
|
22233
22769
|
sesame,
|