edge-impulse-api 1.93.27 → 1.93.28
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/browser/edge-impulse-api.d.ts +71 -3
- package/build/browser/edge-impulse-api.js +76 -0
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +14 -0
- package/build/library/sdk/api/organizationBlocksApi.js +76 -0
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/model/addOrganizationTransferLearningBlockRequest.d.ts +4 -0
- package/build/library/sdk/model/organizationTransferLearningBlock.d.ts +4 -0
- package/build/library/sdk/model/projectDataSummary.d.ts +3 -0
- package/build/library/sdk/model/projectInfoResponse.d.ts +42 -3
- package/build/library/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/library/sdk/model/transferLearningModel.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6320,6 +6320,20 @@ export class OrganizationBlocksApi {
|
|
|
6320
6320
|
[name: string]: string;
|
|
6321
6321
|
}) => void;
|
|
6322
6322
|
}): Promise<GetOrganizationTransferLearningBlockResponse>;
|
|
6323
|
+
/**
|
|
6324
|
+
* Retrieve a transfer learning block by its customBlockRef. customBlockRef is a stable string key used by CI to create and update blocks. Unlike transferLearningId, which Studio assigns after create, it is provided by the publisher on create.
|
|
6325
|
+
* @summary Get transfer learning block by customBlockRef
|
|
6326
|
+
* @param organizationId Organization ID
|
|
6327
|
+
* @param customBlockRef
|
|
6328
|
+
*/
|
|
6329
|
+
getOrganizationTransferLearningBlockByRef(organizationId: number, customBlockRef: string, options?: {
|
|
6330
|
+
headers: {
|
|
6331
|
+
[name: string]: string;
|
|
6332
|
+
};
|
|
6333
|
+
responseHeadersCallback?: (headers: {
|
|
6334
|
+
[name: string]: string;
|
|
6335
|
+
}) => void;
|
|
6336
|
+
}): Promise<GetOrganizationTransferLearningBlockResponse>;
|
|
6323
6337
|
/**
|
|
6324
6338
|
* Get a transformation block.
|
|
6325
6339
|
* @summary Get transformation block
|
|
@@ -14562,6 +14576,10 @@ export type AddOrganizationTransferLearningBlockRequest = {
|
|
|
14562
14576
|
*/
|
|
14563
14577
|
repositoryUrl?: string;
|
|
14564
14578
|
/**
|
|
14579
|
+
* Unique stable string key used to create and find this custom block.
|
|
14580
|
+
*/
|
|
14581
|
+
customBlockRef?: string;
|
|
14582
|
+
/**
|
|
14565
14583
|
* List of parameters, spec'ed according to
|
|
14566
14584
|
* https://docs.edgeimpulse.com/docs/tips-and-tricks/adding-parameters-to-custom-blocks
|
|
14567
14585
|
*/
|
|
@@ -25828,6 +25846,10 @@ export type OrganizationTransferLearningBlock = {
|
|
|
25828
25846
|
*/
|
|
25829
25847
|
repositoryUrl?: string;
|
|
25830
25848
|
/**
|
|
25849
|
+
* Unique stable string key used to create and find this custom block.
|
|
25850
|
+
*/
|
|
25851
|
+
customBlockRef?: string;
|
|
25852
|
+
/**
|
|
25831
25853
|
* List of parameters, spec'ed according to
|
|
25832
25854
|
* https://docs.edgeimpulse.com/docs/tips-and-tricks/adding-parameters-to-custom-blocks
|
|
25833
25855
|
*/
|
|
@@ -26805,6 +26827,9 @@ export type ProjectDataSummary = {
|
|
|
26805
26827
|
* Labels in the training set
|
|
26806
26828
|
*/
|
|
26807
26829
|
labels: string[];
|
|
26830
|
+
/**
|
|
26831
|
+
* Number of files in the training set
|
|
26832
|
+
*/
|
|
26808
26833
|
dataCount: number;
|
|
26809
26834
|
};
|
|
26810
26835
|
|
|
@@ -27270,9 +27295,48 @@ export type ProjectInfoResponse = {
|
|
|
27270
27295
|
dataSummary: ProjectDataSummary;
|
|
27271
27296
|
dataSummaryPerCategory: {
|
|
27272
27297
|
training: ProjectDataSummary;
|
|
27273
|
-
testing: ProjectDataSummary
|
|
27274
|
-
|
|
27275
|
-
|
|
27298
|
+
testing: ProjectDataSummary & {
|
|
27299
|
+
/**
|
|
27300
|
+
* Total length (in ms.) of all data in the testing set
|
|
27301
|
+
*/
|
|
27302
|
+
totalLengthMs: number;
|
|
27303
|
+
/**
|
|
27304
|
+
* Labels in the testing set
|
|
27305
|
+
*/
|
|
27306
|
+
labels: string[];
|
|
27307
|
+
/**
|
|
27308
|
+
* Number of files in the testing set
|
|
27309
|
+
*/
|
|
27310
|
+
dataCount: number;
|
|
27311
|
+
};
|
|
27312
|
+
validation: ProjectDataSummary & {
|
|
27313
|
+
/**
|
|
27314
|
+
* Total length (in ms.) of all data in the validation set
|
|
27315
|
+
*/
|
|
27316
|
+
totalLengthMs: number;
|
|
27317
|
+
/**
|
|
27318
|
+
* Labels in the validation set
|
|
27319
|
+
*/
|
|
27320
|
+
labels: string[];
|
|
27321
|
+
/**
|
|
27322
|
+
* Number of files in the validation set
|
|
27323
|
+
*/
|
|
27324
|
+
dataCount: number;
|
|
27325
|
+
};
|
|
27326
|
+
postProcessing: ProjectDataSummary & {
|
|
27327
|
+
/**
|
|
27328
|
+
* Total length (in ms.) of all data in the post-processing set
|
|
27329
|
+
*/
|
|
27330
|
+
totalLengthMs: number;
|
|
27331
|
+
/**
|
|
27332
|
+
* Labels in the post-processing set
|
|
27333
|
+
*/
|
|
27334
|
+
labels: string[];
|
|
27335
|
+
/**
|
|
27336
|
+
* Number of files in the post-processing set
|
|
27337
|
+
*/
|
|
27338
|
+
dataCount: number;
|
|
27339
|
+
};
|
|
27276
27340
|
};
|
|
27277
27341
|
computeTime: {
|
|
27278
27342
|
/**
|
|
@@ -29354,6 +29418,10 @@ export type TransferLearningModel = {
|
|
|
29354
29418
|
* URL to the source code of this custom learn block.
|
|
29355
29419
|
*/
|
|
29356
29420
|
repositoryUrl?: string;
|
|
29421
|
+
/**
|
|
29422
|
+
* Unique stable string key used to create and find this custom block.
|
|
29423
|
+
*/
|
|
29424
|
+
customBlockRef?: string;
|
|
29357
29425
|
author: string;
|
|
29358
29426
|
blockType: BlockType;
|
|
29359
29427
|
customParameters?: DSPGroupItem[];
|
|
@@ -28894,6 +28894,82 @@ class OrganizationBlocksApi {
|
|
|
28894
28894
|
}
|
|
28895
28895
|
return resp;
|
|
28896
28896
|
}
|
|
28897
|
+
/**
|
|
28898
|
+
* Retrieve a transfer learning block by its customBlockRef. customBlockRef is a stable string key used by CI to create and update blocks. Unlike transferLearningId, which Studio assigns after create, it is provided by the publisher on create.
|
|
28899
|
+
* @summary Get transfer learning block by customBlockRef
|
|
28900
|
+
* @param organizationId Organization ID
|
|
28901
|
+
* @param customBlockRef
|
|
28902
|
+
*/
|
|
28903
|
+
async getOrganizationTransferLearningBlockByRef(organizationId, customBlockRef, options = { headers: {} }) {
|
|
28904
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transfer-learning/ref/{customBlockRef}'
|
|
28905
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
28906
|
+
.replace('{' + 'customBlockRef' + '}', encodeURIComponent(String(customBlockRef)));
|
|
28907
|
+
let queryParameters = {};
|
|
28908
|
+
let localVarHeaderParams = {
|
|
28909
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
28910
|
+
'Content-Type': 'application/json',
|
|
28911
|
+
...this.defaultHeaders,
|
|
28912
|
+
};
|
|
28913
|
+
const produces = ['application/json'];
|
|
28914
|
+
// give precedence to 'application/json'
|
|
28915
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
28916
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
28917
|
+
}
|
|
28918
|
+
else {
|
|
28919
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
28920
|
+
}
|
|
28921
|
+
let localVarFormParams;
|
|
28922
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
28923
|
+
if (organizationId === null || organizationId === undefined) {
|
|
28924
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationTransferLearningBlockByRef.');
|
|
28925
|
+
}
|
|
28926
|
+
// verify required parameter 'customBlockRef' is not null or undefined
|
|
28927
|
+
if (customBlockRef === null || customBlockRef === undefined) {
|
|
28928
|
+
throw new Error('Required parameter customBlockRef was null or undefined when calling getOrganizationTransferLearningBlockByRef.');
|
|
28929
|
+
}
|
|
28930
|
+
localVarHeaderParams = {
|
|
28931
|
+
...localVarHeaderParams,
|
|
28932
|
+
...options.headers,
|
|
28933
|
+
...this.opts.extraHeaders,
|
|
28934
|
+
};
|
|
28935
|
+
const queryString = Object.entries(queryParameters)
|
|
28936
|
+
.filter(([, value]) => value !== undefined)
|
|
28937
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
28938
|
+
.join('&');
|
|
28939
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
28940
|
+
let localVarRequestOptions = {
|
|
28941
|
+
method: 'GET',
|
|
28942
|
+
headers: { ...localVarHeaderParams },
|
|
28943
|
+
};
|
|
28944
|
+
let requestOptions = localVarRequestOptions;
|
|
28945
|
+
let url = localVarUrl;
|
|
28946
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
28947
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
28948
|
+
url = auth_ApiKeyAuthentication.url;
|
|
28949
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
28950
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
28951
|
+
url = auth_JWTAuthentication.url;
|
|
28952
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
28953
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
28954
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
28955
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
28956
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
28957
|
+
url = auth_OAuth2.url;
|
|
28958
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
28959
|
+
requestOptions = authDefault.requestOptions;
|
|
28960
|
+
url = authDefault.url;
|
|
28961
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
28962
|
+
const response = await fetch(url, requestOptions);
|
|
28963
|
+
const resp = this.handleResponse(response, 'GetOrganizationTransferLearningBlockResponse');
|
|
28964
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
28965
|
+
const headerCb = options.responseHeadersCallback;
|
|
28966
|
+
// on next tick, so we have time to handle the response
|
|
28967
|
+
setTimeout(() => {
|
|
28968
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
28969
|
+
}, 0);
|
|
28970
|
+
}
|
|
28971
|
+
return resp;
|
|
28972
|
+
}
|
|
28897
28973
|
/**
|
|
28898
28974
|
* Get a transformation block.
|
|
28899
28975
|
* @summary Get transformation block
|