edge-impulse-linux 1.13.0 → 1.14.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/build/cli/linux/runner-utils.d.ts +1 -0
- package/build/cli/linux/runner-utils.js +45 -2
- package/build/cli/linux/runner-utils.js.map +1 -1
- package/build/cli/linux/runner.js +55 -7
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli/linux/webserver/public/inference-server.js +17 -1
- package/build/cli/linux/webserver/public/inference-server.js.map +1 -1
- package/build/cli/linux/webserver/public/webserver.js +108 -1
- package/build/cli/linux/webserver/public/webserver.js.map +1 -1
- package/build/cli-common/model-monitor.js +17 -3
- package/build/cli-common/model-monitor.js.map +1 -1
- package/build/library/classifier/audio-classifier.d.ts +1 -0
- package/build/library/classifier/audio-classifier.js +3 -0
- package/build/library/classifier/audio-classifier.js.map +1 -1
- package/build/library/classifier/image-classifier.d.ts +1 -0
- package/build/library/classifier/image-classifier.js +3 -0
- package/build/library/classifier/image-classifier.js.map +1 -1
- package/build/library/classifier/linux-impulse-runner.d.ts +18 -1
- package/build/library/classifier/linux-impulse-runner.js +22 -0
- package/build/library/classifier/linux-impulse-runner.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +56 -0
- package/build/sdk/studio/sdk/api/adminApi.js +316 -0
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/classifyApi.d.ts +12 -0
- package/build/sdk/studio/sdk/api/classifyApi.js +24 -0
- package/build/sdk/studio/sdk/api/classifyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/dSPApi.d.ts +4 -0
- package/build/sdk/studio/sdk/api/dSPApi.js +8 -0
- package/build/sdk/studio/sdk/api/dSPApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/learnApi.d.ts +22 -0
- package/build/sdk/studio/sdk/api/learnApi.js +160 -0
- package/build/sdk/studio/sdk/api/learnApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/rawDataApi.d.ts +8 -0
- package/build/sdk/studio/sdk/api/rawDataApi.js +16 -0
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/aIActionsDataCategory.d.ts +1 -1
- package/build/sdk/studio/sdk/model/aIActionsDataCategory.js +1 -1
- package/build/sdk/studio/sdk/model/aIActionsDataCategory.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiUser.d.ts +0 -1
- package/build/sdk/studio/sdk/model/adminApiUser.js +0 -5
- package/build/sdk/studio/sdk/model/adminApiUser.js.map +1 -1
- package/build/sdk/studio/sdk/model/exportOriginalDataRequest.d.ts +1 -1
- package/build/sdk/studio/sdk/model/feature.d.ts +1 -1
- package/build/sdk/studio/sdk/model/feature.js +1 -1
- package/build/sdk/studio/sdk/model/feature.js.map +1 -1
- package/build/sdk/studio/sdk/model/getPretrainedModelResponseAllOfModel.d.ts +7 -0
- package/build/sdk/studio/sdk/model/getPretrainedModelResponseAllOfModel.js +5 -0
- package/build/sdk/studio/sdk/model/getPretrainedModelResponseAllOfModel.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponse.d.ts +2 -1
- package/build/sdk/studio/sdk/model/getUserResponse.js +5 -5
- package/build/sdk/studio/sdk/model/getUserResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.d.ts +2 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponseAllOfLastAcceptedTermsOfService.d.ts +26 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOfLastAcceptedTermsOfService.js +34 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOfLastAcceptedTermsOfService.js.map +1 -0
- package/build/sdk/studio/sdk/model/kerasConfig.d.ts +0 -2
- package/build/sdk/studio/sdk/model/kerasConfig.js +0 -5
- package/build/sdk/studio/sdk/model/kerasConfig.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.d.ts +8 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js +10 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasResponse.d.ts +0 -2
- package/build/sdk/studio/sdk/model/kerasResponse.js +0 -5
- package/build/sdk/studio/sdk/model/kerasResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/models.d.ts +1 -0
- package/build/sdk/studio/sdk/model/models.js +3 -0
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.d.ts +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.js +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.d.ts +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.js +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationUser.d.ts +0 -1
- package/build/sdk/studio/sdk/model/organizationUser.js +0 -5
- package/build/sdk/studio/sdk/model/organizationUser.js.map +1 -1
- package/build/sdk/studio/sdk/model/profileModelInfo.d.ts +15 -0
- package/build/sdk/studio/sdk/model/profileModelInfo.js +20 -0
- package/build/sdk/studio/sdk/model/profileModelInfo.js.map +1 -1
- package/build/sdk/studio/sdk/model/profileTfLiteResponse.d.ts +15 -0
- package/build/sdk/studio/sdk/model/profileTfLiteResponse.js +20 -0
- package/build/sdk/studio/sdk/model/profileTfLiteResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectCollaborator.d.ts +0 -1
- package/build/sdk/studio/sdk/model/projectCollaborator.js +0 -5
- package/build/sdk/studio/sdk/model/projectCollaborator.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js +5 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.d.ts +2 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.d.ts +0 -2
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js +0 -5
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/tunerRun.d.ts +4 -0
- package/build/sdk/studio/sdk/model/tunerRun.js +5 -0
- package/build/sdk/studio/sdk/model/tunerRun.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateProjectRequest.d.ts +1 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/user.d.ts +0 -1
- package/build/sdk/studio/sdk/model/user.js +0 -5
- package/build/sdk/studio/sdk/model/user.js.map +1 -1
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/all.css +4616 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/all.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/brands.css +15 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/brands.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/fontawesome.css +4582 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/fontawesome.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/regular.css +15 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/regular.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/solid.css +16 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/solid.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/svg-with-js.css +371 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/svg-with-js.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/v4-shims.css +2172 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/css/v4-shims.min.css +5 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.eot +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.svg +3717 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.ttf +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff2 +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-regular-400.eot +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-regular-400.svg +801 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-regular-400.ttf +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-regular-400.woff +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-regular-400.woff2 +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-solid-900.eot +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-solid-900.svg +5034 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-solid-900.ttf +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-solid-900.woff +0 -0
- package/cli/linux/webserver/public/assets/fontawesome-free-5.15.4-web/webfonts/fa-solid-900.woff2 +0 -0
- package/cli/linux/webserver/public/assets/js/argon-dashboard.js +1093 -0
- package/cli/linux/webserver/public/assets/js/argon-dashboard.js.map +1 -0
- package/cli/linux/webserver/public/assets/js/argon-dashboard.min.js +2 -0
- package/cli/linux/webserver/public/assets/js/argon.min.js +18 -0
- package/cli/linux/webserver/public/assets/js/plugins/bootstrap/dist/js/bootstrap.bundle.js +7021 -0
- package/cli/linux/webserver/public/assets/js/plugins/jquery/dist/core.js +398 -0
- package/cli/linux/webserver/public/assets/js/plugins/jquery/dist/jquery.min.js +24 -0
- package/cli/linux/webserver/public/assets/mobileclient.css +6 -0
- package/cli/linux/webserver/public/index.html +15 -2
- package/cli/linux/webserver/public/inference-server.js +18 -1
- package/cli/linux/webserver/public/webserver.js +130 -1
- package/package.json +9 -11
|
@@ -3930,6 +3930,88 @@ class AdminApi {
|
|
|
3930
3930
|
});
|
|
3931
3931
|
});
|
|
3932
3932
|
}
|
|
3933
|
+
/**
|
|
3934
|
+
* Admin-only API to get the list of all data samples for a project. The response is paginated and returns up to 1000 samples per request. To retrieve additional pages: 1. Use the `limit` parameter to specify how many samples to return (max 1000) 2. Use the `offset` parameter to skip a number of samples 3. Make subsequent requests with increasing offset values to retrieve all samples For example: - First request: limit=1000, offset=0 (samples 1-1000) - Second request: limit=1000, offset=1000 (samples 1001-2000) - And so on
|
|
3935
|
+
* @summary Get project data samples
|
|
3936
|
+
* @param projectId Project ID
|
|
3937
|
+
* @param limit Maximum number of results
|
|
3938
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3939
|
+
*/
|
|
3940
|
+
async adminGetProjectDataSamples(projectId, queryParams, options = { headers: {} }) {
|
|
3941
|
+
const localVarPath = this.basePath + '/api/admin/projects/{projectId}/data'
|
|
3942
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3943
|
+
let localVarQueryParameters = {};
|
|
3944
|
+
let localVarHeaderParams = Object.assign({
|
|
3945
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3946
|
+
}, this.defaultHeaders);
|
|
3947
|
+
const produces = ['application/json'];
|
|
3948
|
+
// give precedence to 'application/json'
|
|
3949
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3950
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3951
|
+
}
|
|
3952
|
+
else {
|
|
3953
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3954
|
+
}
|
|
3955
|
+
let localVarFormParams = {};
|
|
3956
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3957
|
+
if (projectId === null || projectId === undefined) {
|
|
3958
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminGetProjectDataSamples.');
|
|
3959
|
+
}
|
|
3960
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== undefined) {
|
|
3961
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3962
|
+
}
|
|
3963
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== undefined) {
|
|
3964
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3965
|
+
}
|
|
3966
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3967
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3968
|
+
let localVarUseFormData = false;
|
|
3969
|
+
let localVarRequestOptions = {
|
|
3970
|
+
method: 'GET',
|
|
3971
|
+
qs: localVarQueryParameters,
|
|
3972
|
+
headers: localVarHeaderParams,
|
|
3973
|
+
uri: localVarPath,
|
|
3974
|
+
useQuerystring: this._useQuerystring,
|
|
3975
|
+
agentOptions: { keepAlive: false },
|
|
3976
|
+
json: true,
|
|
3977
|
+
};
|
|
3978
|
+
let authenticationPromise = Promise.resolve();
|
|
3979
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3980
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3981
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3982
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3983
|
+
return authenticationPromise.then(() => {
|
|
3984
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3985
|
+
if (localVarUseFormData) {
|
|
3986
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3987
|
+
}
|
|
3988
|
+
else {
|
|
3989
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3992
|
+
return new Promise((resolve, reject) => {
|
|
3993
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3994
|
+
if (error) {
|
|
3995
|
+
reject(error);
|
|
3996
|
+
}
|
|
3997
|
+
else {
|
|
3998
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListSamplesResponse");
|
|
3999
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4000
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4001
|
+
reject(new Error(body.error || errString));
|
|
4002
|
+
}
|
|
4003
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4004
|
+
resolve(body);
|
|
4005
|
+
}
|
|
4006
|
+
else {
|
|
4007
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4008
|
+
reject(errString);
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
});
|
|
4012
|
+
});
|
|
4013
|
+
});
|
|
4014
|
+
}
|
|
3933
4015
|
/**
|
|
3934
4016
|
* Admin-only API to get the list of all jobs for a project.
|
|
3935
4017
|
* @summary Get project jobs
|
|
@@ -4898,6 +4980,92 @@ class AdminApi {
|
|
|
4898
4980
|
});
|
|
4899
4981
|
});
|
|
4900
4982
|
}
|
|
4983
|
+
/**
|
|
4984
|
+
* Admin-only API to list all data items from an organization. The response is paginated and returns up to 1000 samples per request. To retrieve additional pages: 1. Use the `limit` parameter to specify how many samples to return (max 1000) 2. Use the `offset` parameter to skip a number of samples 3. Make subsequent requests with increasing offset values to retrieve all samples For example: - First request: limit=1000, offset=0 (samples 1-1000) - Second request: limit=1000, offset=1000 (samples 1001-2000) - And so on
|
|
4985
|
+
* @summary List organization data
|
|
4986
|
+
* @param organizationId Organization ID
|
|
4987
|
+
* @param dataset Selected dataset
|
|
4988
|
+
* @param limit Maximum number of results
|
|
4989
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
4990
|
+
*/
|
|
4991
|
+
async adminListOrganizationData(organizationId, queryParams, options = { headers: {} }) {
|
|
4992
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/data'
|
|
4993
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
4994
|
+
let localVarQueryParameters = {};
|
|
4995
|
+
let localVarHeaderParams = Object.assign({
|
|
4996
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4997
|
+
}, this.defaultHeaders);
|
|
4998
|
+
const produces = ['application/json'];
|
|
4999
|
+
// give precedence to 'application/json'
|
|
5000
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5001
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5002
|
+
}
|
|
5003
|
+
else {
|
|
5004
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5005
|
+
}
|
|
5006
|
+
let localVarFormParams = {};
|
|
5007
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5008
|
+
if (organizationId === null || organizationId === undefined) {
|
|
5009
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminListOrganizationData.');
|
|
5010
|
+
}
|
|
5011
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataset) !== undefined) {
|
|
5012
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
5013
|
+
}
|
|
5014
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== undefined) {
|
|
5015
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
5016
|
+
}
|
|
5017
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== undefined) {
|
|
5018
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
5019
|
+
}
|
|
5020
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5021
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5022
|
+
let localVarUseFormData = false;
|
|
5023
|
+
let localVarRequestOptions = {
|
|
5024
|
+
method: 'GET',
|
|
5025
|
+
qs: localVarQueryParameters,
|
|
5026
|
+
headers: localVarHeaderParams,
|
|
5027
|
+
uri: localVarPath,
|
|
5028
|
+
useQuerystring: this._useQuerystring,
|
|
5029
|
+
agentOptions: { keepAlive: false },
|
|
5030
|
+
json: true,
|
|
5031
|
+
};
|
|
5032
|
+
let authenticationPromise = Promise.resolve();
|
|
5033
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5034
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5035
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5036
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5037
|
+
return authenticationPromise.then(() => {
|
|
5038
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5039
|
+
if (localVarUseFormData) {
|
|
5040
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5041
|
+
}
|
|
5042
|
+
else {
|
|
5043
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
return new Promise((resolve, reject) => {
|
|
5047
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5048
|
+
if (error) {
|
|
5049
|
+
reject(error);
|
|
5050
|
+
}
|
|
5051
|
+
else {
|
|
5052
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListOrganizationDataResponse");
|
|
5053
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5054
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5055
|
+
reject(new Error(body.error || errString));
|
|
5056
|
+
}
|
|
5057
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5058
|
+
resolve(body);
|
|
5059
|
+
}
|
|
5060
|
+
else {
|
|
5061
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5062
|
+
reject(errString);
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
});
|
|
5066
|
+
});
|
|
5067
|
+
});
|
|
5068
|
+
}
|
|
4901
5069
|
/**
|
|
4902
5070
|
* List files in the trashbin FSx for a given organization.
|
|
4903
5071
|
* @summary List organization FSx files in the trash bin
|
|
@@ -5920,6 +6088,154 @@ class AdminApi {
|
|
|
5920
6088
|
});
|
|
5921
6089
|
});
|
|
5922
6090
|
}
|
|
6091
|
+
/**
|
|
6092
|
+
* Admin-only API to restore a soft-deleted project. A soft-deleted project has been marked as deleted in the database but data has not been moved to the trash bin yet. To restore projects from the trash bin, use adminRestoreTrashbinProject.
|
|
6093
|
+
* @summary Restore a soft-deleted project
|
|
6094
|
+
* @param projectId Project ID
|
|
6095
|
+
*/
|
|
6096
|
+
async adminRestoreProject(projectId, options = { headers: {} }) {
|
|
6097
|
+
const localVarPath = this.basePath + '/api/admin/projects/{projectId}/restore'
|
|
6098
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
6099
|
+
let localVarQueryParameters = {};
|
|
6100
|
+
let localVarHeaderParams = Object.assign({
|
|
6101
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
6102
|
+
}, this.defaultHeaders);
|
|
6103
|
+
const produces = ['application/json'];
|
|
6104
|
+
// give precedence to 'application/json'
|
|
6105
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
6106
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
6107
|
+
}
|
|
6108
|
+
else {
|
|
6109
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
6110
|
+
}
|
|
6111
|
+
let localVarFormParams = {};
|
|
6112
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
6113
|
+
if (projectId === null || projectId === undefined) {
|
|
6114
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminRestoreProject.');
|
|
6115
|
+
}
|
|
6116
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6117
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
6118
|
+
let localVarUseFormData = false;
|
|
6119
|
+
let localVarRequestOptions = {
|
|
6120
|
+
method: 'POST',
|
|
6121
|
+
qs: localVarQueryParameters,
|
|
6122
|
+
headers: localVarHeaderParams,
|
|
6123
|
+
uri: localVarPath,
|
|
6124
|
+
useQuerystring: this._useQuerystring,
|
|
6125
|
+
agentOptions: { keepAlive: false },
|
|
6126
|
+
json: true,
|
|
6127
|
+
};
|
|
6128
|
+
let authenticationPromise = Promise.resolve();
|
|
6129
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6130
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6131
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6132
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6133
|
+
return authenticationPromise.then(() => {
|
|
6134
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6135
|
+
if (localVarUseFormData) {
|
|
6136
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6137
|
+
}
|
|
6138
|
+
else {
|
|
6139
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
return new Promise((resolve, reject) => {
|
|
6143
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6144
|
+
if (error) {
|
|
6145
|
+
reject(error);
|
|
6146
|
+
}
|
|
6147
|
+
else {
|
|
6148
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
6149
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
6150
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6151
|
+
reject(new Error(body.error || errString));
|
|
6152
|
+
}
|
|
6153
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6154
|
+
resolve(body);
|
|
6155
|
+
}
|
|
6156
|
+
else {
|
|
6157
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6158
|
+
reject(errString);
|
|
6159
|
+
}
|
|
6160
|
+
}
|
|
6161
|
+
});
|
|
6162
|
+
});
|
|
6163
|
+
});
|
|
6164
|
+
}
|
|
6165
|
+
/**
|
|
6166
|
+
* Starts a job to restore a project that has been moved to the trash bin. This: 1. Restores all S3 data 2. Restores all FSx data 3. Restores access to the project 4. Unschedules permanent deletion
|
|
6167
|
+
* @summary Restore a project that has been moved to the trash bin and is scheduled for deletion
|
|
6168
|
+
* @param projectId Project ID
|
|
6169
|
+
*/
|
|
6170
|
+
async adminRestoreTrashbinProject(projectId, options = { headers: {} }) {
|
|
6171
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/projects/{projectId}/restore'
|
|
6172
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
6173
|
+
let localVarQueryParameters = {};
|
|
6174
|
+
let localVarHeaderParams = Object.assign({
|
|
6175
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
6176
|
+
}, this.defaultHeaders);
|
|
6177
|
+
const produces = ['application/json'];
|
|
6178
|
+
// give precedence to 'application/json'
|
|
6179
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
6180
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
6181
|
+
}
|
|
6182
|
+
else {
|
|
6183
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
6184
|
+
}
|
|
6185
|
+
let localVarFormParams = {};
|
|
6186
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
6187
|
+
if (projectId === null || projectId === undefined) {
|
|
6188
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminRestoreTrashbinProject.');
|
|
6189
|
+
}
|
|
6190
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6191
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
6192
|
+
let localVarUseFormData = false;
|
|
6193
|
+
let localVarRequestOptions = {
|
|
6194
|
+
method: 'POST',
|
|
6195
|
+
qs: localVarQueryParameters,
|
|
6196
|
+
headers: localVarHeaderParams,
|
|
6197
|
+
uri: localVarPath,
|
|
6198
|
+
useQuerystring: this._useQuerystring,
|
|
6199
|
+
agentOptions: { keepAlive: false },
|
|
6200
|
+
json: true,
|
|
6201
|
+
};
|
|
6202
|
+
let authenticationPromise = Promise.resolve();
|
|
6203
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
6204
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
6205
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
6206
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
6207
|
+
return authenticationPromise.then(() => {
|
|
6208
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6209
|
+
if (localVarUseFormData) {
|
|
6210
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6211
|
+
}
|
|
6212
|
+
else {
|
|
6213
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6214
|
+
}
|
|
6215
|
+
}
|
|
6216
|
+
return new Promise((resolve, reject) => {
|
|
6217
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6218
|
+
if (error) {
|
|
6219
|
+
reject(error);
|
|
6220
|
+
}
|
|
6221
|
+
else {
|
|
6222
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
6223
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
6224
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6225
|
+
reject(new Error(body.error || errString));
|
|
6226
|
+
}
|
|
6227
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6228
|
+
resolve(body);
|
|
6229
|
+
}
|
|
6230
|
+
else {
|
|
6231
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
6232
|
+
reject(errString);
|
|
6233
|
+
}
|
|
6234
|
+
}
|
|
6235
|
+
});
|
|
6236
|
+
});
|
|
6237
|
+
});
|
|
6238
|
+
}
|
|
5923
6239
|
/**
|
|
5924
6240
|
* Admin-only API to update a studio config item.
|
|
5925
6241
|
* @summary Update studio config
|