@stinkycomputing/sesame-api-client 1.5.11 → 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/generated/property-types.d.ts +7 -1
- package/dist/generated/property-types.d.ts.map +1 -1
- 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/index.mjs
CHANGED
|
@@ -14644,6 +14644,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14644
14644
|
SystemStatus.prototype.gpuDecoderUtilization = 0;
|
|
14645
14645
|
SystemStatus.prototype.gpuName = "";
|
|
14646
14646
|
SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
14647
|
+
SystemStatus.prototype.version = "";
|
|
14647
14648
|
SystemStatus.create = function create(properties) {
|
|
14648
14649
|
return new SystemStatus(properties);
|
|
14649
14650
|
};
|
|
@@ -14735,6 +14736,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14735
14736
|
/* id 17, wireType 0 =*/
|
|
14736
14737
|
136
|
|
14737
14738
|
).uint64(message.vmaBytes);
|
|
14739
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
14740
|
+
writer.uint32(
|
|
14741
|
+
/* id 18, wireType 2 =*/
|
|
14742
|
+
146
|
|
14743
|
+
).string(message.version);
|
|
14738
14744
|
return writer;
|
|
14739
14745
|
};
|
|
14740
14746
|
SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14817,6 +14823,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14817
14823
|
message.vmaBytes = reader.uint64();
|
|
14818
14824
|
break;
|
|
14819
14825
|
}
|
|
14826
|
+
case 18: {
|
|
14827
|
+
message.version = reader.string();
|
|
14828
|
+
break;
|
|
14829
|
+
}
|
|
14820
14830
|
default:
|
|
14821
14831
|
reader.skipType(tag & 7);
|
|
14822
14832
|
break;
|
|
@@ -14904,6 +14914,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14904
14914
|
if (!$util.isInteger(message.vmaBytes) && !(message.vmaBytes && $util.isInteger(message.vmaBytes.low) && $util.isInteger(message.vmaBytes.high)))
|
|
14905
14915
|
return "vmaBytes: integer|Long expected";
|
|
14906
14916
|
}
|
|
14917
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
|
14918
|
+
if (!$util.isString(message.version))
|
|
14919
|
+
return "version: string expected";
|
|
14920
|
+
}
|
|
14907
14921
|
return null;
|
|
14908
14922
|
};
|
|
14909
14923
|
SystemStatus.fromObject = function fromObject(object) {
|
|
@@ -15004,6 +15018,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15004
15018
|
else if (typeof object.vmaBytes === "object")
|
|
15005
15019
|
message.vmaBytes = new $util.LongBits(object.vmaBytes.low >>> 0, object.vmaBytes.high >>> 0).toNumber(true);
|
|
15006
15020
|
}
|
|
15021
|
+
if (object.version != null)
|
|
15022
|
+
message.version = String(object.version);
|
|
15007
15023
|
return message;
|
|
15008
15024
|
};
|
|
15009
15025
|
SystemStatus.toObject = function toObject(message, options) {
|
|
@@ -15052,6 +15068,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15052
15068
|
object.vmaBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
15053
15069
|
} else
|
|
15054
15070
|
object.vmaBytes = options.longs === String ? "0" : 0;
|
|
15071
|
+
object.version = "";
|
|
15055
15072
|
}
|
|
15056
15073
|
if (message.uptime != null && message.hasOwnProperty("uptime"))
|
|
15057
15074
|
if (typeof message.uptime === "number")
|
|
@@ -15105,6 +15122,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15105
15122
|
object.vmaBytes = options.longs === String ? String(message.vmaBytes) : message.vmaBytes;
|
|
15106
15123
|
else
|
|
15107
15124
|
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;
|
|
15125
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
15126
|
+
object.version = message.version;
|
|
15108
15127
|
return object;
|
|
15109
15128
|
};
|
|
15110
15129
|
SystemStatus.prototype.toJSON = function toJSON() {
|
|
@@ -24705,6 +24724,108 @@ var sesame = $root.sesame = (() => {
|
|
|
24705
24724
|
};
|
|
24706
24725
|
return PublishMetadataRequest;
|
|
24707
24726
|
}();
|
|
24727
|
+
rpc.SystemOperationRequest = function() {
|
|
24728
|
+
function SystemOperationRequest(properties) {
|
|
24729
|
+
if (properties) {
|
|
24730
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24731
|
+
if (properties[keys[i]] != null)
|
|
24732
|
+
this[keys[i]] = properties[keys[i]];
|
|
24733
|
+
}
|
|
24734
|
+
}
|
|
24735
|
+
SystemOperationRequest.prototype.resetFrameDrops = null;
|
|
24736
|
+
let $oneOfFields;
|
|
24737
|
+
Object.defineProperty(SystemOperationRequest.prototype, "operation", {
|
|
24738
|
+
get: $util.oneOfGetter($oneOfFields = ["resetFrameDrops"]),
|
|
24739
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24740
|
+
});
|
|
24741
|
+
SystemOperationRequest.create = function create(properties) {
|
|
24742
|
+
return new SystemOperationRequest(properties);
|
|
24743
|
+
};
|
|
24744
|
+
SystemOperationRequest.encode = function encode(message, writer) {
|
|
24745
|
+
if (!writer)
|
|
24746
|
+
writer = $Writer.create();
|
|
24747
|
+
if (message.resetFrameDrops != null && Object.hasOwnProperty.call(message, "resetFrameDrops"))
|
|
24748
|
+
$root.sesame.v1.common.Empty.encode(message.resetFrameDrops, writer.uint32(
|
|
24749
|
+
/* id 1, wireType 2 =*/
|
|
24750
|
+
10
|
|
24751
|
+
).fork()).ldelim();
|
|
24752
|
+
return writer;
|
|
24753
|
+
};
|
|
24754
|
+
SystemOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24755
|
+
return this.encode(message, writer).ldelim();
|
|
24756
|
+
};
|
|
24757
|
+
SystemOperationRequest.decode = function decode(reader, length, error) {
|
|
24758
|
+
if (!(reader instanceof $Reader))
|
|
24759
|
+
reader = $Reader.create(reader);
|
|
24760
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
24761
|
+
while (reader.pos < end) {
|
|
24762
|
+
let tag = reader.uint32();
|
|
24763
|
+
if (tag === error)
|
|
24764
|
+
break;
|
|
24765
|
+
switch (tag >>> 3) {
|
|
24766
|
+
case 1: {
|
|
24767
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.decode(reader, reader.uint32());
|
|
24768
|
+
break;
|
|
24769
|
+
}
|
|
24770
|
+
default:
|
|
24771
|
+
reader.skipType(tag & 7);
|
|
24772
|
+
break;
|
|
24773
|
+
}
|
|
24774
|
+
}
|
|
24775
|
+
return message;
|
|
24776
|
+
};
|
|
24777
|
+
SystemOperationRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
24778
|
+
if (!(reader instanceof $Reader))
|
|
24779
|
+
reader = new $Reader(reader);
|
|
24780
|
+
return this.decode(reader, reader.uint32());
|
|
24781
|
+
};
|
|
24782
|
+
SystemOperationRequest.verify = function verify(message) {
|
|
24783
|
+
if (typeof message !== "object" || message === null)
|
|
24784
|
+
return "object expected";
|
|
24785
|
+
let properties = {};
|
|
24786
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
24787
|
+
properties.operation = 1;
|
|
24788
|
+
{
|
|
24789
|
+
let error = $root.sesame.v1.common.Empty.verify(message.resetFrameDrops);
|
|
24790
|
+
if (error)
|
|
24791
|
+
return "resetFrameDrops." + error;
|
|
24792
|
+
}
|
|
24793
|
+
}
|
|
24794
|
+
return null;
|
|
24795
|
+
};
|
|
24796
|
+
SystemOperationRequest.fromObject = function fromObject(object) {
|
|
24797
|
+
if (object instanceof $root.sesame.v1.rpc.SystemOperationRequest)
|
|
24798
|
+
return object;
|
|
24799
|
+
let message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
24800
|
+
if (object.resetFrameDrops != null) {
|
|
24801
|
+
if (typeof object.resetFrameDrops !== "object")
|
|
24802
|
+
throw TypeError(".sesame.v1.rpc.SystemOperationRequest.resetFrameDrops: object expected");
|
|
24803
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.fromObject(object.resetFrameDrops);
|
|
24804
|
+
}
|
|
24805
|
+
return message;
|
|
24806
|
+
};
|
|
24807
|
+
SystemOperationRequest.toObject = function toObject(message, options) {
|
|
24808
|
+
if (!options)
|
|
24809
|
+
options = {};
|
|
24810
|
+
let object = {};
|
|
24811
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
24812
|
+
object.resetFrameDrops = $root.sesame.v1.common.Empty.toObject(message.resetFrameDrops, options);
|
|
24813
|
+
if (options.oneofs)
|
|
24814
|
+
object.operation = "resetFrameDrops";
|
|
24815
|
+
}
|
|
24816
|
+
return object;
|
|
24817
|
+
};
|
|
24818
|
+
SystemOperationRequest.prototype.toJSON = function toJSON() {
|
|
24819
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24820
|
+
};
|
|
24821
|
+
SystemOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
24822
|
+
if (typeUrlPrefix === void 0) {
|
|
24823
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
24824
|
+
}
|
|
24825
|
+
return typeUrlPrefix + "/sesame.v1.rpc.SystemOperationRequest";
|
|
24826
|
+
};
|
|
24827
|
+
return SystemOperationRequest;
|
|
24828
|
+
}();
|
|
24708
24829
|
rpc.SesameAPIService = function() {
|
|
24709
24830
|
function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
|
|
24710
24831
|
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
@@ -24752,6 +24873,9 @@ var sesame = $root.sesame = (() => {
|
|
|
24752
24873
|
Object.defineProperty(SesameAPIService.prototype.publishMetadata = function publishMetadata(request, callback) {
|
|
24753
24874
|
return this.rpcCall(publishMetadata, $root.sesame.v1.rpc.PublishMetadataRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
24754
24875
|
}, "name", { value: "PublishMetadata" });
|
|
24876
|
+
Object.defineProperty(SesameAPIService.prototype.requestSystemOperation = function requestSystemOperation(request, callback) {
|
|
24877
|
+
return this.rpcCall(requestSystemOperation, $root.sesame.v1.rpc.SystemOperationRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
24878
|
+
}, "name", { value: "RequestSystemOperation" });
|
|
24755
24879
|
return SesameAPIService;
|
|
24756
24880
|
}();
|
|
24757
24881
|
return rpc;
|
|
@@ -26713,6 +26837,10 @@ var SesameClient = class extends EventEmitter3 {
|
|
|
26713
26837
|
async requestKeyframe(outputId) {
|
|
26714
26838
|
await this.rpc.service.requestKeyframe({ id: outputId });
|
|
26715
26839
|
}
|
|
26840
|
+
/** Resets the engine's dropped-frame counter shown in status. */
|
|
26841
|
+
async resetFrameDrops() {
|
|
26842
|
+
await this.rpc.service.requestSystemOperation({ resetFrameDrops: {} });
|
|
26843
|
+
}
|
|
26716
26844
|
async execute(cl) {
|
|
26717
26845
|
cl.filterCreatedAndDestroyedSources();
|
|
26718
26846
|
if (cl.getCommandListMsg().commandList.length > 0) {
|