@stinkycomputing/sesame-api-client 1.5.5 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3578,11 +3578,14 @@ var sesame = $root.sesame = (() => {
3578
3578
  CommandListItem.prototype.callback = null;
3579
3579
  CommandListItem.prototype.setSourceMetadata = null;
3580
3580
  CommandListItem.prototype.setMetadataBindings = null;
3581
+ CommandListItem.prototype.addEncoder = null;
3582
+ CommandListItem.prototype.updateEncoder = null;
3583
+ CommandListItem.prototype.removeEncoder = null;
3581
3584
  CommandListItem.prototype.transactionId = null;
3582
3585
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
3583
3586
  let $oneOfFields;
3584
3587
  Object.defineProperty(CommandListItem.prototype, "item", {
3585
- get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings"]),
3588
+ get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder"]),
3586
3589
  set: $util.oneOfSetter($oneOfFields)
3587
3590
  });
3588
3591
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -3734,6 +3737,21 @@ var sesame = $root.sesame = (() => {
3734
3737
  /* id 27, wireType 2 =*/
3735
3738
  218
3736
3739
  ).fork()).ldelim();
3740
+ if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
3741
+ $root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
3742
+ /* id 28, wireType 2 =*/
3743
+ 226
3744
+ ).fork()).ldelim();
3745
+ if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
3746
+ $root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
3747
+ /* id 29, wireType 2 =*/
3748
+ 234
3749
+ ).fork()).ldelim();
3750
+ if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
3751
+ $root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
3752
+ /* id 30, wireType 2 =*/
3753
+ 242
3754
+ ).fork()).ldelim();
3737
3755
  return writer;
3738
3756
  };
3739
3757
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3848,6 +3866,18 @@ var sesame = $root.sesame = (() => {
3848
3866
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
3849
3867
  break;
3850
3868
  }
3869
+ case 28: {
3870
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
3871
+ break;
3872
+ }
3873
+ case 29: {
3874
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
3875
+ break;
3876
+ }
3877
+ case 30: {
3878
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
3879
+ break;
3880
+ }
3851
3881
  case 25: {
3852
3882
  message.transactionId = reader.uint32();
3853
3883
  break;
@@ -4121,6 +4151,36 @@ var sesame = $root.sesame = (() => {
4121
4151
  return "setMetadataBindings." + error;
4122
4152
  }
4123
4153
  }
4154
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4155
+ if (properties.item === 1)
4156
+ return "item: multiple values";
4157
+ properties.item = 1;
4158
+ {
4159
+ let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
4160
+ if (error)
4161
+ return "addEncoder." + error;
4162
+ }
4163
+ }
4164
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4165
+ if (properties.item === 1)
4166
+ return "item: multiple values";
4167
+ properties.item = 1;
4168
+ {
4169
+ let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
4170
+ if (error)
4171
+ return "updateEncoder." + error;
4172
+ }
4173
+ }
4174
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4175
+ if (properties.item === 1)
4176
+ return "item: multiple values";
4177
+ properties.item = 1;
4178
+ {
4179
+ let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
4180
+ if (error)
4181
+ return "removeEncoder." + error;
4182
+ }
4183
+ }
4124
4184
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
4125
4185
  properties._transactionId = 1;
4126
4186
  if (!$util.isInteger(message.transactionId))
@@ -4269,6 +4329,21 @@ var sesame = $root.sesame = (() => {
4269
4329
  throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
4270
4330
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
4271
4331
  }
4332
+ if (object.addEncoder != null) {
4333
+ if (typeof object.addEncoder !== "object")
4334
+ throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
4335
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
4336
+ }
4337
+ if (object.updateEncoder != null) {
4338
+ if (typeof object.updateEncoder !== "object")
4339
+ throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
4340
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
4341
+ }
4342
+ if (object.removeEncoder != null) {
4343
+ if (typeof object.removeEncoder !== "object")
4344
+ throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
4345
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
4346
+ }
4272
4347
  if (object.transactionId != null)
4273
4348
  message.transactionId = object.transactionId >>> 0;
4274
4349
  if (object.transactionDeps) {
@@ -4427,6 +4502,21 @@ var sesame = $root.sesame = (() => {
4427
4502
  if (options.oneofs)
4428
4503
  object.item = "setMetadataBindings";
4429
4504
  }
4505
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4506
+ object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
4507
+ if (options.oneofs)
4508
+ object.item = "addEncoder";
4509
+ }
4510
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4511
+ object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
4512
+ if (options.oneofs)
4513
+ object.item = "updateEncoder";
4514
+ }
4515
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4516
+ object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
4517
+ if (options.oneofs)
4518
+ object.item = "removeEncoder";
4519
+ }
4430
4520
  return object;
4431
4521
  };
