@stinkycomputing/sesame-api-client 1.5.9 → 1.5.11

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.
@@ -4600,8 +4600,33 @@ export namespace sesame {
4600
4600
  public static getTypeUrl(typeUrlPrefix?: string): string;
4601
4601
  }
4602
4602
 
4603
+ /** SignalGeneratorVideoPattern enum. */
4604
+ enum SignalGeneratorVideoPattern {
4605
+ SIGNAL_GENERATOR_VIDEO_PATTERN_BARS = 0,
4606
+ SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP = 1,
4607
+ SIGNAL_GENERATOR_VIDEO_PATTERN_GRID = 2,
4608
+ SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY = 3
4609
+ }
4610
+
4611
+ /** SignalGeneratorAudioMode enum. */
4612
+ enum SignalGeneratorAudioMode {
4613
+ SIGNAL_GENERATOR_AUDIO_MODE_SYNC = 0,
4614
+ SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT = 1,
4615
+ SIGNAL_GENERATOR_AUDIO_MODE_TONE = 2,
4616
+ SIGNAL_GENERATOR_AUDIO_MODE_SILENCE = 3
4617
+ }
4618
+
4603
4619
  /** Properties of a SignalGeneratorSourceConfig. */
4604
4620
  interface ISignalGeneratorSourceConfig {
4621
+
4622
+ /** SignalGeneratorSourceConfig freeze */
4623
+ freeze?: (boolean|null);
4624
+
4625
+ /** SignalGeneratorSourceConfig videoPattern */
4626
+ videoPattern?: (sesame.v1.sources.SignalGeneratorVideoPattern|null);
4627
+
4628
+ /** SignalGeneratorSourceConfig audioMode */
4629
+ audioMode?: (sesame.v1.sources.SignalGeneratorAudioMode|null);
4605
4630
  }
4606
4631
 
4607
4632
  /** Represents a SignalGeneratorSourceConfig. */
