@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.
@@ -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() {
@@ -13713,7 +13717,7 @@ var sesame = $root.sesame = (() => {
13713
13717
  TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13714
13718
  TransportEvent.prototype.preroll = 0;
13715
13719
  TransportEvent.prototype.postroll = 0;
13716
- TransportEvent.prototype.metadata = "";
13720
+ TransportEvent.prototype.metadata = null;
13717
13721
  TransportEvent.create = function create(properties) {
13718
13722
  return new TransportEvent(properties);
13719
13723
  };
@@ -13806,10 +13810,10 @@ var sesame = $root.sesame = (() => {
13806
13810
  136
13807
13811
  ).uint32(message.postroll);
13808
13812
  if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
13809
- writer.uint32(
13813
+ $root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
13810
13814
  /* id 18, wireType 2 =*/
13811
13815
  146
13812
- ).string(message.metadata);
13816
+ ).fork()).ldelim();
13813
13817
  return writer;
13814
13818
  };
13815
13819
  TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
@@ -13893,7 +13897,7 @@ var sesame = $root.sesame = (() => {
13893
13897
  break;
13894
13898
  }
13895
13899
  case 18: {
13896
- message.metadata = reader.string();
13900
+ message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
13897
13901
  break;
13898
13902
  }
13899
13903
  default:
@@ -13987,8 +13991,9 @@ var sesame = $root.sesame = (() => {
13987
13991
  return "postroll: integer expected";
13988
13992
  }
13989
13993
  if (message.metadata != null && message.hasOwnProperty("metadata")) {
13990
- if (!$util.isString(message.metadata))
13991
- return "metadata: string expected";
13994
+ let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
13995
+ if (error)
13996
+ return "metadata." + error;
13992
13997
  }
13993
13998
  return null;
13994
13999
  };
@@ -14112,8 +14117,11 @@ var sesame = $root.sesame = (() => {
14112
14117
  message.preroll = object.preroll >>> 0;
14113
14118
  if (object.postroll != null)
14114
14119
  message.postroll = object.postroll >>> 0;
14115
- if (object.metadata != null)
14116
- message.metadata = String(object.metadata);
14120
+ if (object.metadata != null) {
14121
+ if (typeof object.metadata !== "object")
14122
+ throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
14123
+ message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
14124
+ }
14117
14125
  return message;
14118
14126
  };
14119
14127
  TransportEvent.toObject = function toObject(message, options) {
@@ -14166,7 +14174,7 @@ var sesame = $root.sesame = (() => {
14166
14174
  object.clipDurationUs = options.longs === String ? "0" : 0;
14167
14175
  object.preroll = 0;
14168
14176
  object.postroll = 0;
14169
- object.metadata = "";
14177
+ object.metadata = null;
14170
14178
  }
14171
14179
  if (message.sourceId != null && message.hasOwnProperty("sourceId"))
14172
14180
  object.sourceId = message.sourceId;
@@ -14224,7 +14232,7 @@ var sesame = $root.sesame = (() => {
14224
14232
  if (message.postroll != null && message.hasOwnProperty("postroll"))
14225
14233
  object.postroll = message.postroll;
14226
14234
  if (message.metadata != null && message.hasOwnProperty("metadata"))
14227
- object.metadata = message.metadata;
14235
+ object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
14228
14236
  return object;
14229
14237
  };
14230
14238
  TransportEvent.prototype.toJSON = function toJSON() {