@cosmotech/api-ts 2.1.0 → 2.4.2-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Cosmo Tech Plaform API
5
+ * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.3.9-rc
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,7 +73,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
73
73
  }
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.UserPlatformRolesEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.ConnectorIoTypesEnum = void 0;
76
+ exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.UserPlatformRolesEnum = exports.SourceInfoTypeEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.ConnectorIoTypesEnum = void 0;
77
77
  var axios_1 = require("axios");
78
78
  // Some imports not used depending on template conditions
79
79
  // @ts-ignore
@@ -157,6 +157,10 @@ exports.ScenarioValidationStatus = {
157
157
  Unknown: 'Unknown',
158
158
  Validated: 'Validated'
159
159
  };
160
+ exports.SourceInfoTypeEnum = {
161
+ Adt: 'ADT',
162
+ Storage: 'Storage'
163
+ };
160
164
  exports.UserPlatformRolesEnum = {
161
165
  Admin: 'Admin',
162
166
  User: 'User',
@@ -5272,10 +5276,11 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5272
5276
  *
5273
5277
  * @summary Delete all historical ScenarioRuns in the Organization
5274
5278
  * @param {string} organizationId the Organization identifier
5279
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5275
5280
  * @param {*} [options] Override http request option.
5276
5281
  * @throws {RequiredError}
5277
5282
  */
5278
- deleteHistoricalDataOrganization: function (organizationId, options) {
5283
+ deleteHistoricalDataOrganization: function (organizationId, deleteUnknown, options) {
5279
5284
  if (options === void 0) { options = {}; }
5280
5285
  return __awaiter(_this, void 0, void 0, function () {
5281
5286
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5300,6 +5305,9 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5300
5305
  // authentication oAuth2AuthCode required
5301
5306
  // oauth required
5302
5307
  _a.sent();
5308
+ if (deleteUnknown !== undefined) {
5309
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
5310
+ }
5303
5311
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5304
5312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5305
5313
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5313,13 +5321,15 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5313
5321
  },
5314
5322
  /**
5315
5323
  *
5316
- * @summary Delete all historical ScenarioRuns in the Workspace
5324
+ * @summary Delete all historical ScenarioRuns in the Scenario
5317
5325
  * @param {string} organizationId the Organization identifier
5318
5326
  * @param {string} workspaceId the Workspace identifier
5327
+ * @param {string} scenarioId the Scenario identifier
5328
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5319
5329
  * @param {*} [options] Override http request option.
5320
5330
  * @throws {RequiredError}
5321
5331
  */
5322
- deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
5332
+ deleteHistoricalDataScenario: function (organizationId, workspaceId, scenarioId, deleteUnknown, options) {
5323
5333
  if (options === void 0) { options = {}; }
5324
5334
  return __awaiter(_this, void 0, void 0, function () {
5325
5335
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5327,12 +5337,15 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5327
5337
  switch (_a.label) {
5328
5338
  case 0:
5329
5339
  // verify required parameter 'organizationId' is not null or undefined
5330
- common_1.assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId);
5340
+ common_1.assertParamExists('deleteHistoricalDataScenario', 'organizationId', organizationId);
5331
5341
  // verify required parameter 'workspaceId' is not null or undefined
5332
- common_1.assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId);
5333
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata"
5342
+ common_1.assertParamExists('deleteHistoricalDataScenario', 'workspaceId', workspaceId);
5343
+ // verify required parameter 'scenarioId' is not null or undefined
5344
+ common_1.assertParamExists('deleteHistoricalDataScenario', 'scenarioId', scenarioId);
5345
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/historicaldata"
5334
5346
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
5335
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
5347
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
5348
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
5336
5349
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5337
5350
  if (configuration) {
5338
5351
  baseOptions = configuration.baseOptions;
@@ -5347,6 +5360,9 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5347
5360
  // authentication oAuth2AuthCode required
5348
5361
  // oauth required
5349
5362
  _a.sent();
5363
+ if (deleteUnknown !== undefined) {
5364
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
5365
+ }
5350
5366
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5351
5367
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5352
5368
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5360,14 +5376,14 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5360
5376
  },
5361
5377
  /**
5362
5378
  *
5363
- * @summary Delete all historical ScenarioRuns for the Scenario
5379
+ * @summary Delete all historical ScenarioRuns in the Workspace
5364
5380
  * @param {string} organizationId the Organization identifier
5365
5381
  * @param {string} workspaceId the Workspace identifier
5366
- * @param {string} scenarioId the Scenario identifier
5382
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5367
5383
  * @param {*} [options] Override http request option.
5368
5384
  * @throws {RequiredError}
5369
5385
  */
5370
- deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5386
+ deleteHistoricalDataWorkspace: function (organizationId, workspaceId, deleteUnknown, options) {
5371
5387
  if (options === void 0) { options = {}; }
5372
5388
  return __awaiter(_this, void 0, void 0, function () {
5373
5389
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5375,15 +5391,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5375
5391
  switch (_a.label) {
5376
5392
  case 0:
5377
5393
  // verify required parameter 'organizationId' is not null or undefined
5378
- common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId);
5394
+ common_1.assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId);
5379
5395
  // verify required parameter 'workspaceId' is not null or undefined
5380
- common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId);
5381
- // verify required parameter 'scenarioId' is not null or undefined
5382
- common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId);
5383
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns"
5396
+ common_1.assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId);
5397
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata"
5384
5398
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
5385
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
5386
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
5399
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
5387
5400
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5388
5401
  if (configuration) {
5389
5402
  baseOptions = configuration.baseOptions;
@@ -5398,6 +5411,9 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5398
5411
  // authentication oAuth2AuthCode required
5399
5412
  // oauth required
5400
5413
  _a.sent();
5414
+ if (deleteUnknown !== undefined) {
5415
+ localVarQueryParameter['deleteUnknown'] = deleteUnknown;
5416
+ }
5401
5417
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5402
5418
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5403
5419
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5949,15 +5965,16 @@ exports.ScenariorunApiFp = function (configuration) {
5949
5965
  *
5950
5966
  * @summary Delete all historical ScenarioRuns in the Organization
5951
5967
  * @param {string} organizationId the Organization identifier
5968
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5952
5969
  * @param {*} [options] Override http request option.
5953
5970
  * @throws {RequiredError}
5954
5971
  */
5955
- deleteHistoricalDataOrganization: function (organizationId, options) {
5972
+ deleteHistoricalDataOrganization: function (organizationId, deleteUnknown, options) {
5956
5973
  return __awaiter(this, void 0, void 0, function () {
5957
5974
  var localVarAxiosArgs;
5958
5975
  return __generator(this, function (_a) {
5959
5976
  switch (_a.label) {
5960
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options)];
5977
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options)];
5961
5978
  case 1:
5962
5979
  localVarAxiosArgs = _a.sent();
5963
5980
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -5967,18 +5984,20 @@ exports.ScenariorunApiFp = function (configuration) {
5967
5984
  },
5968
5985
  /**
5969
5986
  *
5970
- * @summary Delete all historical ScenarioRuns in the Workspace
5987
+ * @summary Delete all historical ScenarioRuns in the Scenario
5971
5988
  * @param {string} organizationId the Organization identifier
5972
5989
  * @param {string} workspaceId the Workspace identifier
5990
+ * @param {string} scenarioId the Scenario identifier
5991
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5973
5992
  * @param {*} [options] Override http request option.
5974
5993
  * @throws {RequiredError}
5975
5994
  */
5976
- deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
5995
+ deleteHistoricalDataScenario: function (organizationId, workspaceId, scenarioId, deleteUnknown, options) {
5977
5996
  return __awaiter(this, void 0, void 0, function () {
5978
5997
  var localVarAxiosArgs;
5979
5998
  return __generator(this, function (_a) {
5980
5999
  switch (_a.label) {
5981
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options)];
6000
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options)];
5982
6001
  case 1:
5983
6002
  localVarAxiosArgs = _a.sent();
5984
6003
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -5988,19 +6007,19 @@ exports.ScenariorunApiFp = function (configuration) {
5988
6007
  },
5989
6008
  /**
5990
6009
  *
5991
- * @summary Delete all historical ScenarioRuns for the Scenario
6010
+ * @summary Delete all historical ScenarioRuns in the Workspace
5992
6011
  * @param {string} organizationId the Organization identifier
5993
6012
  * @param {string} workspaceId the Workspace identifier
5994
- * @param {string} scenarioId the Scenario identifier
6013
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
5995
6014
  * @param {*} [options] Override http request option.
5996
6015
  * @throws {RequiredError}
5997
6016
  */
5998
- deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
6017
+ deleteHistoricalDataWorkspace: function (organizationId, workspaceId, deleteUnknown, options) {
5999
6018
  return __awaiter(this, void 0, void 0, function () {
6000
6019
  var localVarAxiosArgs;
6001
6020
  return __generator(this, function (_a) {
6002
6021
  switch (_a.label) {
6003
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options)];
6022
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options)];
6004
6023
  case 1:
6005
6024
  localVarAxiosArgs = _a.sent();
6006
6025
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6254,34 +6273,37 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
6254
6273
  *
6255
6274
  * @summary Delete all historical ScenarioRuns in the Organization
6256
6275
  * @param {string} organizationId the Organization identifier
6276
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6257
6277
  * @param {*} [options] Override http request option.
6258
6278
  * @throws {RequiredError}
6259
6279
  */
6260
- deleteHistoricalDataOrganization: function (organizationId, options) {
6261
- return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
6280
+ deleteHistoricalDataOrganization: function (organizationId, deleteUnknown, options) {
6281
+ return localVarFp.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then(function (request) { return request(axios, basePath); });
6262
6282
  },
6263
6283
  /**
6264
6284
  *
6265
- * @summary Delete all historical ScenarioRuns in the Workspace
6285
+ * @summary Delete all historical ScenarioRuns in the Scenario
6266
6286
  * @param {string} organizationId the Organization identifier
6267
6287
  * @param {string} workspaceId the Workspace identifier
6288
+ * @param {string} scenarioId the Scenario identifier
6289
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6268
6290
  * @param {*} [options] Override http request option.
6269
6291
  * @throws {RequiredError}
6270
6292
  */
6271
- deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
6272
- return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
6293
+ deleteHistoricalDataScenario: function (organizationId, workspaceId, scenarioId, deleteUnknown, options) {
6294
+ return localVarFp.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then(function (request) { return request(axios, basePath); });
6273
6295
  },
6274
6296
  /**
6275
6297
  *
6276
- * @summary Delete all historical ScenarioRuns for the Scenario
6298
+ * @summary Delete all historical ScenarioRuns in the Workspace
6277
6299
  * @param {string} organizationId the Organization identifier
6278
6300
  * @param {string} workspaceId the Workspace identifier
6279
- * @param {string} scenarioId the Scenario identifier
6301
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6280
6302
  * @param {*} [options] Override http request option.
6281
6303
  * @throws {RequiredError}
6282
6304
  */
6283
- deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
6284
- return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
6305
+ deleteHistoricalDataWorkspace: function (organizationId, workspaceId, deleteUnknown, options) {
6306
+ return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then(function (request) { return request(axios, basePath); });
6285
6307
  },
6286
6308
  /**
6287
6309
  *
@@ -6423,40 +6445,43 @@ var ScenariorunApi = /** @class */ (function (_super) {
6423
6445
  *
6424
6446
  * @summary Delete all historical ScenarioRuns in the Organization
6425
6447
  * @param {string} organizationId the Organization identifier
6448
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6426
6449
  * @param {*} [options] Override http request option.
6427
6450
  * @throws {RequiredError}
6428
6451
  * @memberof ScenariorunApi
6429
6452
  */
6430
- ScenariorunApi.prototype.deleteHistoricalDataOrganization = function (organizationId, options) {
6453
+ ScenariorunApi.prototype.deleteHistoricalDataOrganization = function (organizationId, deleteUnknown, options) {
6431
6454
  var _this = this;
6432
- return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6455
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then(function (request) { return request(_this.axios, _this.basePath); });
6433
6456
  };
6434
6457
  /**
6435
6458
  *
6436
- * @summary Delete all historical ScenarioRuns in the Workspace
6459
+ * @summary Delete all historical ScenarioRuns in the Scenario
6437
6460
  * @param {string} organizationId the Organization identifier
6438
6461
  * @param {string} workspaceId the Workspace identifier
6462
+ * @param {string} scenarioId the Scenario identifier
6463
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6439
6464
  * @param {*} [options] Override http request option.
6440
6465
  * @throws {RequiredError}
6441
6466
  * @memberof ScenariorunApi
6442
6467
  */
6443
- ScenariorunApi.prototype.deleteHistoricalDataWorkspace = function (organizationId, workspaceId, options) {
6468
+ ScenariorunApi.prototype.deleteHistoricalDataScenario = function (organizationId, workspaceId, scenarioId, deleteUnknown, options) {
6444
6469
  var _this = this;
6445
- return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6470
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then(function (request) { return request(_this.axios, _this.basePath); });
6446
6471
  };
6447
6472
  /**
6448
6473
  *
6449
- * @summary Delete all historical ScenarioRuns for the Scenario
6474
+ * @summary Delete all historical ScenarioRuns in the Workspace
6450
6475
  * @param {string} organizationId the Organization identifier
6451
6476
  * @param {string} workspaceId the Workspace identifier
6452
- * @param {string} scenarioId the Scenario identifier
6477
+ * @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
6453
6478
  * @param {*} [options] Override http request option.
6454
6479
  * @throws {RequiredError}
6455
6480
  * @memberof ScenariorunApi
6456
6481
  */
6457
- ScenariorunApi.prototype.deleteHistoricalScenarioRunsByScenario = function (organizationId, workspaceId, scenarioId, options) {
6482
+ ScenariorunApi.prototype.deleteHistoricalDataWorkspace = function (organizationId, workspaceId, deleteUnknown, options) {
6458
6483
  var _this = this;
6459
- return exports.ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6484
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then(function (request) { return request(_this.axios, _this.basePath); });
6460
6485
  };
6461
6486
  /**
6462
6487
  *
@@ -8143,9 +8168,9 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8143
8168
  common_1.assertParamExists('_delete', 'organizationId', organizationId);
8144
8169
  // verify required parameter 'graphId' is not null or undefined
8145
8170
  common_1.assertParamExists('_delete', 'graphId', graphId);
8146
- localVarPath = "/organizations/{organization_id}/delete/{graphId}"
8171
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}"
8147
8172
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8148
- .replace("{" + "graphId" + "}", encodeURIComponent(String(graphId)));
8173
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8149
8174
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8150
8175
  if (configuration) {
8151
8176
  baseOptions = configuration.baseOptions;
@@ -8171,6 +8196,94 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8171
8196
  });
8172
8197
  });
8173
8198
  },
8199
+ /**
8200
+ * Return the list of all graphs stored in the organization
8201
+ * @param {string} organizationId the Organization identifier
8202
+ * @param {*} [options] Override http request option.
8203
+ * @throws {RequiredError}
8204
+ */
8205
+ findAllTwingraphs: function (organizationId, options) {
8206
+ if (options === void 0) { options = {}; }
8207
+ return __awaiter(_this, void 0, void 0, function () {
8208
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8209
+ return __generator(this, function (_a) {
8210
+ switch (_a.label) {
8211
+ case 0:
8212
+ // verify required parameter 'organizationId' is not null or undefined
8213
+ common_1.assertParamExists('findAllTwingraphs', 'organizationId', organizationId);
8214
+ localVarPath = "/organizations/{organization_id}/twingraphs"
8215
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8216
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8217
+ if (configuration) {
8218
+ baseOptions = configuration.baseOptions;
8219
+ }
8220
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8221
+ localVarHeaderParameter = {};
8222
+ localVarQueryParameter = {};
8223
+ // authentication oAuth2AuthCode required
8224
+ // oauth required
8225
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8226
+ case 1:
8227
+ // authentication oAuth2AuthCode required
8228
+ // oauth required
8229
+ _a.sent();
8230
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8231
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8232
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8233
+ return [2 /*return*/, {
8234
+ url: common_1.toPathString(localVarUrlObj),
8235
+ options: localVarRequestOptions,
8236
+ }];
8237
+ }
8238
+ });
8239
+ });
8240
+ },
8241
+ /**
8242
+ * Return the metaData of the specified graph
8243
+ * @param {string} organizationId the Organization identifier
8244
+ * @param {string} graphId the Graph Identifier
8245
+ * @param {*} [options] Override http request option.
8246
+ * @throws {RequiredError}
8247
+ */
8248
+ getGraphMetaData: function (organizationId, graphId, options) {
8249
+ if (options === void 0) { options = {}; }
8250
+ return __awaiter(_this, void 0, void 0, function () {
8251
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8252
+ return __generator(this, function (_a) {
8253
+ switch (_a.label) {
8254
+ case 0:
8255
+ // verify required parameter 'organizationId' is not null or undefined
8256
+ common_1.assertParamExists('getGraphMetaData', 'organizationId', organizationId);
8257
+ // verify required parameter 'graphId' is not null or undefined
8258
+ common_1.assertParamExists('getGraphMetaData', 'graphId', graphId);
8259
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/metadata"
8260
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8261
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8262
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8263
+ if (configuration) {
8264
+ baseOptions = configuration.baseOptions;
8265
+ }
8266
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8267
+ localVarHeaderParameter = {};
8268
+ localVarQueryParameter = {};
8269
+ // authentication oAuth2AuthCode required
8270
+ // oauth required
8271
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8272
+ case 1:
8273
+ // authentication oAuth2AuthCode required
8274
+ // oauth required
8275
+ _a.sent();
8276
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8277
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8278
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8279
+ return [2 /*return*/, {
8280
+ url: common_1.toPathString(localVarUrlObj),
8281
+ options: localVarRequestOptions,
8282
+ }];
8283
+ }
8284
+ });
8285
+ });
8286
+ },
8174
8287
  /**
8175
8288
  * Import a new version of a twin graph
8176
8289
  * @param {string} organizationId the Organization identifier
@@ -8189,7 +8302,7 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8189
8302
  common_1.assertParamExists('importGraph', 'organizationId', organizationId);
8190
8303
  // verify required parameter 'twinGraphImport' is not null or undefined
8191
8304
  common_1.assertParamExists('importGraph', 'twinGraphImport', twinGraphImport);
8192
- localVarPath = "/organizations/{organization_id}/import"
8305
+ localVarPath = "/organizations/{organization_id}/twingraph/import"
8193
8306
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8194
8307
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8195
8308
  if (configuration) {
@@ -8218,14 +8331,61 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8218
8331
  });
8219
8332
  });
8220
8333
  },
8334
+ /**
8335
+ * Get the status of a job
8336
+ * @param {string} organizationId the Organization identifier
8337
+ * @param {string} jobId the job identifier
8338
+ * @param {*} [options] Override http request option.
8339
+ * @throws {RequiredError}
8340
+ */
8341
+ jobStatus: function (organizationId, jobId, options) {
8342
+ if (options === void 0) { options = {}; }
8343
+ return __awaiter(_this, void 0, void 0, function () {
8344
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8345
+ return __generator(this, function (_a) {
8346
+ switch (_a.label) {
8347
+ case 0:
8348
+ // verify required parameter 'organizationId' is not null or undefined
8349
+ common_1.assertParamExists('jobStatus', 'organizationId', organizationId);
8350
+ // verify required parameter 'jobId' is not null or undefined
8351
+ common_1.assertParamExists('jobStatus', 'jobId', jobId);
8352
+ localVarPath = "/organizations/{organization_id}/job/{job_id}/status"
8353
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8354
+ .replace("{" + "job_id" + "}", encodeURIComponent(String(jobId)));
8355
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8356
+ if (configuration) {
8357
+ baseOptions = configuration.baseOptions;
8358
+ }
8359
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8360
+ localVarHeaderParameter = {};
8361
+ localVarQueryParameter = {};
8362
+ // authentication oAuth2AuthCode required
8363
+ // oauth required
8364
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8365
+ case 1:
8366
+ // authentication oAuth2AuthCode required
8367
+ // oauth required
8368
+ _a.sent();
8369
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8370
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8371
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8372
+ return [2 /*return*/, {
8373
+ url: common_1.toPathString(localVarUrlObj),
8374
+ options: localVarRequestOptions,
8375
+ }];
8376
+ }
8377
+ });
8378
+ });
8379
+ },
8221
8380
  /**
8222
8381
  * Run a query on a graph instance
8223
8382
  * @param {string} organizationId the Organization identifier
8383
+ * @param {string} graphId the Graph Identifier
8224
8384
  * @param {TwinGraphQuery} twinGraphQuery the query to run
8225
8385
  * @param {*} [options] Override http request option.
8226
8386
  * @throws {RequiredError}
8227
8387
  */
8228
- query: function (organizationId, twinGraphQuery, options) {
8388
+ query: function (organizationId, graphId, twinGraphQuery, options) {
8229
8389
  if (options === void 0) { options = {}; }
8230
8390
  return __awaiter(_this, void 0, void 0, function () {
8231
8391
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8234,10 +8394,13 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8234
8394
  case 0:
8235
8395
  // verify required parameter 'organizationId' is not null or undefined
8236
8396
  common_1.assertParamExists('query', 'organizationId', organizationId);
8397
+ // verify required parameter 'graphId' is not null or undefined
8398
+ common_1.assertParamExists('query', 'graphId', graphId);
8237
8399
  // verify required parameter 'twinGraphQuery' is not null or undefined
8238
8400
  common_1.assertParamExists('query', 'twinGraphQuery', twinGraphQuery);
8239
- localVarPath = "/organizations/{organization_id}/query"
8240
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8401
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/query"
8402
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8403
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8241
8404
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8242
8405
  if (configuration) {
8243
8406
  baseOptions = configuration.baseOptions;
@@ -8294,6 +8457,45 @@ exports.TwingraphApiFp = function (configuration) {
8294
8457
  });
8295
8458
  });
8296
8459
  },
8460
+ /**
8461
+ * Return the list of all graphs stored in the organization
8462
+ * @param {string} organizationId the Organization identifier
8463
+ * @param {*} [options] Override http request option.
8464
+ * @throws {RequiredError}
8465
+ */
8466
+ findAllTwingraphs: function (organizationId, options) {
8467
+ return __awaiter(this, void 0, void 0, function () {
8468
+ var localVarAxiosArgs;
8469
+ return __generator(this, function (_a) {
8470
+ switch (_a.label) {
8471
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllTwingraphs(organizationId, options)];
8472
+ case 1:
8473
+ localVarAxiosArgs = _a.sent();
8474
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8475
+ }
8476
+ });
8477
+ });
8478
+ },
8479
+ /**
8480
+ * Return the metaData of the specified graph
8481
+ * @param {string} organizationId the Organization identifier
8482
+ * @param {string} graphId the Graph Identifier
8483
+ * @param {*} [options] Override http request option.
8484
+ * @throws {RequiredError}
8485
+ */
8486
+ getGraphMetaData: function (organizationId, graphId, options) {
8487
+ return __awaiter(this, void 0, void 0, function () {
8488
+ var localVarAxiosArgs;
8489
+ return __generator(this, function (_a) {
8490
+ switch (_a.label) {
8491
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options)];
8492
+ case 1:
8493
+ localVarAxiosArgs = _a.sent();
8494
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8495
+ }
8496
+ });
8497
+ });
8498
+ },
8297
8499
  /**
8298
8500
  * Import a new version of a twin graph
8299
8501
  * @param {string} organizationId the Organization identifier
@@ -8314,19 +8516,40 @@ exports.TwingraphApiFp = function (configuration) {
8314
8516
  });
8315
8517
  });
8316
8518
  },
8519
+ /**
8520
+ * Get the status of a job
8521
+ * @param {string} organizationId the Organization identifier
8522
+ * @param {string} jobId the job identifier
8523
+ * @param {*} [options] Override http request option.
8524
+ * @throws {RequiredError}
8525
+ */
8526
+ jobStatus: function (organizationId, jobId, options) {
8527
+ return __awaiter(this, void 0, void 0, function () {
8528
+ var localVarAxiosArgs;
8529
+ return __generator(this, function (_a) {
8530
+ switch (_a.label) {
8531
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobStatus(organizationId, jobId, options)];
8532
+ case 1:
8533
+ localVarAxiosArgs = _a.sent();
8534
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8535
+ }
8536
+ });
8537
+ });
8538
+ },
8317
8539
  /**
8318
8540
  * Run a query on a graph instance
8319
8541
  * @param {string} organizationId the Organization identifier
8542
+ * @param {string} graphId the Graph Identifier
8320
8543
  * @param {TwinGraphQuery} twinGraphQuery the query to run
8321
8544
  * @param {*} [options] Override http request option.
8322
8545
  * @throws {RequiredError}
8323
8546
  */
8324
- query: function (organizationId, twinGraphQuery, options) {
8547
+ query: function (organizationId, graphId, twinGraphQuery, options) {
8325
8548
  return __awaiter(this, void 0, void 0, function () {
8326
8549
  var localVarAxiosArgs;
8327
8550
  return __generator(this, function (_a) {
8328
8551
  switch (_a.label) {
8329
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.query(organizationId, twinGraphQuery, options)];
8552
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options)];
8330
8553
  case 1:
8331
8554
  localVarAxiosArgs = _a.sent();
8332
8555
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8353,6 +8576,25 @@ exports.TwingraphApiFactory = function (configuration, basePath, axios) {
8353
8576
  _delete: function (organizationId, graphId, options) {
8354
8577
  return localVarFp._delete(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
8355
8578
  },
8579
+ /**
8580
+ * Return the list of all graphs stored in the organization
8581
+ * @param {string} organizationId the Organization identifier
8582
+ * @param {*} [options] Override http request option.
8583
+ * @throws {RequiredError}
8584
+ */
8585
+ findAllTwingraphs: function (organizationId, options) {
8586
+ return localVarFp.findAllTwingraphs(organizationId, options).then(function (request) { return request(axios, basePath); });
8587
+ },
8588
+ /**
8589
+ * Return the metaData of the specified graph
8590
+ * @param {string} organizationId the Organization identifier
8591
+ * @param {string} graphId the Graph Identifier
8592
+ * @param {*} [options] Override http request option.
8593
+ * @throws {RequiredError}
8594
+ */
8595
+ getGraphMetaData: function (organizationId, graphId, options) {
8596
+ return localVarFp.getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
8597
+ },
8356
8598
  /**
8357
8599
  * Import a new version of a twin graph
8358
8600
  * @param {string} organizationId the Organization identifier
@@ -8363,15 +8605,26 @@ exports.TwingraphApiFactory = function (configuration, basePath, axios) {
8363
8605
  importGraph: function (organizationId, twinGraphImport, options) {
8364
8606
  return localVarFp.importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(axios, basePath); });
8365
8607
  },
8608
+ /**
8609
+ * Get the status of a job
8610
+ * @param {string} organizationId the Organization identifier
8611
+ * @param {string} jobId the job identifier
8612
+ * @param {*} [options] Override http request option.
8613
+ * @throws {RequiredError}
8614
+ */
8615
+ jobStatus: function (organizationId, jobId, options) {
8616
+ return localVarFp.jobStatus(organizationId, jobId, options).then(function (request) { return request(axios, basePath); });
8617
+ },
8366
8618
  /**
8367
8619
  * Run a query on a graph instance
8368
8620
  * @param {string} organizationId the Organization identifier
8621
+ * @param {string} graphId the Graph Identifier
8369
8622
  * @param {TwinGraphQuery} twinGraphQuery the query to run
8370
8623
  * @param {*} [options] Override http request option.
8371
8624
  * @throws {RequiredError}
8372
8625
  */
8373
- query: function (organizationId, twinGraphQuery, options) {
8374
- return localVarFp.query(organizationId, twinGraphQuery, options).then(function (request) { return request(axios, basePath); });
8626
+ query: function (organizationId, graphId, twinGraphQuery, options) {
8627
+ return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(axios, basePath); });
8375
8628
  },
8376
8629
  };
8377
8630
  };
@@ -8398,6 +8651,29 @@ var TwingraphApi = /** @class */ (function (_super) {
8398
8651
  var _this = this;
8399
8652
  return exports.TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8400
8653
  };
8654
+ /**
8655
+ * Return the list of all graphs stored in the organization
8656
+ * @param {string} organizationId the Organization identifier
8657
+ * @param {*} [options] Override http request option.
8658
+ * @throws {RequiredError}
8659
+ * @memberof TwingraphApi
8660
+ */
8661
+ TwingraphApi.prototype.findAllTwingraphs = function (organizationId, options) {
8662
+ var _this = this;
8663
+ return exports.TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8664
+ };
8665
+ /**
8666
+ * Return the metaData of the specified graph
8667
+ * @param {string} organizationId the Organization identifier
8668
+ * @param {string} graphId the Graph Identifier
8669
+ * @param {*} [options] Override http request option.
8670
+ * @throws {RequiredError}
8671
+ * @memberof TwingraphApi
8672
+ */
8673
+ TwingraphApi.prototype.getGraphMetaData = function (organizationId, graphId, options) {
8674
+ var _this = this;
8675
+ return exports.TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8676
+ };
8401
8677
  /**
8402
8678
  * Import a new version of a twin graph
8403
8679
  * @param {string} organizationId the Organization identifier
@@ -8410,17 +8686,30 @@ var TwingraphApi = /** @class */ (function (_super) {
8410
8686
  var _this = this;
8411
8687
  return exports.TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(_this.axios, _this.basePath); });
8412
8688
  };
8689
+ /**
8690
+ * Get the status of a job
8691
+ * @param {string} organizationId the Organization identifier
8692
+ * @param {string} jobId the job identifier
8693
+ * @param {*} [options] Override http request option.
8694
+ * @throws {RequiredError}
8695
+ * @memberof TwingraphApi
8696
+ */
8697
+ TwingraphApi.prototype.jobStatus = function (organizationId, jobId, options) {
8698
+ var _this = this;
8699
+ return exports.TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8700
+ };
8413
8701
  /**
8414
8702
  * Run a query on a graph instance
8415
8703
  * @param {string} organizationId the Organization identifier
8704
+ * @param {string} graphId the Graph Identifier
8416
8705
  * @param {TwinGraphQuery} twinGraphQuery the query to run
8417
8706
  * @param {*} [options] Override http request option.
8418
8707
  * @throws {RequiredError}
8419
8708
  * @memberof TwingraphApi
8420
8709
  */
8421
- TwingraphApi.prototype.query = function (organizationId, twinGraphQuery, options) {
8710
+ TwingraphApi.prototype.query = function (organizationId, graphId, twinGraphQuery, options) {
8422
8711
  var _this = this;
8423
- return exports.TwingraphApiFp(this.configuration).query(organizationId, twinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
8712
+ return exports.TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
8424
8713
  };
8425
8714
  return TwingraphApi;
8426
8715
  }(base_1.BaseAPI));
@@ -10256,6 +10545,58 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10256
10545
  });
10257
10546
  });
10258
10547
  },
10548
+ /**
10549
+ *
10550
+ * @summary Create a secret for the Workspace
10551
+ * @param {string} organizationId the Organization identifier
10552
+ * @param {string} workspaceId the Workspace identifier
10553
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
10554
+ * @param {*} [options] Override http request option.
10555
+ * @throws {RequiredError}
10556
+ */
10557
+ createSecret: function (organizationId, workspaceId, workspaceSecret, options) {
10558
+ if (options === void 0) { options = {}; }
10559
+ return __awaiter(_this, void 0, void 0, function () {
10560
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10561
+ return __generator(this, function (_a) {
10562
+ switch (_a.label) {
10563
+ case 0:
10564
+ // verify required parameter 'organizationId' is not null or undefined
10565
+ common_1.assertParamExists('createSecret', 'organizationId', organizationId);
10566
+ // verify required parameter 'workspaceId' is not null or undefined
10567
+ common_1.assertParamExists('createSecret', 'workspaceId', workspaceId);
10568
+ // verify required parameter 'workspaceSecret' is not null or undefined
10569
+ common_1.assertParamExists('createSecret', 'workspaceSecret', workspaceSecret);
10570
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/secret"
10571
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10572
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10573
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10574
+ if (configuration) {
10575
+ baseOptions = configuration.baseOptions;
10576
+ }
10577
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10578
+ localVarHeaderParameter = {};
10579
+ localVarQueryParameter = {};
10580
+ // authentication oAuth2AuthCode required
10581
+ // oauth required
10582
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10583
+ case 1:
10584
+ // authentication oAuth2AuthCode required
10585
+ // oauth required
10586
+ _a.sent();
10587
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10588
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10589
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10590
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10591
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceSecret, localVarRequestOptions, configuration);
10592
+ return [2 /*return*/, {
10593
+ url: common_1.toPathString(localVarUrlObj),
10594
+ options: localVarRequestOptions,
10595
+ }];
10596
+ }
10597
+ });
10598
+ });
10599
+ },
10259
10600
  /**
10260
10601
  *
10261
10602
  * @summary Create a new workspace
@@ -11143,6 +11484,28 @@ exports.WorkspaceApiFp = function (configuration) {
11143
11484
  });
11144
11485
  });
11145
11486
  },
11487
+ /**
11488
+ *
11489
+ * @summary Create a secret for the Workspace
11490
+ * @param {string} organizationId the Organization identifier
11491
+ * @param {string} workspaceId the Workspace identifier
11492
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
11493
+ * @param {*} [options] Override http request option.
11494
+ * @throws {RequiredError}
11495
+ */
11496
+ createSecret: function (organizationId, workspaceId, workspaceSecret, options) {
11497
+ return __awaiter(this, void 0, void 0, function () {
11498
+ var localVarAxiosArgs;
11499
+ return __generator(this, function (_a) {
11500
+ switch (_a.label) {
11501
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSecret(organizationId, workspaceId, workspaceSecret, options)];
11502
+ case 1:
11503
+ localVarAxiosArgs = _a.sent();
11504
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11505
+ }
11506
+ });
11507
+ });
11508
+ },
11146
11509
  /**
11147
11510
  *
11148
11511
  * @summary Create a new workspace
@@ -11532,6 +11895,18 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
11532
11895
  addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
11533
11896
  return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(axios, basePath); });
11534
11897
  },
11898
+ /**
11899
+ *
11900
+ * @summary Create a secret for the Workspace
11901
+ * @param {string} organizationId the Organization identifier
11902
+ * @param {string} workspaceId the Workspace identifier
11903
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
11904
+ * @param {*} [options] Override http request option.
11905
+ * @throws {RequiredError}
11906
+ */
11907
+ createSecret: function (organizationId, workspaceId, workspaceSecret, options) {
11908
+ return localVarFp.createSecret(organizationId, workspaceId, workspaceSecret, options).then(function (request) { return request(axios, basePath); });
11909
+ },
11535
11910
  /**
11536
11911
  *
11537
11912
  * @summary Create a new workspace
@@ -11757,6 +12132,20 @@ var WorkspaceApi = /** @class */ (function (_super) {
11757
12132
  var _this = this;
11758
12133
  return exports.WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
11759
12134
  };
12135
+ /**
12136
+ *
12137
+ * @summary Create a secret for the Workspace
12138
+ * @param {string} organizationId the Organization identifier
12139
+ * @param {string} workspaceId the Workspace identifier
12140
+ * @param {WorkspaceSecret} workspaceSecret the definition of the secret
12141
+ * @param {*} [options] Override http request option.
12142
+ * @throws {RequiredError}
12143
+ * @memberof WorkspaceApi
12144
+ */
12145
+ WorkspaceApi.prototype.createSecret = function (organizationId, workspaceId, workspaceSecret, options) {
12146
+ var _this = this;
12147
+ return exports.WorkspaceApiFp(this.configuration).createSecret(organizationId, workspaceId, workspaceSecret, options).then(function (request) { return request(_this.axios, _this.basePath); });
12148
+ };
11760
12149
  /**
11761
12150
  *
11762
12151
  * @summary Create a new workspace