@@ -4613,6 +4638,15 @@ export namespace sesame {
4613
4638
  */
4614
4639
  constructor(properties?: sesame.v1.sources.ISignalGeneratorSourceConfig);
4615
4640
 
4641
+ /** SignalGeneratorSourceConfig freeze. */
4642
+ public freeze: boolean;
4643
+
4644
+ /** SignalGeneratorSourceConfig videoPattern. */
4645
+ public videoPattern: sesame.v1.sources.SignalGeneratorVideoPattern;
4646
+
4647
+ /** SignalGeneratorSourceConfig audioMode. */
4648
+ public audioMode: sesame.v1.sources.SignalGeneratorAudioMode;
4649
+
4616
4650
  /**
4617
4651
  * Creates a new SignalGeneratorSourceConfig instance using the specified properties.
4618
4652
  * @param [properties] Properties to set
package/dist/proto/api.js CHANGED
@@ -12635,12 +12635,51 @@ export const sesame = $root.sesame = (() => {
12635
12635
  return DecklinkSourceConfig;
12636
12636
  })();
12637
12637
 
12638
+ /**
12639
+ * SignalGeneratorVideoPattern enum.
12640
+ * @name sesame.v1.sources.SignalGeneratorVideoPattern
12641
+ * @enum {number}
12642
+ * @property {number} SIGNAL_GENERATOR_VIDEO_PATTERN_BARS=0 SIGNAL_GENERATOR_VIDEO_PATTERN_BARS value
12643
+ * @property {number} SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP=1 SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP value
12644
+ * @property {number} SIGNAL_GENERATOR_VIDEO_PATTERN_GRID=2 SIGNAL_GENERATOR_VIDEO_PATTERN_GRID value
12645
+ * @property {number} SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY=3 SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY value
12646
+ */
12647
+ sources.SignalGeneratorVideoPattern = (function() {
12648
+ const valuesById = {}, values = Object.create(valuesById);
12649
+ values[valuesById[0] = "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS"] = 0;
12650
+ values[valuesById[1] = "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP"] = 1;
12651
+ values[valuesById[2] = "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID"] = 2;
12652
+ values[valuesById[3] = "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY"] = 3;
12653
+ return values;
12654
+ })();
12655
+
12656
+ /**
12657
+ * SignalGeneratorAudioMode enum.
12658
+ * @name sesame.v1.sources.SignalGeneratorAudioMode
12659
+ * @enum {number}
12660
+ * @property {number} SIGNAL_GENERATOR_AUDIO_MODE_SYNC=0 SIGNAL_GENERATOR_AUDIO_MODE_SYNC value
12661
+ * @property {number} SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT=1 SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT value
12662
+ * @property {number} SIGNAL_GENERATOR_AUDIO_MODE_TONE=2 SIGNAL_GENERATOR_AUDIO_MODE_TONE value
12663
+ * @property {number} SIGNAL_GENERATOR_AUDIO_MODE_SILENCE=3 SIGNAL_GENERATOR_AUDIO_MODE_SILENCE value
12664
+ */
12665
+ sources.SignalGeneratorAudioMode = (function() {
12666
+ const valuesById = {}, values = Object.create(valuesById);
12667
+ values[valuesById[0] = "SIGNAL_GENERATOR_AUDIO_MODE_SYNC"] = 0;
12668
+ values[valuesById[1] = "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT"] = 1;
12669
+ values[valuesById[2] = "SIGNAL_GENERATOR_AUDIO_MODE_TONE"] = 2;
12670
+ values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
12671
+ return values;
12672
+ })();
12673
+
12638
12674
  sources.SignalGeneratorSourceConfig = (function() {
12639
12675
 
12640
12676
  /**
12641
12677
  * Properties of a SignalGeneratorSourceConfig.
12642
12678
  * @memberof sesame.v1.sources
12643
12679
  * @interface ISignalGeneratorSourceConfig
12680
+ * @property {boolean|null} [freeze] SignalGeneratorSourceConfig freeze
12681
+ * @property {sesame.v1.sources.SignalGeneratorVideoPattern|null} [videoPattern] SignalGeneratorSourceConfig videoPattern
12682
+ * @property {sesame.v1.sources.SignalGeneratorAudioMode|null} [audioMode] SignalGeneratorSourceConfig audioMode
12644
12683
  */
12645
12684
 
12646
12685
  /**
@@ -12658,6 +12697,30 @@ export const sesame = $root.sesame = (() => {
12658
12697
  this[keys[i]] = properties[keys[i]];
12659
12698
  }
12660
12699
 
12700
+ /**
12701
+ * SignalGeneratorSourceConfig freeze.
12702
+ * @member {boolean} freeze
12703
+ * @memberof sesame.v1.sources.SignalGeneratorSourceConfig
12704
+ * @instance
12705
+ */
12706
+ SignalGeneratorSourceConfig.prototype.freeze = false;
12707
+
12708
+ /**
12709
+ * SignalGeneratorSourceConfig videoPattern.
12710
+ * @member {sesame.v1.sources.SignalGeneratorVideoPattern} videoPattern
12711
+ * @memberof sesame.v1.sources.SignalGeneratorSourceConfig
12712
+ * @instance
12713
+ */
12714
+ SignalGeneratorSourceConfig.prototype.videoPattern = 0;
12715
+
12716
+ /**
12717
+ * SignalGeneratorSourceConfig audioMode.
12718
+ * @member {sesame.v1.sources.SignalGeneratorAudioMode} audioMode
12719
+ * @memberof sesame.v1.sources.SignalGeneratorSourceConfig
12720
+ * @instance
12721
+ */
12722
+ SignalGeneratorSourceConfig.prototype.audioMode = 0;
12723
+
12661
12724
  /**
12662
12725
  * Creates a new SignalGeneratorSourceConfig instance using the specified properties.
12663
12726
  * @function create
@@ -12682,6 +12745,12 @@ export const sesame = $root.sesame = (() => {
12682
12745
  SignalGeneratorSourceConfig.encode = function encode(message, writer) {
12683
12746
  if (!writer)
12684
12747
  writer = $Writer.create();
12748
+ if (message.freeze != null && Object.hasOwnProperty.call(message, "freeze"))
12749
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.freeze);
12750
+ if (message.videoPattern != null && Object.hasOwnProperty.call(message, "videoPattern"))
12751
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.videoPattern);
12752
+ if (message.audioMode != null && Object.hasOwnProperty.call(message, "audioMode"))
12753
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.audioMode);
12685
12754
  return writer;
12686
12755
  };
12687
12756
 
@@ -12718,6 +12787,18 @@ export const sesame = $root.sesame = (() => {
12718
12787
  if (tag === error)
12719
12788
  break;
12720
12789
  switch (tag >>> 3) {
12790
+ case 1: {
12791
+ message.freeze = reader.bool();
12792
+ break;
12793
+ }
12794
+ case 2: {
12795
+ message.videoPattern = reader.int32();
12796
+ break;
12797
+ }
12798
+ case 3: {
12799
+ message.audioMode = reader.int32();
12800
+ break;
12801
+ }
12721
12802
  default:
12722
12803
  reader.skipType(tag & 7);
12723
12804
  break;
@@ -12753,6 +12834,29 @@ export const sesame = $root.sesame = (() => {
12753
12834
  SignalGeneratorSourceConfig.verify = function verify(message) {
12754
12835
  if (typeof message !== "object" || message === null)
12755
12836
  return "object expected";
12837
+ if (message.freeze != null && message.hasOwnProperty("freeze"))
12838
+ if (typeof message.freeze !== "boolean")
12839
+ return "freeze: boolean expected";
12840
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
12841
+ switch (message.videoPattern) {
12842
+ default:
12843
+ return "videoPattern: enum value expected";
12844
+ case 0:
12845
+ case 1:
12846
+ case 2:
12847
+ case 3:
12848
+ break;
12849
+ }
12850
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
12851
+ switch (message.audioMode) {
12852
+ default:
12853
+ return "audioMode: enum value expected";
12854
+ case 0:
12855
+ case 1:
12856
+ case 2:
12857
+ case 3:
12858
+ break;
12859
+ }
12756
12860
  return null;
12757
12861
  };
12758
12862
 
@@ -12767,7 +12871,58 @@ export const sesame = $root.sesame = (() => {
12767
12871
  SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
12768
12872
  if (object instanceof $root.sesame.v1.sources.SignalGeneratorSourceConfig)
12769
12873
  return object;
12770
- return new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
12874
+ let message = new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
12875
+ if (object.freeze != null)
12876
+ message.freeze = Boolean(object.freeze);
12877
+ switch (object.videoPattern) {
12878
+ default:
12879
+ if (typeof object.videoPattern === "number") {
12880
+ message.videoPattern = object.videoPattern;
12881
+ break;
12882
+ }
12883
+ break;
12884
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS":
12885
+ case 0:
12886
+ message.videoPattern = 0;
12887
+ break;
12888
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP":
12889
+ case 1:
12890
+ message.videoPattern = 1;
12891
+ break;
12892
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID":
12893
+ case 2:
12894
+ message.videoPattern = 2;
12895
+ break;
12896
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY":
12897
+ case 3:
12898
+ message.videoPattern = 3;
12899
+ break;
12900
+ }
12901
+ switch (object.audioMode) {
12902
+ default:
12903
+ if (typeof object.audioMode === "number") {
12904
+ message.audioMode = object.audioMode;
12905
+ break;
12906
+ }
12907
+ break;
12908
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SYNC":
12909
+ case 0:
12910
+ message.audioMode = 0;
12911
+ break;
12912
+ case "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT":
12913
+ case 1:
12914
+ message.audioMode = 1;
12915
+ break;
12916
+ case "SIGNAL_GENERATOR_AUDIO_MODE_TONE":
12917
+ case 2:
12918
+ message.audioMode = 2;
12919
+ break;
12920
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE":
12921
+ case 3:
12922
+ message.audioMode = 3;
12923
+ break;
12924
+ }
12925
+ return message;
12771
12926
  };
12772
12927
 
12773
12928
  /**
@@ -12779,8 +12934,22 @@ export const sesame = $root.sesame = (() => {
12779
12934
  * @param {$protobuf.IConversionOptions} [options] Conversion options
12780
12935
  * @returns {Object.<string,*>} Plain object
12781
12936
  */
12782
- SignalGeneratorSourceConfig.toObject = function toObject() {
12783
- return {};
12937
+ SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
12938
+ if (!options)
12939
+ options = {};
12940
+ let object = {};
12941
+ if (options.defaults) {
12942
+ object.freeze = false;
12943
+ object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
12944
+ object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
12945
+ }
12946
+ if (message.freeze != null && message.hasOwnProperty("freeze"))
12947
+ object.freeze = message.freeze;
12948
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
12949
+ object.videoPattern = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] === undefined ? message.videoPattern : $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] : message.videoPattern;
12950
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
12951
+ object.audioMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] === undefined ? message.audioMode : $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] : message.audioMode;
12952
+ return object;
12784
12953
  };
12785
12954
 
12786
12955
  /**