@stinkycomputing/sesame-api-client 1.5.12 → 1.6.0

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.
@@ -15039,6 +15039,7 @@ var sesame = $root.sesame = (() => {
15039
15039
  SystemStatus.prototype.gpuDecoderUtilization = 0;
15040
15040
  SystemStatus.prototype.gpuName = "";
15041
15041
  SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
15042
+ SystemStatus.prototype.version = "";
15042
15043
  SystemStatus.create = function create(properties) {
15043
15044
  return new SystemStatus(properties);
15044
15045
  };
@@ -15130,6 +15131,11 @@ var sesame = $root.sesame = (() => {
15130
15131
  /* id 17, wireType 0 =*/
15131
15132
  136
15132
15133
  ).uint64(message.vmaBytes);
15134
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
15135
+ writer.uint32(
15136
+ /* id 18, wireType 2 =*/
15137
+ 146
15138
+ ).string(message.version);
15133
15139
  return writer;
15134
15140
  };
15135
15141
  SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -15212,6 +15218,10 @@ var sesame = $root.sesame = (() => {
15212
15218
  message.vmaBytes = reader.uint64();
15213
15219
  break;
15214
15220
  }
15221
+ case 18: {
15222
+ message.version = reader.string();
15223
+ break;
15224
+ }
15215
15225
  default:
15216
15226
  reader.skipType(tag & 7);
15217
15227
  break;
@@ -15299,6 +15309,10 @@ var sesame = $root.sesame = (() => {
15299
15309
  if (!$util.isInteger(message.vmaBytes) && !(message.vmaBytes && $util.isInteger(message.vmaBytes.low) && $util.isInteger(message.vmaBytes.high)))
15300
15310
  return "vmaBytes: integer|Long expected";
15301
15311
  }
15312
+ if (message.version != null && message.hasOwnProperty("version")) {
15313
+ if (!$util.isString(message.version))
15314
+ return "version: string expected";
15315
+ }
15302
15316
  return null;
15303
15317
  };
15304
15318
  SystemStatus.fromObject = function fromObject(object) {
@@ -15399,6 +15413,8 @@ var sesame = $root.sesame = (() => {
15399
15413
  else if (typeof object.vmaBytes === "object")
15400
15414
  message.vmaBytes = new $util.LongBits(object.vmaBytes.low >>> 0, object.vmaBytes.high >>> 0).toNumber(true);
15401
15415
  }
15416
+ if (object.version != null)
15417
+ message.version = String(object.version);
15402
15418
  return message;
15403
15419
  };
15404
15420
  SystemStatus.toObject = function toObject(message, options) {
@@ -15447,6 +15463,7 @@ var sesame = $root.sesame = (() => {
15447
15463
  object.vmaBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
15448
15464
  } else
15449
15465
  object.vmaBytes = options.longs === String ? "0" : 0;
15466
+ object.version = "";
15450
15467
  }
15451
15468
  if (message.uptime != null && message.hasOwnProperty("uptime"))
15452
15469
  if (typeof message.uptime === "number")
@@ -15500,6 +15517,8 @@ var sesame = $root.sesame = (() => {
15500
15517
  object.vmaBytes = options.longs === String ? String(message.vmaBytes) : message.vmaBytes;
15501
15518
  else
15502
15519
  object.vmaBytes = options.longs === String ? $util.Long.prototype.toString.call(message.vmaBytes) : options.longs === Number ? new $util.LongBits(message.vmaBytes.low >>> 0, message.vmaBytes.high >>> 0).toNumber(true) : message.vmaBytes;
15520
+ if (message.version != null && message.hasOwnProperty("version"))
15521
+ object.version = message.version;
15503
15522
  return object;
15504
15523
  };
15505
15524
  SystemStatus.prototype.toJSON = function toJSON() {
@@ -25100,6 +25119,108 @@ var sesame = $root.sesame = (() => {
25100
25119
  };
25101
25120
  return PublishMetadataRequest;
25102
25121
  }();
25122
+ rpc.SystemOperationRequest = function() {
25123
+ function SystemOperationRequest(properties) {
25124
+ if (properties) {
25125
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25126
+ if (properties[keys[i]] != null)
25127
+ this[keys[i]] = properties[keys[i]];
25128
+ }
25129
+ }
25130
+ SystemOperationRequest.prototype.resetFrameDrops = null;
25131
+ let $oneOfFields;
25132
+ Object.defineProperty(SystemOperationRequest.prototype, "operation", {
25133
+ get: $util.oneOfGetter($oneOfFields = ["resetFrameDrops"]),
25134
+ set: $util.oneOfSetter($oneOfFields)
25135
+ });
25136
+ SystemOperationRequest.create = function create(properties) {
25137
+ return new SystemOperationRequest(properties);
25138
+ };
25139
+ SystemOperationRequest.encode = function encode(message, writer) {
25140
+ if (!writer)
25141
+ writer = $Writer.create();
25142
+ if (message.resetFrameDrops != null && Object.hasOwnProperty.call(message, "resetFrameDrops"))
25143
+ $root.sesame.v1.common.Empty.encode(message.resetFrameDrops, writer.uint32(
25144
+ /* id 1, wireType 2 =*/
25145
+ 10
25146
+ ).fork()).ldelim();
25147
+ return writer;
25148
+ };
25149
+ SystemOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
25150
+ return this.encode(message, writer).ldelim();
25151
+ };
25152
+ SystemOperationRequest.decode = function decode(reader, length, error) {
25153
+ if (!(reader instanceof $Reader))
25154
+ reader = $Reader.create(reader);
25155
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.SystemOperationRequest();
25156
+ while (reader.pos < end) {
25157
+ let tag = reader.uint32();
25158
+ if (tag === error)
25159
+ break;
25160
+ switch (tag >>> 3) {
25161
+ case 1: {
25162
+ message.resetFrameDrops = $root.sesame.v1.common.Empty.decode(reader, reader.uint32());
25163
+ break;
25164
+ }
25165
+ default:
25166
+ reader.skipType(tag & 7);
25167
+ break;
25168
+ }
25169
+ }
25170
+ return message;
25171
+ };
25172
+ SystemOperationRequest.decodeDelimited = function decodeDelimited(reader) {
25173
+ if (!(reader instanceof $Reader))
25174
+ reader = new $Reader(reader);
25175
+ return this.decode(reader, reader.uint32());
25176
+ };
25177
+ SystemOperationRequest.verify = function verify(message) {
25178
+ if (typeof message !== "object" || message === null)
25179
+ return "object expected";
25180
+ let properties = {};
25181
+ if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
25182
+ properties.operation = 1;
25183
+ {
25184
+ let error = $root.sesame.v1.common.Empty.verify(message.resetFrameDrops);
25185
+ if (error)
25186
+ return "resetFrameDrops." + error;
25187
+ }
25188
+ }
25189
+ return null;
25190
+ };
25191
+ SystemOperationRequest.fromObject = function fromObject(object) {
25192
+ if (object instanceof $root.sesame.v1.rpc.SystemOperationRequest)
25193
+ return object;
25194
+ let message = new $root.sesame.v1.rpc.SystemOperationRequest();
25195
+ if (object.resetFrameDrops != null) {
25196
+ if (typeof object.resetFrameDrops !== "object")
25197
+ throw TypeError(".sesame.v1.rpc.SystemOperationRequest.resetFrameDrops: object expected");
25198
+ message.resetFrameDrops = $root.sesame.v1.common.Empty.fromObject(object.resetFrameDrops);
25199
+ }
25200
+ return message;
25201
+ };
25202
+ SystemOperationRequest.toObject = function toObject(message, options) {
25203
+ if (!options)
25204
+ options = {};
25205
+ let object = {};
25206
+ if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
25207
+ object.resetFrameDrops = $root.sesame.v1.common.Empty.toObject(message.resetFrameDrops, options);
25208
+ if (options.oneofs)
25209
+ object.operation = "resetFrameDrops";
25210
+ }
25211
+ return object;
25212
+ };
25213
+ SystemOperationRequest.prototype.toJSON = function toJSON() {
25214
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25215
+ };
25216
+ SystemOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25217
+ if (typeUrlPrefix === void 0) {
25218
+ typeUrlPrefix = "type.googleapis.com";
25219
+ }
25220
+ return typeUrlPrefix + "/sesame.v1.rpc.SystemOperationRequest";
25221
+ };
25222
+ return SystemOperationRequest;
25223
+ }();
25103
25224
  rpc.SesameAPIService = function() {
25104
25225
  function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
25105
25226
  $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
@@ -25147,6 +25268,9 @@ var sesame = $root.sesame = (() => {
25147
25268
  Object.defineProperty(SesameAPIService.prototype.publishMetadata = function publishMetadata(request, callback) {
25148
25269
  return this.rpcCall(publishMetadata, $root.sesame.v1.rpc.PublishMetadataRequest, $root.sesame.v1.common.Empty, request, callback);
25149
25270
  }, "name", { value: "PublishMetadata" });
25271
+ Object.defineProperty(SesameAPIService.prototype.requestSystemOperation = function requestSystemOperation(request, callback) {
25272
+ return this.rpcCall(requestSystemOperation, $root.sesame.v1.rpc.SystemOperationRequest, $root.sesame.v1.common.Empty, request, callback);
25273
+ }, "name", { value: "RequestSystemOperation" });
25150
25274
  return SesameAPIService;
25151
25275
  }();
25152
25276
  return rpc;
@@ -27108,6 +27232,10 @@ var SesameClient = class extends import_events3.EventEmitter {
27108
27232
  async requestKeyframe(outputId) {
27109
27233
  await this.rpc.service.requestKeyframe({ id: outputId });
27110
27234
  }
27235
+ /** Resets the engine's dropped-frame counter shown in status. */
27236
+ async resetFrameDrops() {
27237
+ await this.rpc.service.requestSystemOperation({ resetFrameDrops: {} });
27238
+ }
27111
27239
  async execute(cl) {
27112
27240
  cl.filterCreatedAndDestroyedSources();
27113
27241
  if (cl.getCommandListMsg().commandList.length > 0) {