edge-impulse-api 1.93.9 → 1.93.11

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.
Files changed (78) hide show
  1. package/build/browser/edge-impulse-api.d.ts +599 -3
  2. package/build/browser/edge-impulse-api.js +1572 -288
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/api/apis.d.ts +3 -1
  5. package/build/library/sdk/api/apis.js +3 -1
  6. package/build/library/sdk/api/apis.js.map +1 -1
  7. package/build/library/sdk/api/monitoringApi.d.ts +204 -0
  8. package/build/library/sdk/api/monitoringApi.js +985 -0
  9. package/build/library/sdk/api/monitoringApi.js.map +1 -0
  10. package/build/library/sdk/api/organizationCreateProjectApi.d.ts +25 -0
  11. package/build/library/sdk/api/organizationCreateProjectApi.js +136 -0
  12. package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
  13. package/build/library/sdk/api/rawDataApi.d.ts +1 -1
  14. package/build/library/sdk/api/rawDataApi.js +1 -1
  15. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.d.ts +18 -0
  16. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js +6 -0
  17. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js.map +1 -0
  18. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.d.ts +22 -0
  19. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.js +4 -0
  20. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.js.map +1 -0
  21. package/build/library/sdk/model/createEventSubscriptionRequest.d.ts +24 -0
  22. package/build/library/sdk/model/createEventSubscriptionRequest.js +4 -0
  23. package/build/library/sdk/model/createEventSubscriptionRequest.js.map +1 -0
  24. package/build/library/sdk/model/createEventSubscriptionResponse.d.ts +12 -0
  25. package/build/library/sdk/model/createEventSubscriptionResponse.js +4 -0
  26. package/build/library/sdk/model/createEventSubscriptionResponse.js.map +1 -0
  27. package/build/library/sdk/model/createWebhookDestinationRequest.d.ts +10 -0
  28. package/build/library/sdk/model/createWebhookDestinationRequest.js +4 -0
  29. package/build/library/sdk/model/createWebhookDestinationRequest.js.map +1 -0
  30. package/build/library/sdk/model/createWebhookDestinationResponse.d.ts +20 -0
  31. package/build/library/sdk/model/createWebhookDestinationResponse.js +4 -0
  32. package/build/library/sdk/model/createWebhookDestinationResponse.js.map +1 -0
  33. package/build/library/sdk/model/eventSubscription.d.ts +32 -0
  34. package/build/library/sdk/model/eventSubscription.js +4 -0
  35. package/build/library/sdk/model/eventSubscription.js.map +1 -0
  36. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.d.ts +22 -0
  37. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js +6 -0
  38. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js.map +1 -0
  39. package/build/library/sdk/model/getEventSubscriptionResponse.d.ts +12 -0
  40. package/build/library/sdk/model/getEventSubscriptionResponse.js +4 -0
  41. package/build/library/sdk/model/getEventSubscriptionResponse.js.map +1 -0
  42. package/build/library/sdk/model/getWebhookDestinationResponse.d.ts +12 -0
  43. package/build/library/sdk/model/getWebhookDestinationResponse.js +4 -0
  44. package/build/library/sdk/model/getWebhookDestinationResponse.js.map +1 -0
  45. package/build/library/sdk/model/listEventSubscriptionsResponse.d.ts +12 -0
  46. package/build/library/sdk/model/listEventSubscriptionsResponse.js +4 -0
  47. package/build/library/sdk/model/listEventSubscriptionsResponse.js.map +1 -0
  48. package/build/library/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
  49. package/build/library/sdk/model/listMonitoringEventsResponse.js +4 -0
  50. package/build/library/sdk/model/listMonitoringEventsResponse.js.map +1 -0
  51. package/build/library/sdk/model/listWebhookDestinationsResponse.d.ts +12 -0
  52. package/build/library/sdk/model/listWebhookDestinationsResponse.js +4 -0
  53. package/build/library/sdk/model/listWebhookDestinationsResponse.js.map +1 -0
  54. package/build/library/sdk/model/models.d.ts +19 -0
  55. package/build/library/sdk/model/models.js +19 -0
  56. package/build/library/sdk/model/models.js.map +1 -1
  57. package/build/library/sdk/model/monitoringEvent.d.ts +34 -0
  58. package/build/library/sdk/model/monitoringEvent.js +6 -0
  59. package/build/library/sdk/model/monitoringEvent.js.map +1 -0
  60. package/build/library/sdk/model/oAuthScope.d.ts +1 -1
  61. package/build/library/sdk/model/oAuthScope.js +1 -1
  62. package/build/library/sdk/model/oAuthScope.js.map +1 -1
  63. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.d.ts +15 -0
  64. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js +4 -0
  65. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js.map +1 -0
  66. package/build/library/sdk/model/testWebhookDestinationResponse.d.ts +20 -0
  67. package/build/library/sdk/model/testWebhookDestinationResponse.js +4 -0
  68. package/build/library/sdk/model/testWebhookDestinationResponse.js.map +1 -0
  69. package/build/library/sdk/model/updateEventSubscriptionRequest.d.ts +24 -0
  70. package/build/library/sdk/model/updateEventSubscriptionRequest.js +4 -0
  71. package/build/library/sdk/model/updateEventSubscriptionRequest.js.map +1 -0
  72. package/build/library/sdk/model/updateWebhookDestinationRequest.d.ts +14 -0
  73. package/build/library/sdk/model/updateWebhookDestinationRequest.js +4 -0
  74. package/build/library/sdk/model/updateWebhookDestinationRequest.js.map +1 -0
  75. package/build/library/sdk/model/webhookDestination.d.ts +26 -0
  76. package/build/library/sdk/model/webhookDestination.js +4 -0
  77. package/build/library/sdk/model/webhookDestination.js.map +1 -0
  78. 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/optimizationApi", ["require", "exports"], function (require, exports) {
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.OptimizationApi = exports.OptimizationApiApiKeys = void 0;
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 OptimizationApiApiKeys;
22184
- (function (OptimizationApiApiKeys) {
22185
- OptimizationApiApiKeys[OptimizationApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
22186
- OptimizationApiApiKeys[OptimizationApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
22187
- OptimizationApiApiKeys[OptimizationApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
22188
- })(OptimizationApiApiKeys = exports.OptimizationApiApiKeys || (exports.OptimizationApiApiKeys = {}));
22189
- class OptimizationApi {
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[OptimizationApiApiKeys[key]].apiKey = value;
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
- * Complete EON tuner run and mark it as succesful
22254
- * @summary Complete EON tuner run
22255
+ * Create a monitoring event subscription for this project.
22256
+ * @summary Create event subscription
22255
22257
  * @param projectId Project ID
22256
- * @param jobId Job ID
22257
- * @param tunerCompleteSearch
22258
+ * @param createEventSubscriptionRequest
22258
22259
  */
22259
- async completeSearch(projectId, jobId, tunerCompleteSearch, options = { headers: {} }) {
22260
- const localVarPath = this.basePath + '/api/{projectId}/optimize/{jobId}/complete-search'
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 completeSearch.');
22280
+ throw new Error('Required parameter projectId was null or undefined when calling createEventSubscription.');
22281
22281
  }
22282
- // verify required parameter 'jobId' is not null or undefined
22283
- if (jobId === null || jobId === undefined) {
22284
- throw new Error('Required parameter jobId was null or undefined when calling completeSearch.');
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
- // verify required parameter 'tunerCompleteSearch' is not null or undefined
22287
- if (tunerCompleteSearch === null || tunerCompleteSearch === undefined) {
22288
- throw new Error('Required parameter tunerCompleteSearch was null or undefined when calling completeSearch.');
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(tunerCompleteSearch);
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, 'GenericApiResponse');
22388
+ return this.handleResponse(response, 'CreateWebhookDestinationResponse');
22325
22389
  }
22326
22390
  /**
22327
- * Create trial
22328
- * @summary Create trial
22391
+ * Delete a monitoring event subscription.
22392
+ * @summary Delete event subscription
22329
22393
  * @param projectId Project ID
22330
- * @param jobId Job ID
22331
- * @param tunerCreateTrialImpulse
22394
+ * @param eventSubscriptionId Event subscription ID
22332
22395
  */
22333
- async createTrial(projectId, jobId, tunerCreateTrialImpulse, options = { headers: {} }) {
22334
- const localVarPath = this.basePath + '/api/{projectId}/optimize/{jobId}/create-trial'
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('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
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 createTrial.');
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 'tunerCreateTrialImpulse' is not null or undefined
22361
- if (tunerCreateTrialImpulse === null || tunerCreateTrialImpulse === undefined) {
22362
- throw new Error('Required parameter tunerCreateTrialImpulse was null or undefined when calling createTrial.');
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: 'POST',
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
- * Completely clears the EON tuner state for this project.
22402
- * @summary Delete EON tuner state
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 deleteState(projectId, options = { headers: {} }) {
22406
- const localVarPath = this.basePath + '/api/{projectId}/optimize/state'
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 deleteState.');
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
- * End an EON trial early. This can for example be used to implement early stopping.
22464
- * @summary End EON tuner trial
22527
+ * Get details about a monitoring event subscription.
22528
+ * @summary Get event subscription
22465
22529
  * @param projectId Project ID
22466
- * @param jobId Job ID
22467
- * @param trialId trial ID
22530
+ * @param eventSubscriptionId Event subscription ID
22468
22531
  */
22469
- async endTrial(projectId, jobId, trialId, options = { headers: {} }) {
22470
- const localVarPath = this.basePath + '/api/{projectId}/optimize//{jobId}/trial/{trialId}/end-trial'
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('{' + 'jobId' + '}', encodeURIComponent(String(jobId)))
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 endTrial.');
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 'trialId' is not null or undefined
22498
- if (trialId === null || trialId === undefined) {
22499
- throw new Error('Required parameter trialId was null or undefined when calling endTrial.');
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, 'GenericApiResponse');
22592
+ return this.handleResponse(response, 'GetEventSubscriptionResponse');
22535
22593
  }
22536
22594
  /**
22537
- * 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
22538
- * @summary Get impulse blocks
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 getAllBlocks(projectId, options = { headers: {} }) {
22542
- const localVarPath = this.basePath + '/api/{projectId}/optimize/all-blocks'
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 getAllBlocks.');
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, 'AllBlocksResponse');
22660
+ return this.handleResponse(response, 'GetWebhookDestinationResponse');
22597
22661
  }
22598
22662
  /**
22599
- * Get all available learn blocks
22600
- * @summary Get all available learn blocks
22663
+ * List all monitoring event subscriptions for this project.
22664
+ * @summary List event subscriptions
22601
22665
  * @param projectId Project ID
22602
22666
  */
22603
- async getAllLearnBlocks(projectId, options = { headers: {} }) {
22604
- const localVarPath = this.basePath + '/api/{projectId}/optimize/all-learn-blocks'
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 getAllLearnBlocks.');
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, 'AllLearnBlocksResponse');
22722
+ return this.handleResponse(response, 'ListEventSubscriptionsResponse');
22659
22723
  }
22660
22724
  /**
22661
- * Get config
22662
- * @summary Get config
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 getConfig(projectId, options = { headers: {} }) {
22666
- const localVarPath = this.basePath + '/api/{projectId}/optimize/config'
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 getConfig.');
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, 'OptimizeConfigResponse');
22788
+ return this.handleResponse(response, 'ListMonitoringEventsResponse');
22721
22789
  }
22722
22790
  /**
22723
- * Retrieves DSP block parameters
22724
- * @summary Retrieves DSP block parameters
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 getDspParameters(projectId, queryParams, options = { headers: {} }) {
22730
- const localVarPath = this.basePath + '/api/{projectId}/optimize/dsp-parameters'
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 getDspParameters.');
22815
+ throw new Error('Required parameter projectId was null or undefined when calling listWebhookDestinations.');
22750
22816
  }
22751
- // verify required parameter 'organizationId' is not null or undefined
22752
- if (queryParams.organizationId === null || queryParams.organizationId === undefined) {
22753
- throw new Error('Required parameter queryParams.organizationId was null or undefined when calling getDspParameters.');
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
- // verify required parameter 'organizationDspId' is not null or undefined
22756
- if (queryParams.organizationDspId === null || queryParams.organizationDspId === undefined) {
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
- if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationId) !== null) {
22760
- queryParameters['organizationId'] = queryParams.organizationId;
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
- if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationDspId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.organizationDspId) !== null) {
22763
- queryParameters['organizationDspId'] = queryParams.organizationDspId;
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: 'GET',
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, 'OptimizeDSPParametersResponse');
22918
+ return this.handleResponse(response, 'RotateWebhookDestinationSecretResponse');
22799
22919
  }
22800
22920
  /**
22801
- * Search space
22802
- * @summary Search space
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 getSpace(projectId, options = { headers: {} }) {
22806
- const localVarPath = this.basePath + '/api/{projectId}/optimize/space'
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 getSpace.');
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: 'GET',
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, 'OptimizeSpaceResponse');
22986
+ return this.handleResponse(response, 'TestWebhookDestinationResponse');
22861
22987
  }
22862
22988
  /**
22863
- * Retrieves the EON tuner state
22864
- * @summary Retrieves the EON tuner state
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 getState(projectId, options = { headers: {} }) {
22868
- const localVarPath = this.basePath + '/api/{projectId}/optimize/state'
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 getState.');
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: 'GET',
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, 'OptimizeStateResponse');
23060
+ return this.handleResponse(response, 'GenericApiResponse');
22923
23061
  }
22924
23062
  /**
22925
- * Retrieves available transfer learning models
22926
- * @summary Retrieves available transfer learning models
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 getTransferLearningModels(projectId, options = { headers: {} }) {
22930
- const localVarPath = this.basePath + '/api/{projectId}/optimize/transfer-learning-models'
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 getTransferLearningModels.');
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: 'GET',
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;
@@ -25674,16 +26664,262 @@ class OrganizationBlocksApi {
25674
26664
  return this.handleResponse(response, 'GenericApiResponse');
25675
26665
  }
25676
26666
  /**
25677
- * Updates a transformation block. Only values in the body will be updated.
25678
- * @summary Update transformation block
26667
+ * Updates a transformation block. Only values in the body will be updated.
26668
+ * @summary Update transformation block
26669
+ * @param organizationId Organization ID
26670
+ * @param transformationId Transformation block ID.
26671
+ * @param updateOrganizationTransformationBlockRequest
26672
+ */
26673
+ async updateOrganizationTransformationBlock(organizationId, transformationId, updateOrganizationTransformationBlockRequest, options = { headers: {} }) {
26674
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation/{transformationId}'
26675
+ .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
26676
+ .replace('{' + 'transformationId' + '}', encodeURIComponent(String(transformationId)));
26677
+ let queryParameters = {};
26678
+ let localVarHeaderParams = {
26679
+ ...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
26680
+ 'Content-Type': 'application/json',
26681
+ ...this.defaultHeaders,
26682
+ };
26683
+ const produces = ['application/json'];
26684
+ // give precedence to 'application/json'
26685
+ if (produces.indexOf('application/json') >= 0) {
26686
+ localVarHeaderParams.Accept = 'application/json';
26687
+ }
26688
+ else {
26689
+ localVarHeaderParams.Accept = produces.join(',');
26690
+ }
26691
+ let localVarFormParams;
26692
+ // verify required parameter 'organizationId' is not null or undefined
26693
+ if (organizationId === null || organizationId === undefined) {
26694
+ throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationTransformationBlock.');
26695
+ }
26696
+ // verify required parameter 'transformationId' is not null or undefined
26697
+ if (transformationId === null || transformationId === undefined) {
26698
+ throw new Error('Required parameter transformationId was null or undefined when calling updateOrganizationTransformationBlock.');
26699
+ }
26700
+ // verify required parameter 'updateOrganizationTransformationBlockRequest' is not null or undefined
26701
+ if (updateOrganizationTransformationBlockRequest === null || updateOrganizationTransformationBlockRequest === undefined) {
26702
+ throw new Error('Required parameter updateOrganizationTransformationBlockRequest was null or undefined when calling updateOrganizationTransformationBlock.');
26703
+ }
26704
+ localVarHeaderParams = {
26705
+ ...localVarHeaderParams,
26706
+ ...options.headers,
26707
+ ...this.opts.extraHeaders,
26708
+ };
26709
+ const queryString = Object.entries(queryParameters)
26710
+ .filter(([, value]) => value !== undefined)
26711
+ .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
26712
+ .join('&');
26713
+ let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
26714
+ let localVarRequestOptions = {
26715
+ method: 'POST',
26716
+ headers: { ...localVarHeaderParams },
26717
+ };
26718
+ localVarRequestOptions.body = JSON.stringify(updateOrganizationTransformationBlockRequest);
26719
+ let requestOptions = localVarRequestOptions;
26720
+ let url = localVarUrl;
26721
+ const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
26722
+ requestOptions = auth_ApiKeyAuthentication.requestOptions;
26723
+ url = auth_ApiKeyAuthentication.url;
26724
+ const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
26725
+ requestOptions = auth_JWTAuthentication.requestOptions;
26726
+ url = auth_JWTAuthentication.url;
26727
+ const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
26728
+ requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
26729
+ url = auth_JWTHttpHeaderAuthentication.url;
26730
+ const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
26731
+ requestOptions = auth_OAuth2.requestOptions;
26732
+ url = auth_OAuth2.url;
26733
+ const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
26734
+ requestOptions = authDefault.requestOptions;
26735
+ url = authDefault.url;
26736
+ (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
26737
+ const response = await fetch(url, requestOptions);
26738
+ return this.handleResponse(response, 'GenericApiResponse');
26739
+ }
26740
+ }
26741
+ exports.OrganizationBlocksApi = OrganizationBlocksApi;
26742
+ });
26743
+
26744
+
26745
+ define("library/sdk/api/organizationCreateProjectApi", ["require", "exports"], function (require, exports) {
26746
+ "use strict";
26747
+ /**
26748
+ * Edge Impulse API
26749
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
26750
+ *
26751
+ * The version of the OpenAPI document: 1.0.0
26752
+ *
26753
+ *
26754
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26755
+ * https://openapi-generator.tech
26756
+ * Do not edit the class manually.
26757
+ */
26758
+ Object.defineProperty(exports, "__esModule", { value: true });
26759
+ exports.OrganizationCreateProjectApi = exports.OrganizationCreateProjectApiApiKeys = void 0;
26760
+ let fetch;
26761
+ let FormData;
26762
+ if (globalThis.fetch && globalThis.FormData) {
26763
+ fetch = globalThis.fetch;
26764
+ FormData = globalThis.FormData;
26765
+ }
26766
+ else {
26767
+ const undici = require('undici');
26768
+ fetch = undici.fetch;
26769
+ FormData = undici.FormData;
26770
+ }
26771
+ const models_1 = require("../model/models");
26772
+ const models_2 = require("../model/models");
26773
+ let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
26774
+ // ===============================================
26775
+ // This file is autogenerated - Please do not edit
26776
+ // ===============================================
26777
+ var OrganizationCreateProjectApiApiKeys;
26778
+ (function (OrganizationCreateProjectApiApiKeys) {
26779
+ OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
26780
+ OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
26781
+ OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
26782
+ })(OrganizationCreateProjectApiApiKeys = exports.OrganizationCreateProjectApiApiKeys || (exports.OrganizationCreateProjectApiApiKeys = {}));
26783
+ class OrganizationCreateProjectApi {
26784
+ async handleResponse(response, returnType) {
26785
+ let body = await (0, models_1.parseResponse)(response);
26786
+ if (!response.ok) {
26787
+ let errorMsg;
26788
+ if (typeof body === 'object' && body !== null && 'error' in body) {
26789
+ errorMsg = body.error;
26790
+ }
26791
+ else {
26792
+ errorMsg = `Failed to call "${response.url}", returned ${response.status}: ` + (typeof body === 'string' ? body : JSON.stringify(body));
26793
+ }
26794
+ throw new Error(errorMsg);
26795
+ }
26796
+ if (typeof body.success === 'boolean' && !body.success) {
26797
+ const errString = `Failed to call "${response.url}", returned ${response.status}: ` + body.error;
26798
+ throw new Error(body.error || errString);
26799
+ }
26800
+ return (0, models_1.convertISODateStringsOnObj)(body);
26801
+ }
26802
+ constructor(basePathOrUsername, opts, password, basePath) {
26803
+ this._basePath = defaultBasePath;
26804
+ this.defaultHeaders = {};
26805
+ this._opts = {};
26806
+ this.authentications = {
26807
+ 'default': new models_1.VoidAuth(),
26808
+ 'ApiKeyAuthentication': new models_2.ApiKeyAuth('header', 'x-api-key'),
26809
+ 'OAuth2': new models_2.OAuth(),
26810
+ 'JWTAuthentication': new models_2.ApiKeyAuth('cookie', 'jwt'),
26811
+ 'JWTHttpHeaderAuthentication': new models_2.ApiKeyAuth('header', 'x-jwt-token'),
26812
+ };
26813
+ if (password) {
26814
+ if (basePath) {
26815
+ this.basePath = basePath;
26816
+ }
26817
+ }
26818
+ else {
26819
+ if (basePathOrUsername) {
26820
+ this.basePath = basePathOrUsername;
26821
+ }
26822
+ }
26823
+ this.opts = opts !== null && opts !== void 0 ? opts : {};
26824
+ }
26825
+ set basePath(basePath) {
26826
+ this._basePath = basePath;
26827
+ }
26828
+ get basePath() {
26829
+ return this._basePath;
26830
+ }
26831
+ set opts(opts) {
26832
+ this._opts = opts;
26833
+ }
26834
+ get opts() {
26835
+ return this._opts;
26836
+ }
26837
+ setDefaultAuthentication(auth) {
26838
+ this.authentications.default = auth;
26839
+ }
26840
+ setApiKey(key, value) {
26841
+ this.authentications[OrganizationCreateProjectApiApiKeys[key]].apiKey = value;
26842
+ }
26843
+ set accessToken(token) {
26844
+ this.authentications.OAuth2.accessToken = token;
26845
+ }
26846
+ /**
26847
+ * Clear all failed transform job from a create project job. Only jobs that have failed will be cleared.
26848
+ * @summary Clear failed transform jobs
26849
+ * @param organizationId Organization ID
26850
+ * @param createProjectId Create project job ID.
26851
+ */
26852
+ async clearOrganizationTransform(organizationId, createProjectId, options = { headers: {} }) {
26853
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}/transform/clear'
26854
+ .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
26855
+ .replace('{' + 'createProjectId' + '}', encodeURIComponent(String(createProjectId)));
26856
+ let queryParameters = {};
26857
+ let localVarHeaderParams = {
26858
+ ...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
26859
+ 'Content-Type': 'application/json',
26860
+ ...this.defaultHeaders,
26861
+ };
26862
+ const produces = ['application/json'];
26863
+ // give precedence to 'application/json'
26864
+ if (produces.indexOf('application/json') >= 0) {
26865
+ localVarHeaderParams.Accept = 'application/json';
26866
+ }
26867
+ else {
26868
+ localVarHeaderParams.Accept = produces.join(',');
26869
+ }
26870
+ let localVarFormParams;
26871
+ // verify required parameter 'organizationId' is not null or undefined
26872
+ if (organizationId === null || organizationId === undefined) {
26873
+ throw new Error('Required parameter organizationId was null or undefined when calling clearOrganizationTransform.');
26874
+ }
26875
+ // verify required parameter 'createProjectId' is not null or undefined
26876
+ if (createProjectId === null || createProjectId === undefined) {
26877
+ throw new Error('Required parameter createProjectId was null or undefined when calling clearOrganizationTransform.');
26878
+ }
26879
+ localVarHeaderParams = {
26880
+ ...localVarHeaderParams,
26881
+ ...options.headers,
26882
+ ...this.opts.extraHeaders,
26883
+ };
26884
+ const queryString = Object.entries(queryParameters)
26885
+ .filter(([, value]) => value !== undefined)
26886
+ .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
26887
+ .join('&');
26888
+ let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
26889
+ let localVarRequestOptions = {
26890
+ method: 'POST',
26891
+ headers: { ...localVarHeaderParams },
26892
+ };
26893
+ let requestOptions = localVarRequestOptions;
26894
+ let url = localVarUrl;
26895
+ const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
26896
+ requestOptions = auth_ApiKeyAuthentication.requestOptions;
26897
+ url = auth_ApiKeyAuthentication.url;
26898
+ const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
26899
+ requestOptions = auth_JWTAuthentication.requestOptions;
26900
+ url = auth_JWTAuthentication.url;
26901
+ const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
26902
+ requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
26903
+ url = auth_JWTHttpHeaderAuthentication.url;
26904
+ const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
26905
+ requestOptions = auth_OAuth2.requestOptions;
26906
+ url = auth_OAuth2.url;
26907
+ const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
26908
+ requestOptions = authDefault.requestOptions;
26909
+ url = authDefault.url;
26910
+ (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
26911
+ const response = await fetch(url, requestOptions);
26912
+ return this.handleResponse(response, 'GenericApiResponse');
26913
+ }
26914
+ /**
26915
+ * Creates a signed link to securely upload a custom block archive directly to S3.
26916
+ * @summary Create pre-signed S3 upload link for a custom block archive
25679
26917
  * @param organizationId Organization ID
25680
- * @param transformationId Transformation block ID.
25681
- * @param updateOrganizationTransformationBlockRequest
26918
+ * @param createCustomBlockUploadLinkRequest
25682
26919
  */
25683
- async updateOrganizationTransformationBlock(organizationId, transformationId, updateOrganizationTransformationBlockRequest, options = { headers: {} }) {
25684
- const localVarPath = this.basePath + '/api/organizations/{organizationId}/transformation/{transformationId}'
25685
- .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
25686
- .replace('{' + 'transformationId' + '}', encodeURIComponent(String(transformationId)));
26920
+ async createCustomBlockUploadLink(organizationId, createCustomBlockUploadLinkRequest, options = { headers: {} }) {
26921
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/custom-block/upload-link'
26922
+ .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
25687
26923
  let queryParameters = {};
25688
26924
  let localVarHeaderParams = {
25689
26925
  ...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
@@ -25701,15 +26937,11 @@ class OrganizationBlocksApi {
25701
26937
  let localVarFormParams;
25702
26938
  // verify required parameter 'organizationId' is not null or undefined
25703
26939
  if (organizationId === null || organizationId === undefined) {
25704
- throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationTransformationBlock.');
26940
+ throw new Error('Required parameter organizationId was null or undefined when calling createCustomBlockUploadLink.');
25705
26941
  }
25706
- // verify required parameter 'transformationId' is not null or undefined
25707
- if (transformationId === null || transformationId === undefined) {
25708
- throw new Error('Required parameter transformationId was null or undefined when calling updateOrganizationTransformationBlock.');
25709
- }
25710
- // verify required parameter 'updateOrganizationTransformationBlockRequest' is not null or undefined
25711
- if (updateOrganizationTransformationBlockRequest === null || updateOrganizationTransformationBlockRequest === undefined) {
25712
- throw new Error('Required parameter updateOrganizationTransformationBlockRequest was null or undefined when calling updateOrganizationTransformationBlock.');
26942
+ // verify required parameter 'createCustomBlockUploadLinkRequest' is not null or undefined
26943
+ if (createCustomBlockUploadLinkRequest === null || createCustomBlockUploadLinkRequest === undefined) {
26944
+ throw new Error('Required parameter createCustomBlockUploadLinkRequest was null or undefined when calling createCustomBlockUploadLink.');
25713
26945
  }
25714
26946
  localVarHeaderParams = {
25715
26947
  ...localVarHeaderParams,
@@ -25725,7 +26957,7 @@ class OrganizationBlocksApi {
25725
26957
  method: 'POST',
25726
26958
  headers: { ...localVarHeaderParams },
25727
26959
  };
25728
- localVarRequestOptions.body = JSON.stringify(updateOrganizationTransformationBlockRequest);
26960
+ localVarRequestOptions.body = JSON.stringify(createCustomBlockUploadLinkRequest);
25729
26961
  let requestOptions = localVarRequestOptions;
25730
26962
  let url = localVarUrl;
25731
26963
  const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
@@ -25745,122 +26977,16 @@ class OrganizationBlocksApi {
25745
26977
  url = authDefault.url;
25746
26978
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
25747
26979
  const response = await fetch(url, requestOptions);
25748
- return this.handleResponse(response, 'GenericApiResponse');
25749
- }
25750
- }
25751
- exports.OrganizationBlocksApi = OrganizationBlocksApi;
25752
- });
25753
-
25754
-
25755
- define("library/sdk/api/organizationCreateProjectApi", ["require", "exports"], function (require, exports) {
25756
- "use strict";
25757
- /**
25758
- * Edge Impulse API
25759
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
25760
- *
25761
- * The version of the OpenAPI document: 1.0.0
25762
- *
25763
- *
25764
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25765
- * https://openapi-generator.tech
25766
- * Do not edit the class manually.
25767
- */
25768
- Object.defineProperty(exports, "__esModule", { value: true });
25769
- exports.OrganizationCreateProjectApi = exports.OrganizationCreateProjectApiApiKeys = void 0;
25770
- let fetch;
25771
- let FormData;
25772
- if (globalThis.fetch && globalThis.FormData) {
25773
- fetch = globalThis.fetch;
25774
- FormData = globalThis.FormData;
25775
- }
25776
- else {
25777
- const undici = require('undici');
25778
- fetch = undici.fetch;
25779
- FormData = undici.FormData;
25780
- }
25781
- const models_1 = require("../model/models");
25782
- const models_2 = require("../model/models");
25783
- let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
25784
- // ===============================================
25785
- // This file is autogenerated - Please do not edit
25786
- // ===============================================
25787
- var OrganizationCreateProjectApiApiKeys;
25788
- (function (OrganizationCreateProjectApiApiKeys) {
25789
- OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["ApiKeyAuthentication"] = 0] = "ApiKeyAuthentication";
25790
- OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["JWTAuthentication"] = 1] = "JWTAuthentication";
25791
- OrganizationCreateProjectApiApiKeys[OrganizationCreateProjectApiApiKeys["JWTHttpHeaderAuthentication"] = 2] = "JWTHttpHeaderAuthentication";
25792
- })(OrganizationCreateProjectApiApiKeys = exports.OrganizationCreateProjectApiApiKeys || (exports.OrganizationCreateProjectApiApiKeys = {}));
25793
- class OrganizationCreateProjectApi {
25794
- async handleResponse(response, returnType) {
25795
- let body = await (0, models_1.parseResponse)(response);
25796
- if (!response.ok) {
25797
- let errorMsg;
25798
- if (typeof body === 'object' && body !== null && 'error' in body) {
25799
- errorMsg = body.error;
25800
- }
25801
- else {
25802
- errorMsg = `Failed to call "${response.url}", returned ${response.status}: ` + (typeof body === 'string' ? body : JSON.stringify(body));
25803
- }
25804
- throw new Error(errorMsg);
25805
- }
25806
- if (typeof body.success === 'boolean' && !body.success) {
25807
- const errString = `Failed to call "${response.url}", returned ${response.status}: ` + body.error;
25808
- throw new Error(body.error || errString);
25809
- }
25810
- return (0, models_1.convertISODateStringsOnObj)(body);
25811
- }
25812
- constructor(basePathOrUsername, opts, password, basePath) {
25813
- this._basePath = defaultBasePath;
25814
- this.defaultHeaders = {};
25815
- this._opts = {};
25816
- this.authentications = {
25817
- 'default': new models_1.VoidAuth(),
25818
- 'ApiKeyAuthentication': new models_2.ApiKeyAuth('header', 'x-api-key'),
25819
- 'OAuth2': new models_2.OAuth(),
25820
- 'JWTAuthentication': new models_2.ApiKeyAuth('cookie', 'jwt'),
25821
- 'JWTHttpHeaderAuthentication': new models_2.ApiKeyAuth('header', 'x-jwt-token'),
25822
- };
25823
- if (password) {
25824
- if (basePath) {
25825
- this.basePath = basePath;
25826
- }
25827
- }
25828
- else {
25829
- if (basePathOrUsername) {
25830
- this.basePath = basePathOrUsername;
25831
- }
25832
- }
25833
- this.opts = opts !== null && opts !== void 0 ? opts : {};
25834
- }
25835
- set basePath(basePath) {
25836
- this._basePath = basePath;
25837
- }
25838
- get basePath() {
25839
- return this._basePath;
25840
- }
25841
- set opts(opts) {
25842
- this._opts = opts;
25843
- }
25844
- get opts() {
25845
- return this._opts;
25846
- }
25847
- setDefaultAuthentication(auth) {
25848
- this.authentications.default = auth;
25849
- }
25850
- setApiKey(key, value) {
25851
- this.authentications[OrganizationCreateProjectApiApiKeys[key]].apiKey = value;
25852
- }
25853
- set accessToken(token) {
25854
- this.authentications.OAuth2.accessToken = token;
26980
+ return this.handleResponse(response, 'CreateCustomBlockUploadLinkResponse');
25855
26981
  }
25856
26982
  /**
25857
- * Clear all failed transform job from a create project job. Only jobs that have failed will be cleared.
25858
- * @summary Clear failed transform jobs
26983
+ * Remove a transformation job. This will stop all running jobs.
26984
+ * @summary Delete transformation job
25859
26985
  * @param organizationId Organization ID
25860
26986
  * @param createProjectId Create project job ID.
25861
26987
  */
25862
- async clearOrganizationTransform(organizationId, createProjectId, options = { headers: {} }) {
25863
- const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}/transform/clear'
26988
+ async deleteOrganizationCreateProject(organizationId, createProjectId, options = { headers: {} }) {
26989
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}'
25864
26990
  .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
25865
26991
  .replace('{' + 'createProjectId' + '}', encodeURIComponent(String(createProjectId)));
25866
26992
  let queryParameters = {};
@@ -25880,11 +27006,11 @@ class OrganizationCreateProjectApi {
25880
27006
  let localVarFormParams;
25881
27007
  // verify required parameter 'organizationId' is not null or undefined
25882
27008
  if (organizationId === null || organizationId === undefined) {
25883
- throw new Error('Required parameter organizationId was null or undefined when calling clearOrganizationTransform.');
27009
+ throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationCreateProject.');
25884
27010
  }
25885
27011
  // verify required parameter 'createProjectId' is not null or undefined
25886
27012
  if (createProjectId === null || createProjectId === undefined) {
25887
- throw new Error('Required parameter createProjectId was null or undefined when calling clearOrganizationTransform.');
27013
+ throw new Error('Required parameter createProjectId was null or undefined when calling deleteOrganizationCreateProject.');
25888
27014
  }
25889
27015
  localVarHeaderParams = {
25890
27016
  ...localVarHeaderParams,
@@ -25897,7 +27023,7 @@ class OrganizationCreateProjectApi {
25897
27023
  .join('&');
25898
27024
  let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
25899
27025
  let localVarRequestOptions = {
25900
- method: 'POST',
27026
+ method: 'DELETE',
25901
27027
  headers: { ...localVarHeaderParams },
25902
27028
  };
25903
27029
  let requestOptions = localVarRequestOptions;
@@ -25922,15 +27048,17 @@ class OrganizationCreateProjectApi {
25922
27048
  return this.handleResponse(response, 'GenericApiResponse');
25923
27049
  }
25924
27050
  /**
25925
- * Remove a transformation job. This will stop all running jobs.
25926
- * @summary Delete transformation job
27051
+ * Remove a file from a create project job. Only files for which no jobs are running can be deleted.
27052
+ * @summary Delete create project file
25927
27053
  * @param organizationId Organization ID
25928
27054
  * @param createProjectId Create project job ID.
27055
+ * @param createProjectFileId Create project job file ID.
25929
27056
  */
25930
- async deleteOrganizationCreateProject(organizationId, createProjectId, options = { headers: {} }) {
25931
- const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}'
27057
+ async deleteOrganizationCreateProjectFile(organizationId, createProjectId, createProjectFileId, options = { headers: {} }) {
27058
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}/files/{createProjectFileId}'
25932
27059
  .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
25933
- .replace('{' + 'createProjectId' + '}', encodeURIComponent(String(createProjectId)));
27060
+ .replace('{' + 'createProjectId' + '}', encodeURIComponent(String(createProjectId)))
27061
+ .replace('{' + 'createProjectFileId' + '}', encodeURIComponent(String(createProjectFileId)));
25934
27062
  let queryParameters = {};
25935
27063
  let localVarHeaderParams = {
25936
27064
  ...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
@@ -25948,11 +27076,15 @@ class OrganizationCreateProjectApi {
25948
27076
  let localVarFormParams;
25949
27077
  // verify required parameter 'organizationId' is not null or undefined
25950
27078
  if (organizationId === null || organizationId === undefined) {
25951
- throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationCreateProject.');
27079
+ throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationCreateProjectFile.');
25952
27080
  }
25953
27081
  // verify required parameter 'createProjectId' is not null or undefined
25954
27082
  if (createProjectId === null || createProjectId === undefined) {
25955
- throw new Error('Required parameter createProjectId was null or undefined when calling deleteOrganizationCreateProject.');
27083
+ throw new Error('Required parameter createProjectId was null or undefined when calling deleteOrganizationCreateProjectFile.');
27084
+ }
27085
+ // verify required parameter 'createProjectFileId' is not null or undefined
27086
+ if (createProjectFileId === null || createProjectFileId === undefined) {
27087
+ throw new Error('Required parameter createProjectFileId was null or undefined when calling deleteOrganizationCreateProjectFile.');
25956
27088
  }
25957
27089
  localVarHeaderParams = {
25958
27090
  ...localVarHeaderParams,
@@ -25990,17 +27122,14 @@ class OrganizationCreateProjectApi {
25990
27122
  return this.handleResponse(response, 'GenericApiResponse');
25991
27123
  }
25992
27124
  /**
25993
- * Remove a file from a create project job. Only files for which no jobs are running can be deleted.
25994
- * @summary Delete create project file
27125
+ * Verifies a staged custom block archive and starts a custom block build job.
27126
+ * @summary Finalize custom block upload
25995
27127
  * @param organizationId Organization ID
25996
- * @param createProjectId Create project job ID.
25997
- * @param createProjectFileId Create project job file ID.
27128
+ * @param finalizeCustomBlockUploadRequest
25998
27129
  */
25999
- async deleteOrganizationCreateProjectFile(organizationId, createProjectId, createProjectFileId, options = { headers: {} }) {
26000
- const localVarPath = this.basePath + '/api/organizations/{organizationId}/create-project/{createProjectId}/files/{createProjectFileId}'
26001
- .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
26002
- .replace('{' + 'createProjectId' + '}', encodeURIComponent(String(createProjectId)))
26003
- .replace('{' + 'createProjectFileId' + '}', encodeURIComponent(String(createProjectFileId)));
27130
+ async finalizeCustomBlockUpload(organizationId, finalizeCustomBlockUploadRequest, options = { headers: {} }) {
27131
+ const localVarPath = this.basePath + '/api/organizations/{organizationId}/custom-block/finalize'
27132
+ .replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
26004
27133
  let queryParameters = {};
26005
27134
  let localVarHeaderParams = {
26006
27135
  ...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
@@ -26018,15 +27147,11 @@ class OrganizationCreateProjectApi {
26018
27147
  let localVarFormParams;
26019
27148
  // verify required parameter 'organizationId' is not null or undefined
26020
27149
  if (organizationId === null || organizationId === undefined) {
26021
- throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationCreateProjectFile.');
27150
+ throw new Error('Required parameter organizationId was null or undefined when calling finalizeCustomBlockUpload.');
26022
27151
  }
26023
- // verify required parameter 'createProjectId' is not null or undefined
26024
- if (createProjectId === null || createProjectId === undefined) {
26025
- throw new Error('Required parameter createProjectId was null or undefined when calling deleteOrganizationCreateProjectFile.');
26026
- }
26027
- // verify required parameter 'createProjectFileId' is not null or undefined
26028
- if (createProjectFileId === null || createProjectFileId === undefined) {
26029
- throw new Error('Required parameter createProjectFileId was null or undefined when calling deleteOrganizationCreateProjectFile.');
27152
+ // verify required parameter 'finalizeCustomBlockUploadRequest' is not null or undefined
27153
+ if (finalizeCustomBlockUploadRequest === null || finalizeCustomBlockUploadRequest === undefined) {
27154
+ throw new Error('Required parameter finalizeCustomBlockUploadRequest was null or undefined when calling finalizeCustomBlockUpload.');
26030
27155
  }
26031
27156
  localVarHeaderParams = {
26032
27157
  ...localVarHeaderParams,
@@ -26039,9 +27164,10 @@ class OrganizationCreateProjectApi {
26039
27164
  .join('&');
26040
27165
  let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
26041
27166
  let localVarRequestOptions = {
26042
- method: 'DELETE',
27167
+ method: 'POST',
26043
27168
  headers: { ...localVarHeaderParams },
26044
27169
  };
27170
+ localVarRequestOptions.body = JSON.stringify(finalizeCustomBlockUploadRequest);
26045
27171
  let requestOptions = localVarRequestOptions;
26046
27172
  let url = localVarUrl;
26047
27173
  const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
@@ -26061,7 +27187,7 @@ class OrganizationCreateProjectApi {
26061
27187
  url = authDefault.url;
26062
27188
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
26063
27189
  const response = await fetch(url, requestOptions);
26064
- return this.handleResponse(response, 'GenericApiResponse');
27190
+ return this.handleResponse(response, 'StartJobResponse');
26065
27191
  }
26066
27192
  /**
26067
27193
  * Get the current status of a transformation job job.
@@ -48652,7 +49778,7 @@ class RawDataApi {
48652
49778
  return this.handleResponse(response, 'RebalanceDatasetResponse');
48653
49779
  }
48654
49780
  /**
48655
- * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio.
49781
+ * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio. For richer, more powerful dataset splitting with configurable ratios, stratification, and grouping, use splitDataset (`/v1/api/{projectId}/split`).
48656
49782
  * @summary Rebalance dataset
48657
49783
  * @param projectId Project ID
48658
49784
  */
@@ -56945,6 +58071,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
56945
58071
  });
56946
58072
 
56947
58073
 
58074
+ define("library/sdk/model/createCustomBlockUploadLinkRequest", ["require", "exports"], function (require, exports) {
58075
+ "use strict";
58076
+ // Generated by studio/openapi/generate-models/convert.ts
58077
+ Object.defineProperty(exports, "__esModule", { value: true });
58078
+ exports.CreateCustomBlockUploadLinkRequestTypeEnumValues = void 0;
58079
+ exports.CreateCustomBlockUploadLinkRequestTypeEnumValues = ['transform', 'deploy', 'dsp', 'transferLearning'];
58080
+ });
58081
+
58082
+
58083
+ define("library/sdk/model/createCustomBlockUploadLinkResponse", ["require", "exports"], function (require, exports) {
58084
+ "use strict";
58085
+ // Generated by studio/openapi/generate-models/convert.ts
58086
+ Object.defineProperty(exports, "__esModule", { value: true });
58087
+ });
58088
+
58089
+
56948
58090
  define("library/sdk/model/createDeveloperProfileResponse", ["require", "exports"], function (require, exports) {
56949
58091
  "use strict";
56950
58092
  // Generated by studio/openapi/generate-models/convert.ts
@@ -56975,6 +58117,20 @@ exports.CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnumValues =
56975
58117
  });
56976
58118
 
56977
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
+
56978
58134
  define("library/sdk/model/createImpulseRequest", ["require", "exports"], function (require, exports) {
56979
58135
  "use strict";
56980
58136
  // Generated by studio/openapi/generate-models/convert.ts
@@ -57152,6 +58308,20 @@ exports.CreateUserThirdPartyResponseStatusEnumValues = ['userWasCreated', 'userN
57152
58308
  });
57153
58309
 
57154
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
+
57155
58325
  define("library/sdk/model/createWhitelabelRequest", ["require", "exports"], function (require, exports) {
57156
58326
  "use strict";
57157
58327
  // Generated by studio/openapi/generate-models/convert.ts
@@ -57971,6 +59141,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
57971
59141
  });
57972
59142
 
57973
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
+
57974
59151
  define("library/sdk/model/experimentalImpulseSpecificGpuTrainingProcessor", ["require", "exports"], function (require, exports) {
57975
59152
  "use strict";
57976
59153
  // Generated by studio/openapi/generate-models/convert.ts
@@ -58033,6 +59210,15 @@ exports.FeatureValues = ['signup-thank-you-page', 'stripe-live-mode', 'azure-sto
58033
59210
  });
58034
59211
 
58035
59212
 
59213
+ define("library/sdk/model/finalizeCustomBlockUploadRequest", ["require", "exports"], function (require, exports) {
59214
+ "use strict";
59215
+ // Generated by studio/openapi/generate-models/convert.ts
59216
+ Object.defineProperty(exports, "__esModule", { value: true });
59217
+ exports.FinalizeCustomBlockUploadRequestTypeEnumValues = void 0;
59218
+ exports.FinalizeCustomBlockUploadRequestTypeEnumValues = ['transform', 'deploy', 'dsp', 'transferLearning'];
59219
+ });
59220
+
59221
+
58036
59222
  define("library/sdk/model/findSegmentSampleRequest", ["require", "exports"], function (require, exports) {
58037
59223
  "use strict";
58038
59224
  // Generated by studio/openapi/generate-models/convert.ts
@@ -58233,6 +59419,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
58233
59419
  });
58234
59420
 
58235
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
+
58236
59429
  define("library/sdk/model/getFeatureFlagsResponse", ["require", "exports"], function (require, exports) {
58237
59430
  "use strict";
58238
59431
  // Generated by studio/openapi/generate-models/convert.ts
@@ -58699,6 +59892,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
58699
59892
  });
58700
59893
 
58701
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
+
58702
59902
  define("library/sdk/model/getWhitelabelDomainResponse", ["require", "exports"], function (require, exports) {
58703
59903
  "use strict";
58704
59904
  // Generated by studio/openapi/generate-models/convert.ts
@@ -59182,6 +60382,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
59182
60382
  });
59183
60383
 
59184
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
+
59185
60392
  define("library/sdk/model/listHmacKeysResponse", ["require", "exports"], function (require, exports) {
59186
60393
  "use strict";
59187
60394
  // Generated by studio/openapi/generate-models/convert.ts
@@ -59203,6 +60410,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
59203
60410
  });
59204
60411
 
59205
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
+
59206
60420
  define("library/sdk/model/listOrganizationApiKeysResponse", ["require", "exports"], function (require, exports) {
59207
60421
  "use strict";
59208
60422
  // Generated by studio/openapi/generate-models/convert.ts
@@ -59399,6 +60613,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
59399
60613
  });
59400
60614
 
59401
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
+
59402
60623
  define("library/sdk/model/logAnalyticsEventRequest", ["require", "exports"], function (require, exports) {
59403
60624
  "use strict";
59404
60625
  // Generated by studio/openapi/generate-models/convert.ts
@@ -59677,10 +60898,14 @@ __exportStar(require("./convertUserRequest"), exports);
59677
60898
  __exportStar(require("./cosineSimilarityData"), exports);
59678
60899
  __exportStar(require("./cosineSimilarityIssue"), exports);
59679
60900
  __exportStar(require("./countSamplesResponse"), exports);
60901
+ __exportStar(require("./createCustomBlockUploadLinkRequest"), exports);
60902
+ __exportStar(require("./createCustomBlockUploadLinkResponse"), exports);
59680
60903
  __exportStar(require("./createDeveloperProfileResponse"), exports);
59681
60904
  __exportStar(require("./createDeviceRequest"), exports);
59682
60905
  __exportStar(require("./createEnterpriseTrialResponse"), exports);
59683
60906
  __exportStar(require("./createEnterpriseTrialUserRequest"), exports);
60907
+ __exportStar(require("./createEventSubscriptionRequest"), exports);
60908
+ __exportStar(require("./createEventSubscriptionResponse"), exports);
59684
60909
  __exportStar(require("./createImpulseRequest"), exports);
59685
60910
  __exportStar(require("./createImpulseResponse"), exports);
59686
60911
  __exportStar(require("./createMultiProjectDeploymentRequest"), exports);
@@ -59706,6 +60931,8 @@ __exportStar(require("./createUserRequest"), exports);
59706
60931
  __exportStar(require("./createUserResponse"), exports);
59707
60932
  __exportStar(require("./createUserThirdPartyRequest"), exports);
59708
60933
  __exportStar(require("./createUserThirdPartyResponse"), exports);
60934
+ __exportStar(require("./createWebhookDestinationRequest"), exports);
60935
+ __exportStar(require("./createWebhookDestinationResponse"), exports);
59709
60936
  __exportStar(require("./createWhitelabelRequest"), exports);
59710
60937
  __exportStar(require("./createWhitelabelResponse"), exports);
59711
60938
  __exportStar(require("./createdUpdatedByUser"), exports);
@@ -59814,6 +61041,7 @@ __exportStar(require("./entityCreatedResponse"), exports);
59814
61041
  __exportStar(require("./environmentVariable"), exports);
59815
61042
  __exportStar(require("./evaluateJobResponse"), exports);
59816
61043
  __exportStar(require("./evaluateResultValue"), exports);
61044
+ __exportStar(require("./eventSubscription"), exports);
59817
61045
  __exportStar(require("./experimentalImpulseSpecificGpuTrainingProcessor"), exports);
59818
61046
  __exportStar(require("./exportBlockResponse"), exports);
59819
61047
  __exportStar(require("./exportGetUrlResponse"), exports);
@@ -59822,6 +61050,7 @@ __exportStar(require("./exportKerasBlockDataRequest"), exports);
59822
61050
  __exportStar(require("./exportOriginalDataRequest"), exports);
59823
61051
  __exportStar(require("./exportWavDataRequest"), exports);
59824
61052
  __exportStar(require("./feature"), exports);
61053
+ __exportStar(require("./finalizeCustomBlockUploadRequest"), exports);
59825
61054
  __exportStar(require("./findSegmentSampleRequest"), exports);
59826
61055
  __exportStar(require("./findSegmentSampleResponse"), exports);
59827
61056
  __exportStar(require("./findSyntiantPosteriorRequest"), exports);
@@ -59849,6 +61078,7 @@ __exportStar(require("./getDeviceResponse"), exports);
59849
61078
  __exportStar(require("./getDiversityDataResponse"), exports);
59850
61079
  __exportStar(require("./getEmailVerificationCodeResponse"), exports);
59851
61080
  __exportStar(require("./getEmailVerificationStatusResponse"), exports);
61081
+ __exportStar(require("./getEventSubscriptionResponse"), exports);
59852
61082
  __exportStar(require("./getFeatureFlagsResponse"), exports);
59853
61083
  __exportStar(require("./getFeaturesForPostProcessingSampleResponse"), exports);
59854
61084
  __exportStar(require("./getHmacDevkeyResponse"), exports);
@@ -59914,6 +61144,7 @@ __exportStar(require("./getThirdPartyAuthResponse"), exports);
59914
61144
  __exportStar(require("./getUserNeedToSetPasswordResponse"), exports);
59915
61145
  __exportStar(require("./getUserProjectsResponse"), exports);
59916
61146
  __exportStar(require("./getUserResponse"), exports);
61147
+ __exportStar(require("./getWebhookDestinationResponse"), exports);
59917
61148
  __exportStar(require("./getWhitelabelDomainResponse"), exports);
59918
61149
  __exportStar(require("./getWhitelabelResponse"), exports);
59919
61150
  __exportStar(require("./hasDataExplorerFeaturesResponse"), exports);
@@ -59977,9 +61208,11 @@ __exportStar(require("./listDeploymentHistoryResponse"), exports);
59977
61208
  __exportStar(require("./listDevicesResponse"), exports);
59978
61209
  __exportStar(require("./listEmailResponse"), exports);
59979
61210
  __exportStar(require("./listEnterpriseTrialsResponse"), exports);
61211
+ __exportStar(require("./listEventSubscriptionsResponse"), exports);
59980
61212
  __exportStar(require("./listHmacKeysResponse"), exports);
59981
61213
  __exportStar(require("./listJobsResponse"), exports);
59982
61214
  __exportStar(require("./listModelsResponse"), exports);
61215
+ __exportStar(require("./listMonitoringEventsResponse"), exports);
59983
61216
  __exportStar(require("./listOrganizationApiKeysResponse"), exports);
59984
61217
  __exportStar(require("./listOrganizationBucketsResponse"), exports);
59985
61218
  __exportStar(require("./listOrganizationBucketsUserResponse"), exports);
@@ -60008,6 +61241,7 @@ __exportStar(require("./listPublicVersionsResponse"), exports);
60008
61241
  __exportStar(require("./listSamplesResponse"), exports);
60009
61242
  __exportStar(require("./listTunerRunsResponse"), exports);
60010
61243
  __exportStar(require("./listVersionsResponse"), exports);
61244
+ __exportStar(require("./listWebhookDestinationsResponse"), exports);
60011
61245
  __exportStar(require("./logAnalyticsEventRequest"), exports);
60012
61246
  __exportStar(require("./logStdoutResponse"), exports);
60013
61247
  __exportStar(require("./logStdoutResponseAllOfStdout"), exports);
@@ -60025,6 +61259,7 @@ __exportStar(require("./modelEngineShortEnum"), exports);
60025
61259
  __exportStar(require("./modelPrediction"), exports);
60026
61260
  __exportStar(require("./modelResult"), exports);
60027
61261
  __exportStar(require("./modelVariantStats"), exports);
61262
+ __exportStar(require("./monitoringEvent"), exports);
60028
61263
  __exportStar(require("./moveRawDataRequest"), exports);
60029
61264
  __exportStar(require("./neighborsData"), exports);
60030
61265
  __exportStar(require("./neighborsScore"), exports);
@@ -60190,6 +61425,7 @@ __exportStar(require("./resetPasswordRequest"), exports);
60190
61425
  __exportStar(require("./resourceRange"), exports);
60191
61426
  __exportStar(require("./restoreProjectFromPublicRequest"), exports);
60192
61427
  __exportStar(require("./restoreProjectRequest"), exports);
61428
+ __exportStar(require("./rotateWebhookDestinationSecretResponse"), exports);
60193
61429
  __exportStar(require("./runOrganizationPipelineResponse"), exports);
60194
61430
  __exportStar(require("./sample"), exports);
60195
61431
  __exportStar(require("./sampleBoundingBoxesRequest"), exports);
@@ -60254,6 +61490,7 @@ __exportStar(require("./testAddMockModelMonitoringDataRequest"), exports);
60254
61490
  __exportStar(require("./testPretrainedModelImagesRequest"), exports);
60255
61491
  __exportStar(require("./testPretrainedModelRequest"), exports);
60256
61492
  __exportStar(require("./testPretrainedModelResponse"), exports);
61493
+ __exportStar(require("./testWebhookDestinationResponse"), exports);
60257
61494
  __exportStar(require("./theme"), exports);
60258
61495
  __exportStar(require("./thirdPartyAuth"), exports);
60259
61496
  __exportStar(require("./thresholdValue"), exports);
@@ -60276,6 +61513,7 @@ __exportStar(require("./tunerTrialImpulse"), exports);
60276
61513
  __exportStar(require("./tutorialType"), exports);
60277
61514
  __exportStar(require("./updateAIActionRequest"), exports);
60278
61515
  __exportStar(require("./updateDatasetVersionRequest"), exports);
61516
+ __exportStar(require("./updateEventSubscriptionRequest"), exports);
60279
61517
  __exportStar(require("./updateImpulseRequest"), exports);
60280
61518
  __exportStar(require("./updateJobRequest"), exports);
60281
61519
  __exportStar(require("./updateOrganizationAddCollaboratorRequest"), exports);
@@ -60300,6 +61538,7 @@ __exportStar(require("./updateThirdPartyAuthRequest"), exports);
60300
61538
  __exportStar(require("./updateTunerRunRequest"), exports);
60301
61539
  __exportStar(require("./updateUserRequest"), exports);
60302
61540
  __exportStar(require("./updateVersionRequest"), exports);
61541
+ __exportStar(require("./updateWebhookDestinationRequest"), exports);
60303
61542
  __exportStar(require("./updateWhitelabelDefaultDeploymentTargetRequest"), exports);
60304
61543
  __exportStar(require("./updateWhitelabelDeploymentOptionsOrderRequest"), exports);
60305
61544
  __exportStar(require("./updateWhitelabelDeploymentTargetsRequest"), exports);
@@ -60361,6 +61600,7 @@ __exportStar(require("./vlmPromptComponentConfig"), exports);
60361
61600
  __exportStar(require("./vlmPromptConfigParamItem"), exports);
60362
61601
  __exportStar(require("./vlmPromptConfigParameters"), exports);
60363
61602
  __exportStar(require("./vlmSetConfigResponse"), exports);
61603
+ __exportStar(require("./webhookDestination"), exports);
60364
61604
  __exportStar(require("./whitelabel"), exports);
60365
61605
  __exportStar(require("./whitelabelAdminCreateOrganizationRequest"), exports);
60366
61606
  __exportStar(require("./windowSettings"), exports);
@@ -60542,6 +61782,15 @@ exports.COLLECTION_FORMATS = {
60542
61782
  });
60543
61783
 
60544
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
+
60545
61794
  define("library/sdk/model/moveRawDataRequest", ["require", "exports"], function (require, exports) {
60546
61795
  "use strict";
60547
61796
  // Generated by studio/openapi/generate-models/convert.ts
@@ -60568,7 +61817,7 @@ define("library/sdk/model/oAuthScope", ["require", "exports"], function (require
60568
61817
  // Generated by studio/openapi/generate-models/convert.ts
60569
61818
  Object.defineProperty(exports, "__esModule", { value: true });
60570
61819
  exports.OAuthScopeValues = void 0;
60571
- 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'];
60572
61821
  });
60573
61822
 
60574
61823
 
@@ -61816,6 +63065,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
61816
63065
  });
61817
63066
 
61818
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
+
61819
63075
  define("library/sdk/model/runOrganizationPipelineResponse", ["require", "exports"], function (require, exports) {
61820
63076
  "use strict";
61821
63077
  // Generated by studio/openapi/generate-models/convert.ts
@@ -62289,6 +63545,13 @@ exports.TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeEnumV
62289
63545
  });
62290
63546
 
62291
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
+
62292
63555
  define("library/sdk/model/theme", ["require", "exports"], function (require, exports) {
62293
63556
  "use strict";
62294
63557
  // Generated by studio/openapi/generate-models/convert.ts
@@ -62455,6 +63718,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
62455
63718
  });
62456
63719
 
62457
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
+
62458
63728
  define("library/sdk/model/updateImpulseRequest", ["require", "exports"], function (require, exports) {
62459
63729
  "use strict";
62460
63730
  // Generated by studio/openapi/generate-models/convert.ts
@@ -62630,6 +63900,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
62630
63900
  });
62631
63901
 
62632
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
+
62633
63910
  define("library/sdk/model/updateWhitelabelDefaultDeploymentTargetRequest", ["require", "exports"], function (require, exports) {
62634
63911
  "use strict";
62635
63912
  // Generated by studio/openapi/generate-models/convert.ts
@@ -63075,6 +64352,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
63075
64352
  });
63076
64353
 
63077
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
+
63078
64362
  define("library/sdk/model/whitelabel", ["require", "exports"], function (require, exports) {
63079
64363
  "use strict";
63080
64364
  // Generated by studio/openapi/generate-models/convert.ts