@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.cjs CHANGED
@@ -3799,7 +3799,7 @@ var sesame = $root.sesame = (() => {
3799
3799
  }
3800
3800
  }
3801
3801
  NameValue.prototype.name = "";
3802
- NameValue.prototype.value = "";
3802
+ NameValue.prototype.value = null;
3803
3803
  NameValue.create = function create(properties) {
3804
3804
  return new NameValue(properties);
3805
3805
  };
@@ -3812,10 +3812,10 @@ var sesame = $root.sesame = (() => {
3812
3812
  10
3813
3813
  ).string(message.name);
3814
3814
  if (message.value != null && Object.hasOwnProperty.call(message, "value"))
3815
- writer.uint32(
3815
+ $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
3816
3816
  /* id 2, wireType 2 =*/
3817
3817
  18
3818
- ).string(message.value);
3818
+ ).fork()).ldelim();
3819
3819
  return writer;
3820
3820
  };
3821
3821
  NameValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3835,7 +3835,7 @@ var sesame = $root.sesame = (() => {
3835
3835
  break;
3836
3836
  }
3837
3837
  case 2: {
3838
- message.value = reader.string();
3838
+ message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
3839
3839
  break;
3840
3840
  }
3841
3841
  default:
@@ -3858,8 +3858,9 @@ var sesame = $root.sesame = (() => {
3858
3858
  return "name: string expected";
3859
3859
  }
3860
3860
  if (message.value != null && message.hasOwnProperty("value")) {
3861
- if (!$util.isString(message.value))
3862
- return "value: string expected";
3861
+ let error = $root.sesame.v1.common.PropValue.verify(message.value);
3862
+ if (error)
3863
+ return "value." + error;
3863
3864
  }
3864
3865
  return null;
3865
3866
  };
@@ -3869,8 +3870,11 @@ var sesame = $root.sesame = (() => {
3869
3870
  let message = new $root.sesame.v1.common.NameValue();
3870
3871
  if (object.name != null)
3871
3872
  message.name = String(object.name);
3872
- if (object.value != null)
3873
- message.value = String(object.value);
3873
+ if (object.value != null) {
3874
+ if (typeof object.value !== "object")
3875
+ throw TypeError(".sesame.v1.common.NameValue.value: object expected");
3876
+ message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
3877
+ }
3874
3878
  return message;
3875
3879
  };
3876
3880
  NameValue.toObject = function toObject(message, options) {
@@ -3879,12 +3883,12 @@ var sesame = $root.sesame = (() => {
3879
3883
  let object = {};
3880
3884
  if (options.defaults) {
3881
3885
  object.name = "";
3882
- object.value = "";
3886
+ object.value = null;
3883
3887
  }
3884
3888
  if (message.name != null && message.hasOwnProperty("name"))
3885
3889
  object.name = message.name;
3886
3890
  if (message.value != null && message.hasOwnProperty("value"))
3887
- object.value = message.value;
3891
+ object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
3888
3892
  return object;
3889
3893
  };
3890
3894
  NameValue.prototype.toJSON = function toJSON() {
@@ -13375,7 +13379,7 @@ var sesame = $root.sesame = (() => {
13375
13379
  TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13376
13380
  TransportEvent.prototype.preroll = 0;
13377
13381
  TransportEvent.prototype.postroll = 0;
13378
- TransportEvent.prototype.metadata = "";
13382
+ TransportEvent.prototype.metadata = null;
13379
13383
  TransportEvent.create = function create(properties) {
13380
13384
  return new TransportEvent(properties);
13381
13385
  };
@@ -13468,10 +13472,10 @@ var sesame = $root.sesame = (() => {
13468
13472
  136
13469
13473
  ).uint32(message.postroll);
13470
13474
  if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
13471
- writer.uint32(
13475
+ $root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
13472
13476
  /* id 18, wireType 2 =*/
13473
13477
  146
13474
- ).string(message.metadata);
13478
+ ).fork()).ldelim();
13475
13479
  return writer;
13476
13480
  };
13477
13481
  TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
@@ -13555,7 +13559,7 @@ var sesame = $root.sesame = (() => {
13555
13559
  break;
13556
13560
  }
13557
13561
  case 18: {
13558
- message.metadata = reader.string();
13562
+ message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
13559
13563
  break;
13560
13564
  }
13561
13565
  default:
@@ -13649,8 +13653,9 @@ var sesame = $root.sesame = (() => {
13649
13653
  return "postroll: integer expected";
13650
13654
  }
13651
13655
  if (message.metadata != null && message.hasOwnProperty("metadata")) {
13652
- if (!$util.isString(message.metadata))
13653
- return "metadata: string expected";
13656
+ let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
13657
+ if (error)
13658
+ return "metadata." + error;
13654
13659
  }
13655
13660
  return null;
13656
13661
  };
@@ -13774,8 +13779,11 @@ var sesame = $root.sesame = (() => {
13774
13779
  message.preroll = object.preroll >>> 0;
13775
13780
  if (object.postroll != null)
13776
13781
  message.postroll = object.postroll >>> 0;
13777
- if (object.metadata != null)
13778
- message.metadata = String(object.metadata);
13782
+ if (object.metadata != null) {
13783
+ if (typeof object.metadata !== "object")
13784
+ throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
13785
+ message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
13786
+ }
13779
13787
  return message;
13780
13788
  };
13781
13789
  TransportEvent.toObject = function toObject(message, options) {
@@ -13828,7 +13836,7 @@ var sesame = $root.sesame = (() => {
13828
13836
  object.clipDurationUs = options.longs === String ? "0" : 0;
13829
13837
  object.preroll = 0;
13830
13838
  object.postroll = 0;
13831
- object.metadata = "";
13839
+ object.metadata = null;
13832
13840
  }
13833
13841
  if (message.sourceId != null && message.hasOwnProperty("sourceId"))
13834
13842
  object.sourceId = message.sourceId;
@@ -13886,7 +13894,7 @@ var sesame = $root.sesame = (() => {
13886
13894
  if (message.postroll != null && message.hasOwnProperty("postroll"))
13887
13895
  object.postroll = message.postroll;
13888
13896
  if (message.metadata != null && message.hasOwnProperty("metadata"))
13889
- object.metadata = message.metadata;
13897
+ object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
13890
13898
  return object;
13891
13899
  };
13892
13900
  TransportEvent.prototype.toJSON = function toJSON() {