edge-impulse-api 1.93.19 → 1.93.21
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 +613 -15
- package/build/browser/edge-impulse-api.js +1381 -174
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.d.ts +31 -0
- package/build/library/sdk/api/deploymentApi.js +144 -0
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +114 -0
- package/build/library/sdk/api/organizationBlocksApi.js +514 -0
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +13 -0
- package/build/library/sdk/api/organizationDataApi.js +68 -0
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/projectsApi.d.ts +56 -0
- package/build/library/sdk/api/projectsApi.js +316 -0
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/model/actorProjectApiKey.d.ts +2 -0
- package/build/library/sdk/model/actorProjectApiKey.js.map +1 -1
- package/build/library/sdk/model/addOrganizationExtensionBlockRequest.d.ts +59 -0
- package/build/library/sdk/model/addOrganizationExtensionBlockRequest.js +6 -0
- package/build/library/sdk/model/addOrganizationExtensionBlockRequest.js.map +1 -0
- package/build/library/sdk/model/addProjectActiveExtensionRequest.d.ts +3 -0
- package/build/library/sdk/model/addProjectActiveExtensionRequest.js +4 -0
- package/build/library/sdk/model/addProjectActiveExtensionRequest.js.map +1 -0
- package/build/library/sdk/model/addProjectApiKeyRequest.d.ts +6 -3
- package/build/library/sdk/model/addProjectApiKeyRequest.js +0 -2
- package/build/library/sdk/model/addProjectApiKeyRequest.js.map +1 -1
- package/build/library/sdk/model/apiKeyExtension.d.ts +4 -0
- package/build/library/sdk/model/apiKeyExtension.js +4 -0
- package/build/library/sdk/model/apiKeyExtension.js.map +1 -0
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.d.ts +5 -0
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.js +4 -0
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.js.map +1 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.d.ts +20 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.js +4 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.js.map +1 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.d.ts +3 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.js +4 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.js.map +1 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.d.ts +18 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.js +4 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.js.map +1 -0
- package/build/library/sdk/model/deploymentHistory.d.ts +4 -0
- package/build/library/sdk/model/extension.d.ts +35 -0
- package/build/library/sdk/model/extension.js +6 -0
- package/build/library/sdk/model/extension.js.map +1 -0
- package/build/library/sdk/model/extensionVisibility.d.ts +7 -0
- package/build/library/sdk/model/extensionVisibility.js +6 -0
- package/build/library/sdk/model/extensionVisibility.js.map +1 -0
- package/build/library/sdk/model/getCurrentApiKeyInfoResponse.d.ts +14 -0
- package/build/library/sdk/model/getCurrentApiKeyInfoResponse.js +4 -0
- package/build/library/sdk/model/getCurrentApiKeyInfoResponse.js.map +1 -0
- package/build/library/sdk/model/getOrganizationExtensionBlockResponse.d.ts +12 -0
- package/build/library/sdk/model/getOrganizationExtensionBlockResponse.js +4 -0
- package/build/library/sdk/model/getOrganizationExtensionBlockResponse.js.map +1 -0
- package/build/library/sdk/model/getProjectActiveExtensionsResponse.d.ts +12 -0
- package/build/library/sdk/model/getProjectActiveExtensionsResponse.js +4 -0
- package/build/library/sdk/model/getProjectActiveExtensionsResponse.js.map +1 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.d.ts +33 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.js +4 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.js.map +1 -0
- package/build/library/sdk/model/jobLogItem.d.ts +7 -0
- package/build/library/sdk/model/jobLogItem.js +6 -0
- package/build/library/sdk/model/jobLogItem.js.map +1 -0
- package/build/library/sdk/model/jobLogsResponse.d.ts +2 -2
- package/build/library/sdk/model/listOrganizationExtensionBlocksResponse.d.ts +12 -0
- package/build/library/sdk/model/listOrganizationExtensionBlocksResponse.js +4 -0
- package/build/library/sdk/model/listOrganizationExtensionBlocksResponse.js.map +1 -0
- package/build/library/sdk/model/listProjectAvailableExtensionsResponse.d.ts +16 -0
- package/build/library/sdk/model/listProjectAvailableExtensionsResponse.js +4 -0
- package/build/library/sdk/model/listProjectAvailableExtensionsResponse.js.map +1 -0
- package/build/library/sdk/model/logStdoutResponse.d.ts +2 -2
- package/build/library/sdk/model/models.d.ts +20 -1
- package/build/library/sdk/model/models.js +23 -1
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/projectApiKey.d.ts +2 -0
- package/build/library/sdk/model/projectApiKey.js.map +1 -1
- package/build/library/sdk/model/projectApiKeyRole.d.ts +2 -0
- package/build/library/sdk/model/projectApiKeyRole.js +6 -0
- package/build/library/sdk/model/projectApiKeyRole.js.map +1 -0
- package/build/library/sdk/model/projectExtension.d.ts +37 -0
- package/build/library/sdk/model/projectExtension.js +6 -0
- package/build/library/sdk/model/projectExtension.js.map +1 -0
- package/build/library/sdk/model/projectInfoResponse.d.ts +4 -0
- package/build/library/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/library/sdk/model/removeProjectActiveExtensionResponse.d.ts +14 -0
- package/build/library/sdk/model/removeProjectActiveExtensionResponse.js +4 -0
- package/build/library/sdk/model/removeProjectActiveExtensionResponse.js.map +1 -0
- package/build/library/sdk/model/setKerasParameterRequest.d.ts +5 -0
- package/build/library/sdk/model/setKerasParameterRequest.js.map +1 -1
- package/build/library/sdk/model/storageProvider.d.ts +1 -1
- package/build/library/sdk/model/storageProvider.js +1 -1
- package/build/library/sdk/model/storageProvider.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationExtensionBlockRequest.d.ts +59 -0
- package/build/library/sdk/model/updateOrganizationExtensionBlockRequest.js +6 -0
- package/build/library/sdk/model/updateOrganizationExtensionBlockRequest.js.map +1 -0
- package/build/library/sdk/model/updateProjectRequest.d.ts +4 -0
- package/build/library/sdk/model/updateProjectRequest.js.map +1 -1
- package/package.json +1 -1
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.d.ts +0 -7
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.js +0 -6
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.js.map +0 -1
|
@@ -11375,6 +11375,78 @@ class DeploymentApi {
|
|
|
11375
11375
|
set accessToken(token) {
|
|
11376
11376
|
this.authentications.OAuth2.accessToken = token;
|
|
11377
11377
|
}
|
|
11378
|
+
/**
|
|
11379
|
+
* Create a deployment job for a _public_ project. You can only create deployments for \"wasm\" and \"wasm-browser-simd\" deployment types. If a deployment already exists, jobId is null. If a deployment did not exist, or a job is created, jobId is set to an integer, and you can get updates via `getPublicDeploymentStatus`. When this step is complete use `downloadHistoricDeployment` to download the artefacts using deploymentVersion. Updates are _NOT_ streamed over the websocket API (for security reasons); but can be obtained via `getPublicDeploymentStatus`.
|
|
11380
|
+
* @summary Build deployment (public)
|
|
11381
|
+
* @param projectId Project ID
|
|
11382
|
+
* @param buildPublicDeploymentJobRequest
|
|
11383
|
+
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
11384
|
+
*/
|
|
11385
|
+
async buildPublicDeploymentJob(projectId, buildPublicDeploymentJobRequest, queryParams, options = { headers: {} }) {
|
|
11386
|
+
const localVarPath = this.basePath + '/api/{projectId}/deployment/public/build'
|
|
11387
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
11388
|
+
let queryParameters = {};
|
|
11389
|
+
let localVarHeaderParams = {
|
|
11390
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
11391
|
+
'Content-Type': 'application/json',
|
|
11392
|
+
...this.defaultHeaders,
|
|
11393
|
+
};
|
|
11394
|
+
const produces = ['application/json'];
|
|
11395
|
+
// give precedence to 'application/json'
|
|
11396
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
11397
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
11398
|
+
}
|
|
11399
|
+
else {
|
|
11400
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
11401
|
+
}
|
|
11402
|
+
let localVarFormParams;
|
|
11403
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
11404
|
+
if (projectId === null || projectId === undefined) {
|
|
11405
|
+
throw new Error('Required parameter projectId was null or undefined when calling buildPublicDeploymentJob.');
|
|
11406
|
+
}
|
|
11407
|
+
// verify required parameter 'buildPublicDeploymentJobRequest' is not null or undefined
|
|
11408
|
+
if (buildPublicDeploymentJobRequest === null || buildPublicDeploymentJobRequest === undefined) {
|
|
11409
|
+
throw new Error('Required parameter buildPublicDeploymentJobRequest was null or undefined when calling buildPublicDeploymentJob.');
|
|
11410
|
+
}
|
|
11411
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
11412
|
+
queryParameters['impulseId'] = queryParams.impulseId;
|
|
11413
|
+
}
|
|
11414
|
+
localVarHeaderParams = {
|
|
11415
|
+
...localVarHeaderParams,
|
|
11416
|
+
...options.headers,
|
|
11417
|
+
...this.opts.extraHeaders,
|
|
11418
|
+
};
|
|
11419
|
+
const queryString = Object.entries(queryParameters)
|
|
11420
|
+
.filter(([, value]) => value !== undefined)
|
|
11421
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
11422
|
+
.join('&');
|
|
11423
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
11424
|
+
let localVarRequestOptions = {
|
|
11425
|
+
method: 'POST',
|
|
11426
|
+
headers: { ...localVarHeaderParams },
|
|
11427
|
+
};
|
|
11428
|
+
localVarRequestOptions.body = JSON.stringify(buildPublicDeploymentJobRequest);
|
|
11429
|
+
let requestOptions = localVarRequestOptions;
|
|
11430
|
+
let url = localVarUrl;
|
|
11431
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
11432
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
11433
|
+
url = auth_ApiKeyAuthentication.url;
|
|
11434
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
11435
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
11436
|
+
url = auth_JWTAuthentication.url;
|
|
11437
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
11438
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
11439
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
11440
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
11441
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
11442
|
+
url = auth_OAuth2.url;
|
|
11443
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
11444
|
+
requestOptions = authDefault.requestOptions;
|
|
11445
|
+
url = authDefault.url;
|
|
11446
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
11447
|
+
const response = await fetch(url, requestOptions);
|
|
11448
|
+
return this.handleResponse(response, 'BuildPublicDeploymentJobResponse');
|
|
11449
|
+
}
|
|
11378
11450
|
/**
|
|
11379
11451
|
* DEPRECATED, use downloadHistoricDeployment instead. Download the build artefacts for a project.
|
|
11380
11452
|
* @summary Download
|
|
@@ -12058,6 +12130,74 @@ class DeploymentApi {
|
|
|
12058
12130
|
const response = await fetch(url, requestOptions);
|
|
12059
12131
|
return this.handleResponse(response, 'GetModelMonitoringDeploymentsResponse');
|
|
12060
12132
|
}
|
|
12133
|
+
/**
|
|
12134
|
+
* Get the status of a deployment job created through buildPublicDeploymentJob.
|
|
12135
|
+
* @summary Get status of build job (public)
|
|
12136
|
+
* @param projectId Project ID
|
|
12137
|
+
* @param jobId Job ID
|
|
12138
|
+
*/
|
|
12139
|
+
async getPublicDeploymentStatus(projectId, jobId, options = { headers: {} }) {
|
|
12140
|
+
const localVarPath = this.basePath + '/api/{projectId}/deployment/public/jobs/{jobId}/status'
|
|
12141
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
12142
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
12143
|
+
let queryParameters = {};
|
|
12144
|
+
let localVarHeaderParams = {
|
|
12145
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
12146
|
+
'Content-Type': 'application/json',
|
|
12147
|
+
...this.defaultHeaders,
|
|
12148
|
+
};
|
|
12149
|
+
const produces = ['application/json'];
|
|
12150
|
+
// give precedence to 'application/json'
|
|
12151
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
12152
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
12153
|
+
}
|
|
12154
|
+
else {
|
|
12155
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
12156
|
+
}
|
|
12157
|
+
let localVarFormParams;
|
|
12158
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
12159
|
+
if (projectId === null || projectId === undefined) {
|
|
12160
|
+
throw new Error('Required parameter projectId was null or undefined when calling getPublicDeploymentStatus.');
|
|
12161
|
+
}
|
|
12162
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
12163
|
+
if (jobId === null || jobId === undefined) {
|
|
12164
|
+
throw new Error('Required parameter jobId was null or undefined when calling getPublicDeploymentStatus.');
|
|
12165
|
+
}
|
|
12166
|
+
localVarHeaderParams = {
|
|
12167
|
+
...localVarHeaderParams,
|
|
12168
|
+
...options.headers,
|
|
12169
|
+
...this.opts.extraHeaders,
|
|
12170
|
+
};
|
|
12171
|
+
const queryString = Object.entries(queryParameters)
|
|
12172
|
+
.filter(([, value]) => value !== undefined)
|
|
12173
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
12174
|
+
.join('&');
|
|
12175
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
12176
|
+
let localVarRequestOptions = {
|
|
12177
|
+
method: 'GET',
|
|
12178
|
+
headers: { ...localVarHeaderParams },
|
|
12179
|
+
};
|
|
12180
|
+
let requestOptions = localVarRequestOptions;
|
|
12181
|
+
let url = localVarUrl;
|
|
12182
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
12183
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
12184
|
+
url = auth_ApiKeyAuthentication.url;
|
|
12185
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
12186
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
12187
|
+
url = auth_JWTAuthentication.url;
|
|
12188
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
12189
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
12190
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
12191
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
12192
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
12193
|
+
url = auth_OAuth2.url;
|
|
12194
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
12195
|
+
requestOptions = authDefault.requestOptions;
|
|
12196
|
+
url = authDefault.url;
|
|
12197
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
12198
|
+
const response = await fetch(url, requestOptions);
|
|
12199
|
+
return this.handleResponse(response, 'GetPublicDeploymentStatusResponse');
|
|
12200
|
+
}
|
|
12061
12201
|
/**
|
|
12062
12202
|
* Get the current posterior parameters for the Syntiant deployment target
|
|
12063
12203
|
* @summary Get Syntiant posterior parameters
|
|
@@ -12185,6 +12325,7 @@ class DeploymentApi {
|
|
|
12185
12325
|
* @summary List deployment history
|
|
12186
12326
|
* @param projectId Project ID
|
|
12187
12327
|
* @param impulseId Impulse ID. If this is unset, data for all impulses is returned.
|
|
12328
|
+
* @param deploymentFormat
|
|
12188
12329
|
* @param limit Maximum number of results
|
|
12189
12330
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
12190
12331
|
*/
|
|
@@ -12213,6 +12354,9 @@ class DeploymentApi {
|
|
|
12213
12354
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
12214
12355
|
queryParameters['impulseId'] = queryParams.impulseId;
|
|
12215
12356
|
}
|
|
12357
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.deploymentFormat) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.deploymentFormat) !== null) {
|
|
12358
|
+
queryParameters['deploymentFormat'] = queryParams.deploymentFormat;
|
|
12359
|
+
}
|
|
12216
12360
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== null) {
|
|
12217
12361
|
queryParameters['limit'] = queryParams.limit;
|
|
12218
12362
|
}
|
|
@@ -24740,13 +24884,25 @@ class OrganizationBlocksApi {
|
|
|
24740
24884
|
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
24741
24885
|
}
|
|
24742
24886
|
/**
|
|
24743
|
-
* Adds
|
|
24744
|
-
* @summary Add
|
|
24887
|
+
* Adds an extension block.
|
|
24888
|
+
* @summary Add extension block
|
|
24745
24889
|
* @param organizationId Organization ID
|
|
24746
|
-
* @param
|
|
24747
|
-
|
|
24748
|
-
|
|
24749
|
-
|
|
24890
|
+
* @param name Extension block name.
|
|
24891
|
+
* @param description Extension block description.
|
|
24892
|
+
* @param url URL loaded by the extension.
|
|
24893
|
+
* @param navbarLocation Studio navigation location for the extension.
|
|
24894
|
+
* @param requiredApiKeyRole
|
|
24895
|
+
* @param onlyAvailableInProjectId Required if \\\"visibility\\\" is \\\"project\\\". If set, this extension is scoped to this specific project.
|
|
24896
|
+
* @param repositoryUrl Optional source repository URL for the extension.
|
|
24897
|
+
* @param logo Optional logo image for the extension.
|
|
24898
|
+
* @param navbarIcon Optional Font Awesome icon class for the navigation item.
|
|
24899
|
+
* @param visibility
|
|
24900
|
+
* @param publicProjectTierAvailability
|
|
24901
|
+
* @param indBlockNoLongerAvailable Whether this extension is no longer available.
|
|
24902
|
+
* @param blockNoLongerAvailableReason Reason this extension is no longer available.
|
|
24903
|
+
*/
|
|
24904
|
+
async addOrganizationExtensionBlock(organizationId, params, options = { headers: {} }) {
|
|
24905
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/extension'
|
|
24750
24906
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
24751
24907
|
let queryParameters = {};
|
|
24752
24908
|
let localVarHeaderParams = {
|
|
@@ -24765,85 +24921,103 @@ class OrganizationBlocksApi {
|
|
|
24765
24921
|
let localVarFormParams;
|
|
24766
24922
|
// verify required parameter 'organizationId' is not null or undefined
|
|
24767
24923
|
if (organizationId === null || organizationId === undefined) {
|
|
24768
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
24924
|
+
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24769
24925
|
}
|
|
24770
|
-
// verify required parameter '
|
|
24771
|
-
if (
|
|
24772
|
-
throw new Error('Required parameter
|
|
24926
|
+
// verify required parameter 'name' is not null or undefined
|
|
24927
|
+
if (params.name === null || params.name === undefined) {
|
|
24928
|
+
throw new Error('Required parameter params.name was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24773
24929
|
}
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
...this.opts.extraHeaders,
|
|
24778
|
-
};
|
|
24779
|
-
const queryString = Object.entries(queryParameters)
|
|
24780
|
-
.filter(([, value]) => value !== undefined)
|
|
24781
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
24782
|
-
.join('&');
|
|
24783
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
24784
|
-
let localVarRequestOptions = {
|
|
24785
|
-
method: 'POST',
|
|
24786
|
-
headers: { ...localVarHeaderParams },
|
|
24787
|
-
};
|
|
24788
|
-
localVarRequestOptions.body = JSON.stringify(addOrganizationSecretRequest);
|
|
24789
|
-
let requestOptions = localVarRequestOptions;
|
|
24790
|
-
let url = localVarUrl;
|
|
24791
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
24792
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
24793
|
-
url = auth_ApiKeyAuthentication.url;
|
|
24794
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
24795
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
24796
|
-
url = auth_JWTAuthentication.url;
|
|
24797
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
24798
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
24799
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
24800
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
24801
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
24802
|
-
url = auth_OAuth2.url;
|
|
24803
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
24804
|
-
requestOptions = authDefault.requestOptions;
|
|
24805
|
-
url = authDefault.url;
|
|
24806
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
24807
|
-
const response = await fetch(url, requestOptions);
|
|
24808
|
-
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
24809
|
-
}
|
|
24810
|
-
/**
|
|
24811
|
-
* Adds a transfer learning block.
|
|
24812
|
-
* @summary Add transfer learning block
|
|
24813
|
-
* @param organizationId Organization ID
|
|
24814
|
-
* @param addOrganizationTransferLearningBlockRequest
|
|
24815
|
-
*/
|
|
24816
|
-
async addOrganizationTransferLearningBlock(organizationId, addOrganizationTransferLearningBlockRequest, options = { headers: {} }) {
|
|
24817
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transfer-learning'
|
|
24818
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
24819
|
-
let queryParameters = {};
|
|
24820
|
-
let localVarHeaderParams = {
|
|
24821
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
24822
|
-
'Content-Type': 'application/json',
|
|
24823
|
-
...this.defaultHeaders,
|
|
24824
|
-
};
|
|
24825
|
-
const produces = ['application/json'];
|
|
24826
|
-
// give precedence to 'application/json'
|
|
24827
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
24828
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
24930
|
+
// verify required parameter 'description' is not null or undefined
|
|
24931
|
+
if (params.description === null || params.description === undefined) {
|
|
24932
|
+
throw new Error('Required parameter params.description was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24829
24933
|
}
|
|
24830
|
-
|
|
24831
|
-
|
|
24934
|
+
// verify required parameter 'url' is not null or undefined
|
|
24935
|
+
if (params.url === null || params.url === undefined) {
|
|
24936
|
+
throw new Error('Required parameter params.url was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24832
24937
|
}
|
|
24833
|
-
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationTransferLearningBlock.');
|
|
24938
|
+
// verify required parameter 'navbarLocation' is not null or undefined
|
|
24939
|
+
if (params.navbarLocation === null || params.navbarLocation === undefined) {
|
|
24940
|
+
throw new Error('Required parameter params.navbarLocation was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24837
24941
|
}
|
|
24838
|
-
// verify required parameter '
|
|
24839
|
-
if (
|
|
24840
|
-
throw new Error('Required parameter
|
|
24942
|
+
// verify required parameter 'requiredApiKeyRole' is not null or undefined
|
|
24943
|
+
if (params.requiredApiKeyRole === null || params.requiredApiKeyRole === undefined) {
|
|
24944
|
+
throw new Error('Required parameter params.requiredApiKeyRole was null or undefined when calling addOrganizationExtensionBlock.');
|
|
24841
24945
|
}
|
|
24842
24946
|
localVarHeaderParams = {
|
|
24843
24947
|
...localVarHeaderParams,
|
|
24844
24948
|
...options.headers,
|
|
24845
24949
|
...this.opts.extraHeaders,
|
|
24846
24950
|
};
|
|
24951
|
+
if (params.name !== undefined) {
|
|
24952
|
+
if (params.name !== null && params.name !== undefined) {
|
|
24953
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'name', (0, models_1.serializeFormDataValue)(params.name, 'string'));
|
|
24954
|
+
}
|
|
24955
|
+
}
|
|
24956
|
+
if (params.onlyAvailableInProjectId !== undefined) {
|
|
24957
|
+
if (params.onlyAvailableInProjectId !== null && params.onlyAvailableInProjectId !== undefined) {
|
|
24958
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'onlyAvailableInProjectId', (0, models_1.serializeFormDataValue)(params.onlyAvailableInProjectId, 'number'));
|
|
24959
|
+
}
|
|
24960
|
+
}
|
|
24961
|
+
if (params.description !== undefined) {
|
|
24962
|
+
if (params.description !== null && params.description !== undefined) {
|
|
24963
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'description', (0, models_1.serializeFormDataValue)(params.description, 'string'));
|
|
24964
|
+
}
|
|
24965
|
+
}
|
|
24966
|
+
if (params.url !== undefined) {
|
|
24967
|
+
if (params.url !== null && params.url !== undefined) {
|
|
24968
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'url', (0, models_1.serializeFormDataValue)(params.url, 'string'));
|
|
24969
|
+
}
|
|
24970
|
+
}
|
|
24971
|
+
if (params.repositoryUrl !== undefined) {
|
|
24972
|
+
if (params.repositoryUrl !== null && params.repositoryUrl !== undefined) {
|
|
24973
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'repositoryUrl', (0, models_1.serializeFormDataValue)(params.repositoryUrl, 'string'));
|
|
24974
|
+
}
|
|
24975
|
+
}
|
|
24976
|
+
if (params.logo !== undefined) {
|
|
24977
|
+
localVarFormParams = (0, models_1.ensureFormData)(localVarFormParams);
|
|
24978
|
+
const logoFiles = Array.isArray(params.logo) ? params.logo : [params.logo];
|
|
24979
|
+
const Blob = globalThis.Blob || require('buffer').Blob;
|
|
24980
|
+
for (const f of logoFiles) {
|
|
24981
|
+
localVarFormParams.append('logo', new Blob([f.value], {
|
|
24982
|
+
type: f.options.contentType
|
|
24983
|
+
}), f.options.filename);
|
|
24984
|
+
}
|
|
24985
|
+
}
|
|
24986
|
+
if (params.navbarIcon !== undefined) {
|
|
24987
|
+
if (params.navbarIcon !== null && params.navbarIcon !== undefined) {
|
|
24988
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'navbarIcon', (0, models_1.serializeFormDataValue)(params.navbarIcon, 'string'));
|
|
24989
|
+
}
|
|
24990
|
+
}
|
|
24991
|
+
if (params.navbarLocation !== undefined) {
|
|
24992
|
+
if (params.navbarLocation !== null && params.navbarLocation !== undefined) {
|
|
24993
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'navbarLocation', (0, models_1.serializeFormDataValue)(params.navbarLocation, 'string'));
|
|
24994
|
+
}
|
|
24995
|
+
}
|
|
24996
|
+
if (params.requiredApiKeyRole !== undefined) {
|
|
24997
|
+
if (params.requiredApiKeyRole !== null && params.requiredApiKeyRole !== undefined) {
|
|
24998
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'requiredApiKeyRole', (0, models_1.serializeFormDataValue)(params.requiredApiKeyRole, 'ProjectApiKeyRole'));
|
|
24999
|
+
}
|
|
25000
|
+
}
|
|
25001
|
+
if (params.visibility !== undefined) {
|
|
25002
|
+
if (params.visibility !== null && params.visibility !== undefined) {
|
|
25003
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'visibility', (0, models_1.serializeFormDataValue)(params.visibility, 'ExtensionVisibility'));
|
|
25004
|
+
}
|
|
25005
|
+
}
|
|
25006
|
+
if (params.publicProjectTierAvailability !== undefined) {
|
|
25007
|
+
if (params.publicProjectTierAvailability !== null && params.publicProjectTierAvailability !== undefined) {
|
|
25008
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'publicProjectTierAvailability', (0, models_1.serializeFormDataValue)(params.publicProjectTierAvailability, 'PublicProjectTierAvailability'));
|
|
25009
|
+
}
|
|
25010
|
+
}
|
|
25011
|
+
if (params.indBlockNoLongerAvailable !== undefined) {
|
|
25012
|
+
if (params.indBlockNoLongerAvailable !== null && params.indBlockNoLongerAvailable !== undefined) {
|
|
25013
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'indBlockNoLongerAvailable', (0, models_1.serializeFormDataValue)(params.indBlockNoLongerAvailable, 'boolean'));
|
|
25014
|
+
}
|
|
25015
|
+
}
|
|
25016
|
+
if (params.blockNoLongerAvailableReason !== undefined) {
|
|
25017
|
+
if (params.blockNoLongerAvailableReason !== null && params.blockNoLongerAvailableReason !== undefined) {
|
|
25018
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'blockNoLongerAvailableReason', (0, models_1.serializeFormDataValue)(params.blockNoLongerAvailableReason, 'string'));
|
|
25019
|
+
}
|
|
25020
|
+
}
|
|
24847
25021
|
const queryString = Object.entries(queryParameters)
|
|
24848
25022
|
.filter(([, value]) => value !== undefined)
|
|
24849
25023
|
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
@@ -24853,7 +25027,6 @@ class OrganizationBlocksApi {
|
|
|
24853
25027
|
method: 'POST',
|
|
24854
25028
|
headers: { ...localVarHeaderParams },
|
|
24855
25029
|
};
|
|
24856
|
-
localVarRequestOptions.body = JSON.stringify(addOrganizationTransferLearningBlockRequest);
|
|
24857
25030
|
let requestOptions = localVarRequestOptions;
|
|
24858
25031
|
let url = localVarUrl;
|
|
24859
25032
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -24876,13 +25049,13 @@ class OrganizationBlocksApi {
|
|
|
24876
25049
|
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
24877
25050
|
}
|
|
24878
25051
|
/**
|
|
24879
|
-
* Adds a
|
|
24880
|
-
* @summary Add
|
|
25052
|
+
* Adds a secret.
|
|
25053
|
+
* @summary Add secret
|
|
24881
25054
|
* @param organizationId Organization ID
|
|
24882
|
-
* @param
|
|
25055
|
+
* @param addOrganizationSecretRequest
|
|
24883
25056
|
*/
|
|
24884
|
-
async
|
|
24885
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
25057
|
+
async addOrganizationSecret(organizationId, addOrganizationSecretRequest, options = { headers: {} }) {
|
|
25058
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/secrets'
|
|
24886
25059
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
24887
25060
|
let queryParameters = {};
|
|
24888
25061
|
let localVarHeaderParams = {
|
|
@@ -24901,11 +25074,11 @@ class OrganizationBlocksApi {
|
|
|
24901
25074
|
let localVarFormParams;
|
|
24902
25075
|
// verify required parameter 'organizationId' is not null or undefined
|
|
24903
25076
|
if (organizationId === null || organizationId === undefined) {
|
|
24904
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
25077
|
+
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationSecret.');
|
|
24905
25078
|
}
|
|
24906
|
-
// verify required parameter '
|
|
24907
|
-
if (
|
|
24908
|
-
throw new Error('Required parameter
|
|
25079
|
+
// verify required parameter 'addOrganizationSecretRequest' is not null or undefined
|
|
25080
|
+
if (addOrganizationSecretRequest === null || addOrganizationSecretRequest === undefined) {
|
|
25081
|
+
throw new Error('Required parameter addOrganizationSecretRequest was null or undefined when calling addOrganizationSecret.');
|
|
24909
25082
|
}
|
|
24910
25083
|
localVarHeaderParams = {
|
|
24911
25084
|
...localVarHeaderParams,
|
|
@@ -24921,7 +25094,143 @@ class OrganizationBlocksApi {
|
|
|
24921
25094
|
method: 'POST',
|
|
24922
25095
|
headers: { ...localVarHeaderParams },
|
|
24923
25096
|
};
|
|
24924
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
25097
|
+
localVarRequestOptions.body = JSON.stringify(addOrganizationSecretRequest);
|
|
25098
|
+
let requestOptions = localVarRequestOptions;
|
|
25099
|
+
let url = localVarUrl;
|
|
25100
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
25101
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
25102
|
+
url = auth_ApiKeyAuthentication.url;
|
|
25103
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
25104
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
25105
|
+
url = auth_JWTAuthentication.url;
|
|
25106
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
25107
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
25108
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
25109
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
25110
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
25111
|
+
url = auth_OAuth2.url;
|
|
25112
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
25113
|
+
requestOptions = authDefault.requestOptions;
|
|
25114
|
+
url = authDefault.url;
|
|
25115
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25116
|
+
const response = await fetch(url, requestOptions);
|
|
25117
|
+
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
25118
|
+
}
|
|
25119
|
+
/**
|
|
25120
|
+
* Adds a transfer learning block.
|
|
25121
|
+
* @summary Add transfer learning block
|
|
25122
|
+
* @param organizationId Organization ID
|
|
25123
|
+
* @param addOrganizationTransferLearningBlockRequest
|
|
25124
|
+
*/
|
|
25125
|
+
async addOrganizationTransferLearningBlock(organizationId, addOrganizationTransferLearningBlockRequest, options = { headers: {} }) {
|
|
25126
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transfer-learning'
|
|
25127
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
25128
|
+
let queryParameters = {};
|
|
25129
|
+
let localVarHeaderParams = {
|
|
25130
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
25131
|
+
'Content-Type': 'application/json',
|
|
25132
|
+
...this.defaultHeaders,
|
|
25133
|
+
};
|
|
25134
|
+
const produces = ['application/json'];
|
|
25135
|
+
// give precedence to 'application/json'
|
|
25136
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
25137
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
25138
|
+
}
|
|
25139
|
+
else {
|
|
25140
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
25141
|
+
}
|
|
25142
|
+
let localVarFormParams;
|
|
25143
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
25144
|
+
if (organizationId === null || organizationId === undefined) {
|
|
25145
|
+
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationTransferLearningBlock.');
|
|
25146
|
+
}
|
|
25147
|
+
// verify required parameter 'addOrganizationTransferLearningBlockRequest' is not null or undefined
|
|
25148
|
+
if (addOrganizationTransferLearningBlockRequest === null || addOrganizationTransferLearningBlockRequest === undefined) {
|
|
25149
|
+
throw new Error('Required parameter addOrganizationTransferLearningBlockRequest was null or undefined when calling addOrganizationTransferLearningBlock.');
|
|
25150
|
+
}
|
|
25151
|
+
localVarHeaderParams = {
|
|
25152
|
+
...localVarHeaderParams,
|
|
25153
|
+
...options.headers,
|
|
25154
|
+
...this.opts.extraHeaders,
|
|
25155
|
+
};
|
|
25156
|
+
const queryString = Object.entries(queryParameters)
|
|
25157
|
+
.filter(([, value]) => value !== undefined)
|
|
25158
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
25159
|
+
.join('&');
|
|
25160
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
25161
|
+
let localVarRequestOptions = {
|
|
25162
|
+
method: 'POST',
|
|
25163
|
+
headers: { ...localVarHeaderParams },
|
|
25164
|
+
};
|
|
25165
|
+
localVarRequestOptions.body = JSON.stringify(addOrganizationTransferLearningBlockRequest);
|
|
25166
|
+
let requestOptions = localVarRequestOptions;
|
|
25167
|
+
let url = localVarUrl;
|
|
25168
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
25169
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
25170
|
+
url = auth_ApiKeyAuthentication.url;
|
|
25171
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
25172
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
25173
|
+
url = auth_JWTAuthentication.url;
|
|
25174
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
25175
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
25176
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
25177
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
25178
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
25179
|
+
url = auth_OAuth2.url;
|
|
25180
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
25181
|
+
requestOptions = authDefault.requestOptions;
|
|
25182
|
+
url = authDefault.url;
|
|
25183
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25184
|
+
const response = await fetch(url, requestOptions);
|
|
25185
|
+
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
25186
|
+
}
|
|
25187
|
+
/**
|
|
25188
|
+
* Adds a transformation block.
|
|
25189
|
+
* @summary Add transformation block
|
|
25190
|
+
* @param organizationId Organization ID
|
|
25191
|
+
* @param addOrganizationTransformationBlockRequest
|
|
25192
|
+
*/
|
|
25193
|
+
async addOrganizationTransformationBlock(organizationId, addOrganizationTransformationBlockRequest, options = { headers: {} }) {
|
|
25194
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation'
|
|
25195
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
25196
|
+
let queryParameters = {};
|
|
25197
|
+
let localVarHeaderParams = {
|
|
25198
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
25199
|
+
'Content-Type': 'application/json',
|
|
25200
|
+
...this.defaultHeaders,
|
|
25201
|
+
};
|
|
25202
|
+
const produces = ['application/json'];
|
|
25203
|
+
// give precedence to 'application/json'
|
|
25204
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
25205
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
25206
|
+
}
|
|
25207
|
+
else {
|
|
25208
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
25209
|
+
}
|
|
25210
|
+
let localVarFormParams;
|
|
25211
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
25212
|
+
if (organizationId === null || organizationId === undefined) {
|
|
25213
|
+
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationTransformationBlock.');
|
|
25214
|
+
}
|
|
25215
|
+
// verify required parameter 'addOrganizationTransformationBlockRequest' is not null or undefined
|
|
25216
|
+
if (addOrganizationTransformationBlockRequest === null || addOrganizationTransformationBlockRequest === undefined) {
|
|
25217
|
+
throw new Error('Required parameter addOrganizationTransformationBlockRequest was null or undefined when calling addOrganizationTransformationBlock.');
|
|
25218
|
+
}
|
|
25219
|
+
localVarHeaderParams = {
|
|
25220
|
+
...localVarHeaderParams,
|
|
25221
|
+
...options.headers,
|
|
25222
|
+
...this.opts.extraHeaders,
|
|
25223
|
+
};
|
|
25224
|
+
const queryString = Object.entries(queryParameters)
|
|
25225
|
+
.filter(([, value]) => value !== undefined)
|
|
25226
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
25227
|
+
.join('&');
|
|
25228
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
25229
|
+
let localVarRequestOptions = {
|
|
25230
|
+
method: 'POST',
|
|
25231
|
+
headers: { ...localVarHeaderParams },
|
|
25232
|
+
};
|
|
25233
|
+
localVarRequestOptions.body = JSON.stringify(addOrganizationTransformationBlockRequest);
|
|
24925
25234
|
let requestOptions = localVarRequestOptions;
|
|
24926
25235
|
let url = localVarUrl;
|
|
24927
25236
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -25079,6 +25388,74 @@ class OrganizationBlocksApi {
|
|
|
25079
25388
|
const response = await fetch(url, requestOptions);
|
|
25080
25389
|
return this.handleResponse(response, 'GenericApiResponse');
|
|
25081
25390
|
}
|
|
25391
|
+
/**
|
|
25392
|
+
* Deletes an extension block.
|
|
25393
|
+
* @summary Delete extension block
|
|
25394
|
+
* @param organizationId Organization ID
|
|
25395
|
+
* @param extensionId Extension ID
|
|
25396
|
+
*/
|
|
25397
|
+
async deleteOrganizationExtensionBlock(organizationId, extensionId, options = { headers: {} }) {
|
|
25398
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/extension/{extensionId}'
|
|
25399
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
25400
|
+
.replace('{' + 'extensionId' + '}', encodeURIComponent(String(extensionId)));
|
|
25401
|
+
let queryParameters = {};
|
|
25402
|
+
let localVarHeaderParams = {
|
|
25403
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
25404
|
+
'Content-Type': 'application/json',
|
|
25405
|
+
...this.defaultHeaders,
|
|
25406
|
+
};
|
|
25407
|
+
const produces = ['application/json'];
|
|
25408
|
+
// give precedence to 'application/json'
|
|
25409
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
25410
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
25411
|
+
}
|
|
25412
|
+
else {
|
|
25413
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
25414
|
+
}
|
|
25415
|
+
let localVarFormParams;
|
|
25416
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
25417
|
+
if (organizationId === null || organizationId === undefined) {
|
|
25418
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationExtensionBlock.');
|
|
25419
|
+
}
|
|
25420
|
+
// verify required parameter 'extensionId' is not null or undefined
|
|
25421
|
+
if (extensionId === null || extensionId === undefined) {
|
|
25422
|
+
throw new Error('Required parameter extensionId was null or undefined when calling deleteOrganizationExtensionBlock.');
|
|
25423
|
+
}
|
|
25424
|
+
localVarHeaderParams = {
|
|
25425
|
+
...localVarHeaderParams,
|
|
25426
|
+
...options.headers,
|
|
25427
|
+
...this.opts.extraHeaders,
|
|
25428
|
+
};
|
|
25429
|
+
const queryString = Object.entries(queryParameters)
|
|
25430
|
+
.filter(([, value]) => value !== undefined)
|
|
25431
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
25432
|
+
.join('&');
|
|
25433
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
25434
|
+
let localVarRequestOptions = {
|
|
25435
|
+
method: 'DELETE',
|
|
25436
|
+
headers: { ...localVarHeaderParams },
|
|
25437
|
+
};
|
|
25438
|
+
let requestOptions = localVarRequestOptions;
|
|
25439
|
+
let url = localVarUrl;
|
|
25440
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
25441
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
25442
|
+
url = auth_ApiKeyAuthentication.url;
|
|
25443
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
25444
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
25445
|
+
url = auth_JWTAuthentication.url;
|
|
25446
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
25447
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
25448
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
25449
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
25450
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
25451
|
+
url = auth_OAuth2.url;
|
|
25452
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
25453
|
+
requestOptions = authDefault.requestOptions;
|
|
25454
|
+
url = authDefault.url;
|
|
25455
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25456
|
+
const response = await fetch(url, requestOptions);
|
|
25457
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
25458
|
+
}
|
|
25082
25459
|
/**
|
|
25083
25460
|
* Deletes a secret
|
|
25084
25461
|
* @summary Delete secret
|
|
@@ -25692,15 +26069,15 @@ class OrganizationBlocksApi {
|
|
|
25692
26069
|
return this.handleResponse(response, 'GetOrganizationDspBlockResponse');
|
|
25693
26070
|
}
|
|
25694
26071
|
/**
|
|
25695
|
-
* Gets
|
|
25696
|
-
* @summary Get
|
|
26072
|
+
* Gets an extension block.
|
|
26073
|
+
* @summary Get extension block
|
|
25697
26074
|
* @param organizationId Organization ID
|
|
25698
|
-
* @param
|
|
26075
|
+
* @param extensionId Extension ID
|
|
25699
26076
|
*/
|
|
25700
|
-
async
|
|
25701
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
26077
|
+
async getOrganizationExtensionBlock(organizationId, extensionId, options = { headers: {} }) {
|
|
26078
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/extension/{extensionId}'
|
|
25702
26079
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
25703
|
-
.replace('{' + '
|
|
26080
|
+
.replace('{' + 'extensionId' + '}', encodeURIComponent(String(extensionId)));
|
|
25704
26081
|
let queryParameters = {};
|
|
25705
26082
|
let localVarHeaderParams = {
|
|
25706
26083
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -25718,11 +26095,11 @@ class OrganizationBlocksApi {
|
|
|
25718
26095
|
let localVarFormParams;
|
|
25719
26096
|
// verify required parameter 'organizationId' is not null or undefined
|
|
25720
26097
|
if (organizationId === null || organizationId === undefined) {
|
|
25721
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
26098
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationExtensionBlock.');
|
|
25722
26099
|
}
|
|
25723
|
-
// verify required parameter '
|
|
25724
|
-
if (
|
|
25725
|
-
throw new Error('Required parameter
|
|
26100
|
+
// verify required parameter 'extensionId' is not null or undefined
|
|
26101
|
+
if (extensionId === null || extensionId === undefined) {
|
|
26102
|
+
throw new Error('Required parameter extensionId was null or undefined when calling getOrganizationExtensionBlock.');
|
|
25726
26103
|
}
|
|
25727
26104
|
localVarHeaderParams = {
|
|
25728
26105
|
...localVarHeaderParams,
|
|
@@ -25757,18 +26134,18 @@ class OrganizationBlocksApi {
|
|
|
25757
26134
|
url = authDefault.url;
|
|
25758
26135
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25759
26136
|
const response = await fetch(url, requestOptions);
|
|
25760
|
-
return this.handleResponse(response, '
|
|
26137
|
+
return this.handleResponse(response, 'GetOrganizationExtensionBlockResponse');
|
|
25761
26138
|
}
|
|
25762
26139
|
/**
|
|
25763
|
-
*
|
|
25764
|
-
* @summary Get
|
|
26140
|
+
* Gets a transfer learning block.
|
|
26141
|
+
* @summary Get transfer learning block
|
|
25765
26142
|
* @param organizationId Organization ID
|
|
25766
|
-
* @param
|
|
26143
|
+
* @param transferLearningId Transfer learning ID
|
|
25767
26144
|
*/
|
|
25768
|
-
async
|
|
25769
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
26145
|
+
async getOrganizationTransferLearningBlock(organizationId, transferLearningId, options = { headers: {} }) {
|
|
26146
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transfer-learning/{transferLearningId}'
|
|
25770
26147
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
25771
|
-
.replace('{' + '
|
|
26148
|
+
.replace('{' + 'transferLearningId' + '}', encodeURIComponent(String(transferLearningId)));
|
|
25772
26149
|
let queryParameters = {};
|
|
25773
26150
|
let localVarHeaderParams = {
|
|
25774
26151
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -25786,11 +26163,11 @@ class OrganizationBlocksApi {
|
|
|
25786
26163
|
let localVarFormParams;
|
|
25787
26164
|
// verify required parameter 'organizationId' is not null or undefined
|
|
25788
26165
|
if (organizationId === null || organizationId === undefined) {
|
|
25789
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
26166
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationTransferLearningBlock.');
|
|
25790
26167
|
}
|
|
25791
|
-
// verify required parameter '
|
|
25792
|
-
if (
|
|
25793
|
-
throw new Error('Required parameter
|
|
26168
|
+
// verify required parameter 'transferLearningId' is not null or undefined
|
|
26169
|
+
if (transferLearningId === null || transferLearningId === undefined) {
|
|
26170
|
+
throw new Error('Required parameter transferLearningId was null or undefined when calling getOrganizationTransferLearningBlock.');
|
|
25794
26171
|
}
|
|
25795
26172
|
localVarHeaderParams = {
|
|
25796
26173
|
...localVarHeaderParams,
|
|
@@ -25825,16 +26202,16 @@ class OrganizationBlocksApi {
|
|
|
25825
26202
|
url = authDefault.url;
|
|
25826
26203
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25827
26204
|
const response = await fetch(url, requestOptions);
|
|
25828
|
-
return this.handleResponse(response, '
|
|
26205
|
+
return this.handleResponse(response, 'GetOrganizationTransferLearningBlockResponse');
|
|
25829
26206
|
}
|
|
25830
26207
|
/**
|
|
25831
|
-
*
|
|
25832
|
-
* @summary Get
|
|
26208
|
+
* Get a transformation block.
|
|
26209
|
+
* @summary Get transformation block
|
|
25833
26210
|
* @param organizationId Organization ID
|
|
25834
26211
|
* @param transformationId Transformation block ID.
|
|
25835
26212
|
*/
|
|
25836
|
-
async
|
|
25837
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation/
|
|
26213
|
+
async getOrganizationTransformationBlock(organizationId, transformationId, options = { headers: {} }) {
|
|
26214
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation/{transformationId}'
|
|
25838
26215
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
25839
26216
|
.replace('{' + 'transformationId' + '}', encodeURIComponent(String(transformationId)));
|
|
25840
26217
|
let queryParameters = {};
|
|
@@ -25854,11 +26231,11 @@ class OrganizationBlocksApi {
|
|
|
25854
26231
|
let localVarFormParams;
|
|
25855
26232
|
// verify required parameter 'organizationId' is not null or undefined
|
|
25856
26233
|
if (organizationId === null || organizationId === undefined) {
|
|
25857
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
26234
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationTransformationBlock.');
|
|
25858
26235
|
}
|
|
25859
26236
|
// verify required parameter 'transformationId' is not null or undefined
|
|
25860
26237
|
if (transformationId === null || transformationId === undefined) {
|
|
25861
|
-
throw new Error('Required parameter transformationId was null or undefined when calling
|
|
26238
|
+
throw new Error('Required parameter transformationId was null or undefined when calling getOrganizationTransformationBlock.');
|
|
25862
26239
|
}
|
|
25863
26240
|
localVarHeaderParams = {
|
|
25864
26241
|
...localVarHeaderParams,
|
|
@@ -25893,16 +26270,18 @@ class OrganizationBlocksApi {
|
|
|
25893
26270
|
url = authDefault.url;
|
|
25894
26271
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
25895
26272
|
const response = await fetch(url, requestOptions);
|
|
25896
|
-
return this.handleResponse(response, '
|
|
26273
|
+
return this.handleResponse(response, 'GetOrganizationTransformationBlockResponse');
|
|
25897
26274
|
}
|
|
25898
26275
|
/**
|
|
25899
|
-
* Retrieve
|
|
25900
|
-
* @summary Get
|
|
26276
|
+
* Retrieve a transformation blocks published by other organizations, available for all organizations.
|
|
26277
|
+
* @summary Get public transformation block
|
|
25901
26278
|
* @param organizationId Organization ID
|
|
26279
|
+
* @param transformationId Transformation block ID.
|
|
25902
26280
|
*/
|
|
25903
|
-
async
|
|
25904
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
25905
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
26281
|
+
async getPublicOrganizationTransformationBlock(organizationId, transformationId, options = { headers: {} }) {
|
|
26282
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation/public/{transformationId}'
|
|
26283
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
26284
|
+
.replace('{' + 'transformationId' + '}', encodeURIComponent(String(transformationId)));
|
|
25906
26285
|
let queryParameters = {};
|
|
25907
26286
|
let localVarHeaderParams = {
|
|
25908
26287
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -25920,7 +26299,73 @@ class OrganizationBlocksApi {
|
|
|
25920
26299
|
let localVarFormParams;
|
|
25921
26300
|
// verify required parameter 'organizationId' is not null or undefined
|
|
25922
26301
|
if (organizationId === null || organizationId === undefined) {
|
|
25923
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
26302
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getPublicOrganizationTransformationBlock.');
|
|
26303
|
+
}
|
|
26304
|
+
// verify required parameter 'transformationId' is not null or undefined
|
|
26305
|
+
if (transformationId === null || transformationId === undefined) {
|
|
26306
|
+
throw new Error('Required parameter transformationId was null or undefined when calling getPublicOrganizationTransformationBlock.');
|
|
26307
|
+
}
|
|
26308
|
+
localVarHeaderParams = {
|
|
26309
|
+
...localVarHeaderParams,
|
|
26310
|
+
...options.headers,
|
|
26311
|
+
...this.opts.extraHeaders,
|
|
26312
|
+
};
|
|
26313
|
+
const queryString = Object.entries(queryParameters)
|
|
26314
|
+
.filter(([, value]) => value !== undefined)
|
|
26315
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
26316
|
+
.join('&');
|
|
26317
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
26318
|
+
let localVarRequestOptions = {
|
|
26319
|
+
method: 'GET',
|
|
26320
|
+
headers: { ...localVarHeaderParams },
|
|
26321
|
+
};
|
|
26322
|
+
let requestOptions = localVarRequestOptions;
|
|
26323
|
+
let url = localVarUrl;
|
|
26324
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
26325
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
26326
|
+
url = auth_ApiKeyAuthentication.url;
|
|
26327
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
26328
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
26329
|
+
url = auth_JWTAuthentication.url;
|
|
26330
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
26331
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
26332
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
26333
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
26334
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
26335
|
+
url = auth_OAuth2.url;
|
|
26336
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
26337
|
+
requestOptions = authDefault.requestOptions;
|
|
26338
|
+
url = authDefault.url;
|
|
26339
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
26340
|
+
const response = await fetch(url, requestOptions);
|
|
26341
|
+
return this.handleResponse(response, 'GetPublicOrganizationTransformationBlockResponse');
|
|
26342
|
+
}
|
|
26343
|
+
/**
|
|
26344
|
+
* Retrieve all deploy blocks.
|
|
26345
|
+
* @summary Get deploy blocks
|
|
26346
|
+
* @param organizationId Organization ID
|
|
26347
|
+
*/
|
|
26348
|
+
async listOrganizationDeployBlocks(organizationId, options = { headers: {} }) {
|
|
26349
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/deploy'
|
|
26350
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
26351
|
+
let queryParameters = {};
|
|
26352
|
+
let localVarHeaderParams = {
|
|
26353
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
26354
|
+
'Content-Type': 'application/json',
|
|
26355
|
+
...this.defaultHeaders,
|
|
26356
|
+
};
|
|
26357
|
+
const produces = ['application/json'];
|
|
26358
|
+
// give precedence to 'application/json'
|
|
26359
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
26360
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
26361
|
+
}
|
|
26362
|
+
else {
|
|
26363
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
26364
|
+
}
|
|
26365
|
+
let localVarFormParams;
|
|
26366
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
26367
|
+
if (organizationId === null || organizationId === undefined) {
|
|
26368
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationDeployBlocks.');
|
|
25924
26369
|
}
|
|
25925
26370
|
localVarHeaderParams = {
|
|
25926
26371
|
...localVarHeaderParams,
|
|
@@ -26019,6 +26464,68 @@ class OrganizationBlocksApi {
|
|
|
26019
26464
|
const response = await fetch(url, requestOptions);
|
|
26020
26465
|
return this.handleResponse(response, 'ListOrganizationDspBlocksResponse');
|
|
26021
26466
|
}
|
|
26467
|
+
/**
|
|
26468
|
+
* Retrieve all extension blocks for this organization.
|
|
26469
|
+
* @summary Get extension blocks
|
|
26470
|
+
* @param organizationId Organization ID
|
|
26471
|
+
*/
|
|
26472
|
+
async listOrganizationExtensionBlocks(organizationId, options = { headers: {} }) {
|
|
26473
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/extension'
|
|
26474
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
26475
|
+
let queryParameters = {};
|
|
26476
|
+
let localVarHeaderParams = {
|
|
26477
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
26478
|
+
'Content-Type': 'application/json',
|
|
26479
|
+
...this.defaultHeaders,
|
|
26480
|
+
};
|
|
26481
|
+
const produces = ['application/json'];
|
|
26482
|
+
// give precedence to 'application/json'
|
|
26483
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
26484
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
26485
|
+
}
|
|
26486
|
+
else {
|
|
26487
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
26488
|
+
}
|
|
26489
|
+
let localVarFormParams;
|
|
26490
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
26491
|
+
if (organizationId === null || organizationId === undefined) {
|
|
26492
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationExtensionBlocks.');
|
|
26493
|
+
}
|
|
26494
|
+
localVarHeaderParams = {
|
|
26495
|
+
...localVarHeaderParams,
|
|
26496
|
+
...options.headers,
|
|
26497
|
+
...this.opts.extraHeaders,
|
|
26498
|
+
};
|
|
26499
|
+
const queryString = Object.entries(queryParameters)
|
|
26500
|
+
.filter(([, value]) => value !== undefined)
|
|
26501
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
26502
|
+
.join('&');
|
|
26503
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
26504
|
+
let localVarRequestOptions = {
|
|
26505
|
+
method: 'GET',
|
|
26506
|
+
headers: { ...localVarHeaderParams },
|
|
26507
|
+
};
|
|
26508
|
+
let requestOptions = localVarRequestOptions;
|
|
26509
|
+
let url = localVarUrl;
|
|
26510
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
26511
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
26512
|
+
url = auth_ApiKeyAuthentication.url;
|
|
26513
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
26514
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
26515
|
+
url = auth_JWTAuthentication.url;
|
|
26516
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
26517
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
26518
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
26519
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
26520
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
26521
|
+
url = auth_OAuth2.url;
|
|
26522
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
26523
|
+
requestOptions = authDefault.requestOptions;
|
|
26524
|
+
url = authDefault.url;
|
|
26525
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
26526
|
+
const response = await fetch(url, requestOptions);
|
|
26527
|
+
return this.handleResponse(response, 'ListOrganizationExtensionBlocksResponse');
|
|
26528
|
+
}
|
|
26022
26529
|
/**
|
|
26023
26530
|
* Retrieve all secrets.
|
|
26024
26531
|
* @summary Get secrets
|
|
@@ -26589,6 +27096,157 @@ class OrganizationBlocksApi {
|
|
|
26589
27096
|
const response = await fetch(url, requestOptions);
|
|
26590
27097
|
return this.handleResponse(response, 'GenericApiResponse');
|
|
26591
27098
|
}
|
|
27099
|
+
/**
|
|
27100
|
+
* Updates an extension block. Only values in the body will be updated.
|
|
27101
|
+
* @summary Update extension block
|
|
27102
|
+
* @param organizationId Organization ID
|
|
27103
|
+
* @param extensionId Extension ID
|
|
27104
|
+
* @param name Extension block name.
|
|
27105
|
+
* @param onlyAvailableInProjectId Required if \\\"visibility\\\" is \\\"project\\\". If set, this extension is scoped to this specific project.
|
|
27106
|
+
* @param description Extension block description.
|
|
27107
|
+
* @param url URL loaded by the extension.
|
|
27108
|
+
* @param repositoryUrl Optional source repository URL for the extension.
|
|
27109
|
+
* @param logo Optional logo image for the extension.
|
|
27110
|
+
* @param navbarIcon Optional Font Awesome icon class for the navigation item.
|
|
27111
|
+
* @param navbarLocation Studio navigation location for the extension.
|
|
27112
|
+
* @param requiredApiKeyRole
|
|
27113
|
+
* @param visibility
|
|
27114
|
+
* @param publicProjectTierAvailability
|
|
27115
|
+
* @param indBlockNoLongerAvailable Whether this extension is no longer available.
|
|
27116
|
+
* @param blockNoLongerAvailableReason Reason this extension is no longer available.
|
|
27117
|
+
*/
|
|
27118
|
+
async updateOrganizationExtensionBlock(organizationId, extensionId, params, options = { headers: {} }) {
|
|
27119
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/extension/{extensionId}'
|
|
27120
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
27121
|
+
.replace('{' + 'extensionId' + '}', encodeURIComponent(String(extensionId)));
|
|
27122
|
+
let queryParameters = {};
|
|
27123
|
+
let localVarHeaderParams = {
|
|
27124
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
27125
|
+
'Content-Type': 'application/json',
|
|
27126
|
+
...this.defaultHeaders,
|
|
27127
|
+
};
|
|
27128
|
+
const produces = ['application/json'];
|
|
27129
|
+
// give precedence to 'application/json'
|
|
27130
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
27131
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
27132
|
+
}
|
|
27133
|
+
else {
|
|
27134
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
27135
|
+
}
|
|
27136
|
+
let localVarFormParams;
|
|
27137
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
27138
|
+
if (organizationId === null || organizationId === undefined) {
|
|
27139
|
+
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationExtensionBlock.');
|
|
27140
|
+
}
|
|
27141
|
+
// verify required parameter 'extensionId' is not null or undefined
|
|
27142
|
+
if (extensionId === null || extensionId === undefined) {
|
|
27143
|
+
throw new Error('Required parameter extensionId was null or undefined when calling updateOrganizationExtensionBlock.');
|
|
27144
|
+
}
|
|
27145
|
+
localVarHeaderParams = {
|
|
27146
|
+
...localVarHeaderParams,
|
|
27147
|
+
...options.headers,
|
|
27148
|
+
...this.opts.extraHeaders,
|
|
27149
|
+
};
|
|
27150
|
+
if (params.name !== undefined) {
|
|
27151
|
+
if (params.name !== null && params.name !== undefined) {
|
|
27152
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'name', (0, models_1.serializeFormDataValue)(params.name, 'string'));
|
|
27153
|
+
}
|
|
27154
|
+
}
|
|
27155
|
+
if (params.onlyAvailableInProjectId !== undefined) {
|
|
27156
|
+
if (params.onlyAvailableInProjectId !== null && params.onlyAvailableInProjectId !== undefined) {
|
|
27157
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'onlyAvailableInProjectId', (0, models_1.serializeFormDataValue)(params.onlyAvailableInProjectId, 'number'));
|
|
27158
|
+
}
|
|
27159
|
+
}
|
|
27160
|
+
if (params.description !== undefined) {
|
|
27161
|
+
if (params.description !== null && params.description !== undefined) {
|
|
27162
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'description', (0, models_1.serializeFormDataValue)(params.description, 'string'));
|
|
27163
|
+
}
|
|
27164
|
+
}
|
|
27165
|
+
if (params.url !== undefined) {
|
|
27166
|
+
if (params.url !== null && params.url !== undefined) {
|
|
27167
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'url', (0, models_1.serializeFormDataValue)(params.url, 'string'));
|
|
27168
|
+
}
|
|
27169
|
+
}
|
|
27170
|
+
if (params.repositoryUrl !== undefined) {
|
|
27171
|
+
if (params.repositoryUrl !== null && params.repositoryUrl !== undefined) {
|
|
27172
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'repositoryUrl', (0, models_1.serializeFormDataValue)(params.repositoryUrl, 'string'));
|
|
27173
|
+
}
|
|
27174
|
+
}
|
|
27175
|
+
if (params.logo !== undefined) {
|
|
27176
|
+
localVarFormParams = (0, models_1.ensureFormData)(localVarFormParams);
|
|
27177
|
+
const logoFiles = Array.isArray(params.logo) ? params.logo : [params.logo];
|
|
27178
|
+
const Blob = globalThis.Blob || require('buffer').Blob;
|
|
27179
|
+
for (const f of logoFiles) {
|
|
27180
|
+
localVarFormParams.append('logo', new Blob([f.value], {
|
|
27181
|
+
type: f.options.contentType
|
|
27182
|
+
}), f.options.filename);
|
|
27183
|
+
}
|
|
27184
|
+
}
|
|
27185
|
+
if (params.navbarIcon !== undefined) {
|
|
27186
|
+
if (params.navbarIcon !== null && params.navbarIcon !== undefined) {
|
|
27187
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'navbarIcon', (0, models_1.serializeFormDataValue)(params.navbarIcon, 'string'));
|
|
27188
|
+
}
|
|
27189
|
+
}
|
|
27190
|
+
if (params.navbarLocation !== undefined) {
|
|
27191
|
+
if (params.navbarLocation !== null && params.navbarLocation !== undefined) {
|
|
27192
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'navbarLocation', (0, models_1.serializeFormDataValue)(params.navbarLocation, 'string'));
|
|
27193
|
+
}
|
|
27194
|
+
}
|
|
27195
|
+
if (params.requiredApiKeyRole !== undefined) {
|
|
27196
|
+
if (params.requiredApiKeyRole !== null && params.requiredApiKeyRole !== undefined) {
|
|
27197
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'requiredApiKeyRole', (0, models_1.serializeFormDataValue)(params.requiredApiKeyRole, 'ProjectApiKeyRole'));
|
|
27198
|
+
}
|
|
27199
|
+
}
|
|
27200
|
+
if (params.visibility !== undefined) {
|
|
27201
|
+
if (params.visibility !== null && params.visibility !== undefined) {
|
|
27202
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'visibility', (0, models_1.serializeFormDataValue)(params.visibility, 'ExtensionVisibility'));
|
|
27203
|
+
}
|
|
27204
|
+
}
|
|
27205
|
+
if (params.publicProjectTierAvailability !== undefined) {
|
|
27206
|
+
if (params.publicProjectTierAvailability !== null && params.publicProjectTierAvailability !== undefined) {
|
|
27207
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'publicProjectTierAvailability', (0, models_1.serializeFormDataValue)(params.publicProjectTierAvailability, 'PublicProjectTierAvailability'));
|
|
27208
|
+
}
|
|
27209
|
+
}
|
|
27210
|
+
if (params.indBlockNoLongerAvailable !== undefined) {
|
|
27211
|
+
if (params.indBlockNoLongerAvailable !== null && params.indBlockNoLongerAvailable !== undefined) {
|
|
27212
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'indBlockNoLongerAvailable', (0, models_1.serializeFormDataValue)(params.indBlockNoLongerAvailable, 'boolean'));
|
|
27213
|
+
}
|
|
27214
|
+
}
|
|
27215
|
+
if (params.blockNoLongerAvailableReason !== undefined) {
|
|
27216
|
+
if (params.blockNoLongerAvailableReason !== null && params.blockNoLongerAvailableReason !== undefined) {
|
|
27217
|
+
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'blockNoLongerAvailableReason', (0, models_1.serializeFormDataValue)(params.blockNoLongerAvailableReason, 'string'));
|
|
27218
|
+
}
|
|
27219
|
+
}
|
|
27220
|
+
const queryString = Object.entries(queryParameters)
|
|
27221
|
+
.filter(([, value]) => value !== undefined)
|
|
27222
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
27223
|
+
.join('&');
|
|
27224
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
27225
|
+
let localVarRequestOptions = {
|
|
27226
|
+
method: 'POST',
|
|
27227
|
+
headers: { ...localVarHeaderParams },
|
|
27228
|
+
};
|
|
27229
|
+
let requestOptions = localVarRequestOptions;
|
|
27230
|
+
let url = localVarUrl;
|
|
27231
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
27232
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
27233
|
+
url = auth_ApiKeyAuthentication.url;
|
|
27234
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
27235
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
27236
|
+
url = auth_JWTAuthentication.url;
|
|
27237
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
27238
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
27239
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
27240
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
27241
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
27242
|
+
url = auth_OAuth2.url;
|
|
27243
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
27244
|
+
requestOptions = authDefault.requestOptions;
|
|
27245
|
+
url = authDefault.url;
|
|
27246
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
27247
|
+
const response = await fetch(url, requestOptions);
|
|
27248
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
27249
|
+
}
|
|
26592
27250
|
/**
|
|
26593
27251
|
* Updates a transfer learning block. Only values in the body will be updated.
|
|
26594
27252
|
* @summary Update transfer learning block
|
|
@@ -28616,6 +29274,74 @@ class OrganizationDataApi {
|
|
|
28616
29274
|
const response = await fetch(url, requestOptions);
|
|
28617
29275
|
return this.handleResponse(response, 'StartJobResponse');
|
|
28618
29276
|
}
|
|
29277
|
+
/**
|
|
29278
|
+
* Create a new storage bucket in the Edge Impulse infra. This API is only available through JWT token authentication.
|
|
29279
|
+
* @summary Create storage bucket
|
|
29280
|
+
* @param organizationId Organization ID
|
|
29281
|
+
* @param createOrganizationBucketRequest
|
|
29282
|
+
*/
|
|
29283
|
+
async createOrganizationBucket(organizationId, createOrganizationBucketRequest, options = { headers: {} }) {
|
|
29284
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/create'
|
|
29285
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
29286
|
+
let queryParameters = {};
|
|
29287
|
+
let localVarHeaderParams = {
|
|
29288
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
29289
|
+
'Content-Type': 'application/json',
|
|
29290
|
+
...this.defaultHeaders,
|
|
29291
|
+
};
|
|
29292
|
+
const produces = ['application/json'];
|
|
29293
|
+
// give precedence to 'application/json'
|
|
29294
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
29295
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
29296
|
+
}
|
|
29297
|
+
else {
|
|
29298
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
29299
|
+
}
|
|
29300
|
+
let localVarFormParams;
|
|
29301
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
29302
|
+
if (organizationId === null || organizationId === undefined) {
|
|
29303
|
+
throw new Error('Required parameter organizationId was null or undefined when calling createOrganizationBucket.');
|
|
29304
|
+
}
|
|
29305
|
+
// verify required parameter 'createOrganizationBucketRequest' is not null or undefined
|
|
29306
|
+
if (createOrganizationBucketRequest === null || createOrganizationBucketRequest === undefined) {
|
|
29307
|
+
throw new Error('Required parameter createOrganizationBucketRequest was null or undefined when calling createOrganizationBucket.');
|
|
29308
|
+
}
|
|
29309
|
+
localVarHeaderParams = {
|
|
29310
|
+
...localVarHeaderParams,
|
|
29311
|
+
...options.headers,
|
|
29312
|
+
...this.opts.extraHeaders,
|
|
29313
|
+
};
|
|
29314
|
+
const queryString = Object.entries(queryParameters)
|
|
29315
|
+
.filter(([, value]) => value !== undefined)
|
|
29316
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
29317
|
+
.join('&');
|
|
29318
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
29319
|
+
let localVarRequestOptions = {
|
|
29320
|
+
method: 'POST',
|
|
29321
|
+
headers: { ...localVarHeaderParams },
|
|
29322
|
+
};
|
|
29323
|
+
localVarRequestOptions.body = JSON.stringify(createOrganizationBucketRequest);
|
|
29324
|
+
let requestOptions = localVarRequestOptions;
|
|
29325
|
+
let url = localVarUrl;
|
|
29326
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
29327
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
29328
|
+
url = auth_ApiKeyAuthentication.url;
|
|
29329
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
29330
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
29331
|
+
url = auth_JWTAuthentication.url;
|
|
29332
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
29333
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
29334
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
29335
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
29336
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
29337
|
+
url = auth_OAuth2.url;
|
|
29338
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
29339
|
+
requestOptions = authDefault.requestOptions;
|
|
29340
|
+
url = authDefault.url;
|
|
29341
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
29342
|
+
const response = await fetch(url, requestOptions);
|
|
29343
|
+
return this.handleResponse(response, 'CreateOrganizationBucketResponse');
|
|
29344
|
+
}
|
|
28619
29345
|
/**
|
|
28620
29346
|
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
28621
29347
|
* @summary Create pre-signed S3 upload link
|
|
@@ -41158,6 +41884,74 @@ class ProjectsApi {
|
|
|
41158
41884
|
const response = await fetch(url, requestOptions);
|
|
41159
41885
|
return this.handleResponse(response, 'EntityCreatedResponse');
|
|
41160
41886
|
}
|
|
41887
|
+
/**
|
|
41888
|
+
* Adds an extension to a project. This API is only available through JWT token authentication.
|
|
41889
|
+
* @summary Add extension to project
|
|
41890
|
+
* @param projectId Project ID
|
|
41891
|
+
* @param addProjectActiveExtensionRequest
|
|
41892
|
+
*/
|
|
41893
|
+
async addProjectActiveExtension(projectId, addProjectActiveExtensionRequest, options = { headers: {} }) {
|
|
41894
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/active/add'
|
|
41895
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
41896
|
+
let queryParameters = {};
|
|
41897
|
+
let localVarHeaderParams = {
|
|
41898
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
41899
|
+
'Content-Type': 'application/json',
|
|
41900
|
+
...this.defaultHeaders,
|
|
41901
|
+
};
|
|
41902
|
+
const produces = ['application/json'];
|
|
41903
|
+
// give precedence to 'application/json'
|
|
41904
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
41905
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
41906
|
+
}
|
|
41907
|
+
else {
|
|
41908
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
41909
|
+
}
|
|
41910
|
+
let localVarFormParams;
|
|
41911
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
41912
|
+
if (projectId === null || projectId === undefined) {
|
|
41913
|
+
throw new Error('Required parameter projectId was null or undefined when calling addProjectActiveExtension.');
|
|
41914
|
+
}
|
|
41915
|
+
// verify required parameter 'addProjectActiveExtensionRequest' is not null or undefined
|
|
41916
|
+
if (addProjectActiveExtensionRequest === null || addProjectActiveExtensionRequest === undefined) {
|
|
41917
|
+
throw new Error('Required parameter addProjectActiveExtensionRequest was null or undefined when calling addProjectActiveExtension.');
|
|
41918
|
+
}
|
|
41919
|
+
localVarHeaderParams = {
|
|
41920
|
+
...localVarHeaderParams,
|
|
41921
|
+
...options.headers,
|
|
41922
|
+
...this.opts.extraHeaders,
|
|
41923
|
+
};
|
|
41924
|
+
const queryString = Object.entries(queryParameters)
|
|
41925
|
+
.filter(([, value]) => value !== undefined)
|
|
41926
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
41927
|
+
.join('&');
|
|
41928
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
41929
|
+
let localVarRequestOptions = {
|
|
41930
|
+
method: 'POST',
|
|
41931
|
+
headers: { ...localVarHeaderParams },
|
|
41932
|
+
};
|
|
41933
|
+
localVarRequestOptions.body = JSON.stringify(addProjectActiveExtensionRequest);
|
|
41934
|
+
let requestOptions = localVarRequestOptions;
|
|
41935
|
+
let url = localVarUrl;
|
|
41936
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
41937
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
41938
|
+
url = auth_ApiKeyAuthentication.url;
|
|
41939
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
41940
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
41941
|
+
url = auth_JWTAuthentication.url;
|
|
41942
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
41943
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
41944
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
41945
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
41946
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
41947
|
+
url = auth_OAuth2.url;
|
|
41948
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
41949
|
+
requestOptions = authDefault.requestOptions;
|
|
41950
|
+
url = authDefault.url;
|
|
41951
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
41952
|
+
const response = await fetch(url, requestOptions);
|
|
41953
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
41954
|
+
}
|
|
41161
41955
|
/**
|
|
41162
41956
|
* Add an API key. If you set `developmentKey` to `true` this flag will be removed from the current development API key. For OAuth-based third-party integrations, prefer `/api/{projectId}/apikeys/ingestiononly`.
|
|
41163
41957
|
* @summary Add API key
|
|
@@ -42145,6 +42939,62 @@ class ProjectsApi {
|
|
|
42145
42939
|
const response = await fetch(url, requestOptions);
|
|
42146
42940
|
return this.handleResponse(response, 'GetCsvWizardUploadedFileInfo');
|
|
42147
42941
|
}
|
|
42942
|
+
/**
|
|
42943
|
+
* Only available when authenticating with a project API key. Returns the current role and project ID that you\'re authenticated with.
|
|
42944
|
+
* @summary Get info about current API key
|
|
42945
|
+
*/
|
|
42946
|
+
async getCurrentApiKeyInfo(options = { headers: {} }) {
|
|
42947
|
+
const localVarPath = this.basePath + '/api/projects/api-key-info';
|
|
42948
|
+
let queryParameters = {};
|
|
42949
|
+
let localVarHeaderParams = {
|
|
42950
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
42951
|
+
'Content-Type': 'application/json',
|
|
42952
|
+
...this.defaultHeaders,
|
|
42953
|
+
};
|
|
42954
|
+
const produces = ['application/json'];
|
|
42955
|
+
// give precedence to 'application/json'
|
|
42956
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
42957
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
42958
|
+
}
|
|
42959
|
+
else {
|
|
42960
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
42961
|
+
}
|
|
42962
|
+
let localVarFormParams;
|
|
42963
|
+
localVarHeaderParams = {
|
|
42964
|
+
...localVarHeaderParams,
|
|
42965
|
+
...options.headers,
|
|
42966
|
+
...this.opts.extraHeaders,
|
|
42967
|
+
};
|
|
42968
|
+
const queryString = Object.entries(queryParameters)
|
|
42969
|
+
.filter(([, value]) => value !== undefined)
|
|
42970
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
42971
|
+
.join('&');
|
|
42972
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
42973
|
+
let localVarRequestOptions = {
|
|
42974
|
+
method: 'GET',
|
|
42975
|
+
headers: { ...localVarHeaderParams },
|
|
42976
|
+
};
|
|
42977
|
+
let requestOptions = localVarRequestOptions;
|
|
42978
|
+
let url = localVarUrl;
|
|
42979
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
42980
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
42981
|
+
url = auth_ApiKeyAuthentication.url;
|
|
42982
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
42983
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
42984
|
+
url = auth_JWTAuthentication.url;
|
|
42985
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
42986
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
42987
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
42988
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
42989
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
42990
|
+
url = auth_OAuth2.url;
|
|
42991
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
42992
|
+
requestOptions = authDefault.requestOptions;
|
|
42993
|
+
url = authDefault.url;
|
|
42994
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
42995
|
+
const response = await fetch(url, requestOptions);
|
|
42996
|
+
return this.handleResponse(response, 'GetCurrentApiKeyInfoResponse');
|
|
42997
|
+
}
|
|
42148
42998
|
/**
|
|
42149
42999
|
* Retrieve the HMAC development key for a project. This key are specifically marked to be used during development. This key can be `undefined` if no development keys are set.
|
|
42150
43000
|
* @summary Get HMAC development key
|
|
@@ -42335,6 +43185,68 @@ class ProjectsApi {
|
|
|
42335
43185
|
const response = await fetch(url, requestOptions);
|
|
42336
43186
|
return this.handleResponse(response, 'GetAIActionResponse');
|
|
42337
43187
|
}
|
|
43188
|
+
/**
|
|
43189
|
+
* Lists all extensions that are active for this project.
|
|
43190
|
+
* @summary List active extensions
|
|
43191
|
+
* @param projectId Project ID
|
|
43192
|
+
*/
|
|
43193
|
+
async getProjectActiveExtensions(projectId, options = { headers: {} }) {
|
|
43194
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/active'
|
|
43195
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43196
|
+
let queryParameters = {};
|
|
43197
|
+
let localVarHeaderParams = {
|
|
43198
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
43199
|
+
'Content-Type': 'application/json',
|
|
43200
|
+
...this.defaultHeaders,
|
|
43201
|
+
};
|
|
43202
|
+
const produces = ['application/json'];
|
|
43203
|
+
// give precedence to 'application/json'
|
|
43204
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
43205
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
43206
|
+
}
|
|
43207
|
+
else {
|
|
43208
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
43209
|
+
}
|
|
43210
|
+
let localVarFormParams;
|
|
43211
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
43212
|
+
if (projectId === null || projectId === undefined) {
|
|
43213
|
+
throw new Error('Required parameter projectId was null or undefined when calling getProjectActiveExtensions.');
|
|
43214
|
+
}
|
|
43215
|
+
localVarHeaderParams = {
|
|
43216
|
+
...localVarHeaderParams,
|
|
43217
|
+
...options.headers,
|
|
43218
|
+
...this.opts.extraHeaders,
|
|
43219
|
+
};
|
|
43220
|
+
const queryString = Object.entries(queryParameters)
|
|
43221
|
+
.filter(([, value]) => value !== undefined)
|
|
43222
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
43223
|
+
.join('&');
|
|
43224
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
43225
|
+
let localVarRequestOptions = {
|
|
43226
|
+
method: 'GET',
|
|
43227
|
+
headers: { ...localVarHeaderParams },
|
|
43228
|
+
};
|
|
43229
|
+
let requestOptions = localVarRequestOptions;
|
|
43230
|
+
let url = localVarUrl;
|
|
43231
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
43232
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
43233
|
+
url = auth_ApiKeyAuthentication.url;
|
|
43234
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
43235
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
43236
|
+
url = auth_JWTAuthentication.url;
|
|
43237
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
43238
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
43239
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
43240
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
43241
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
43242
|
+
url = auth_OAuth2.url;
|
|
43243
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
43244
|
+
requestOptions = authDefault.requestOptions;
|
|
43245
|
+
url = authDefault.url;
|
|
43246
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43247
|
+
const response = await fetch(url, requestOptions);
|
|
43248
|
+
return this.handleResponse(response, 'GetProjectActiveExtensionsResponse');
|
|
43249
|
+
}
|
|
42338
43250
|
/**
|
|
42339
43251
|
* Get a list of axes that are present in the training data.
|
|
42340
43252
|
* @summary Get data axes summary
|
|
@@ -42973,15 +43885,77 @@ class ProjectsApi {
|
|
|
42973
43885
|
url = authDefault.url;
|
|
42974
43886
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
42975
43887
|
const response = await fetch(url, requestOptions);
|
|
42976
|
-
return this.handleResponse(response, 'GenericApiResponse');
|
|
43888
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
43889
|
+
}
|
|
43890
|
+
/**
|
|
43891
|
+
* Get all AI actions.
|
|
43892
|
+
* @summary List AI Actions
|
|
43893
|
+
* @param projectId Project ID
|
|
43894
|
+
*/
|
|
43895
|
+
async listAIActions(projectId, options = { headers: {} }) {
|
|
43896
|
+
const localVarPath = this.basePath + '/api/{projectId}/ai-actions'
|
|
43897
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43898
|
+
let queryParameters = {};
|
|
43899
|
+
let localVarHeaderParams = {
|
|
43900
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
43901
|
+
'Content-Type': 'application/json',
|
|
43902
|
+
...this.defaultHeaders,
|
|
43903
|
+
};
|
|
43904
|
+
const produces = ['application/json'];
|
|
43905
|
+
// give precedence to 'application/json'
|
|
43906
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
43907
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
43908
|
+
}
|
|
43909
|
+
else {
|
|
43910
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
43911
|
+
}
|
|
43912
|
+
let localVarFormParams;
|
|
43913
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
43914
|
+
if (projectId === null || projectId === undefined) {
|
|
43915
|
+
throw new Error('Required parameter projectId was null or undefined when calling listAIActions.');
|
|
43916
|
+
}
|
|
43917
|
+
localVarHeaderParams = {
|
|
43918
|
+
...localVarHeaderParams,
|
|
43919
|
+
...options.headers,
|
|
43920
|
+
...this.opts.extraHeaders,
|
|
43921
|
+
};
|
|
43922
|
+
const queryString = Object.entries(queryParameters)
|
|
43923
|
+
.filter(([, value]) => value !== undefined)
|
|
43924
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
43925
|
+
.join('&');
|
|
43926
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
43927
|
+
let localVarRequestOptions = {
|
|
43928
|
+
method: 'GET',
|
|
43929
|
+
headers: { ...localVarHeaderParams },
|
|
43930
|
+
};
|
|
43931
|
+
let requestOptions = localVarRequestOptions;
|
|
43932
|
+
let url = localVarUrl;
|
|
43933
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
43934
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
43935
|
+
url = auth_ApiKeyAuthentication.url;
|
|
43936
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
43937
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
43938
|
+
url = auth_JWTAuthentication.url;
|
|
43939
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
43940
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
43941
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
43942
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
43943
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
43944
|
+
url = auth_OAuth2.url;
|
|
43945
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
43946
|
+
requestOptions = authDefault.requestOptions;
|
|
43947
|
+
url = authDefault.url;
|
|
43948
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43949
|
+
const response = await fetch(url, requestOptions);
|
|
43950
|
+
return this.handleResponse(response, 'ListAIActionsResponse');
|
|
42977
43951
|
}
|
|
42978
43952
|
/**
|
|
42979
|
-
*
|
|
42980
|
-
* @summary
|
|
43953
|
+
* List all development boards for a project
|
|
43954
|
+
* @summary Development boards
|
|
42981
43955
|
* @param projectId Project ID
|
|
42982
43956
|
*/
|
|
42983
|
-
async
|
|
42984
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
43957
|
+
async listDevelopmentBoards(projectId, options = { headers: {} }) {
|
|
43958
|
+
const localVarPath = this.basePath + '/api/{projectId}/development-boards'
|
|
42985
43959
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
42986
43960
|
let queryParameters = {};
|
|
42987
43961
|
let localVarHeaderParams = {
|
|
@@ -43000,7 +43974,7 @@ class ProjectsApi {
|
|
|
43000
43974
|
let localVarFormParams;
|
|
43001
43975
|
// verify required parameter 'projectId' is not null or undefined
|
|
43002
43976
|
if (projectId === null || projectId === undefined) {
|
|
43003
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
43977
|
+
throw new Error('Required parameter projectId was null or undefined when calling listDevelopmentBoards.');
|
|
43004
43978
|
}
|
|
43005
43979
|
localVarHeaderParams = {
|
|
43006
43980
|
...localVarHeaderParams,
|
|
@@ -43035,15 +44009,15 @@ class ProjectsApi {
|
|
|
43035
44009
|
url = authDefault.url;
|
|
43036
44010
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43037
44011
|
const response = await fetch(url, requestOptions);
|
|
43038
|
-
return this.handleResponse(response, '
|
|
44012
|
+
return this.handleResponse(response, 'DevelopmentBoardsResponse');
|
|
43039
44013
|
}
|
|
43040
44014
|
/**
|
|
43041
|
-
*
|
|
43042
|
-
* @summary
|
|
44015
|
+
* Retrieve the development API and HMAC keys for a project. These keys are specifically marked to be used during development. These keys can be `undefined` if no development keys are set. Only available through JWT token authentication, if you authenticate with an API key then all keys will return undefined (this is changed behavior since 28 January 2026).
|
|
44016
|
+
* @summary Get development keys
|
|
43043
44017
|
* @param projectId Project ID
|
|
43044
44018
|
*/
|
|
43045
|
-
async
|
|
43046
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
44019
|
+
async listDevkeys(projectId, options = { headers: {} }) {
|
|
44020
|
+
const localVarPath = this.basePath + '/api/{projectId}/devkeys'
|
|
43047
44021
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43048
44022
|
let queryParameters = {};
|
|
43049
44023
|
let localVarHeaderParams = {
|
|
@@ -43062,7 +44036,7 @@ class ProjectsApi {
|
|
|
43062
44036
|
let localVarFormParams;
|
|
43063
44037
|
// verify required parameter 'projectId' is not null or undefined
|
|
43064
44038
|
if (projectId === null || projectId === undefined) {
|
|
43065
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
44039
|
+
throw new Error('Required parameter projectId was null or undefined when calling listDevkeys.');
|
|
43066
44040
|
}
|
|
43067
44041
|
localVarHeaderParams = {
|
|
43068
44042
|
...localVarHeaderParams,
|
|
@@ -43097,15 +44071,16 @@ class ProjectsApi {
|
|
|
43097
44071
|
url = authDefault.url;
|
|
43098
44072
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43099
44073
|
const response = await fetch(url, requestOptions);
|
|
43100
|
-
return this.handleResponse(response, '
|
|
44074
|
+
return this.handleResponse(response, 'DevelopmentKeysResponse');
|
|
43101
44075
|
}
|
|
43102
44076
|
/**
|
|
43103
|
-
* Retrieve the
|
|
43104
|
-
* @summary Get
|
|
44077
|
+
* Retrieve the downloads for a project.
|
|
44078
|
+
* @summary Get downloads
|
|
43105
44079
|
* @param projectId Project ID
|
|
44080
|
+
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
43106
44081
|
*/
|
|
43107
|
-
async
|
|
43108
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
44082
|
+
async listDownloads(projectId, queryParams, options = { headers: {} }) {
|
|
44083
|
+
const localVarPath = this.basePath + '/api/{projectId}/downloads'
|
|
43109
44084
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43110
44085
|
let queryParameters = {};
|
|
43111
44086
|
let localVarHeaderParams = {
|
|
@@ -43124,7 +44099,10 @@ class ProjectsApi {
|
|
|
43124
44099
|
let localVarFormParams;
|
|
43125
44100
|
// verify required parameter 'projectId' is not null or undefined
|
|
43126
44101
|
if (projectId === null || projectId === undefined) {
|
|
43127
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
44102
|
+
throw new Error('Required parameter projectId was null or undefined when calling listDownloads.');
|
|
44103
|
+
}
|
|
44104
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
44105
|
+
queryParameters['impulseId'] = queryParams.impulseId;
|
|
43128
44106
|
}
|
|
43129
44107
|
localVarHeaderParams = {
|
|
43130
44108
|
...localVarHeaderParams,
|
|
@@ -43159,16 +44137,15 @@ class ProjectsApi {
|
|
|
43159
44137
|
url = authDefault.url;
|
|
43160
44138
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43161
44139
|
const response = await fetch(url, requestOptions);
|
|
43162
|
-
return this.handleResponse(response, '
|
|
44140
|
+
return this.handleResponse(response, 'ProjectDownloadsResponse');
|
|
43163
44141
|
}
|
|
43164
44142
|
/**
|
|
43165
|
-
*
|
|
43166
|
-
* @summary
|
|
44143
|
+
* Get a list of all emails sent by Edge Impulse regarding this project.
|
|
44144
|
+
* @summary List emails
|
|
43167
44145
|
* @param projectId Project ID
|
|
43168
|
-
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
43169
44146
|
*/
|
|
43170
|
-
async
|
|
43171
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
44147
|
+
async listEmails(projectId, options = { headers: {} }) {
|
|
44148
|
+
const localVarPath = this.basePath + '/api/{projectId}/emails'
|
|
43172
44149
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43173
44150
|
let queryParameters = {};
|
|
43174
44151
|
let localVarHeaderParams = {
|
|
@@ -43187,10 +44164,7 @@ class ProjectsApi {
|
|
|
43187
44164
|
let localVarFormParams;
|
|
43188
44165
|
// verify required parameter 'projectId' is not null or undefined
|
|
43189
44166
|
if (projectId === null || projectId === undefined) {
|
|
43190
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
43191
|
-
}
|
|
43192
|
-
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
43193
|
-
queryParameters['impulseId'] = queryParams.impulseId;
|
|
44167
|
+
throw new Error('Required parameter projectId was null or undefined when calling listEmails.');
|
|
43194
44168
|
}
|
|
43195
44169
|
localVarHeaderParams = {
|
|
43196
44170
|
...localVarHeaderParams,
|
|
@@ -43225,15 +44199,15 @@ class ProjectsApi {
|
|
|
43225
44199
|
url = authDefault.url;
|
|
43226
44200
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43227
44201
|
const response = await fetch(url, requestOptions);
|
|
43228
|
-
return this.handleResponse(response, '
|
|
44202
|
+
return this.handleResponse(response, 'ListEmailResponse');
|
|
43229
44203
|
}
|
|
43230
44204
|
/**
|
|
43231
|
-
*
|
|
43232
|
-
* @summary
|
|
44205
|
+
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). The development key will be returned in full, as it\'ll be set in devices and is thus not private.
|
|
44206
|
+
* @summary Get API keys
|
|
43233
44207
|
* @param projectId Project ID
|
|
43234
44208
|
*/
|
|
43235
|
-
async
|
|
43236
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
44209
|
+
async listProjectApiKeys(projectId, options = { headers: {} }) {
|
|
44210
|
+
const localVarPath = this.basePath + '/api/{projectId}/apikeys'
|
|
43237
44211
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43238
44212
|
let queryParameters = {};
|
|
43239
44213
|
let localVarHeaderParams = {
|
|
@@ -43252,7 +44226,7 @@ class ProjectsApi {
|
|
|
43252
44226
|
let localVarFormParams;
|
|
43253
44227
|
// verify required parameter 'projectId' is not null or undefined
|
|
43254
44228
|
if (projectId === null || projectId === undefined) {
|
|
43255
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
44229
|
+
throw new Error('Required parameter projectId was null or undefined when calling listProjectApiKeys.');
|
|
43256
44230
|
}
|
|
43257
44231
|
localVarHeaderParams = {
|
|
43258
44232
|
...localVarHeaderParams,
|
|
@@ -43287,15 +44261,15 @@ class ProjectsApi {
|
|
|
43287
44261
|
url = authDefault.url;
|
|
43288
44262
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43289
44263
|
const response = await fetch(url, requestOptions);
|
|
43290
|
-
return this.handleResponse(response, '
|
|
44264
|
+
return this.handleResponse(response, 'ListApiKeysResponse');
|
|
43291
44265
|
}
|
|
43292
44266
|
/**
|
|
43293
|
-
*
|
|
43294
|
-
* @summary
|
|
44267
|
+
* Lists all available extensions that can be added to this project.
|
|
44268
|
+
* @summary List available extensions
|
|
43295
44269
|
* @param projectId Project ID
|
|
43296
44270
|
*/
|
|
43297
|
-
async
|
|
43298
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
44271
|
+
async listProjectAvailableExtensions(projectId, options = { headers: {} }) {
|
|
44272
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/available'
|
|
43299
44273
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
43300
44274
|
let queryParameters = {};
|
|
43301
44275
|
let localVarHeaderParams = {
|
|
@@ -43314,7 +44288,7 @@ class ProjectsApi {
|
|
|
43314
44288
|
let localVarFormParams;
|
|
43315
44289
|
// verify required parameter 'projectId' is not null or undefined
|
|
43316
44290
|
if (projectId === null || projectId === undefined) {
|
|
43317
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
44291
|
+
throw new Error('Required parameter projectId was null or undefined when calling listProjectAvailableExtensions.');
|
|
43318
44292
|
}
|
|
43319
44293
|
localVarHeaderParams = {
|
|
43320
44294
|
...localVarHeaderParams,
|
|
@@ -43349,7 +44323,7 @@ class ProjectsApi {
|
|
|
43349
44323
|
url = authDefault.url;
|
|
43350
44324
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
43351
44325
|
const response = await fetch(url, requestOptions);
|
|
43352
|
-
return this.handleResponse(response, '
|
|
44326
|
+
return this.handleResponse(response, 'ListProjectAvailableExtensionsResponse');
|
|
43353
44327
|
}
|
|
43354
44328
|
/**
|
|
43355
44329
|
* Retrieve all HMAC keys.
|
|
@@ -43967,6 +44941,74 @@ class ProjectsApi {
|
|
|
43967
44941
|
const response = await fetch(url, requestOptions);
|
|
43968
44942
|
return this.handleResponse(response, 'GenericApiResponse');
|
|
43969
44943
|
}
|
|
44944
|
+
/**
|
|
44945
|
+
* Removes an existing extension from a project.
|
|
44946
|
+
* @summary Remove extension from project
|
|
44947
|
+
* @param projectId Project ID
|
|
44948
|
+
* @param extensionId Extension ID
|
|
44949
|
+
*/
|
|
44950
|
+
async removeProjectActiveExtension(projectId, extensionId, options = { headers: {} }) {
|
|
44951
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/active/{extensionId}'
|
|
44952
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
44953
|
+
.replace('{' + 'extensionId' + '}', encodeURIComponent(String(extensionId)));
|
|
44954
|
+
let queryParameters = {};
|
|
44955
|
+
let localVarHeaderParams = {
|
|
44956
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
44957
|
+
'Content-Type': 'application/json',
|
|
44958
|
+
...this.defaultHeaders,
|
|
44959
|
+
};
|
|
44960
|
+
const produces = ['application/json'];
|
|
44961
|
+
// give precedence to 'application/json'
|
|
44962
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
44963
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
44964
|
+
}
|
|
44965
|
+
else {
|
|
44966
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
44967
|
+
}
|
|
44968
|
+
let localVarFormParams;
|
|
44969
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
44970
|
+
if (projectId === null || projectId === undefined) {
|
|
44971
|
+
throw new Error('Required parameter projectId was null or undefined when calling removeProjectActiveExtension.');
|
|
44972
|
+
}
|
|
44973
|
+
// verify required parameter 'extensionId' is not null or undefined
|
|
44974
|
+
if (extensionId === null || extensionId === undefined) {
|
|
44975
|
+
throw new Error('Required parameter extensionId was null or undefined when calling removeProjectActiveExtension.');
|
|
44976
|
+
}
|
|
44977
|
+
localVarHeaderParams = {
|
|
44978
|
+
...localVarHeaderParams,
|
|
44979
|
+
...options.headers,
|
|
44980
|
+
...this.opts.extraHeaders,
|
|
44981
|
+
};
|
|
44982
|
+
const queryString = Object.entries(queryParameters)
|
|
44983
|
+
.filter(([, value]) => value !== undefined)
|
|
44984
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
44985
|
+
.join('&');
|
|
44986
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
44987
|
+
let localVarRequestOptions = {
|
|
44988
|
+
method: 'DELETE',
|
|
44989
|
+
headers: { ...localVarHeaderParams },
|
|
44990
|
+
};
|
|
44991
|
+
let requestOptions = localVarRequestOptions;
|
|
44992
|
+
let url = localVarUrl;
|
|
44993
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
44994
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
44995
|
+
url = auth_ApiKeyAuthentication.url;
|
|
44996
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
44997
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
44998
|
+
url = auth_JWTAuthentication.url;
|
|
44999
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
45000
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
45001
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
45002
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
45003
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
45004
|
+
url = auth_OAuth2.url;
|
|
45005
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
45006
|
+
requestOptions = authDefault.requestOptions;
|
|
45007
|
+
url = authDefault.url;
|
|
45008
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
45009
|
+
const response = await fetch(url, requestOptions);
|
|
45010
|
+
return this.handleResponse(response, 'RemoveProjectActiveExtensionResponse');
|
|
45011
|
+
}
|
|
43970
45012
|
/**
|
|
43971
45013
|
* Revoke an API key. Note that if you revoke the development API key some services (such as automatic provisioning of devices through the serial daemon) will no longer work.
|
|
43972
45014
|
* @summary Revoke API key
|
|
@@ -57285,6 +58327,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
57285
58327
|
});
|
|
57286
58328
|
|
|
57287
58329
|
|
|
58330
|
+
define("library/sdk/model/addOrganizationExtensionBlockRequest", ["require", "exports"], function (require, exports) {
|
|
58331
|
+
"use strict";
|
|
58332
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58333
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58334
|
+
exports.AddOrganizationExtensionBlockRequestNavbarLocationEnumValues = void 0;
|
|
58335
|
+
exports.AddOrganizationExtensionBlockRequestNavbarLocationEnumValues = ['project', 'devices', 'data_acquisition', 'experiments', 'create_impulse', 'dsp_block', 'learn_block', 'live_classification', 'model_testing', 'deployment', 'impulse', 'versioning'];
|
|
58336
|
+
});
|
|
58337
|
+
|
|
58338
|
+
|
|
57288
58339
|
define("library/sdk/model/addOrganizationSecretRequest", ["require", "exports"], function (require, exports) {
|
|
57289
58340
|
"use strict";
|
|
57290
58341
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -57308,12 +58359,17 @@ exports.AddOrganizationTransformationBlockRequestOperatesOnEnumValues = ['file',
|
|
|
57308
58359
|
});
|
|
57309
58360
|
|
|
57310
58361
|
|
|
58362
|
+
define("library/sdk/model/addProjectActiveExtensionRequest", ["require", "exports"], function (require, exports) {
|
|
58363
|
+
"use strict";
|
|
58364
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58365
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58366
|
+
});
|
|
58367
|
+
|
|
58368
|
+
|
|
57311
58369
|
define("library/sdk/model/addProjectApiKeyRequest", ["require", "exports"], function (require, exports) {
|
|
57312
58370
|
"use strict";
|
|
57313
58371
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
57314
58372
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57315
|
-
exports.AddProjectApiKeyRequestRoleEnumValues = void 0;
|
|
57316
|
-
exports.AddProjectApiKeyRequestRoleEnumValues = ['admin', 'readonly', 'ingestiononly', 'ingestion_deployment'];
|
|
57317
58373
|
});
|
|
57318
58374
|
|
|
57319
58375
|
|
|
@@ -57787,6 +58843,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
57787
58843
|
});
|
|
57788
58844
|
|
|
57789
58845
|
|
|
58846
|
+
define("library/sdk/model/apiKeyExtension", ["require", "exports"], function (require, exports) {
|
|
58847
|
+
"use strict";
|
|
58848
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58849
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58850
|
+
});
|
|
58851
|
+
|
|
58852
|
+
|
|
57790
58853
|
define("library/sdk/model/applicationBudget", ["require", "exports"], function (require, exports) {
|
|
57791
58854
|
"use strict";
|
|
57792
58855
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -57948,6 +59011,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
57948
59011
|
});
|
|
57949
59012
|
|
|
57950
59013
|
|
|
59014
|
+
define("library/sdk/model/buildPublicDeploymentJobRequest", ["require", "exports"], function (require, exports) {
|
|
59015
|
+
"use strict";
|
|
59016
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59017
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59018
|
+
});
|
|
59019
|
+
|
|
59020
|
+
|
|
59021
|
+
define("library/sdk/model/buildPublicDeploymentJobResponse", ["require", "exports"], function (require, exports) {
|
|
59022
|
+
"use strict";
|
|
59023
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59024
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59025
|
+
});
|
|
59026
|
+
|
|
59027
|
+
|
|
57951
59028
|
define("library/sdk/model/calculateDataQualityMetricsRequest", ["require", "exports"], function (require, exports) {
|
|
57952
59029
|
"use strict";
|
|
57953
59030
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -58166,6 +59243,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
58166
59243
|
});
|
|
58167
59244
|
|
|
58168
59245
|
|
|
59246
|
+
define("library/sdk/model/createOrganizationBucketRequest", ["require", "exports"], function (require, exports) {
|
|
59247
|
+
"use strict";
|
|
59248
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59249
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59250
|
+
});
|
|
59251
|
+
|
|
59252
|
+
|
|
59253
|
+
define("library/sdk/model/createOrganizationBucketResponse", ["require", "exports"], function (require, exports) {
|
|
59254
|
+
"use strict";
|
|
59255
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59256
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59257
|
+
});
|
|
59258
|
+
|
|
59259
|
+
|
|
58169
59260
|
define("library/sdk/model/createOrganizationPortalRequest", ["require", "exports"], function (require, exports) {
|
|
58170
59261
|
"use strict";
|
|
58171
59262
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59201,6 +60292,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59201
60292
|
});
|
|
59202
60293
|
|
|
59203
60294
|
|
|
60295
|
+
define("library/sdk/model/extension", ["require", "exports"], function (require, exports) {
|
|
60296
|
+
"use strict";
|
|
60297
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60298
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60299
|
+
exports.ExtensionNavbarLocationEnumValues = void 0;
|
|
60300
|
+
exports.ExtensionNavbarLocationEnumValues = ['project', 'devices', 'data_acquisition', 'experiments', 'create_impulse', 'dsp_block', 'learn_block', 'live_classification', 'model_testing', 'deployment', 'impulse', 'versioning'];
|
|
60301
|
+
});
|
|
60302
|
+
|
|
60303
|
+
|
|
60304
|
+
define("library/sdk/model/extensionVisibility", ["require", "exports"], function (require, exports) {
|
|
60305
|
+
"use strict";
|
|
60306
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60307
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60308
|
+
exports.ExtensionVisibilityValues = void 0;
|
|
60309
|
+
exports.ExtensionVisibilityValues = ['project', 'organization', 'everyone'];
|
|
60310
|
+
});
|
|
60311
|
+
|
|
60312
|
+
|
|
59204
60313
|
define("library/sdk/model/feature", ["require", "exports"], function (require, exports) {
|
|
59205
60314
|
"use strict";
|
|
59206
60315
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59336,6 +60445,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59336
60445
|
});
|
|
59337
60446
|
|
|
59338
60447
|
|
|
60448
|
+
define("library/sdk/model/getCurrentApiKeyInfoResponse", ["require", "exports"], function (require, exports) {
|
|
60449
|
+
"use strict";
|
|
60450
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60451
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60452
|
+
});
|
|
60453
|
+
|
|
60454
|
+
|
|
59339
60455
|
define("library/sdk/model/getDataExplorerFeaturesResponse", ["require", "exports"], function (require, exports) {
|
|
59340
60456
|
"use strict";
|
|
59341
60457
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59641,6 +60757,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59641
60757
|
});
|
|
59642
60758
|
|
|
59643
60759
|
|
|
60760
|
+
define("library/sdk/model/getOrganizationExtensionBlockResponse", ["require", "exports"], function (require, exports) {
|
|
60761
|
+
"use strict";
|
|
60762
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60763
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60764
|
+
});
|
|
60765
|
+
|
|
60766
|
+
|
|
59644
60767
|
define("library/sdk/model/getOrganizationPipelinesResponse", ["require", "exports"], function (require, exports) {
|
|
59645
60768
|
"use strict";
|
|
59646
60769
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59748,6 +60871,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59748
60871
|
});
|
|
59749
60872
|
|
|
59750
60873
|
|
|
60874
|
+
define("library/sdk/model/getProjectActiveExtensionsResponse", ["require", "exports"], function (require, exports) {
|
|
60875
|
+
"use strict";
|
|
60876
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60877
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60878
|
+
});
|
|
60879
|
+
|
|
60880
|
+
|
|
60881
|
+
define("library/sdk/model/getPublicDeploymentStatusResponse", ["require", "exports"], function (require, exports) {
|
|
60882
|
+
"use strict";
|
|
60883
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60884
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60885
|
+
});
|
|
60886
|
+
|
|
60887
|
+
|
|
59751
60888
|
define("library/sdk/model/getPublicMetricsResponse", ["require", "exports"], function (require, exports) {
|
|
59752
60889
|
"use strict";
|
|
59753
60890
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60088,6 +61225,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60088
61225
|
});
|
|
60089
61226
|
|
|
60090
61227
|
|
|
61228
|
+
define("library/sdk/model/jobLogItem", ["require", "exports"], function (require, exports) {
|
|
61229
|
+
"use strict";
|
|
61230
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
61231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61232
|
+
exports.JobLogItemLogLevelEnumValues = void 0;
|
|
61233
|
+
exports.JobLogItemLogLevelEnumValues = ['error', 'warn', 'info', 'debug'];
|
|
61234
|
+
});
|
|
61235
|
+
|
|
61236
|
+
|
|
60091
61237
|
define("library/sdk/model/jobLogsResponse", ["require", "exports"], function (require, exports) {
|
|
60092
61238
|
"use strict";
|
|
60093
61239
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60459,6 +61605,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60459
61605
|
});
|
|
60460
61606
|
|
|
60461
61607
|
|
|
61608
|
+
define("library/sdk/model/listOrganizationExtensionBlocksResponse", ["require", "exports"], function (require, exports) {
|
|
61609
|
+
"use strict";
|
|
61610
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
61611
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61612
|
+
});
|
|
61613
|
+
|
|
61614
|
+
|
|
60462
61615
|
define("library/sdk/model/listOrganizationFilesResponse", ["require", "exports"], function (require, exports) {
|
|
60463
61616
|
"use strict";
|
|
60464
61617
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60529,6 +61682,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60529
61682
|
});
|
|
60530
61683
|
|
|
60531
61684
|
|
|
61685
|
+
define("library/sdk/model/listProjectAvailableExtensionsResponse", ["require", "exports"], function (require, exports) {
|
|
61686
|
+
"use strict";
|
|
61687
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
61688
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61689
|
+
});
|
|
61690
|
+
|
|
61691
|
+
|
|
60532
61692
|
define("library/sdk/model/listProjects", ["require", "exports"], function (require, exports) {
|
|
60533
61693
|
"use strict";
|
|
60534
61694
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60634,15 +61794,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60634
61794
|
});
|
|
60635
61795
|
|
|
60636
61796
|
|
|
60637
|
-
define("library/sdk/model/logStdoutResponseAllOfStdout", ["require", "exports"], function (require, exports) {
|
|
60638
|
-
"use strict";
|
|
60639
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
60640
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60641
|
-
exports.LogStdoutResponseAllOfStdoutLogLevelEnumValues = void 0;
|
|
60642
|
-
exports.LogStdoutResponseAllOfStdoutLogLevelEnumValues = ['error', 'warn', 'info', 'debug'];
|
|
60643
|
-
});
|
|
60644
|
-
|
|
60645
|
-
|
|
60646
61797
|
define("library/sdk/model/logWebsitePageviewRequest", ["require", "exports"], function (require, exports) {
|
|
60647
61798
|
"use strict";
|
|
60648
61799
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60790,9 +61941,11 @@ __exportStar(require("./addOrganizationDataCampaignRequest"), exports);
|
|
|
60790
61941
|
__exportStar(require("./addOrganizationDataCampaignResponse"), exports);
|
|
60791
61942
|
__exportStar(require("./addOrganizationDeployBlockRequest"), exports);
|
|
60792
61943
|
__exportStar(require("./addOrganizationDspBlockRequest"), exports);
|
|
61944
|
+
__exportStar(require("./addOrganizationExtensionBlockRequest"), exports);
|
|
60793
61945
|
__exportStar(require("./addOrganizationSecretRequest"), exports);
|
|
60794
61946
|
__exportStar(require("./addOrganizationTransferLearningBlockRequest"), exports);
|
|
60795
61947
|
__exportStar(require("./addOrganizationTransformationBlockRequest"), exports);
|
|
61948
|
+
__exportStar(require("./addProjectActiveExtensionRequest"), exports);
|
|
60796
61949
|
__exportStar(require("./addProjectApiKeyRequest"), exports);
|
|
60797
61950
|
__exportStar(require("./additionalMetric"), exports);
|
|
60798
61951
|
__exportStar(require("./adminAddDisallowedEmailDomainRequest"), exports);
|
|
@@ -60860,6 +62013,7 @@ __exportStar(require("./anomalyModelMetadataClusters"), exports);
|
|
|
60860
62013
|
__exportStar(require("./anomalyModelMetadataResponse"), exports);
|
|
60861
62014
|
__exportStar(require("./anomalyResult"), exports);
|
|
60862
62015
|
__exportStar(require("./anomalyTrainedFeaturesResponse"), exports);
|
|
62016
|
+
__exportStar(require("./apiKeyExtension"), exports);
|
|
60863
62017
|
__exportStar(require("./applicationBudget"), exports);
|
|
60864
62018
|
__exportStar(require("./augmentationPolicyImageEnum"), exports);
|
|
60865
62019
|
__exportStar(require("./augmentationPolicySpectrogram"), exports);
|
|
@@ -60881,6 +62035,8 @@ __exportStar(require("./boundingBoxWithScore"), exports);
|
|
|
60881
62035
|
__exportStar(require("./buildOnDeviceModelRequest"), exports);
|
|
60882
62036
|
__exportStar(require("./buildOnDeviceModelResponse"), exports);
|
|
60883
62037
|
__exportStar(require("./buildOrganizationOnDeviceModelRequest"), exports);
|
|
62038
|
+
__exportStar(require("./buildPublicDeploymentJobRequest"), exports);
|
|
62039
|
+
__exportStar(require("./buildPublicDeploymentJobResponse"), exports);
|
|
60884
62040
|
__exportStar(require("./calculateDataQualityMetricsRequest"), exports);
|
|
60885
62041
|
__exportStar(require("./canaryResponse"), exports);
|
|
60886
62042
|
__exportStar(require("./changePasswordRequest"), exports);
|
|
@@ -60911,6 +62067,8 @@ __exportStar(require("./createImpulseResponse"), exports);
|
|
|
60911
62067
|
__exportStar(require("./createMultiProjectDeploymentRequest"), exports);
|
|
60912
62068
|
__exportStar(require("./createNewEmptyImpulseRequest"), exports);
|
|
60913
62069
|
__exportStar(require("./createNewEmptyImpulseResponse"), exports);
|
|
62070
|
+
__exportStar(require("./createOrganizationBucketRequest"), exports);
|
|
62071
|
+
__exportStar(require("./createOrganizationBucketResponse"), exports);
|
|
60914
62072
|
__exportStar(require("./createOrganizationPortalRequest"), exports);
|
|
60915
62073
|
__exportStar(require("./createOrganizationPortalResponse"), exports);
|
|
60916
62074
|
__exportStar(require("./createOrganizationRequest"), exports);
|
|
@@ -61049,6 +62207,8 @@ __exportStar(require("./exportInferenceHistoryDataRequest"), exports);
|
|
|
61049
62207
|
__exportStar(require("./exportKerasBlockDataRequest"), exports);
|
|
61050
62208
|
__exportStar(require("./exportOriginalDataRequest"), exports);
|
|
61051
62209
|
__exportStar(require("./exportWavDataRequest"), exports);
|
|
62210
|
+
__exportStar(require("./extension"), exports);
|
|
62211
|
+
__exportStar(require("./extensionVisibility"), exports);
|
|
61052
62212
|
__exportStar(require("./feature"), exports);
|
|
61053
62213
|
__exportStar(require("./finalizeCustomBlockUploadRequest"), exports);
|
|
61054
62214
|
__exportStar(require("./findSegmentSampleRequest"), exports);
|
|
@@ -61067,6 +62227,7 @@ __exportStar(require("./getAllTransferLearningModelsResponse"), exports);
|
|
|
61067
62227
|
__exportStar(require("./getAllWhitelabelsResponse"), exports);
|
|
61068
62228
|
__exportStar(require("./getAutoLabelerResponse"), exports);
|
|
61069
62229
|
__exportStar(require("./getCsvWizardUploadedFileInfo"), exports);
|
|
62230
|
+
__exportStar(require("./getCurrentApiKeyInfoResponse"), exports);
|
|
61070
62231
|
__exportStar(require("./getDataExplorerFeaturesResponse"), exports);
|
|
61071
62232
|
__exportStar(require("./getDataExplorerSettingsResponse"), exports);
|
|
61072
62233
|
__exportStar(require("./getDatasetRatioResponse"), exports);
|
|
@@ -61109,6 +62270,7 @@ __exportStar(require("./getOrganizationDataItemTransformJobsResponse"), exports)
|
|
|
61109
62270
|
__exportStar(require("./getOrganizationDatasetResponse"), exports);
|
|
61110
62271
|
__exportStar(require("./getOrganizationDeployBlockResponse"), exports);
|
|
61111
62272
|
__exportStar(require("./getOrganizationDspBlockResponse"), exports);
|
|
62273
|
+
__exportStar(require("./getOrganizationExtensionBlockResponse"), exports);
|
|
61112
62274
|
__exportStar(require("./getOrganizationPipelinesResponse"), exports);
|
|
61113
62275
|
__exportStar(require("./getOrganizationPortalResponse"), exports);
|
|
61114
62276
|
__exportStar(require("./getOrganizationTransferLearningBlockResponse"), exports);
|
|
@@ -61124,6 +62286,8 @@ __exportStar(require("./getPostProcessingResultsForSampleResponse"), exports);
|
|
|
61124
62286
|
__exportStar(require("./getPostProcessingResultsForSampleResponseAllOfResults"), exports);
|
|
61125
62287
|
__exportStar(require("./getPostProcessingResultsResponse"), exports);
|
|
61126
62288
|
__exportStar(require("./getPretrainedModelResponse"), exports);
|
|
62289
|
+
__exportStar(require("./getProjectActiveExtensionsResponse"), exports);
|
|
62290
|
+
__exportStar(require("./getPublicDeploymentStatusResponse"), exports);
|
|
61127
62291
|
__exportStar(require("./getPublicMetricsResponse"), exports);
|
|
61128
62292
|
__exportStar(require("./getPublicOrganizationTransformationBlockResponse"), exports);
|
|
61129
62293
|
__exportStar(require("./getRawDataMetadataCooccurrenceResponse"), exports);
|
|
@@ -61170,6 +62334,7 @@ __exportStar(require("./job"), exports);
|
|
|
61170
62334
|
__exportStar(require("./jobDetails"), exports);
|
|
61171
62335
|
__exportStar(require("./jobDetailsResponse"), exports);
|
|
61172
62336
|
__exportStar(require("./jobFailureDetails"), exports);
|
|
62337
|
+
__exportStar(require("./jobLogItem"), exports);
|
|
61173
62338
|
__exportStar(require("./jobLogsResponse"), exports);
|
|
61174
62339
|
__exportStar(require("./jobMetricsResponse"), exports);
|
|
61175
62340
|
__exportStar(require("./jobParentTypeEnum"), exports);
|
|
@@ -61219,6 +62384,7 @@ __exportStar(require("./listOrganizationBucketsUserResponse"), exports);
|
|
|
61219
62384
|
__exportStar(require("./listOrganizationDataResponse"), exports);
|
|
61220
62385
|
__exportStar(require("./listOrganizationDeployBlocksResponse"), exports);
|
|
61221
62386
|
__exportStar(require("./listOrganizationDspBlocksResponse"), exports);
|
|
62387
|
+
__exportStar(require("./listOrganizationExtensionBlocksResponse"), exports);
|
|
61222
62388
|
__exportStar(require("./listOrganizationFilesResponse"), exports);
|
|
61223
62389
|
__exportStar(require("./listOrganizationPipelinesResponse"), exports);
|
|
61224
62390
|
__exportStar(require("./listOrganizationPortalsResponse"), exports);
|
|
@@ -61229,6 +62395,7 @@ __exportStar(require("./listOrganizationUsageReportsResponse"), exports);
|
|
|
61229
62395
|
__exportStar(require("./listOrganizationsResponse"), exports);
|
|
61230
62396
|
__exportStar(require("./listPortalFilesInFolderRequest"), exports);
|
|
61231
62397
|
__exportStar(require("./listPortalFilesInFolderResponse"), exports);
|
|
62398
|
+
__exportStar(require("./listProjectAvailableExtensionsResponse"), exports);
|
|
61232
62399
|
__exportStar(require("./listProjects"), exports);
|
|
61233
62400
|
__exportStar(require("./listProjectsResponse"), exports);
|
|
61234
62401
|
__exportStar(require("./listPublicOrganizationTransformationBlocksResponse"), exports);
|
|
@@ -61244,7 +62411,6 @@ __exportStar(require("./listVersionsResponse"), exports);
|
|
|
61244
62411
|
__exportStar(require("./listWebhookDestinationsResponse"), exports);
|
|
61245
62412
|
__exportStar(require("./logAnalyticsEventRequest"), exports);
|
|
61246
62413
|
__exportStar(require("./logStdoutResponse"), exports);
|
|
61247
|
-
__exportStar(require("./logStdoutResponseAllOfStdout"), exports);
|
|
61248
62414
|
__exportStar(require("./logWebsitePageviewRequest"), exports);
|
|
61249
62415
|
__exportStar(require("./loginResponse"), exports);
|
|
61250
62416
|
__exportStar(require("./memorySpec"), exports);
|
|
@@ -61363,6 +62529,7 @@ __exportStar(require("./profileTfLiteResponse"), exports);
|
|
|
61363
62529
|
__exportStar(require("./project"), exports);
|
|
61364
62530
|
__exportStar(require("./projectApiKey"), exports);
|
|
61365
62531
|
__exportStar(require("./projectApiKeyLastUsed"), exports);
|
|
62532
|
+
__exportStar(require("./projectApiKeyRole"), exports);
|
|
61366
62533
|
__exportStar(require("./projectCollaborator"), exports);
|
|
61367
62534
|
__exportStar(require("./projectDataAxesSummaryResponse"), exports);
|
|
61368
62535
|
__exportStar(require("./projectDataIntervalResponse"), exports);
|
|
@@ -61384,6 +62551,7 @@ __exportStar(require("./projectDeploymentTarget"), exports);
|
|
|
61384
62551
|
__exportStar(require("./projectDeploymentTargetsResponse"), exports);
|
|
61385
62552
|
__exportStar(require("./projectDismissNotificationRequest"), exports);
|
|
61386
62553
|
__exportStar(require("./projectDownloadsResponse"), exports);
|
|
62554
|
+
__exportStar(require("./projectExtension"), exports);
|
|
61387
62555
|
__exportStar(require("./projectHmacKey"), exports);
|
|
61388
62556
|
__exportStar(require("./projectInfoResponse"), exports);
|
|
61389
62557
|
__exportStar(require("./projectInfoResponseAllOfExperiments"), exports);
|
|
@@ -61415,6 +62583,7 @@ __exportStar(require("./rawSamplePayload"), exports);
|
|
|
61415
62583
|
__exportStar(require("./rebalanceDatasetResponse"), exports);
|
|
61416
62584
|
__exportStar(require("./removeCollaboratorRequest"), exports);
|
|
61417
62585
|
__exportStar(require("./removeMemberRequest"), exports);
|
|
62586
|
+
__exportStar(require("./removeProjectActiveExtensionResponse"), exports);
|
|
61418
62587
|
__exportStar(require("./renameDeviceRequest"), exports);
|
|
61419
62588
|
__exportStar(require("./renamePortalFileRequest"), exports);
|
|
61420
62589
|
__exportStar(require("./renameSampleRequest"), exports);
|
|
@@ -61527,6 +62696,7 @@ __exportStar(require("./updateOrganizationDataItemRequest"), exports);
|
|
|
61527
62696
|
__exportStar(require("./updateOrganizationDatasetRequest"), exports);
|
|
61528
62697
|
__exportStar(require("./updateOrganizationDeployBlockRequest"), exports);
|
|
61529
62698
|
__exportStar(require("./updateOrganizationDspBlockRequest"), exports);
|
|
62699
|
+
__exportStar(require("./updateOrganizationExtensionBlockRequest"), exports);
|
|
61530
62700
|
__exportStar(require("./updateOrganizationPortalResponse"), exports);
|
|
61531
62701
|
__exportStar(require("./updateOrganizationRequest"), exports);
|
|
61532
62702
|
__exportStar(require("./updateOrganizationTransferLearningBlockRequest"), exports);
|
|
@@ -61658,6 +62828,9 @@ class OAuth {
|
|
|
61658
62828
|
}
|
|
61659
62829
|
applyToRequest(requestOptions, url) {
|
|
61660
62830
|
const headers = { ...(requestOptions.headers || {}) };
|
|
62831
|
+
if (!this.accessToken) {
|
|
62832
|
+
return { requestOptions: { ...requestOptions, headers }, url };
|
|
62833
|
+
}
|
|
61661
62834
|
headers['Authorization'] = 'Bearer ' + this.accessToken;
|
|
61662
62835
|
return { requestOptions: { ...requestOptions, headers }, url };
|
|
61663
62836
|
}
|
|
@@ -62593,6 +63766,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62593
63766
|
});
|
|
62594
63767
|
|
|
62595
63768
|
|
|
63769
|
+
define("library/sdk/model/projectApiKeyRole", ["require", "exports"], function (require, exports) {
|
|
63770
|
+
"use strict";
|
|
63771
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63772
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63773
|
+
exports.ProjectApiKeyRoleValues = void 0;
|
|
63774
|
+
exports.ProjectApiKeyRoleValues = ['admin', 'readonly', 'ingestiononly', 'ingestion_deployment'];
|
|
63775
|
+
});
|
|
63776
|
+
|
|
63777
|
+
|
|
62596
63778
|
define("library/sdk/model/projectCollaborator", ["require", "exports"], function (require, exports) {
|
|
62597
63779
|
"use strict";
|
|
62598
63780
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -62760,6 +63942,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62760
63942
|
});
|
|
62761
63943
|
|
|
62762
63944
|
|
|
63945
|
+
define("library/sdk/model/projectExtension", ["require", "exports"], function (require, exports) {
|
|
63946
|
+
"use strict";
|
|
63947
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63948
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63949
|
+
exports.ProjectExtensionNavbarLocationEnumValues = void 0;
|
|
63950
|
+
exports.ProjectExtensionNavbarLocationEnumValues = ['project', 'devices', 'data_acquisition', 'experiments', 'create_impulse', 'dsp_block', 'learn_block', 'live_classification', 'model_testing', 'deployment', 'impulse', 'versioning'];
|
|
63951
|
+
});
|
|
63952
|
+
|
|
63953
|
+
|
|
62763
63954
|
define("library/sdk/model/projectHmacKey", ["require", "exports"], function (require, exports) {
|
|
62764
63955
|
"use strict";
|
|
62765
63956
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -62996,6 +64187,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62996
64187
|
});
|
|
62997
64188
|
|
|
62998
64189
|
|
|
64190
|
+
define("library/sdk/model/removeProjectActiveExtensionResponse", ["require", "exports"], function (require, exports) {
|
|
64191
|
+
"use strict";
|
|
64192
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
64193
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64194
|
+
});
|
|
64195
|
+
|
|
64196
|
+
|
|
62999
64197
|
define("library/sdk/model/renameDeviceRequest", ["require", "exports"], function (require, exports) {
|
|
63000
64198
|
"use strict";
|
|
63001
64199
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -63461,7 +64659,7 @@ define("library/sdk/model/storageProvider", ["require", "exports"], function (re
|
|
|
63461
64659
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
63462
64660
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63463
64661
|
exports.StorageProviderValues = void 0;
|
|
63464
|
-
exports.StorageProviderValues = ['s3', 'google', 'azure', 'other'];
|
|
64662
|
+
exports.StorageProviderValues = ['s3', 'google', 'azure', 'other', 'edgeimpulse'];
|
|
63465
64663
|
});
|
|
63466
64664
|
|
|
63467
64665
|
|
|
@@ -63821,6 +65019,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
63821
65019
|
});
|
|
63822
65020
|
|
|
63823
65021
|
|
|
65022
|
+
define("library/sdk/model/updateOrganizationExtensionBlockRequest", ["require", "exports"], function (require, exports) {
|
|
65023
|
+
"use strict";
|
|
65024
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
65025
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65026
|
+
exports.UpdateOrganizationExtensionBlockRequestNavbarLocationEnumValues = void 0;
|
|
65027
|
+
exports.UpdateOrganizationExtensionBlockRequestNavbarLocationEnumValues = ['project', 'devices', 'data_acquisition', 'experiments', 'create_impulse', 'dsp_block', 'learn_block', 'live_classification', 'model_testing', 'deployment', 'impulse', 'versioning'];
|
|
65028
|
+
});
|
|
65029
|
+
|
|
65030
|
+
|
|
63824
65031
|
define("library/sdk/model/updateOrganizationPortalResponse", ["require", "exports"], function (require, exports) {
|
|
63825
65032
|
"use strict";
|
|
63826
65033
|
// Generated by studio/openapi/generate-models/convert.ts
|