@stinkycomputing/sesame-api-client 1.9.0-alpha.1 → 1.10.0-alpha.3

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.mjs CHANGED
@@ -6017,6 +6017,7 @@ var sesame = $root.sesame = (() => {
6017
6017
  values[valuesById[8] = "SOURCE_TYPE_SRT_STREAM"] = 8;
6018
6018
  values[valuesById[9] = "SOURCE_TYPE_WEBSOCKET"] = 9;
6019
6019
  values[valuesById[10] = "SOURCE_TYPE_MOQ"] = 10;
6020
+ values[valuesById[11] = "SOURCE_TYPE_SCOPE"] = 11;
6020
6021
  return values;
6021
6022
  }();
6022
6023
  sources.DeinterlaceType = function() {
@@ -6067,9 +6068,9 @@ var sesame = $root.sesame = (() => {
6067
6068
  sources.PreprocessStep = function() {
6068
6069
  const valuesById = {}, values = Object.create(valuesById);
6069
6070
  values[valuesById[0] = "PREPROCESS_STEP_UNSPECIFIED"] = 0;
6070
- values[valuesById[1] = "PREPROCESS_STEP_VIDEO_SCOPES"] = 1;
6071
6071
  values[valuesById[2] = "PREPROCESS_STEP_CHROMA_KEY"] = 2;
6072
6072
  values[valuesById[3] = "PREPROCESS_STEP_BLUR"] = 3;
6073
+ values[valuesById[4] = "PREPROCESS_STEP_COLOR_CORRECT"] = 4;
6073
6074
  return values;
6074
6075
  }();
6075
6076
  sources.VideoProcessorParam = function() {
@@ -6266,9 +6267,9 @@ var sesame = $root.sesame = (() => {
6266
6267
  default:
6267
6268
  return "type: enum value expected";
6268
6269
  case 0:
6269
- case 1:
6270
6270
  case 2:
6271
6271
  case 3:
6272
+ case 4:
6272
6273
  break;
6273
6274
  }
6274
6275
  if (message.params != null && message.hasOwnProperty("params")) {
@@ -6299,10 +6300,6 @@ var sesame = $root.sesame = (() => {
6299
6300
  case 0:
6300
6301
  message.type = 0;
6301
6302
  break;
6302
- case "PREPROCESS_STEP_VIDEO_SCOPES":
6303
- case 1:
6304
- message.type = 1;
6305
- break;
6306
6303
  case "PREPROCESS_STEP_CHROMA_KEY":
6307
6304
  case 2:
6308
6305
  message.type = 2;
@@ -6311,6 +6308,10 @@ var sesame = $root.sesame = (() => {
6311
6308
  case 3:
6312
6309
  message.type = 3;
6313
6310
  break;
6311
+ case "PREPROCESS_STEP_COLOR_CORRECT":
6312
+ case 4:
6313
+ message.type = 4;
6314
+ break;
6314
6315
  }
6315
6316
  if (object.params) {
6316
6317
  if (!Array.isArray(object.params))
@@ -7255,6 +7256,175 @@ var sesame = $root.sesame = (() => {
7255
7256
  };
7256
7257
  return RTTSourceConfig;
7257
7258
  }();
7259
+ sources.ScopeMode = function() {
7260
+ const valuesById = {}, values = Object.create(valuesById);
7261
+ values[valuesById[0] = "SCOPE_MODE_UNSPECIFIED"] = 0;
7262
+ values[valuesById[1] = "SCOPE_MODE_WAVEFORM"] = 1;
7263
+ values[valuesById[2] = "SCOPE_MODE_RGB_PARADE"] = 2;
7264
+ values[valuesById[3] = "SCOPE_MODE_VECTORSCOPE"] = 3;
7265
+ values[valuesById[4] = "SCOPE_MODE_AUDIO_PHASE"] = 4;
7266
+ return values;
7267
+ }();
7268
+ sources.ScopeSourceConfig = function() {
7269
+ function ScopeSourceConfig(properties) {
7270
+ if (properties) {
7271
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7272
+ if (properties[keys[i]] != null)
7273
+ this[keys[i]] = properties[keys[i]];
7274
+ }
7275
+ }
7276
+ ScopeSourceConfig.prototype.compositorId = "";
7277
+ ScopeSourceConfig.prototype.audioMix = "";
7278
+ ScopeSourceConfig.prototype.mode = 0;
7279
+ ScopeSourceConfig.create = function create(properties) {
7280
+ return new ScopeSourceConfig(properties);
7281
+ };
7282
+ ScopeSourceConfig.encode = function encode(message, writer) {
7283
+ if (!writer)
7284
+ writer = $Writer.create();
7285
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
7286
+ writer.uint32(
7287
+ /* id 1, wireType 2 =*/
7288
+ 10
7289
+ ).string(message.compositorId);
7290
+ if (message.audioMix != null && Object.hasOwnProperty.call(message, "audioMix"))
7291
+ writer.uint32(
7292
+ /* id 2, wireType 2 =*/
7293
+ 18
7294
+ ).string(message.audioMix);
7295
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
7296
+ writer.uint32(
7297
+ /* id 3, wireType 0 =*/
7298
+ 24
7299
+ ).int32(message.mode);
7300
+ return writer;
7301
+ };
7302
+ ScopeSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
7303
+ return this.encode(message, writer).ldelim();
7304
+ };
7305
+ ScopeSourceConfig.decode = function decode(reader, length, error) {
7306
+ if (!(reader instanceof $Reader))
7307
+ reader = $Reader.create(reader);
7308
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.ScopeSourceConfig();
7309
+ while (reader.pos < end) {
7310
+ let tag = reader.uint32();
7311
+ if (tag === error)
7312
+ break;
7313
+ switch (tag >>> 3) {
7314
+ case 1: {
7315
+ message.compositorId = reader.string();
7316
+ break;
7317
+ }
7318
+ case 2: {
7319
+ message.audioMix = reader.string();
7320
+ break;
7321
+ }
7322
+ case 3: {
7323
+ message.mode = reader.int32();
7324
+ break;
7325
+ }
7326
+ default:
7327
+ reader.skipType(tag & 7);
7328
+ break;
7329
+ }
7330
+ }
7331
+ return message;
7332
+ };
7333
+ ScopeSourceConfig.decodeDelimited = function decodeDelimited(reader) {
7334
+ if (!(reader instanceof $Reader))
7335
+ reader = new $Reader(reader);
7336
+ return this.decode(reader, reader.uint32());
7337
+ };
7338
+ ScopeSourceConfig.verify = function verify(message) {
7339
+ if (typeof message !== "object" || message === null)
7340
+ return "object expected";
7341
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
7342
+ if (!$util.isString(message.compositorId))
7343
+ return "compositorId: string expected";
7344
+ }
7345
+ if (message.audioMix != null && message.hasOwnProperty("audioMix")) {
7346
+ if (!$util.isString(message.audioMix))
7347
+ return "audioMix: string expected";
7348
+ }
7349
+ if (message.mode != null && message.hasOwnProperty("mode"))
7350
+ switch (message.mode) {
7351
+ default:
7352
+ return "mode: enum value expected";
7353
+ case 0:
7354
+ case 1:
7355
+ case 2:
7356
+ case 3:
7357
+ case 4:
7358
+ break;
7359
+ }
7360
+ return null;
7361
+ };
7362
+ ScopeSourceConfig.fromObject = function fromObject(object) {
7363
+ if (object instanceof $root.sesame.v1.sources.ScopeSourceConfig)
7364
+ return object;
7365
+ let message = new $root.sesame.v1.sources.ScopeSourceConfig();
7366
+ if (object.compositorId != null)
7367
+ message.compositorId = String(object.compositorId);
7368
+ if (object.audioMix != null)
7369
+ message.audioMix = String(object.audioMix);
7370
+ switch (object.mode) {
7371
+ default:
7372
+ if (typeof object.mode === "number") {
7373
+ message.mode = object.mode;
7374
+ break;
7375
+ }
7376
+ break;
7377
+ case "SCOPE_MODE_UNSPECIFIED":
7378
+ case 0:
7379
+ message.mode = 0;
7380
+ break;
7381
+ case "SCOPE_MODE_WAVEFORM":
7382
+ case 1:
7383
+ message.mode = 1;
7384
+ break;
7385
+ case "SCOPE_MODE_RGB_PARADE":
7386
+ case 2:
7387
+ message.mode = 2;
7388
+ break;
7389
+ case "SCOPE_MODE_VECTORSCOPE":
7390
+ case 3:
7391
+ message.mode = 3;
7392
+ break;
7393
+ case "SCOPE_MODE_AUDIO_PHASE":
7394
+ case 4:
7395
+ message.mode = 4;
7396
+ break;
7397
+ }
7398
+ return message;
7399
+ };
7400
+ ScopeSourceConfig.toObject = function toObject(message, options) {
7401
+ if (!options)
7402
+ options = {};
7403
+ let object = {};
7404
+ if (options.defaults) {
7405
+ object.compositorId = "";
7406
+ object.audioMix = "";
7407
+ object.mode = options.enums === String ? "SCOPE_MODE_UNSPECIFIED" : 0;
7408
+ }
7409
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
7410
+ object.compositorId = message.compositorId;
7411
+ if (message.audioMix != null && message.hasOwnProperty("audioMix"))
7412
+ object.audioMix = message.audioMix;
7413
+ if (message.mode != null && message.hasOwnProperty("mode"))
7414
+ object.mode = options.enums === String ? $root.sesame.v1.sources.ScopeMode[message.mode] === void 0 ? message.mode : $root.sesame.v1.sources.ScopeMode[message.mode] : message.mode;
7415
+ return object;
7416
+ };
7417
+ ScopeSourceConfig.prototype.toJSON = function toJSON() {
7418
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7419
+ };
7420
+ ScopeSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7421
+ if (typeUrlPrefix === void 0) {
7422
+ typeUrlPrefix = "type.googleapis.com";
7423
+ }
7424
+ return typeUrlPrefix + "/sesame.v1.sources.ScopeSourceConfig";
7425
+ };
7426
+ return ScopeSourceConfig;
7427
+ }();
7258
7428
  sources.DecklinkSourceConfig = function() {
7259
7429
  function DecklinkSourceConfig(properties) {
7260
7430
  if (properties) {
@@ -8230,9 +8400,10 @@ var sesame = $root.sesame = (() => {
8230
8400
  SourceConfig.prototype.srtStream = null;
8231
8401
  SourceConfig.prototype.websocket = null;
8232
8402
  SourceConfig.prototype.moq = null;
8403
+ SourceConfig.prototype.scope = null;
8233
8404
  let $oneOfFields;
8234
8405
  Object.defineProperty(SourceConfig.prototype, "details", {
8235
- get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq"]),
8406
+ get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq", "scope"]),
8236
8407
  set: $util.oneOfSetter($oneOfFields)
8237
8408
  });
8238
8409
  SourceConfig.create = function create(properties) {
@@ -8296,6 +8467,11 @@ var sesame = $root.sesame = (() => {
8296
8467
  /* id 19, wireType 2 =*/
8297
8468
  154
8298
8469
  ).fork()).ldelim();
8470
+ if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
8471
+ $root.sesame.v1.sources.ScopeSourceConfig.encode(message.scope, writer.uint32(
8472
+ /* id 20, wireType 2 =*/
8473
+ 162
8474
+ ).fork()).ldelim();
8299
8475
  return writer;
8300
8476
  };
8301
8477
  SourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8354,6 +8530,10 @@ var sesame = $root.sesame = (() => {
8354
8530
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.decode(reader, reader.uint32());
8355
8531
  break;
8356
8532
  }
8533
+ case 20: {
8534
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.decode(reader, reader.uint32());
8535
+ break;
8536
+ }
8357
8537
  default:
8358
8538
  reader.skipType(tag & 7);
8359
8539
  break;
@@ -8473,6 +8653,16 @@ var sesame = $root.sesame = (() => {
8473
8653
  return "moq." + error;
8474
8654
  }
8475
8655
  }
8656
+ if (message.scope != null && message.hasOwnProperty("scope")) {
8657
+ if (properties.details === 1)
8658
+ return "details: multiple values";
8659
+ properties.details = 1;
8660
+ {
8661
+ let error = $root.sesame.v1.sources.ScopeSourceConfig.verify(message.scope);
8662
+ if (error)
8663
+ return "scope." + error;
8664
+ }
8665
+ }
8476
8666
  return null;
8477
8667
  };
8478
8668
  SourceConfig.fromObject = function fromObject(object) {
@@ -8534,6 +8724,11 @@ var sesame = $root.sesame = (() => {
8534
8724
  throw TypeError(".sesame.v1.sources.SourceConfig.moq: object expected");
8535
8725
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.fromObject(object.moq);
8536
8726
  }
8727
+ if (object.scope != null) {
8728
+ if (typeof object.scope !== "object")
8729
+ throw TypeError(".sesame.v1.sources.SourceConfig.scope: object expected");
8730
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.fromObject(object.scope);
8731
+ }
8537
8732
  return message;
8538
8733
  };
8539
8734
  SourceConfig.toObject = function toObject(message, options) {
@@ -8594,6 +8789,11 @@ var sesame = $root.sesame = (() => {
8594
8789
  if (options.oneofs)
8595
8790
  object.details = "moq";
8596
8791
  }
8792
+ if (message.scope != null && message.hasOwnProperty("scope")) {
8793
+ object.scope = $root.sesame.v1.sources.ScopeSourceConfig.toObject(message.scope, options);
8794
+ if (options.oneofs)
8795
+ object.details = "scope";
8796
+ }
8597
8797
  return object;
8598
8798
  };
8599
8799
  SourceConfig.prototype.toJSON = function toJSON() {
@@ -8921,6 +9121,7 @@ var sesame = $root.sesame = (() => {
8921
9121
  }();
8922
9122
  sources.SourceStatus = function() {
8923
9123
  function SourceStatus(properties) {
9124
+ this.videoProcessors = [];
8924
9125
  if (properties) {
8925
9126
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8926
9127
  if (properties[keys[i]] != null)
@@ -8948,6 +9149,7 @@ var sesame = $root.sesame = (() => {
8948
9149
  SourceStatus.prototype.decodeTiming = null;
8949
9150
  SourceStatus.prototype.videoBufAvg = 0;
8950
9151
  SourceStatus.prototype.srtStats = null;
9152
+ SourceStatus.prototype.videoProcessors = $util.emptyArray;
8951
9153
  let $oneOfFields;
8952
9154
  Object.defineProperty(SourceStatus.prototype, "_msg", {
8953
9155
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -9068,6 +9270,12 @@ var sesame = $root.sesame = (() => {
9068
9270
  /* id 21, wireType 2 =*/
9069
9271
  170
9070
9272
  ).fork()).ldelim();
9273
+ if (message.videoProcessors != null && message.videoProcessors.length)
9274
+ for (let i = 0; i < message.videoProcessors.length; ++i)
9275
+ $root.sesame.v1.sources.VideoProcessor.encode(message.videoProcessors[i], writer.uint32(
9276
+ /* id 22, wireType 2 =*/
9277
+ 178
9278
+ ).fork()).ldelim();
9071
9279
  return writer;
9072
9280
  };
9073
9281
  SourceStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -9166,6 +9374,12 @@ var sesame = $root.sesame = (() => {
9166
9374
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.decode(reader, reader.uint32());
9167
9375
  break;
9168
9376
  }
9377
+ case 22: {
9378
+ if (!(message.videoProcessors && message.videoProcessors.length))
9379
+ message.videoProcessors = [];
9380
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessor.decode(reader, reader.uint32()));
9381
+ break;
9382
+ }
9169
9383
  default:
9170
9384
  reader.skipType(tag & 7);
9171
9385
  break;
@@ -9201,6 +9415,7 @@ var sesame = $root.sesame = (() => {
9201
9415
  case 8:
9202
9416
  case 9:
9203
9417
  case 10:
9418
+ case 11:
9204
9419
  break;
9205
9420
  }
9206
9421
  if (message.userId != null && message.hasOwnProperty("userId")) {
@@ -9302,6 +9517,15 @@ var sesame = $root.sesame = (() => {
9302
9517
  return "srtStats." + error;
9303
9518
  }
9304
9519
  }
9520
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
9521
+ if (!Array.isArray(message.videoProcessors))
9522
+ return "videoProcessors: array expected";
9523
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
9524
+ let error = $root.sesame.v1.sources.VideoProcessor.verify(message.videoProcessors[i]);
9525
+ if (error)
9526
+ return "videoProcessors." + error;
9527
+ }
9528
+ }
9305
9529
  return null;
9306
9530
  };
9307
9531
  SourceStatus.fromObject = function fromObject(object) {
@@ -9361,6 +9585,10 @@ var sesame = $root.sesame = (() => {
9361
9585
  case 10:
9362
9586
  message.type = 10;
9363
9587
  break;
9588
+ case "SOURCE_TYPE_SCOPE":
9589
+ case 11:
9590
+ message.type = 11;
9591
+ break;
9364
9592
  }
9365
9593
  if (object.userId != null)
9366
9594
  message.userId = String(object.userId);
@@ -9494,12 +9722,24 @@ var sesame = $root.sesame = (() => {
9494
9722
  throw TypeError(".sesame.v1.sources.SourceStatus.srtStats: object expected");
9495
9723
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.fromObject(object.srtStats);
9496
9724
  }
9725
+ if (object.videoProcessors) {
9726
+ if (!Array.isArray(object.videoProcessors))
9727
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: array expected");
9728
+ message.videoProcessors = [];
9729
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
9730
+ if (typeof object.videoProcessors[i] !== "object")
9731
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: object expected");
9732
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessor.fromObject(object.videoProcessors[i]);
9733
+ }
9734
+ }
9497
9735
  return message;
9498
9736
  };
9499
9737
  SourceStatus.toObject = function toObject(message, options) {
9500
9738
  if (!options)
9501
9739
  options = {};
9502
9740
  let object = {};
9741
+ if (options.arrays || options.defaults)
9742
+ object.videoProcessors = [];
9503
9743
  if (options.defaults) {
9504
9744
  object.id = "";
9505
9745
  object.type = options.enums === String ? "SOURCE_TYPE_UNSPECIFIED" : 0;
@@ -9590,6 +9830,11 @@ var sesame = $root.sesame = (() => {
9590
9830
  if (options.oneofs)
9591
9831
  object._srtStats = "srtStats";
9592
9832
  }
9833
+ if (message.videoProcessors && message.videoProcessors.length) {
9834
+ object.videoProcessors = [];
9835
+ for (let j = 0; j < message.videoProcessors.length; ++j)
9836
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessor.toObject(message.videoProcessors[j], options);
9837
+ }
9593
9838
  return object;
9594
9839
  };
9595
9840
  SourceStatus.prototype.toJSON = function toJSON() {
@@ -10734,6 +10979,7 @@ var sesame = $root.sesame = (() => {
10734
10979
  }
10735
10980
  TransportControlRequest.prototype.cmdType = 0;
10736
10981
  TransportControlRequest.prototype.value = null;
10982
+ TransportControlRequest.prototype.sourceId = "";
10737
10983
  TransportControlRequest.create = function create(properties) {
10738
10984
  return new TransportControlRequest(properties);
10739
10985
  };
@@ -10750,6 +10996,11 @@ var sesame = $root.sesame = (() => {
10750
10996
  /* id 2, wireType 2 =*/
10751
10997
  18
10752
10998
  ).fork()).ldelim();
10999
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
11000
+ writer.uint32(
11001
+ /* id 3, wireType 2 =*/
11002
+ 26
11003
+ ).string(message.sourceId);
10753
11004
  return writer;
10754
11005
  };
10755
11006
  TransportControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
@@ -10772,6 +11023,10 @@ var sesame = $root.sesame = (() => {
10772
11023
  message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
10773
11024
  break;
10774
11025
  }
11026
+ case 3: {
11027
+ message.sourceId = reader.string();
11028
+ break;
11029
+ }
10775
11030
  default:
10776
11031
  reader.skipType(tag & 7);
10777
11032
  break;
@@ -10815,6 +11070,10 @@ var sesame = $root.sesame = (() => {
10815
11070
  if (error)
10816
11071
  return "value." + error;
10817
11072
  }
11073
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
11074
+ if (!$util.isString(message.sourceId))
11075
+ return "sourceId: string expected";
11076
+ }
10818
11077
  return null;
10819
11078
  };
10820
11079
  TransportControlRequest.fromObject = function fromObject(object) {
@@ -10902,6 +11161,8 @@ var sesame = $root.sesame = (() => {
10902
11161
  throw TypeError(".sesame.v1.sources.TransportControlRequest.value: object expected");
10903
11162
  message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
10904
11163
  }
11164
+ if (object.sourceId != null)
11165
+ message.sourceId = String(object.sourceId);
10905
11166
  return message;
10906
11167
  };
10907
11168
  TransportControlRequest.toObject = function toObject(message, options) {
@@ -10911,11 +11172,14 @@ var sesame = $root.sesame = (() => {
10911
11172
  if (options.defaults) {
10912
11173
  object.cmdType = options.enums === String ? "SOURCE_TRANSPORT_CMD_UNSPECIFIED" : 0;
10913
11174
  object.value = null;
11175
+ object.sourceId = "";
10914
11176
  }
10915
11177
  if (message.cmdType != null && message.hasOwnProperty("cmdType"))
10916
11178
  object.cmdType = options.enums === String ? $root.sesame.v1.sources.SourceTransportCommandType[message.cmdType] === void 0 ? message.cmdType : $root.sesame.v1.sources.SourceTransportCommandType[message.cmdType] : message.cmdType;
10917
11179
  if (message.value != null && message.hasOwnProperty("value"))
10918
11180
  object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
11181
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
11182
+ object.sourceId = message.sourceId;
10919
11183
  return object;
10920
11184
  };
10921
11185
  TransportControlRequest.prototype.toJSON = function toJSON() {
@@ -10929,6 +11193,325 @@ var sesame = $root.sesame = (() => {
10929
11193
  };
10930
11194
  return TransportControlRequest;
10931
11195
  }();
11196
+ sources.VideoProcessorControlRequest = function() {
11197
+ function VideoProcessorControlRequest(properties) {
11198
+ this.params = [];
11199
+ if (properties) {
11200
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11201
+ if (properties[keys[i]] != null)
11202
+ this[keys[i]] = properties[keys[i]];
11203
+ }
11204
+ }
11205
+ VideoProcessorControlRequest.prototype.processorId = "";
11206
+ VideoProcessorControlRequest.prototype.params = $util.emptyArray;
11207
+ VideoProcessorControlRequest.create = function create(properties) {
11208
+ return new VideoProcessorControlRequest(properties);
11209
+ };
11210
+ VideoProcessorControlRequest.encode = function encode(message, writer) {
11211
+ if (!writer)
11212
+ writer = $Writer.create();
11213
+ if (message.processorId != null && Object.hasOwnProperty.call(message, "processorId"))
11214
+ writer.uint32(
11215
+ /* id 1, wireType 2 =*/
11216
+ 10
11217
+ ).string(message.processorId);
11218
+ if (message.params != null && message.params.length)
11219
+ for (let i = 0; i < message.params.length; ++i)
11220
+ $root.sesame.v1.sources.VideoProcessorParam.encode(message.params[i], writer.uint32(
11221
+ /* id 2, wireType 2 =*/
11222
+ 18
11223
+ ).fork()).ldelim();
11224
+ return writer;
11225
+ };
11226
+ VideoProcessorControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11227
+ return this.encode(message, writer).ldelim();
11228
+ };
11229
+ VideoProcessorControlRequest.decode = function decode(reader, length, error) {
11230
+ if (!(reader instanceof $Reader))
11231
+ reader = $Reader.create(reader);
11232
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11233
+ while (reader.pos < end) {
11234
+ let tag = reader.uint32();
11235
+ if (tag === error)
11236
+ break;
11237
+ switch (tag >>> 3) {
11238
+ case 1: {
11239
+ message.processorId = reader.string();
11240
+ break;
11241
+ }
11242
+ case 2: {
11243
+ if (!(message.params && message.params.length))
11244
+ message.params = [];
11245
+ message.params.push($root.sesame.v1.sources.VideoProcessorParam.decode(reader, reader.uint32()));
11246
+ break;
11247
+ }
11248
+ default:
11249
+ reader.skipType(tag & 7);
11250
+ break;
11251
+ }
11252
+ }
11253
+ return message;
11254
+ };
11255
+ VideoProcessorControlRequest.decodeDelimited = function decodeDelimited(reader) {
11256
+ if (!(reader instanceof $Reader))
11257
+ reader = new $Reader(reader);
11258
+ return this.decode(reader, reader.uint32());
11259
+ };
11260
+ VideoProcessorControlRequest.verify = function verify(message) {
11261
+ if (typeof message !== "object" || message === null)
11262
+ return "object expected";
11263
+ if (message.processorId != null && message.hasOwnProperty("processorId")) {
11264
+ if (!$util.isString(message.processorId))
11265
+ return "processorId: string expected";
11266
+ }
11267
+ if (message.params != null && message.hasOwnProperty("params")) {
11268
+ if (!Array.isArray(message.params))
11269
+ return "params: array expected";
11270
+ for (let i = 0; i < message.params.length; ++i) {
11271
+ let error = $root.sesame.v1.sources.VideoProcessorParam.verify(message.params[i]);
11272
+ if (error)
11273
+ return "params." + error;
11274
+ }
11275
+ }
11276
+ return null;
11277
+ };
11278
+ VideoProcessorControlRequest.fromObject = function fromObject(object) {
11279
+ if (object instanceof $root.sesame.v1.sources.VideoProcessorControlRequest)
11280
+ return object;
11281
+ let message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11282
+ if (object.processorId != null)
11283
+ message.processorId = String(object.processorId);
11284
+ if (object.params) {
11285
+ if (!Array.isArray(object.params))
11286
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: array expected");
11287
+ message.params = [];
11288
+ for (let i = 0; i < object.params.length; ++i) {
11289
+ if (typeof object.params[i] !== "object")
11290
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: object expected");
11291
+ message.params[i] = $root.sesame.v1.sources.VideoProcessorParam.fromObject(object.params[i]);
11292
+ }
11293
+ }
11294
+ return message;
11295
+ };
11296
+ VideoProcessorControlRequest.toObject = function toObject(message, options) {
11297
+ if (!options)
11298
+ options = {};
11299
+ let object = {};
11300
+ if (options.arrays || options.defaults)
11301
+ object.params = [];
11302
+ if (options.defaults)
11303
+ object.processorId = "";
11304
+ if (message.processorId != null && message.hasOwnProperty("processorId"))
11305
+ object.processorId = message.processorId;
11306
+ if (message.params && message.params.length) {
11307
+ object.params = [];
11308
+ for (let j = 0; j < message.params.length; ++j)
11309
+ object.params[j] = $root.sesame.v1.sources.VideoProcessorParam.toObject(message.params[j], options);
11310
+ }
11311
+ return object;
11312
+ };
11313
+ VideoProcessorControlRequest.prototype.toJSON = function toJSON() {
11314
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11315
+ };
11316
+ VideoProcessorControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11317
+ if (typeUrlPrefix === void 0) {
11318
+ typeUrlPrefix = "type.googleapis.com";
11319
+ }
11320
+ return typeUrlPrefix + "/sesame.v1.sources.VideoProcessorControlRequest";
11321
+ };
11322
+ return VideoProcessorControlRequest;
11323
+ }();
11324
+ sources.SourceControlRequest = function() {
11325
+ function SourceControlRequest(properties) {
11326
+ this.videoProcessors = [];
11327
+ this.resetProcessors = [];
11328
+ if (properties) {
11329
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11330
+ if (properties[keys[i]] != null)
11331
+ this[keys[i]] = properties[keys[i]];
11332
+ }
11333
+ }
11334
+ SourceControlRequest.prototype.videoProcessors = $util.emptyArray;
11335
+ SourceControlRequest.prototype.audioLevel = null;
11336
+ SourceControlRequest.prototype.resetProcessors = $util.emptyArray;
11337
+ SourceControlRequest.prototype.sourceId = "";
11338
+ let $oneOfFields;
11339
+ Object.defineProperty(SourceControlRequest.prototype, "_audioLevel", {
11340
+ get: $util.oneOfGetter($oneOfFields = ["audioLevel"]),
11341
+ set: $util.oneOfSetter($oneOfFields)
11342
+ });
11343
+ SourceControlRequest.create = function create(properties) {
11344
+ return new SourceControlRequest(properties);
11345
+ };
11346
+ SourceControlRequest.encode = function encode(message, writer) {
11347
+ if (!writer)
11348
+ writer = $Writer.create();
11349
+ if (message.videoProcessors != null && message.videoProcessors.length)
11350
+ for (let i = 0; i < message.videoProcessors.length; ++i)
11351
+ $root.sesame.v1.sources.VideoProcessorControlRequest.encode(message.videoProcessors[i], writer.uint32(
11352
+ /* id 1, wireType 2 =*/
11353
+ 10
11354
+ ).fork()).ldelim();
11355
+ if (message.audioLevel != null && Object.hasOwnProperty.call(message, "audioLevel"))
11356
+ writer.uint32(
11357
+ /* id 2, wireType 5 =*/
11358
+ 21
11359
+ ).float(message.audioLevel);
11360
+ if (message.resetProcessors != null && message.resetProcessors.length)
11361
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11362
+ writer.uint32(
11363
+ /* id 3, wireType 2 =*/
11364
+ 26
11365
+ ).string(message.resetProcessors[i]);
11366
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
11367
+ writer.uint32(
11368
+ /* id 4, wireType 2 =*/
11369
+ 34
11370
+ ).string(message.sourceId);
11371
+ return writer;
11372
+ };
11373
+ SourceControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11374
+ return this.encode(message, writer).ldelim();
11375
+ };
11376
+ SourceControlRequest.decode = function decode(reader, length, error) {
11377
+ if (!(reader instanceof $Reader))
11378
+ reader = $Reader.create(reader);
11379
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.SourceControlRequest();
11380
+ while (reader.pos < end) {
11381
+ let tag = reader.uint32();
11382
+ if (tag === error)
11383
+ break;
11384
+ switch (tag >>> 3) {
11385
+ case 1: {
11386
+ if (!(message.videoProcessors && message.videoProcessors.length))
11387
+ message.videoProcessors = [];
11388
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessorControlRequest.decode(reader, reader.uint32()));
11389
+ break;
11390
+ }
11391
+ case 2: {
11392
+ message.audioLevel = reader.float();
11393
+ break;
11394
+ }
11395
+ case 3: {
11396
+ if (!(message.resetProcessors && message.resetProcessors.length))
11397
+ message.resetProcessors = [];
11398
+ message.resetProcessors.push(reader.string());
11399
+ break;
11400
+ }
11401
+ case 4: {
11402
+ message.sourceId = reader.string();
11403
+ break;
11404
+ }
11405
+ default:
11406
+ reader.skipType(tag & 7);
11407
+ break;
11408
+ }
11409
+ }
11410
+ return message;
11411
+ };
11412
+ SourceControlRequest.decodeDelimited = function decodeDelimited(reader) {
11413
+ if (!(reader instanceof $Reader))
11414
+ reader = new $Reader(reader);
11415
+ return this.decode(reader, reader.uint32());
11416
+ };
11417
+ SourceControlRequest.verify = function verify(message) {
11418
+ if (typeof message !== "object" || message === null)
11419
+ return "object expected";
11420
+ let properties = {};
11421
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
11422
+ if (!Array.isArray(message.videoProcessors))
11423
+ return "videoProcessors: array expected";
11424
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
11425
+ let error = $root.sesame.v1.sources.VideoProcessorControlRequest.verify(message.videoProcessors[i]);
11426
+ if (error)
11427
+ return "videoProcessors." + error;
11428
+ }
11429
+ }
11430
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11431
+ properties._audioLevel = 1;
11432
+ if (typeof message.audioLevel !== "number")
11433
+ return "audioLevel: number expected";
11434
+ }
11435
+ if (message.resetProcessors != null && message.hasOwnProperty("resetProcessors")) {
11436
+ if (!Array.isArray(message.resetProcessors))
11437
+ return "resetProcessors: array expected";
11438
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11439
+ if (!$util.isString(message.resetProcessors[i]))
11440
+ return "resetProcessors: string[] expected";
11441
+ }
11442
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
11443
+ if (!$util.isString(message.sourceId))
11444
+ return "sourceId: string expected";
11445
+ }
11446
+ return null;
11447
+ };
11448
+ SourceControlRequest.fromObject = function fromObject(object) {
11449
+ if (object instanceof $root.sesame.v1.sources.SourceControlRequest)
11450
+ return object;
11451
+ let message = new $root.sesame.v1.sources.SourceControlRequest();
11452
+ if (object.videoProcessors) {
11453
+ if (!Array.isArray(object.videoProcessors))
11454
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: array expected");
11455
+ message.videoProcessors = [];
11456
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
11457
+ if (typeof object.videoProcessors[i] !== "object")
11458
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: object expected");
11459
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessorControlRequest.fromObject(object.videoProcessors[i]);
11460
+ }
11461
+ }
11462
+ if (object.audioLevel != null)
11463
+ message.audioLevel = Number(object.audioLevel);
11464
+ if (object.resetProcessors) {
11465
+ if (!Array.isArray(object.resetProcessors))
11466
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.resetProcessors: array expected");
11467
+ message.resetProcessors = [];
11468
+ for (let i = 0; i < object.resetProcessors.length; ++i)
11469
+ message.resetProcessors[i] = String(object.resetProcessors[i]);
11470
+ }
11471
+ if (object.sourceId != null)
11472
+ message.sourceId = String(object.sourceId);
11473
+ return message;
11474
+ };
11475
+ SourceControlRequest.toObject = function toObject(message, options) {
11476
+ if (!options)
11477
+ options = {};
11478
+ let object = {};
11479
+ if (options.arrays || options.defaults) {
11480
+ object.videoProcessors = [];
11481
+ object.resetProcessors = [];
11482
+ }
11483
+ if (options.defaults)
11484
+ object.sourceId = "";
11485
+ if (message.videoProcessors && message.videoProcessors.length) {
11486
+ object.videoProcessors = [];
11487
+ for (let j = 0; j < message.videoProcessors.length; ++j)
11488
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessorControlRequest.toObject(message.videoProcessors[j], options);
11489
+ }
11490
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11491
+ object.audioLevel = options.json && !isFinite(message.audioLevel) ? String(message.audioLevel) : message.audioLevel;
11492
+ if (options.oneofs)
11493
+ object._audioLevel = "audioLevel";
11494
+ }
11495
+ if (message.resetProcessors && message.resetProcessors.length) {
11496
+ object.resetProcessors = [];
11497
+ for (let j = 0; j < message.resetProcessors.length; ++j)
11498
+ object.resetProcessors[j] = message.resetProcessors[j];
11499
+ }
11500
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
11501
+ object.sourceId = message.sourceId;
11502
+ return object;
11503
+ };
11504
+ SourceControlRequest.prototype.toJSON = function toJSON() {
11505
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11506
+ };
11507
+ SourceControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11508
+ if (typeUrlPrefix === void 0) {
11509
+ typeUrlPrefix = "type.googleapis.com";
11510
+ }
11511
+ return typeUrlPrefix + "/sesame.v1.sources.SourceControlRequest";
11512
+ };
11513
+ return SourceControlRequest;
11514
+ }();
10932
11515
  return sources;
10933
11516
  }();
10934
11517
  v1.recorder = function() {
@@ -26600,6 +27183,8 @@ var sesame = $root.sesame = (() => {
26600
27183
  case 7:
26601
27184
  case 8:
26602
27185
  case 9:
27186
+ case 10:
27187
+ case 11:
26603
27188
  break;
26604
27189
  }
26605
27190
  return null;
@@ -26665,6 +27250,14 @@ var sesame = $root.sesame = (() => {
26665
27250
  case 9:
26666
27251
  message.dataType = 9;
26667
27252
  break;
27253
+ case "DATA_TYPE_SOURCE_CONTROL":
27254
+ case 10:
27255
+ message.dataType = 10;
27256
+ break;
27257
+ case "DATA_TYPE_SOURCE_STATUS":
27258
+ case 11:
27259
+ message.dataType = 11;
27260
+ break;
26668
27261
  }
26669
27262
  return message;
26670
27263
  };
@@ -27383,6 +27976,8 @@ var sesame = $root.sesame = (() => {
27383
27976
  values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
27384
27977
  values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
27385
27978
  values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
27979
+ values[valuesById[10] = "DATA_TYPE_SOURCE_CONTROL"] = 10;
27980
+ values[valuesById[11] = "DATA_TYPE_SOURCE_STATUS"] = 11;
27386
27981
  return values;
27387
27982
  }();
27388
27983
  wire.DataFrameData = function() {
@@ -27462,6 +28057,8 @@ var sesame = $root.sesame = (() => {
27462
28057
  case 7:
27463
28058
  case 8:
27464
28059
  case 9:
28060
+ case 10:
28061
+ case 11:
27465
28062
  break;
27466
28063
  }
27467
28064
  if (message.trackName != null && message.hasOwnProperty("trackName")) {
@@ -27521,6 +28118,14 @@ var sesame = $root.sesame = (() => {
27521
28118
  case 9:
27522
28119
  message.dataType = 9;
27523
28120
  break;
28121
+ case "DATA_TYPE_SOURCE_CONTROL":
28122
+ case 10:
28123
+ message.dataType = 10;
28124
+ break;
28125
+ case "DATA_TYPE_SOURCE_STATUS":
28126
+ case 11:
28127
+ message.dataType = 11;
28128
+ break;
27524
28129
  }
27525
28130
  if (object.trackName != null)
27526
28131
  message.trackName = String(object.trackName);
@@ -28219,6 +28824,36 @@ function parseDataFrame(frame) {
28219
28824
  trackName,
28220
28825
  request: sesame.v1.audio.AudioControlRequest.decode(payload)
28221
28826
  };
28827
+ case sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_CONTROL:
28828
+ return {
28829
+ dataType: "output-control",
28830
+ trackName,
28831
+ request: sesame.v1.outputs.OutputControlRequest.decode(payload)
28832
+ };
28833
+ case sesame.v1.wire.DataType.DATA_TYPE_SOURCE_CONTROL:
28834
+ return {
28835
+ dataType: "source-control",
28836
+ trackName,
28837
+ request: sesame.v1.sources.SourceControlRequest.decode(payload)
28838
+ };
28839
+ case sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_STATUS:
28840
+ return {
28841
+ dataType: "output-status",
28842
+ trackName,
28843
+ status: sesame.v1.outputs.OutputStatus.decode(payload)
28844
+ };
28845
+ case sesame.v1.wire.DataType.DATA_TYPE_SOURCE_STATUS:
28846
+ return {
28847
+ dataType: "source-status",
28848
+ trackName,
28849
+ status: sesame.v1.sources.SourceStatus.decode(payload)
28850
+ };
28851
+ case sesame.v1.wire.DataType.DATA_TYPE_ENGINE_STATUS:
28852
+ return {
28853
+ dataType: "engine-status",
28854
+ trackName,
28855
+ status: sesame.v1.status.Status.decode(payload)
28856
+ };
28222
28857
  case sesame.v1.wire.DataType.DATA_TYPE_BINARY:
28223
28858
  return { dataType: "binary", trackName, data: payload };
28224
28859
  default:
@@ -28271,6 +28906,26 @@ function buildTransportControlFrame(trackName, request) {
28271
28906
  payload
28272
28907
  );
28273
28908
  }
28909
+ function buildSourceControlFrame(trackName, request) {
28910
+ const payload = sesame.v1.sources.SourceControlRequest.encode(request).finish();
28911
+ return WireProtocol.serialize(
28912
+ {
28913
+ type: sesame.v1.wire.FrameType.FRAME_TYPE_DATA,
28914
+ data: { dataType: sesame.v1.wire.DataType.DATA_TYPE_SOURCE_CONTROL, trackName }
28915
+ },
28916
+ payload
28917
+ );
28918
+ }
28919
+ function buildOutputControlFrame(trackName, request) {
28920
+ const payload = sesame.v1.outputs.OutputControlRequest.encode(request).finish();
28921
+ return WireProtocol.serialize(
28922
+ {
28923
+ type: sesame.v1.wire.FrameType.FRAME_TYPE_DATA,
28924
+ data: { dataType: sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_CONTROL, trackName }
28925
+ },
28926
+ payload
28927
+ );
28928
+ }
28274
28929
  function buildBinaryDataFrame(trackName, payload) {
28275
28930
  return WireProtocol.serialize(
28276
28931
  {
@@ -28979,6 +29634,8 @@ export {
28979
29634
  WireProtocol,
28980
29635
  buildAudioControlFrame,
28981
29636
  buildBinaryDataFrame,
29637
+ buildOutputControlFrame,
29638
+ buildSourceControlFrame,
28982
29639
  buildTransportControlFrame,
28983
29640
  getLogger,
28984
29641
  getSideData,