@stinkycomputing/sesame-api-client 1.4.1-beta.8 → 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() {