@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.
- package/dist/index.browser.mjs +128 -0
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +128 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +128 -0
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +127 -0
- package/dist/proto/api.js +285 -0
- package/dist/sesame-api-client.d.ts +2 -0
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/proto/api.d.ts
CHANGED
|
@@ -9264,6 +9264,9 @@ export namespace sesame {
|
|
|
9264
9264
|
|
|
9265
9265
|
/** SystemStatus vmaBytes */
|
|
9266
9266
|
vmaBytes?: (number|Long|null);
|
|
9267
|
+
|
|
9268
|
+
/** SystemStatus version */
|
|
9269
|
+
version?: (string|null);
|
|
9267
9270
|
}
|
|
9268
9271
|
|
|
9269
9272
|
/** Represents a SystemStatus. */
|
|
@@ -9326,6 +9329,9 @@ export namespace sesame {
|
|
|
9326
9329
|
/** SystemStatus vmaBytes. */
|
|
9327
9330
|
public vmaBytes: (number|Long);
|
|
9328
9331
|
|
|
9332
|
+
/** SystemStatus version. */
|
|
9333
|
+
public version: string;
|
|
9334
|
+
|
|
9329
9335
|
/**
|
|
9330
9336
|
* Creates a new SystemStatus instance using the specified properties.
|
|
9331
9337
|
* @param [properties] Properties to set
|
|
@@ -15371,6 +15377,106 @@ export namespace sesame {
|
|
|
15371
15377
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15372
15378
|
}
|
|
15373
15379
|
|
|
15380
|
+
/** Properties of a SystemOperationRequest. */
|
|
15381
|
+
interface ISystemOperationRequest {
|
|
15382
|
+
|
|
15383
|
+
/** SystemOperationRequest resetFrameDrops */
|
|
15384
|
+
resetFrameDrops?: (sesame.v1.common.IEmpty|null);
|
|
15385
|
+
}
|
|
15386
|
+
|
|
15387
|
+
/** Represents a SystemOperationRequest. */
|
|
15388
|
+
class SystemOperationRequest implements ISystemOperationRequest {
|
|
15389
|
+
|
|
15390
|
+
/**
|
|
15391
|
+
* Constructs a new SystemOperationRequest.
|
|
15392
|
+
* @param [properties] Properties to set
|
|
15393
|
+
*/
|
|
15394
|
+
constructor(properties?: sesame.v1.rpc.ISystemOperationRequest);
|
|
15395
|
+
|
|
15396
|
+
/** SystemOperationRequest resetFrameDrops. */
|
|
15397
|
+
public resetFrameDrops?: (sesame.v1.common.IEmpty|null);
|
|
15398
|
+
|
|
15399
|
+
/** SystemOperationRequest operation. */
|
|
15400
|
+
public operation?: "resetFrameDrops";
|
|
15401
|
+
|
|
15402
|
+
/**
|
|
15403
|
+
* Creates a new SystemOperationRequest instance using the specified properties.
|
|
15404
|
+
* @param [properties] Properties to set
|
|
15405
|
+
* @returns SystemOperationRequest instance
|
|
15406
|
+
*/
|
|
15407
|
+
public static create(properties?: sesame.v1.rpc.ISystemOperationRequest): sesame.v1.rpc.SystemOperationRequest;
|
|
15408
|
+
|
|
15409
|
+
/**
|
|
15410
|
+
* Encodes the specified SystemOperationRequest message. Does not implicitly {@link sesame.v1.rpc.SystemOperationRequest.verify|verify} messages.
|
|
15411
|
+
* @param message SystemOperationRequest message or plain object to encode
|
|
15412
|
+
* @param [writer] Writer to encode to
|
|
15413
|
+
* @returns Writer
|
|
15414
|
+
*/
|
|
15415
|
+
public static encode(message: sesame.v1.rpc.ISystemOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15416
|
+
|
|
15417
|
+
/**
|
|
15418
|
+
* Encodes the specified SystemOperationRequest message, length delimited. Does not implicitly {@link sesame.v1.rpc.SystemOperationRequest.verify|verify} messages.
|
|
15419
|
+
* @param message SystemOperationRequest message or plain object to encode
|
|
15420
|
+
* @param [writer] Writer to encode to
|
|
15421
|
+
* @returns Writer
|
|
15422
|
+
*/
|
|
15423
|
+
public static encodeDelimited(message: sesame.v1.rpc.ISystemOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15424
|
+
|
|
15425
|
+
/**
|
|
15426
|
+
* Decodes a SystemOperationRequest message from the specified reader or buffer.
|
|
15427
|
+
* @param reader Reader or buffer to decode from
|
|
15428
|
+
* @param [length] Message length if known beforehand
|
|
15429
|
+
* @returns SystemOperationRequest
|
|
15430
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15431
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15432
|
+
*/
|
|
15433
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sesame.v1.rpc.SystemOperationRequest;
|
|
15434
|
+
|
|
15435
|
+
/**
|
|
15436
|
+
* Decodes a SystemOperationRequest message from the specified reader or buffer, length delimited.
|
|
15437
|
+
* @param reader Reader or buffer to decode from
|
|
15438
|
+
* @returns SystemOperationRequest
|
|
15439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15441
|
+
*/
|
|
15442
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sesame.v1.rpc.SystemOperationRequest;
|
|
15443
|
+
|
|
15444
|
+
/**
|
|
15445
|
+
* Verifies a SystemOperationRequest message.
|
|
15446
|
+
* @param message Plain object to verify
|
|
15447
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15448
|
+
*/
|
|
15449
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15450
|
+
|
|
15451
|
+
/**
|
|
15452
|
+
* Creates a SystemOperationRequest message from a plain object. Also converts values to their respective internal types.
|
|
15453
|
+
* @param object Plain object
|
|
15454
|
+
* @returns SystemOperationRequest
|
|
15455
|
+
*/
|
|
15456
|
+
public static fromObject(object: { [k: string]: any }): sesame.v1.rpc.SystemOperationRequest;
|
|
15457
|
+
|
|
15458
|
+
/**
|
|
15459
|
+
* Creates a plain object from a SystemOperationRequest message. Also converts values to other types if specified.
|
|
15460
|
+
* @param message SystemOperationRequest
|
|
15461
|
+
* @param [options] Conversion options
|
|
15462
|
+
* @returns Plain object
|
|
15463
|
+
*/
|
|
15464
|
+
public static toObject(message: sesame.v1.rpc.SystemOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15465
|
+
|
|
15466
|
+
/**
|
|
15467
|
+
* Converts this SystemOperationRequest to JSON.
|
|
15468
|
+
* @returns JSON object
|
|
15469
|
+
*/
|
|
15470
|
+
public toJSON(): { [k: string]: any };
|
|
15471
|
+
|
|
15472
|
+
/**
|
|
15473
|
+
* Gets the default type url for SystemOperationRequest
|
|
15474
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15475
|
+
* @returns The default type url
|
|
15476
|
+
*/
|
|
15477
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15478
|
+
}
|
|
15479
|
+
|
|
15374
15480
|
/** Represents a SesameAPIService */
|
|
15375
15481
|
class SesameAPIService extends $protobuf.rpc.Service {
|
|
15376
15482
|
|
|
@@ -15572,6 +15678,20 @@ export namespace sesame {
|
|
|
15572
15678
|
* @returns Promise
|
|
15573
15679
|
*/
|
|
15574
15680
|
public publishMetadata(request: sesame.v1.rpc.IPublishMetadataRequest): Promise<sesame.v1.common.Empty>;
|
|
15681
|
+
|
|
15682
|
+
/**
|
|
15683
|
+
* Calls RequestSystemOperation.
|
|
15684
|
+
* @param request SystemOperationRequest message or plain object
|
|
15685
|
+
* @param callback Node-style callback called with the error, if any, and Empty
|
|
15686
|
+
*/
|
|
15687
|
+
public requestSystemOperation(request: sesame.v1.rpc.ISystemOperationRequest, callback: sesame.v1.rpc.SesameAPIService.RequestSystemOperationCallback): void;
|
|
15688
|
+
|
|
15689
|
+
/**
|
|
15690
|
+
* Calls RequestSystemOperation.
|
|
15691
|
+
* @param request SystemOperationRequest message or plain object
|
|
15692
|
+
* @returns Promise
|
|
15693
|
+
*/
|
|
15694
|
+
public requestSystemOperation(request: sesame.v1.rpc.ISystemOperationRequest): Promise<sesame.v1.common.Empty>;
|
|
15575
15695
|
}
|
|
15576
15696
|
|
|
15577
15697
|
namespace SesameAPIService {
|
|
@@ -15666,6 +15786,13 @@ export namespace sesame {
|
|
|
15666
15786
|
* @param [response] Empty
|
|
15667
15787
|
*/
|
|
15668
15788
|
type PublishMetadataCallback = (error: (Error|null), response?: sesame.v1.common.Empty) => void;
|
|
15789
|
+
|
|
15790
|
+
/**
|
|
15791
|
+
* Callback as used by {@link sesame.v1.rpc.SesameAPIService#requestSystemOperation}.
|
|
15792
|
+
* @param error Error, if any
|
|
15793
|
+
* @param [response] Empty
|
|
15794
|
+
*/
|
|
15795
|
+
type RequestSystemOperationCallback = (error: (Error|null), response?: sesame.v1.common.Empty) => void;
|
|
15669
15796
|
}
|
|
15670
15797
|
}
|
|
15671
15798
|
|
package/dist/proto/api.js
CHANGED
|
@@ -25217,6 +25217,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
25217
25217
|
* @property {number|null} [gpuDecoderUtilization] SystemStatus gpuDecoderUtilization
|
|
25218
25218
|
* @property {string|null} [gpuName] SystemStatus gpuName
|
|
25219
25219
|
* @property {number|Long|null} [vmaBytes] SystemStatus vmaBytes
|
|
25220
|
+
* @property {string|null} [version] SystemStatus version
|
|
25220
25221
|
*/
|
|
25221
25222
|
|
|
25222
25223
|
/**
|
|
@@ -25370,6 +25371,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
25370
25371
|
*/
|
|
25371
25372
|
SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
25372
25373
|
|
|
25374
|
+
/**
|
|
25375
|
+
* SystemStatus version.
|
|
25376
|
+
* @member {string} version
|
|
25377
|
+
* @memberof sesame.v1.status.SystemStatus
|
|
25378
|
+
* @instance
|
|
25379
|
+
*/
|
|
25380
|
+
SystemStatus.prototype.version = "";
|
|
25381
|
+
|
|
25373
25382
|
/**
|
|
25374
25383
|
* Creates a new SystemStatus instance using the specified properties.
|
|
25375
25384
|
* @function create
|
|
@@ -25428,6 +25437,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
25428
25437
|
writer.uint32(/* id 16, wireType 2 =*/130).string(message.gpuName);
|
|
25429
25438
|
if (message.vmaBytes != null && Object.hasOwnProperty.call(message, "vmaBytes"))
|
|
25430
25439
|
writer.uint32(/* id 17, wireType 0 =*/136).uint64(message.vmaBytes);
|
|
25440
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
25441
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.version);
|
|
25431
25442
|
return writer;
|
|
25432
25443
|
};
|
|
25433
25444
|
|
|
@@ -25532,6 +25543,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
25532
25543
|
message.vmaBytes = reader.uint64();
|
|
25533
25544
|
break;
|
|
25534
25545
|
}
|
|
25546
|
+
case 18: {
|
|
25547
|
+
message.version = reader.string();
|
|
25548
|
+
break;
|
|
25549
|
+
}
|
|
25535
25550
|
default:
|
|
25536
25551
|
reader.skipType(tag & 7);
|
|
25537
25552
|
break;
|
|
@@ -25626,6 +25641,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
25626
25641
|
if (message.vmaBytes != null && message.hasOwnProperty("vmaBytes"))
|
|
25627
25642
|
if (!$util.isInteger(message.vmaBytes) && !(message.vmaBytes && $util.isInteger(message.vmaBytes.low) && $util.isInteger(message.vmaBytes.high)))
|
|
25628
25643
|
return "vmaBytes: integer|Long expected";
|
|
25644
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
25645
|
+
if (!$util.isString(message.version))
|
|
25646
|
+
return "version: string expected";
|
|
25629
25647
|
return null;
|
|
25630
25648
|
};
|
|
25631
25649
|
|
|
@@ -25729,6 +25747,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
25729
25747
|
message.vmaBytes = object.vmaBytes;
|
|
25730
25748
|
else if (typeof object.vmaBytes === "object")
|
|
25731
25749
|
message.vmaBytes = new $util.LongBits(object.vmaBytes.low >>> 0, object.vmaBytes.high >>> 0).toNumber(true);
|
|
25750
|
+
if (object.version != null)
|
|
25751
|
+
message.version = String(object.version);
|
|
25732
25752
|
return message;
|
|
25733
25753
|
};
|
|
25734
25754
|
|
|
@@ -25787,6 +25807,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
25787
25807
|
object.vmaBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25788
25808
|
} else
|
|
25789
25809
|
object.vmaBytes = options.longs === String ? "0" : 0;
|
|
25810
|
+
object.version = "";
|
|
25790
25811
|
}
|
|
25791
25812
|
if (message.uptime != null && message.hasOwnProperty("uptime"))
|
|
25792
25813
|
if (typeof message.uptime === "number")
|
|
@@ -25840,6 +25861,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
25840
25861
|
object.vmaBytes = options.longs === String ? String(message.vmaBytes) : message.vmaBytes;
|
|
25841
25862
|
else
|
|
25842
25863
|
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;
|
|
25864
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
25865
|
+
object.version = message.version;
|
|
25843
25866
|
return object;
|
|
25844
25867
|
};
|
|
25845
25868
|
|
|
@@ -42247,6 +42270,235 @@ export const sesame = $root.sesame = (() => {
|
|
|
42247
42270
|
return PublishMetadataRequest;
|
|
42248
42271
|
})();
|
|
42249
42272
|
|
|
42273
|
+
rpc.SystemOperationRequest = (function() {
|
|
42274
|
+
|
|
42275
|
+
/**
|
|
42276
|
+
* Properties of a SystemOperationRequest.
|
|
42277
|
+
* @memberof sesame.v1.rpc
|
|
42278
|
+
* @interface ISystemOperationRequest
|
|
42279
|
+
* @property {sesame.v1.common.IEmpty|null} [resetFrameDrops] SystemOperationRequest resetFrameDrops
|
|
42280
|
+
*/
|
|
42281
|
+
|
|
42282
|
+
/**
|
|
42283
|
+
* Constructs a new SystemOperationRequest.
|
|
42284
|
+
* @memberof sesame.v1.rpc
|
|
42285
|
+
* @classdesc Represents a SystemOperationRequest.
|
|
42286
|
+
* @implements ISystemOperationRequest
|
|
42287
|
+
* @constructor
|
|
42288
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest=} [properties] Properties to set
|
|
42289
|
+
*/
|
|
42290
|
+
function SystemOperationRequest(properties) {
|
|
42291
|
+
if (properties)
|
|
42292
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42293
|
+
if (properties[keys[i]] != null)
|
|
42294
|
+
this[keys[i]] = properties[keys[i]];
|
|
42295
|
+
}
|
|
42296
|
+
|
|
42297
|
+
/**
|
|
42298
|
+
* SystemOperationRequest resetFrameDrops.
|
|
42299
|
+
* @member {sesame.v1.common.IEmpty|null|undefined} resetFrameDrops
|
|
42300
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42301
|
+
* @instance
|
|
42302
|
+
*/
|
|
42303
|
+
SystemOperationRequest.prototype.resetFrameDrops = null;
|
|
42304
|
+
|
|
42305
|
+
// OneOf field names bound to virtual getters and setters
|
|
42306
|
+
let $oneOfFields;
|
|
42307
|
+
|
|
42308
|
+
/**
|
|
42309
|
+
* SystemOperationRequest operation.
|
|
42310
|
+
* @member {"resetFrameDrops"|undefined} operation
|
|
42311
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42312
|
+
* @instance
|
|
42313
|
+
*/
|
|
42314
|
+
Object.defineProperty(SystemOperationRequest.prototype, "operation", {
|
|
42315
|
+
get: $util.oneOfGetter($oneOfFields = ["resetFrameDrops"]),
|
|
42316
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
42317
|
+
});
|
|
42318
|
+
|
|
42319
|
+
/**
|
|
42320
|
+
* Creates a new SystemOperationRequest instance using the specified properties.
|
|
42321
|
+
* @function create
|
|
42322
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42323
|
+
* @static
|
|
42324
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest=} [properties] Properties to set
|
|
42325
|
+
* @returns {sesame.v1.rpc.SystemOperationRequest} SystemOperationRequest instance
|
|
42326
|
+
*/
|
|
42327
|
+
SystemOperationRequest.create = function create(properties) {
|
|
42328
|
+
return new SystemOperationRequest(properties);
|
|
42329
|
+
};
|
|
42330
|
+
|
|
42331
|
+
/**
|
|
42332
|
+
* Encodes the specified SystemOperationRequest message. Does not implicitly {@link sesame.v1.rpc.SystemOperationRequest.verify|verify} messages.
|
|
42333
|
+
* @function encode
|
|
42334
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42335
|
+
* @static
|
|
42336
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest} message SystemOperationRequest message or plain object to encode
|
|
42337
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42338
|
+
* @returns {$protobuf.Writer} Writer
|
|
42339
|
+
*/
|
|
42340
|
+
SystemOperationRequest.encode = function encode(message, writer) {
|
|
42341
|
+
if (!writer)
|
|
42342
|
+
writer = $Writer.create();
|
|
42343
|
+
if (message.resetFrameDrops != null && Object.hasOwnProperty.call(message, "resetFrameDrops"))
|
|
42344
|
+
$root.sesame.v1.common.Empty.encode(message.resetFrameDrops, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
42345
|
+
return writer;
|
|
42346
|
+
};
|
|
42347
|
+
|
|
42348
|
+
/**
|
|
42349
|
+
* Encodes the specified SystemOperationRequest message, length delimited. Does not implicitly {@link sesame.v1.rpc.SystemOperationRequest.verify|verify} messages.
|
|
42350
|
+
* @function encodeDelimited
|
|
42351
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42352
|
+
* @static
|
|
42353
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest} message SystemOperationRequest message or plain object to encode
|
|
42354
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42355
|
+
* @returns {$protobuf.Writer} Writer
|
|
42356
|
+
*/
|
|
42357
|
+
SystemOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
42358
|
+
return this.encode(message, writer).ldelim();
|
|
42359
|
+
};
|
|
42360
|
+
|
|
42361
|
+
/**
|
|
42362
|
+
* Decodes a SystemOperationRequest message from the specified reader or buffer.
|
|
42363
|
+
* @function decode
|
|
42364
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42365
|
+
* @static
|
|
42366
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42367
|
+
* @param {number} [length] Message length if known beforehand
|
|
42368
|
+
* @returns {sesame.v1.rpc.SystemOperationRequest} SystemOperationRequest
|
|
42369
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42370
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42371
|
+
*/
|
|
42372
|
+
SystemOperationRequest.decode = function decode(reader, length, error) {
|
|
42373
|
+
if (!(reader instanceof $Reader))
|
|
42374
|
+
reader = $Reader.create(reader);
|
|
42375
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
42376
|
+
while (reader.pos < end) {
|
|
42377
|
+
let tag = reader.uint32();
|
|
42378
|
+
if (tag === error)
|
|
42379
|
+
break;
|
|
42380
|
+
switch (tag >>> 3) {
|
|
42381
|
+
case 1: {
|
|
42382
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.decode(reader, reader.uint32());
|
|
42383
|
+
break;
|
|
42384
|
+
}
|
|
42385
|
+
default:
|
|
42386
|
+
reader.skipType(tag & 7);
|
|
42387
|
+
break;
|
|
42388
|
+
}
|
|
42389
|
+
}
|
|
42390
|
+
return message;
|
|
42391
|
+
};
|
|
42392
|
+
|
|
42393
|
+
/**
|
|
42394
|
+
* Decodes a SystemOperationRequest message from the specified reader or buffer, length delimited.
|
|
42395
|
+
* @function decodeDelimited
|
|
42396
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42397
|
+
* @static
|
|
42398
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42399
|
+
* @returns {sesame.v1.rpc.SystemOperationRequest} SystemOperationRequest
|
|
42400
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42401
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42402
|
+
*/
|
|
42403
|
+
SystemOperationRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
42404
|
+
if (!(reader instanceof $Reader))
|
|
42405
|
+
reader = new $Reader(reader);
|
|
42406
|
+
return this.decode(reader, reader.uint32());
|
|
42407
|
+
};
|
|
42408
|
+
|
|
42409
|
+
/**
|
|
42410
|
+
* Verifies a SystemOperationRequest message.
|
|
42411
|
+
* @function verify
|
|
42412
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42413
|
+
* @static
|
|
42414
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
42415
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
42416
|
+
*/
|
|
42417
|
+
SystemOperationRequest.verify = function verify(message) {
|
|
42418
|
+
if (typeof message !== "object" || message === null)
|
|
42419
|
+
return "object expected";
|
|
42420
|
+
let properties = {};
|
|
42421
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
42422
|
+
properties.operation = 1;
|
|
42423
|
+
{
|
|
42424
|
+
let error = $root.sesame.v1.common.Empty.verify(message.resetFrameDrops);
|
|
42425
|
+
if (error)
|
|
42426
|
+
return "resetFrameDrops." + error;
|
|
42427
|
+
}
|
|
42428
|
+
}
|
|
42429
|
+
return null;
|
|
42430
|
+
};
|
|
42431
|
+
|
|
42432
|
+
/**
|
|
42433
|
+
* Creates a SystemOperationRequest message from a plain object. Also converts values to their respective internal types.
|
|
42434
|
+
* @function fromObject
|
|
42435
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42436
|
+
* @static
|
|
42437
|
+
* @param {Object.<string,*>} object Plain object
|
|
42438
|
+
* @returns {sesame.v1.rpc.SystemOperationRequest} SystemOperationRequest
|
|
42439
|
+
*/
|
|
42440
|
+
SystemOperationRequest.fromObject = function fromObject(object) {
|
|
42441
|
+
if (object instanceof $root.sesame.v1.rpc.SystemOperationRequest)
|
|
42442
|
+
return object;
|
|
42443
|
+
let message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
42444
|
+
if (object.resetFrameDrops != null) {
|
|
42445
|
+
if (typeof object.resetFrameDrops !== "object")
|
|
42446
|
+
throw TypeError(".sesame.v1.rpc.SystemOperationRequest.resetFrameDrops: object expected");
|
|
42447
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.fromObject(object.resetFrameDrops);
|
|
42448
|
+
}
|
|
42449
|
+
return message;
|
|
42450
|
+
};
|
|
42451
|
+
|
|
42452
|
+
/**
|
|
42453
|
+
* Creates a plain object from a SystemOperationRequest message. Also converts values to other types if specified.
|
|
42454
|
+
* @function toObject
|
|
42455
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42456
|
+
* @static
|
|
42457
|
+
* @param {sesame.v1.rpc.SystemOperationRequest} message SystemOperationRequest
|
|
42458
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
42459
|
+
* @returns {Object.<string,*>} Plain object
|
|
42460
|
+
*/
|
|
42461
|
+
SystemOperationRequest.toObject = function toObject(message, options) {
|
|
42462
|
+
if (!options)
|
|
42463
|
+
options = {};
|
|
42464
|
+
let object = {};
|
|
42465
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
42466
|
+
object.resetFrameDrops = $root.sesame.v1.common.Empty.toObject(message.resetFrameDrops, options);
|
|
42467
|
+
if (options.oneofs)
|
|
42468
|
+
object.operation = "resetFrameDrops";
|
|
42469
|
+
}
|
|
42470
|
+
return object;
|
|
42471
|
+
};
|
|
42472
|
+
|
|
42473
|
+
/**
|
|
42474
|
+
* Converts this SystemOperationRequest to JSON.
|
|
42475
|
+
* @function toJSON
|
|
42476
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42477
|
+
* @instance
|
|
42478
|
+
* @returns {Object.<string,*>} JSON object
|
|
42479
|
+
*/
|
|
42480
|
+
SystemOperationRequest.prototype.toJSON = function toJSON() {
|
|
42481
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42482
|
+
};
|
|
42483
|
+
|
|
42484
|
+
/**
|
|
42485
|
+
* Gets the default type url for SystemOperationRequest
|
|
42486
|
+
* @function getTypeUrl
|
|
42487
|
+
* @memberof sesame.v1.rpc.SystemOperationRequest
|
|
42488
|
+
* @static
|
|
42489
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
42490
|
+
* @returns {string} The default type url
|
|
42491
|
+
*/
|
|
42492
|
+
SystemOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
42493
|
+
if (typeUrlPrefix === undefined) {
|
|
42494
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
42495
|
+
}
|
|
42496
|
+
return typeUrlPrefix + "/sesame.v1.rpc.SystemOperationRequest";
|
|
42497
|
+
};
|
|
42498
|
+
|
|
42499
|
+
return SystemOperationRequest;
|
|
42500
|
+
})();
|
|
42501
|
+
|
|
42250
42502
|
rpc.SesameAPIService = (function() {
|
|
42251
42503
|
|
|
42252
42504
|
/**
|
|
@@ -42708,6 +42960,39 @@ export const sesame = $root.sesame = (() => {
|
|
|
42708
42960
|
* @variation 2
|
|
42709
42961
|
*/
|
|
42710
42962
|
|
|
42963
|
+
/**
|
|
42964
|
+
* Callback as used by {@link sesame.v1.rpc.SesameAPIService#requestSystemOperation}.
|
|
42965
|
+
* @memberof sesame.v1.rpc.SesameAPIService
|
|
42966
|
+
* @typedef RequestSystemOperationCallback
|
|
42967
|
+
* @type {function}
|
|
42968
|
+
* @param {Error|null} error Error, if any
|
|
42969
|
+
* @param {sesame.v1.common.Empty} [response] Empty
|
|
42970
|
+
*/
|
|
42971
|
+
|
|
42972
|
+
/**
|
|
42973
|
+
* Calls RequestSystemOperation.
|
|
42974
|
+
* @function requestSystemOperation
|
|
42975
|
+
* @memberof sesame.v1.rpc.SesameAPIService
|
|
42976
|
+
* @instance
|
|
42977
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest} request SystemOperationRequest message or plain object
|
|
42978
|
+
* @param {sesame.v1.rpc.SesameAPIService.RequestSystemOperationCallback} callback Node-style callback called with the error, if any, and Empty
|
|
42979
|
+
* @returns {undefined}
|
|
42980
|
+
* @variation 1
|
|
42981
|
+
*/
|
|
42982
|
+
Object.defineProperty(SesameAPIService.prototype.requestSystemOperation = function requestSystemOperation(request, callback) {
|
|
42983
|
+
return this.rpcCall(requestSystemOperation, $root.sesame.v1.rpc.SystemOperationRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
42984
|
+
}, "name", { value: "RequestSystemOperation" });
|
|
42985
|
+
|
|
42986
|
+
/**
|
|
42987
|
+
* Calls RequestSystemOperation.
|
|
42988
|
+
* @function requestSystemOperation
|
|
42989
|
+
* @memberof sesame.v1.rpc.SesameAPIService
|
|
42990
|
+
* @instance
|
|
42991
|
+
* @param {sesame.v1.rpc.ISystemOperationRequest} request SystemOperationRequest message or plain object
|
|
42992
|
+
* @returns {Promise<sesame.v1.common.Empty>} Promise
|
|
42993
|
+
* @variation 2
|
|
42994
|
+
*/
|
|
42995
|
+
|
|
42711
42996
|
return SesameAPIService;
|
|
42712
42997
|
})();
|
|
42713
42998
|
|
|
@@ -70,6 +70,8 @@ export declare class SesameClient extends EventEmitter {
|
|
|
70
70
|
removeSubscription(topic: sesame.v1.common.EventTopic, callback: TopicDataCallback): void;
|
|
71
71
|
getService(): RPCClient<sesame.v1.rpc.SesameAPIService>;
|
|
72
72
|
requestKeyframe(outputId: string): Promise<void>;
|
|
73
|
+
/** Resets the engine's dropped-frame counter shown in status. */
|
|
74
|
+
resetFrameDrops(): Promise<void>;
|
|
73
75
|
execute(cl: CommandList): Promise<void>;
|
|
74
76
|
/**
|
|
75
77
|
* Publish a data-frame payload to all outbound targets registered for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sesame-api-client.d.ts","sourceRoot":"","sources":["../src/sesame-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,qBAAqB,CAAA;AAE3E,OAAO,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,gBAAgB;IAC5B,aAAa,iBAAiB;IAC9B,eAAe,mBAAmB;IAClC,QAAQ,YAAY;IACpB,SAAS,aAAa;IACtB,WAAW,eAAe;IAC1B,UAAU,cAAc;IACxB,WAAW,eAAe;IAC1B,aAAa,iBAAiB;IAC9B,UAAU,cAAc;IACxB,WAAW,eAAe;IAC1B,aAAa,iBAAiB;IAC9B,aAAa,iBAAiB;IAC9B,cAAc,kBAAkB;IAChC,gBAAgB,oBAAoB;IACpC,cAAc,kBAAkB;IAChC,eAAe,mBAAmB;IAClC,iBAAiB,qBAAqB;IACtC,WAAW,eAAe;IAC1B,YAAY,gBAAgB;IAC5B,cAAc,kBAAkB;IAChC,SAAS,aAAa;IACtB,UAAU,cAAc;IACxB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