edge-impulse-api 1.93.27 → 1.93.29
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
|
@@ -443,6 +443,20 @@ export declare class OrganizationBlocksApi {
|
|
|
443
443
|
[name: string]: string;
|
|
444
444
|
}) => void;
|
|
445
445
|
}): Promise<GetOrganizationTransferLearningBlockResponse>;
|
|
446
|
+
/**
|
|
447
|
+
* 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.
|
|
448
|
+
* @summary Get transfer learning block by customBlockRef
|
|
449
|
+
* @param organizationId Organization ID
|
|
450
|
+
* @param customBlockRef
|
|
451
|
+
*/
|
|
452
|
+
getOrganizationTransferLearningBlockByRef(organizationId: number, customBlockRef: string, options?: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: string;
|
|
455
|
+
};
|
|
456
|
+
responseHeadersCallback?: (headers: {
|
|
457
|
+
[name: string]: string;
|
|
458
|
+
}) => void;
|
|
459
|
+
}): Promise<GetOrganizationTransferLearningBlockResponse>;
|
|
446
460
|
/**
|
|
447
461
|
* Get a transformation block.
|
|
448
462
|
* @summary Get transformation block
|
|
@@ -1837,6 +1837,82 @@ class OrganizationBlocksApi {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
return resp;
|
|
1839
1839
|
}
|
|
1840
|
+
/**
|
|
1841
|
+
* 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.
|
|
1842
|
+
* @summary Get transfer learning block by customBlockRef
|
|
1843
|
+
* @param organizationId Organization ID
|
|
1844
|
+
* @param customBlockRef
|
|
1845
|
+
*/
|
|
1846
|
+
async getOrganizationTransferLearningBlockByRef(organizationId, customBlockRef, options = { headers: {} }) {
|
|
1847
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transfer-learning/ref/{customBlockRef}'
|
|
1848
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1849
|
+
.replace('{' + 'customBlockRef' + '}', encodeURIComponent(String(customBlockRef)));
|
|
1850
|
+
let queryParameters = {};
|
|
1851
|
+
let localVarHeaderParams = {
|
|
1852
|
+
'User-Agent': 'edgeimpulse-api nodejs',
|
|
1853
|
+
'Content-Type': 'application/json',
|
|
1854
|
+
...this.defaultHeaders,
|
|
1855
|
+
};
|
|
1856
|
+
const produces = ['application/json'];
|
|
1857
|
+
// give precedence to 'application/json'
|
|
1858
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1859
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1860
|
+
}
|
|
1861
|
+
else {
|
|
1862
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1863
|
+
}
|
|
1864
|
+
let localVarFormParams;
|
|
1865
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1866
|
+
if (organizationId === null || organizationId === undefined) {
|
|
1867
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationTransferLearningBlockByRef.');
|
|
1868
|
+
}
|
|
1869
|
+
// verify required parameter 'customBlockRef' is not null or undefined
|
|
1870
|
+
if (customBlockRef === null || customBlockRef === undefined) {
|
|
1871
|
+
throw new Error('Required parameter customBlockRef was null or undefined when calling getOrganizationTransferLearningBlockByRef.');
|
|
1872
|
+
}
|
|
1873
|
+
localVarHeaderParams = {
|
|
1874
|
+
...localVarHeaderParams,
|
|
1875
|
+
...options.headers,
|
|
1876
|
+
...this.opts.extraHeaders,
|
|
1877
|
+
};
|
|
1878
|
+
const queryString = Object.entries(queryParameters)
|
|
1879
|
+
.filter(([, value]) => value !== undefined)
|
|
1880
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
1881
|
+
.join('&');
|
|
1882
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
1883
|
+
let localVarRequestOptions = {
|
|
1884
|
+
method: 'GET',
|
|
1885
|
+
headers: { ...localVarHeaderParams },
|
|
1886
|
+
};
|
|
1887
|
+
let requestOptions = localVarRequestOptions;
|
|
1888
|
+
let url = localVarUrl;
|
|
1889
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
1890
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
1891
|
+
url = auth_ApiKeyAuthentication.url;
|
|
1892
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
1893
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
1894
|
+
url = auth_JWTAuthentication.url;
|
|
1895
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
1896
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
1897
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
1898
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
1899
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
1900
|
+
url = auth_OAuth2.url;
|
|
1901
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
1902
|
+
requestOptions = authDefault.requestOptions;
|
|
1903
|
+
url = authDefault.url;
|
|
1904
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1905
|
+
const response = await fetch(url, requestOptions);
|
|
1906
|
+
const resp = this.handleResponse(response, 'GetOrganizationTransferLearningBlockResponse');
|
|
1907
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1908
|
+
const headerCb = options.responseHeadersCallback;
|
|
1909
|
+
// on next tick, so we have time to handle the response
|
|
1910
|
+
setTimeout(() => {
|
|
1911
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1912
|
+
}, 0);
|
|
1913
|
+
}
|
|
1914
|
+
return resp;
|
|
1915
|
+
}
|
|
1840
1916
|
/**
|
|
1841
1917
|
* Get a transformation block.
|
|
1842
1918
|
* @summary Get transformation block
|