@stinkycomputing/sesame-api-client 1.5.10 → 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.
package/dist/index.mjs CHANGED
@@ -7333,6 +7333,22 @@ var sesame = $root.sesame = (() => {
7333
7333
  };
7334
7334
  return DecklinkSourceConfig;
7335
7335
  }();
7336
+ sources.SignalGeneratorVideoPattern = function() {
7337
+ const valuesById = {}, values = Object.create(valuesById);
7338
+ values[valuesById[0] = "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS"] = 0;
7339
+ values[valuesById[1] = "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP"] = 1;
7340
+ values[valuesById[2] = "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID"] = 2;
7341
+ values[valuesById[3] = "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY"] = 3;
7342
+ return values;
7343
+ }();
7344
+ sources.SignalGeneratorAudioMode = function() {
7345
+ const valuesById = {}, values = Object.create(valuesById);
7346
+ values[valuesById[0] = "SIGNAL_GENERATOR_AUDIO_MODE_SYNC"] = 0;
7347
+ values[valuesById[1] = "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT"] = 1;
7348
+ values[valuesById[2] = "SIGNAL_GENERATOR_AUDIO_MODE_TONE"] = 2;
7349
+ values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
7350
+ return values;
7351
+ }();
7336
7352
  sources.SignalGeneratorSourceConfig = function() {
7337
7353
  function SignalGeneratorSourceConfig(properties) {
7338
7354
  if (properties) {
@@ -7341,12 +7357,30 @@ var sesame = $root.sesame = (() => {
7341
7357
  this[keys[i]] = properties[keys[i]];
7342
7358
  }
7343
7359
  }
7360
+ SignalGeneratorSourceConfig.prototype.freeze = false;
7361
+ SignalGeneratorSourceConfig.prototype.videoPattern = 0;
7362
+ SignalGeneratorSourceConfig.prototype.audioMode = 0;
7344
7363
  SignalGeneratorSourceConfig.create = function create(properties) {
7345
7364
  return new SignalGeneratorSourceConfig(properties);
7346
7365
  };
7347
7366
  SignalGeneratorSourceConfig.encode = function encode(message, writer) {
7348
7367
  if (!writer)
7349
7368
  writer = $Writer.create();
7369
+ if (message.freeze != null && Object.hasOwnProperty.call(message, "freeze"))
7370
+ writer.uint32(
7371
+ /* id 1, wireType 0 =*/
7372
+ 8
7373
+ ).bool(message.freeze);
7374
+ if (message.videoPattern != null && Object.hasOwnProperty.call(message, "videoPattern"))
7375
+ writer.uint32(
7376
+ /* id 2, wireType 0 =*/
7377
+ 16
7378
+ ).int32(message.videoPattern);
7379
+ if (message.audioMode != null && Object.hasOwnProperty.call(message, "audioMode"))
7380
+ writer.uint32(
7381
+ /* id 3, wireType 0 =*/
7382
+ 24
7383
+ ).int32(message.audioMode);
7350
7384
  return writer;
7351
7385
  };
7352
7386
  SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -7361,6 +7395,18 @@ var sesame = $root.sesame = (() => {
7361
7395
  if (tag === error)
7362
7396
  break;
7363
7397
  switch (tag >>> 3) {
7398
+ case 1: {
7399
+ message.freeze = reader.bool();
7400
+ break;
7401
+ }
7402
+ case 2: {
7403
+ message.videoPattern = reader.int32();
7404
+ break;
7405
+ }
7406
+ case 3: {
7407
+ message.audioMode = reader.int32();
7408
+ break;
7409
+ }
7364
7410
  default:
7365
7411
  reader.skipType(tag & 7);
7366
7412
  break;
@@ -7376,15 +7422,104 @@ var sesame = $root.sesame = (() => {
7376
7422
  SignalGeneratorSourceConfig.verify = function verify(message) {
7377
7423
  if (typeof message !== "object" || message === null)
7378
7424
  return "object expected";
7425
+ if (message.freeze != null && message.hasOwnProperty("freeze")) {
7426
+ if (typeof message.freeze !== "boolean")
7427
+ return "freeze: boolean expected";
7428
+ }
7429
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
7430
+ switch (message.videoPattern) {
7431
+ default:
7432
+ return "videoPattern: enum value expected";
7433
+ case 0:
7434
+ case 1:
7435
+ case 2:
7436
+ case 3:
7437
+ break;
7438
+ }
7439
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7440
+ switch (message.audioMode) {
7441
+ default:
7442
+ return "audioMode: enum value expected";
7443
+ case 0:
7444
+ case 1:
7445
+ case 2:
7446
+ case 3:
7447
+ break;
7448
+ }
7379
7449
  return null;
7380
7450
  };
7381
7451
  SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
7382
7452
  if (object instanceof $root.sesame.v1.sources.SignalGeneratorSourceConfig)
7383
7453
  return object;
7384
- return new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
7454
+ let message = new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
7455
+ if (object.freeze != null)
7456
+ message.freeze = Boolean(object.freeze);
7457
+ switch (object.videoPattern) {
7458
+ default:
7459
+ if (typeof object.videoPattern === "number") {
7460
+ message.videoPattern = object.videoPattern;
7461
+ break;
7462
+ }
7463
+ break;
7464
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS":
7465
+ case 0:
7466
+ message.videoPattern = 0;
7467
+ break;
7468
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP":
7469
+ case 1:
7470
+ message.videoPattern = 1;
7471
+ break;
7472
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID":
7473
+ case 2:
7474
+ message.videoPattern = 2;
7475
+ break;
7476
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY":
7477
+ case 3:
7478
+ message.videoPattern = 3;
7479
+ break;
7480
+ }
7481
+ switch (object.audioMode) {
7482
+ default:
7483
+ if (typeof object.audioMode === "number") {
7484
+ message.audioMode = object.audioMode;
7485
+ break;
7486
+ }
7487
+ break;
7488
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SYNC":
7489
+ case 0:
7490
+ message.audioMode = 0;
7491
+ break;
7492
+ case "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT":
7493
+ case 1:
7494
+ message.audioMode = 1;
7495
+ break;
7496
+ case "SIGNAL_GENERATOR_AUDIO_MODE_TONE":
7497
+ case 2:
7498
+ message.audioMode = 2;
7499
+ break;
7500
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE":
7501
+ case 3:
7502
+ message.audioMode = 3;
7503
+ break;
7504
+ }
7505
+ return message;
7385
7506
  };
7386
- SignalGeneratorSourceConfig.toObject = function toObject() {
7387
- return {};
7507
+ SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
7508
+ if (!options)
7509
+ options = {};
7510
+ let object = {};
7511
+ if (options.defaults) {
7512
+ object.freeze = false;
7513
+ object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
7514
+ object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
7515
+ }
7516
+ if (message.freeze != null && message.hasOwnProperty("freeze"))
7517
+ object.freeze = message.freeze;
7518
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
7519
+ object.videoPattern = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] === void 0 ? message.videoPattern : $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] : message.videoPattern;
7520
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7521
+ object.audioMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] === void 0 ? message.audioMode : $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] : message.audioMode;
7522
+ return object;
7388
7523
  };
7389
7524
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
7390
7525
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);