edge-impulse-api 1.93.31 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser/edge-impulse-api.d.ts +36 -262
- package/build/browser/edge-impulse-api.js +411 -1024
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/api.d.ts +1 -2
- package/build/library/api.js +0 -5
- package/build/library/api.js.map +1 -1
- package/build/library/sdk/api/adminApi.d.ts +13 -0
- package/build/library/sdk/api/adminApi.js +70 -0
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/apis.d.ts +1 -3
- package/build/library/sdk/api/apis.js +1 -3
- package/build/library/sdk/api/apis.js.map +1 -1
- package/build/library/sdk/model/deploymentTarget.d.ts +1 -0
- package/build/library/sdk/model/deploymentTarget.js.map +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.d.ts +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.js +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.js.map +1 -1
- package/build/library/sdk/model/models.d.ts +1 -9
- package/build/library/sdk/model/models.js +1 -9
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/permission.d.ts +1 -1
- package/build/library/sdk/model/permission.js +1 -1
- package/build/library/sdk/model/permission.js.map +1 -1
- package/build/library/sdk/model/projectDeploymentTarget.d.ts +1 -0
- package/build/library/sdk/model/projectDeploymentTarget.js.map +1 -1
- package/build/library/sdk/model/updateWhitelabelInternalRequest.d.ts +5 -0
- package/build/library/sdk/model/vlmConfiguration.d.ts +2 -0
- package/build/library/sdk/model/vlmConfigurationBase.d.ts +2 -0
- package/build/library/sdk/model/vlmConfigurationBaseImageResize.d.ts +6 -0
- package/build/library/sdk/model/{authorizeThirdPartyRequest.js → vlmConfigurationBaseImageResize.js} +1 -1
- package/build/library/sdk/model/vlmConfigurationBaseImageResize.js.map +1 -0
- package/build/library/sdk/model/whitelabel.d.ts +4 -0
- package/package.json +1 -1
- package/build/library/sdk/api/thirdPartyAuthApi.d.ts +0 -148
- package/build/library/sdk/api/thirdPartyAuthApi.js +0 -607
- package/build/library/sdk/api/thirdPartyAuthApi.js.map +0 -1
- package/build/library/sdk/model/authorizeThirdPartyRequest.d.ts +0 -6
- package/build/library/sdk/model/authorizeThirdPartyRequest.js.map +0 -1
- package/build/library/sdk/model/createThirdPartyAuthRequest.d.ts +0 -8
- package/build/library/sdk/model/createThirdPartyAuthRequest.js +0 -4
- package/build/library/sdk/model/createThirdPartyAuthRequest.js.map +0 -1
- package/build/library/sdk/model/createThirdPartyAuthResponse.d.ts +0 -13
- package/build/library/sdk/model/createThirdPartyAuthResponse.js +0 -4
- package/build/library/sdk/model/createThirdPartyAuthResponse.js.map +0 -1
- package/build/library/sdk/model/createUserThirdPartyRequest.d.ts +0 -24
- package/build/library/sdk/model/createUserThirdPartyRequest.js +0 -4
- package/build/library/sdk/model/createUserThirdPartyRequest.js.map +0 -1
- package/build/library/sdk/model/createUserThirdPartyResponse.d.ts +0 -14
- package/build/library/sdk/model/createUserThirdPartyResponse.js +0 -6
- package/build/library/sdk/model/createUserThirdPartyResponse.js.map +0 -1
- package/build/library/sdk/model/getAllThirdPartyAuthResponse.d.ts +0 -12
- package/build/library/sdk/model/getAllThirdPartyAuthResponse.js +0 -4
- package/build/library/sdk/model/getAllThirdPartyAuthResponse.js.map +0 -1
- package/build/library/sdk/model/getThirdPartyAuthResponse.d.ts +0 -12
- package/build/library/sdk/model/getThirdPartyAuthResponse.js +0 -4
- package/build/library/sdk/model/getThirdPartyAuthResponse.js.map +0 -1
- package/build/library/sdk/model/thirdPartyAuth.d.ts +0 -8
- package/build/library/sdk/model/thirdPartyAuth.js +0 -4
- package/build/library/sdk/model/thirdPartyAuth.js.map +0 -1
- package/build/library/sdk/model/updateThirdPartyAuthRequest.d.ts +0 -6
- package/build/library/sdk/model/updateThirdPartyAuthRequest.js +0 -4
- package/build/library/sdk/model/updateThirdPartyAuthRequest.js.map +0 -1
|
@@ -519,7 +519,6 @@ class EdgeImpulseApi {
|
|
|
519
519
|
this.projects = new api_1.ProjectsApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
520
520
|
this.rawData = new api_1.RawDataApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
521
521
|
this.themes = new api_1.ThemesApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
522
|
-
this.thirdPartyAuth = new api_1.ThirdPartyAuthApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
523
522
|
this.uploadPortal = new api_1.UploadPortalApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
524
523
|
this.user = new api_1.UserApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
525
524
|
this.vlm = new api_1.VlmApi(this._opts.endpoint + '/v1', { extraHeaders: this._opts.extraHeaders });
|
|
@@ -574,7 +573,6 @@ class EdgeImpulseApi {
|
|
|
574
573
|
this.projects.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
575
574
|
this.rawData.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
576
575
|
this.themes.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
577
|
-
this.thirdPartyAuth.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
578
576
|
this.uploadPortal.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
579
577
|
this.user.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
580
578
|
this.vlm.setApiKey(apiKeyAuthId, opts.apiKey);
|
|
@@ -605,7 +603,6 @@ class EdgeImpulseApi {
|
|
|
605
603
|
this.projects.setApiKey(jwtTokenAuthId, undefined);
|
|
606
604
|
this.rawData.setApiKey(jwtTokenAuthId, undefined);
|
|
607
605
|
this.themes.setApiKey(jwtTokenAuthId, undefined);
|
|
608
|
-
this.thirdPartyAuth.setApiKey(jwtTokenAuthId, undefined);
|
|
609
606
|
this.uploadPortal.setApiKey(jwtTokenAuthId, undefined);
|
|
610
607
|
this.user.setApiKey(jwtTokenAuthId, undefined);
|
|
611
608
|
this.vlm.setApiKey(jwtTokenAuthId, undefined);
|
|
@@ -639,7 +636,6 @@ class EdgeImpulseApi {
|
|
|
639
636
|
this.projects.setApiKey(jwtTokenAuthId, jwtToken);
|
|
640
637
|
this.rawData.setApiKey(jwtTokenAuthId, jwtToken);
|
|
641
638
|
this.themes.setApiKey(jwtTokenAuthId, jwtToken);
|
|
642
|
-
this.thirdPartyAuth.setApiKey(jwtTokenAuthId, jwtToken);
|
|
643
639
|
this.uploadPortal.setApiKey(jwtTokenAuthId, jwtToken);
|
|
644
640
|
this.user.setApiKey(jwtTokenAuthId, jwtToken);
|
|
645
641
|
this.vlm.setApiKey(jwtTokenAuthId, jwtToken);
|
|
@@ -670,7 +666,6 @@ class EdgeImpulseApi {
|
|
|
670
666
|
this.projects.setApiKey(apiKeyAuthId, undefined);
|
|
671
667
|
this.rawData.setApiKey(apiKeyAuthId, undefined);
|
|
672
668
|
this.themes.setApiKey(apiKeyAuthId, undefined);
|
|
673
|
-
this.thirdPartyAuth.setApiKey(apiKeyAuthId, undefined);
|
|
674
669
|
this.uploadPortal.setApiKey(apiKeyAuthId, undefined);
|
|
675
670
|
this.user.setApiKey(apiKeyAuthId, undefined);
|
|
676
671
|
this.vlm.setApiKey(apiKeyAuthId, undefined);
|
|
@@ -7471,6 +7466,76 @@ class AdminApi {
|
|
|
7471
7466
|
}
|
|
7472
7467
|
return resp;
|
|
7473
7468
|
}
|
|
7469
|
+
/**
|
|
7470
|
+
* Admin-only API to retry processing of a failed window item in the dataset versioning queue.
|
|
7471
|
+
* @summary Retry dataset versioning queue item
|
|
7472
|
+
* @param projectActivityStagingWindowId
|
|
7473
|
+
*/
|
|
7474
|
+
async adminRetryDatasetVersioningQueue(projectActivityStagingWindowId, options = { headers: {} }) {
|
|
7475
|
+
const localVarPath = this.basePath + '/api/admin/infra/datasetVersioning/queue/retry/{projectActivityStagingWindowId}'
|
|
7476
|
+
.replace('{' + 'projectActivityStagingWindowId' + '}', encodeURIComponent(String(projectActivityStagingWindowId)));
|
|
7477
|
+
let queryParameters = {};
|
|
7478
|
+
let localVarHeaderParams = {
|
|
7479
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
7480
|
+
'Content-Type': 'application/json',
|
|
7481
|
+
...this.defaultHeaders,
|
|
7482
|
+
};
|
|
7483
|
+
const produces = ['application/json'];
|
|
7484
|
+
// give precedence to 'application/json'
|
|
7485
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
7486
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
7487
|
+
}
|
|
7488
|
+
else {
|
|
7489
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
7490
|
+
}
|
|
7491
|
+
let localVarFormParams;
|
|
7492
|
+
// verify required parameter 'projectActivityStagingWindowId' is not null or undefined
|
|
7493
|
+
if (projectActivityStagingWindowId === null || projectActivityStagingWindowId === undefined) {
|
|
7494
|
+
throw new Error('Required parameter projectActivityStagingWindowId was null or undefined when calling adminRetryDatasetVersioningQueue.');
|
|
7495
|
+
}
|
|
7496
|
+
localVarHeaderParams = {
|
|
7497
|
+
...localVarHeaderParams,
|
|
7498
|
+
...options.headers,
|
|
7499
|
+
...this.opts.extraHeaders,
|
|
7500
|
+
};
|
|
7501
|
+
const queryString = Object.entries(queryParameters)
|
|
7502
|
+
.filter(([, value]) => value !== undefined)
|
|
7503
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
7504
|
+
.join('&');
|
|
7505
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
7506
|
+
let localVarRequestOptions = {
|
|
7507
|
+
method: 'POST',
|
|
7508
|
+
headers: { ...localVarHeaderParams },
|
|
7509
|
+
};
|
|
7510
|
+
let requestOptions = localVarRequestOptions;
|
|
7511
|
+
let url = localVarUrl;
|
|
7512
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
7513
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
7514
|
+
url = auth_ApiKeyAuthentication.url;
|
|
7515
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
7516
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
7517
|
+
url = auth_JWTAuthentication.url;
|
|
7518
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
7519
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
7520
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
7521
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
7522
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
7523
|
+
url = auth_OAuth2.url;
|
|
7524
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
7525
|
+
requestOptions = authDefault.requestOptions;
|
|
7526
|
+
url = authDefault.url;
|
|
7527
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
7528
|
+
const response = await fetch(url, requestOptions);
|
|
7529
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
7530
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
7531
|
+
const headerCb = options.responseHeadersCallback;
|
|
7532
|
+
// on next tick, so we have time to handle the response
|
|
7533
|
+
setTimeout(() => {
|
|
7534
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
7535
|
+
}, 0);
|
|
7536
|
+
}
|
|
7537
|
+
return resp;
|
|
7538
|
+
}
|
|
7474
7539
|
/**
|
|
7475
7540
|
* Rotate the client secret for an existing OAuth client. This operation invalidates the previous secret and generates a new one, which must be used for future OAuth authentication flows. Requires admin:oauth:write permission.
|
|
7476
7541
|
* @summary Rotate OAuth client secret
|
|
@@ -8479,8 +8544,6 @@ __exportStar(require("./testApi"), exports);
|
|
|
8479
8544
|
const testApi_1 = require("./testApi");
|
|
8480
8545
|
__exportStar(require("./themesApi"), exports);
|
|
8481
8546
|
const themesApi_1 = require("./themesApi");
|
|
8482
|
-
__exportStar(require("./thirdPartyAuthApi"), exports);
|
|
8483
|
-
const thirdPartyAuthApi_1 = require("./thirdPartyAuthApi");
|
|
8484
8547
|
__exportStar(require("./uploadPortalApi"), exports);
|
|
8485
8548
|
const uploadPortalApi_1 = require("./uploadPortalApi");
|
|
8486
8549
|
__exportStar(require("./userApi"), exports);
|
|
@@ -8499,7 +8562,7 @@ class HttpError extends Error {
|
|
|
8499
8562
|
}
|
|
8500
8563
|
}
|
|
8501
8564
|
exports.HttpError = HttpError;
|
|
8502
|
-
exports.APIS = [adminApi_1.AdminApi, authApi_1.AuthApi, cDNApi_1.CDNApi, canaryApi_1.CanaryApi, classifyApi_1.ClassifyApi, dSPApi_1.DSPApi, datasetVersionsApi_1.DatasetVersionsApi, deploymentApi_1.DeploymentApi, devicesApi_1.DevicesApi, emailVerificationApi_1.EmailVerificationApi, exportApi_1.ExportApi, featureFlagsApi_1.FeatureFlagsApi, healthApi_1.HealthApi, impulseApi_1.ImpulseApi, integrationsApi_1.IntegrationsApi, jobsApi_1.JobsApi, learnApi_1.LearnApi, loginApi_1.LoginApi, metricsApi_1.MetricsApi, monitoringApi_1.MonitoringApi, optimizationApi_1.OptimizationApi, organizationBlocksApi_1.OrganizationBlocksApi, organizationCreateProjectApi_1.OrganizationCreateProjectApi, organizationDataApi_1.OrganizationDataApi, organizationDataCampaignsApi_1.OrganizationDataCampaignsApi, organizationJobsApi_1.OrganizationJobsApi, organizationPipelinesApi_1.OrganizationPipelinesApi, organizationPortalsApi_1.OrganizationPortalsApi, organizationsApi_1.OrganizationsApi, performanceCalibrationApi_1.PerformanceCalibrationApi, postProcessingApi_1.PostProcessingApi, projectsApi_1.ProjectsApi, rawDataApi_1.RawDataApi, testApi_1.TestApi, themesApi_1.ThemesApi,
|
|
8565
|
+
exports.APIS = [adminApi_1.AdminApi, authApi_1.AuthApi, cDNApi_1.CDNApi, canaryApi_1.CanaryApi, classifyApi_1.ClassifyApi, dSPApi_1.DSPApi, datasetVersionsApi_1.DatasetVersionsApi, deploymentApi_1.DeploymentApi, devicesApi_1.DevicesApi, emailVerificationApi_1.EmailVerificationApi, exportApi_1.ExportApi, featureFlagsApi_1.FeatureFlagsApi, healthApi_1.HealthApi, impulseApi_1.ImpulseApi, integrationsApi_1.IntegrationsApi, jobsApi_1.JobsApi, learnApi_1.LearnApi, loginApi_1.LoginApi, metricsApi_1.MetricsApi, monitoringApi_1.MonitoringApi, optimizationApi_1.OptimizationApi, organizationBlocksApi_1.OrganizationBlocksApi, organizationCreateProjectApi_1.OrganizationCreateProjectApi, organizationDataApi_1.OrganizationDataApi, organizationDataCampaignsApi_1.OrganizationDataCampaignsApi, organizationJobsApi_1.OrganizationJobsApi, organizationPipelinesApi_1.OrganizationPipelinesApi, organizationPortalsApi_1.OrganizationPortalsApi, organizationsApi_1.OrganizationsApi, performanceCalibrationApi_1.PerformanceCalibrationApi, postProcessingApi_1.PostProcessingApi, projectsApi_1.ProjectsApi, rawDataApi_1.RawDataApi, testApi_1.TestApi, themesApi_1.ThemesApi, uploadPortalApi_1.UploadPortalApi, userApi_1.UserApi, vlmApi_1.VlmApi, whitelabelsApi_1.WhitelabelsApi];
|
|
8503
8566
|
});
|
|
8504
8567
|
|
|
8505
8568
|
|
|
@@ -58848,7 +58911,7 @@ exports.ThemesApi = ThemesApi;
|
|
|
58848
58911
|
});
|
|
58849
58912
|
|
|
58850
58913
|
|
|
58851
|
-
define("library/sdk/api/
|
|
58914
|
+
define("library/sdk/api/uploadPortalApi", ["require", "exports"], function (require, exports) {
|
|
58852
58915
|
"use strict";
|
|
58853
58916
|
/**
|
|
58854
58917
|
* Edge Impulse API
|
|
@@ -58862,7 +58925,7 @@ define("library/sdk/api/thirdPartyAuthApi", ["require", "exports"], function (re
|
|
|
58862
58925
|
* Do not edit the class manually.
|
|
58863
58926
|
*/
|
|
58864
58927
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58865
|
-
exports.
|
|
58928
|
+
exports.UploadPortalApi = exports.UploadPortalApiApiKeys = void 0;
|
|
58866
58929
|
let fetch;
|
|
58867
58930
|
let FormData;
|
|
58868
58931
|
if (globalThis.fetch && globalThis.FormData) {
|
|
@@ -58880,13 +58943,13 @@ let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
|
58880
58943
|
// ===============================================
|
|
58881
58944
|
// This file is autogenerated - Please do not edit
|
|
58882
58945
|
// ===============================================
|
|
58883
|
-
var
|
|
58884
|
-
(function (
|
|
58885
|
-
|
|
58886
|
-
|
|
58887
|
-
|
|
58888
|
-
})(
|
|
58889
|
-
class
|
|
58946
|
+
var UploadPortalApiApiKeys;
|
|
58947
|
+
(function (UploadPortalApiApiKeys) {
|
|
58948
|
+
UploadPortalApiApiKeys[UploadPortalApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
|
|
58949
|
+
UploadPortalApiApiKeys[UploadPortalApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
|
|
58950
|
+
UploadPortalApiApiKeys[UploadPortalApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
|
|
58951
|
+
})(UploadPortalApiApiKeys = exports.UploadPortalApiApiKeys || (exports.UploadPortalApiApiKeys = {}));
|
|
58952
|
+
class UploadPortalApi {
|
|
58890
58953
|
async handleResponse(response, returnType) {
|
|
58891
58954
|
let body = await (0, models_1.parseResponse)(response);
|
|
58892
58955
|
if (!response.ok) {
|
|
@@ -58944,51 +59007,48 @@ class ThirdPartyAuthApi {
|
|
|
58944
59007
|
this.authentications.default = auth;
|
|
58945
59008
|
}
|
|
58946
59009
|
setApiKey(key, value) {
|
|
58947
|
-
this.authentications[
|
|
59010
|
+
this.authentications[UploadPortalApiApiKeys[key]].apiKey = value;
|
|
58948
59011
|
}
|
|
58949
59012
|
set accessToken(token) {
|
|
58950
59013
|
this.authentications.OAuth2.accessToken = token;
|
|
58951
59014
|
}
|
|
58952
59015
|
/**
|
|
58953
|
-
*
|
|
58954
|
-
* @summary
|
|
58955
|
-
* @param
|
|
58956
|
-
* @param
|
|
58957
|
-
* @param nextUrl The URL to redirect to after authorization is completed.
|
|
59016
|
+
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
59017
|
+
* @summary Create pre-signed S3 upload link
|
|
59018
|
+
* @param portalId Portal ID
|
|
59019
|
+
* @param createSignedUploadLinkRequest
|
|
58958
59020
|
*/
|
|
58959
|
-
async
|
|
58960
|
-
const localVarPath = this.basePath + '/api/{
|
|
58961
|
-
.replace('{' + '
|
|
58962
|
-
.replace('{' + 'authId' + '}', encodeURIComponent(String(authId)));
|
|
59021
|
+
async createSignedUploadLink(portalId, createSignedUploadLinkRequest, options = { headers: {} }) {
|
|
59022
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/upload-link'
|
|
59023
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
58963
59024
|
let queryParameters = {};
|
|
58964
59025
|
let localVarHeaderParams = {
|
|
58965
59026
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
58966
59027
|
'Content-Type': 'application/json',
|
|
58967
59028
|
...this.defaultHeaders,
|
|
58968
59029
|
};
|
|
58969
|
-
|
|
58970
|
-
//
|
|
58971
|
-
if (
|
|
58972
|
-
|
|
59030
|
+
const produces = ['application/json'];
|
|
59031
|
+
// give precedence to 'application/json'
|
|
59032
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
59033
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
59034
|
+
}
|
|
59035
|
+
else {
|
|
59036
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
58973
59037
|
}
|
|
58974
|
-
|
|
58975
|
-
|
|
58976
|
-
|
|
59038
|
+
let localVarFormParams;
|
|
59039
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59040
|
+
if (portalId === null || portalId === undefined) {
|
|
59041
|
+
throw new Error('Required parameter portalId was null or undefined when calling createSignedUploadLink.');
|
|
58977
59042
|
}
|
|
58978
|
-
// verify required parameter '
|
|
58979
|
-
if (
|
|
58980
|
-
throw new Error('Required parameter
|
|
59043
|
+
// verify required parameter 'createSignedUploadLinkRequest' is not null or undefined
|
|
59044
|
+
if (createSignedUploadLinkRequest === null || createSignedUploadLinkRequest === undefined) {
|
|
59045
|
+
throw new Error('Required parameter createSignedUploadLinkRequest was null or undefined when calling createSignedUploadLink.');
|
|
58981
59046
|
}
|
|
58982
59047
|
localVarHeaderParams = {
|
|
58983
59048
|
...localVarHeaderParams,
|
|
58984
59049
|
...options.headers,
|
|
58985
59050
|
...this.opts.extraHeaders,
|
|
58986
59051
|
};
|
|
58987
|
-
if (params.nextUrl !== undefined) {
|
|
58988
|
-
if (params.nextUrl !== null && params.nextUrl !== undefined) {
|
|
58989
|
-
localVarFormParams = (0, models_1.appendFormField)(localVarFormParams, 'nextUrl', (0, models_1.serializeFormDataValue)(params.nextUrl, 'string'));
|
|
58990
|
-
}
|
|
58991
|
-
}
|
|
58992
59052
|
const queryString = Object.entries(queryParameters)
|
|
58993
59053
|
.filter(([, value]) => value !== undefined)
|
|
58994
59054
|
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
@@ -58998,6 +59058,7 @@ class ThirdPartyAuthApi {
|
|
|
58998
59058
|
method: 'POST',
|
|
58999
59059
|
headers: { ...localVarHeaderParams },
|
|
59000
59060
|
};
|
|
59061
|
+
localVarRequestOptions.body = JSON.stringify(createSignedUploadLinkRequest);
|
|
59001
59062
|
let requestOptions = localVarRequestOptions;
|
|
59002
59063
|
let url = localVarUrl;
|
|
59003
59064
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59017,7 +59078,7 @@ class ThirdPartyAuthApi {
|
|
|
59017
59078
|
url = authDefault.url;
|
|
59018
59079
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59019
59080
|
const response = await fetch(url, requestOptions);
|
|
59020
|
-
const resp = this.handleResponse(response,
|
|
59081
|
+
const resp = this.handleResponse(response, 'CreateSignedUploadLinkResponse');
|
|
59021
59082
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59022
59083
|
const headerCb = options.responseHeadersCallback;
|
|
59023
59084
|
// on next tick, so we have time to handle the response
|
|
@@ -59028,12 +59089,14 @@ class ThirdPartyAuthApi {
|
|
|
59028
59089
|
return resp;
|
|
59029
59090
|
}
|
|
59030
59091
|
/**
|
|
59031
|
-
*
|
|
59032
|
-
* @summary
|
|
59033
|
-
* @param
|
|
59092
|
+
* Delete a file from an upload portal (requires JWT auth).
|
|
59093
|
+
* @summary Delete file from portal
|
|
59094
|
+
* @param portalId Portal ID
|
|
59095
|
+
* @param deletePortalFileRequest
|
|
59034
59096
|
*/
|
|
59035
|
-
async
|
|
59036
|
-
const localVarPath = this.basePath + '/api/
|
|
59097
|
+
async deletePortalFile(portalId, deletePortalFileRequest, options = { headers: {} }) {
|
|
59098
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/files/delete'
|
|
59099
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59037
59100
|
let queryParameters = {};
|
|
59038
59101
|
let localVarHeaderParams = {
|
|
59039
59102
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59049,9 +59112,13 @@ class ThirdPartyAuthApi {
|
|
|
59049
59112
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59050
59113
|
}
|
|
59051
59114
|
let localVarFormParams;
|
|
59052
|
-
// verify required parameter '
|
|
59053
|
-
if (
|
|
59054
|
-
throw new Error('Required parameter
|
|
59115
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59116
|
+
if (portalId === null || portalId === undefined) {
|
|
59117
|
+
throw new Error('Required parameter portalId was null or undefined when calling deletePortalFile.');
|
|
59118
|
+
}
|
|
59119
|
+
// verify required parameter 'deletePortalFileRequest' is not null or undefined
|
|
59120
|
+
if (deletePortalFileRequest === null || deletePortalFileRequest === undefined) {
|
|
59121
|
+
throw new Error('Required parameter deletePortalFileRequest was null or undefined when calling deletePortalFile.');
|
|
59055
59122
|
}
|
|
59056
59123
|
localVarHeaderParams = {
|
|
59057
59124
|
...localVarHeaderParams,
|
|
@@ -59067,7 +59134,7 @@ class ThirdPartyAuthApi {
|
|
|
59067
59134
|
method: 'POST',
|
|
59068
59135
|
headers: { ...localVarHeaderParams },
|
|
59069
59136
|
};
|
|
59070
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59137
|
+
localVarRequestOptions.body = JSON.stringify(deletePortalFileRequest);
|
|
59071
59138
|
let requestOptions = localVarRequestOptions;
|
|
59072
59139
|
let url = localVarUrl;
|
|
59073
59140
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59087,7 +59154,7 @@ class ThirdPartyAuthApi {
|
|
|
59087
59154
|
url = authDefault.url;
|
|
59088
59155
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59089
59156
|
const response = await fetch(url, requestOptions);
|
|
59090
|
-
const resp = this.handleResponse(response, '
|
|
59157
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59091
59158
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59092
59159
|
const headerCb = options.responseHeadersCallback;
|
|
59093
59160
|
// on next tick, so we have time to handle the response
|
|
@@ -59098,14 +59165,14 @@ class ThirdPartyAuthApi {
|
|
|
59098
59165
|
return resp;
|
|
59099
59166
|
}
|
|
59100
59167
|
/**
|
|
59101
|
-
*
|
|
59102
|
-
* @summary
|
|
59103
|
-
* @param
|
|
59104
|
-
* @param
|
|
59168
|
+
* Download a file from an upload portal (requires JWT auth). Will return a signed URL to the bucket.
|
|
59169
|
+
* @summary Download file from portal
|
|
59170
|
+
* @param portalId Portal ID
|
|
59171
|
+
* @param downloadPortalFileRequest
|
|
59105
59172
|
*/
|
|
59106
|
-
async
|
|
59107
|
-
const localVarPath = this.basePath + '/api/
|
|
59108
|
-
.replace('{' + '
|
|
59173
|
+
async downloadPortalFile(portalId, downloadPortalFileRequest, options = { headers: {} }) {
|
|
59174
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/files/download'
|
|
59175
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59109
59176
|
let queryParameters = {};
|
|
59110
59177
|
let localVarHeaderParams = {
|
|
59111
59178
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59121,13 +59188,13 @@ class ThirdPartyAuthApi {
|
|
|
59121
59188
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59122
59189
|
}
|
|
59123
59190
|
let localVarFormParams;
|
|
59124
|
-
// verify required parameter '
|
|
59125
|
-
if (
|
|
59126
|
-
throw new Error('Required parameter
|
|
59191
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59192
|
+
if (portalId === null || portalId === undefined) {
|
|
59193
|
+
throw new Error('Required parameter portalId was null or undefined when calling downloadPortalFile.');
|
|
59127
59194
|
}
|
|
59128
|
-
// verify required parameter '
|
|
59129
|
-
if (
|
|
59130
|
-
throw new Error('Required parameter
|
|
59195
|
+
// verify required parameter 'downloadPortalFileRequest' is not null or undefined
|
|
59196
|
+
if (downloadPortalFileRequest === null || downloadPortalFileRequest === undefined) {
|
|
59197
|
+
throw new Error('Required parameter downloadPortalFileRequest was null or undefined when calling downloadPortalFile.');
|
|
59131
59198
|
}
|
|
59132
59199
|
localVarHeaderParams = {
|
|
59133
59200
|
...localVarHeaderParams,
|
|
@@ -59143,7 +59210,7 @@ class ThirdPartyAuthApi {
|
|
|
59143
59210
|
method: 'POST',
|
|
59144
59211
|
headers: { ...localVarHeaderParams },
|
|
59145
59212
|
};
|
|
59146
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59213
|
+
localVarRequestOptions.body = JSON.stringify(downloadPortalFileRequest);
|
|
59147
59214
|
let requestOptions = localVarRequestOptions;
|
|
59148
59215
|
let url = localVarUrl;
|
|
59149
59216
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59163,7 +59230,7 @@ class ThirdPartyAuthApi {
|
|
|
59163
59230
|
url = authDefault.url;
|
|
59164
59231
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59165
59232
|
const response = await fetch(url, requestOptions);
|
|
59166
|
-
const resp = this.handleResponse(response, '
|
|
59233
|
+
const resp = this.handleResponse(response, 'DownloadPortalFileResponse');
|
|
59167
59234
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59168
59235
|
const headerCb = options.responseHeadersCallback;
|
|
59169
59236
|
// on next tick, so we have time to handle the response
|
|
@@ -59174,13 +59241,13 @@ class ThirdPartyAuthApi {
|
|
|
59174
59241
|
return resp;
|
|
59175
59242
|
}
|
|
59176
59243
|
/**
|
|
59177
|
-
*
|
|
59178
|
-
* @summary
|
|
59179
|
-
* @param
|
|
59244
|
+
* Get information about a portal
|
|
59245
|
+
* @summary Portal info
|
|
59246
|
+
* @param portalId Portal ID
|
|
59180
59247
|
*/
|
|
59181
|
-
async
|
|
59182
|
-
const localVarPath = this.basePath + '/api/
|
|
59183
|
-
.replace('{' + '
|
|
59248
|
+
async getPortalInfo(portalId, options = { headers: {} }) {
|
|
59249
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}'
|
|
59250
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59184
59251
|
let queryParameters = {};
|
|
59185
59252
|
let localVarHeaderParams = {
|
|
59186
59253
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59196,9 +59263,9 @@ class ThirdPartyAuthApi {
|
|
|
59196
59263
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59197
59264
|
}
|
|
59198
59265
|
let localVarFormParams;
|
|
59199
|
-
// verify required parameter '
|
|
59200
|
-
if (
|
|
59201
|
-
throw new Error('Required parameter
|
|
59266
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59267
|
+
if (portalId === null || portalId === undefined) {
|
|
59268
|
+
throw new Error('Required parameter portalId was null or undefined when calling getPortalInfo.');
|
|
59202
59269
|
}
|
|
59203
59270
|
localVarHeaderParams = {
|
|
59204
59271
|
...localVarHeaderParams,
|
|
@@ -59211,7 +59278,7 @@ class ThirdPartyAuthApi {
|
|
|
59211
59278
|
.join('&');
|
|
59212
59279
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59213
59280
|
let localVarRequestOptions = {
|
|
59214
|
-
method: '
|
|
59281
|
+
method: 'GET',
|
|
59215
59282
|
headers: { ...localVarHeaderParams },
|
|
59216
59283
|
};
|
|
59217
59284
|
let requestOptions = localVarRequestOptions;
|
|
@@ -59233,7 +59300,7 @@ class ThirdPartyAuthApi {
|
|
|
59233
59300
|
url = authDefault.url;
|
|
59234
59301
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59235
59302
|
const response = await fetch(url, requestOptions);
|
|
59236
|
-
const resp = this.handleResponse(response, '
|
|
59303
|
+
const resp = this.handleResponse(response, 'PortalInfoResponse');
|
|
59237
59304
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59238
59305
|
const headerCb = options.responseHeadersCallback;
|
|
59239
59306
|
// on next tick, so we have time to handle the response
|
|
@@ -59244,11 +59311,14 @@ class ThirdPartyAuthApi {
|
|
|
59244
59311
|
return resp;
|
|
59245
59312
|
}
|
|
59246
59313
|
/**
|
|
59247
|
-
*
|
|
59248
|
-
* @summary
|
|
59314
|
+
* List all files and directories in specified prefix.
|
|
59315
|
+
* @summary List files in portal
|
|
59316
|
+
* @param portalId Portal ID
|
|
59317
|
+
* @param listPortalFilesInFolderRequest
|
|
59249
59318
|
*/
|
|
59250
|
-
async
|
|
59251
|
-
const localVarPath = this.basePath + '/api/
|
|
59319
|
+
async listPortalFilesInFolder(portalId, listPortalFilesInFolderRequest, options = { headers: {} }) {
|
|
59320
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/files'
|
|
59321
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59252
59322
|
let queryParameters = {};
|
|
59253
59323
|
let localVarHeaderParams = {
|
|
59254
59324
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59264,6 +59334,14 @@ class ThirdPartyAuthApi {
|
|
|
59264
59334
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59265
59335
|
}
|
|
59266
59336
|
let localVarFormParams;
|
|
59337
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59338
|
+
if (portalId === null || portalId === undefined) {
|
|
59339
|
+
throw new Error('Required parameter portalId was null or undefined when calling listPortalFilesInFolder.');
|
|
59340
|
+
}
|
|
59341
|
+
// verify required parameter 'listPortalFilesInFolderRequest' is not null or undefined
|
|
59342
|
+
if (listPortalFilesInFolderRequest === null || listPortalFilesInFolderRequest === undefined) {
|
|
59343
|
+
throw new Error('Required parameter listPortalFilesInFolderRequest was null or undefined when calling listPortalFilesInFolder.');
|
|
59344
|
+
}
|
|
59267
59345
|
localVarHeaderParams = {
|
|
59268
59346
|
...localVarHeaderParams,
|
|
59269
59347
|
...options.headers,
|
|
@@ -59275,9 +59353,10 @@ class ThirdPartyAuthApi {
|
|
|
59275
59353
|
.join('&');
|
|
59276
59354
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59277
59355
|
let localVarRequestOptions = {
|
|
59278
|
-
method: '
|
|
59356
|
+
method: 'POST',
|
|
59279
59357
|
headers: { ...localVarHeaderParams },
|
|
59280
59358
|
};
|
|
59359
|
+
localVarRequestOptions.body = JSON.stringify(listPortalFilesInFolderRequest);
|
|
59281
59360
|
let requestOptions = localVarRequestOptions;
|
|
59282
59361
|
let url = localVarUrl;
|
|
59283
59362
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59297,7 +59376,7 @@ class ThirdPartyAuthApi {
|
|
|
59297
59376
|
url = authDefault.url;
|
|
59298
59377
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59299
59378
|
const response = await fetch(url, requestOptions);
|
|
59300
|
-
const resp = this.handleResponse(response, '
|
|
59379
|
+
const resp = this.handleResponse(response, 'ListPortalFilesInFolderResponse');
|
|
59301
59380
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59302
59381
|
const headerCb = options.responseHeadersCallback;
|
|
59303
59382
|
// on next tick, so we have time to handle the response
|
|
@@ -59308,13 +59387,14 @@ class ThirdPartyAuthApi {
|
|
|
59308
59387
|
return resp;
|
|
59309
59388
|
}
|
|
59310
59389
|
/**
|
|
59311
|
-
*
|
|
59312
|
-
* @summary
|
|
59313
|
-
* @param
|
|
59390
|
+
* Rename a file on an upload portal (requires JWT auth).
|
|
59391
|
+
* @summary Rename file from portal
|
|
59392
|
+
* @param portalId Portal ID
|
|
59393
|
+
* @param renamePortalFileRequest
|
|
59314
59394
|
*/
|
|
59315
|
-
async
|
|
59316
|
-
const localVarPath = this.basePath + '/api/
|
|
59317
|
-
.replace('{' + '
|
|
59395
|
+
async renamePortalFile(portalId, renamePortalFileRequest, options = { headers: {} }) {
|
|
59396
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/files/rename'
|
|
59397
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59318
59398
|
let queryParameters = {};
|
|
59319
59399
|
let localVarHeaderParams = {
|
|
59320
59400
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59330,9 +59410,92 @@ class ThirdPartyAuthApi {
|
|
|
59330
59410
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59331
59411
|
}
|
|
59332
59412
|
let localVarFormParams;
|
|
59333
|
-
// verify required parameter '
|
|
59334
|
-
if (
|
|
59335
|
-
throw new Error('Required parameter
|
|
59413
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59414
|
+
if (portalId === null || portalId === undefined) {
|
|
59415
|
+
throw new Error('Required parameter portalId was null or undefined when calling renamePortalFile.');
|
|
59416
|
+
}
|
|
59417
|
+
// verify required parameter 'renamePortalFileRequest' is not null or undefined
|
|
59418
|
+
if (renamePortalFileRequest === null || renamePortalFileRequest === undefined) {
|
|
59419
|
+
throw new Error('Required parameter renamePortalFileRequest was null or undefined when calling renamePortalFile.');
|
|
59420
|
+
}
|
|
59421
|
+
localVarHeaderParams = {
|
|
59422
|
+
...localVarHeaderParams,
|
|
59423
|
+
...options.headers,
|
|
59424
|
+
...this.opts.extraHeaders,
|
|
59425
|
+
};
|
|
59426
|
+
const queryString = Object.entries(queryParameters)
|
|
59427
|
+
.filter(([, value]) => value !== undefined)
|
|
59428
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
59429
|
+
.join('&');
|
|
59430
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59431
|
+
let localVarRequestOptions = {
|
|
59432
|
+
method: 'POST',
|
|
59433
|
+
headers: { ...localVarHeaderParams },
|
|
59434
|
+
};
|
|
59435
|
+
localVarRequestOptions.body = JSON.stringify(renamePortalFileRequest);
|
|
59436
|
+
let requestOptions = localVarRequestOptions;
|
|
59437
|
+
let url = localVarUrl;
|
|
59438
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
59439
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
59440
|
+
url = auth_ApiKeyAuthentication.url;
|
|
59441
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
59442
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
59443
|
+
url = auth_JWTAuthentication.url;
|
|
59444
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
59445
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
59446
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
59447
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
59448
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
59449
|
+
url = auth_OAuth2.url;
|
|
59450
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
59451
|
+
requestOptions = authDefault.requestOptions;
|
|
59452
|
+
url = authDefault.url;
|
|
59453
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59454
|
+
const response = await fetch(url, requestOptions);
|
|
59455
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59456
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59457
|
+
const headerCb = options.responseHeadersCallback;
|
|
59458
|
+
// on next tick, so we have time to handle the response
|
|
59459
|
+
setTimeout(() => {
|
|
59460
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
59461
|
+
}, 0);
|
|
59462
|
+
}
|
|
59463
|
+
return resp;
|
|
59464
|
+
}
|
|
59465
|
+
/**
|
|
59466
|
+
* View a file that\'s located in an upload portal (requires JWT auth). File might be converted (e.g. Parquet) or truncated (e.g. CSV).
|
|
59467
|
+
* @summary View file from portal
|
|
59468
|
+
* @param portalId Portal ID
|
|
59469
|
+
* @param path Path to file in portal
|
|
59470
|
+
*/
|
|
59471
|
+
async viewPortalFile(portalId, queryParams, options = { headers: {} }) {
|
|
59472
|
+
const localVarPath = this.basePath + '/api/portals/{portalId}/files/view'
|
|
59473
|
+
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59474
|
+
let queryParameters = {};
|
|
59475
|
+
let localVarHeaderParams = {
|
|
59476
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
59477
|
+
'Content-Type': 'application/json',
|
|
59478
|
+
...this.defaultHeaders,
|
|
59479
|
+
};
|
|
59480
|
+
const produces = ['application/octet-stream'];
|
|
59481
|
+
// give precedence to 'application/json'
|
|
59482
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
59483
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
59484
|
+
}
|
|
59485
|
+
else {
|
|
59486
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
59487
|
+
}
|
|
59488
|
+
let localVarFormParams;
|
|
59489
|
+
// verify required parameter 'portalId' is not null or undefined
|
|
59490
|
+
if (portalId === null || portalId === undefined) {
|
|
59491
|
+
throw new Error('Required parameter portalId was null or undefined when calling viewPortalFile.');
|
|
59492
|
+
}
|
|
59493
|
+
// verify required parameter 'path' is not null or undefined
|
|
59494
|
+
if (queryParams.path === null || queryParams.path === undefined) {
|
|
59495
|
+
throw new Error('Required parameter queryParams.path was null or undefined when calling viewPortalFile.');
|
|
59496
|
+
}
|
|
59497
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.path) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.path) !== null) {
|
|
59498
|
+
queryParameters['path'] = queryParams.path;
|
|
59336
59499
|
}
|
|
59337
59500
|
localVarHeaderParams = {
|
|
59338
59501
|
...localVarHeaderParams,
|
|
@@ -59367,83 +59530,7 @@ class ThirdPartyAuthApi {
|
|
|
59367
59530
|
url = authDefault.url;
|
|
59368
59531
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59369
59532
|
const response = await fetch(url, requestOptions);
|
|
59370
|
-
const resp = this.handleResponse(response, '
|
|
59371
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59372
|
-
const headerCb = options.responseHeadersCallback;
|
|
59373
|
-
// on next tick, so we have time to handle the response
|
|
59374
|
-
setTimeout(() => {
|
|
59375
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
59376
|
-
}, 0);
|
|
59377
|
-
}
|
|
59378
|
-
return resp;
|
|
59379
|
-
}
|
|
59380
|
-
/**
|
|
59381
|
-
* Update a third party authentication partner
|
|
59382
|
-
* @summary Update third party auth
|
|
59383
|
-
* @param authId Auth ID
|
|
59384
|
-
* @param updateThirdPartyAuthRequest
|
|
59385
|
-
*/
|
|
59386
|
-
async updateThirdPartyAuth(authId, updateThirdPartyAuthRequest, options = { headers: {} }) {
|
|
59387
|
-
const localVarPath = this.basePath + '/api/third-party-auth/{authId}'
|
|
59388
|
-
.replace('{' + 'authId' + '}', encodeURIComponent(String(authId)));
|
|
59389
|
-
let queryParameters = {};
|
|
59390
|
-
let localVarHeaderParams = {
|
|
59391
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
59392
|
-
'Content-Type': 'application/json',
|
|
59393
|
-
...this.defaultHeaders,
|
|
59394
|
-
};
|
|
59395
|
-
const produces = ['application/json'];
|
|
59396
|
-
// give precedence to 'application/json'
|
|
59397
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
59398
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
59399
|
-
}
|
|
59400
|
-
else {
|
|
59401
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
59402
|
-
}
|
|
59403
|
-
let localVarFormParams;
|
|
59404
|
-
// verify required parameter 'authId' is not null or undefined
|
|
59405
|
-
if (authId === null || authId === undefined) {
|
|
59406
|
-
throw new Error('Required parameter authId was null or undefined when calling updateThirdPartyAuth.');
|
|
59407
|
-
}
|
|
59408
|
-
// verify required parameter 'updateThirdPartyAuthRequest' is not null or undefined
|
|
59409
|
-
if (updateThirdPartyAuthRequest === null || updateThirdPartyAuthRequest === undefined) {
|
|
59410
|
-
throw new Error('Required parameter updateThirdPartyAuthRequest was null or undefined when calling updateThirdPartyAuth.');
|
|
59411
|
-
}
|
|
59412
|
-
localVarHeaderParams = {
|
|
59413
|
-
...localVarHeaderParams,
|
|
59414
|
-
...options.headers,
|
|
59415
|
-
...this.opts.extraHeaders,
|
|
59416
|
-
};
|
|
59417
|
-
const queryString = Object.entries(queryParameters)
|
|
59418
|
-
.filter(([, value]) => value !== undefined)
|
|
59419
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
59420
|
-
.join('&');
|
|
59421
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59422
|
-
let localVarRequestOptions = {
|
|
59423
|
-
method: 'POST',
|
|
59424
|
-
headers: { ...localVarHeaderParams },
|
|
59425
|
-
};
|
|
59426
|
-
localVarRequestOptions.body = JSON.stringify(updateThirdPartyAuthRequest);
|
|
59427
|
-
let requestOptions = localVarRequestOptions;
|
|
59428
|
-
let url = localVarUrl;
|
|
59429
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
59430
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
59431
|
-
url = auth_ApiKeyAuthentication.url;
|
|
59432
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
59433
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
59434
|
-
url = auth_JWTAuthentication.url;
|
|
59435
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
59436
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
59437
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
59438
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
59439
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
59440
|
-
url = auth_OAuth2.url;
|
|
59441
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
59442
|
-
requestOptions = authDefault.requestOptions;
|
|
59443
|
-
url = authDefault.url;
|
|
59444
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59445
|
-
const response = await fetch(url, requestOptions);
|
|
59446
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59533
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
59447
59534
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59448
59535
|
const headerCb = options.responseHeadersCallback;
|
|
59449
59536
|
// on next tick, so we have time to handle the response
|
|
@@ -59454,11 +59541,11 @@ class ThirdPartyAuthApi {
|
|
|
59454
59541
|
return resp;
|
|
59455
59542
|
}
|
|
59456
59543
|
}
|
|
59457
|
-
exports.
|
|
59544
|
+
exports.UploadPortalApi = UploadPortalApi;
|
|
59458
59545
|
});
|
|
59459
59546
|
|
|
59460
59547
|
|
|
59461
|
-
define("library/sdk/api/
|
|
59548
|
+
define("library/sdk/api/userApi", ["require", "exports"], function (require, exports) {
|
|
59462
59549
|
"use strict";
|
|
59463
59550
|
/**
|
|
59464
59551
|
* Edge Impulse API
|
|
@@ -59472,7 +59559,7 @@ define("library/sdk/api/uploadPortalApi", ["require", "exports"], function (requ
|
|
|
59472
59559
|
* Do not edit the class manually.
|
|
59473
59560
|
*/
|
|
59474
59561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59475
|
-
exports.
|
|
59562
|
+
exports.UserApi = exports.UserApiApiKeys = void 0;
|
|
59476
59563
|
let fetch;
|
|
59477
59564
|
let FormData;
|
|
59478
59565
|
if (globalThis.fetch && globalThis.FormData) {
|
|
@@ -59490,13 +59577,13 @@ let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
|
59490
59577
|
// ===============================================
|
|
59491
59578
|
// This file is autogenerated - Please do not edit
|
|
59492
59579
|
// ===============================================
|
|
59493
|
-
var
|
|
59494
|
-
(function (
|
|
59495
|
-
|
|
59496
|
-
|
|
59497
|
-
|
|
59498
|
-
})(
|
|
59499
|
-
class
|
|
59580
|
+
var UserApiApiKeys;
|
|
59581
|
+
(function (UserApiApiKeys) {
|
|
59582
|
+
UserApiApiKeys[UserApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
|
|
59583
|
+
UserApiApiKeys[UserApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
|
|
59584
|
+
UserApiApiKeys[UserApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
|
|
59585
|
+
})(UserApiApiKeys = exports.UserApiApiKeys || (exports.UserApiApiKeys = {}));
|
|
59586
|
+
class UserApi {
|
|
59500
59587
|
async handleResponse(response, returnType) {
|
|
59501
59588
|
let body = await (0, models_1.parseResponse)(response);
|
|
59502
59589
|
if (!response.ok) {
|
|
@@ -59554,20 +59641,18 @@ class UploadPortalApi {
|
|
|
59554
59641
|
this.authentications.default = auth;
|
|
59555
59642
|
}
|
|
59556
59643
|
setApiKey(key, value) {
|
|
59557
|
-
this.authentications[
|
|
59644
|
+
this.authentications[UserApiApiKeys[key]].apiKey = value;
|
|
59558
59645
|
}
|
|
59559
59646
|
set accessToken(token) {
|
|
59560
59647
|
this.authentications.OAuth2.accessToken = token;
|
|
59561
59648
|
}
|
|
59562
59649
|
/**
|
|
59563
|
-
*
|
|
59564
|
-
* @summary
|
|
59565
|
-
* @param
|
|
59566
|
-
* @param createSignedUploadLinkRequest
|
|
59650
|
+
* To access some models or tooling, you might need to first accept an End-User License Agreement. The full list of available EULAs are listed via `GetUserResponse`.
|
|
59651
|
+
* @summary Accept End-User License Agreement
|
|
59652
|
+
* @param acceptEulaRequest
|
|
59567
59653
|
*/
|
|
59568
|
-
async
|
|
59569
|
-
const localVarPath = this.basePath + '/api/
|
|
59570
|
-
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59654
|
+
async acceptEula(acceptEulaRequest, options = { headers: {} }) {
|
|
59655
|
+
const localVarPath = this.basePath + '/api/user/accept-eula';
|
|
59571
59656
|
let queryParameters = {};
|
|
59572
59657
|
let localVarHeaderParams = {
|
|
59573
59658
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59583,13 +59668,9 @@ class UploadPortalApi {
|
|
|
59583
59668
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59584
59669
|
}
|
|
59585
59670
|
let localVarFormParams;
|
|
59586
|
-
// verify required parameter '
|
|
59587
|
-
if (
|
|
59588
|
-
throw new Error('Required parameter
|
|
59589
|
-
}
|
|
59590
|
-
// verify required parameter 'createSignedUploadLinkRequest' is not null or undefined
|
|
59591
|
-
if (createSignedUploadLinkRequest === null || createSignedUploadLinkRequest === undefined) {
|
|
59592
|
-
throw new Error('Required parameter createSignedUploadLinkRequest was null or undefined when calling createSignedUploadLink.');
|
|
59671
|
+
// verify required parameter 'acceptEulaRequest' is not null or undefined
|
|
59672
|
+
if (acceptEulaRequest === null || acceptEulaRequest === undefined) {
|
|
59673
|
+
throw new Error('Required parameter acceptEulaRequest was null or undefined when calling acceptEula.');
|
|
59593
59674
|
}
|
|
59594
59675
|
localVarHeaderParams = {
|
|
59595
59676
|
...localVarHeaderParams,
|
|
@@ -59605,7 +59686,7 @@ class UploadPortalApi {
|
|
|
59605
59686
|
method: 'POST',
|
|
59606
59687
|
headers: { ...localVarHeaderParams },
|
|
59607
59688
|
};
|
|
59608
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59689
|
+
localVarRequestOptions.body = JSON.stringify(acceptEulaRequest);
|
|
59609
59690
|
let requestOptions = localVarRequestOptions;
|
|
59610
59691
|
let url = localVarUrl;
|
|
59611
59692
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59625,7 +59706,7 @@ class UploadPortalApi {
|
|
|
59625
59706
|
url = authDefault.url;
|
|
59626
59707
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59627
59708
|
const response = await fetch(url, requestOptions);
|
|
59628
|
-
const resp = this.handleResponse(response, '
|
|
59709
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59629
59710
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59630
59711
|
const headerCb = options.responseHeadersCallback;
|
|
59631
59712
|
// on next tick, so we have time to handle the response
|
|
@@ -59636,14 +59717,11 @@ class UploadPortalApi {
|
|
|
59636
59717
|
return resp;
|
|
59637
59718
|
}
|
|
59638
59719
|
/**
|
|
59639
|
-
*
|
|
59640
|
-
* @summary
|
|
59641
|
-
* @param portalId Portal ID
|
|
59642
|
-
* @param deletePortalFileRequest
|
|
59720
|
+
* Accept Terms of Service.
|
|
59721
|
+
* @summary Accept Terms of Service
|
|
59643
59722
|
*/
|
|
59644
|
-
async
|
|
59645
|
-
const localVarPath = this.basePath + '/api/
|
|
59646
|
-
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59723
|
+
async acceptTermsOfService(options = { headers: {} }) {
|
|
59724
|
+
const localVarPath = this.basePath + '/api/user/accept-tos';
|
|
59647
59725
|
let queryParameters = {};
|
|
59648
59726
|
let localVarHeaderParams = {
|
|
59649
59727
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59659,13 +59737,74 @@ class UploadPortalApi {
|
|
|
59659
59737
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59660
59738
|
}
|
|
59661
59739
|
let localVarFormParams;
|
|
59662
|
-
|
|
59663
|
-
|
|
59664
|
-
|
|
59740
|
+
localVarHeaderParams = {
|
|
59741
|
+
...localVarHeaderParams,
|
|
59742
|
+
...options.headers,
|
|
59743
|
+
...this.opts.extraHeaders,
|
|
59744
|
+
};
|
|
59745
|
+
const queryString = Object.entries(queryParameters)
|
|
59746
|
+
.filter(([, value]) => value !== undefined)
|
|
59747
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
59748
|
+
.join('&');
|
|
59749
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59750
|
+
let localVarRequestOptions = {
|
|
59751
|
+
method: 'POST',
|
|
59752
|
+
headers: { ...localVarHeaderParams },
|
|
59753
|
+
};
|
|
59754
|
+
let requestOptions = localVarRequestOptions;
|
|
59755
|
+
let url = localVarUrl;
|
|
59756
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
59757
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
59758
|
+
url = auth_ApiKeyAuthentication.url;
|
|
59759
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
59760
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
59761
|
+
url = auth_JWTAuthentication.url;
|
|
59762
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
59763
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
59764
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
59765
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
59766
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
59767
|
+
url = auth_OAuth2.url;
|
|
59768
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
59769
|
+
requestOptions = authDefault.requestOptions;
|
|
59770
|
+
url = authDefault.url;
|
|
59771
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59772
|
+
const response = await fetch(url, requestOptions);
|
|
59773
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59774
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59775
|
+
const headerCb = options.responseHeadersCallback;
|
|
59776
|
+
// on next tick, so we have time to handle the response
|
|
59777
|
+
setTimeout(() => {
|
|
59778
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
59779
|
+
}, 0);
|
|
59665
59780
|
}
|
|
59666
|
-
|
|
59667
|
-
|
|
59668
|
-
|
|
59781
|
+
return resp;
|
|
59782
|
+
}
|
|
59783
|
+
/**
|
|
59784
|
+
* Activate the current user account (requires an activation code). This function is only available through a JWT token.
|
|
59785
|
+
* @summary Activate current user
|
|
59786
|
+
* @param activateUserOrVerifyEmailRequest
|
|
59787
|
+
*/
|
|
59788
|
+
async activateCurrentUser(activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
59789
|
+
const localVarPath = this.basePath + '/api/user/activate';
|
|
59790
|
+
let queryParameters = {};
|
|
59791
|
+
let localVarHeaderParams = {
|
|
59792
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
59793
|
+
'Content-Type': 'application/json',
|
|
59794
|
+
...this.defaultHeaders,
|
|
59795
|
+
};
|
|
59796
|
+
const produces = ['application/json'];
|
|
59797
|
+
// give precedence to 'application/json'
|
|
59798
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
59799
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
59800
|
+
}
|
|
59801
|
+
else {
|
|
59802
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
59803
|
+
}
|
|
59804
|
+
let localVarFormParams;
|
|
59805
|
+
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
59806
|
+
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
59807
|
+
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateCurrentUser.');
|
|
59669
59808
|
}
|
|
59670
59809
|
localVarHeaderParams = {
|
|
59671
59810
|
...localVarHeaderParams,
|
|
@@ -59681,7 +59820,7 @@ class UploadPortalApi {
|
|
|
59681
59820
|
method: 'POST',
|
|
59682
59821
|
headers: { ...localVarHeaderParams },
|
|
59683
59822
|
};
|
|
59684
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59823
|
+
localVarRequestOptions.body = JSON.stringify(activateUserOrVerifyEmailRequest);
|
|
59685
59824
|
let requestOptions = localVarRequestOptions;
|
|
59686
59825
|
let url = localVarUrl;
|
|
59687
59826
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59712,14 +59851,14 @@ class UploadPortalApi {
|
|
|
59712
59851
|
return resp;
|
|
59713
59852
|
}
|
|
59714
59853
|
/**
|
|
59715
|
-
*
|
|
59716
|
-
* @summary
|
|
59717
|
-
* @param
|
|
59718
|
-
* @param
|
|
59854
|
+
* Activate a user account (requires an activation code). This function is only available through a JWT token.
|
|
59855
|
+
* @summary Activate user
|
|
59856
|
+
* @param userId User ID
|
|
59857
|
+
* @param activateUserOrVerifyEmailRequest
|
|
59719
59858
|
*/
|
|
59720
|
-
async
|
|
59721
|
-
const localVarPath = this.basePath + '/api/
|
|
59722
|
-
.replace('{' + '
|
|
59859
|
+
async activateUser(userId, activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
59860
|
+
const localVarPath = this.basePath + '/api/users/{userId}/activate'
|
|
59861
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
59723
59862
|
let queryParameters = {};
|
|
59724
59863
|
let localVarHeaderParams = {
|
|
59725
59864
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59735,13 +59874,13 @@ class UploadPortalApi {
|
|
|
59735
59874
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59736
59875
|
}
|
|
59737
59876
|
let localVarFormParams;
|
|
59738
|
-
// verify required parameter '
|
|
59739
|
-
if (
|
|
59740
|
-
throw new Error('Required parameter
|
|
59877
|
+
// verify required parameter 'userId' is not null or undefined
|
|
59878
|
+
if (userId === null || userId === undefined) {
|
|
59879
|
+
throw new Error('Required parameter userId was null or undefined when calling activateUser.');
|
|
59741
59880
|
}
|
|
59742
|
-
// verify required parameter '
|
|
59743
|
-
if (
|
|
59744
|
-
throw new Error('Required parameter
|
|
59881
|
+
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
59882
|
+
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
59883
|
+
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateUser.');
|
|
59745
59884
|
}
|
|
59746
59885
|
localVarHeaderParams = {
|
|
59747
59886
|
...localVarHeaderParams,
|
|
@@ -59757,7 +59896,7 @@ class UploadPortalApi {
|
|
|
59757
59896
|
method: 'POST',
|
|
59758
59897
|
headers: { ...localVarHeaderParams },
|
|
59759
59898
|
};
|
|
59760
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59899
|
+
localVarRequestOptions.body = JSON.stringify(activateUserOrVerifyEmailRequest);
|
|
59761
59900
|
let requestOptions = localVarRequestOptions;
|
|
59762
59901
|
let url = localVarUrl;
|
|
59763
59902
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59777,7 +59916,7 @@ class UploadPortalApi {
|
|
|
59777
59916
|
url = authDefault.url;
|
|
59778
59917
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59779
59918
|
const response = await fetch(url, requestOptions);
|
|
59780
|
-
const resp = this.handleResponse(response, '
|
|
59919
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59781
59920
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59782
59921
|
const headerCb = options.responseHeadersCallback;
|
|
59783
59922
|
// on next tick, so we have time to handle the response
|
|
@@ -59788,13 +59927,12 @@ class UploadPortalApi {
|
|
|
59788
59927
|
return resp;
|
|
59789
59928
|
}
|
|
59790
59929
|
/**
|
|
59791
|
-
*
|
|
59792
|
-
* @summary
|
|
59793
|
-
* @param
|
|
59930
|
+
* Activate a user that was created by a third party. This function is only available through a JWT token.
|
|
59931
|
+
* @summary Activate user by third party activation code
|
|
59932
|
+
* @param activateUserByThirdPartyActivationCodeRequest
|
|
59794
59933
|
*/
|
|
59795
|
-
async
|
|
59796
|
-
const localVarPath = this.basePath + '/api/
|
|
59797
|
-
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
59934
|
+
async activateUserByThirdPartyActivationCode(activateUserByThirdPartyActivationCodeRequest, options = { headers: {} }) {
|
|
59935
|
+
const localVarPath = this.basePath + '/api/user/activate-by-third-party-activation-code';
|
|
59798
59936
|
let queryParameters = {};
|
|
59799
59937
|
let localVarHeaderParams = {
|
|
59800
59938
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59810,9 +59948,9 @@ class UploadPortalApi {
|
|
|
59810
59948
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59811
59949
|
}
|
|
59812
59950
|
let localVarFormParams;
|
|
59813
|
-
// verify required parameter '
|
|
59814
|
-
if (
|
|
59815
|
-
throw new Error('Required parameter
|
|
59951
|
+
// verify required parameter 'activateUserByThirdPartyActivationCodeRequest' is not null or undefined
|
|
59952
|
+
if (activateUserByThirdPartyActivationCodeRequest === null || activateUserByThirdPartyActivationCodeRequest === undefined) {
|
|
59953
|
+
throw new Error('Required parameter activateUserByThirdPartyActivationCodeRequest was null or undefined when calling activateUserByThirdPartyActivationCode.');
|
|
59816
59954
|
}
|
|
59817
59955
|
localVarHeaderParams = {
|
|
59818
59956
|
...localVarHeaderParams,
|
|
@@ -59825,9 +59963,10 @@ class UploadPortalApi {
|
|
|
59825
59963
|
.join('&');
|
|
59826
59964
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
59827
59965
|
let localVarRequestOptions = {
|
|
59828
|
-
method: '
|
|
59966
|
+
method: 'POST',
|
|
59829
59967
|
headers: { ...localVarHeaderParams },
|
|
59830
59968
|
};
|
|
59969
|
+
localVarRequestOptions.body = JSON.stringify(activateUserByThirdPartyActivationCodeRequest);
|
|
59831
59970
|
let requestOptions = localVarRequestOptions;
|
|
59832
59971
|
let url = localVarUrl;
|
|
59833
59972
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59847,7 +59986,7 @@ class UploadPortalApi {
|
|
|
59847
59986
|
url = authDefault.url;
|
|
59848
59987
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59849
59988
|
const response = await fetch(url, requestOptions);
|
|
59850
|
-
const resp = this.handleResponse(response, '
|
|
59989
|
+
const resp = this.handleResponse(response, 'GetJWTResponse');
|
|
59851
59990
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59852
59991
|
const headerCb = options.responseHeadersCallback;
|
|
59853
59992
|
// on next tick, so we have time to handle the response
|
|
@@ -59858,14 +59997,12 @@ class UploadPortalApi {
|
|
|
59858
59997
|
return resp;
|
|
59859
59998
|
}
|
|
59860
59999
|
/**
|
|
59861
|
-
*
|
|
59862
|
-
* @summary
|
|
59863
|
-
* @param
|
|
59864
|
-
* @param listPortalFilesInFolderRequest
|
|
60000
|
+
* Change the password for the current user account. This function is only available through a JWT token.
|
|
60001
|
+
* @summary Change password current user
|
|
60002
|
+
* @param changePasswordRequest
|
|
59865
60003
|
*/
|
|
59866
|
-
async
|
|
59867
|
-
const localVarPath = this.basePath + '/api/
|
|
59868
|
-
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
60004
|
+
async changePasswordCurrentUser(changePasswordRequest, options = { headers: {} }) {
|
|
60005
|
+
const localVarPath = this.basePath + '/api/user/change-password';
|
|
59869
60006
|
let queryParameters = {};
|
|
59870
60007
|
let localVarHeaderParams = {
|
|
59871
60008
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59881,13 +60018,9 @@ class UploadPortalApi {
|
|
|
59881
60018
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59882
60019
|
}
|
|
59883
60020
|
let localVarFormParams;
|
|
59884
|
-
// verify required parameter '
|
|
59885
|
-
if (
|
|
59886
|
-
throw new Error('Required parameter
|
|
59887
|
-
}
|
|
59888
|
-
// verify required parameter 'listPortalFilesInFolderRequest' is not null or undefined
|
|
59889
|
-
if (listPortalFilesInFolderRequest === null || listPortalFilesInFolderRequest === undefined) {
|
|
59890
|
-
throw new Error('Required parameter listPortalFilesInFolderRequest was null or undefined when calling listPortalFilesInFolder.');
|
|
60021
|
+
// verify required parameter 'changePasswordRequest' is not null or undefined
|
|
60022
|
+
if (changePasswordRequest === null || changePasswordRequest === undefined) {
|
|
60023
|
+
throw new Error('Required parameter changePasswordRequest was null or undefined when calling changePasswordCurrentUser.');
|
|
59891
60024
|
}
|
|
59892
60025
|
localVarHeaderParams = {
|
|
59893
60026
|
...localVarHeaderParams,
|
|
@@ -59903,7 +60036,7 @@ class UploadPortalApi {
|
|
|
59903
60036
|
method: 'POST',
|
|
59904
60037
|
headers: { ...localVarHeaderParams },
|
|
59905
60038
|
};
|
|
59906
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
60039
|
+
localVarRequestOptions.body = JSON.stringify(changePasswordRequest);
|
|
59907
60040
|
let requestOptions = localVarRequestOptions;
|
|
59908
60041
|
let url = localVarUrl;
|
|
59909
60042
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -59923,7 +60056,7 @@ class UploadPortalApi {
|
|
|
59923
60056
|
url = authDefault.url;
|
|
59924
60057
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
59925
60058
|
const response = await fetch(url, requestOptions);
|
|
59926
|
-
const resp = this.handleResponse(response, '
|
|
60059
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
59927
60060
|
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
59928
60061
|
const headerCb = options.responseHeadersCallback;
|
|
59929
60062
|
// on next tick, so we have time to handle the response
|
|
@@ -59934,14 +60067,14 @@ class UploadPortalApi {
|
|
|
59934
60067
|
return resp;
|
|
59935
60068
|
}
|
|
59936
60069
|
/**
|
|
59937
|
-
*
|
|
59938
|
-
* @summary
|
|
59939
|
-
* @param
|
|
59940
|
-
* @param
|
|
60070
|
+
* Change the password for a user account. This function is only available through a JWT token.
|
|
60071
|
+
* @summary Change password
|
|
60072
|
+
* @param userId User ID
|
|
60073
|
+
* @param changePasswordRequest
|
|
59941
60074
|
*/
|
|
59942
|
-
async
|
|
59943
|
-
const localVarPath = this.basePath + '/api/
|
|
59944
|
-
.replace('{' + '
|
|
60075
|
+
async changePasswordUser(userId, changePasswordRequest, options = { headers: {} }) {
|
|
60076
|
+
const localVarPath = this.basePath + '/api/users/{userId}/change-password'
|
|
60077
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
59945
60078
|
let queryParameters = {};
|
|
59946
60079
|
let localVarHeaderParams = {
|
|
59947
60080
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -59957,13 +60090,13 @@ class UploadPortalApi {
|
|
|
59957
60090
|
localVarHeaderParams.Accept = produces.join(',');
|
|
59958
60091
|
}
|
|
59959
60092
|
let localVarFormParams;
|
|
59960
|
-
// verify required parameter '
|
|
59961
|
-
if (
|
|
59962
|
-
throw new Error('Required parameter
|
|
60093
|
+
// verify required parameter 'userId' is not null or undefined
|
|
60094
|
+
if (userId === null || userId === undefined) {
|
|
60095
|
+
throw new Error('Required parameter userId was null or undefined when calling changePasswordUser.');
|
|
59963
60096
|
}
|
|
59964
|
-
// verify required parameter '
|
|
59965
|
-
if (
|
|
59966
|
-
throw new Error('Required parameter
|
|
60097
|
+
// verify required parameter 'changePasswordRequest' is not null or undefined
|
|
60098
|
+
if (changePasswordRequest === null || changePasswordRequest === undefined) {
|
|
60099
|
+
throw new Error('Required parameter changePasswordRequest was null or undefined when calling changePasswordUser.');
|
|
59967
60100
|
}
|
|
59968
60101
|
localVarHeaderParams = {
|
|
59969
60102
|
...localVarHeaderParams,
|
|
@@ -59979,687 +60112,7 @@ class UploadPortalApi {
|
|
|
59979
60112
|
method: 'POST',
|
|
59980
60113
|
headers: { ...localVarHeaderParams },
|
|
59981
60114
|
};
|
|
59982
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
59983
|
-
let requestOptions = localVarRequestOptions;
|
|
59984
|
-
let url = localVarUrl;
|
|
59985
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
59986
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
59987
|
-
url = auth_ApiKeyAuthentication.url;
|
|
59988
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
59989
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
59990
|
-
url = auth_JWTAuthentication.url;
|
|
59991
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
59992
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
59993
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
59994
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
59995
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
59996
|
-
url = auth_OAuth2.url;
|
|
59997
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
59998
|
-
requestOptions = authDefault.requestOptions;
|
|
59999
|
-
url = authDefault.url;
|
|
60000
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60001
|
-
const response = await fetch(url, requestOptions);
|
|
60002
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60003
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60004
|
-
const headerCb = options.responseHeadersCallback;
|
|
60005
|
-
// on next tick, so we have time to handle the response
|
|
60006
|
-
setTimeout(() => {
|
|
60007
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60008
|
-
}, 0);
|
|
60009
|
-
}
|
|
60010
|
-
return resp;
|
|
60011
|
-
}
|
|
60012
|
-
/**
|
|
60013
|
-
* View a file that\'s located in an upload portal (requires JWT auth). File might be converted (e.g. Parquet) or truncated (e.g. CSV).
|
|
60014
|
-
* @summary View file from portal
|
|
60015
|
-
* @param portalId Portal ID
|
|
60016
|
-
* @param path Path to file in portal
|
|
60017
|
-
*/
|
|
60018
|
-
async viewPortalFile(portalId, queryParams, options = { headers: {} }) {
|
|
60019
|
-
const localVarPath = this.basePath + '/api/portals/{portalId}/files/view'
|
|
60020
|
-
.replace('{' + 'portalId' + '}', encodeURIComponent(String(portalId)));
|
|
60021
|
-
let queryParameters = {};
|
|
60022
|
-
let localVarHeaderParams = {
|
|
60023
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60024
|
-
'Content-Type': 'application/json',
|
|
60025
|
-
...this.defaultHeaders,
|
|
60026
|
-
};
|
|
60027
|
-
const produces = ['application/octet-stream'];
|
|
60028
|
-
// give precedence to 'application/json'
|
|
60029
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60030
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60031
|
-
}
|
|
60032
|
-
else {
|
|
60033
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60034
|
-
}
|
|
60035
|
-
let localVarFormParams;
|
|
60036
|
-
// verify required parameter 'portalId' is not null or undefined
|
|
60037
|
-
if (portalId === null || portalId === undefined) {
|
|
60038
|
-
throw new Error('Required parameter portalId was null or undefined when calling viewPortalFile.');
|
|
60039
|
-
}
|
|
60040
|
-
// verify required parameter 'path' is not null or undefined
|
|
60041
|
-
if (queryParams.path === null || queryParams.path === undefined) {
|
|
60042
|
-
throw new Error('Required parameter queryParams.path was null or undefined when calling viewPortalFile.');
|
|
60043
|
-
}
|
|
60044
|
-
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.path) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.path) !== null) {
|
|
60045
|
-
queryParameters['path'] = queryParams.path;
|
|
60046
|
-
}
|
|
60047
|
-
localVarHeaderParams = {
|
|
60048
|
-
...localVarHeaderParams,
|
|
60049
|
-
...options.headers,
|
|
60050
|
-
...this.opts.extraHeaders,
|
|
60051
|
-
};
|
|
60052
|
-
const queryString = Object.entries(queryParameters)
|
|
60053
|
-
.filter(([, value]) => value !== undefined)
|
|
60054
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60055
|
-
.join('&');
|
|
60056
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60057
|
-
let localVarRequestOptions = {
|
|
60058
|
-
method: 'GET',
|
|
60059
|
-
headers: { ...localVarHeaderParams },
|
|
60060
|
-
};
|
|
60061
|
-
let requestOptions = localVarRequestOptions;
|
|
60062
|
-
let url = localVarUrl;
|
|
60063
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60064
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60065
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60066
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60067
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60068
|
-
url = auth_JWTAuthentication.url;
|
|
60069
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60070
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60071
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60072
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60073
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60074
|
-
url = auth_OAuth2.url;
|
|
60075
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60076
|
-
requestOptions = authDefault.requestOptions;
|
|
60077
|
-
url = authDefault.url;
|
|
60078
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60079
|
-
const response = await fetch(url, requestOptions);
|
|
60080
|
-
const resp = this.handleResponse(response, 'Buffer');
|
|
60081
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60082
|
-
const headerCb = options.responseHeadersCallback;
|
|
60083
|
-
// on next tick, so we have time to handle the response
|
|
60084
|
-
setTimeout(() => {
|
|
60085
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60086
|
-
}, 0);
|
|
60087
|
-
}
|
|
60088
|
-
return resp;
|
|
60089
|
-
}
|
|
60090
|
-
}
|
|
60091
|
-
exports.UploadPortalApi = UploadPortalApi;
|
|
60092
|
-
});
|
|
60093
|
-
|
|
60094
|
-
|
|
60095
|
-
define("library/sdk/api/userApi", ["require", "exports"], function (require, exports) {
|
|
60096
|
-
"use strict";
|
|
60097
|
-
/**
|
|
60098
|
-
* Edge Impulse API
|
|
60099
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
60100
|
-
*
|
|
60101
|
-
* The version of the OpenAPI document: 1.0.0
|
|
60102
|
-
*
|
|
60103
|
-
*
|
|
60104
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
60105
|
-
* https://openapi-generator.tech
|
|
60106
|
-
* Do not edit the class manually.
|
|
60107
|
-
*/
|
|
60108
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60109
|
-
exports.UserApi = exports.UserApiApiKeys = void 0;
|
|
60110
|
-
let fetch;
|
|
60111
|
-
let FormData;
|
|
60112
|
-
if (globalThis.fetch && globalThis.FormData) {
|
|
60113
|
-
fetch = globalThis.fetch;
|
|
60114
|
-
FormData = globalThis.FormData;
|
|
60115
|
-
}
|
|
60116
|
-
else {
|
|
60117
|
-
const undici = require('undici');
|
|
60118
|
-
fetch = undici.fetch;
|
|
60119
|
-
FormData = undici.FormData;
|
|
60120
|
-
}
|
|
60121
|
-
const models_1 = require("../model/models");
|
|
60122
|
-
const models_2 = require("../model/models");
|
|
60123
|
-
let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
60124
|
-
// ===============================================
|
|
60125
|
-
// This file is autogenerated - Please do not edit
|
|
60126
|
-
// ===============================================
|
|
60127
|
-
var UserApiApiKeys;
|
|
60128
|
-
(function (UserApiApiKeys) {
|
|
60129
|
-
UserApiApiKeys[UserApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
|
|
60130
|
-
UserApiApiKeys[UserApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
|
|
60131
|
-
UserApiApiKeys[UserApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
|
|
60132
|
-
})(UserApiApiKeys = exports.UserApiApiKeys || (exports.UserApiApiKeys = {}));
|
|
60133
|
-
class UserApi {
|
|
60134
|
-
async handleResponse(response, returnType) {
|
|
60135
|
-
let body = await (0, models_1.parseResponse)(response);
|
|
60136
|
-
if (!response.ok) {
|
|
60137
|
-
let errorMsg;
|
|
60138
|
-
if (typeof body === 'object' && body !== null && 'error' in body) {
|
|
60139
|
-
errorMsg = body.error;
|
|
60140
|
-
}
|
|
60141
|
-
else {
|
|
60142
|
-
errorMsg = `Failed to call "${response.url}", returned ${response.status}: ` + (typeof body === 'string' ? body : JSON.stringify(body));
|
|
60143
|
-
}
|
|
60144
|
-
throw new Error(errorMsg);
|
|
60145
|
-
}
|
|
60146
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
60147
|
-
const errString = `Failed to call "${response.url}", returned ${response.status}: ` + body.error;
|
|
60148
|
-
throw new Error(body.error || errString);
|
|
60149
|
-
}
|
|
60150
|
-
return (0, models_1.convertISODateStringsOnObj)(body);
|
|
60151
|
-
}
|
|
60152
|
-
constructor(basePathOrUsername, opts, password, basePath) {
|
|
60153
|
-
this._basePath = defaultBasePath;
|
|
60154
|
-
this.defaultHeaders = {};
|
|
60155
|
-
this._opts = {};
|
|
60156
|
-
this.authentications = {
|
|
60157
|
-
'default': new models_1.VoidAuth(),
|
|
60158
|
-
'ApiKeyAuthentication': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
60159
|
-
'OAuth2': new models_2.OAuth(),
|
|
60160
|
-
'JWTAuthentication': new models_2.ApiKeyAuth('cookie', 'jwt'),
|
|
60161
|
-
'JWTHttpHeaderAuthentication': new models_2.ApiKeyAuth('header', 'x-jwt-token'),
|
|
60162
|
-
};
|
|
60163
|
-
if (password) {
|
|
60164
|
-
if (basePath) {
|
|
60165
|
-
this.basePath = basePath;
|
|
60166
|
-
}
|
|
60167
|
-
}
|
|
60168
|
-
else {
|
|
60169
|
-
if (basePathOrUsername) {
|
|
60170
|
-
this.basePath = basePathOrUsername;
|
|
60171
|
-
}
|
|
60172
|
-
}
|
|
60173
|
-
this.opts = opts !== null && opts !== void 0 ? opts : {};
|
|
60174
|
-
}
|
|
60175
|
-
set basePath(basePath) {
|
|
60176
|
-
this._basePath = basePath;
|
|
60177
|
-
}
|
|
60178
|
-
get basePath() {
|
|
60179
|
-
return this._basePath;
|
|
60180
|
-
}
|
|
60181
|
-
set opts(opts) {
|
|
60182
|
-
this._opts = opts;
|
|
60183
|
-
}
|
|
60184
|
-
get opts() {
|
|
60185
|
-
return this._opts;
|
|
60186
|
-
}
|
|
60187
|
-
setDefaultAuthentication(auth) {
|
|
60188
|
-
this.authentications.default = auth;
|
|
60189
|
-
}
|
|
60190
|
-
setApiKey(key, value) {
|
|
60191
|
-
this.authentications[UserApiApiKeys[key]].apiKey = value;
|
|
60192
|
-
}
|
|
60193
|
-
set accessToken(token) {
|
|
60194
|
-
this.authentications.OAuth2.accessToken = token;
|
|
60195
|
-
}
|
|
60196
|
-
/**
|
|
60197
|
-
* To access some models or tooling, you might need to first accept an End-User License Agreement. The full list of available EULAs are listed via `GetUserResponse`.
|
|
60198
|
-
* @summary Accept End-User License Agreement
|
|
60199
|
-
* @param acceptEulaRequest
|
|
60200
|
-
*/
|
|
60201
|
-
async acceptEula(acceptEulaRequest, options = { headers: {} }) {
|
|
60202
|
-
const localVarPath = this.basePath + '/api/user/accept-eula';
|
|
60203
|
-
let queryParameters = {};
|
|
60204
|
-
let localVarHeaderParams = {
|
|
60205
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60206
|
-
'Content-Type': 'application/json',
|
|
60207
|
-
...this.defaultHeaders,
|
|
60208
|
-
};
|
|
60209
|
-
const produces = ['application/json'];
|
|
60210
|
-
// give precedence to 'application/json'
|
|
60211
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60212
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60213
|
-
}
|
|
60214
|
-
else {
|
|
60215
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60216
|
-
}
|
|
60217
|
-
let localVarFormParams;
|
|
60218
|
-
// verify required parameter 'acceptEulaRequest' is not null or undefined
|
|
60219
|
-
if (acceptEulaRequest === null || acceptEulaRequest === undefined) {
|
|
60220
|
-
throw new Error('Required parameter acceptEulaRequest was null or undefined when calling acceptEula.');
|
|
60221
|
-
}
|
|
60222
|
-
localVarHeaderParams = {
|
|
60223
|
-
...localVarHeaderParams,
|
|
60224
|
-
...options.headers,
|
|
60225
|
-
...this.opts.extraHeaders,
|
|
60226
|
-
};
|
|
60227
|
-
const queryString = Object.entries(queryParameters)
|
|
60228
|
-
.filter(([, value]) => value !== undefined)
|
|
60229
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60230
|
-
.join('&');
|
|
60231
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60232
|
-
let localVarRequestOptions = {
|
|
60233
|
-
method: 'POST',
|
|
60234
|
-
headers: { ...localVarHeaderParams },
|
|
60235
|
-
};
|
|
60236
|
-
localVarRequestOptions.body = JSON.stringify(acceptEulaRequest);
|
|
60237
|
-
let requestOptions = localVarRequestOptions;
|
|
60238
|
-
let url = localVarUrl;
|
|
60239
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60240
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60241
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60242
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60243
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60244
|
-
url = auth_JWTAuthentication.url;
|
|
60245
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60246
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60247
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60248
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60249
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60250
|
-
url = auth_OAuth2.url;
|
|
60251
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60252
|
-
requestOptions = authDefault.requestOptions;
|
|
60253
|
-
url = authDefault.url;
|
|
60254
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60255
|
-
const response = await fetch(url, requestOptions);
|
|
60256
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60257
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60258
|
-
const headerCb = options.responseHeadersCallback;
|
|
60259
|
-
// on next tick, so we have time to handle the response
|
|
60260
|
-
setTimeout(() => {
|
|
60261
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60262
|
-
}, 0);
|
|
60263
|
-
}
|
|
60264
|
-
return resp;
|
|
60265
|
-
}
|
|
60266
|
-
/**
|
|
60267
|
-
* Accept Terms of Service.
|
|
60268
|
-
* @summary Accept Terms of Service
|
|
60269
|
-
*/
|
|
60270
|
-
async acceptTermsOfService(options = { headers: {} }) {
|
|
60271
|
-
const localVarPath = this.basePath + '/api/user/accept-tos';
|
|
60272
|
-
let queryParameters = {};
|
|
60273
|
-
let localVarHeaderParams = {
|
|
60274
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60275
|
-
'Content-Type': 'application/json',
|
|
60276
|
-
...this.defaultHeaders,
|
|
60277
|
-
};
|
|
60278
|
-
const produces = ['application/json'];
|
|
60279
|
-
// give precedence to 'application/json'
|
|
60280
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60281
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60282
|
-
}
|
|
60283
|
-
else {
|
|
60284
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60285
|
-
}
|
|
60286
|
-
let localVarFormParams;
|
|
60287
|
-
localVarHeaderParams = {
|
|
60288
|
-
...localVarHeaderParams,
|
|
60289
|
-
...options.headers,
|
|
60290
|
-
...this.opts.extraHeaders,
|
|
60291
|
-
};
|
|
60292
|
-
const queryString = Object.entries(queryParameters)
|
|
60293
|
-
.filter(([, value]) => value !== undefined)
|
|
60294
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60295
|
-
.join('&');
|
|
60296
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60297
|
-
let localVarRequestOptions = {
|
|
60298
|
-
method: 'POST',
|
|
60299
|
-
headers: { ...localVarHeaderParams },
|
|
60300
|
-
};
|
|
60301
|
-
let requestOptions = localVarRequestOptions;
|
|
60302
|
-
let url = localVarUrl;
|
|
60303
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60304
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60305
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60306
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60307
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60308
|
-
url = auth_JWTAuthentication.url;
|
|
60309
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60310
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60311
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60312
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60313
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60314
|
-
url = auth_OAuth2.url;
|
|
60315
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60316
|
-
requestOptions = authDefault.requestOptions;
|
|
60317
|
-
url = authDefault.url;
|
|
60318
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60319
|
-
const response = await fetch(url, requestOptions);
|
|
60320
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60321
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60322
|
-
const headerCb = options.responseHeadersCallback;
|
|
60323
|
-
// on next tick, so we have time to handle the response
|
|
60324
|
-
setTimeout(() => {
|
|
60325
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60326
|
-
}, 0);
|
|
60327
|
-
}
|
|
60328
|
-
return resp;
|
|
60329
|
-
}
|
|
60330
|
-
/**
|
|
60331
|
-
* Activate the current user account (requires an activation code). This function is only available through a JWT token.
|
|
60332
|
-
* @summary Activate current user
|
|
60333
|
-
* @param activateUserOrVerifyEmailRequest
|
|
60334
|
-
*/
|
|
60335
|
-
async activateCurrentUser(activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
60336
|
-
const localVarPath = this.basePath + '/api/user/activate';
|
|
60337
|
-
let queryParameters = {};
|
|
60338
|
-
let localVarHeaderParams = {
|
|
60339
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60340
|
-
'Content-Type': 'application/json',
|
|
60341
|
-
...this.defaultHeaders,
|
|
60342
|
-
};
|
|
60343
|
-
const produces = ['application/json'];
|
|
60344
|
-
// give precedence to 'application/json'
|
|
60345
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60346
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60347
|
-
}
|
|
60348
|
-
else {
|
|
60349
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60350
|
-
}
|
|
60351
|
-
let localVarFormParams;
|
|
60352
|
-
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
60353
|
-
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
60354
|
-
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateCurrentUser.');
|
|
60355
|
-
}
|
|
60356
|
-
localVarHeaderParams = {
|
|
60357
|
-
...localVarHeaderParams,
|
|
60358
|
-
...options.headers,
|
|
60359
|
-
...this.opts.extraHeaders,
|
|
60360
|
-
};
|
|
60361
|
-
const queryString = Object.entries(queryParameters)
|
|
60362
|
-
.filter(([, value]) => value !== undefined)
|
|
60363
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60364
|
-
.join('&');
|
|
60365
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60366
|
-
let localVarRequestOptions = {
|
|
60367
|
-
method: 'POST',
|
|
60368
|
-
headers: { ...localVarHeaderParams },
|
|
60369
|
-
};
|
|
60370
|
-
localVarRequestOptions.body = JSON.stringify(activateUserOrVerifyEmailRequest);
|
|
60371
|
-
let requestOptions = localVarRequestOptions;
|
|
60372
|
-
let url = localVarUrl;
|
|
60373
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60374
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60375
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60376
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60377
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60378
|
-
url = auth_JWTAuthentication.url;
|
|
60379
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60380
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60381
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60382
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60383
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60384
|
-
url = auth_OAuth2.url;
|
|
60385
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60386
|
-
requestOptions = authDefault.requestOptions;
|
|
60387
|
-
url = authDefault.url;
|
|
60388
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60389
|
-
const response = await fetch(url, requestOptions);
|
|
60390
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60391
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60392
|
-
const headerCb = options.responseHeadersCallback;
|
|
60393
|
-
// on next tick, so we have time to handle the response
|
|
60394
|
-
setTimeout(() => {
|
|
60395
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60396
|
-
}, 0);
|
|
60397
|
-
}
|
|
60398
|
-
return resp;
|
|
60399
|
-
}
|
|
60400
|
-
/**
|
|
60401
|
-
* Activate a user account (requires an activation code). This function is only available through a JWT token.
|
|
60402
|
-
* @summary Activate user
|
|
60403
|
-
* @param userId User ID
|
|
60404
|
-
* @param activateUserOrVerifyEmailRequest
|
|
60405
|
-
*/
|
|
60406
|
-
async activateUser(userId, activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
60407
|
-
const localVarPath = this.basePath + '/api/users/{userId}/activate'
|
|
60408
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
60409
|
-
let queryParameters = {};
|
|
60410
|
-
let localVarHeaderParams = {
|
|
60411
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60412
|
-
'Content-Type': 'application/json',
|
|
60413
|
-
...this.defaultHeaders,
|
|
60414
|
-
};
|
|
60415
|
-
const produces = ['application/json'];
|
|
60416
|
-
// give precedence to 'application/json'
|
|
60417
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60418
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60419
|
-
}
|
|
60420
|
-
else {
|
|
60421
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60422
|
-
}
|
|
60423
|
-
let localVarFormParams;
|
|
60424
|
-
// verify required parameter 'userId' is not null or undefined
|
|
60425
|
-
if (userId === null || userId === undefined) {
|
|
60426
|
-
throw new Error('Required parameter userId was null or undefined when calling activateUser.');
|
|
60427
|
-
}
|
|
60428
|
-
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
60429
|
-
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
60430
|
-
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateUser.');
|
|
60431
|
-
}
|
|
60432
|
-
localVarHeaderParams = {
|
|
60433
|
-
...localVarHeaderParams,
|
|
60434
|
-
...options.headers,
|
|
60435
|
-
...this.opts.extraHeaders,
|
|
60436
|
-
};
|
|
60437
|
-
const queryString = Object.entries(queryParameters)
|
|
60438
|
-
.filter(([, value]) => value !== undefined)
|
|
60439
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60440
|
-
.join('&');
|
|
60441
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60442
|
-
let localVarRequestOptions = {
|
|
60443
|
-
method: 'POST',
|
|
60444
|
-
headers: { ...localVarHeaderParams },
|
|
60445
|
-
};
|
|
60446
|
-
localVarRequestOptions.body = JSON.stringify(activateUserOrVerifyEmailRequest);
|
|
60447
|
-
let requestOptions = localVarRequestOptions;
|
|
60448
|
-
let url = localVarUrl;
|
|
60449
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60450
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60451
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60452
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60453
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60454
|
-
url = auth_JWTAuthentication.url;
|
|
60455
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60456
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60457
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60458
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60459
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60460
|
-
url = auth_OAuth2.url;
|
|
60461
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60462
|
-
requestOptions = authDefault.requestOptions;
|
|
60463
|
-
url = authDefault.url;
|
|
60464
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60465
|
-
const response = await fetch(url, requestOptions);
|
|
60466
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60467
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60468
|
-
const headerCb = options.responseHeadersCallback;
|
|
60469
|
-
// on next tick, so we have time to handle the response
|
|
60470
|
-
setTimeout(() => {
|
|
60471
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60472
|
-
}, 0);
|
|
60473
|
-
}
|
|
60474
|
-
return resp;
|
|
60475
|
-
}
|
|
60476
|
-
/**
|
|
60477
|
-
* Activate a user that was created by a third party. This function is only available through a JWT token.
|
|
60478
|
-
* @summary Activate user by third party activation code
|
|
60479
|
-
* @param activateUserByThirdPartyActivationCodeRequest
|
|
60480
|
-
*/
|
|
60481
|
-
async activateUserByThirdPartyActivationCode(activateUserByThirdPartyActivationCodeRequest, options = { headers: {} }) {
|
|
60482
|
-
const localVarPath = this.basePath + '/api/user/activate-by-third-party-activation-code';
|
|
60483
|
-
let queryParameters = {};
|
|
60484
|
-
let localVarHeaderParams = {
|
|
60485
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60486
|
-
'Content-Type': 'application/json',
|
|
60487
|
-
...this.defaultHeaders,
|
|
60488
|
-
};
|
|
60489
|
-
const produces = ['application/json'];
|
|
60490
|
-
// give precedence to 'application/json'
|
|
60491
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60492
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60493
|
-
}
|
|
60494
|
-
else {
|
|
60495
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60496
|
-
}
|
|
60497
|
-
let localVarFormParams;
|
|
60498
|
-
// verify required parameter 'activateUserByThirdPartyActivationCodeRequest' is not null or undefined
|
|
60499
|
-
if (activateUserByThirdPartyActivationCodeRequest === null || activateUserByThirdPartyActivationCodeRequest === undefined) {
|
|
60500
|
-
throw new Error('Required parameter activateUserByThirdPartyActivationCodeRequest was null or undefined when calling activateUserByThirdPartyActivationCode.');
|
|
60501
|
-
}
|
|
60502
|
-
localVarHeaderParams = {
|
|
60503
|
-
...localVarHeaderParams,
|
|
60504
|
-
...options.headers,
|
|
60505
|
-
...this.opts.extraHeaders,
|
|
60506
|
-
};
|
|
60507
|
-
const queryString = Object.entries(queryParameters)
|
|
60508
|
-
.filter(([, value]) => value !== undefined)
|
|
60509
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60510
|
-
.join('&');
|
|
60511
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60512
|
-
let localVarRequestOptions = {
|
|
60513
|
-
method: 'POST',
|
|
60514
|
-
headers: { ...localVarHeaderParams },
|
|
60515
|
-
};
|
|
60516
|
-
localVarRequestOptions.body = JSON.stringify(activateUserByThirdPartyActivationCodeRequest);
|
|
60517
|
-
let requestOptions = localVarRequestOptions;
|
|
60518
|
-
let url = localVarUrl;
|
|
60519
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60520
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60521
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60522
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60523
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60524
|
-
url = auth_JWTAuthentication.url;
|
|
60525
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60526
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60527
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60528
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60529
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60530
|
-
url = auth_OAuth2.url;
|
|
60531
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60532
|
-
requestOptions = authDefault.requestOptions;
|
|
60533
|
-
url = authDefault.url;
|
|
60534
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60535
|
-
const response = await fetch(url, requestOptions);
|
|
60536
|
-
const resp = this.handleResponse(response, 'GetJWTResponse');
|
|
60537
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60538
|
-
const headerCb = options.responseHeadersCallback;
|
|
60539
|
-
// on next tick, so we have time to handle the response
|
|
60540
|
-
setTimeout(() => {
|
|
60541
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60542
|
-
}, 0);
|
|
60543
|
-
}
|
|
60544
|
-
return resp;
|
|
60545
|
-
}
|
|
60546
|
-
/**
|
|
60547
|
-
* Change the password for the current user account. This function is only available through a JWT token.
|
|
60548
|
-
* @summary Change password current user
|
|
60549
|
-
* @param changePasswordRequest
|
|
60550
|
-
*/
|
|
60551
|
-
async changePasswordCurrentUser(changePasswordRequest, options = { headers: {} }) {
|
|
60552
|
-
const localVarPath = this.basePath + '/api/user/change-password';
|
|
60553
|
-
let queryParameters = {};
|
|
60554
|
-
let localVarHeaderParams = {
|
|
60555
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60556
|
-
'Content-Type': 'application/json',
|
|
60557
|
-
...this.defaultHeaders,
|
|
60558
|
-
};
|
|
60559
|
-
const produces = ['application/json'];
|
|
60560
|
-
// give precedence to 'application/json'
|
|
60561
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60562
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60563
|
-
}
|
|
60564
|
-
else {
|
|
60565
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60566
|
-
}
|
|
60567
|
-
let localVarFormParams;
|
|
60568
|
-
// verify required parameter 'changePasswordRequest' is not null or undefined
|
|
60569
|
-
if (changePasswordRequest === null || changePasswordRequest === undefined) {
|
|
60570
|
-
throw new Error('Required parameter changePasswordRequest was null or undefined when calling changePasswordCurrentUser.');
|
|
60571
|
-
}
|
|
60572
|
-
localVarHeaderParams = {
|
|
60573
|
-
...localVarHeaderParams,
|
|
60574
|
-
...options.headers,
|
|
60575
|
-
...this.opts.extraHeaders,
|
|
60576
|
-
};
|
|
60577
|
-
const queryString = Object.entries(queryParameters)
|
|
60578
|
-
.filter(([, value]) => value !== undefined)
|
|
60579
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60580
|
-
.join('&');
|
|
60581
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60582
|
-
let localVarRequestOptions = {
|
|
60583
|
-
method: 'POST',
|
|
60584
|
-
headers: { ...localVarHeaderParams },
|
|
60585
|
-
};
|
|
60586
|
-
localVarRequestOptions.body = JSON.stringify(changePasswordRequest);
|
|
60587
|
-
let requestOptions = localVarRequestOptions;
|
|
60588
|
-
let url = localVarUrl;
|
|
60589
|
-
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
60590
|
-
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
60591
|
-
url = auth_ApiKeyAuthentication.url;
|
|
60592
|
-
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
60593
|
-
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
60594
|
-
url = auth_JWTAuthentication.url;
|
|
60595
|
-
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
60596
|
-
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
60597
|
-
url = auth_JWTHttpHeaderAuthentication.url;
|
|
60598
|
-
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
60599
|
-
requestOptions = auth_OAuth2.requestOptions;
|
|
60600
|
-
url = auth_OAuth2.url;
|
|
60601
|
-
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
60602
|
-
requestOptions = authDefault.requestOptions;
|
|
60603
|
-
url = authDefault.url;
|
|
60604
|
-
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
60605
|
-
const response = await fetch(url, requestOptions);
|
|
60606
|
-
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
60607
|
-
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
60608
|
-
const headerCb = options.responseHeadersCallback;
|
|
60609
|
-
// on next tick, so we have time to handle the response
|
|
60610
|
-
setTimeout(() => {
|
|
60611
|
-
headerCb(Object.fromEntries(response.headers.entries()));
|
|
60612
|
-
}, 0);
|
|
60613
|
-
}
|
|
60614
|
-
return resp;
|
|
60615
|
-
}
|
|
60616
|
-
/**
|
|
60617
|
-
* Change the password for a user account. This function is only available through a JWT token.
|
|
60618
|
-
* @summary Change password
|
|
60619
|
-
* @param userId User ID
|
|
60620
|
-
* @param changePasswordRequest
|
|
60621
|
-
*/
|
|
60622
|
-
async changePasswordUser(userId, changePasswordRequest, options = { headers: {} }) {
|
|
60623
|
-
const localVarPath = this.basePath + '/api/users/{userId}/change-password'
|
|
60624
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
60625
|
-
let queryParameters = {};
|
|
60626
|
-
let localVarHeaderParams = {
|
|
60627
|
-
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
60628
|
-
'Content-Type': 'application/json',
|
|
60629
|
-
...this.defaultHeaders,
|
|
60630
|
-
};
|
|
60631
|
-
const produces = ['application/json'];
|
|
60632
|
-
// give precedence to 'application/json'
|
|
60633
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
60634
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
60635
|
-
}
|
|
60636
|
-
else {
|
|
60637
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
60638
|
-
}
|
|
60639
|
-
let localVarFormParams;
|
|
60640
|
-
// verify required parameter 'userId' is not null or undefined
|
|
60641
|
-
if (userId === null || userId === undefined) {
|
|
60642
|
-
throw new Error('Required parameter userId was null or undefined when calling changePasswordUser.');
|
|
60643
|
-
}
|
|
60644
|
-
// verify required parameter 'changePasswordRequest' is not null or undefined
|
|
60645
|
-
if (changePasswordRequest === null || changePasswordRequest === undefined) {
|
|
60646
|
-
throw new Error('Required parameter changePasswordRequest was null or undefined when calling changePasswordUser.');
|
|
60647
|
-
}
|
|
60648
|
-
localVarHeaderParams = {
|
|
60649
|
-
...localVarHeaderParams,
|
|
60650
|
-
...options.headers,
|
|
60651
|
-
...this.opts.extraHeaders,
|
|
60652
|
-
};
|
|
60653
|
-
const queryString = Object.entries(queryParameters)
|
|
60654
|
-
.filter(([, value]) => value !== undefined)
|
|
60655
|
-
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
60656
|
-
.join('&');
|
|
60657
|
-
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
60658
|
-
let localVarRequestOptions = {
|
|
60659
|
-
method: 'POST',
|
|
60660
|
-
headers: { ...localVarHeaderParams },
|
|
60661
|
-
};
|
|
60662
|
-
localVarRequestOptions.body = JSON.stringify(changePasswordRequest);
|
|
60115
|
+
localVarRequestOptions.body = JSON.stringify(changePasswordRequest);
|
|
60663
60116
|
let requestOptions = localVarRequestOptions;
|
|
60664
60117
|
let url = localVarUrl;
|
|
60665
60118
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -65415,13 +64868,6 @@ exports.AugmentationPolicySpectrogramGaussianNoiseEnumValues = ['none', 'low', '
|
|
|
65415
64868
|
});
|
|
65416
64869
|
|
|
65417
64870
|
|
|
65418
|
-
define("library/sdk/model/authorizeThirdPartyRequest", ["require", "exports"], function (require, exports) {
|
|
65419
|
-
"use strict";
|
|
65420
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
65421
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65422
|
-
});
|
|
65423
|
-
|
|
65424
|
-
|
|
65425
64871
|
define("library/sdk/model/autotuneDspRequest", ["require", "exports"], function (require, exports) {
|
|
65426
64872
|
"use strict";
|
|
65427
64873
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -65900,20 +65346,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
65900
65346
|
});
|
|
65901
65347
|
|
|
65902
65348
|
|
|
65903
|
-
define("library/sdk/model/createThirdPartyAuthRequest", ["require", "exports"], function (require, exports) {
|
|
65904
|
-
"use strict";
|
|
65905
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
65906
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65907
|
-
});
|
|
65908
|
-
|
|
65909
|
-
|
|
65910
|
-
define("library/sdk/model/createThirdPartyAuthResponse", ["require", "exports"], function (require, exports) {
|
|
65911
|
-
"use strict";
|
|
65912
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
65913
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65914
|
-
});
|
|
65915
|
-
|
|
65916
|
-
|
|
65917
65349
|
define("library/sdk/model/createUserRequest", ["require", "exports"], function (require, exports) {
|
|
65918
65350
|
"use strict";
|
|
65919
65351
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -65928,22 +65360,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
65928
65360
|
});
|
|
65929
65361
|
|
|
65930
65362
|
|
|
65931
|
-
define("library/sdk/model/createUserThirdPartyRequest", ["require", "exports"], function (require, exports) {
|
|
65932
|
-
"use strict";
|
|
65933
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
65934
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65935
|
-
});
|
|
65936
|
-
|
|
65937
|
-
|
|
65938
|
-
define("library/sdk/model/createUserThirdPartyResponse", ["require", "exports"], function (require, exports) {
|
|
65939
|
-
"use strict";
|
|
65940
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
65941
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65942
|
-
exports.CreateUserThirdPartyResponseStatusEnumValues = void 0;
|
|
65943
|
-
exports.CreateUserThirdPartyResponseStatusEnumValues = ['userWasCreated', 'userNotManagedByThirdParty', 'userAlreadyExists'];
|
|
65944
|
-
});
|
|
65945
|
-
|
|
65946
|
-
|
|
65947
65363
|
define("library/sdk/model/createWebhookDestinationRequest", ["require", "exports"], function (require, exports) {
|
|
65948
65364
|
"use strict";
|
|
65949
65365
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -66445,7 +65861,7 @@ define("library/sdk/model/deploymentTargetEngine", ["require", "exports"], funct
|
|
|
66445
65861
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
66446
65862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66447
65863
|
exports.DeploymentTargetEngineValues = void 0;
|
|
66448
|
-
exports.DeploymentTargetEngineValues = ['tflite', 'tflite-eon', 'tflite-eon-ram-optimized', 'tensorrt', 'tensaiflow', 'drp-ai', 'tidl', 'akida', 'syntiant', 'memryx', 'neox', 'ethos-linux', 'st-aton', 'ceva-npn', 'nordic-axon', 'vlm-connector'];
|
|
65864
|
+
exports.DeploymentTargetEngineValues = ['tflite', 'tflite-eon', 'tflite-eon-ram-optimized', 'tensorrt', 'tensaiflow', 'drp-ai', 'tidl', 'akida', 'syntiant', 'memryx', 'neox', 'ethos-linux', 'st-aton', 'ceva-npn', 'nordic-axon', 'vlm-connector', 'qaic'];
|
|
66449
65865
|
});
|
|
66450
65866
|
|
|
66451
65867
|
|
|
@@ -66955,13 +66371,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
66955
66371
|
});
|
|
66956
66372
|
|
|
66957
66373
|
|
|
66958
|
-
define("library/sdk/model/getAllThirdPartyAuthResponse", ["require", "exports"], function (require, exports) {
|
|
66959
|
-
"use strict";
|
|
66960
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
66961
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66962
|
-
});
|
|
66963
|
-
|
|
66964
|
-
|
|
66965
66374
|
define("library/sdk/model/getAllTransferLearningModelsResponse", ["require", "exports"], function (require, exports) {
|
|
66966
66375
|
"use strict";
|
|
66967
66376
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -67553,13 +66962,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
67553
66962
|
});
|
|
67554
66963
|
|
|
67555
66964
|
|
|
67556
|
-
define("library/sdk/model/getThirdPartyAuthResponse", ["require", "exports"], function (require, exports) {
|
|
67557
|
-
"use strict";
|
|
67558
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
67559
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67560
|
-
});
|
|
67561
|
-
|
|
67562
|
-
|
|
67563
66965
|
define("library/sdk/model/getUserNeedToSetPasswordResponse", ["require", "exports"], function (require, exports) {
|
|
67564
66966
|
"use strict";
|
|
67565
66967
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -68569,7 +67971,6 @@ __exportStar(require("./apiKeyExtension"), exports);
|
|
|
68569
67971
|
__exportStar(require("./applicationBudget"), exports);
|
|
68570
67972
|
__exportStar(require("./augmentationPolicyImageEnum"), exports);
|
|
68571
67973
|
__exportStar(require("./augmentationPolicySpectrogram"), exports);
|
|
68572
|
-
__exportStar(require("./authorizeThirdPartyRequest"), exports);
|
|
68573
67974
|
__exportStar(require("./autotuneDspRequest"), exports);
|
|
68574
67975
|
__exportStar(require("./backToLabelingRequest"), exports);
|
|
68575
67976
|
__exportStar(require("./batchAddMetadataRequest"), exports);
|
|
@@ -68636,12 +68037,8 @@ __exportStar(require("./createSignedUploadLinkResponse"), exports);
|
|
|
68636
68037
|
__exportStar(require("./createSyntheticDataRequest"), exports);
|
|
68637
68038
|
__exportStar(require("./createTestUserRequest"), exports);
|
|
68638
68039
|
__exportStar(require("./createTestUserResponse"), exports);
|
|
68639
|
-
__exportStar(require("./createThirdPartyAuthRequest"), exports);
|
|
68640
|
-
__exportStar(require("./createThirdPartyAuthResponse"), exports);
|
|
68641
68040
|
__exportStar(require("./createUserRequest"), exports);
|
|
68642
68041
|
__exportStar(require("./createUserResponse"), exports);
|
|
68643
|
-
__exportStar(require("./createUserThirdPartyRequest"), exports);
|
|
68644
|
-
__exportStar(require("./createUserThirdPartyResponse"), exports);
|
|
68645
68042
|
__exportStar(require("./createWebhookDestinationRequest"), exports);
|
|
68646
68043
|
__exportStar(require("./createWebhookDestinationResponse"), exports);
|
|
68647
68044
|
__exportStar(require("./createWhitelabelRequest"), exports);
|
|
@@ -68775,7 +68172,6 @@ __exportStar(require("./getAIActionsProposedChangesResponse"), exports);
|
|
|
68775
68172
|
__exportStar(require("./getAllDetailedImpulsesResponse"), exports);
|
|
68776
68173
|
__exportStar(require("./getAllImportedFromResponse"), exports);
|
|
68777
68174
|
__exportStar(require("./getAllImpulsesResponse"), exports);
|
|
68778
|
-
__exportStar(require("./getAllThirdPartyAuthResponse"), exports);
|
|
68779
68175
|
__exportStar(require("./getAllTransferLearningModelsResponse"), exports);
|
|
68780
68176
|
__exportStar(require("./getAllWhitelabelsResponse"), exports);
|
|
68781
68177
|
__exportStar(require("./getAutoLabelerResponse"), exports);
|
|
@@ -68858,7 +68254,6 @@ __exportStar(require("./getSyntiantPosteriorResponse"), exports);
|
|
|
68858
68254
|
__exportStar(require("./getTargetConstraintsResponse"), exports);
|
|
68859
68255
|
__exportStar(require("./getThemeResponse"), exports);
|
|
68860
68256
|
__exportStar(require("./getThemesResponse"), exports);
|
|
68861
|
-
__exportStar(require("./getThirdPartyAuthResponse"), exports);
|
|
68862
68257
|
__exportStar(require("./getUserNeedToSetPasswordResponse"), exports);
|
|
68863
68258
|
__exportStar(require("./getUserProjectsResponse"), exports);
|
|
68864
68259
|
__exportStar(require("./getUserResponse"), exports);
|
|
@@ -69218,7 +68613,6 @@ __exportStar(require("./testPretrainedModelRequest"), exports);
|
|
|
69218
68613
|
__exportStar(require("./testPretrainedModelResponse"), exports);
|
|
69219
68614
|
__exportStar(require("./testWebhookDestinationResponse"), exports);
|
|
69220
68615
|
__exportStar(require("./theme"), exports);
|
|
69221
|
-
__exportStar(require("./thirdPartyAuth"), exports);
|
|
69222
68616
|
__exportStar(require("./thresholdValue"), exports);
|
|
69223
68617
|
__exportStar(require("./timeSeriesDataPoint"), exports);
|
|
69224
68618
|
__exportStar(require("./trackObjectsRequest"), exports);
|
|
@@ -69261,7 +68655,6 @@ __exportStar(require("./updateProjectRequest"), exports);
|
|
|
69261
68655
|
__exportStar(require("./updateProjectTagsRequest"), exports);
|
|
69262
68656
|
__exportStar(require("./updateThemeColorsRequest"), exports);
|
|
69263
68657
|
__exportStar(require("./updateThemeLogosRequest"), exports);
|
|
69264
|
-
__exportStar(require("./updateThirdPartyAuthRequest"), exports);
|
|
69265
68658
|
__exportStar(require("./updateTunerRunRequest"), exports);
|
|
69266
68659
|
__exportStar(require("./updateUserRequest"), exports);
|
|
69267
68660
|
__exportStar(require("./updateVersionRequest"), exports);
|
|
@@ -69314,6 +68707,7 @@ __exportStar(require("./vlmCandidateLabelsSingle"), exports);
|
|
|
69314
68707
|
__exportStar(require("./vlmConfigResponse"), exports);
|
|
69315
68708
|
__exportStar(require("./vlmConfiguration"), exports);
|
|
69316
68709
|
__exportStar(require("./vlmConfigurationBase"), exports);
|
|
68710
|
+
__exportStar(require("./vlmConfigurationBaseImageResize"), exports);
|
|
69317
68711
|
__exportStar(require("./vlmGetAllModelsResponse"), exports);
|
|
69318
68712
|
__exportStar(require("./vlmGetInferenceResultsResponse"), exports);
|
|
69319
68713
|
__exportStar(require("./vlmGetModelResponse"), exports);
|
|
@@ -70147,7 +69541,7 @@ define("library/sdk/model/permission", ["require", "exports"], function (require
|
|
|
70147
69541
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
70148
69542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70149
69543
|
exports.PermissionValues = void 0;
|
|
70150
|
-
exports.PermissionValues = ['admin:infra:disallowedEmailDomains:read', 'admin:infra:disallowedEmailDomains:write', 'admin:infra:featureFlags:read', 'admin:infra:featureFlags:write', 'admin:infra:config:read', 'admin:infra:config:write', 'admin:infra:migrations:read', 'admin:infra:migrations:write', 'admin:metrics:read', 'admin:metrics:write', 'admin:oauth:read', 'admin:oauth:write', 'admin:organizations:read', 'admin:organizations:write', 'admin:organizations:members:write', 'admin:projects:members:write', 'admin:projects:read', 'admin:projects:write', 'admin:trashbin:write', 'admin:trials:read', 'admin:trials:write', 'admin:users:permissions:write', 'admin:users:read', 'admin:users:signupApprovals:read', 'admin:users:signupApprovals:write', 'admin:users:write', 'admin:jobs:read', 'admin:emails:verification:code:read', 'admin:sso:read', 'admin:sso:domainIdps:write', 'admin:vlm:model:read', 'admin:vlm:model:write', 'projects:limits:write', 'projects:training:keras:write', 'projects:data:versioning:write', '
|
|
69544
|
+
exports.PermissionValues = ['admin:infra:datasetVersioning:queue:write', 'admin:infra:disallowedEmailDomains:read', 'admin:infra:disallowedEmailDomains:write', 'admin:infra:featureFlags:read', 'admin:infra:featureFlags:write', 'admin:infra:config:read', 'admin:infra:config:write', 'admin:infra:migrations:read', 'admin:infra:migrations:write', 'admin:metrics:read', 'admin:metrics:write', 'admin:oauth:read', 'admin:oauth:write', 'admin:organizations:read', 'admin:organizations:write', 'admin:organizations:members:write', 'admin:projects:members:write', 'admin:projects:read', 'admin:projects:write', 'admin:trashbin:write', 'admin:trials:read', 'admin:trials:write', 'admin:users:permissions:write', 'admin:users:read', 'admin:users:signupApprovals:read', 'admin:users:signupApprovals:write', 'admin:users:write', 'admin:jobs:read', 'admin:emails:verification:code:read', 'admin:sso:read', 'admin:sso:domainIdps:write', 'admin:vlm:model:read', 'admin:vlm:model:write', 'projects:limits:write', 'projects:training:keras:write', 'projects:data:versioning:write', 'users:emails:read', 'whitelabels:read', 'whitelabels:write', 'test:data:write', 'test:users:read', 'test:users:write'];
|
|
70151
69545
|
});
|
|
70152
69546
|
|
|
70153
69547
|
|
|
@@ -71339,13 +70733,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
71339
70733
|
});
|
|
71340
70734
|
|
|
71341
70735
|
|
|
71342
|
-
define("library/sdk/model/thirdPartyAuth", ["require", "exports"], function (require, exports) {
|
|
71343
|
-
"use strict";
|
|
71344
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
71345
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71346
|
-
});
|
|
71347
|
-
|
|
71348
|
-
|
|
71349
70736
|
define("library/sdk/model/thresholdValue", ["require", "exports"], function (require, exports) {
|
|
71350
70737
|
"use strict";
|
|
71351
70738
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -71661,13 +71048,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
71661
71048
|
});
|
|
71662
71049
|
|
|
71663
71050
|
|
|
71664
|
-
define("library/sdk/model/updateThirdPartyAuthRequest", ["require", "exports"], function (require, exports) {
|
|
71665
|
-
"use strict";
|
|
71666
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
71667
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71668
|
-
});
|
|
71669
|
-
|
|
71670
|
-
|
|
71671
71051
|
define("library/sdk/model/updateTunerRunRequest", ["require", "exports"], function (require, exports) {
|
|
71672
71052
|
"use strict";
|
|
71673
71053
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -72050,6 +71430,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
72050
71430
|
});
|
|
72051
71431
|
|
|
72052
71432
|
|
|
71433
|
+
define("library/sdk/model/vlmConfigurationBaseImageResize", ["require", "exports"], function (require, exports) {
|
|
71434
|
+
"use strict";
|
|
71435
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
71436
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71437
|
+
});
|
|
71438
|
+
|
|
71439
|
+
|
|
72053
71440
|
define("library/sdk/model/vlmGetAllModelsResponse", ["require", "exports"], function (require, exports) {
|
|
72054
71441
|
"use strict";
|
|
72055
71442
|
// Generated by studio/openapi/generate-models/convert.ts
|