edge-impulse-linux 1.15.6 → 1.16.1
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/build/cli/linux/camera-debug.js +4 -2
- package/build/cli/linux/camera-debug.js.map +1 -1
- package/build/cli/linux/linux.js +17 -8
- package/build/cli/linux/linux.js.map +1 -1
- package/build/cli/linux/runner-utils.d.ts +12 -4
- package/build/cli/linux/runner-utils.js +191 -47
- package/build/cli/linux/runner-utils.js.map +1 -1
- package/build/cli/linux/runner.js +94 -16
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli/linux/webserver/middleware/asyncMiddleware.js.map +1 -1
- package/build/cli/linux/webserver/public/webserver.js +5 -1
- package/build/cli/linux/webserver/public/webserver.js.map +1 -1
- package/build/cli/linux/webserver/views/index.d.ts +4 -0
- package/{cli/linux/webserver/public/index.html → build/cli/linux/webserver/views/index.js} +32 -7
- package/build/cli/linux/webserver/views/index.js.map +1 -0
- package/build/cli-common/socket-utils.d.ts +11 -0
- package/build/cli-common/socket-utils.js +53 -0
- package/build/cli-common/socket-utils.js.map +1 -0
- package/build/library/sensors/gstreamer.js +1 -1
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/library/sensors/sensors-helper.d.ts +6 -2
- package/build/library/sensors/sensors-helper.js +47 -5
- package/build/library/sensors/sensors-helper.js.map +1 -1
- package/build/sdk/studio/sdk/api/devicesApi.d.ts +2 -0
- package/build/sdk/studio/sdk/api/devicesApi.js +8 -0
- package/build/sdk/studio/sdk/api/devicesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/jobsApi.d.ts +12 -0
- package/build/sdk/studio/sdk/api/jobsApi.js +81 -0
- package/build/sdk/studio/sdk/api/jobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.js +1 -1
- package/build/sdk/studio/sdk/model/dSPInfo.d.ts +6 -0
- package/build/sdk/studio/sdk/model/dSPInfo.js +10 -0
- package/build/sdk/studio/sdk/model/dSPInfo.js.map +1 -1
- package/build/sdk/studio/sdk/model/dSPNormalizeData.d.ts +13 -0
- package/build/sdk/studio/sdk/model/dSPNormalizeData.js +16 -0
- package/build/sdk/studio/sdk/model/dSPNormalizeData.js.map +1 -0
- package/build/sdk/studio/sdk/model/exportInferenceHistoryDataRequest.d.ts +37 -0
- package/build/sdk/studio/sdk/model/exportInferenceHistoryDataRequest.js +50 -0
- package/build/sdk/studio/sdk/model/exportInferenceHistoryDataRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/generateFeaturesRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/generateFeaturesRequest.js +5 -0
- package/build/sdk/studio/sdk/model/generateFeaturesRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/getModelMonitoringDeploymentsResponseAllOfDeployments.d.ts +1 -0
- package/build/sdk/studio/sdk/model/getModelMonitoringDeploymentsResponseAllOfDeployments.js +5 -0
- package/build/sdk/studio/sdk/model/getModelMonitoringDeploymentsResponseAllOfDeployments.js.map +1 -1
- package/build/sdk/studio/sdk/model/models.d.ts +2 -0
- package/build/sdk/studio/sdk/model/models.js +6 -0
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/cli/linux/webserver/public/assets/argon-dashboard.css +6 -6
- package/cli/linux/webserver/public/assets/mobileclient.css +28 -0
- package/cli/linux/webserver/public/webserver.js +6 -1
- package/examples/ts/classify-camera-webserver.ts +2 -2
- package/package.json +9 -11
- package/test/gstreamer.test.ts +12 -12
|
@@ -841,6 +841,87 @@ class JobsApi {
|
|
|
841
841
|
});
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
+
/**
|
|
845
|
+
* Starts a job to collate and export on-device inference history data for a given time range. Once finished, the data can be downloaded via /api/{projectId}/devices/inference-history/download-export This is experimental and may change in the future.
|
|
846
|
+
* @summary Export on-device inference history data.
|
|
847
|
+
* @param projectId Project ID
|
|
848
|
+
* @param exportInferenceHistoryDataRequest
|
|
849
|
+
*/
|
|
850
|
+
async exportInferenceHistoryDataJob(projectId, exportInferenceHistoryDataRequest, options = { headers: {} }) {
|
|
851
|
+
const localVarPath = this.basePath + '/api/{projectId}/jobs/export-inference-history'
|
|
852
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
853
|
+
let localVarQueryParameters = {};
|
|
854
|
+
let localVarHeaderParams = Object.assign({
|
|
855
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
856
|
+
}, this.defaultHeaders);
|
|
857
|
+
const produces = ['application/json'];
|
|
858
|
+
// give precedence to 'application/json'
|
|
859
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
860
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
861
|
+
}
|
|
862
|
+
else {
|
|
863
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
864
|
+
}
|
|
865
|
+
let localVarFormParams = {};
|
|
866
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
867
|
+
if (projectId === null || projectId === undefined) {
|
|
868
|
+
throw new Error('Required parameter projectId was null or undefined when calling exportInferenceHistoryDataJob.');
|
|
869
|
+
}
|
|
870
|
+
// verify required parameter 'exportInferenceHistoryDataRequest' is not null or undefined
|
|
871
|
+
if (exportInferenceHistoryDataRequest === null || exportInferenceHistoryDataRequest === undefined) {
|
|
872
|
+
throw new Error('Required parameter exportInferenceHistoryDataRequest was null or undefined when calling exportInferenceHistoryDataJob.');
|
|
873
|
+
}
|
|
874
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
875
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
876
|
+
let localVarUseFormData = false;
|
|
877
|
+
let localVarRequestOptions = {
|
|
878
|
+
method: 'POST',
|
|
879
|
+
qs: localVarQueryParameters,
|
|
880
|
+
headers: localVarHeaderParams,
|
|
881
|
+
uri: localVarPath,
|
|
882
|
+
useQuerystring: this._useQuerystring,
|
|
883
|
+
agentOptions: { keepAlive: false },
|
|
884
|
+
json: true,
|
|
885
|
+
body: models_1.ObjectSerializer.serialize(exportInferenceHistoryDataRequest, "ExportInferenceHistoryDataRequest")
|
|
886
|
+
};
|
|
887
|
+
let authenticationPromise = Promise.resolve();
|
|
888
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
889
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
890
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
891
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
892
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
893
|
+
return authenticationPromise.then(() => {
|
|
894
|
+
if (Object.keys(localVarFormParams).length) {
|
|
895
|
+
if (localVarUseFormData) {
|
|
896
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
897
|
+
}
|
|
898
|
+
else {
|
|
899
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
return new Promise((resolve, reject) => {
|
|
903
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
904
|
+
if (error) {
|
|
905
|
+
reject(error);
|
|
906
|
+
}
|
|
907
|
+
else {
|
|
908
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
909
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
910
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
911
|
+
reject(new Error(body.error || errString));
|
|
912
|
+
}
|
|
913
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
914
|
+
resolve(body);
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
917
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
918
|
+
reject(errString);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
});
|
|
924
|
+
}
|
|
844
925
|
/**
|
|
845
926
|
* Export the training pipeline of a Keras block. Updates are streamed over the websocket API.
|
|
846
927
|
* @summary Export Keras block
|