@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.
@@ -4137,7 +4137,7 @@ var sesame = $root.sesame = (() => {
4137
4137
  }
4138
4138
  }
4139
4139
  NameValue.prototype.name = "";
4140
- NameValue.prototype.value = "";
4140
+ NameValue.prototype.value = null;
4141
4141
  NameValue.create = function create(properties) {
4142
4142
  return new NameValue(properties);
4143
4143
  };
@@ -4150,10 +4150,10 @@ var sesame = $root.sesame = (() => {
4150
4150
  10
4151
4151
  ).string(message.name);
4152
4152
  if (message.value != null && Object.hasOwnProperty.call(message, "value"))
4153
- writer.uint32(
4153
+ $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
4154
4154
  /* id 2, wireType 2 =*/
4155
4155
  18
4156
- ).string(message.value);
4156
+ ).fork()).ldelim();
4157
4157
  return writer;
4158
4158
  };
4159
4159
  NameValue.encodeDelimited = function encodeDelimited(message, writer) {
@@ -4173,7 +4173,7 @@ var sesame = $root.sesame = (() => {
4173
4173
  break;
4174
4174
  }
4175
4175
  case 2: {
4176
- message.value = reader.string();
4176
+ message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
4177
4177
  break;
4178
4178
  }
4179
4179
  default:
@@ -4196,8 +4196,9 @@ var sesame = $root.sesame = (() => {
4196
4196
  return "name: string expected";
4197
4197
  }
4198
4198
  if (message.value != null && message.hasOwnProperty("value")) {
4199
- if (!$util.isString(message.value))
4200
- return "value: string expected";
4199
+ let error = $root.sesame.v1.common.PropValue.verify(message.value);
4200
+ if (error)
4201
+ return "value." + error;
4201
4202
  }
4202
4203
  return null;
4203
4204
  };
@@ -4207,8 +4208,11 @@ var sesame = $root.sesame = (() => {
4207
4208
  let message = new $root.sesame.v1.common.NameValue();
4208
4209
  if (object.name != null)
4209
4210
  message.name = String(object.name);
4210
- if (object.value != null)
4211
- message.value = String(object.value);
4211
+ if (object.value != null) {
4212
+ if (typeof object.value !== "object")
4213
+ throw TypeError(".sesame.v1.common.NameValue.value: object expected");
4214
+ message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
4215
+ }
4212
4216
  return message;
4213
4217
  };
4214
4218
  NameValue.toObject = function toObject(message, options) {
@@ -4217,12 +4221,12 @@ var sesame = $root.sesame = (() => {
4217
4221
  let object = {};
4218
4222
  if (options.defaults) {
4219
4223
  object.name = "";
4220
- object.value = "";
4224
+ object.value = null;
4221
4225
  }
4222
4226
  if (message.name != null && message.hasOwnProperty("name"))
4223
4227
  object.name = message.name;
4224
4228
  if (message.value != null && message.hasOwnProperty("value"))
4225
- object.value = message.value;
4229
+ object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
4226
4230
  return object;
4227
4231
  };
4228
4232
  NameValue.prototype.toJSON = function toJSON() {