edge-impulse-api 1.93.10 → 1.93.12
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 +508 -2
- package/build/browser/edge-impulse-api.js +1250 -130
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/apis.d.ts +3 -1
- package/build/library/sdk/api/apis.js +3 -1
- package/build/library/sdk/api/apis.js.map +1 -1
- package/build/library/sdk/api/monitoringApi.d.ts +204 -0
- package/build/library/sdk/api/monitoringApi.js +985 -0
- package/build/library/sdk/api/monitoringApi.js.map +1 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.d.ts +24 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.js +4 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.js.map +1 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.d.ts +12 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.js +4 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.js.map +1 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.d.ts +10 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.js +4 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.js.map +1 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.d.ts +20 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/eventSubscription.d.ts +32 -0
- package/build/library/sdk/model/eventSubscription.js +4 -0
- package/build/library/sdk/model/eventSubscription.js.map +1 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.d.ts +12 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.js +4 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.js.map +1 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.d.ts +12 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.d.ts +12 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.js +4 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.js.map +1 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.js +4 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.js.map +1 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.d.ts +12 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.js +4 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +16 -0
- package/build/library/sdk/model/models.js +16 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/monitoringEvent.d.ts +34 -0
- package/build/library/sdk/model/monitoringEvent.js +6 -0
- package/build/library/sdk/model/monitoringEvent.js.map +1 -0
- package/build/library/sdk/model/oAuthScope.d.ts +1 -1
- package/build/library/sdk/model/oAuthScope.js +1 -1
- package/build/library/sdk/model/oAuthScope.js.map +1 -1
- package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.d.ts +15 -0
- package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js +4 -0
- package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js.map +1 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.d.ts +20 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.d.ts +24 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.js +4 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.js.map +1 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.d.ts +14 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.js +4 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.js.map +1 -0
- package/build/library/sdk/model/webhookDestination.d.ts +26 -0
- package/build/library/sdk/model/webhookDestination.js +4 -0
- package/build/library/sdk/model/webhookDestination.js.map +1 -0
- package/package.json +1 -1
|
@@ -7655,6 +7655,8 @@ __exportStar(require("./loginApi"), exports);
|
|
|
7655
7655
|
const loginApi_1 = require("./loginApi");
|
|
7656
7656
|
__exportStar(require("./metricsApi"), exports);
|
|
7657
7657
|
const metricsApi_1 = require("./metricsApi");
|
|
7658
|
+
__exportStar(require("./monitoringApi"), exports);
|
|
7659
|
+
const monitoringApi_1 = require("./monitoringApi");
|
|
7658
7660
|
__exportStar(require("./optimizationApi"), exports);
|
|
7659
7661
|
const optimizationApi_1 = require("./optimizationApi");
|
|
7660
7662
|
__exportStar(require("./organizationBlocksApi"), exports);
|
|
@@ -7705,7 +7707,7 @@ class HttpError extends Error {
|
|
|
7705
7707
|
}
|
|
7706
7708
|
}
|
|
7707
7709
|
exports.HttpError = HttpError;
|
|
7708
|
-
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, 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, thirdPartyAuthApi_1.ThirdPartyAuthApi, uploadPortalApi_1.UploadPortalApi, userApi_1.UserApi, vlmApi_1.VlmApi, whitelabelsApi_1.WhitelabelsApi];
|
|
7710
|
+
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, thirdPartyAuthApi_1.ThirdPartyAuthApi, uploadPortalApi_1.UploadPortalApi, userApi_1.UserApi, vlmApi_1.VlmApi, whitelabelsApi_1.WhitelabelsApi];
|
|
7709
7711
|
});
|
|
7710
7712
|
|
|
7711
7713
|
|
|
@@ -22148,7 +22150,7 @@ exports.MetricsApi = MetricsApi;
|
|
|
22148
22150
|
});
|
|
22149
22151
|
|
|
22150
22152
|
|
|
22151
|
-
define("library/sdk/api/
|
|
22153
|
+
define("library/sdk/api/monitoringApi", ["require", "exports"], function (require, exports) {
|
|
22152
22154
|
"use strict";
|
|
22153
22155
|
/**
|
|
22154
22156
|
* Edge Impulse API
|
|
@@ -22162,7 +22164,7 @@ define("library/sdk/api/optimizationApi", ["require", "exports"], function (requ
|
|
|
22162
22164
|
* Do not edit the class manually.
|
|
22163
22165
|
*/
|
|
22164
22166
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22165
|
-
exports.
|
|
22167
|
+
exports.MonitoringApi = exports.MonitoringApiApiKeys = void 0;
|
|
22166
22168
|
let fetch;
|
|
22167
22169
|
let FormData;
|
|
22168
22170
|
if (globalThis.fetch && globalThis.FormData) {
|
|
@@ -22180,13 +22182,13 @@ let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
|
22180
22182
|
// ===============================================
|
|
22181
22183
|
// This file is autogenerated - Please do not edit
|
|
22182
22184
|
// ===============================================
|
|
22183
|
-
var
|
|
22184
|
-
(function (
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
})(
|
|
22189
|
-
class
|
|
22185
|
+
var MonitoringApiApiKeys;
|
|
22186
|
+
(function (MonitoringApiApiKeys) {
|
|
22187
|
+
MonitoringApiApiKeys[MonitoringApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
|
|
22188
|
+
MonitoringApiApiKeys[MonitoringApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
|
|
22189
|
+
MonitoringApiApiKeys[MonitoringApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
|
|
22190
|
+
})(MonitoringApiApiKeys = exports.MonitoringApiApiKeys || (exports.MonitoringApiApiKeys = {}));
|
|
22191
|
+
class MonitoringApi {
|
|
22190
22192
|
async handleResponse(response, returnType) {
|
|
22191
22193
|
let body = await (0, models_1.parseResponse)(response);
|
|
22192
22194
|
if (!response.ok) {
|
|
@@ -22244,22 +22246,20 @@ class OptimizationApi {
|
|
|
22244
22246
|
this.authentications.default = auth;
|
|
22245
22247
|
}
|
|
22246
22248
|
setApiKey(key, value) {
|
|
22247
|
-
this.authentications[
|
|
22249
|
+
this.authentications[MonitoringApiApiKeys[key]].apiKey = value;
|
|
22248
22250
|
}
|
|
22249
22251
|
set accessToken(token) {
|
|
22250
22252
|
this.authentications.OAuth2.accessToken = token;
|
|
22251
22253
|
}
|
|
22252
22254
|
/**
|
|
22253
|
-
*
|
|
22254
|
-
* @summary
|
|
22255
|
+
* Create a monitoring event subscription for this project.
|
|
22256
|
+
* @summary Create event subscription
|
|
22255
22257
|
* @param projectId Project ID
|
|
22256
|
-
* @param
|
|
22257
|
-
* @param tunerCompleteSearch
|
|
22258
|
+
* @param createEventSubscriptionRequest
|
|
22258
22259
|
*/
|
|
22259
|
-
async
|
|
22260
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22261
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22262
|
-
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
22260
|
+
async createEventSubscription(projectId, createEventSubscriptionRequest, options = { headers: {} }) {
|
|
22261
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/event-subscriptions'
|
|
22262
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
22263
22263
|
let queryParameters = {};
|
|
22264
22264
|
let localVarHeaderParams = {
|
|
22265
22265
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22277,15 +22277,79 @@ class OptimizationApi {
|
|
|
22277
22277
|
let localVarFormParams;
|
|
22278
22278
|
// verify required parameter 'projectId' is not null or undefined
|
|
22279
22279
|
if (projectId === null || projectId === undefined) {
|
|
22280
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22280
|
+
throw new Error('Required parameter projectId was null or undefined when calling createEventSubscription.');
|
|
22281
22281
|
}
|
|
22282
|
-
// verify required parameter '
|
|
22283
|
-
if (
|
|
22284
|
-
throw new Error('Required parameter
|
|
22282
|
+
// verify required parameter 'createEventSubscriptionRequest' is not null or undefined
|
|
22283
|
+
if (createEventSubscriptionRequest === null || createEventSubscriptionRequest === undefined) {
|
|
22284
|
+
throw new Error('Required parameter createEventSubscriptionRequest was null or undefined when calling createEventSubscription.');
|
|
22285
22285
|
}
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22286
|
+
localVarHeaderParams = {
|
|
22287
|
+
...localVarHeaderParams,
|
|
22288
|
+
...options.headers,
|
|
22289
|
+
...this.opts.extraHeaders,
|
|
22290
|
+
};
|
|
22291
|
+
const queryString = Object.entries(queryParameters)
|
|
22292
|
+
.filter(([, value]) => value !== undefined)
|
|
22293
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
22294
|
+
.join('&');
|
|
22295
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22296
|
+
let localVarRequestOptions = {
|
|
22297
|
+
method: 'POST',
|
|
22298
|
+
headers: { ...localVarHeaderParams },
|
|
22299
|
+
};
|
|
22300
|
+
localVarRequestOptions.body = JSON.stringify(createEventSubscriptionRequest);
|
|
22301
|
+
let requestOptions = localVarRequestOptions;
|
|
22302
|
+
let url = localVarUrl;
|
|
22303
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
22304
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
22305
|
+
url = auth_ApiKeyAuthentication.url;
|
|
22306
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
22307
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
22308
|
+
url = auth_JWTAuthentication.url;
|
|
22309
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
22310
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
22311
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
22312
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
22313
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
22314
|
+
url = auth_OAuth2.url;
|
|
22315
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
22316
|
+
requestOptions = authDefault.requestOptions;
|
|
22317
|
+
url = authDefault.url;
|
|
22318
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22319
|
+
const response = await fetch(url, requestOptions);
|
|
22320
|
+
return this.handleResponse(response, 'CreateEventSubscriptionResponse');
|
|
22321
|
+
}
|
|
22322
|
+
/**
|
|
22323
|
+
* Create a new webhook destination for this project.
|
|
22324
|
+
* @summary Create a new webhook destination
|
|
22325
|
+
* @param projectId Project ID
|
|
22326
|
+
* @param createWebhookDestinationRequest
|
|
22327
|
+
*/
|
|
22328
|
+
async createWebhookDestination(projectId, createWebhookDestinationRequest, options = { headers: {} }) {
|
|
22329
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks'
|
|
22330
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
22331
|
+
let queryParameters = {};
|
|
22332
|
+
let localVarHeaderParams = {
|
|
22333
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
22334
|
+
'Content-Type': 'application/json',
|
|
22335
|
+
...this.defaultHeaders,
|
|
22336
|
+
};
|
|
22337
|
+
const produces = ['application/json'];
|
|
22338
|
+
// give precedence to 'application/json'
|
|
22339
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
22340
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
22341
|
+
}
|
|
22342
|
+
else {
|
|
22343
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
22344
|
+
}
|
|
22345
|
+
let localVarFormParams;
|
|
22346
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
22347
|
+
if (projectId === null || projectId === undefined) {
|
|
22348
|
+
throw new Error('Required parameter projectId was null or undefined when calling createWebhookDestination.');
|
|
22349
|
+
}
|
|
22350
|
+
// verify required parameter 'createWebhookDestinationRequest' is not null or undefined
|
|
22351
|
+
if (createWebhookDestinationRequest === null || createWebhookDestinationRequest === undefined) {
|
|
22352
|
+
throw new Error('Required parameter createWebhookDestinationRequest was null or undefined when calling createWebhookDestination.');
|
|
22289
22353
|
}
|
|
22290
22354
|
localVarHeaderParams = {
|
|
22291
22355
|
...localVarHeaderParams,
|
|
@@ -22301,7 +22365,7 @@ class OptimizationApi {
|
|
|
22301
22365
|
method: 'POST',
|
|
22302
22366
|
headers: { ...localVarHeaderParams },
|
|
22303
22367
|
};
|
|
22304
|
-
localVarRequestOptions.body = JSON.stringify(
|
|
22368
|
+
localVarRequestOptions.body = JSON.stringify(createWebhookDestinationRequest);
|
|
22305
22369
|
let requestOptions = localVarRequestOptions;
|
|
22306
22370
|
let url = localVarUrl;
|
|
22307
22371
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -22321,19 +22385,18 @@ class OptimizationApi {
|
|
|
22321
22385
|
url = authDefault.url;
|
|
22322
22386
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22323
22387
|
const response = await fetch(url, requestOptions);
|
|
22324
|
-
return this.handleResponse(response, '
|
|
22388
|
+
return this.handleResponse(response, 'CreateWebhookDestinationResponse');
|
|
22325
22389
|
}
|
|
22326
22390
|
/**
|
|
22327
|
-
*
|
|
22328
|
-
* @summary
|
|
22391
|
+
* Delete a monitoring event subscription.
|
|
22392
|
+
* @summary Delete event subscription
|
|
22329
22393
|
* @param projectId Project ID
|
|
22330
|
-
* @param
|
|
22331
|
-
* @param tunerCreateTrialImpulse
|
|
22394
|
+
* @param eventSubscriptionId Event subscription ID
|
|
22332
22395
|
*/
|
|
22333
|
-
async
|
|
22334
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22396
|
+
async deleteEventSubscription(projectId, eventSubscriptionId, options = { headers: {} }) {
|
|
22397
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/event-subscriptions/{eventSubscriptionId}'
|
|
22335
22398
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22336
|
-
.replace('{' + '
|
|
22399
|
+
.replace('{' + 'eventSubscriptionId' + '}', encodeURIComponent(String(eventSubscriptionId)));
|
|
22337
22400
|
let queryParameters = {};
|
|
22338
22401
|
let localVarHeaderParams = {
|
|
22339
22402
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22351,15 +22414,11 @@ class OptimizationApi {
|
|
|
22351
22414
|
let localVarFormParams;
|
|
22352
22415
|
// verify required parameter 'projectId' is not null or undefined
|
|
22353
22416
|
if (projectId === null || projectId === undefined) {
|
|
22354
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22355
|
-
}
|
|
22356
|
-
// verify required parameter 'jobId' is not null or undefined
|
|
22357
|
-
if (jobId === null || jobId === undefined) {
|
|
22358
|
-
throw new Error('Required parameter jobId was null or undefined when calling createTrial.');
|
|
22417
|
+
throw new Error('Required parameter projectId was null or undefined when calling deleteEventSubscription.');
|
|
22359
22418
|
}
|
|
22360
|
-
// verify required parameter '
|
|
22361
|
-
if (
|
|
22362
|
-
throw new Error('Required parameter
|
|
22419
|
+
// verify required parameter 'eventSubscriptionId' is not null or undefined
|
|
22420
|
+
if (eventSubscriptionId === null || eventSubscriptionId === undefined) {
|
|
22421
|
+
throw new Error('Required parameter eventSubscriptionId was null or undefined when calling deleteEventSubscription.');
|
|
22363
22422
|
}
|
|
22364
22423
|
localVarHeaderParams = {
|
|
22365
22424
|
...localVarHeaderParams,
|
|
@@ -22372,10 +22431,9 @@ class OptimizationApi {
|
|
|
22372
22431
|
.join('&');
|
|
22373
22432
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22374
22433
|
let localVarRequestOptions = {
|
|
22375
|
-
method: '
|
|
22434
|
+
method: 'DELETE',
|
|
22376
22435
|
headers: { ...localVarHeaderParams },
|
|
22377
22436
|
};
|
|
22378
|
-
localVarRequestOptions.body = JSON.stringify(tunerCreateTrialImpulse);
|
|
22379
22437
|
let requestOptions = localVarRequestOptions;
|
|
22380
22438
|
let url = localVarUrl;
|
|
22381
22439
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -22398,13 +22456,15 @@ class OptimizationApi {
|
|
|
22398
22456
|
return this.handleResponse(response, 'GenericApiResponse');
|
|
22399
22457
|
}
|
|
22400
22458
|
/**
|
|
22401
|
-
*
|
|
22402
|
-
* @summary Delete
|
|
22459
|
+
* Delete a webhook destination.
|
|
22460
|
+
* @summary Delete webhook destination
|
|
22403
22461
|
* @param projectId Project ID
|
|
22462
|
+
* @param webhookId Webhook destination ID
|
|
22404
22463
|
*/
|
|
22405
|
-
async
|
|
22406
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22407
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22464
|
+
async deleteWebhookDestination(projectId, webhookId, options = { headers: {} }) {
|
|
22465
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks/{webhookId}'
|
|
22466
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22467
|
+
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
22408
22468
|
let queryParameters = {};
|
|
22409
22469
|
let localVarHeaderParams = {
|
|
22410
22470
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22422,7 +22482,11 @@ class OptimizationApi {
|
|
|
22422
22482
|
let localVarFormParams;
|
|
22423
22483
|
// verify required parameter 'projectId' is not null or undefined
|
|
22424
22484
|
if (projectId === null || projectId === undefined) {
|
|
22425
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22485
|
+
throw new Error('Required parameter projectId was null or undefined when calling deleteWebhookDestination.');
|
|
22486
|
+
}
|
|
22487
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
22488
|
+
if (webhookId === null || webhookId === undefined) {
|
|
22489
|
+
throw new Error('Required parameter webhookId was null or undefined when calling deleteWebhookDestination.');
|
|
22426
22490
|
}
|
|
22427
22491
|
localVarHeaderParams = {
|
|
22428
22492
|
...localVarHeaderParams,
|
|
@@ -22460,17 +22524,15 @@ class OptimizationApi {
|
|
|
22460
22524
|
return this.handleResponse(response, 'GenericApiResponse');
|
|
22461
22525
|
}
|
|
22462
22526
|
/**
|
|
22463
|
-
*
|
|
22464
|
-
* @summary
|
|
22527
|
+
* Get details about a monitoring event subscription.
|
|
22528
|
+
* @summary Get event subscription
|
|
22465
22529
|
* @param projectId Project ID
|
|
22466
|
-
* @param
|
|
22467
|
-
* @param trialId trial ID
|
|
22530
|
+
* @param eventSubscriptionId Event subscription ID
|
|
22468
22531
|
*/
|
|
22469
|
-
async
|
|
22470
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22532
|
+
async getEventSubscription(projectId, eventSubscriptionId, options = { headers: {} }) {
|
|
22533
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/event-subscriptions/{eventSubscriptionId}'
|
|
22471
22534
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22472
|
-
.replace('{' + '
|
|
22473
|
-
.replace('{' + 'trialId' + '}', encodeURIComponent(String(trialId)));
|
|
22535
|
+
.replace('{' + 'eventSubscriptionId' + '}', encodeURIComponent(String(eventSubscriptionId)));
|
|
22474
22536
|
let queryParameters = {};
|
|
22475
22537
|
let localVarHeaderParams = {
|
|
22476
22538
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22488,15 +22550,11 @@ class OptimizationApi {
|
|
|
22488
22550
|
let localVarFormParams;
|
|
22489
22551
|
// verify required parameter 'projectId' is not null or undefined
|
|
22490
22552
|
if (projectId === null || projectId === undefined) {
|
|
22491
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22492
|
-
}
|
|
22493
|
-
// verify required parameter 'jobId' is not null or undefined
|
|
22494
|
-
if (jobId === null || jobId === undefined) {
|
|
22495
|
-
throw new Error('Required parameter jobId was null or undefined when calling endTrial.');
|
|
22553
|
+
throw new Error('Required parameter projectId was null or undefined when calling getEventSubscription.');
|
|
22496
22554
|
}
|
|
22497
|
-
// verify required parameter '
|
|
22498
|
-
if (
|
|
22499
|
-
throw new Error('Required parameter
|
|
22555
|
+
// verify required parameter 'eventSubscriptionId' is not null or undefined
|
|
22556
|
+
if (eventSubscriptionId === null || eventSubscriptionId === undefined) {
|
|
22557
|
+
throw new Error('Required parameter eventSubscriptionId was null or undefined when calling getEventSubscription.');
|
|
22500
22558
|
}
|
|
22501
22559
|
localVarHeaderParams = {
|
|
22502
22560
|
...localVarHeaderParams,
|
|
@@ -22531,16 +22589,18 @@ class OptimizationApi {
|
|
|
22531
22589
|
url = authDefault.url;
|
|
22532
22590
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22533
22591
|
const response = await fetch(url, requestOptions);
|
|
22534
|
-
return this.handleResponse(response, '
|
|
22592
|
+
return this.handleResponse(response, 'GetEventSubscriptionResponse');
|
|
22535
22593
|
}
|
|
22536
22594
|
/**
|
|
22537
|
-
*
|
|
22538
|
-
* @summary Get
|
|
22595
|
+
* Get details about a webhook destination.
|
|
22596
|
+
* @summary Get webhook destination
|
|
22539
22597
|
* @param projectId Project ID
|
|
22598
|
+
* @param webhookId Webhook destination ID
|
|
22540
22599
|
*/
|
|
22541
|
-
async
|
|
22542
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22543
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22600
|
+
async getWebhookDestination(projectId, webhookId, options = { headers: {} }) {
|
|
22601
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks/{webhookId}'
|
|
22602
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22603
|
+
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
22544
22604
|
let queryParameters = {};
|
|
22545
22605
|
let localVarHeaderParams = {
|
|
22546
22606
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22558,7 +22618,11 @@ class OptimizationApi {
|
|
|
22558
22618
|
let localVarFormParams;
|
|
22559
22619
|
// verify required parameter 'projectId' is not null or undefined
|
|
22560
22620
|
if (projectId === null || projectId === undefined) {
|
|
22561
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22621
|
+
throw new Error('Required parameter projectId was null or undefined when calling getWebhookDestination.');
|
|
22622
|
+
}
|
|
22623
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
22624
|
+
if (webhookId === null || webhookId === undefined) {
|
|
22625
|
+
throw new Error('Required parameter webhookId was null or undefined when calling getWebhookDestination.');
|
|
22562
22626
|
}
|
|
22563
22627
|
localVarHeaderParams = {
|
|
22564
22628
|
...localVarHeaderParams,
|
|
@@ -22593,15 +22657,15 @@ class OptimizationApi {
|
|
|
22593
22657
|
url = authDefault.url;
|
|
22594
22658
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22595
22659
|
const response = await fetch(url, requestOptions);
|
|
22596
|
-
return this.handleResponse(response, '
|
|
22660
|
+
return this.handleResponse(response, 'GetWebhookDestinationResponse');
|
|
22597
22661
|
}
|
|
22598
22662
|
/**
|
|
22599
|
-
*
|
|
22600
|
-
* @summary
|
|
22663
|
+
* List all monitoring event subscriptions for this project.
|
|
22664
|
+
* @summary List event subscriptions
|
|
22601
22665
|
* @param projectId Project ID
|
|
22602
22666
|
*/
|
|
22603
|
-
async
|
|
22604
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22667
|
+
async listEventSubscriptions(projectId, options = { headers: {} }) {
|
|
22668
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/event-subscriptions'
|
|
22605
22669
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
22606
22670
|
let queryParameters = {};
|
|
22607
22671
|
let localVarHeaderParams = {
|
|
@@ -22620,7 +22684,7 @@ class OptimizationApi {
|
|
|
22620
22684
|
let localVarFormParams;
|
|
22621
22685
|
// verify required parameter 'projectId' is not null or undefined
|
|
22622
22686
|
if (projectId === null || projectId === undefined) {
|
|
22623
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22687
|
+
throw new Error('Required parameter projectId was null or undefined when calling listEventSubscriptions.');
|
|
22624
22688
|
}
|
|
22625
22689
|
localVarHeaderParams = {
|
|
22626
22690
|
...localVarHeaderParams,
|
|
@@ -22655,15 +22719,16 @@ class OptimizationApi {
|
|
|
22655
22719
|
url = authDefault.url;
|
|
22656
22720
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22657
22721
|
const response = await fetch(url, requestOptions);
|
|
22658
|
-
return this.handleResponse(response, '
|
|
22722
|
+
return this.handleResponse(response, 'ListEventSubscriptionsResponse');
|
|
22659
22723
|
}
|
|
22660
22724
|
/**
|
|
22661
|
-
*
|
|
22662
|
-
* @summary
|
|
22725
|
+
* List recent monitoring events generated for this project.
|
|
22726
|
+
* @summary List recent monitoring events
|
|
22663
22727
|
* @param projectId Project ID
|
|
22728
|
+
* @param limit Number of recent events to fetch. Maximum is 100. Defaults to 20.
|
|
22664
22729
|
*/
|
|
22665
|
-
async
|
|
22666
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22730
|
+
async listMonitoringEvents(projectId, queryParams, options = { headers: {} }) {
|
|
22731
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/events'
|
|
22667
22732
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
22668
22733
|
let queryParameters = {};
|
|
22669
22734
|
let localVarHeaderParams = {
|
|
@@ -22682,7 +22747,10 @@ class OptimizationApi {
|
|
|
22682
22747
|
let localVarFormParams;
|
|
22683
22748
|
// verify required parameter 'projectId' is not null or undefined
|
|
22684
22749
|
if (projectId === null || projectId === undefined) {
|
|
22685
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22750
|
+
throw new Error('Required parameter projectId was null or undefined when calling listMonitoringEvents.');
|
|
22751
|
+
}
|
|
22752
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== null) {
|
|
22753
|
+
queryParameters['limit'] = queryParams.limit;
|
|
22686
22754
|
}
|
|
22687
22755
|
localVarHeaderParams = {
|
|
22688
22756
|
...localVarHeaderParams,
|
|
@@ -22717,17 +22785,15 @@ class OptimizationApi {
|
|
|
22717
22785
|
url = authDefault.url;
|
|
22718
22786
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22719
22787
|
const response = await fetch(url, requestOptions);
|
|
22720
|
-
return this.handleResponse(response, '
|
|
22788
|
+
return this.handleResponse(response, 'ListMonitoringEventsResponse');
|
|
22721
22789
|
}
|
|
22722
22790
|
/**
|
|
22723
|
-
*
|
|
22724
|
-
* @summary
|
|
22791
|
+
* List all webhook destinations for this project.
|
|
22792
|
+
* @summary List webhook destinations
|
|
22725
22793
|
* @param projectId Project ID
|
|
22726
|
-
* @param organizationId Organization ID
|
|
22727
|
-
* @param organizationDspId Organization DSP ID
|
|
22728
22794
|
*/
|
|
22729
|
-
async
|
|
22730
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22795
|
+
async listWebhookDestinations(projectId, options = { headers: {} }) {
|
|
22796
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks'
|
|
22731
22797
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
22732
22798
|
let queryParameters = {};
|
|
22733
22799
|
let localVarHeaderParams = {
|
|
@@ -22746,21 +22812,75 @@ class OptimizationApi {
|
|
|
22746
22812
|
let localVarFormParams;
|
|
22747
22813
|
// verify required parameter 'projectId' is not null or undefined
|
|
22748
22814
|
if (projectId === null || projectId === undefined) {
|
|
22749
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22815
|
+
throw new Error('Required parameter projectId was null or undefined when calling listWebhookDestinations.');
|
|
22750
22816
|
}
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
|
|
22817
|
+
localVarHeaderParams = {
|
|
22818
|
+
...localVarHeaderParams,
|
|
22819
|
+
...options.headers,
|
|
22820
|
+
...this.opts.extraHeaders,
|
|
22821
|
+
};
|
|
22822
|
+
const queryString = Object.entries(queryParameters)
|
|
22823
|
+
.filter(([, value]) => value !== undefined)
|
|
22824
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
22825
|
+
.join('&');
|
|
22826
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22827
|
+
let localVarRequestOptions = {
|
|
22828
|
+
method: 'GET',
|
|
22829
|
+
headers: { ...localVarHeaderParams },
|
|
22830
|
+
};
|
|
22831
|
+
let requestOptions = localVarRequestOptions;
|
|
22832
|
+
let url = localVarUrl;
|
|
22833
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
22834
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
22835
|
+
url = auth_ApiKeyAuthentication.url;
|
|
22836
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
22837
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
22838
|
+
url = auth_JWTAuthentication.url;
|
|
22839
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
22840
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
22841
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
22842
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
22843
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
22844
|
+
url = auth_OAuth2.url;
|
|
22845
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
22846
|
+
requestOptions = authDefault.requestOptions;
|
|
22847
|
+
url = authDefault.url;
|
|
22848
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22849
|
+
const response = await fetch(url, requestOptions);
|
|
22850
|
+
return this.handleResponse(response, 'ListWebhookDestinationsResponse');
|
|
22851
|
+
}
|
|
22852
|
+
/**
|
|
22853
|
+
* Rotate the signing secret for a webhook destination. Note that rotating the secret does not reset consecutive_failures, and does not re-enable a disabled webhook. Use the update endpoint for that.
|
|
22854
|
+
* @summary Rotate webhook destination secret
|
|
22855
|
+
* @param projectId Project ID
|
|
22856
|
+
* @param webhookId Webhook destination ID
|
|
22857
|
+
*/
|
|
22858
|
+
async rotateWebhookDestinationSecret(projectId, webhookId, options = { headers: {} }) {
|
|
22859
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks/{webhookId}/rotate-secret'
|
|
22860
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22861
|
+
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
22862
|
+
let queryParameters = {};
|
|
22863
|
+
let localVarHeaderParams = {
|
|
22864
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
22865
|
+
'Content-Type': 'application/json',
|
|
22866
|
+
...this.defaultHeaders,
|
|
22867
|
+
};
|
|
22868
|
+
const produces = ['application/json'];
|
|
22869
|
+
// give precedence to 'application/json'
|
|
22870
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
22871
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
22754
22872
|
}
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
|
-
throw new Error('Required parameter queryParams.organizationDspId was null or undefined when calling getDspParameters.');
|
|
22873
|
+
else {
|
|
22874
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
22758
22875
|
}
|
|
22759
|
-
|
|
22760
|
-
|
|
22876
|
+
let localVarFormParams;
|
|
22877
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
22878
|
+
if (projectId === null || projectId === undefined) {
|
|
22879
|
+
throw new Error('Required parameter projectId was null or undefined when calling rotateWebhookDestinationSecret.');
|
|
22761
22880
|
}
|
|
22762
|
-
|
|
22763
|
-
|
|
22881
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
22882
|
+
if (webhookId === null || webhookId === undefined) {
|
|
22883
|
+
throw new Error('Required parameter webhookId was null or undefined when calling rotateWebhookDestinationSecret.');
|
|
22764
22884
|
}
|
|
22765
22885
|
localVarHeaderParams = {
|
|
22766
22886
|
...localVarHeaderParams,
|
|
@@ -22773,7 +22893,7 @@ class OptimizationApi {
|
|
|
22773
22893
|
.join('&');
|
|
22774
22894
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22775
22895
|
let localVarRequestOptions = {
|
|
22776
|
-
method: '
|
|
22896
|
+
method: 'POST',
|
|
22777
22897
|
headers: { ...localVarHeaderParams },
|
|
22778
22898
|
};
|
|
22779
22899
|
let requestOptions = localVarRequestOptions;
|
|
@@ -22795,16 +22915,18 @@ class OptimizationApi {
|
|
|
22795
22915
|
url = authDefault.url;
|
|
22796
22916
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22797
22917
|
const response = await fetch(url, requestOptions);
|
|
22798
|
-
return this.handleResponse(response, '
|
|
22918
|
+
return this.handleResponse(response, 'RotateWebhookDestinationSecretResponse');
|
|
22799
22919
|
}
|
|
22800
22920
|
/**
|
|
22801
|
-
*
|
|
22802
|
-
* @summary
|
|
22921
|
+
* Send a test webhook to the configured URL for this destination. This is useful for testing if the webhook is configured correctly.
|
|
22922
|
+
* @summary Test webhook destination
|
|
22803
22923
|
* @param projectId Project ID
|
|
22924
|
+
* @param webhookId Webhook destination ID
|
|
22804
22925
|
*/
|
|
22805
|
-
async
|
|
22806
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22807
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22926
|
+
async testWebhookDestination(projectId, webhookId, options = { headers: {} }) {
|
|
22927
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks/{webhookId}/test'
|
|
22928
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22929
|
+
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
22808
22930
|
let queryParameters = {};
|
|
22809
22931
|
let localVarHeaderParams = {
|
|
22810
22932
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22822,7 +22944,11 @@ class OptimizationApi {
|
|
|
22822
22944
|
let localVarFormParams;
|
|
22823
22945
|
// verify required parameter 'projectId' is not null or undefined
|
|
22824
22946
|
if (projectId === null || projectId === undefined) {
|
|
22825
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
22947
|
+
throw new Error('Required parameter projectId was null or undefined when calling testWebhookDestination.');
|
|
22948
|
+
}
|
|
22949
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
22950
|
+
if (webhookId === null || webhookId === undefined) {
|
|
22951
|
+
throw new Error('Required parameter webhookId was null or undefined when calling testWebhookDestination.');
|
|
22826
22952
|
}
|
|
22827
22953
|
localVarHeaderParams = {
|
|
22828
22954
|
...localVarHeaderParams,
|
|
@@ -22835,7 +22961,7 @@ class OptimizationApi {
|
|
|
22835
22961
|
.join('&');
|
|
22836
22962
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22837
22963
|
let localVarRequestOptions = {
|
|
22838
|
-
method: '
|
|
22964
|
+
method: 'POST',
|
|
22839
22965
|
headers: { ...localVarHeaderParams },
|
|
22840
22966
|
};
|
|
22841
22967
|
let requestOptions = localVarRequestOptions;
|
|
@@ -22857,16 +22983,19 @@ class OptimizationApi {
|
|
|
22857
22983
|
url = authDefault.url;
|
|
22858
22984
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22859
22985
|
const response = await fetch(url, requestOptions);
|
|
22860
|
-
return this.handleResponse(response, '
|
|
22986
|
+
return this.handleResponse(response, 'TestWebhookDestinationResponse');
|
|
22861
22987
|
}
|
|
22862
22988
|
/**
|
|
22863
|
-
*
|
|
22864
|
-
* @summary
|
|
22989
|
+
* Update a monitoring event subscription.
|
|
22990
|
+
* @summary Update event subscription
|
|
22865
22991
|
* @param projectId Project ID
|
|
22992
|
+
* @param eventSubscriptionId Event subscription ID
|
|
22993
|
+
* @param updateEventSubscriptionRequest
|
|
22866
22994
|
*/
|
|
22867
|
-
async
|
|
22868
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22869
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22995
|
+
async updateEventSubscription(projectId, eventSubscriptionId, updateEventSubscriptionRequest, options = { headers: {} }) {
|
|
22996
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/event-subscriptions/{eventSubscriptionId}'
|
|
22997
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
22998
|
+
.replace('{' + 'eventSubscriptionId' + '}', encodeURIComponent(String(eventSubscriptionId)));
|
|
22870
22999
|
let queryParameters = {};
|
|
22871
23000
|
let localVarHeaderParams = {
|
|
22872
23001
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22884,7 +23013,15 @@ class OptimizationApi {
|
|
|
22884
23013
|
let localVarFormParams;
|
|
22885
23014
|
// verify required parameter 'projectId' is not null or undefined
|
|
22886
23015
|
if (projectId === null || projectId === undefined) {
|
|
22887
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
23016
|
+
throw new Error('Required parameter projectId was null or undefined when calling updateEventSubscription.');
|
|
23017
|
+
}
|
|
23018
|
+
// verify required parameter 'eventSubscriptionId' is not null or undefined
|
|
23019
|
+
if (eventSubscriptionId === null || eventSubscriptionId === undefined) {
|
|
23020
|
+
throw new Error('Required parameter eventSubscriptionId was null or undefined when calling updateEventSubscription.');
|
|
23021
|
+
}
|
|
23022
|
+
// verify required parameter 'updateEventSubscriptionRequest' is not null or undefined
|
|
23023
|
+
if (updateEventSubscriptionRequest === null || updateEventSubscriptionRequest === undefined) {
|
|
23024
|
+
throw new Error('Required parameter updateEventSubscriptionRequest was null or undefined when calling updateEventSubscription.');
|
|
22888
23025
|
}
|
|
22889
23026
|
localVarHeaderParams = {
|
|
22890
23027
|
...localVarHeaderParams,
|
|
@@ -22897,9 +23034,10 @@ class OptimizationApi {
|
|
|
22897
23034
|
.join('&');
|
|
22898
23035
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22899
23036
|
let localVarRequestOptions = {
|
|
22900
|
-
method: '
|
|
23037
|
+
method: 'PATCH',
|
|
22901
23038
|
headers: { ...localVarHeaderParams },
|
|
22902
23039
|
};
|
|
23040
|
+
localVarRequestOptions.body = JSON.stringify(updateEventSubscriptionRequest);
|
|
22903
23041
|
let requestOptions = localVarRequestOptions;
|
|
22904
23042
|
let url = localVarUrl;
|
|
22905
23043
|
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
@@ -22919,16 +23057,19 @@ class OptimizationApi {
|
|
|
22919
23057
|
url = authDefault.url;
|
|
22920
23058
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
22921
23059
|
const response = await fetch(url, requestOptions);
|
|
22922
|
-
return this.handleResponse(response, '
|
|
23060
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
22923
23061
|
}
|
|
22924
23062
|
/**
|
|
22925
|
-
*
|
|
22926
|
-
* @summary
|
|
23063
|
+
* Update the details of a webhook destination. Note that re-enabling a previously auto-disabled webhook resets consecutive_failures to 0. Note that only the rotate-secret endpoint can update the signing secret.
|
|
23064
|
+
* @summary Update webhook destination
|
|
22927
23065
|
* @param projectId Project ID
|
|
23066
|
+
* @param webhookId Webhook destination ID
|
|
23067
|
+
* @param updateWebhookDestinationRequest
|
|
22928
23068
|
*/
|
|
22929
|
-
async
|
|
22930
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
22931
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
23069
|
+
async updateWebhookDestination(projectId, webhookId, updateWebhookDestinationRequest, options = { headers: {} }) {
|
|
23070
|
+
const localVarPath = this.basePath + '/api/{projectId}/monitoring/webhooks/{webhookId}'
|
|
23071
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
23072
|
+
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
22932
23073
|
let queryParameters = {};
|
|
22933
23074
|
let localVarHeaderParams = {
|
|
22934
23075
|
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
@@ -22946,7 +23087,15 @@ class OptimizationApi {
|
|
|
22946
23087
|
let localVarFormParams;
|
|
22947
23088
|
// verify required parameter 'projectId' is not null or undefined
|
|
22948
23089
|
if (projectId === null || projectId === undefined) {
|
|
22949
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
23090
|
+
throw new Error('Required parameter projectId was null or undefined when calling updateWebhookDestination.');
|
|
23091
|
+
}
|
|
23092
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
23093
|
+
if (webhookId === null || webhookId === undefined) {
|
|
23094
|
+
throw new Error('Required parameter webhookId was null or undefined when calling updateWebhookDestination.');
|
|
23095
|
+
}
|
|
23096
|
+
// verify required parameter 'updateWebhookDestinationRequest' is not null or undefined
|
|
23097
|
+
if (updateWebhookDestinationRequest === null || updateWebhookDestinationRequest === undefined) {
|
|
23098
|
+
throw new Error('Required parameter updateWebhookDestinationRequest was null or undefined when calling updateWebhookDestination.');
|
|
22950
23099
|
}
|
|
22951
23100
|
localVarHeaderParams = {
|
|
22952
23101
|
...localVarHeaderParams,
|
|
@@ -22959,7 +23108,848 @@ class OptimizationApi {
|
|
|
22959
23108
|
.join('&');
|
|
22960
23109
|
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
22961
23110
|
let localVarRequestOptions = {
|
|
22962
|
-
method: '
|
|
23111
|
+
method: 'PATCH',
|
|
23112
|
+
headers: { ...localVarHeaderParams },
|
|
23113
|
+
};
|
|
23114
|
+
localVarRequestOptions.body = JSON.stringify(updateWebhookDestinationRequest);
|
|
23115
|
+
let requestOptions = localVarRequestOptions;
|
|
23116
|
+
let url = localVarUrl;
|
|
23117
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23118
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23119
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23120
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23121
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23122
|
+
url = auth_JWTAuthentication.url;
|
|
23123
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23124
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23125
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23126
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23127
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23128
|
+
url = auth_OAuth2.url;
|
|
23129
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23130
|
+
requestOptions = authDefault.requestOptions;
|
|
23131
|
+
url = authDefault.url;
|
|
23132
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23133
|
+
const response = await fetch(url, requestOptions);
|
|
23134
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
23135
|
+
}
|
|
23136
|
+
}
|
|
23137
|
+
exports.MonitoringApi = MonitoringApi;
|
|
23138
|
+
});
|
|
23139
|
+
|
|
23140
|
+
|
|
23141
|
+
define("library/sdk/api/optimizationApi", ["require", "exports"], function (require, exports) {
|
|
23142
|
+
"use strict";
|
|
23143
|
+
/**
|
|
23144
|
+
* Edge Impulse API
|
|
23145
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
23146
|
+
*
|
|
23147
|
+
* The version of the OpenAPI document: 1.0.0
|
|
23148
|
+
*
|
|
23149
|
+
*
|
|
23150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23151
|
+
* https://openapi-generator.tech
|
|
23152
|
+
* Do not edit the class manually.
|
|
23153
|
+
*/
|
|
23154
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23155
|
+
exports.OptimizationApi = exports.OptimizationApiApiKeys = void 0;
|
|
23156
|
+
let fetch;
|
|
23157
|
+
let FormData;
|
|
23158
|
+
if (globalThis.fetch && globalThis.FormData) {
|
|
23159
|
+
fetch = globalThis.fetch;
|
|
23160
|
+
FormData = globalThis.FormData;
|
|
23161
|
+
}
|
|
23162
|
+
else {
|
|
23163
|
+
const undici = require('undici');
|
|
23164
|
+
fetch = undici.fetch;
|
|
23165
|
+
FormData = undici.FormData;
|
|
23166
|
+
}
|
|
23167
|
+
const models_1 = require("../model/models");
|
|
23168
|
+
const models_2 = require("../model/models");
|
|
23169
|
+
let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
23170
|
+
// ===============================================
|
|
23171
|
+
// This file is autogenerated - Please do not edit
|
|
23172
|
+
// ===============================================
|
|
23173
|
+
var OptimizationApiApiKeys;
|
|
23174
|
+
(function (OptimizationApiApiKeys) {
|
|
23175
|
+
OptimizationApiApiKeys[OptimizationApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
|
|
23176
|
+
OptimizationApiApiKeys[OptimizationApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
|
|
23177
|
+
OptimizationApiApiKeys[OptimizationApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
|
|
23178
|
+
})(OptimizationApiApiKeys = exports.OptimizationApiApiKeys || (exports.OptimizationApiApiKeys = {}));
|
|
23179
|
+
class OptimizationApi {
|
|
23180
|
+
async handleResponse(response, returnType) {
|
|
23181
|
+
let body = await (0, models_1.parseResponse)(response);
|
|
23182
|
+
if (!response.ok) {
|
|
23183
|
+
let errorMsg;
|
|
23184
|
+
if (typeof body === 'object' && body !== null && 'error' in body) {
|
|
23185
|
+
errorMsg = body.error;
|
|
23186
|
+
}
|
|
23187
|
+
else {
|
|
23188
|
+
errorMsg = `Failed to call "${response.url}", returned ${response.status}: ` + (typeof body === 'string' ? body : JSON.stringify(body));
|
|
23189
|
+
}
|
|
23190
|
+
throw new Error(errorMsg);
|
|
23191
|
+
}
|
|
23192
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
23193
|
+
const errString = `Failed to call "${response.url}", returned ${response.status}: ` + body.error;
|
|
23194
|
+
throw new Error(body.error || errString);
|
|
23195
|
+
}
|
|
23196
|
+
return (0, models_1.convertISODateStringsOnObj)(body);
|
|
23197
|
+
}
|
|
23198
|
+
constructor(basePathOrUsername, opts, password, basePath) {
|
|
23199
|
+
this._basePath = defaultBasePath;
|
|
23200
|
+
this.defaultHeaders = {};
|
|
23201
|
+
this._opts = {};
|
|
23202
|
+
this.authentications = {
|
|
23203
|
+
'default': new models_1.VoidAuth(),
|
|
23204
|
+
'ApiKeyAuthentication': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
23205
|
+
'OAuth2': new models_2.OAuth(),
|
|
23206
|
+
'JWTAuthentication': new models_2.ApiKeyAuth('cookie', 'jwt'),
|
|
23207
|
+
'JWTHttpHeaderAuthentication': new models_2.ApiKeyAuth('header', 'x-jwt-token'),
|
|
23208
|
+
};
|
|
23209
|
+
if (password) {
|
|
23210
|
+
if (basePath) {
|
|
23211
|
+
this.basePath = basePath;
|
|
23212
|
+
}
|
|
23213
|
+
}
|
|
23214
|
+
else {
|
|
23215
|
+
if (basePathOrUsername) {
|
|
23216
|
+
this.basePath = basePathOrUsername;
|
|
23217
|
+
}
|
|
23218
|
+
}
|
|
23219
|
+
this.opts = opts !== null && opts !== void 0 ? opts : {};
|
|
23220
|
+
}
|
|
23221
|
+
set basePath(basePath) {
|
|
23222
|
+
this._basePath = basePath;
|
|
23223
|
+
}
|
|
23224
|
+
get basePath() {
|
|
23225
|
+
return this._basePath;
|
|
23226
|
+
}
|
|
23227
|
+
set opts(opts) {
|
|
23228
|
+
this._opts = opts;
|
|
23229
|
+
}
|
|
23230
|
+
get opts() {
|
|
23231
|
+
return this._opts;
|
|
23232
|
+
}
|
|
23233
|
+
setDefaultAuthentication(auth) {
|
|
23234
|
+
this.authentications.default = auth;
|
|
23235
|
+
}
|
|
23236
|
+
setApiKey(key, value) {
|
|
23237
|
+
this.authentications[OptimizationApiApiKeys[key]].apiKey = value;
|
|
23238
|
+
}
|
|
23239
|
+
set accessToken(token) {
|
|
23240
|
+
this.authentications.OAuth2.accessToken = token;
|
|
23241
|
+
}
|
|
23242
|
+
/**
|
|
23243
|
+
* Complete EON tuner run and mark it as succesful
|
|
23244
|
+
* @summary Complete EON tuner run
|
|
23245
|
+
* @param projectId Project ID
|
|
23246
|
+
* @param jobId Job ID
|
|
23247
|
+
* @param tunerCompleteSearch
|
|
23248
|
+
*/
|
|
23249
|
+
async completeSearch(projectId, jobId, tunerCompleteSearch, options = { headers: {} }) {
|
|
23250
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/{jobId}/complete-search'
|
|
23251
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
23252
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
23253
|
+
let queryParameters = {};
|
|
23254
|
+
let localVarHeaderParams = {
|
|
23255
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23256
|
+
'Content-Type': 'application/json',
|
|
23257
|
+
...this.defaultHeaders,
|
|
23258
|
+
};
|
|
23259
|
+
const produces = ['application/json'];
|
|
23260
|
+
// give precedence to 'application/json'
|
|
23261
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23262
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23263
|
+
}
|
|
23264
|
+
else {
|
|
23265
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23266
|
+
}
|
|
23267
|
+
let localVarFormParams;
|
|
23268
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23269
|
+
if (projectId === null || projectId === undefined) {
|
|
23270
|
+
throw new Error('Required parameter projectId was null or undefined when calling completeSearch.');
|
|
23271
|
+
}
|
|
23272
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
23273
|
+
if (jobId === null || jobId === undefined) {
|
|
23274
|
+
throw new Error('Required parameter jobId was null or undefined when calling completeSearch.');
|
|
23275
|
+
}
|
|
23276
|
+
// verify required parameter 'tunerCompleteSearch' is not null or undefined
|
|
23277
|
+
if (tunerCompleteSearch === null || tunerCompleteSearch === undefined) {
|
|
23278
|
+
throw new Error('Required parameter tunerCompleteSearch was null or undefined when calling completeSearch.');
|
|
23279
|
+
}
|
|
23280
|
+
localVarHeaderParams = {
|
|
23281
|
+
...localVarHeaderParams,
|
|
23282
|
+
...options.headers,
|
|
23283
|
+
...this.opts.extraHeaders,
|
|
23284
|
+
};
|
|
23285
|
+
const queryString = Object.entries(queryParameters)
|
|
23286
|
+
.filter(([, value]) => value !== undefined)
|
|
23287
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23288
|
+
.join('&');
|
|
23289
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23290
|
+
let localVarRequestOptions = {
|
|
23291
|
+
method: 'POST',
|
|
23292
|
+
headers: { ...localVarHeaderParams },
|
|
23293
|
+
};
|
|
23294
|
+
localVarRequestOptions.body = JSON.stringify(tunerCompleteSearch);
|
|
23295
|
+
let requestOptions = localVarRequestOptions;
|
|
23296
|
+
let url = localVarUrl;
|
|
23297
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23298
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23299
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23300
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23301
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23302
|
+
url = auth_JWTAuthentication.url;
|
|
23303
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23304
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23305
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23306
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23307
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23308
|
+
url = auth_OAuth2.url;
|
|
23309
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23310
|
+
requestOptions = authDefault.requestOptions;
|
|
23311
|
+
url = authDefault.url;
|
|
23312
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23313
|
+
const response = await fetch(url, requestOptions);
|
|
23314
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
23315
|
+
}
|
|
23316
|
+
/**
|
|
23317
|
+
* Create trial
|
|
23318
|
+
* @summary Create trial
|
|
23319
|
+
* @param projectId Project ID
|
|
23320
|
+
* @param jobId Job ID
|
|
23321
|
+
* @param tunerCreateTrialImpulse
|
|
23322
|
+
*/
|
|
23323
|
+
async createTrial(projectId, jobId, tunerCreateTrialImpulse, options = { headers: {} }) {
|
|
23324
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/{jobId}/create-trial'
|
|
23325
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
23326
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
23327
|
+
let queryParameters = {};
|
|
23328
|
+
let localVarHeaderParams = {
|
|
23329
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23330
|
+
'Content-Type': 'application/json',
|
|
23331
|
+
...this.defaultHeaders,
|
|
23332
|
+
};
|
|
23333
|
+
const produces = ['application/json'];
|
|
23334
|
+
// give precedence to 'application/json'
|
|
23335
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23336
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23337
|
+
}
|
|
23338
|
+
else {
|
|
23339
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23340
|
+
}
|
|
23341
|
+
let localVarFormParams;
|
|
23342
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23343
|
+
if (projectId === null || projectId === undefined) {
|
|
23344
|
+
throw new Error('Required parameter projectId was null or undefined when calling createTrial.');
|
|
23345
|
+
}
|
|
23346
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
23347
|
+
if (jobId === null || jobId === undefined) {
|
|
23348
|
+
throw new Error('Required parameter jobId was null or undefined when calling createTrial.');
|
|
23349
|
+
}
|
|
23350
|
+
// verify required parameter 'tunerCreateTrialImpulse' is not null or undefined
|
|
23351
|
+
if (tunerCreateTrialImpulse === null || tunerCreateTrialImpulse === undefined) {
|
|
23352
|
+
throw new Error('Required parameter tunerCreateTrialImpulse was null or undefined when calling createTrial.');
|
|
23353
|
+
}
|
|
23354
|
+
localVarHeaderParams = {
|
|
23355
|
+
...localVarHeaderParams,
|
|
23356
|
+
...options.headers,
|
|
23357
|
+
...this.opts.extraHeaders,
|
|
23358
|
+
};
|
|
23359
|
+
const queryString = Object.entries(queryParameters)
|
|
23360
|
+
.filter(([, value]) => value !== undefined)
|
|
23361
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23362
|
+
.join('&');
|
|
23363
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23364
|
+
let localVarRequestOptions = {
|
|
23365
|
+
method: 'POST',
|
|
23366
|
+
headers: { ...localVarHeaderParams },
|
|
23367
|
+
};
|
|
23368
|
+
localVarRequestOptions.body = JSON.stringify(tunerCreateTrialImpulse);
|
|
23369
|
+
let requestOptions = localVarRequestOptions;
|
|
23370
|
+
let url = localVarUrl;
|
|
23371
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23372
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23373
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23374
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23375
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23376
|
+
url = auth_JWTAuthentication.url;
|
|
23377
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23378
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23379
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23380
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23381
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23382
|
+
url = auth_OAuth2.url;
|
|
23383
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23384
|
+
requestOptions = authDefault.requestOptions;
|
|
23385
|
+
url = authDefault.url;
|
|
23386
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23387
|
+
const response = await fetch(url, requestOptions);
|
|
23388
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
23389
|
+
}
|
|
23390
|
+
/**
|
|
23391
|
+
* Completely clears the EON tuner state for this project.
|
|
23392
|
+
* @summary Delete EON tuner state
|
|
23393
|
+
* @param projectId Project ID
|
|
23394
|
+
*/
|
|
23395
|
+
async deleteState(projectId, options = { headers: {} }) {
|
|
23396
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/state'
|
|
23397
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23398
|
+
let queryParameters = {};
|
|
23399
|
+
let localVarHeaderParams = {
|
|
23400
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23401
|
+
'Content-Type': 'application/json',
|
|
23402
|
+
...this.defaultHeaders,
|
|
23403
|
+
};
|
|
23404
|
+
const produces = ['application/json'];
|
|
23405
|
+
// give precedence to 'application/json'
|
|
23406
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23407
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23408
|
+
}
|
|
23409
|
+
else {
|
|
23410
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23411
|
+
}
|
|
23412
|
+
let localVarFormParams;
|
|
23413
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23414
|
+
if (projectId === null || projectId === undefined) {
|
|
23415
|
+
throw new Error('Required parameter projectId was null or undefined when calling deleteState.');
|
|
23416
|
+
}
|
|
23417
|
+
localVarHeaderParams = {
|
|
23418
|
+
...localVarHeaderParams,
|
|
23419
|
+
...options.headers,
|
|
23420
|
+
...this.opts.extraHeaders,
|
|
23421
|
+
};
|
|
23422
|
+
const queryString = Object.entries(queryParameters)
|
|
23423
|
+
.filter(([, value]) => value !== undefined)
|
|
23424
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23425
|
+
.join('&');
|
|
23426
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23427
|
+
let localVarRequestOptions = {
|
|
23428
|
+
method: 'DELETE',
|
|
23429
|
+
headers: { ...localVarHeaderParams },
|
|
23430
|
+
};
|
|
23431
|
+
let requestOptions = localVarRequestOptions;
|
|
23432
|
+
let url = localVarUrl;
|
|
23433
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23434
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23435
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23436
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23437
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23438
|
+
url = auth_JWTAuthentication.url;
|
|
23439
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23440
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23441
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23442
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23443
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23444
|
+
url = auth_OAuth2.url;
|
|
23445
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23446
|
+
requestOptions = authDefault.requestOptions;
|
|
23447
|
+
url = authDefault.url;
|
|
23448
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23449
|
+
const response = await fetch(url, requestOptions);
|
|
23450
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
23451
|
+
}
|
|
23452
|
+
/**
|
|
23453
|
+
* End an EON trial early. This can for example be used to implement early stopping.
|
|
23454
|
+
* @summary End EON tuner trial
|
|
23455
|
+
* @param projectId Project ID
|
|
23456
|
+
* @param jobId Job ID
|
|
23457
|
+
* @param trialId trial ID
|
|
23458
|
+
*/
|
|
23459
|
+
async endTrial(projectId, jobId, trialId, options = { headers: {} }) {
|
|
23460
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize//{jobId}/trial/{trialId}/end-trial'
|
|
23461
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
23462
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)))
|
|
23463
|
+
.replace('{' + 'trialId' + '}', encodeURIComponent(String(trialId)));
|
|
23464
|
+
let queryParameters = {};
|
|
23465
|
+
let localVarHeaderParams = {
|
|
23466
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23467
|
+
'Content-Type': 'application/json',
|
|
23468
|
+
...this.defaultHeaders,
|
|
23469
|
+
};
|
|
23470
|
+
const produces = ['application/json'];
|
|
23471
|
+
// give precedence to 'application/json'
|
|
23472
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23473
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23474
|
+
}
|
|
23475
|
+
else {
|
|
23476
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23477
|
+
}
|
|
23478
|
+
let localVarFormParams;
|
|
23479
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23480
|
+
if (projectId === null || projectId === undefined) {
|
|
23481
|
+
throw new Error('Required parameter projectId was null or undefined when calling endTrial.');
|
|
23482
|
+
}
|
|
23483
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
23484
|
+
if (jobId === null || jobId === undefined) {
|
|
23485
|
+
throw new Error('Required parameter jobId was null or undefined when calling endTrial.');
|
|
23486
|
+
}
|
|
23487
|
+
// verify required parameter 'trialId' is not null or undefined
|
|
23488
|
+
if (trialId === null || trialId === undefined) {
|
|
23489
|
+
throw new Error('Required parameter trialId was null or undefined when calling endTrial.');
|
|
23490
|
+
}
|
|
23491
|
+
localVarHeaderParams = {
|
|
23492
|
+
...localVarHeaderParams,
|
|
23493
|
+
...options.headers,
|
|
23494
|
+
...this.opts.extraHeaders,
|
|
23495
|
+
};
|
|
23496
|
+
const queryString = Object.entries(queryParameters)
|
|
23497
|
+
.filter(([, value]) => value !== undefined)
|
|
23498
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23499
|
+
.join('&');
|
|
23500
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23501
|
+
let localVarRequestOptions = {
|
|
23502
|
+
method: 'GET',
|
|
23503
|
+
headers: { ...localVarHeaderParams },
|
|
23504
|
+
};
|
|
23505
|
+
let requestOptions = localVarRequestOptions;
|
|
23506
|
+
let url = localVarUrl;
|
|
23507
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23508
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23509
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23510
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23511
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23512
|
+
url = auth_JWTAuthentication.url;
|
|
23513
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23514
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23515
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23516
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23517
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23518
|
+
url = auth_OAuth2.url;
|
|
23519
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23520
|
+
requestOptions = authDefault.requestOptions;
|
|
23521
|
+
url = authDefault.url;
|
|
23522
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23523
|
+
const response = await fetch(url, requestOptions);
|
|
23524
|
+
return this.handleResponse(response, 'GenericApiResponse');
|
|
23525
|
+
}
|
|
23526
|
+
/**
|
|
23527
|
+
* Lists all possible blocks that can be used in the impulse, including any additional information required by the EON tuner that the getImpulseBlocks endpoint does not return
|
|
23528
|
+
* @summary Get impulse blocks
|
|
23529
|
+
* @param projectId Project ID
|
|
23530
|
+
*/
|
|
23531
|
+
async getAllBlocks(projectId, options = { headers: {} }) {
|
|
23532
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/all-blocks'
|
|
23533
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23534
|
+
let queryParameters = {};
|
|
23535
|
+
let localVarHeaderParams = {
|
|
23536
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23537
|
+
'Content-Type': 'application/json',
|
|
23538
|
+
...this.defaultHeaders,
|
|
23539
|
+
};
|
|
23540
|
+
const produces = ['application/json'];
|
|
23541
|
+
// give precedence to 'application/json'
|
|
23542
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23543
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23544
|
+
}
|
|
23545
|
+
else {
|
|
23546
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23547
|
+
}
|
|
23548
|
+
let localVarFormParams;
|
|
23549
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23550
|
+
if (projectId === null || projectId === undefined) {
|
|
23551
|
+
throw new Error('Required parameter projectId was null or undefined when calling getAllBlocks.');
|
|
23552
|
+
}
|
|
23553
|
+
localVarHeaderParams = {
|
|
23554
|
+
...localVarHeaderParams,
|
|
23555
|
+
...options.headers,
|
|
23556
|
+
...this.opts.extraHeaders,
|
|
23557
|
+
};
|
|
23558
|
+
const queryString = Object.entries(queryParameters)
|
|
23559
|
+
.filter(([, value]) => value !== undefined)
|
|
23560
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23561
|
+
.join('&');
|
|
23562
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23563
|
+
let localVarRequestOptions = {
|
|
23564
|
+
method: 'GET',
|
|
23565
|
+
headers: { ...localVarHeaderParams },
|
|
23566
|
+
};
|
|
23567
|
+
let requestOptions = localVarRequestOptions;
|
|
23568
|
+
let url = localVarUrl;
|
|
23569
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23570
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23571
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23572
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23573
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23574
|
+
url = auth_JWTAuthentication.url;
|
|
23575
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23576
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23577
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23578
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23579
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23580
|
+
url = auth_OAuth2.url;
|
|
23581
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23582
|
+
requestOptions = authDefault.requestOptions;
|
|
23583
|
+
url = authDefault.url;
|
|
23584
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23585
|
+
const response = await fetch(url, requestOptions);
|
|
23586
|
+
return this.handleResponse(response, 'AllBlocksResponse');
|
|
23587
|
+
}
|
|
23588
|
+
/**
|
|
23589
|
+
* Get all available learn blocks
|
|
23590
|
+
* @summary Get all available learn blocks
|
|
23591
|
+
* @param projectId Project ID
|
|
23592
|
+
*/
|
|
23593
|
+
async getAllLearnBlocks(projectId, options = { headers: {} }) {
|
|
23594
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/all-learn-blocks'
|
|
23595
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23596
|
+
let queryParameters = {};
|
|
23597
|
+
let localVarHeaderParams = {
|
|
23598
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23599
|
+
'Content-Type': 'application/json',
|
|
23600
|
+
...this.defaultHeaders,
|
|
23601
|
+
};
|
|
23602
|
+
const produces = ['application/json'];
|
|
23603
|
+
// give precedence to 'application/json'
|
|
23604
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23605
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23606
|
+
}
|
|
23607
|
+
else {
|
|
23608
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23609
|
+
}
|
|
23610
|
+
let localVarFormParams;
|
|
23611
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23612
|
+
if (projectId === null || projectId === undefined) {
|
|
23613
|
+
throw new Error('Required parameter projectId was null or undefined when calling getAllLearnBlocks.');
|
|
23614
|
+
}
|
|
23615
|
+
localVarHeaderParams = {
|
|
23616
|
+
...localVarHeaderParams,
|
|
23617
|
+
...options.headers,
|
|
23618
|
+
...this.opts.extraHeaders,
|
|
23619
|
+
};
|
|
23620
|
+
const queryString = Object.entries(queryParameters)
|
|
23621
|
+
.filter(([, value]) => value !== undefined)
|
|
23622
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23623
|
+
.join('&');
|
|
23624
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23625
|
+
let localVarRequestOptions = {
|
|
23626
|
+
method: 'GET',
|
|
23627
|
+
headers: { ...localVarHeaderParams },
|
|
23628
|
+
};
|
|
23629
|
+
let requestOptions = localVarRequestOptions;
|
|
23630
|
+
let url = localVarUrl;
|
|
23631
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23632
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23633
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23634
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23635
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23636
|
+
url = auth_JWTAuthentication.url;
|
|
23637
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23638
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23639
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23640
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23641
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23642
|
+
url = auth_OAuth2.url;
|
|
23643
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23644
|
+
requestOptions = authDefault.requestOptions;
|
|
23645
|
+
url = authDefault.url;
|
|
23646
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23647
|
+
const response = await fetch(url, requestOptions);
|
|
23648
|
+
return this.handleResponse(response, 'AllLearnBlocksResponse');
|
|
23649
|
+
}
|
|
23650
|
+
/**
|
|
23651
|
+
* Get config
|
|
23652
|
+
* @summary Get config
|
|
23653
|
+
* @param projectId Project ID
|
|
23654
|
+
*/
|
|
23655
|
+
async getConfig(projectId, options = { headers: {} }) {
|
|
23656
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/config'
|
|
23657
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23658
|
+
let queryParameters = {};
|
|
23659
|
+
let localVarHeaderParams = {
|
|
23660
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23661
|
+
'Content-Type': 'application/json',
|
|
23662
|
+
...this.defaultHeaders,
|
|
23663
|
+
};
|
|
23664
|
+
const produces = ['application/json'];
|
|
23665
|
+
// give precedence to 'application/json'
|
|
23666
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23667
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23668
|
+
}
|
|
23669
|
+
else {
|
|
23670
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23671
|
+
}
|
|
23672
|
+
let localVarFormParams;
|
|
23673
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23674
|
+
if (projectId === null || projectId === undefined) {
|
|
23675
|
+
throw new Error('Required parameter projectId was null or undefined when calling getConfig.');
|
|
23676
|
+
}
|
|
23677
|
+
localVarHeaderParams = {
|
|
23678
|
+
...localVarHeaderParams,
|
|
23679
|
+
...options.headers,
|
|
23680
|
+
...this.opts.extraHeaders,
|
|
23681
|
+
};
|
|
23682
|
+
const queryString = Object.entries(queryParameters)
|
|
23683
|
+
.filter(([, value]) => value !== undefined)
|
|
23684
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23685
|
+
.join('&');
|
|
23686
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23687
|
+
let localVarRequestOptions = {
|
|
23688
|
+
method: 'GET',
|
|
23689
|
+
headers: { ...localVarHeaderParams },
|
|
23690
|
+
};
|
|
23691
|
+
let requestOptions = localVarRequestOptions;
|
|
23692
|
+
let url = localVarUrl;
|
|
23693
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23694
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23695
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23696
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23697
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23698
|
+
url = auth_JWTAuthentication.url;
|
|
23699
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23700
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23701
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23702
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23703
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23704
|
+
url = auth_OAuth2.url;
|
|
23705
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23706
|
+
requestOptions = authDefault.requestOptions;
|
|
23707
|
+
url = authDefault.url;
|
|
23708
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23709
|
+
const response = await fetch(url, requestOptions);
|
|
23710
|
+
return this.handleResponse(response, 'OptimizeConfigResponse');
|
|
23711
|
+
}
|
|
23712
|
+
/**
|
|
23713
|
+
* Retrieves DSP block parameters
|
|
23714
|
+
* @summary Retrieves DSP block parameters
|
|
23715
|
+
* @param projectId Project ID
|
|
23716
|
+
* @param organizationId Organization ID
|
|
23717
|
+
* @param organizationDspId Organization DSP ID
|
|
23718
|
+
*/
|
|
23719
|
+
async getDspParameters(projectId, queryParams, options = { headers: {} }) {
|
|
23720
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/dsp-parameters'
|
|
23721
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23722
|
+
let queryParameters = {};
|
|
23723
|
+
let localVarHeaderParams = {
|
|
23724
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23725
|
+
'Content-Type': 'application/json',
|
|
23726
|
+
...this.defaultHeaders,
|
|
23727
|
+
};
|
|
23728
|
+
const produces = ['application/json'];
|
|
23729
|
+
// give precedence to 'application/json'
|
|
23730
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23731
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23732
|
+
}
|
|
23733
|
+
else {
|
|
23734
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23735
|
+
}
|
|
23736
|
+
let localVarFormParams;
|
|
23737
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23738
|
+
if (projectId === null || projectId === undefined) {
|
|
23739
|
+
throw new Error('Required parameter projectId was null or undefined when calling getDspParameters.');
|
|
23740
|
+
}
|
|
23741
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
23742
|
+
if (queryParams.organizationId === null || queryParams.organizationId === undefined) {
|
|
23743
|
+
throw new Error('Required parameter queryParams.organizationId was null or undefined when calling getDspParameters.');
|
|
23744
|
+
}
|
|
23745
|
+
// verify required parameter 'organizationDspId' is not null or undefined
|
|
23746
|
+
if (queryParams.organizationDspId === null || queryParams.organizationDspId === undefined) {
|
|
23747
|
+
throw new Error('Required parameter queryParams.organizationDspId was null or undefined when calling getDspParameters.');
|
|
23748
|
+
}
|
|
23749
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationId) !== null) {
|
|
23750
|
+
queryParameters['organizationId'] = queryParams.organizationId;
|
|
23751
|
+
}
|
|
23752
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationDspId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationDspId) !== null) {
|
|
23753
|
+
queryParameters['organizationDspId'] = queryParams.organizationDspId;
|
|
23754
|
+
}
|
|
23755
|
+
localVarHeaderParams = {
|
|
23756
|
+
...localVarHeaderParams,
|
|
23757
|
+
...options.headers,
|
|
23758
|
+
...this.opts.extraHeaders,
|
|
23759
|
+
};
|
|
23760
|
+
const queryString = Object.entries(queryParameters)
|
|
23761
|
+
.filter(([, value]) => value !== undefined)
|
|
23762
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23763
|
+
.join('&');
|
|
23764
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23765
|
+
let localVarRequestOptions = {
|
|
23766
|
+
method: 'GET',
|
|
23767
|
+
headers: { ...localVarHeaderParams },
|
|
23768
|
+
};
|
|
23769
|
+
let requestOptions = localVarRequestOptions;
|
|
23770
|
+
let url = localVarUrl;
|
|
23771
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23772
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23773
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23774
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23775
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23776
|
+
url = auth_JWTAuthentication.url;
|
|
23777
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23778
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23779
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23780
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23781
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23782
|
+
url = auth_OAuth2.url;
|
|
23783
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23784
|
+
requestOptions = authDefault.requestOptions;
|
|
23785
|
+
url = authDefault.url;
|
|
23786
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23787
|
+
const response = await fetch(url, requestOptions);
|
|
23788
|
+
return this.handleResponse(response, 'OptimizeDSPParametersResponse');
|
|
23789
|
+
}
|
|
23790
|
+
/**
|
|
23791
|
+
* Search space
|
|
23792
|
+
* @summary Search space
|
|
23793
|
+
* @param projectId Project ID
|
|
23794
|
+
*/
|
|
23795
|
+
async getSpace(projectId, options = { headers: {} }) {
|
|
23796
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/space'
|
|
23797
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23798
|
+
let queryParameters = {};
|
|
23799
|
+
let localVarHeaderParams = {
|
|
23800
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23801
|
+
'Content-Type': 'application/json',
|
|
23802
|
+
...this.defaultHeaders,
|
|
23803
|
+
};
|
|
23804
|
+
const produces = ['application/json'];
|
|
23805
|
+
// give precedence to 'application/json'
|
|
23806
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23807
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23808
|
+
}
|
|
23809
|
+
else {
|
|
23810
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23811
|
+
}
|
|
23812
|
+
let localVarFormParams;
|
|
23813
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23814
|
+
if (projectId === null || projectId === undefined) {
|
|
23815
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSpace.');
|
|
23816
|
+
}
|
|
23817
|
+
localVarHeaderParams = {
|
|
23818
|
+
...localVarHeaderParams,
|
|
23819
|
+
...options.headers,
|
|
23820
|
+
...this.opts.extraHeaders,
|
|
23821
|
+
};
|
|
23822
|
+
const queryString = Object.entries(queryParameters)
|
|
23823
|
+
.filter(([, value]) => value !== undefined)
|
|
23824
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23825
|
+
.join('&');
|
|
23826
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23827
|
+
let localVarRequestOptions = {
|
|
23828
|
+
method: 'GET',
|
|
23829
|
+
headers: { ...localVarHeaderParams },
|
|
23830
|
+
};
|
|
23831
|
+
let requestOptions = localVarRequestOptions;
|
|
23832
|
+
let url = localVarUrl;
|
|
23833
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23834
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23835
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23836
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23837
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23838
|
+
url = auth_JWTAuthentication.url;
|
|
23839
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23840
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23841
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23842
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23843
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23844
|
+
url = auth_OAuth2.url;
|
|
23845
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23846
|
+
requestOptions = authDefault.requestOptions;
|
|
23847
|
+
url = authDefault.url;
|
|
23848
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23849
|
+
const response = await fetch(url, requestOptions);
|
|
23850
|
+
return this.handleResponse(response, 'OptimizeSpaceResponse');
|
|
23851
|
+
}
|
|
23852
|
+
/**
|
|
23853
|
+
* Retrieves the EON tuner state
|
|
23854
|
+
* @summary Retrieves the EON tuner state
|
|
23855
|
+
* @param projectId Project ID
|
|
23856
|
+
*/
|
|
23857
|
+
async getState(projectId, options = { headers: {} }) {
|
|
23858
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/state'
|
|
23859
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23860
|
+
let queryParameters = {};
|
|
23861
|
+
let localVarHeaderParams = {
|
|
23862
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23863
|
+
'Content-Type': 'application/json',
|
|
23864
|
+
...this.defaultHeaders,
|
|
23865
|
+
};
|
|
23866
|
+
const produces = ['application/json'];
|
|
23867
|
+
// give precedence to 'application/json'
|
|
23868
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23869
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23870
|
+
}
|
|
23871
|
+
else {
|
|
23872
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23873
|
+
}
|
|
23874
|
+
let localVarFormParams;
|
|
23875
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23876
|
+
if (projectId === null || projectId === undefined) {
|
|
23877
|
+
throw new Error('Required parameter projectId was null or undefined when calling getState.');
|
|
23878
|
+
}
|
|
23879
|
+
localVarHeaderParams = {
|
|
23880
|
+
...localVarHeaderParams,
|
|
23881
|
+
...options.headers,
|
|
23882
|
+
...this.opts.extraHeaders,
|
|
23883
|
+
};
|
|
23884
|
+
const queryString = Object.entries(queryParameters)
|
|
23885
|
+
.filter(([, value]) => value !== undefined)
|
|
23886
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23887
|
+
.join('&');
|
|
23888
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23889
|
+
let localVarRequestOptions = {
|
|
23890
|
+
method: 'GET',
|
|
23891
|
+
headers: { ...localVarHeaderParams },
|
|
23892
|
+
};
|
|
23893
|
+
let requestOptions = localVarRequestOptions;
|
|
23894
|
+
let url = localVarUrl;
|
|
23895
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
23896
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
23897
|
+
url = auth_ApiKeyAuthentication.url;
|
|
23898
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
23899
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
23900
|
+
url = auth_JWTAuthentication.url;
|
|
23901
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
23902
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
23903
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
23904
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
23905
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
23906
|
+
url = auth_OAuth2.url;
|
|
23907
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
23908
|
+
requestOptions = authDefault.requestOptions;
|
|
23909
|
+
url = authDefault.url;
|
|
23910
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
23911
|
+
const response = await fetch(url, requestOptions);
|
|
23912
|
+
return this.handleResponse(response, 'OptimizeStateResponse');
|
|
23913
|
+
}
|
|
23914
|
+
/**
|
|
23915
|
+
* Retrieves available transfer learning models
|
|
23916
|
+
* @summary Retrieves available transfer learning models
|
|
23917
|
+
* @param projectId Project ID
|
|
23918
|
+
*/
|
|
23919
|
+
async getTransferLearningModels(projectId, options = { headers: {} }) {
|
|
23920
|
+
const localVarPath = this.basePath + '/api/{projectId}/optimize/transfer-learning-models'
|
|
23921
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
23922
|
+
let queryParameters = {};
|
|
23923
|
+
let localVarHeaderParams = {
|
|
23924
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
23925
|
+
'Content-Type': 'application/json',
|
|
23926
|
+
...this.defaultHeaders,
|
|
23927
|
+
};
|
|
23928
|
+
const produces = ['application/json'];
|
|
23929
|
+
// give precedence to 'application/json'
|
|
23930
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
23931
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
23932
|
+
}
|
|
23933
|
+
else {
|
|
23934
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
23935
|
+
}
|
|
23936
|
+
let localVarFormParams;
|
|
23937
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
23938
|
+
if (projectId === null || projectId === undefined) {
|
|
23939
|
+
throw new Error('Required parameter projectId was null or undefined when calling getTransferLearningModels.');
|
|
23940
|
+
}
|
|
23941
|
+
localVarHeaderParams = {
|
|
23942
|
+
...localVarHeaderParams,
|
|
23943
|
+
...options.headers,
|
|
23944
|
+
...this.opts.extraHeaders,
|
|
23945
|
+
};
|
|
23946
|
+
const queryString = Object.entries(queryParameters)
|
|
23947
|
+
.filter(([, value]) => value !== undefined)
|
|
23948
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
23949
|
+
.join('&');
|
|
23950
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
23951
|
+
let localVarRequestOptions = {
|
|
23952
|
+
method: 'GET',
|
|
22963
23953
|
headers: { ...localVarHeaderParams },
|
|
22964
23954
|
};
|
|
22965
23955
|
let requestOptions = localVarRequestOptions;
|
|
@@ -57127,6 +58117,20 @@ exports.CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnumValues =
|
|
|
57127
58117
|
});
|
|
57128
58118
|
|
|
57129
58119
|
|
|
58120
|
+
define("library/sdk/model/createEventSubscriptionRequest", ["require", "exports"], function (require, exports) {
|
|
58121
|
+
"use strict";
|
|
58122
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58123
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58124
|
+
});
|
|
58125
|
+
|
|
58126
|
+
|
|
58127
|
+
define("library/sdk/model/createEventSubscriptionResponse", ["require", "exports"], function (require, exports) {
|
|
58128
|
+
"use strict";
|
|
58129
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58130
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58131
|
+
});
|
|
58132
|
+
|
|
58133
|
+
|
|
57130
58134
|
define("library/sdk/model/createImpulseRequest", ["require", "exports"], function (require, exports) {
|
|
57131
58135
|
"use strict";
|
|
57132
58136
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -57304,6 +58308,20 @@ exports.CreateUserThirdPartyResponseStatusEnumValues = ['userWasCreated', 'userN
|
|
|
57304
58308
|
});
|
|
57305
58309
|
|
|
57306
58310
|
|
|
58311
|
+
define("library/sdk/model/createWebhookDestinationRequest", ["require", "exports"], function (require, exports) {
|
|
58312
|
+
"use strict";
|
|
58313
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58314
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58315
|
+
});
|
|
58316
|
+
|
|
58317
|
+
|
|
58318
|
+
define("library/sdk/model/createWebhookDestinationResponse", ["require", "exports"], function (require, exports) {
|
|
58319
|
+
"use strict";
|
|
58320
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58321
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58322
|
+
});
|
|
58323
|
+
|
|
58324
|
+
|
|
57307
58325
|
define("library/sdk/model/createWhitelabelRequest", ["require", "exports"], function (require, exports) {
|
|
57308
58326
|
"use strict";
|
|
57309
58327
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -58123,6 +59141,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
58123
59141
|
});
|
|
58124
59142
|
|
|
58125
59143
|
|
|
59144
|
+
define("library/sdk/model/eventSubscription", ["require", "exports"], function (require, exports) {
|
|
59145
|
+
"use strict";
|
|
59146
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59147
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59148
|
+
});
|
|
59149
|
+
|
|
59150
|
+
|
|
58126
59151
|
define("library/sdk/model/experimentalImpulseSpecificGpuTrainingProcessor", ["require", "exports"], function (require, exports) {
|
|
58127
59152
|
"use strict";
|
|
58128
59153
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -58394,6 +59419,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
58394
59419
|
});
|
|
58395
59420
|
|
|
58396
59421
|
|
|
59422
|
+
define("library/sdk/model/getEventSubscriptionResponse", ["require", "exports"], function (require, exports) {
|
|
59423
|
+
"use strict";
|
|
59424
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59425
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59426
|
+
});
|
|
59427
|
+
|
|
59428
|
+
|
|
58397
59429
|
define("library/sdk/model/getFeatureFlagsResponse", ["require", "exports"], function (require, exports) {
|
|
58398
59430
|
"use strict";
|
|
58399
59431
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -58860,6 +59892,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
58860
59892
|
});
|
|
58861
59893
|
|
|
58862
59894
|
|
|
59895
|
+
define("library/sdk/model/getWebhookDestinationResponse", ["require", "exports"], function (require, exports) {
|
|
59896
|
+
"use strict";
|
|
59897
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59898
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59899
|
+
});
|
|
59900
|
+
|
|
59901
|
+
|
|
58863
59902
|
define("library/sdk/model/getWhitelabelDomainResponse", ["require", "exports"], function (require, exports) {
|
|
58864
59903
|
"use strict";
|
|
58865
59904
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59343,6 +60382,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59343
60382
|
});
|
|
59344
60383
|
|
|
59345
60384
|
|
|
60385
|
+
define("library/sdk/model/listEventSubscriptionsResponse", ["require", "exports"], function (require, exports) {
|
|
60386
|
+
"use strict";
|
|
60387
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60388
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60389
|
+
});
|
|
60390
|
+
|
|
60391
|
+
|
|
59346
60392
|
define("library/sdk/model/listHmacKeysResponse", ["require", "exports"], function (require, exports) {
|
|
59347
60393
|
"use strict";
|
|
59348
60394
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59364,6 +60410,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59364
60410
|
});
|
|
59365
60411
|
|
|
59366
60412
|
|
|
60413
|
+
define("library/sdk/model/listMonitoringEventsResponse", ["require", "exports"], function (require, exports) {
|
|
60414
|
+
"use strict";
|
|
60415
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60416
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60417
|
+
});
|
|
60418
|
+
|
|
60419
|
+
|
|
59367
60420
|
define("library/sdk/model/listOrganizationApiKeysResponse", ["require", "exports"], function (require, exports) {
|
|
59368
60421
|
"use strict";
|
|
59369
60422
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59560,6 +60613,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59560
60613
|
});
|
|
59561
60614
|
|
|
59562
60615
|
|
|
60616
|
+
define("library/sdk/model/listWebhookDestinationsResponse", ["require", "exports"], function (require, exports) {
|
|
60617
|
+
"use strict";
|
|
60618
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60619
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60620
|
+
});
|
|
60621
|
+
|
|
60622
|
+
|
|
59563
60623
|
define("library/sdk/model/logAnalyticsEventRequest", ["require", "exports"], function (require, exports) {
|
|
59564
60624
|
"use strict";
|
|
59565
60625
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59844,6 +60904,8 @@ __exportStar(require("./createDeveloperProfileResponse"), exports);
|
|
|
59844
60904
|
__exportStar(require("./createDeviceRequest"), exports);
|
|
59845
60905
|
__exportStar(require("./createEnterpriseTrialResponse"), exports);
|
|
59846
60906
|
__exportStar(require("./createEnterpriseTrialUserRequest"), exports);
|
|
60907
|
+
__exportStar(require("./createEventSubscriptionRequest"), exports);
|
|
60908
|
+
__exportStar(require("./createEventSubscriptionResponse"), exports);
|
|
59847
60909
|
__exportStar(require("./createImpulseRequest"), exports);
|
|
59848
60910
|
__exportStar(require("./createImpulseResponse"), exports);
|
|
59849
60911
|
__exportStar(require("./createMultiProjectDeploymentRequest"), exports);
|
|
@@ -59869,6 +60931,8 @@ __exportStar(require("./createUserRequest"), exports);
|
|
|
59869
60931
|
__exportStar(require("./createUserResponse"), exports);
|
|
59870
60932
|
__exportStar(require("./createUserThirdPartyRequest"), exports);
|
|
59871
60933
|
__exportStar(require("./createUserThirdPartyResponse"), exports);
|
|
60934
|
+
__exportStar(require("./createWebhookDestinationRequest"), exports);
|
|
60935
|
+
__exportStar(require("./createWebhookDestinationResponse"), exports);
|
|
59872
60936
|
__exportStar(require("./createWhitelabelRequest"), exports);
|
|
59873
60937
|
__exportStar(require("./createWhitelabelResponse"), exports);
|
|
59874
60938
|
__exportStar(require("./createdUpdatedByUser"), exports);
|
|
@@ -59977,6 +61041,7 @@ __exportStar(require("./entityCreatedResponse"), exports);
|
|
|
59977
61041
|
__exportStar(require("./environmentVariable"), exports);
|
|
59978
61042
|
__exportStar(require("./evaluateJobResponse"), exports);
|
|
59979
61043
|
__exportStar(require("./evaluateResultValue"), exports);
|
|
61044
|
+
__exportStar(require("./eventSubscription"), exports);
|
|
59980
61045
|
__exportStar(require("./experimentalImpulseSpecificGpuTrainingProcessor"), exports);
|
|
59981
61046
|
__exportStar(require("./exportBlockResponse"), exports);
|
|
59982
61047
|
__exportStar(require("./exportGetUrlResponse"), exports);
|
|
@@ -60013,6 +61078,7 @@ __exportStar(require("./getDeviceResponse"), exports);
|
|
|
60013
61078
|
__exportStar(require("./getDiversityDataResponse"), exports);
|
|
60014
61079
|
__exportStar(require("./getEmailVerificationCodeResponse"), exports);
|
|
60015
61080
|
__exportStar(require("./getEmailVerificationStatusResponse"), exports);
|
|
61081
|
+
__exportStar(require("./getEventSubscriptionResponse"), exports);
|
|
60016
61082
|
__exportStar(require("./getFeatureFlagsResponse"), exports);
|
|
60017
61083
|
__exportStar(require("./getFeaturesForPostProcessingSampleResponse"), exports);
|
|
60018
61084
|
__exportStar(require("./getHmacDevkeyResponse"), exports);
|
|
@@ -60078,6 +61144,7 @@ __exportStar(require("./getThirdPartyAuthResponse"), exports);
|
|
|
60078
61144
|
__exportStar(require("./getUserNeedToSetPasswordResponse"), exports);
|
|
60079
61145
|
__exportStar(require("./getUserProjectsResponse"), exports);
|
|
60080
61146
|
__exportStar(require("./getUserResponse"), exports);
|
|
61147
|
+
__exportStar(require("./getWebhookDestinationResponse"), exports);
|
|
60081
61148
|
__exportStar(require("./getWhitelabelDomainResponse"), exports);
|
|
60082
61149
|
__exportStar(require("./getWhitelabelResponse"), exports);
|
|
60083
61150
|
__exportStar(require("./hasDataExplorerFeaturesResponse"), exports);
|
|
@@ -60141,9 +61208,11 @@ __exportStar(require("./listDeploymentHistoryResponse"), exports);
|
|
|
60141
61208
|
__exportStar(require("./listDevicesResponse"), exports);
|
|
60142
61209
|
__exportStar(require("./listEmailResponse"), exports);
|
|
60143
61210
|
__exportStar(require("./listEnterpriseTrialsResponse"), exports);
|
|
61211
|
+
__exportStar(require("./listEventSubscriptionsResponse"), exports);
|
|
60144
61212
|
__exportStar(require("./listHmacKeysResponse"), exports);
|
|
60145
61213
|
__exportStar(require("./listJobsResponse"), exports);
|
|
60146
61214
|
__exportStar(require("./listModelsResponse"), exports);
|
|
61215
|
+
__exportStar(require("./listMonitoringEventsResponse"), exports);
|
|
60147
61216
|
__exportStar(require("./listOrganizationApiKeysResponse"), exports);
|
|
60148
61217
|
__exportStar(require("./listOrganizationBucketsResponse"), exports);
|
|
60149
61218
|
__exportStar(require("./listOrganizationBucketsUserResponse"), exports);
|
|
@@ -60172,6 +61241,7 @@ __exportStar(require("./listPublicVersionsResponse"), exports);
|
|
|
60172
61241
|
__exportStar(require("./listSamplesResponse"), exports);
|
|
60173
61242
|
__exportStar(require("./listTunerRunsResponse"), exports);
|
|
60174
61243
|
__exportStar(require("./listVersionsResponse"), exports);
|
|
61244
|
+
__exportStar(require("./listWebhookDestinationsResponse"), exports);
|
|
60175
61245
|
__exportStar(require("./logAnalyticsEventRequest"), exports);
|
|
60176
61246
|
__exportStar(require("./logStdoutResponse"), exports);
|
|
60177
61247
|
__exportStar(require("./logStdoutResponseAllOfStdout"), exports);
|
|
@@ -60189,6 +61259,7 @@ __exportStar(require("./modelEngineShortEnum"), exports);
|
|
|
60189
61259
|
__exportStar(require("./modelPrediction"), exports);
|
|
60190
61260
|
__exportStar(require("./modelResult"), exports);
|
|
60191
61261
|
__exportStar(require("./modelVariantStats"), exports);
|
|
61262
|
+
__exportStar(require("./monitoringEvent"), exports);
|
|
60192
61263
|
__exportStar(require("./moveRawDataRequest"), exports);
|
|
60193
61264
|
__exportStar(require("./neighborsData"), exports);
|
|
60194
61265
|
__exportStar(require("./neighborsScore"), exports);
|
|
@@ -60354,6 +61425,7 @@ __exportStar(require("./resetPasswordRequest"), exports);
|
|
|
60354
61425
|
__exportStar(require("./resourceRange"), exports);
|
|
60355
61426
|
__exportStar(require("./restoreProjectFromPublicRequest"), exports);
|
|
60356
61427
|
__exportStar(require("./restoreProjectRequest"), exports);
|
|
61428
|
+
__exportStar(require("./rotateWebhookDestinationSecretResponse"), exports);
|
|
60357
61429
|
__exportStar(require("./runOrganizationPipelineResponse"), exports);
|
|
60358
61430
|
__exportStar(require("./sample"), exports);
|
|
60359
61431
|
__exportStar(require("./sampleBoundingBoxesRequest"), exports);
|
|
@@ -60418,6 +61490,7 @@ __exportStar(require("./testAddMockModelMonitoringDataRequest"), exports);
|
|
|
60418
61490
|
__exportStar(require("./testPretrainedModelImagesRequest"), exports);
|
|
60419
61491
|
__exportStar(require("./testPretrainedModelRequest"), exports);
|
|
60420
61492
|
__exportStar(require("./testPretrainedModelResponse"), exports);
|
|
61493
|
+
__exportStar(require("./testWebhookDestinationResponse"), exports);
|
|
60421
61494
|
__exportStar(require("./theme"), exports);
|
|
60422
61495
|
__exportStar(require("./thirdPartyAuth"), exports);
|
|
60423
61496
|
__exportStar(require("./thresholdValue"), exports);
|
|
@@ -60440,6 +61513,7 @@ __exportStar(require("./tunerTrialImpulse"), exports);
|
|
|
60440
61513
|
__exportStar(require("./tutorialType"), exports);
|
|
60441
61514
|
__exportStar(require("./updateAIActionRequest"), exports);
|
|
60442
61515
|
__exportStar(require("./updateDatasetVersionRequest"), exports);
|
|
61516
|
+
__exportStar(require("./updateEventSubscriptionRequest"), exports);
|
|
60443
61517
|
__exportStar(require("./updateImpulseRequest"), exports);
|
|
60444
61518
|
__exportStar(require("./updateJobRequest"), exports);
|
|
60445
61519
|
__exportStar(require("./updateOrganizationAddCollaboratorRequest"), exports);
|
|
@@ -60464,6 +61538,7 @@ __exportStar(require("./updateThirdPartyAuthRequest"), exports);
|
|
|
60464
61538
|
__exportStar(require("./updateTunerRunRequest"), exports);
|
|
60465
61539
|
__exportStar(require("./updateUserRequest"), exports);
|
|
60466
61540
|
__exportStar(require("./updateVersionRequest"), exports);
|
|
61541
|
+
__exportStar(require("./updateWebhookDestinationRequest"), exports);
|
|
60467
61542
|
__exportStar(require("./updateWhitelabelDefaultDeploymentTargetRequest"), exports);
|
|
60468
61543
|
__exportStar(require("./updateWhitelabelDeploymentOptionsOrderRequest"), exports);
|
|
60469
61544
|
__exportStar(require("./updateWhitelabelDeploymentTargetsRequest"), exports);
|
|
@@ -60525,6 +61600,7 @@ __exportStar(require("./vlmPromptComponentConfig"), exports);
|
|
|
60525
61600
|
__exportStar(require("./vlmPromptConfigParamItem"), exports);
|
|
60526
61601
|
__exportStar(require("./vlmPromptConfigParameters"), exports);
|
|
60527
61602
|
__exportStar(require("./vlmSetConfigResponse"), exports);
|
|
61603
|
+
__exportStar(require("./webhookDestination"), exports);
|
|
60528
61604
|
__exportStar(require("./whitelabel"), exports);
|
|
60529
61605
|
__exportStar(require("./whitelabelAdminCreateOrganizationRequest"), exports);
|
|
60530
61606
|
__exportStar(require("./windowSettings"), exports);
|
|
@@ -60706,6 +61782,15 @@ exports.COLLECTION_FORMATS = {
|
|
|
60706
61782
|
});
|
|
60707
61783
|
|
|
60708
61784
|
|
|
61785
|
+
define("library/sdk/model/monitoringEvent", ["require", "exports"], function (require, exports) {
|
|
61786
|
+
"use strict";
|
|
61787
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
61788
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61789
|
+
exports.MonitoringEventStatusEnumValues = void 0;
|
|
61790
|
+
exports.MonitoringEventStatusEnumValues = ['pending', 'processing', 'delivered', 'failed'];
|
|
61791
|
+
});
|
|
61792
|
+
|
|
61793
|
+
|
|
60709
61794
|
define("library/sdk/model/moveRawDataRequest", ["require", "exports"], function (require, exports) {
|
|
60710
61795
|
"use strict";
|
|
60711
61796
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60732,7 +61817,7 @@ define("library/sdk/model/oAuthScope", ["require", "exports"], function (require
|
|
|
60732
61817
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
60733
61818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60734
61819
|
exports.OAuthScopeValues = void 0;
|
|
60735
|
-
exports.OAuthScopeValues = ['deployments:create', 'deployments:delete', 'deployments:read', 'deployments:update', 'devices:create', 'devices:delete', 'devices:read', 'devices:update', 'jobs:read', 'organizations:read', 'projects:apikeys:ingestiononly:create', 'projects:apikeys:ingestiononly:delete', 'projects:create', 'projects:delete', 'projects:read', 'projects:update', 'user:read', 'user:update'];
|
|
61820
|
+
exports.OAuthScopeValues = ['deployments:create', 'deployments:delete', 'deployments:read', 'deployments:update', 'devices:create', 'devices:delete', 'devices:read', 'devices:update', 'jobs:read', 'organizations:read', 'projects:apikeys:ingestiononly:create', 'projects:apikeys:ingestiononly:delete', 'projects:create', 'projects:delete', 'projects:monitoring:write', 'projects:monitoring:update', 'projects:monitoring:read', 'projects:monitoring:delete', 'projects:read', 'projects:update', 'user:read', 'user:update'];
|
|
60736
61821
|
});
|
|
60737
61822
|
|
|
60738
61823
|
|
|
@@ -61980,6 +63065,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
61980
63065
|
});
|
|
61981
63066
|
|
|
61982
63067
|
|
|
63068
|
+
define("library/sdk/model/rotateWebhookDestinationSecretResponse", ["require", "exports"], function (require, exports) {
|
|
63069
|
+
"use strict";
|
|
63070
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63071
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63072
|
+
});
|
|
63073
|
+
|
|
63074
|
+
|
|
61983
63075
|
define("library/sdk/model/runOrganizationPipelineResponse", ["require", "exports"], function (require, exports) {
|
|
61984
63076
|
"use strict";
|
|
61985
63077
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -62453,6 +63545,13 @@ exports.TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeEnumV
|
|
|
62453
63545
|
});
|
|
62454
63546
|
|
|
62455
63547
|
|
|
63548
|
+
define("library/sdk/model/testWebhookDestinationResponse", ["require", "exports"], function (require, exports) {
|
|
63549
|
+
"use strict";
|
|
63550
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63551
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63552
|
+
});
|
|
63553
|
+
|
|
63554
|
+
|
|
62456
63555
|
define("library/sdk/model/theme", ["require", "exports"], function (require, exports) {
|
|
62457
63556
|
"use strict";
|
|
62458
63557
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -62619,6 +63718,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62619
63718
|
});
|
|
62620
63719
|
|
|
62621
63720
|
|
|
63721
|
+
define("library/sdk/model/updateEventSubscriptionRequest", ["require", "exports"], function (require, exports) {
|
|
63722
|
+
"use strict";
|
|
63723
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63724
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63725
|
+
});
|
|
63726
|
+
|
|
63727
|
+
|
|
62622
63728
|
define("library/sdk/model/updateImpulseRequest", ["require", "exports"], function (require, exports) {
|
|
62623
63729
|
"use strict";
|
|
62624
63730
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -62794,6 +63900,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62794
63900
|
});
|
|
62795
63901
|
|
|
62796
63902
|
|
|
63903
|
+
define("library/sdk/model/updateWebhookDestinationRequest", ["require", "exports"], function (require, exports) {
|
|
63904
|
+
"use strict";
|
|
63905
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
63906
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63907
|
+
});
|
|
63908
|
+
|
|
63909
|
+
|
|
62797
63910
|
define("library/sdk/model/updateWhitelabelDefaultDeploymentTargetRequest", ["require", "exports"], function (require, exports) {
|
|
62798
63911
|
"use strict";
|
|
62799
63912
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -63239,6 +64352,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
63239
64352
|
});
|
|
63240
64353
|
|
|
63241
64354
|
|
|
64355
|
+
define("library/sdk/model/webhookDestination", ["require", "exports"], function (require, exports) {
|
|
64356
|
+
"use strict";
|
|
64357
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
64358
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64359
|
+
});
|
|
64360
|
+
|
|
64361
|
+
|
|
63242
64362
|
define("library/sdk/model/whitelabel", ["require", "exports"], function (require, exports) {
|
|
63243
64363
|
"use strict";
|
|
63244
64364
|
// Generated by studio/openapi/generate-models/convert.ts
|