@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.
@@ -6412,6 +6412,7 @@ var sesame = $root.sesame = (() => {
6412
6412
  values[valuesById[8] = "SOURCE_TYPE_SRT_STREAM"] = 8;
6413
6413
  values[valuesById[9] = "SOURCE_TYPE_WEBSOCKET"] = 9;
6414
6414
  values[valuesById[10] = "SOURCE_TYPE_MOQ"] = 10;
6415
+ values[valuesById[11] = "SOURCE_TYPE_SCOPE"] = 11;
6415
6416
  return values;
6416
6417
  }();
6417
6418
  sources.DeinterlaceType = function() {
@@ -6462,9 +6463,9 @@ var sesame = $root.sesame = (() => {
6462
6463
  sources.PreprocessStep = function() {
6463
6464
  const valuesById = {}, values = Object.create(valuesById);
6464
6465
  values[valuesById[0] = "PREPROCESS_STEP_UNSPECIFIED"] = 0;
6465
- values[valuesById[1] = "PREPROCESS_STEP_VIDEO_SCOPES"] = 1;
6466
6466
  values[valuesById[2] = "PREPROCESS_STEP_CHROMA_KEY"] = 2;
6467
6467
  values[valuesById[3] = "PREPROCESS_STEP_BLUR"] = 3;
6468
+ values[valuesById[4] = "PREPROCESS_STEP_COLOR_CORRECT"] = 4;
6468
6469
  return values;
6469
6470
  }();
6470
6471
  sources.VideoProcessorParam = function() {
@@ -6661,9 +6662,9 @@ var sesame = $root.sesame = (() => {
6661
6662
  default:
6662
6663
  return "type: enum value expected";
6663
6664
  case 0:
6664
- case 1:
6665
6665
  case 2:
6666
6666
  case 3:
6667
+ case 4:
6667
6668
  break;
6668
6669
  }
6669
6670
  if (message.params != null && message.hasOwnProperty("params")) {
@@ -6694,10 +6695,6 @@ var sesame = $root.sesame = (() => {
6694
6695
  case 0:
6695
6696
  message.type = 0;
6696
6697
  break;
6697
- case "PREPROCESS_STEP_VIDEO_SCOPES":
6698
- case 1:
6699
- message.type = 1;
6700
- break;
6701
6698
  case "PREPROCESS_STEP_CHROMA_KEY":
6702
6699
  case 2:
6703
6700
  message.type = 2;
@@ -6706,6 +6703,10 @@ var sesame = $root.sesame = (() => {
6706
6703
  case 3:
6707
6704
  message.type = 3;
6708
6705
  break;
6706
+ case "PREPROCESS_STEP_COLOR_CORRECT":
6707
+ case 4:
6708
+ message.type = 4;
6709
+ break;
6709
6710
  }
6710
6711
  if (object.params) {
6711
6712
  if (!Array.isArray(object.params))
@@ -7650,6 +7651,175 @@ var sesame = $root.sesame = (() => {
7650
7651
  };
7651
7652
  return RTTSourceConfig;
7652
7653
  }();
7654
+ sources.ScopeMode = function() {
7655
+ const valuesById = {}, values = Object.create(valuesById);
7656
+ values[valuesById[0] = "SCOPE_MODE_UNSPECIFIED"] = 0;
7657
+ values[valuesById[1] = "SCOPE_MODE_WAVEFORM"] = 1;
7658
+ values[valuesById[2] = "SCOPE_MODE_RGB_PARADE"] = 2;
7659
+ values[valuesById[3] = "SCOPE_MODE_VECTORSCOPE"] = 3;
7660
+ values[valuesById[4] = "SCOPE_MODE_AUDIO_PHASE"] = 4;
7661
+ return values;
7662
+ }();
7663
+ sources.ScopeSourceConfig = function() {
7664
+ function ScopeSourceConfig(properties) {
7665
+ if (properties) {
7666
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7667
+ if (properties[keys[i]] != null)
7668
+ this[keys[i]] = properties[keys[i]];
7669
+ }
7670
+ }
7671
+ ScopeSourceConfig.prototype.compositorId = "";
7672
+ ScopeSourceConfig.prototype.audioMix = "";
7673
+ ScopeSourceConfig.prototype.mode = 0;
7674
+ ScopeSourceConfig.create = function create(properties) {
7675
+ return new ScopeSourceConfig(properties);
7676
+ };
7677
+ ScopeSourceConfig.encode = function encode(message, writer) {
7678
+ if (!writer)
7679
+ writer = $Writer.create();
7680
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
7681
+ writer.uint32(
7682
+ /* id 1, wireType 2 =*/
7683
+ 10
7684
+ ).string(message.compositorId);
7685
+ if (message.audioMix != null && Object.hasOwnProperty.call(message, "audioMix"))
7686
+ writer.uint32(
7687
+ /* id 2, wireType 2 =*/
7688
+ 18
7689
+ ).string(message.audioMix);
7690
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
7691
+ writer.uint32(
7692
+ /* id 3, wireType 0 =*/
7693
+ 24
7694
+ ).int32(message.mode);
7695
+ return writer;
7696
+ };
7697
+ ScopeSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
7698
+ return this.encode(message, writer).ldelim();
7699
+ };
7700
+ ScopeSourceConfig.decode = function decode(reader, length, error) {
7701
+ if (!(reader instanceof $Reader))
7702
+ reader = $Reader.create(reader);
7703
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.ScopeSourceConfig();
7704
+ while (reader.pos < end) {
7705
+ let tag = reader.uint32();
7706
+ if (tag === error)
7707
+ break;
7708
+ switch (tag >>> 3) {
7709
+ case 1: {
7710
+ message.compositorId = reader.string();
7711
+ break;
7712
+ }
7713
+ case 2: {
7714
+ message.audioMix = reader.string();
7715
+ break;
7716
+ }
7717
+ case 3: {
7718
+ message.mode = reader.int32();
7719
+ break;
7720
+ }
7721
+ default:
7722
+ reader.skipType(tag & 7);
7723
+ break;
7724
+ }
7725
+ }
7726
+ return message;
7727
+ };
7728
+ ScopeSourceConfig.decodeDelimited = function decodeDelimited(reader) {
7729
+ if (!(reader instanceof $Reader))
7730
+ reader = new $Reader(reader);
7731
+ return this.decode(reader, reader.uint32());
7732
+ };
7733
+ ScopeSourceConfig.verify = function verify(message) {
7734
+ if (typeof message !== "object" || message === null)
7735
+ return "object expected";
7736
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
7737
+ if (!$util.isString(message.compositorId))
7738
+ return "compositorId: string expected";
7739
+ }
7740
+ if (message.audioMix != null && message.hasOwnProperty("audioMix")) {
7741
+ if (!$util.isString(message.audioMix))
7742
+ return "audioMix: string expected";
7743
+ }
7744
+ if (message.mode != null && message.hasOwnProperty("mode"))
7745
+ switch (message.mode) {
7746
+ default:
7747
+ return "mode: enum value expected";
7748
+ case 0:
7749
+ case 1:
7750
+ case 2:
7751
+ case 3:
7752
+ case 4:
7753
+ break;
7754
+ }
7755
+ return null;
7756
+ };
7757
+ ScopeSourceConfig.fromObject = function fromObject(object) {
7758
+ if (object instanceof $root.sesame.v1.sources.ScopeSourceConfig)
7759
+ return object;
7760
+ let message = new $root.sesame.v1.sources.ScopeSourceConfig();
7761
+ if (object.compositorId != null)
7762
+ message.compositorId = String(object.compositorId);
7763
+ if (object.audioMix != null)
7764
+ message.audioMix = String(object.audioMix);
7765
+ switch (object.mode) {
7766
+ default:
7767
+ if (typeof object.mode === "number") {
7768
+ message.mode = object.mode;
7769
+ break;
7770
+ }
7771
+ break;
7772
+ case "SCOPE_MODE_UNSPECIFIED":
7773
+ case 0:
7774
+ message.mode = 0;
7775
+ break;
7776
+ case "SCOPE_MODE_WAVEFORM":
7777
+ case 1:
7778
+ message.mode = 1;
7779
+ break;
7780
+ case "SCOPE_MODE_RGB_PARADE":
7781
+ case 2:
7782
+ message.mode = 2;
7783
+ break;
7784
+ case "SCOPE_MODE_VECTORSCOPE":
7785
+ case 3:
7786
+ message.mode = 3;
7787
+ break;
7788
+ case "SCOPE_MODE_AUDIO_PHASE":
7789
+ case 4:
7790
+ message.mode = 4;
7791
+ break;
7792
+ }
7793
+ return message;
7794
+ };
7795
+ ScopeSourceConfig.toObject = function toObject(message, options) {
7796
+ if (!options)
7797
+ options = {};
7798
+ let object = {};
7799
+ if (options.defaults) {
7800
+ object.compositorId = "";
7801
+ object.audioMix = "";
7802
+ object.mode = options.enums === String ? "SCOPE_MODE_UNSPECIFIED" : 0;
7803
+ }
7804
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
7805
+ object.compositorId = message.compositorId;
7806
+ if (message.audioMix != null && message.hasOwnProperty("audioMix"))
7807
+ object.audioMix = message.audioMix;
7808
+ if (message.mode != null && message.hasOwnProperty("mode"))
7809
+ 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;
7810
+ return object;
7811
+ };
7812
+ ScopeSourceConfig.prototype.toJSON = function toJSON() {
7813
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7814
+ };
7815
+ ScopeSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7816
+ if (typeUrlPrefix === void 0) {
7817
+ typeUrlPrefix = "type.googleapis.com";
7818
+ }
7819
+ return typeUrlPrefix + "/sesame.v1.sources.ScopeSourceConfig";
7820
+ };
7821
+ return ScopeSourceConfig;
7822
+ }();
7653
7823
  sources.DecklinkSourceConfig = function() {
7654
7824
  function DecklinkSourceConfig(properties) {
7655
7825
  if (properties) {
@@ -8625,9 +8795,10 @@ var sesame = $root.sesame = (() => {
8625
8795
  SourceConfig.prototype.srtStream = null;
8626
8796
  SourceConfig.prototype.websocket = null;
8627
8797
  SourceConfig.prototype.moq = null;
8798
+ SourceConfig.prototype.scope = null;
8628
8799
  let $oneOfFields;
8629
8800
  Object.defineProperty(SourceConfig.prototype, "details", {
8630
- get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq"]),
8801
+ get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq", "scope"]),
8631
8802
  set: $util.oneOfSetter($oneOfFields)
8632
8803
  });
8633
8804
  SourceConfig.create = function create(properties) {
@@ -8691,6 +8862,11 @@ var sesame = $root.sesame = (() => {
8691
8862
  /* id 19, wireType 2 =*/
8692
8863
  154
8693
8864
  ).fork()).ldelim();
8865
+ if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
8866
+ $root.sesame.v1.sources.ScopeSourceConfig.encode(message.scope, writer.uint32(
8867
+ /* id 20, wireType 2 =*/
8868
+ 162
8869
+ ).fork()).ldelim();
8694
8870
  return writer;
8695
8871
  };
8696
8872
  SourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8749,6 +8925,10 @@ var sesame = $root.sesame = (() => {
8749
8925
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.decode(reader, reader.uint32());
8750
8926
  break;
8751
8927
  }
8928
+ case 20: {
8929
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.decode(reader, reader.uint32());
8930
+ break;
8931
+ }
8752
8932
  default:
8753
8933
  reader.skipType(tag & 7);
8754
8934
  break;
@@ -8868,6 +9048,16 @@ var sesame = $root.sesame = (() => {
8868
9048
  return "moq." + error;
8869
9049
  }
8870
9050
  }
9051
+ if (message.scope != null && message.hasOwnProperty("scope")) {
9052
+ if (properties.details === 1)
9053
+ return "details: multiple values";
9054
+ properties.details = 1;
9055
+ {
9056
+ let error = $root.sesame.v1.sources.ScopeSourceConfig.verify(message.scope);
9057
+ if (error)
9058
+ return "scope." + error;
9059
+ }
9060
+ }
8871
9061
  return null;
8872
9062
  };
8873
9063
  SourceConfig.fromObject = function fromObject(object) {
@@ -8929,6 +9119,11 @@ var sesame = $root.sesame = (() => {
8929
9119
  throw TypeError(".sesame.v1.sources.SourceConfig.moq: object expected");
8930
9120
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.fromObject(object.moq);
8931
9121
  }
9122
+ if (object.scope != null) {
9123
+ if (typeof object.scope !== "object")
9124
+ throw TypeError(".sesame.v1.sources.SourceConfig.scope: object expected");
9125
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.fromObject(object.scope);
9126
+ }
8932
9127
  return message;
8933
9128
  };
8934
9129
  SourceConfig.toObject = function toObject(message, options) {
@@ -8989,6 +9184,11 @@ var sesame = $root.sesame = (() => {
8989
9184
  if (options.oneofs)
8990
9185
  object.details = "moq";
8991
9186
  }
9187
+ if (message.scope != null && message.hasOwnProperty("scope")) {
9188
+ object.scope = $root.sesame.v1.sources.ScopeSourceConfig.toObject(message.scope, options);
9189
+ if (options.oneofs)
9190
+ object.details = "scope";
9191
+ }
8992
9192
  return object;
8993
9193
  };
8994
9194
  SourceConfig.prototype.toJSON = function toJSON() {
@@ -9316,6 +9516,7 @@ var sesame = $root.sesame = (() => {
9316
9516
  }();
9317
9517
  sources.SourceStatus = function() {
9318
9518
  function SourceStatus(properties) {
9519
+ this.videoProcessors = [];
9319
9520
  if (properties) {
9320
9521
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9321
9522
  if (properties[keys[i]] != null)
@@ -9343,6 +9544,7 @@ var sesame = $root.sesame = (() => {
9343
9544
  SourceStatus.prototype.decodeTiming = null;
9344
9545
  SourceStatus.prototype.videoBufAvg = 0;
9345
9546
  SourceStatus.prototype.srtStats = null;
9547
+ SourceStatus.prototype.videoProcessors = $util.emptyArray;
9346
9548
  let $oneOfFields;
9347
9549
  Object.defineProperty(SourceStatus.prototype, "_msg", {
9348
9550
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -9463,6 +9665,12 @@ var sesame = $root.sesame = (() => {
9463
9665
  /* id 21, wireType 2 =*/
9464
9666
  170
9465
9667
  ).fork()).ldelim();
9668
+ if (message.videoProcessors != null && message.videoProcessors.length)
9669
+ for (let i = 0; i < message.videoProcessors.length; ++i)
9670
+ $root.sesame.v1.sources.VideoProcessor.encode(message.videoProcessors[i], writer.uint32(
9671
+ /* id 22, wireType 2 =*/
9672
+ 178
9673
+ ).fork()).ldelim();
9466
9674
  return writer;
9467
9675
  };
9468
9676
  SourceStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -9561,6 +9769,12 @@ var sesame = $root.sesame = (() => {
9561
9769
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.decode(reader, reader.uint32());
9562
9770
  break;
9563
9771
  }
9772
+ case 22: {
9773
+ if (!(message.videoProcessors && message.videoProcessors.length))
9774
+ message.videoProcessors = [];
9775
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessor.decode(reader, reader.uint32()));
9776
+ break;
9777
+ }
9564
9778
  default:
9565
9779
  reader.skipType(tag & 7);
9566
9780
  break;
@@ -9596,6 +9810,7 @@ var sesame = $root.sesame = (() => {
9596
9810
  case 8:
9597
9811
  case 9:
9598
9812
  case 10:
9813
+ case 11:
9599
9814
  break;
9600
9815
  }
9601
9816
  if (message.userId != null && message.hasOwnProperty("userId")) {
@@ -9697,6 +9912,15 @@ var sesame = $root.sesame = (() => {
9697
9912
  return "srtStats." + error;
9698
9913
  }
9699
9914
  }
9915
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
9916
+ if (!Array.isArray(message.videoProcessors))
9917
+ return "videoProcessors: array expected";
9918
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
9919
+ let error = $root.sesame.v1.sources.VideoProcessor.verify(message.videoProcessors[i]);
9920
+ if (error)
9921
+ return "videoProcessors." + error;
9922
+ }
9923
+ }
9700
9924
  return null;
9701
9925
  };
9702
9926
  SourceStatus.fromObject = function fromObject(object) {
@@ -9756,6 +9980,10 @@ var sesame = $root.sesame = (() => {
9756
9980
  case 10:
9757
9981
  message.type = 10;
9758
9982
  break;
9983
+ case "SOURCE_TYPE_SCOPE":
9984
+ case 11:
9985
+ message.type = 11;
9986
+ break;
9759
9987
  }
9760
9988
  if (object.userId != null)
9761
9989
  message.userId = String(object.userId);
@@ -9889,12 +10117,24 @@ var sesame = $root.sesame = (() => {
9889
10117
  throw TypeError(".sesame.v1.sources.SourceStatus.srtStats: object expected");
9890
10118
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.fromObject(object.srtStats);
9891
10119
  }
10120
+ if (object.videoProcessors) {
10121
+ if (!Array.isArray(object.videoProcessors))
10122
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: array expected");
10123
+ message.videoProcessors = [];
10124
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
10125
+ if (typeof object.videoProcessors[i] !== "object")
10126
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: object expected");
10127
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessor.fromObject(object.videoProcessors[i]);
10128
+ }
10129
+ }
9892
10130
  return message;
9893
10131
  };
9894
10132
  SourceStatus.toObject = function toObject(message, options) {
9895
10133
  if (!options)
9896
10134
  options = {};
9897
10135
  let object = {};
10136
+ if (options.arrays || options.defaults)
10137
+ object.videoProcessors = [];
9898
10138
  if (options.defaults) {
9899
10139
  object.id = "";
9900
10140
  object.type = options.enums === String ? "SOURCE_TYPE_UNSPECIFIED" : 0;
@@ -9985,6 +10225,11 @@ var sesame = $root.sesame = (() => {
9985
10225
  if (options.oneofs)
9986
10226
  object._srtStats = "srtStats";
9987
10227
  }
10228
+ if (message.videoProcessors && message.videoProcessors.length) {
10229
+ object.videoProcessors = [];
10230
+ for (let j = 0; j < message.videoProcessors.length; ++j)
10231
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessor.toObject(message.videoProcessors[j], options);
10232
+ }
9988
10233
  return object;
9989
10234
  };
9990
10235
  SourceStatus.prototype.toJSON = function toJSON() {
@@ -11129,6 +11374,7 @@ var sesame = $root.sesame = (() => {
11129
11374
  }
11130
11375
  TransportControlRequest.prototype.cmdType = 0;
11131
11376
  TransportControlRequest.prototype.value = null;
11377
+ TransportControlRequest.prototype.sourceId = "";
11132
11378
  TransportControlRequest.create = function create(properties) {
11133
11379
  return new TransportControlRequest(properties);
11134
11380
  };
@@ -11145,6 +11391,11 @@ var sesame = $root.sesame = (() => {
11145
11391
  /* id 2, wireType 2 =*/
11146
11392
  18
11147
11393
  ).fork()).ldelim();
11394
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
11395
+ writer.uint32(
11396
+ /* id 3, wireType 2 =*/
11397
+ 26
11398
+ ).string(message.sourceId);
11148
11399
  return writer;
11149
11400
  };
11150
11401
  TransportControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
@@ -11167,6 +11418,10 @@ var sesame = $root.sesame = (() => {
11167
11418
  message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
11168
11419
  break;
11169
11420
  }
11421
+ case 3: {
11422
+ message.sourceId = reader.string();
11423
+ break;
11424
+ }
11170
11425
  default:
11171
11426
  reader.skipType(tag & 7);
11172
11427
  break;
@@ -11210,6 +11465,10 @@ var sesame = $root.sesame = (() => {
11210
11465
  if (error)
11211
11466
  return "value." + error;
11212
11467
  }
11468
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
11469
+ if (!$util.isString(message.sourceId))
11470
+ return "sourceId: string expected";
11471
+ }
11213
11472
  return null;
11214
11473
  };
11215
11474
  TransportControlRequest.fromObject = function fromObject(object) {
@@ -11297,6 +11556,8 @@ var sesame = $root.sesame = (() => {
11297
11556
  throw TypeError(".sesame.v1.sources.TransportControlRequest.value: object expected");
11298
11557
  message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
11299
11558
  }
11559
+ if (object.sourceId != null)
11560
+ message.sourceId = String(object.sourceId);
11300
11561
  return message;
11301
11562
  };
11302
11563
  TransportControlRequest.toObject = function toObject(message, options) {
@@ -11306,11 +11567,14 @@ var sesame = $root.sesame = (() => {
11306
11567
  if (options.defaults) {
11307
11568
  object.cmdType = options.enums === String ? "SOURCE_TRANSPORT_CMD_UNSPECIFIED" : 0;
11308
11569
  object.value = null;
11570
+ object.sourceId = "";
11309
11571
  }
11310
11572
  if (message.cmdType != null && message.hasOwnProperty("cmdType"))
11311
11573
  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;
11312
11574
  if (message.value != null && message.hasOwnProperty("value"))
11313
11575
  object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
11576
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
11577
+ object.sourceId = message.sourceId;
11314
11578
  return object;
11315
11579
  };
11316
11580
  TransportControlRequest.prototype.toJSON = function toJSON() {
@@ -11324,6 +11588,325 @@ var sesame = $root.sesame = (() => {
11324
11588
  };
11325
11589
  return TransportControlRequest;
11326
11590
  }();
11591
+ sources.VideoProcessorControlRequest = function() {
11592
+ function VideoProcessorControlRequest(properties) {
11593
+ this.params = [];
11594
+ if (properties) {
11595
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11596
+ if (properties[keys[i]] != null)
11597
+ this[keys[i]] = properties[keys[i]];
11598
+ }
11599
+ }
11600
+ VideoProcessorControlRequest.prototype.processorId = "";
11601
+ VideoProcessorControlRequest.prototype.params = $util.emptyArray;
11602
+ VideoProcessorControlRequest.create = function create(properties) {
11603
+ return new VideoProcessorControlRequest(properties);
11604
+ };
11605
+ VideoProcessorControlRequest.encode = function encode(message, writer) {
11606
+ if (!writer)
11607
+ writer = $Writer.create();
11608
+ if (message.processorId != null && Object.hasOwnProperty.call(message, "processorId"))
11609
+ writer.uint32(
11610
+ /* id 1, wireType 2 =*/
11611
+ 10
11612
+ ).string(message.processorId);
11613
+ if (message.params != null && message.params.length)
11614
+ for (let i = 0; i < message.params.length; ++i)
11615
+ $root.sesame.v1.sources.VideoProcessorParam.encode(message.params[i], writer.uint32(
11616
+ /* id 2, wireType 2 =*/
11617
+ 18
11618
+ ).fork()).ldelim();
11619
+ return writer;
11620
+ };
11621
+ VideoProcessorControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11622
+ return this.encode(message, writer).ldelim();
11623
+ };
11624
+ VideoProcessorControlRequest.decode = function decode(reader, length, error) {
11625
+ if (!(reader instanceof $Reader))
11626
+ reader = $Reader.create(reader);
11627
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11628
+ while (reader.pos < end) {
11629
+ let tag = reader.uint32();
11630
+ if (tag === error)
11631
+ break;
11632
+ switch (tag >>> 3) {
11633
+ case 1: {
11634
+ message.processorId = reader.string();
11635
+ break;
11636
+ }
11637
+ case 2: {
11638
+ if (!(message.params && message.params.length))
11639
+ message.params = [];
11640
+ message.params.push($root.sesame.v1.sources.VideoProcessorParam.decode(reader, reader.uint32()));
11641
+ break;
11642
+ }
11643
+ default:
11644
+ reader.skipType(tag & 7);
11645
+ break;
11646
+ }
11647
+ }
11648
+ return message;
11649
+ };
11650
+ VideoProcessorControlRequest.decodeDelimited = function decodeDelimited(reader) {
11651
+ if (!(reader instanceof $Reader))
11652
+ reader = new $Reader(reader);
11653
+ return this.decode(reader, reader.uint32());
11654
+ };
11655
+ VideoProcessorControlRequest.verify = function verify(message) {
11656
+ if (typeof message !== "object" || message === null)
11657
+ return "object expected";
11658
+ if (message.processorId != null && message.hasOwnProperty("processorId")) {
11659
+ if (!$util.isString(message.processorId))
11660
+ return "processorId: string expected";
11661
+ }
11662
+ if (message.params != null && message.hasOwnProperty("params")) {
11663
+ if (!Array.isArray(message.params))
11664
+ return "params: array expected";
11665
+ for (let i = 0; i < message.params.length; ++i) {
11666
+ let error = $root.sesame.v1.sources.VideoProcessorParam.verify(message.params[i]);
11667
+ if (error)
11668
+ return "params." + error;
11669
+ }
11670
+ }
11671
+ return null;
11672
+ };
11673
+ VideoProcessorControlRequest.fromObject = function fromObject(object) {
11674
+ if (object instanceof $root.sesame.v1.sources.VideoProcessorControlRequest)
11675
+ return object;
11676
+ let message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11677
+ if (object.processorId != null)
11678
+ message.processorId = String(object.processorId);
11679
+ if (object.params) {
11680
+ if (!Array.isArray(object.params))
11681
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: array expected");
11682
+ message.params = [];
11683
+ for (let i = 0; i < object.params.length; ++i) {
11684
+ if (typeof object.params[i] !== "object")
11685
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: object expected");
11686
+ message.params[i] = $root.sesame.v1.sources.VideoProcessorParam.fromObject(object.params[i]);
11687
+ }
11688
+ }
11689
+ return message;
11690
+ };
11691
+ VideoProcessorControlRequest.toObject = function toObject(message, options) {
11692
+ if (!options)
11693
+ options = {};
11694
+ let object = {};
11695
+ if (options.arrays || options.defaults)
11696
+ object.params = [];
11697
+ if (options.defaults)
11698
+ object.processorId = "";
11699
+ if (message.processorId != null && message.hasOwnProperty("processorId"))
11700
+ object.processorId = message.processorId;
11701
+ if (message.params && message.params.length) {
11702
+ object.params = [];
11703
+ for (let j = 0; j < message.params.length; ++j)
11704
+ object.params[j] = $root.sesame.v1.sources.VideoProcessorParam.toObject(message.params[j], options);
11705
+ }
11706
+ return object;
11707
+ };
11708
+ VideoProcessorControlRequest.prototype.toJSON = function toJSON() {
11709
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11710
+ };
11711
+ VideoProcessorControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11712
+ if (typeUrlPrefix === void 0) {
11713
+ typeUrlPrefix = "type.googleapis.com";
11714
+ }
11715
+ return typeUrlPrefix + "/sesame.v1.sources.VideoProcessorControlRequest";
11716
+ };
11717
+ return VideoProcessorControlRequest;
11718
+ }();
11719
+ sources.SourceControlRequest = function() {
11720
+ function SourceControlRequest(properties) {
11721
+ this.videoProcessors = [];
11722
+ this.resetProcessors = [];
11723
+ if (properties) {
11724
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11725
+ if (properties[keys[i]] != null)
11726
+ this[keys[i]] = properties[keys[i]];
11727
+ }
11728
+ }
11729
+ SourceControlRequest.prototype.videoProcessors = $util.emptyArray;
11730
+ SourceControlRequest.prototype.audioLevel = null;
11731
+ SourceControlRequest.prototype.resetProcessors = $util.emptyArray;
11732
+ SourceControlRequest.prototype.sourceId = "";
11733
+ let $oneOfFields;
11734
+ Object.defineProperty(SourceControlRequest.prototype, "_audioLevel", {
11735
+ get: $util.oneOfGetter($oneOfFields = ["audioLevel"]),
11736
+ set: $util.oneOfSetter($oneOfFields)
11737
+ });
11738
+ SourceControlRequest.create = function create(properties) {
11739
+ return new SourceControlRequest(properties);
11740
+ };
11741
+ SourceControlRequest.encode = function encode(message, writer) {
11742
+ if (!writer)
11743
+ writer = $Writer.create();
11744
+ if (message.videoProcessors != null && message.videoProcessors.length)
11745
+ for (let i = 0; i < message.videoProcessors.length; ++i)
11746
+ $root.sesame.v1.sources.VideoProcessorControlRequest.encode(message.videoProcessors[i], writer.uint32(
11747
+ /* id 1, wireType 2 =*/
11748
+ 10
11749
+ ).fork()).ldelim();
11750
+ if (message.audioLevel != null && Object.hasOwnProperty.call(message, "audioLevel"))
11751
+ writer.uint32(
11752
+ /* id 2, wireType 5 =*/
11753
+ 21
11754
+ ).float(message.audioLevel);
11755
+ if (message.resetProcessors != null && message.resetProcessors.length)
11756
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11757
+ writer.uint32(
11758
+ /* id 3, wireType 2 =*/
11759
+ 26
11760
+ ).string(message.resetProcessors[i]);
11761
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
11762
+ writer.uint32(
11763
+ /* id 4, wireType 2 =*/
11764
+ 34
11765
+ ).string(message.sourceId);
11766
+ return writer;
11767
+ };
11768
+ SourceControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11769
+ return this.encode(message, writer).ldelim();
11770
+ };
11771
+ SourceControlRequest.decode = function decode(reader, length, error) {
11772
+ if (!(reader instanceof $Reader))
11773
+ reader = $Reader.create(reader);
11774
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.SourceControlRequest();
11775
+ while (reader.pos < end) {
11776
+ let tag = reader.uint32();
11777
+ if (tag === error)
11778
+ break;
11779
+ switch (tag >>> 3) {
11780
+ case 1: {
11781
+ if (!(message.videoProcessors && message.videoProcessors.length))
11782
+ message.videoProcessors = [];
11783
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessorControlRequest.decode(reader, reader.uint32()));
11784
+ break;
11785
+ }
11786
+ case 2: {
11787
+ message.audioLevel = reader.float();
11788
+ break;
11789
+ }
11790
+ case 3: {
11791
+ if (!(message.resetProcessors && message.resetProcessors.length))
11792
+ message.resetProcessors = [];
11793
+ message.resetProcessors.push(reader.string());
11794
+ break;
11795
+ }
11796
+ case 4: {
11797
+ message.sourceId = reader.string();
11798
+ break;
11799
+ }
11800
+ default:
11801
+ reader.skipType(tag & 7);
11802
+ break;
11803
+ }
11804
+ }
11805
+ return message;
11806
+ };
11807
+ SourceControlRequest.decodeDelimited = function decodeDelimited(reader) {
11808
+ if (!(reader instanceof $Reader))
11809
+ reader = new $Reader(reader);
11810
+ return this.decode(reader, reader.uint32());
11811
+ };
11812
+ SourceControlRequest.verify = function verify(message) {
11813
+ if (typeof message !== "object" || message === null)
11814
+ return "object expected";
11815
+ let properties = {};
11816
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
11817
+ if (!Array.isArray(message.videoProcessors))
11818
+ return "videoProcessors: array expected";
11819
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
11820
+ let error = $root.sesame.v1.sources.VideoProcessorControlRequest.verify(message.videoProcessors[i]);
11821
+ if (error)
11822
+ return "videoProcessors." + error;
11823
+ }
11824
+ }
11825
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11826
+ properties._audioLevel = 1;
11827
+ if (typeof message.audioLevel !== "number")
11828
+ return "audioLevel: number expected";
11829
+ }
11830
+ if (message.resetProcessors != null && message.hasOwnProperty("resetProcessors")) {
11831
+ if (!Array.isArray(message.resetProcessors))
11832
+ return "resetProcessors: array expected";
11833
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11834
+ if (!$util.isString(message.resetProcessors[i]))
11835
+ return "resetProcessors: string[] expected";
11836
+ }
11837
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
11838
+ if (!$util.isString(message.sourceId))
11839
+ return "sourceId: string expected";
11840
+ }
11841
+ return null;
11842
+ };
11843
+ SourceControlRequest.fromObject = function fromObject(object) {
11844
+ if (object instanceof $root.sesame.v1.sources.SourceControlRequest)
11845
+ return object;
11846
+ let message = new $root.sesame.v1.sources.SourceControlRequest();
11847
+ if (object.videoProcessors) {
11848
+ if (!Array.isArray(object.videoProcessors))
11849
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: array expected");
11850
+ message.videoProcessors = [];
11851
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
11852
+ if (typeof object.videoProcessors[i] !== "object")
11853
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: object expected");
11854
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessorControlRequest.fromObject(object.videoProcessors[i]);
11855
+ }
11856
+ }
11857
+ if (object.audioLevel != null)
11858
+ message.audioLevel = Number(object.audioLevel);
11859
+ if (object.resetProcessors) {
11860
+ if (!Array.isArray(object.resetProcessors))
11861
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.resetProcessors: array expected");
11862
+ message.resetProcessors = [];
11863
+ for (let i = 0; i < object.resetProcessors.length; ++i)
11864
+ message.resetProcessors[i] = String(object.resetProcessors[i]);
11865
+ }
11866
+ if (object.sourceId != null)
11867
+ message.sourceId = String(object.sourceId);
11868
+ return message;
11869
+ };
11870
+ SourceControlRequest.toObject = function toObject(message, options) {
11871
+ if (!options)
11872
+ options = {};
11873
+ let object = {};
11874
+ if (options.arrays || options.defaults) {
11875
+ object.videoProcessors = [];
11876
+ object.resetProcessors = [];
11877
+ }
11878
+ if (options.defaults)
11879
+ object.sourceId = "";
11880
+ if (message.videoProcessors && message.videoProcessors.length) {
11881
+ object.videoProcessors = [];
11882
+ for (let j = 0; j < message.videoProcessors.length; ++j)
11883
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessorControlRequest.toObject(message.videoProcessors[j], options);
11884
+ }
11885
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11886
+ object.audioLevel = options.json && !isFinite(message.audioLevel) ? String(message.audioLevel) : message.audioLevel;
11887
+ if (options.oneofs)
11888
+ object._audioLevel = "audioLevel";
11889
+ }
11890
+ if (message.resetProcessors && message.resetProcessors.length) {
11891
+ object.resetProcessors = [];
11892
+ for (let j = 0; j < message.resetProcessors.length; ++j)
11893
+ object.resetProcessors[j] = message.resetProcessors[j];
11894
+ }
11895
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
11896
+ object.sourceId = message.sourceId;
11897
+ return object;
11898
+ };
11899
+ SourceControlRequest.prototype.toJSON = function toJSON() {
11900
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11901
+ };
11902
+ SourceControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11903
+ if (typeUrlPrefix === void 0) {
11904
+ typeUrlPrefix = "type.googleapis.com";
11905
+ }
11906
+ return typeUrlPrefix + "/sesame.v1.sources.SourceControlRequest";
11907
+ };
11908
+ return SourceControlRequest;
11909
+ }();
11327
11910
  return sources;
11328
11911
  }();
11329
11912
  v1.recorder = function() {
@@ -26995,6 +27578,8 @@ var sesame = $root.sesame = (() => {
26995
27578
  case 7:
26996
27579
  case 8:
26997
27580
  case 9:
27581
+ case 10:
27582
+ case 11:
26998
27583
  break;
26999
27584
  }
27000
27585
  return null;
@@ -27060,6 +27645,14 @@ var sesame = $root.sesame = (() => {
27060
27645
  case 9:
27061
27646
  message.dataType = 9;
27062
27647
  break;
27648
+ case "DATA_TYPE_SOURCE_CONTROL":
27649
+ case 10:
27650
+ message.dataType = 10;
27651
+ break;
27652
+ case "DATA_TYPE_SOURCE_STATUS":
27653
+ case 11:
27654
+ message.dataType = 11;
27655
+ break;
27063
27656
  }
27064
27657
  return message;
27065
27658
  };
@@ -27778,6 +28371,8 @@ var sesame = $root.sesame = (() => {
27778
28371
  values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
27779
28372
  values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
27780
28373
  values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
28374
+ values[valuesById[10] = "DATA_TYPE_SOURCE_CONTROL"] = 10;
28375
+ values[valuesById[11] = "DATA_TYPE_SOURCE_STATUS"] = 11;
27781
28376
  return values;
27782
28377
  }();
27783
28378
  wire.DataFrameData = function() {
@@ -27857,6 +28452,8 @@ var sesame = $root.sesame = (() => {
27857
28452
  case 7:
27858
28453
  case 8:
27859
28454
  case 9:
28455
+ case 10:
28456
+ case 11:
27860
28457
  break;
27861
28458
  }
27862
28459
  if (message.trackName != null && message.hasOwnProperty("trackName")) {
@@ -27916,6 +28513,14 @@ var sesame = $root.sesame = (() => {
27916
28513
  case 9:
27917
28514
  message.dataType = 9;
27918
28515
  break;
28516
+ case "DATA_TYPE_SOURCE_CONTROL":
28517
+ case 10:
28518
+ message.dataType = 10;
28519
+ break;
28520
+ case "DATA_TYPE_SOURCE_STATUS":
28521
+ case 11:
28522
+ message.dataType = 11;
28523
+ break;
27919
28524
  }
27920
28525
  if (object.trackName != null)
27921
28526
  message.trackName = String(object.trackName);
@@ -28614,6 +29219,36 @@ function parseDataFrame(frame) {
28614
29219
  trackName,
28615
29220
  request: sesame.v1.audio.AudioControlRequest.decode(payload)
28616
29221
  };
29222
+ case sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_CONTROL:
29223
+ return {
29224
+ dataType: "output-control",
29225
+ trackName,
29226
+ request: sesame.v1.outputs.OutputControlRequest.decode(payload)
29227
+ };
29228
+ case sesame.v1.wire.DataType.DATA_TYPE_SOURCE_CONTROL:
29229
+ return {
29230
+ dataType: "source-control",
29231
+ trackName,
29232
+ request: sesame.v1.sources.SourceControlRequest.decode(payload)
29233
+ };
29234
+ case sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_STATUS:
29235
+ return {
29236
+ dataType: "output-status",
29237
+ trackName,
29238
+ status: sesame.v1.outputs.OutputStatus.decode(payload)
29239
+ };
29240
+ case sesame.v1.wire.DataType.DATA_TYPE_SOURCE_STATUS:
29241
+ return {
29242
+ dataType: "source-status",
29243
+ trackName,
29244
+ status: sesame.v1.sources.SourceStatus.decode(payload)
29245
+ };
29246
+ case sesame.v1.wire.DataType.DATA_TYPE_ENGINE_STATUS:
29247
+ return {
29248
+ dataType: "engine-status",
29249
+ trackName,
29250
+ status: sesame.v1.status.Status.decode(payload)
29251
+ };
28617
29252
  case sesame.v1.wire.DataType.DATA_TYPE_BINARY:
28618
29253
  return { dataType: "binary", trackName, data: payload };
28619
29254
  default:
@@ -28666,6 +29301,26 @@ function buildTransportControlFrame(trackName, request) {
28666
29301
  payload
28667
29302
  );
28668
29303
  }
29304
+ function buildSourceControlFrame(trackName, request) {
29305
+ const payload = sesame.v1.sources.SourceControlRequest.encode(request).finish();
29306
+ return WireProtocol.serialize(
29307
+ {
29308
+ type: sesame.v1.wire.FrameType.FRAME_TYPE_DATA,
29309
+ data: { dataType: sesame.v1.wire.DataType.DATA_TYPE_SOURCE_CONTROL, trackName }
29310
+ },
29311
+ payload
29312
+ );
29313
+ }
29314
+ function buildOutputControlFrame(trackName, request) {
29315
+ const payload = sesame.v1.outputs.OutputControlRequest.encode(request).finish();
29316
+ return WireProtocol.serialize(
29317
+ {
29318
+ type: sesame.v1.wire.FrameType.FRAME_TYPE_DATA,
29319
+ data: { dataType: sesame.v1.wire.DataType.DATA_TYPE_OUTPUT_CONTROL, trackName }
29320
+ },
29321
+ payload
29322
+ );
29323
+ }
28669
29324
  function buildBinaryDataFrame(trackName, payload) {
28670
29325
  return WireProtocol.serialize(
28671
29326
  {
@@ -29374,6 +30029,8 @@ export {
29374
30029
  WireProtocol,
29375
30030
  buildAudioControlFrame,
29376
30031
  buildBinaryDataFrame,
30032
+ buildOutputControlFrame,
30033
+ buildSourceControlFrame,
29377
30034
  buildTransportControlFrame,
29378
30035
  getLogger,
29379
30036
  getSideData,