4432
4522
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -14973,6 +15063,7 @@ var sesame = $root.sesame = (() => {
14973
15063
  this.audioMixes = [];
14974
15064
  this.outputs = [];
14975
15065
  this.recorders = [];
15066
+ this.encoders = [];
14976
15067
  if (properties) {
14977
15068
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14978
15069
  if (properties[keys[i]] != null)
@@ -14987,6 +15078,7 @@ var sesame = $root.sesame = (() => {
14987
15078
  Status.prototype.audioMixes = $util.emptyArray;
14988
15079
  Status.prototype.outputs = $util.emptyArray;
14989
15080
  Status.prototype.recorders = $util.emptyArray;
15081
+ Status.prototype.encoders = $util.emptyArray;
14990
15082
  Status.create = function create(properties) {
14991
15083
  return new Status(properties);
14992
15084
  };
@@ -15038,6 +15130,12 @@ var sesame = $root.sesame = (() => {
15038
15130
  /* id 8, wireType 2 =*/
15039
15131
  66
15040
15132
  ).fork()).ldelim();
15133
+ if (message.encoders != null && message.encoders.length)
15134
+ for (let i = 0; i < message.encoders.length; ++i)
15135
+ $root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
15136
+ /* id 9, wireType 2 =*/
15137
+ 74
15138
+ ).fork()).ldelim();
15041
15139
  return writer;
15042
15140
  };
15043
15141
  Status.encodeDelimited = function encodeDelimited(message, writer) {
@@ -15094,6 +15192,12 @@ var sesame = $root.sesame = (() => {
15094
15192
  message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
15095
15193
  break;
15096
15194
  }
15195
+ case 9: {
15196
+ if (!(message.encoders && message.encoders.length))
15197
+ message.encoders = [];
15198
+ message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
15199
+ break;
15200
+ }
15097
15201
  default:
15098
15202
  reader.skipType(tag & 7);
15099
15203
  break;
@@ -15169,6 +15273,15 @@ var sesame = $root.sesame = (() => {
15169
15273
  return "recorders." + error;
15170
15274
  }
15171
15275
  }
15276
+ if (message.encoders != null && message.hasOwnProperty("encoders")) {
15277
+ if (!Array.isArray(message.encoders))
15278
+ return "encoders: array expected";
15279
+ for (let i = 0; i < message.encoders.length; ++i) {
15280
+ let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
15281
+ if (error)
15282
+ return "encoders." + error;
15283
+ }
15284
+ }
15172
15285
  return null;
15173
15286
  };
15174
15287
  Status.fromObject = function fromObject(object) {
@@ -15240,6 +15353,16 @@ var sesame = $root.sesame = (() => {
15240
15353
  message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
15241
15354
  }
15242
15355
  }
15356
+ if (object.encoders) {
15357
+ if (!Array.isArray(object.encoders))
15358
+ throw TypeError(".sesame.v1.status.Status.encoders: array expected");
15359
+ message.encoders = [];
15360
+ for (let i = 0; i < object.encoders.length; ++i) {
15361
+ if (typeof object.encoders[i] !== "object")
15362
+ throw TypeError(".sesame.v1.status.Status.encoders: object expected");
15363
+ message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
15364
+ }
15365
+ }
15243
15366
  return message;
15244
15367
  };
15245
15368
  Status.toObject = function toObject(message, options) {
@@ -15252,6 +15375,7 @@ var sesame = $root.sesame = (() => {
15252
15375
  object.audioMixes = [];
15253
15376
  object.outputs = [];
15254
15377
  object.recorders = [];
15378
+ object.encoders = [];
15255
15379
  }
15256
15380
  if (options.defaults) {
15257
15381
  object.systemStatus = null;
@@ -15289,6 +15413,11 @@ var sesame = $root.sesame = (() => {
15289
15413
  for (let j = 0; j < message.recorders.length; ++j)
15290
15414
  object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
15291
15415
  }
15416
+ if (message.encoders && message.encoders.length) {
15417
+ object.encoders = [];
15418
+ for (let j = 0; j < message.encoders.length; ++j)
15419
+ object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
15420
+ }
15292
15421
  return object;
15293
15422
  };
15294
15423
  Status.prototype.toJSON = function toJSON() {
@@ -16596,6 +16725,12 @@ var sesame = $root.sesame = (() => {
16596
16725
  values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
16597
16726
  return values;
16598
16727
  }();
16728
+ outputs.EncoderType = function() {
16729
+ const valuesById = {}, values = Object.create(valuesById);
16730
+ values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
16731
+ values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
16732
+ return values;
16733
+ }();
16599
16734
  outputs.EncoderPreset = function() {
16600
16735
  const valuesById = {}, values = Object.create(valuesById);
16601
16736
  values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
@@ -16910,62 +17045,62 @@ var sesame = $root.sesame = (() => {
16910
17045
  };
16911
17046
  return EncoderConfig;
16912
17047
  }();
16913
- outputs.DecklinkOutputConfig = function() {
16914
- function DecklinkOutputConfig(properties) {
17048
+ outputs.EncoderAddRequest = function() {
17049
+ function EncoderAddRequest(properties) {
16915
17050
  if (properties) {
16916
17051
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16917
17052
  if (properties[keys[i]] != null)
16918
17053
  this[keys[i]] = properties[keys[i]];
16919
17054
  }
16920
17055
  }
16921
- DecklinkOutputConfig.prototype.deviceIndex = 0;
16922
- DecklinkOutputConfig.prototype.videoFormat = 0;
16923
- DecklinkOutputConfig.prototype.keyAndFill = false;
16924
- DecklinkOutputConfig.create = function create(properties) {
16925
- return new DecklinkOutputConfig(properties);
17056
+ EncoderAddRequest.prototype.id = "";
17057
+ EncoderAddRequest.prototype.compositionId = "";
17058
+ EncoderAddRequest.prototype.encoder = null;
17059
+ EncoderAddRequest.create = function create(properties) {
17060
+ return new EncoderAddRequest(properties);
16926
17061
  };
16927
- DecklinkOutputConfig.encode = function encode(message, writer) {
17062
+ EncoderAddRequest.encode = function encode(message, writer) {
16928
17063
  if (!writer)
16929
17064
  writer = $Writer.create();
16930
- if (message.deviceIndex != null && Object.hasOwnProperty.call(message, "deviceIndex"))
16931
- writer.uint32(
16932
- /* id 1, wireType 0 =*/
16933
- 8
16934
- ).uint32(message.deviceIndex);
16935
- if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
17065
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
16936
17066
  writer.uint32(
16937
- /* id 2, wireType 0 =*/
16938
- 16
16939
- ).int32(message.videoFormat);
16940
- if (message.keyAndFill != null && Object.hasOwnProperty.call(message, "keyAndFill"))
17067
+ /* id 1, wireType 2 =*/
17068
+ 10
17069
+ ).string(message.id);
17070
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
16941
17071
  writer.uint32(
16942
- /* id 3, wireType 0 =*/
16943
- 24
16944
- ).bool(message.keyAndFill);
17072
+ /* id 2, wireType 2 =*/
17073
+ 18
17074
+ ).string(message.compositionId);
17075
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17076
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17077
+ /* id 3, wireType 2 =*/
17078
+ 26
17079
+ ).fork()).ldelim();
16945
17080
  return writer;
16946
17081
  };
16947
- DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17082
+ EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
16948
17083
  return this.encode(message, writer).ldelim();
16949
17084
  };
16950
- DecklinkOutputConfig.decode = function decode(reader, length, error) {
17085
+ EncoderAddRequest.decode = function decode(reader, length, error) {
16951
17086
  if (!(reader instanceof $Reader))
16952
17087
  reader = $Reader.create(reader);
16953
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17088
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
16954
17089
  while (reader.pos < end) {
16955
17090
  let tag = reader.uint32();
16956
17091
  if (tag === error)
16957
17092
  break;
16958
17093
  switch (tag >>> 3) {
16959
17094
  case 1: {
16960
- message.deviceIndex = reader.uint32();
17095
+ message.id = reader.string();
16961
17096
  break;
16962
17097
  }
16963
17098
  case 2: {
16964
- message.videoFormat = reader.int32();
17099
+ message.compositionId = reader.string();
16965
17100
  break;
16966
17101
  }
16967
17102
  case 3: {
16968
- message.keyAndFill = reader.bool();
17103
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
16969
17104
  break;
16970
17105
  }
16971
17106
  default:
@@ -16975,161 +17110,128 @@ var sesame = $root.sesame = (() => {
16975
17110
  }
16976
17111
  return message;
16977
17112
  };
16978
- DecklinkOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17113
+ EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
16979
17114
  if (!(reader instanceof $Reader))
16980
17115
  reader = new $Reader(reader);
16981
17116
  return this.decode(reader, reader.uint32());
16982
17117
  };
16983
- DecklinkOutputConfig.verify = function verify(message) {
17118
+ EncoderAddRequest.verify = function verify(message) {
16984
17119
  if (typeof message !== "object" || message === null)
16985
17120
  return "object expected";
16986
- if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex")) {
16987
- if (!$util.isInteger(message.deviceIndex))
16988
- return "deviceIndex: integer expected";
17121
+ if (message.id != null && message.hasOwnProperty("id")) {
17122
+ if (!$util.isString(message.id))
17123
+ return "id: string expected";
16989
17124
  }
16990
- if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
16991
- switch (message.videoFormat) {
16992
- default:
16993
- return "videoFormat: enum value expected";
16994
- case 0:
16995
- case 1:
16996
- case 2:
16997
- case 3:
16998
- case 4:
16999
- break;
17000
- }
17001
- if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
17002
- if (typeof message.keyAndFill !== "boolean")
17003
- return "keyAndFill: boolean expected";
17125
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17126
+ if (!$util.isString(message.compositionId))
17127
+ return "compositionId: string expected";
17128
+ }
17129
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
17130
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17131
+ if (error)
17132
+ return "encoder." + error;
17004
17133
  }
17005
17134
  return null;
17006
17135
  };
17007
- DecklinkOutputConfig.fromObject = function fromObject(object) {
17008
- if (object instanceof $root.sesame.v1.outputs.DecklinkOutputConfig)
17136
+ EncoderAddRequest.fromObject = function fromObject(object) {
17137
+ if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
17009
17138
  return object;
17010
- let message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17011
- if (object.deviceIndex != null)
17012
- message.deviceIndex = object.deviceIndex >>> 0;
17013
- switch (object.videoFormat) {
17014
- default:
17015
- if (typeof object.videoFormat === "number") {
17016
- message.videoFormat = object.videoFormat;
17017
- break;
17018
- }
17019
- break;
17020
- case "VIDEO_FORMAT_UNSPECIFIED":
17021
- case 0:
17022
- message.videoFormat = 0;
17023
- break;
17024
- case "VIDEO_FORMAT_1080_50I":
17025
- case 1:
17026
- message.videoFormat = 1;
17027
- break;
17028
- case "VIDEO_FORMAT_1080_50P":
17029
- case 2:
17030
- message.videoFormat = 2;
17031
- break;
17032
- case "VIDEO_FORMAT_1080_60I":
17033
- case 3:
17034
- message.videoFormat = 3;
17035
- break;
17036
- case "VIDEO_FORMAT_1080_60P":
17037
- case 4:
17038
- message.videoFormat = 4;
17039
- break;
17139
+ let message = new $root.sesame.v1.outputs.EncoderAddRequest();
17140
+ if (object.id != null)
17141
+ message.id = String(object.id);
17142
+ if (object.compositionId != null)
17143
+ message.compositionId = String(object.compositionId);
17144
+ if (object.encoder != null) {
17145
+ if (typeof object.encoder !== "object")
17146
+ throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
17147
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17040
17148
  }
17041
- if (object.keyAndFill != null)
17042
- message.keyAndFill = Boolean(object.keyAndFill);
17043
17149
  return message;
17044
17150
  };
17045
- DecklinkOutputConfig.toObject = function toObject(message, options) {
17151
+ EncoderAddRequest.toObject = function toObject(message, options) {
17046
17152
  if (!options)
17047
17153
  options = {};
17048
17154
  let object = {};
17049
17155
  if (options.defaults) {
17050
- object.deviceIndex = 0;
17051
- object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
17052
- object.keyAndFill = false;
17156
+ object.id = "";
17157
+ object.compositionId = "";
17158
+ object.encoder = null;
17053
17159
  }
17054
- if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
17055
- object.deviceIndex = message.deviceIndex;
17056
- if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
17057
- object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
17058
- if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
17059
- object.keyAndFill = message.keyAndFill;
17160
+ if (message.id != null && message.hasOwnProperty("id"))
17161
+ object.id = message.id;
17162
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17163
+ object.compositionId = message.compositionId;
17164
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17165
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17060
17166
  return object;
17061
17167
  };
17062
- DecklinkOutputConfig.prototype.toJSON = function toJSON() {
17168
+ EncoderAddRequest.prototype.toJSON = function toJSON() {
17063
17169
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17064
17170
  };
17065
- DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17171
+ EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17066
17172
  if (typeUrlPrefix === void 0) {
17067
17173
  typeUrlPrefix = "type.googleapis.com";
17068
17174
  }
17069
- return typeUrlPrefix + "/sesame.v1.outputs.DecklinkOutputConfig";
17175
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
17070
17176
  };
17071
- return DecklinkOutputConfig;
17177
+ return EncoderAddRequest;
17072
17178
  }();
17073
- outputs.EncodedWebSocketOutputConfig = function() {
17074
- function EncodedWebSocketOutputConfig(properties) {
17075
- this.metadataTracks = [];
17179
+ outputs.EncoderUpdateRequest = function() {
17180
+ function EncoderUpdateRequest(properties) {
17076
17181
  if (properties) {
17077
17182
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17078
17183
  if (properties[keys[i]] != null)
17079
17184
  this[keys[i]] = properties[keys[i]];
17080
17185
  }
17081
17186
  }
17082
- EncodedWebSocketOutputConfig.prototype.channel = "";
17083
- EncodedWebSocketOutputConfig.prototype.encoder = null;
17084
- EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
17085
- EncodedWebSocketOutputConfig.create = function create(properties) {
17086
- return new EncodedWebSocketOutputConfig(properties);
17187
+ EncoderUpdateRequest.prototype.id = "";
17188
+ EncoderUpdateRequest.prototype.compositionId = "";
17189
+ EncoderUpdateRequest.prototype.encoder = null;
17190
+ EncoderUpdateRequest.create = function create(properties) {
17191
+ return new EncoderUpdateRequest(properties);
17087
17192
  };
17088
- EncodedWebSocketOutputConfig.encode = function encode(message, writer) {
17193
+ EncoderUpdateRequest.encode = function encode(message, writer) {
17089
17194
  if (!writer)
17090
17195
  writer = $Writer.create();
17091
- if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
17196
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17092
17197
  writer.uint32(
17093
17198
  /* id 1, wireType 2 =*/
17094
17199
  10
17095
- ).string(message.channel);
17096
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17097
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17200
+ ).string(message.id);
17201
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
17202
+ writer.uint32(
17098
17203
  /* id 2, wireType 2 =*/
17099
17204
  18
17205
+ ).string(message.compositionId);
17206
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17207
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17208
+ /* id 3, wireType 2 =*/
17209
+ 26
17100
17210
  ).fork()).ldelim();
17101
- if (message.metadataTracks != null && message.metadataTracks.length)
17102
- for (let i = 0; i < message.metadataTracks.length; ++i)
17103
- writer.uint32(
17104
- /* id 3, wireType 2 =*/
17105
- 26
17106
- ).string(message.metadataTracks[i]);
17107
17211
  return writer;
17108
17212
  };
17109
- EncodedWebSocketOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17213
+ EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
17110
17214
  return this.encode(message, writer).ldelim();
17111
17215
  };
17112
- EncodedWebSocketOutputConfig.decode = function decode(reader, length, error) {
17216
+ EncoderUpdateRequest.decode = function decode(reader, length, error) {
17113
17217
  if (!(reader instanceof $Reader))
17114
17218
  reader = $Reader.create(reader);
17115
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17219
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17116
17220
  while (reader.pos < end) {
17117
17221
  let tag = reader.uint32();
17118
17222
  if (tag === error)
17119
17223
  break;
17120
17224
  switch (tag >>> 3) {
17121
17225
  case 1: {
17122
- message.channel = reader.string();
17226
+ message.id = reader.string();
17123
17227
  break;
17124
17228
  }
17125
17229
  case 2: {
17126
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17230
+ message.compositionId = reader.string();
17127
17231
  break;
17128
17232
  }
17129
17233
  case 3: {
17130
- if (!(message.metadataTracks && message.metadataTracks.length))
17131
- message.metadataTracks = [];
17132
- message.metadataTracks.push(reader.string());
17234
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17133
17235
  break;
17134
17236
  }
17135
17237
  default:
@@ -17139,43 +17241,422 @@ var sesame = $root.sesame = (() => {
17139
17241
  }
17140
17242
  return message;
17141
17243
  };
17142
- EncodedWebSocketOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17244
+ EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
17143
17245
  if (!(reader instanceof $Reader))
17144
17246
  reader = new $Reader(reader);
17145
17247
  return this.decode(reader, reader.uint32());
17146
17248
  };
17147
- EncodedWebSocketOutputConfig.verify = function verify(message) {
17249
+ EncoderUpdateRequest.verify = function verify(message) {
17148
17250
  if (typeof message !== "object" || message === null)
17149
17251
  return "object expected";
17150
- if (message.channel != null && message.hasOwnProperty("channel")) {
17151
- if (!$util.isString(message.channel))
17152
- return "channel: string expected";
17252
+ if (message.id != null && message.hasOwnProperty("id")) {
17253
+ if (!$util.isString(message.id))
17254
+ return "id: string expected";
17255
+ }
17256
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17257
+ if (!$util.isString(message.compositionId))
17258
+ return "compositionId: string expected";
17153
17259
  }
17154
17260
  if (message.encoder != null && message.hasOwnProperty("encoder")) {
17155
17261
  let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17156
17262
  if (error)
17157
17263
  return "encoder." + error;
17158
17264
  }
17159
- if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
17160
- if (!Array.isArray(message.metadataTracks))
17161
- return "metadataTracks: array expected";
17162
- for (let i = 0; i < message.metadataTracks.length; ++i)
17163
- if (!$util.isString(message.metadataTracks[i]))
17164
- return "metadataTracks: string[] expected";
17165
- }
17166
17265
  return null;
17167
17266
  };
17168
- EncodedWebSocketOutputConfig.fromObject = function fromObject(object) {
17169
- if (object instanceof $root.sesame.v1.outputs.EncodedWebSocketOutputConfig)
17267
+ EncoderUpdateRequest.fromObject = function fromObject(object) {
17268
+ if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
17170
17269
  return object;
17171
- let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17172
- if (object.channel != null)
17173
- message.channel = String(object.channel);
17174
- if (object.encoder != null) {
17175
- if (typeof object.encoder !== "object")
17176
- throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
17177
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17270
+ let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17271
+ if (object.id != null)
17272
+ message.id = String(object.id);
17273
+ if (object.compositionId != null)
17274
+ message.compositionId = String(object.compositionId);
17275
+ if (object.encoder != null) {
17276
+ if (typeof object.encoder !== "object")
17277
+ throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
17278
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17279
+ }
17280
+ return message;
17281
+ };
17282
+ EncoderUpdateRequest.toObject = function toObject(message, options) {
17283
+ if (!options)
17284
+ options = {};
17285
+ let object = {};
17286
+ if (options.defaults) {
17287
+ object.id = "";
17288
+ object.compositionId = "";
17289
+ object.encoder = null;
17290
+ }
17291
+ if (message.id != null && message.hasOwnProperty("id"))
17292
+ object.id = message.id;
17293
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17294
+ object.compositionId = message.compositionId;
17295
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17296
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17297
+ return object;
17298
+ };
17299
+ EncoderUpdateRequest.prototype.toJSON = function toJSON() {
17300
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17301
+ };
17302
+ EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17303
+ if (typeUrlPrefix === void 0) {
17304
+ typeUrlPrefix = "type.googleapis.com";
17305
+ }
17306
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
17307
+ };
17308
+ return EncoderUpdateRequest;
17309
+ }();
17310
+ outputs.EncoderRemoveRequest = function() {
17311
+ function EncoderRemoveRequest(properties) {
17312
+ if (properties) {
17313
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17314
+ if (properties[keys[i]] != null)
17315
+ this[keys[i]] = properties[keys[i]];
17316
+ }
17317
+ }
17318
+ EncoderRemoveRequest.prototype.id = "";
17319
+ EncoderRemoveRequest.create = function create(properties) {
17320
+ return new EncoderRemoveRequest(properties);
17321
+ };
17322
+ EncoderRemoveRequest.encode = function encode(message, writer) {
17323
+ if (!writer)
17324
+ writer = $Writer.create();
17325
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17326
+ writer.uint32(
17327
+ /* id 1, wireType 2 =*/
17328
+ 10
17329
+ ).string(message.id);
17330
+ return writer;
17331
+ };
17332
+ EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
17333
+ return this.encode(message, writer).ldelim();
17334
+ };
17335
+ EncoderRemoveRequest.decode = function decode(reader, length, error) {
17336
+ if (!(reader instanceof $Reader))
17337
+ reader = $Reader.create(reader);
17338
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
17339
+ while (reader.pos < end) {
17340
+ let tag = reader.uint32();
17341
+ if (tag === error)
17342
+ break;
17343
+ switch (tag >>> 3) {
17344
+ case 1: {
17345
+ message.id = reader.string();
17346
+ break;
17347
+ }
17348
+ default:
17349
+ reader.skipType(tag & 7);
17350
+ break;
17351
+ }
17352
+ }
17353
+ return message;
17354
+ };
17355
+ EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
17356
+ if (!(reader instanceof $Reader))
17357
+ reader = new $Reader(reader);
17358
+ return this.decode(reader, reader.uint32());
17359
+ };
17360
+ EncoderRemoveRequest.verify = function verify(message) {
17361
+ if (typeof message !== "object" || message === null)
17362
+ return "object expected";
17363
+ if (message.id != null && message.hasOwnProperty("id")) {
17364
+ if (!$util.isString(message.id))
17365
+ return "id: string expected";
17366
+ }
17367
+ return null;
17368
+ };
17369
+ EncoderRemoveRequest.fromObject = function fromObject(object) {
17370
+ if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
17371
+ return object;
17372
+ let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
17373
+ if (object.id != null)
17374
+ message.id = String(object.id);
17375
+ return message;
17376
+ };
17377
+ EncoderRemoveRequest.toObject = function toObject(message, options) {
17378
+ if (!options)
17379
+ options = {};
17380
+ let object = {};
17381
+ if (options.defaults)
17382
+ object.id = "";
17383
+ if (message.id != null && message.hasOwnProperty("id"))
17384
+ object.id = message.id;
17385
+ return object;
17386
+ };
17387
+ EncoderRemoveRequest.prototype.toJSON = function toJSON() {
17388
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17389
+ };
17390
+ EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17391
+ if (typeUrlPrefix === void 0) {
17392
+ typeUrlPrefix = "type.googleapis.com";
17393
+ }
17394
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
17395
+ };
17396
+ return EncoderRemoveRequest;
17397
+ }();
17398
+ outputs.DecklinkOutputConfig = function() {
17399
+ function DecklinkOutputConfig(properties) {
17400
+ if (properties) {
17401
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17402
+ if (properties[keys[i]] != null)
17403
+ this[keys[i]] = properties[keys[i]];
17404
+ }
17405
+ }
17406
+ DecklinkOutputConfig.prototype.deviceIndex = 0;
17407
+ DecklinkOutputConfig.prototype.videoFormat = 0;
17408
+ DecklinkOutputConfig.prototype.keyAndFill = false;
17409
+ DecklinkOutputConfig.create = function create(properties) {
17410
+ return new DecklinkOutputConfig(properties);
17411
+ };
17412
+ DecklinkOutputConfig.encode = function encode(message, writer) {
17413
+ if (!writer)
17414
+ writer = $Writer.create();
17415
+ if (message.deviceIndex != null && Object.hasOwnProperty.call(message, "deviceIndex"))
17416
+ writer.uint32(
17417
+ /* id 1, wireType 0 =*/
17418
+ 8
17419
+ ).uint32(message.deviceIndex);
17420
+ if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
17421
+ writer.uint32(
17422
+ /* id 2, wireType 0 =*/
17423
+ 16
17424
+ ).int32(message.videoFormat);
17425
+ if (message.keyAndFill != null && Object.hasOwnProperty.call(message, "keyAndFill"))
17426
+ writer.uint32(
17427
+ /* id 3, wireType 0 =*/
17428
+ 24
17429
+ ).bool(message.keyAndFill);
17430
+ return writer;
17431
+ };
17432
+ DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17433
+ return this.encode(message, writer).ldelim();
17434
+ };
17435
+ DecklinkOutputConfig.decode = function decode(reader, length, error) {
17436
+ if (!(reader instanceof $Reader))
17437
+ reader = $Reader.create(reader);
17438
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17439
+ while (reader.pos < end) {
17440
+ let tag = reader.uint32();
17441
+ if (tag === error)
17442
+ break;
17443
+ switch (tag >>> 3) {
17444
+ case 1: {
17445
+ message.deviceIndex = reader.uint32();
17446
+ break;
17447
+ }
17448
+ case 2: {
17449
+ message.videoFormat = reader.int32();
17450
+ break;
17451
+ }
17452
+ case 3: {
17453
+ message.keyAndFill = reader.bool();
17454
+ break;
17455
+ }
17456
+ default:
17457
+ reader.skipType(tag & 7);
17458
+ break;
17459
+ }
17460
+ }
17461
+ return message;
17462
+ };
17463
+ DecklinkOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17464
+ if (!(reader instanceof $Reader))
17465
+ reader = new $Reader(reader);
17466
+ return this.decode(reader, reader.uint32());
17467
+ };
17468
+ DecklinkOutputConfig.verify = function verify(message) {
17469
+ if (typeof message !== "object" || message === null)
17470
+ return "object expected";
17471
+ if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex")) {
17472
+ if (!$util.isInteger(message.deviceIndex))
17473
+ return "deviceIndex: integer expected";
17474
+ }
17475
+ if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
17476
+ switch (message.videoFormat) {
17477
+ default:
17478
+ return "videoFormat: enum value expected";
17479
+ case 0:
17480
+ case 1:
17481
+ case 2:
17482
+ case 3:
17483
+ case 4:
17484
+ break;
17485
+ }
17486
+ if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
17487
+ if (typeof message.keyAndFill !== "boolean")
17488
+ return "keyAndFill: boolean expected";
17489
+ }
17490
+ return null;
17491
+ };
17492
+ DecklinkOutputConfig.fromObject = function fromObject(object) {
17493
+ if (object instanceof $root.sesame.v1.outputs.DecklinkOutputConfig)
17494
+ return object;
17495
+ let message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17496
+ if (object.deviceIndex != null)
17497
+ message.deviceIndex = object.deviceIndex >>> 0;
17498
+ switch (object.videoFormat) {
17499
+ default:
17500
+ if (typeof object.videoFormat === "number") {
17501
+ message.videoFormat = object.videoFormat;
17502
+ break;
17503
+ }
17504
+ break;
17505
+ case "VIDEO_FORMAT_UNSPECIFIED":
17506
+ case 0:
17507
+ message.videoFormat = 0;
17508
+ break;
17509
+ case "VIDEO_FORMAT_1080_50I":
17510
+ case 1:
17511
+ message.videoFormat = 1;
17512
+ break;
17513
+ case "VIDEO_FORMAT_1080_50P":
17514
+ case 2:
17515
+ message.videoFormat = 2;
17516
+ break;
17517
+ case "VIDEO_FORMAT_1080_60I":
17518
+ case 3:
17519
+ message.videoFormat = 3;
17520
+ break;
17521
+ case "VIDEO_FORMAT_1080_60P":
17522
+ case 4:
17523
+ message.videoFormat = 4;
17524
+ break;
17525
+ }
17526
+ if (object.keyAndFill != null)
17527
+ message.keyAndFill = Boolean(object.keyAndFill);
17528
+ return message;
17529
+ };
17530
+ DecklinkOutputConfig.toObject = function toObject(message, options) {
17531
+ if (!options)
17532
+ options = {};
17533
+ let object = {};
17534
+ if (options.defaults) {
17535
+ object.deviceIndex = 0;
17536
+ object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
17537
+ object.keyAndFill = false;
17538
+ }
17539
+ if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
17540
+ object.deviceIndex = message.deviceIndex;
17541
+ if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
17542
+ object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
17543
+ if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
17544
+ object.keyAndFill = message.keyAndFill;
17545
+ return object;
17546
+ };
17547
+ DecklinkOutputConfig.prototype.toJSON = function toJSON() {
17548
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17549
+ };
17550
+ DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17551
+ if (typeUrlPrefix === void 0) {
17552
+ typeUrlPrefix = "type.googleapis.com";
17178
17553
  }
17554
+ return typeUrlPrefix + "/sesame.v1.outputs.DecklinkOutputConfig";
17555
+ };
17556
+ return DecklinkOutputConfig;
17557
+ }();
17558
+ outputs.EncodedWebSocketOutputConfig = function() {
17559
+ function EncodedWebSocketOutputConfig(properties) {
17560
+ this.metadataTracks = [];
17561
+ if (properties) {
17562
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17563
+ if (properties[keys[i]] != null)
17564
+ this[keys[i]] = properties[keys[i]];
17565
+ }
17566
+ }
17567
+ EncodedWebSocketOutputConfig.prototype.channel = "";
17568
+ EncodedWebSocketOutputConfig.prototype.encoderId = "";
17569
+ EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
17570
+ EncodedWebSocketOutputConfig.create = function create(properties) {
17571
+ return new EncodedWebSocketOutputConfig(properties);
17572
+ };
17573
+ EncodedWebSocketOutputConfig.encode = function encode(message, writer) {
17574
+ if (!writer)
17575
+ writer = $Writer.create();
17576
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
17577
+ writer.uint32(
17578
+ /* id 1, wireType 2 =*/
17579
+ 10
17580
+ ).string(message.channel);
17581
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
17582
+ writer.uint32(
17583
+ /* id 2, wireType 2 =*/
17584
+ 18
17585
+ ).string(message.encoderId);
17586
+ if (message.metadataTracks != null && message.metadataTracks.length)
17587
+ for (let i = 0; i < message.metadataTracks.length; ++i)
17588
+ writer.uint32(
17589
+ /* id 3, wireType 2 =*/
17590
+ 26
17591
+ ).string(message.metadataTracks[i]);
17592
+ return writer;
17593
+ };
17594
+ EncodedWebSocketOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17595
+ return this.encode(message, writer).ldelim();
17596
+ };
17597
+ EncodedWebSocketOutputConfig.decode = function decode(reader, length, error) {
17598
+ if (!(reader instanceof $Reader))
17599
+ reader = $Reader.create(reader);
17600
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17601
+ while (reader.pos < end) {
17602
+ let tag = reader.uint32();
17603
+ if (tag === error)
17604
+ break;
17605
+ switch (tag >>> 3) {
17606
+ case 1: {
17607
+ message.channel = reader.string();
17608
+ break;
17609
+ }
17610
+ case 2: {
17611
+ message.encoderId = reader.string();
17612
+ break;
17613
+ }
17614
+ case 3: {
17615
+ if (!(message.metadataTracks && message.metadataTracks.length))
17616
+ message.metadataTracks = [];
17617
+ message.metadataTracks.push(reader.string());
17618
+ break;
17619
+ }
17620
+ default:
17621
+ reader.skipType(tag & 7);
17622
+ break;
17623
+ }
17624
+ }
17625
+ return message;
17626
+ };
17627
+ EncodedWebSocketOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17628
+ if (!(reader instanceof $Reader))
17629
+ reader = new $Reader(reader);
17630
+ return this.decode(reader, reader.uint32());
17631
+ };
17632
+ EncodedWebSocketOutputConfig.verify = function verify(message) {
17633
+ if (typeof message !== "object" || message === null)
17634
+ return "object expected";
17635
+ if (message.channel != null && message.hasOwnProperty("channel")) {
17636
+ if (!$util.isString(message.channel))
17637
+ return "channel: string expected";
17638
+ }
17639
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
17640
+ if (!$util.isString(message.encoderId))
17641
+ return "encoderId: string expected";
17642
+ }
17643
+ if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
17644
+ if (!Array.isArray(message.metadataTracks))
17645
+ return "metadataTracks: array expected";
17646
+ for (let i = 0; i < message.metadataTracks.length; ++i)
17647
+ if (!$util.isString(message.metadataTracks[i]))
17648
+ return "metadataTracks: string[] expected";
17649
+ }
17650
+ return null;
17651
+ };
17652
+ EncodedWebSocketOutputConfig.fromObject = function fromObject(object) {
17653
+ if (object instanceof $root.sesame.v1.outputs.EncodedWebSocketOutputConfig)
17654
+ return object;
17655
+ let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17656
+ if (object.channel != null)
17657
+ message.channel = String(object.channel);
17658
+ if (object.encoderId != null)
17659
+ message.encoderId = String(object.encoderId);
17179
17660
  if (object.metadataTracks) {
17180
17661
  if (!Array.isArray(object.metadataTracks))
17181
17662
  throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
@@ -17193,12 +17674,12 @@ var sesame = $root.sesame = (() => {
17193
17674
  object.metadataTracks = [];
17194
17675
  if (options.defaults) {
17195
17676
  object.channel = "";
17196
- object.encoder = null;
17677
+ object.encoderId = "";
17197
17678
  }
17198
17679
  if (message.channel != null && message.hasOwnProperty("channel"))
17199
17680
  object.channel = message.channel;
17200
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17201
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17681
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
17682
+ object.encoderId = message.encoderId;
17202
17683
  if (message.metadataTracks && message.metadataTracks.length) {
17203
17684
  object.metadataTracks = [];
17204
17685
  for (let j = 0; j < message.metadataTracks.length; ++j)
@@ -17225,7 +17706,7 @@ var sesame = $root.sesame = (() => {
17225
17706
  this[keys[i]] = properties[keys[i]];
17226
17707
  }
17227
17708
  }
17228
- EncodedRecorderOutputConfig.prototype.encoder = null;
17709
+ EncodedRecorderOutputConfig.prototype.encoderId = "";
17229
17710
  EncodedRecorderOutputConfig.prototype.filename = "";
17230
17711
  EncodedRecorderOutputConfig.prototype.sizeGb = 0;
17231
17712
  EncodedRecorderOutputConfig.prototype.groupId = "";
@@ -17236,11 +17717,11 @@ var sesame = $root.sesame = (() => {
17236
17717
  EncodedRecorderOutputConfig.encode = function encode(message, writer) {
17237
17718
  if (!writer)
17238
17719
  writer = $Writer.create();
17239
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17240
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17720
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
17721
+ writer.uint32(
17241
17722
  /* id 1, wireType 2 =*/
17242
17723
  10
17243
- ).fork()).ldelim();
17724
+ ).string(message.encoderId);
17244
17725
  if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
17245
17726
  writer.uint32(
17246
17727
  /* id 2, wireType 2 =*/
@@ -17276,7 +17757,7 @@ var sesame = $root.sesame = (() => {
17276
17757
  break;
17277
17758
  switch (tag >>> 3) {
17278
17759
  case 1: {
17279
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17760
+ message.encoderId = reader.string();
17280
17761
  break;
17281
17762
  }
17282
17763
  case 2: {
@@ -17310,10 +17791,9 @@ var sesame = $root.sesame = (() => {
17310
17791
  EncodedRecorderOutputConfig.verify = function verify(message) {
17311
17792
  if (typeof message !== "object" || message === null)
17312
17793
  return "object expected";
17313
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17314
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17315
- if (error)
17316
- return "encoder." + error;
17794
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
17795
+ if (!$util.isString(message.encoderId))
17796
+ return "encoderId: string expected";
17317
17797
  }
17318
17798
  if (message.filename != null && message.hasOwnProperty("filename")) {
17319
17799
  if (!$util.isString(message.filename))
@@ -17342,11 +17822,8 @@ var sesame = $root.sesame = (() => {
17342
17822
  if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
17343
17823
  return object;
17344
17824
  let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
17345
- if (object.encoder != null) {
17346
- if (typeof object.encoder !== "object")
17347
- throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
17348
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17349
- }
17825
+ if (object.encoderId != null)
17826
+ message.encoderId = String(object.encoderId);
17350
17827
  if (object.filename != null)
17351
17828
  message.filename = String(object.filename);
17352
17829
  if (object.sizeGb != null)
@@ -17380,14 +17857,14 @@ var sesame = $root.sesame = (() => {
17380
17857
  options = {};
17381
17858
  let object = {};
17382
17859
  if (options.defaults) {
17383
- object.encoder = null;
17860
+ object.encoderId = "";
17384
17861
  object.filename = "";
17385
17862
  object.sizeGb = 0;
17386
17863
  object.groupId = "";
17387
17864
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
17388
- }
17389
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17390
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17865
+ }
17866
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
17867
+ object.encoderId = message.encoderId;
17391
17868
  if (message.filename != null && message.hasOwnProperty("filename"))
17392
17869
  object.filename = message.filename;
17393
17870
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -17680,7 +18157,7 @@ var sesame = $root.sesame = (() => {
17680
18157
  }
17681
18158
  }
17682
18159
  EncodedSrtOutputConfig.prototype.url = "";
17683
- EncodedSrtOutputConfig.prototype.encoder = null;
18160
+ EncodedSrtOutputConfig.prototype.encoderId = "";
17684
18161
  EncodedSrtOutputConfig.create = function create(properties) {
17685
18162
  return new EncodedSrtOutputConfig(properties);
17686
18163
  };
@@ -17692,11 +18169,11 @@ var sesame = $root.sesame = (() => {
17692
18169
  /* id 1, wireType 2 =*/
17693
18170
  10
17694
18171
  ).string(message.url);
17695
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17696
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18172
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18173
+ writer.uint32(
17697
18174
  /* id 2, wireType 2 =*/
17698
18175
  18
17699
- ).fork()).ldelim();
18176
+ ).string(message.encoderId);
17700
18177
  return writer;
17701
18178
  };
17702
18179
  EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -17716,7 +18193,7 @@ var sesame = $root.sesame = (() => {
17716
18193
  break;
17717
18194
  }
17718
18195
  case 2: {
17719
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18196
+ message.encoderId = reader.string();
17720
18197
  break;
17721
18198
  }
17722
18199
  default:
@@ -17738,10 +18215,9 @@ var sesame = $root.sesame = (() => {
17738
18215
  if (!$util.isString(message.url))
17739
18216
  return "url: string expected";
17740
18217
  }
17741
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17742
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17743
- if (error)
17744
- return "encoder." + error;
18218
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18219
+ if (!$util.isString(message.encoderId))
18220
+ return "encoderId: string expected";
17745
18221
  }
17746
18222
  return null;
17747
18223
  };
@@ -17751,11 +18227,8 @@ var sesame = $root.sesame = (() => {
17751
18227
  let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
17752
18228
  if (object.url != null)
17753
18229
  message.url = String(object.url);
17754
- if (object.encoder != null) {
17755
- if (typeof object.encoder !== "object")
17756
- throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
17757
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17758
- }
18230
+ if (object.encoderId != null)
18231
+ message.encoderId = String(object.encoderId);
17759
18232
  return message;
17760
18233
  };
17761
18234
  EncodedSrtOutputConfig.toObject = function toObject(message, options) {
@@ -17764,12 +18237,12 @@ var sesame = $root.sesame = (() => {
17764
18237
  let object = {};
17765
18238
  if (options.defaults) {
17766
18239
  object.url = "";
17767
- object.encoder = null;
18240
+ object.encoderId = "";
17768
18241
  }
17769
18242
  if (message.url != null && message.hasOwnProperty("url"))
17770
18243
  object.url = message.url;
17771
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17772
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18244
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18245
+ object.encoderId = message.encoderId;
17773
18246
  return object;
17774
18247
  };
17775
18248
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -17792,7 +18265,7 @@ var sesame = $root.sesame = (() => {
17792
18265
  this[keys[i]] = properties[keys[i]];
17793
18266
  }
17794
18267
  }
17795
- EncodedMoqOutputConfig.prototype.encoder = null;
18268
+ EncodedMoqOutputConfig.prototype.encoderId = "";
17796
18269
  EncodedMoqOutputConfig.prototype.url = "";
17797
18270
  EncodedMoqOutputConfig.prototype.broadcast = "";
17798
18271
  EncodedMoqOutputConfig.prototype.key = "";
@@ -17803,11 +18276,11 @@ var sesame = $root.sesame = (() => {
17803
18276
  EncodedMoqOutputConfig.encode = function encode(message, writer) {
17804
18277
  if (!writer)
17805
18278
  writer = $Writer.create();
17806
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17807
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18279
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18280
+ writer.uint32(
17808
18281
  /* id 1, wireType 2 =*/
17809
18282
  10
17810
- ).fork()).ldelim();
18283
+ ).string(message.encoderId);
17811
18284
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
17812
18285
  writer.uint32(
17813
18286
  /* id 2, wireType 2 =*/
@@ -17844,7 +18317,7 @@ var sesame = $root.sesame = (() => {
17844
18317
  break;
17845
18318
  switch (tag >>> 3) {
17846
18319
  case 1: {
17847
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18320
+ message.encoderId = reader.string();
17848
18321
  break;
17849
18322
  }
17850
18323
  case 2: {
@@ -17880,10 +18353,9 @@ var sesame = $root.sesame = (() => {
17880
18353
  EncodedMoqOutputConfig.verify = function verify(message) {
17881
18354
  if (typeof message !== "object" || message === null)
17882
18355
  return "object expected";
17883
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17884
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17885
- if (error)
17886
- return "encoder." + error;
18356
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18357
+ if (!$util.isString(message.encoderId))
18358
+ return "encoderId: string expected";
17887
18359
  }
17888
18360
  if (message.url != null && message.hasOwnProperty("url")) {
17889
18361
  if (!$util.isString(message.url))
@@ -17910,11 +18382,8 @@ var sesame = $root.sesame = (() => {
17910
18382
  if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
17911
18383
  return object;
17912
18384
  let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
17913
- if (object.encoder != null) {
17914
- if (typeof object.encoder !== "object")
17915
- throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
17916
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17917
- }
18385
+ if (object.encoderId != null)
18386
+ message.encoderId = String(object.encoderId);
17918
18387
  if (object.url != null)
17919
18388
  message.url = String(object.url);
17920
18389
  if (object.broadcast != null)
@@ -17937,13 +18406,13 @@ var sesame = $root.sesame = (() => {
17937
18406
  if (options.arrays || options.defaults)
17938
18407
  object.metadataTracks = [];
17939
18408
  if (options.defaults) {
17940
- object.encoder = null;
18409
+ object.encoderId = "";
17941
18410
  object.url = "";
17942
18411
  object.broadcast = "";
17943
18412
  object.key = "";
17944
18413
  }
17945
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17946
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18414
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18415
+ object.encoderId = message.encoderId;
17947
18416
  if (message.url != null && message.hasOwnProperty("url"))
17948
18417
  object.url = message.url;
17949
18418
  if (message.broadcast != null && message.hasOwnProperty("broadcast"))
@@ -18999,6 +19468,7 @@ var sesame = $root.sesame = (() => {
18999
19468
  OutputStatus.prototype.url = "";
19000
19469
  OutputStatus.prototype.bufferSize = 0;
19001
19470
  OutputStatus.prototype.srtStats = null;
19471
+ OutputStatus.prototype.encoderId = "";
19002
19472
  let $oneOfFields;
19003
19473
  Object.defineProperty(OutputStatus.prototype, "_msg", {
19004
19474
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -19049,6 +19519,11 @@ var sesame = $root.sesame = (() => {
19049
19519
  /* id 7, wireType 2 =*/
19050
19520
  58
19051
19521
  ).fork()).ldelim();
19522
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
19523
+ writer.uint32(
19524
+ /* id 8, wireType 2 =*/
19525
+ 66
19526
+ ).string(message.encoderId);
19052
19527
  return writer;
19053
19528
  };
19054
19529
  OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -19091,6 +19566,10 @@ var sesame = $root.sesame = (() => {
19091
19566
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
19092
19567
  break;
19093
19568
  }
19569
+ case 8: {
19570
+ message.encoderId = reader.string();
19571
+ break;
19572
+ }
19094
19573
  default:
19095
19574
  reader.skipType(tag & 7);
19096
19575
  break;
@@ -19159,6 +19638,10 @@ var sesame = $root.sesame = (() => {
19159
19638
  return "srtStats." + error;
19160
19639
  }
19161
19640
  }
19641
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
19642
+ if (!$util.isString(message.encoderId))
19643
+ return "encoderId: string expected";
19644
+ }
19162
19645
  return null;
19163
19646
  };
19164
19647
  OutputStatus.fromObject = function fromObject(object) {
@@ -19254,6 +19737,8 @@ var sesame = $root.sesame = (() => {
19254
19737
  throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
19255
19738
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
19256
19739
  }
19740
+ if (object.encoderId != null)
19741
+ message.encoderId = String(object.encoderId);
19257
19742
  return message;
19258
19743
  };
19259
19744
  OutputStatus.toObject = function toObject(message, options) {
@@ -19266,6 +19751,7 @@ var sesame = $root.sesame = (() => {
19266
19751
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
19267
19752
  object.url = "";
19268
19753
  object.bufferSize = 0;
19754
+ object.encoderId = "";
19269
19755
  }
19270
19756
  if (message.id != null && message.hasOwnProperty("id"))
19271
19757
  object.id = message.id;
@@ -19287,6 +19773,8 @@ var sesame = $root.sesame = (() => {
19287
19773
  if (options.oneofs)
19288
19774
  object._srtStats = "srtStats";
19289
19775
  }
19776
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
19777
+ object.encoderId = message.encoderId;
19290
19778
  return object;
19291
19779
  };
19292
19780
  OutputStatus.prototype.toJSON = function toJSON() {
@@ -19300,6 +19788,241 @@ var sesame = $root.sesame = (() => {
19300
19788
  };
19301
19789
  return OutputStatus;
19302
19790
  }();
19791
+ outputs.EncoderStatus = function() {
19792
+ function EncoderStatus(properties) {
19793
+ if (properties) {
19794
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19795
+ if (properties[keys[i]] != null)
19796
+ this[keys[i]] = properties[keys[i]];
19797
+ }
19798
+ }
19799
+ EncoderStatus.prototype.id = "";
19800
+ EncoderStatus.prototype.type = 0;
19801
+ EncoderStatus.prototype.state = 0;
19802
+ EncoderStatus.prototype.msg = null;
19803
+ EncoderStatus.prototype.compositionId = "";
19804
+ let $oneOfFields;
19805
+ Object.defineProperty(EncoderStatus.prototype, "_msg", {
19806
+ get: $util.oneOfGetter($oneOfFields = ["msg"]),
19807
+ set: $util.oneOfSetter($oneOfFields)
19808
+ });
19809
+ EncoderStatus.create = function create(properties) {
19810
+ return new EncoderStatus(properties);
19811
+ };
19812
+ EncoderStatus.encode = function encode(message, writer) {
19813
+ if (!writer)
19814
+ writer = $Writer.create();
19815
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
19816
+ writer.uint32(
19817
+ /* id 1, wireType 2 =*/
19818
+ 10
19819
+ ).string(message.id);
19820
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
19821
+ writer.uint32(
19822
+ /* id 2, wireType 0 =*/
19823
+ 16
19824
+ ).int32(message.type);
19825
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
19826
+ writer.uint32(
19827
+ /* id 3, wireType 0 =*/
19828
+ 24
19829
+ ).int32(message.state);
19830
+ if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
19831
+ writer.uint32(
19832
+ /* id 4, wireType 2 =*/
19833
+ 34
19834
+ ).string(message.msg);
19835
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
19836
+ writer.uint32(
19837
+ /* id 5, wireType 2 =*/
19838
+ 42
19839
+ ).string(message.compositionId);
19840
+ return writer;
19841
+ };
19842
+ EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
19843
+ return this.encode(message, writer).ldelim();
19844
+ };
19845
+ EncoderStatus.decode = function decode(reader, length, error) {
19846
+ if (!(reader instanceof $Reader))
19847
+ reader = $Reader.create(reader);
19848
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
19849
+ while (reader.pos < end) {
19850
+ let tag = reader.uint32();
19851
+ if (tag === error)
19852
+ break;
19853
+ switch (tag >>> 3) {
19854
+ case 1: {
19855
+ message.id = reader.string();
19856
+ break;
19857
+ }
19858
+ case 2: {
19859
+ message.type = reader.int32();
19860
+ break;
19861
+ }
19862
+ case 3: {
19863
+ message.state = reader.int32();
19864
+ break;
19865
+ }
19866
+ case 4: {
19867
+ message.msg = reader.string();
19868
+ break;
19869
+ }
19870
+ case 5: {
19871
+ message.compositionId = reader.string();
19872
+ break;
19873
+ }
19874
+ default:
19875
+ reader.skipType(tag & 7);
19876
+ break;
19877
+ }
19878
+ }
19879
+ return message;
19880
+ };
19881
+ EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
19882
+ if (!(reader instanceof $Reader))
19883
+ reader = new $Reader(reader);
19884
+ return this.decode(reader, reader.uint32());
19885
+ };
19886
+ EncoderStatus.verify = function verify(message) {
19887
+ if (typeof message !== "object" || message === null)
19888
+ return "object expected";
19889
+ let properties = {};
19890
+ if (message.id != null && message.hasOwnProperty("id")) {
19891
+ if (!$util.isString(message.id))
19892
+ return "id: string expected";
19893
+ }
19894
+ if (message.type != null && message.hasOwnProperty("type"))
19895
+ switch (message.type) {
19896
+ default:
19897
+ return "type: enum value expected";
19898
+ case 0:
19899
+ case 1:
19900
+ break;
19901
+ }
19902
+ if (message.state != null && message.hasOwnProperty("state"))
19903
+ switch (message.state) {
19904
+ default:
19905
+ return "state: enum value expected";
19906
+ case 0:
19907
+ case 1:
19908
+ case 2:
19909
+ case 3:
19910
+ case 4:
19911
+ case 5:
19912
+ case 6:
19913
+ break;
19914
+ }
19915
+ if (message.msg != null && message.hasOwnProperty("msg")) {
19916
+ properties._msg = 1;
19917
+ if (!$util.isString(message.msg))
19918
+ return "msg: string expected";
19919
+ }
19920
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
19921
+ if (!$util.isString(message.compositionId))
19922
+ return "compositionId: string expected";
19923
+ }
19924
+ return null;
19925
+ };
19926
+ EncoderStatus.fromObject = function fromObject(object) {
19927
+ if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
19928
+ return object;
19929
+ let message = new $root.sesame.v1.outputs.EncoderStatus();
19930
+ if (object.id != null)
19931
+ message.id = String(object.id);
19932
+ switch (object.type) {
19933
+ default:
19934
+ if (typeof object.type === "number") {
19935
+ message.type = object.type;
19936
+ break;
19937
+ }
19938
+ break;
19939
+ case "ENCODER_TYPE_UNSPECIFIED":
19940
+ case 0:
19941
+ message.type = 0;
19942
+ break;
19943
+ case "ENCODER_TYPE_VIDEO":
19944
+ case 1:
19945
+ message.type = 1;
19946
+ break;
19947
+ }
19948
+ switch (object.state) {
19949
+ default:
19950
+ if (typeof object.state === "number") {
19951
+ message.state = object.state;
19952
+ break;
19953
+ }
19954
+ break;
19955
+ case "CONNECTION_STATE_UNSPECIFIED":
19956
+ case 0:
19957
+ message.state = 0;
19958
+ break;
19959
+ case "CONNECTION_STATE_INITIALIZING":
19960
+ case 1:
19961
+ message.state = 1;
19962
+ break;
19963
+ case "CONNECTION_STATE_CONNECTING":
19964
+ case 2:
19965
+ message.state = 2;
19966
+ break;
19967
+ case "CONNECTION_STATE_ONLINE":
19968
+ case 3:
19969
+ message.state = 3;
19970
+ break;
19971
+ case "CONNECTION_STATE_DEGRADED":
19972
+ case 4:
19973
+ message.state = 4;
19974
+ break;
19975
+ case "CONNECTION_STATE_OFFLINE":
19976
+ case 5:
19977
+ message.state = 5;
19978
+ break;
19979
+ case "CONNECTION_STATE_ERROR":
19980
+ case 6:
19981
+ message.state = 6;
19982
+ break;
19983
+ }
19984
+ if (object.msg != null)
19985
+ message.msg = String(object.msg);
19986
+ if (object.compositionId != null)
19987
+ message.compositionId = String(object.compositionId);
19988
+ return message;
19989
+ };
19990
+ EncoderStatus.toObject = function toObject(message, options) {
19991
+ if (!options)
19992
+ options = {};
19993
+ let object = {};
19994
+ if (options.defaults) {
19995
+ object.id = "";
19996
+ object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
19997
+ object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
19998
+ object.compositionId = "";
19999
+ }
20000
+ if (message.id != null && message.hasOwnProperty("id"))
20001
+ object.id = message.id;
20002
+ if (message.type != null && message.hasOwnProperty("type"))
20003
+ object.type = options.enums === String ? $root.sesame.v1.outputs.EncoderType[message.type] === void 0 ? message.type : $root.sesame.v1.outputs.EncoderType[message.type] : message.type;
20004
+ if (message.state != null && message.hasOwnProperty("state"))
20005
+ object.state = options.enums === String ? $root.sesame.v1.common.ConnectionState[message.state] === void 0 ? message.state : $root.sesame.v1.common.ConnectionState[message.state] : message.state;
20006
+ if (message.msg != null && message.hasOwnProperty("msg")) {
20007
+ object.msg = message.msg;
20008
+ if (options.oneofs)
20009
+ object._msg = "msg";
20010
+ }
20011
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
20012
+ object.compositionId = message.compositionId;
20013
+ return object;
20014
+ };
20015
+ EncoderStatus.prototype.toJSON = function toJSON() {
20016
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20017
+ };
20018
+ EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20019
+ if (typeUrlPrefix === void 0) {
20020
+ typeUrlPrefix = "type.googleapis.com";
20021
+ }
20022
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
20023
+ };
20024
+ return EncoderStatus;
20025
+ }();
19303
20026
  return outputs;
19304
20027
  }();
19305
20028
  v1.compositor = function() {
@@ -24718,6 +25441,21 @@ var CommandList = class {
24718
25441
  item.removeOutput = { id };
24719
25442
  return this.add(item, timeOffsetMs);
24720
25443
  }
25444
+ encoderAdd(id, cfg, timeOffsetMs) {
25445
+ let item = new sesame.v1.commands.CommandListItem();
25446
+ item.addEncoder = { id, ...cfg };
25447
+ return this.add(item, timeOffsetMs);
25448
+ }
25449
+ encoderUpdate(id, cfg, timeOffsetMs) {
25450
+ let item = new sesame.v1.commands.CommandListItem();
25451
+ item.updateEncoder = { id, ...cfg };
25452
+ return this.add(item, timeOffsetMs);
25453
+ }
25454
+ encoderRemove(id, timeOffsetMs) {
25455
+ let item = new sesame.v1.commands.CommandListItem();
25456
+ item.removeEncoder = { id };
25457
+ return this.add(item, timeOffsetMs);
25458
+ }
24721
25459
  audioMixerAdd(id, cfg, timeOffsetMs) {
24722
25460
  let item = new sesame.v1.commands.CommandListItem();
24723
25461
  item.addAudioMixer = { id, config: cfg };