@stinkycomputing/sesame-api-client 1.4.1-beta.14 → 1.4.1-beta.16

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
@@ -3420,7 +3420,7 @@ var sesame = $root.sesame = (() => {
3420
3420
  writer.uint32(
3421
3421
  /* id 5, wireType 0 =*/
3422
3422
  40
3423
- ).int32(message.intValue);
3423
+ ).int64(message.intValue);
3424
3424
  return writer;
3425
3425
  };
3426
3426
  PropValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3452,7 +3452,7 @@ var sesame = $root.sesame = (() => {
3452
3452
  break;
3453
3453
  }
3454
3454
  case 5: {
3455
- message.intValue = reader.int32();
3455
+ message.intValue = reader.int64();
3456
3456
  break;
3457
3457
  }
3458
3458
  default:
@@ -3504,8 +3504,8 @@ var sesame = $root.sesame = (() => {
3504
3504
  if (properties.value === 1)
3505
3505
  return "value: multiple values";
3506
3506
  properties.value = 1;
3507
- if (!$util.isInteger(message.intValue))
3508
- return "intValue: integer expected";
3507
+ if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
3508
+ return "intValue: integer|Long expected";
3509
3509
  }
3510
3510
  return null;
3511
3511
  };
@@ -3524,8 +3524,16 @@ var sesame = $root.sesame = (() => {
3524
3524
  message.stringValue = String(object.stringValue);
3525
3525
  if (object.boolValue != null)
3526
3526
  message.boolValue = Boolean(object.boolValue);
3527
- if (object.intValue != null)
3528
- message.intValue = object.intValue | 0;
3527
+ if (object.intValue != null) {
3528
+ if ($util.Long)
3529
+ (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
3530
+ else if (typeof object.intValue === "string")
3531
+ message.intValue = parseInt(object.intValue, 10);
3532
+ else if (typeof object.intValue === "number")
3533
+ message.intValue = object.intValue;
3534
+ else if (typeof object.intValue === "object")
3535
+ message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
3536
+ }
3529
3537
  return message;
3530
3538
  };
3531
3539
  PropValue.toObject = function toObject(message, options) {
@@ -3553,7 +3561,10 @@ var sesame = $root.sesame = (() => {
3553
3561
  object.value = "boolValue";
3554
3562
  }
3555
3563
  if (message.intValue != null && message.hasOwnProperty("intValue")) {
3556
- object.intValue = message.intValue;
3564
+ if (typeof message.intValue === "number")
3565
+ object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
3566
+ else
3567
+ object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
3557
3568
  if (options.oneofs)
3558
3569
  object.value = "intValue";
3559
3570
  }
@@ -21827,7 +21838,7 @@ var CommandList = class {
21827
21838
  };
21828
21839
  return this.add(item, timeOffsetMs);
21829
21840
  }
21830
- playlistLoad(sourceId, playlist) {
21841
+ playlistLoad(sourceId, playlist, startTimeUs, startIndex, materialPosUs, timeOffsetMs) {
21831
21842
  const item = new sesame.v1.commands.CommandListItem();
21832
21843
  const loadPlaylistCmd = {
21833
21844
  items: playlist.clips.map((clip) => ({
@@ -21843,12 +21854,12 @@ var CommandList = class {
21843
21854
  })),
21844
21855
  sourceId,
21845
21856
  userPlaylistId: playlist.id,
21846
- startTimeUs: void 0,
21847
- startIndex: void 0,
21848
- materialPosUs: void 0
21857
+ startTimeUs,
21858
+ startIndex,
21859
+ materialPosUs
21849
21860
  };
21850
21861
  item.loadPlaylist = loadPlaylistCmd;
21851
- return this.add(item, 0);
21862
+ return this.add(item, timeOffsetMs ?? 0);
21852
21863
  }
21853
21864
  playlistEject(sourceId) {
21854
21865
  const item = new sesame.v1.commands.CommandListItem();