@stinkycomputing/sesame-api-client 1.4.1-beta.7 → 1.4.1-beta.9

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
@@ -3742,7 +3742,7 @@ var sesame = $root.sesame = (() => {
3742
3742
  }
3743
3743
  }
3744
3744
  NameValue.prototype.name = "";
3745
- NameValue.prototype.value = "";
3745
+ NameValue.prototype.value = null;
3746
3746
  NameValue.create = function create(properties) {
3747
3747
  return new NameValue(properties);
3748
3748
  };
@@ -3755,10 +3755,10 @@ var sesame = $root.sesame = (() => {
3755
3755
  10
3756
3756
  ).string(message.name);
3757
3757
  if (message.value != null && Object.hasOwnProperty.call(message, "value"))
3758
- writer.uint32(
3758
+ $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
3759
3759
  /* id 2, wireType 2 =*/
3760
3760
  18
3761
- ).string(message.value);
3761
+ ).fork()).ldelim();
3762
3762
  return writer;
3763
3763
  };
3764
3764
  NameValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3778,7 +3778,7 @@ var sesame = $root.sesame = (() => {
3778
3778
  break;
3779
3779
  }
3780
3780
  case 2: {
3781
- message.value = reader.string();
3781
+ message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
3782
3782
  break;
3783
3783
  }
3784
3784
  default:
@@ -3801,8 +3801,9 @@ var sesame = $root.sesame = (() => {
3801
3801
  return "name: string expected";
3802
3802
  }
3803
3803
  if (message.value != null && message.hasOwnProperty("value")) {
3804
- if (!$util.isString(message.value))
3805
- return "value: string expected";
3804
+ let error = $root.sesame.v1.common.PropValue.verify(message.value);
3805
+ if (error)
3806
+ return "value." + error;
3806
3807
  }
3807
3808
  return null;
3808
3809
  };
@@ -3812,8 +3813,11 @@ var sesame = $root.sesame = (() => {
3812
3813
  let message = new $root.sesame.v1.common.NameValue();
3813
3814
  if (object.name != null)
3814
3815
  message.name = String(object.name);
3815
- if (object.value != null)
3816
- message.value = String(object.value);
3816
+ if (object.value != null) {
3817
+ if (typeof object.value !== "object")
3818
+ throw TypeError(".sesame.v1.common.NameValue.value: object expected");
3819
+ message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
3820
+ }
3817
3821
  return message;
3818
3822
  };
3819
3823
  NameValue.toObject = function toObject(message, options) {
@@ -3822,12 +3826,12 @@ var sesame = $root.sesame = (() => {
3822
3826
  let object = {};
3823
3827
  if (options.defaults) {
3824
3828
  object.name = "";
3825
- object.value = "";
3829
+ object.value = null;
3826
3830
  }
3827
3831
  if (message.name != null && message.hasOwnProperty("name"))
3828
3832
  object.name = message.name;
3829
3833
  if (message.value != null && message.hasOwnProperty("value"))
3830
- object.value = message.value;
3834
+ object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
3831
3835
  return object;
3832
3836
  };
3833
3837
  NameValue.prototype.toJSON = function toJSON() {
@@ -13318,7 +13322,7 @@ var sesame = $root.sesame = (() => {
13318
13322
  TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13319
13323
  TransportEvent.prototype.preroll = 0;
13320
13324
  TransportEvent.prototype.postroll = 0;
13321
- TransportEvent.prototype.metadata = "";
13325
+ TransportEvent.prototype.metadata = null;
13322
13326
  TransportEvent.create = function create(properties) {
13323
13327
  return new TransportEvent(properties);
13324
13328
  };
@@ -13411,10 +13415,10 @@ var sesame = $root.sesame = (() => {
13411
13415
  136
13412
13416
  ).uint32(message.postroll);
13413
13417
  if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
13414
- writer.uint32(
13418
+ $root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
13415
13419
  /* id 18, wireType 2 =*/
13416
13420
  146
13417
- ).string(message.metadata);
13421
+ ).fork()).ldelim();
13418
13422
  return writer;
13419
13423
  };
13420
13424
  TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
@@ -13498,7 +13502,7 @@ var sesame = $root.sesame = (() => {
13498
13502
  break;
13499
13503
  }
13500
13504
  case 18: {
13501
- message.metadata = reader.string();
13505
+ message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
13502
13506
  break;
13503
13507
  }
13504
13508
  default:
@@ -13592,8 +13596,9 @@ var sesame = $root.sesame = (() => {
13592
13596
  return "postroll: integer expected";
13593
13597
  }
13594
13598
  if (message.metadata != null && message.hasOwnProperty("metadata")) {
13595
- if (!$util.isString(message.metadata))
13596
- return "metadata: string expected";
13599
+ let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
13600
+ if (error)
13601
+ return "metadata." + error;
13597
13602
  }
13598
13603
  return null;
13599
13604
  };
@@ -13717,8 +13722,11 @@ var sesame = $root.sesame = (() => {
13717
13722
  message.preroll = object.preroll >>> 0;
13718
13723
  if (object.postroll != null)
13719
13724
  message.postroll = object.postroll >>> 0;
13720
- if (object.metadata != null)
13721
- message.metadata = String(object.metadata);
13725
+ if (object.metadata != null) {
13726
+ if (typeof object.metadata !== "object")
13727
+ throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
13728
+ message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
13729
+ }
13722
13730
  return message;
13723
13731
  };
13724
13732
  TransportEvent.toObject = function toObject(message, options) {
@@ -13771,7 +13779,7 @@ var sesame = $root.sesame = (() => {
13771
13779
  object.clipDurationUs = options.longs === String ? "0" : 0;
13772
13780
  object.preroll = 0;
13773
13781
  object.postroll = 0;
13774
- object.metadata = "";
13782
+ object.metadata = null;
13775
13783
  }
13776
13784
  if (message.sourceId != null && message.hasOwnProperty("sourceId"))
13777
13785
  object.sourceId = message.sourceId;
@@ -13829,7 +13837,7 @@ var sesame = $root.sesame = (() => {
13829
13837
  if (message.postroll != null && message.hasOwnProperty("postroll"))
13830
13838
  object.postroll = message.postroll;
13831
13839
  if (message.metadata != null && message.hasOwnProperty("metadata"))
13832
- object.metadata = message.metadata;
13840
+ object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
13833
13841
  return object;
13834
13842
  };
13835
13843
  TransportEvent.prototype.toJSON = function toJSON() {