Skip to content

Commit 2baae94

Browse files
committed
Release v1.16.4
1 parent 1c414f2 commit 2baae94

15 files changed

+357
-7
lines changed

cli/make-image.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const EXTENSION_MAPPING: { [k: string]: string } = {
1919
'.jpeg': 'image/jpeg',
2020
'.png': 'image/png',
2121
'.csv': 'text/csv',
22+
'.txt': 'text/plain',
2223
'.mp4': 'video/mp4',
2324
'.avi': 'video/avi',
2425
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edge-impulse-cli",
3-
"version": "1.16.3",
3+
"version": "1.16.4",
44
"description": "Command-line interface tools for Edge Impulse",
55
"preferGlobal": true,
66
"scripts": {

sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3216,8 +3216,9 @@ export class OrganizationAllowDeveloperProfileApi {
32163216
* @summary Run pipelines
32173217
* @param organizationId Organization ID
32183218
* @param pipelineId Pipeline ID
3219+
* @param ignoreLastSuccessfulRun If set then `EI_LAST_SUCCESSFUL_RUN` is not set. You can use this to re-run a pipeline from scratch.
32193220
*/
3220-
public async runOrganizationPipeline (organizationId: number, pipelineId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<RunOrganizationPipelineResponse> {
3221+
public async runOrganizationPipeline (organizationId: number, pipelineId: number, ignoreLastSuccessfulRun?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<RunOrganizationPipelineResponse> {
32213222
const localVarPath = this.basePath + '/api/organizations/{organizationId}/pipelines/{pipelineId}/run'
32223223
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
32233224
.replace('{' + 'pipelineId' + '}', encodeURIComponent(String(pipelineId)));
@@ -3242,6 +3243,10 @@ export class OrganizationAllowDeveloperProfileApi {
32423243
throw new Error('Required parameter pipelineId was null or undefined when calling runOrganizationPipeline.');
32433244
}
32443245

3246+
if (ignoreLastSuccessfulRun !== undefined) {
3247+
localVarQueryParameters['ignoreLastSuccessfulRun'] = ObjectSerializer.serialize(ignoreLastSuccessfulRun, "boolean");
3248+
}
3249+
32453250
(<any>Object).assign(localVarHeaderParams, options.headers);
32463251

32473252
let localVarUseFormData = false;

sdk/studio/sdk/api/organizationPipelinesApi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,9 @@ export class OrganizationPipelinesApi {
499499
* @summary Run pipelines
500500
* @param organizationId Organization ID
501501
* @param pipelineId Pipeline ID
502+
* @param ignoreLastSuccessfulRun If set then &#x60;EI_LAST_SUCCESSFUL_RUN&#x60; is not set. You can use this to re-run a pipeline from scratch.
502503
*/
503-
public async runOrganizationPipeline (organizationId: number, pipelineId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<RunOrganizationPipelineResponse> {
504+
public async runOrganizationPipeline (organizationId: number, pipelineId: number, ignoreLastSuccessfulRun?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<RunOrganizationPipelineResponse> {
504505
const localVarPath = this.basePath + '/api/organizations/{organizationId}/pipelines/{pipelineId}/run'
505506
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
506507
.replace('{' + 'pipelineId' + '}', encodeURIComponent(String(pipelineId)));
@@ -525,6 +526,10 @@ export class OrganizationPipelinesApi {
525526
throw new Error('Required parameter pipelineId was null or undefined when calling runOrganizationPipeline.');
526527
}
527528

529+
if (ignoreLastSuccessfulRun !== undefined) {
530+
localVarQueryParameters['ignoreLastSuccessfulRun'] = ObjectSerializer.serialize(ignoreLastSuccessfulRun, "boolean");
531+
}
532+
528533
(<any>Object).assign(localVarHeaderParams, options.headers);
529534

530535
let localVarUseFormData = false;

sdk/studio/sdk/api/organizationRequiresAdminApi.ts

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import http = require('http');
2121
/* tslint:disable:no-unused-locals */
2222
import { AddMemberRequest } from '../model/addMemberRequest';
2323
import { AddOrganizationBucketRequest } from '../model/addOrganizationBucketRequest';
24+
import { CreateOrganizationResponse } from '../model/createOrganizationResponse';
2425
import { GenericApiResponse } from '../model/genericApiResponse';
2526
import { InviteOrganizationMemberRequest } from '../model/inviteOrganizationMemberRequest';
2627
import { RemoveMemberRequest } from '../model/removeMemberRequest';
@@ -29,6 +30,7 @@ import { SetMemberRoleRequest } from '../model/setMemberRoleRequest';
2930
import { UpdateOrganizationBucketRequest } from '../model/updateOrganizationBucketRequest';
3031
import { UpdateOrganizationRequest } from '../model/updateOrganizationRequest';
3132
import { UploadAssetResponse } from '../model/uploadAssetResponse';
33+
import { WhitelabelAdminCreateOrganizationRequest } from '../model/whitelabelAdminCreateOrganizationRequest';
3234

3335
import { ObjectSerializer, Authentication, VoidAuth } from '../model/models';
3436
import { HttpBasicAuth, ApiKeyAuth, OAuth } from '../model/models';
@@ -1259,6 +1261,90 @@ export class OrganizationRequiresAdminApi {
12591261

12601262
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
12611263

1264+
if (typeof body.success === 'boolean' && !body.success) {
1265+
reject(new Error(body.error || errString));
1266+
}
1267+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1268+
resolve(body);
1269+
}
1270+
else {
1271+
reject(errString);
1272+
}
1273+
}
1274+
});
1275+
});
1276+
});
1277+
}
1278+
/**
1279+
* Create a new organization. This is an internal API only available to white label admins
1280+
* @summary Create new organization within white label context
1281+
* @param organizationId Organization ID
1282+
* @param whitelabelAdminCreateOrganizationRequest
1283+
*/
1284+
public async whitelabelAdminCreateOrganization (organizationId: number, whitelabelAdminCreateOrganizationRequest: WhitelabelAdminCreateOrganizationRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<CreateOrganizationResponse> {
1285+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
1286+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
1287+
let localVarQueryParameters: any = {};
1288+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
1289+
const produces = ['application/json'];
1290+
// give precedence to 'application/json'
1291+
if (produces.indexOf('application/json') >= 0) {
1292+
localVarHeaderParams.Accept = 'application/json';
1293+
} else {
1294+
localVarHeaderParams.Accept = produces.join(',');
1295+
}
1296+
let localVarFormParams: any = {};
1297+
1298+
// verify required parameter 'organizationId' is not null or undefined
1299+
if (organizationId === null || organizationId === undefined) {
1300+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganization.');
1301+
}
1302+
1303+
// verify required parameter 'whitelabelAdminCreateOrganizationRequest' is not null or undefined
1304+
if (whitelabelAdminCreateOrganizationRequest === null || whitelabelAdminCreateOrganizationRequest === undefined) {
1305+
throw new Error('Required parameter whitelabelAdminCreateOrganizationRequest was null or undefined when calling whitelabelAdminCreateOrganization.');
1306+
}
1307+
1308+
(<any>Object).assign(localVarHeaderParams, options.headers);
1309+
1310+
let localVarUseFormData = false;
1311+
1312+
let localVarRequestOptions: localVarRequest.Options = {
1313+
method: 'POST',
1314+
qs: localVarQueryParameters,
1315+
headers: localVarHeaderParams,
1316+
uri: localVarPath,
1317+
useQuerystring: this._useQuerystring,
1318+
agentOptions: {keepAlive: false},
1319+
json: true,
1320+
body: ObjectSerializer.serialize(whitelabelAdminCreateOrganizationRequest, "WhitelabelAdminCreateOrganizationRequest")
1321+
};
1322+
1323+
let authenticationPromise = Promise.resolve();
1324+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
1325+
1326+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
1327+
1328+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
1329+
1330+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1331+
return authenticationPromise.then(() => {
1332+
if (Object.keys(localVarFormParams).length) {
1333+
if (localVarUseFormData) {
1334+
(<any>localVarRequestOptions).formData = localVarFormParams;
1335+
} else {
1336+
localVarRequestOptions.form = localVarFormParams;
1337+
}
1338+
}
1339+
return new Promise<CreateOrganizationResponse>((resolve, reject) => {
1340+
localVarRequest(localVarRequestOptions, (error, response, body) => {
1341+
if (error) {
1342+
reject(error);
1343+
} else {
1344+
body = ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
1345+
1346+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1347+
12621348
if (typeof body.success === 'boolean' && !body.success) {
12631349
reject(new Error(body.error || errString));
12641350
}

sdk/studio/sdk/api/organizationsApi.ts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { SetMemberRoleRequest } from '../model/setMemberRoleRequest';
3535
import { UpdateOrganizationRequest } from '../model/updateOrganizationRequest';
3636
import { UploadAssetResponse } from '../model/uploadAssetResponse';
3737
import { UploadReadmeImageResponse } from '../model/uploadReadmeImageResponse';
38+
import { WhitelabelAdminCreateOrganizationRequest } from '../model/whitelabelAdminCreateOrganizationRequest';
3839

3940
import { ObjectSerializer, Authentication, VoidAuth } from '../model/models';
4041
import { HttpBasicAuth, ApiKeyAuth, OAuth } from '../model/models';
@@ -1640,6 +1641,90 @@ export class OrganizationsApi {
16401641

16411642
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
16421643

1644+
if (typeof body.success === 'boolean' && !body.success) {
1645+
reject(new Error(body.error || errString));
1646+
}
1647+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1648+
resolve(body);
1649+
}
1650+
else {
1651+
reject(errString);
1652+
}
1653+
}
1654+
});
1655+
});
1656+
});
1657+
}
1658+
/**
1659+
* Create a new organization. This is an internal API only available to white label admins
1660+
* @summary Create new organization within white label context
1661+
* @param organizationId Organization ID
1662+
* @param whitelabelAdminCreateOrganizationRequest
1663+
*/
1664+
public async whitelabelAdminCreateOrganization (organizationId: number, whitelabelAdminCreateOrganizationRequest: WhitelabelAdminCreateOrganizationRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<CreateOrganizationResponse> {
1665+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
1666+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
1667+
let localVarQueryParameters: any = {};
1668+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
1669+
const produces = ['application/json'];
1670+
// give precedence to 'application/json'
1671+
if (produces.indexOf('application/json') >= 0) {
1672+
localVarHeaderParams.Accept = 'application/json';
1673+
} else {
1674+
localVarHeaderParams.Accept = produces.join(',');
1675+
}
1676+
let localVarFormParams: any = {};
1677+
1678+
// verify required parameter 'organizationId' is not null or undefined
1679+
if (organizationId === null || organizationId === undefined) {
1680+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganization.');
1681+
}
1682+
1683+
// verify required parameter 'whitelabelAdminCreateOrganizationRequest' is not null or undefined
1684+
if (whitelabelAdminCreateOrganizationRequest === null || whitelabelAdminCreateOrganizationRequest === undefined) {
1685+
throw new Error('Required parameter whitelabelAdminCreateOrganizationRequest was null or undefined when calling whitelabelAdminCreateOrganization.');
1686+
}
1687+
1688+
(<any>Object).assign(localVarHeaderParams, options.headers);
1689+
1690+
let localVarUseFormData = false;
1691+
1692+
let localVarRequestOptions: localVarRequest.Options = {
1693+
method: 'POST',
1694+
qs: localVarQueryParameters,
1695+
headers: localVarHeaderParams,
1696+
uri: localVarPath,
1697+
useQuerystring: this._useQuerystring,
1698+
agentOptions: {keepAlive: false},
1699+
json: true,
1700+
body: ObjectSerializer.serialize(whitelabelAdminCreateOrganizationRequest, "WhitelabelAdminCreateOrganizationRequest")
1701+
};
1702+
1703+
let authenticationPromise = Promise.resolve();
1704+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
1705+
1706+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
1707+
1708+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
1709+
1710+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1711+
return authenticationPromise.then(() => {
1712+
if (Object.keys(localVarFormParams).length) {
1713+
if (localVarUseFormData) {
1714+
(<any>localVarRequestOptions).formData = localVarFormParams;
1715+
} else {
1716+
localVarRequestOptions.form = localVarFormParams;
1717+
}
1718+
}
1719+
return new Promise<CreateOrganizationResponse>((resolve, reject) => {
1720+
localVarRequest(localVarRequestOptions, (error, response, body) => {
1721+
if (error) {
1722+
reject(error);
1723+
} else {
1724+
body = ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
1725+
1726+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1727+
16431728
if (typeof body.success === 'boolean' && !body.success) {
16441729
reject(new Error(body.error || errString));
16451730
}

sdk/studio/sdk/api/rawDataApi.ts

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3286,6 +3286,90 @@ export class RawDataApi {
32863286
});
32873287
});
32883288
}
3289+
/**
3290+
* If a sample failed processing, retry the processing operation.
3291+
* @summary Retry processing
3292+
* @param projectId Project ID
3293+
* @param sampleId Sample ID
3294+
*/
3295+
public async retryProcessing (projectId: number, sampleId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<GenericApiResponse> {
3296+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/retry-processing'
3297+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
3298+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
3299+
let localVarQueryParameters: any = {};
3300+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
3301+
const produces = ['application/json'];
3302+
// give precedence to 'application/json'
3303+
if (produces.indexOf('application/json') >= 0) {
3304+
localVarHeaderParams.Accept = 'application/json';
3305+
} else {
3306+
localVarHeaderParams.Accept = produces.join(',');
3307+
}
3308+
let localVarFormParams: any = {};
3309+
3310+
// verify required parameter 'projectId' is not null or undefined
3311+
if (projectId === null || projectId === undefined) {
3312+
throw new Error('Required parameter projectId was null or undefined when calling retryProcessing.');
3313+
}
3314+
3315+
// verify required parameter 'sampleId' is not null or undefined
3316+
if (sampleId === null || sampleId === undefined) {
3317+
throw new Error('Required parameter sampleId was null or undefined when calling retryProcessing.');
3318+
}
3319+
3320+
(<any>Object).assign(localVarHeaderParams, options.headers);
3321+
3322+
let localVarUseFormData = false;
3323+
3324+
let localVarRequestOptions: localVarRequest.Options = {
3325+
method: 'POST',
3326+
qs: localVarQueryParameters,
3327+
headers: localVarHeaderParams,
3328+
uri: localVarPath,
3329+
useQuerystring: this._useQuerystring,
3330+
agentOptions: {keepAlive: false},
3331+
json: true,
3332+
};
3333+
3334+
let authenticationPromise = Promise.resolve();
3335+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
3336+
3337+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
3338+
3339+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
3340+
3341+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
3342+
return authenticationPromise.then(() => {
3343+
if (Object.keys(localVarFormParams).length) {
3344+
if (localVarUseFormData) {
3345+
(<any>localVarRequestOptions).formData = localVarFormParams;
3346+
} else {
3347+
localVarRequestOptions.form = localVarFormParams;
3348+
}
3349+
}
3350+
return new Promise<GenericApiResponse>((resolve, reject) => {
3351+
localVarRequest(localVarRequestOptions, (error, response, body) => {
3352+
if (error) {
3353+
reject(error);
3354+
} else {
3355+
body = ObjectSerializer.deserialize(body, "GenericApiResponse");
3356+
3357+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3358+
3359+
if (typeof body.success === 'boolean' && !body.success) {
3360+
reject(new Error(body.error || errString));
3361+
}
3362+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3363+
resolve(body);
3364+
}
3365+
else {
3366+
reject(errString);
3367+
}
3368+
}
3369+
});
3370+
});
3371+
});
3372+
}
32893373
/**
32903374
* Slice a sample into multiple segments. The original file will be marked as deleted, but you can crop any created segment to retrieve the original file.
32913375
* @summary Segment sample

0 commit comments

Comments
 (0)