@cosmotech/api-ts 0.1.14 → 2.0.4

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
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Plaform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 0.0.13-SNAPSHOT
8
+ * The version of the OpenAPI document: 2.0.4-dev
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.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.WorkspaceUserRolesEnum = exports.ValidatorRunStateEnum = exports.UserPlatformRolesEnum = exports.ScenarioValidationStatus = exports.ScenarioUserRolesEnum = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.OrganizationUserRolesEnum = 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.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;
77
77
  var axios_1 = require("axios");
78
78
  // Some imports not used depending on template conditions
79
79
  // @ts-ignore
@@ -84,12 +84,6 @@ exports.ConnectorIoTypesEnum = {
84
84
  Read: 'read',
85
85
  Write: 'write'
86
86
  };
87
- exports.OrganizationUserRolesEnum = {
88
- Admin: 'Admin',
89
- User: 'User',
90
- Viewer: 'Viewer',
91
- Developer: 'Developer'
92
- };
93
87
  /**
94
88
  * the Run Template step handler identifier
95
89
  * @export
@@ -152,10 +146,6 @@ exports.ScenarioRunState = {
152
146
  DataIngestionInProgress: 'DataIngestionInProgress',
153
147
  DataIngestionFailure: 'DataIngestionFailure'
154
148
  };
155
- exports.ScenarioUserRolesEnum = {
156
- Viewer: 'Viewer',
157
- Editor: 'Editor'
158
- };
159
149
  /**
160
150
  * the validation status of the scenario
161
151
  * @export
@@ -177,11 +167,6 @@ exports.ValidatorRunStateEnum = {
177
167
  Finished: 'Finished',
178
168
  OnError: 'OnError'
179
169
  };
180
- exports.WorkspaceUserRolesEnum = {
181
- Admin: 'Admin',
182
- User: 'User',
183
- Viewer: 'Viewer'
184
- };
185
170
  /**
186
171
  * ConnectorApi - axios parameter creator
187
172
  * @export
@@ -1447,13 +1432,13 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1447
1432
  return {
1448
1433
  /**
1449
1434
  *
1450
- * @summary Add (or replace) users in the Organization specified
1435
+ * @summary add a control acccess to the Organization
1451
1436
  * @param {string} organizationId the Organization identifier
1452
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
1437
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
1453
1438
  * @param {*} [options] Override http request option.
1454
1439
  * @throws {RequiredError}
1455
1440
  */
1456
- addOrReplaceUsersInOrganization: function (organizationId, organizationUser, options) {
1441
+ addOrganizationAccessControl: function (organizationId, organizationAccessControl, options) {
1457
1442
  if (options === void 0) { options = {}; }
1458
1443
  return __awaiter(_this, void 0, void 0, function () {
1459
1444
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1461,10 +1446,10 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1461
1446
  switch (_a.label) {
1462
1447
  case 0:
1463
1448
  // verify required parameter 'organizationId' is not null or undefined
1464
- common_1.assertParamExists('addOrReplaceUsersInOrganization', 'organizationId', organizationId);
1465
- // verify required parameter 'organizationUser' is not null or undefined
1466
- common_1.assertParamExists('addOrReplaceUsersInOrganization', 'organizationUser', organizationUser);
1467
- localVarPath = "/organizations/{organization_id}/users"
1449
+ common_1.assertParamExists('addOrganizationAccessControl', 'organizationId', organizationId);
1450
+ // verify required parameter 'organizationAccessControl' is not null or undefined
1451
+ common_1.assertParamExists('addOrganizationAccessControl', 'organizationAccessControl', organizationAccessControl);
1452
+ localVarPath = "/organizations/{organization_id}/security/access"
1468
1453
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1469
1454
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1470
1455
  if (configuration) {
@@ -1484,7 +1469,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1484
1469
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1485
1470
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1486
1471
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1487
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationUser, localVarRequestOptions, configuration);
1472
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationAccessControl, localVarRequestOptions, configuration);
1488
1473
  return [2 /*return*/, {
1489
1474
  url: common_1.toPathString(localVarUrlObj),
1490
1475
  options: localVarRequestOptions,
@@ -1575,6 +1560,225 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1575
1560
  });
1576
1561
  });
1577
1562
  },
1563
+ /**
1564
+ *
1565
+ * @summary Get all permissions per components
1566
+ * @param {*} [options] Override http request option.
1567
+ * @throws {RequiredError}
1568
+ */
1569
+ getAllPermissions: function (options) {
1570
+ if (options === void 0) { options = {}; }
1571
+ return __awaiter(_this, void 0, void 0, function () {
1572
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1573
+ return __generator(this, function (_a) {
1574
+ switch (_a.label) {
1575
+ case 0:
1576
+ localVarPath = "/organizations/permissions";
1577
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1578
+ if (configuration) {
1579
+ baseOptions = configuration.baseOptions;
1580
+ }
1581
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1582
+ localVarHeaderParameter = {};
1583
+ localVarQueryParameter = {};
1584
+ // authentication oAuth2AuthCode required
1585
+ // oauth required
1586
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1587
+ case 1:
1588
+ // authentication oAuth2AuthCode required
1589
+ // oauth required
1590
+ _a.sent();
1591
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1592
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1593
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1594
+ return [2 /*return*/, {
1595
+ url: common_1.toPathString(localVarUrlObj),
1596
+ options: localVarRequestOptions,
1597
+ }];
1598
+ }
1599
+ });
1600
+ });
1601
+ },
1602
+ /**
1603
+ *
1604
+ * @summary get a control acccess for the Organization
1605
+ * @param {string} organizationId the Organization identifier
1606
+ * @param {string} identityId the User identifier
1607
+ * @param {*} [options] Override http request option.
1608
+ * @throws {RequiredError}
1609
+ */
1610
+ getOrganizationAccessControl: function (organizationId, identityId, options) {
1611
+ if (options === void 0) { options = {}; }
1612
+ return __awaiter(_this, void 0, void 0, function () {
1613
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1614
+ return __generator(this, function (_a) {
1615
+ switch (_a.label) {
1616
+ case 0:
1617
+ // verify required parameter 'organizationId' is not null or undefined
1618
+ common_1.assertParamExists('getOrganizationAccessControl', 'organizationId', organizationId);
1619
+ // verify required parameter 'identityId' is not null or undefined
1620
+ common_1.assertParamExists('getOrganizationAccessControl', 'identityId', identityId);
1621
+ localVarPath = "/organizations/{organization_id}/security/access/{identity_id}"
1622
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1623
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
1624
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1625
+ if (configuration) {
1626
+ baseOptions = configuration.baseOptions;
1627
+ }
1628
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1629
+ localVarHeaderParameter = {};
1630
+ localVarQueryParameter = {};
1631
+ // authentication oAuth2AuthCode required
1632
+ // oauth required
1633
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1634
+ case 1:
1635
+ // authentication oAuth2AuthCode required
1636
+ // oauth required
1637
+ _a.sent();
1638
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1639
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1640
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1641
+ return [2 /*return*/, {
1642
+ url: common_1.toPathString(localVarUrlObj),
1643
+ options: localVarRequestOptions,
1644
+ }];
1645
+ }
1646
+ });
1647
+ });
1648
+ },
1649
+ /**
1650
+ *
1651
+ * @summary Get the Organization permissions by given role
1652
+ * @param {string} organizationId the Organization identifier
1653
+ * @param {string} role the Role
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ */
1657
+ getOrganizationPermissions: function (organizationId, role, options) {
1658
+ if (options === void 0) { options = {}; }
1659
+ return __awaiter(_this, void 0, void 0, function () {
1660
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1661
+ return __generator(this, function (_a) {
1662
+ switch (_a.label) {
1663
+ case 0:
1664
+ // verify required parameter 'organizationId' is not null or undefined
1665
+ common_1.assertParamExists('getOrganizationPermissions', 'organizationId', organizationId);
1666
+ // verify required parameter 'role' is not null or undefined
1667
+ common_1.assertParamExists('getOrganizationPermissions', 'role', role);
1668
+ localVarPath = "/organizations/{organization_id}/permissions/{role}"
1669
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1670
+ .replace("{" + "role" + "}", encodeURIComponent(String(role)));
1671
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1672
+ if (configuration) {
1673
+ baseOptions = configuration.baseOptions;
1674
+ }
1675
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1676
+ localVarHeaderParameter = {};
1677
+ localVarQueryParameter = {};
1678
+ // authentication oAuth2AuthCode required
1679
+ // oauth required
1680
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1681
+ case 1:
1682
+ // authentication oAuth2AuthCode required
1683
+ // oauth required
1684
+ _a.sent();
1685
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1686
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1687
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1688
+ return [2 /*return*/, {
1689
+ url: common_1.toPathString(localVarUrlObj),
1690
+ options: localVarRequestOptions,
1691
+ }];
1692
+ }
1693
+ });
1694
+ });
1695
+ },
1696
+ /**
1697
+ *
1698
+ * @summary Get the Organization security information
1699
+ * @param {string} organizationId the Organization identifier
1700
+ * @param {*} [options] Override http request option.
1701
+ * @throws {RequiredError}
1702
+ */
1703
+ getOrganizationSecurity: function (organizationId, options) {
1704
+ if (options === void 0) { options = {}; }
1705
+ return __awaiter(_this, void 0, void 0, function () {
1706
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1707
+ return __generator(this, function (_a) {
1708
+ switch (_a.label) {
1709
+ case 0:
1710
+ // verify required parameter 'organizationId' is not null or undefined
1711
+ common_1.assertParamExists('getOrganizationSecurity', 'organizationId', organizationId);
1712
+ localVarPath = "/organizations/{organization_id}/security"
1713
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1714
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1715
+ if (configuration) {
1716
+ baseOptions = configuration.baseOptions;
1717
+ }
1718
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1719
+ localVarHeaderParameter = {};
1720
+ localVarQueryParameter = {};
1721
+ // authentication oAuth2AuthCode required
1722
+ // oauth required
1723
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1724
+ case 1:
1725
+ // authentication oAuth2AuthCode required
1726
+ // oauth required
1727
+ _a.sent();
1728
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1729
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1730
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1731
+ return [2 /*return*/, {
1732
+ url: common_1.toPathString(localVarUrlObj),
1733
+ options: localVarRequestOptions,
1734
+ }];
1735
+ }
1736
+ });
1737
+ });
1738
+ },
1739
+ /**
1740
+ *
1741
+ * @summary Get the Organization security users list
1742
+ * @param {string} organizationId the Organization identifier
1743
+ * @param {*} [options] Override http request option.
1744
+ * @throws {RequiredError}
1745
+ */
1746
+ getOrganizationSecurityUsers: function (organizationId, options) {
1747
+ if (options === void 0) { options = {}; }
1748
+ return __awaiter(_this, void 0, void 0, function () {
1749
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1750
+ return __generator(this, function (_a) {
1751
+ switch (_a.label) {
1752
+ case 0:
1753
+ // verify required parameter 'organizationId' is not null or undefined
1754
+ common_1.assertParamExists('getOrganizationSecurityUsers', 'organizationId', organizationId);
1755
+ localVarPath = "/organizations/{organization_id}/security/users"
1756
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1757
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1758
+ if (configuration) {
1759
+ baseOptions = configuration.baseOptions;
1760
+ }
1761
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1762
+ localVarHeaderParameter = {};
1763
+ localVarQueryParameter = {};
1764
+ // authentication oAuth2AuthCode required
1765
+ // oauth required
1766
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
1767
+ case 1:
1768
+ // authentication oAuth2AuthCode required
1769
+ // oauth required
1770
+ _a.sent();
1771
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1772
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1773
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1774
+ return [2 /*return*/, {
1775
+ url: common_1.toPathString(localVarUrlObj),
1776
+ options: localVarRequestOptions,
1777
+ }];
1778
+ }
1779
+ });
1780
+ });
1781
+ },
1578
1782
  /**
1579
1783
  *
1580
1784
  * @summary Register a new organization
@@ -1621,12 +1825,13 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1621
1825
  },
1622
1826
  /**
1623
1827
  *
1624
- * @summary Remove all users from the Organization specified
1828
+ * @summary Remove the specified access from the given Organization
1625
1829
  * @param {string} organizationId the Organization identifier
1830
+ * @param {string} identityId the User identifier
1626
1831
  * @param {*} [options] Override http request option.
1627
1832
  * @throws {RequiredError}
1628
1833
  */
1629
- removeAllUsersInOrganization: function (organizationId, options) {
1834
+ removeOrganizationAccessControl: function (organizationId, identityId, options) {
1630
1835
  if (options === void 0) { options = {}; }
1631
1836
  return __awaiter(_this, void 0, void 0, function () {
1632
1837
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1634,9 +1839,12 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1634
1839
  switch (_a.label) {
1635
1840
  case 0:
1636
1841
  // verify required parameter 'organizationId' is not null or undefined
1637
- common_1.assertParamExists('removeAllUsersInOrganization', 'organizationId', organizationId);
1638
- localVarPath = "/organizations/{organization_id}/users"
1639
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1842
+ common_1.assertParamExists('removeOrganizationAccessControl', 'organizationId', organizationId);
1843
+ // verify required parameter 'identityId' is not null or undefined
1844
+ common_1.assertParamExists('removeOrganizationAccessControl', 'identityId', identityId);
1845
+ localVarPath = "/organizations/{organization_id}/security/access/{identity_id}"
1846
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1847
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
1640
1848
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1641
1849
  if (configuration) {
1642
1850
  baseOptions = configuration.baseOptions;
@@ -1664,13 +1872,13 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1664
1872
  },
1665
1873
  /**
1666
1874
  *
1667
- * @summary Remove the specified user from the given Organization
1875
+ * @summary set the Organization default security
1668
1876
  * @param {string} organizationId the Organization identifier
1669
- * @param {string} userId the User identifier
1877
+ * @param {string} body the new Organization default security.
1670
1878
  * @param {*} [options] Override http request option.
1671
1879
  * @throws {RequiredError}
1672
1880
  */
1673
- removeUserFromOrganization: function (organizationId, userId, options) {
1881
+ setOrganizationDefaultSecurity: function (organizationId, body, options) {
1674
1882
  if (options === void 0) { options = {}; }
1675
1883
  return __awaiter(_this, void 0, void 0, function () {
1676
1884
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1678,17 +1886,16 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1678
1886
  switch (_a.label) {
1679
1887
  case 0:
1680
1888
  // verify required parameter 'organizationId' is not null or undefined
1681
- common_1.assertParamExists('removeUserFromOrganization', 'organizationId', organizationId);
1682
- // verify required parameter 'userId' is not null or undefined
1683
- common_1.assertParamExists('removeUserFromOrganization', 'userId', userId);
1684
- localVarPath = "/organizations/{organization_id}/users/{user_id}"
1685
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
1686
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
1889
+ common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId);
1890
+ // verify required parameter 'body' is not null or undefined
1891
+ common_1.assertParamExists('setOrganizationDefaultSecurity', 'body', body);
1892
+ localVarPath = "/organizations/{organization_id}/security/default"
1893
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1687
1894
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1688
1895
  if (configuration) {
1689
1896
  baseOptions = configuration.baseOptions;
1690
1897
  }
1691
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1898
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1692
1899
  localVarHeaderParameter = {};
1693
1900
  localVarQueryParameter = {};
1694
1901
  // authentication oAuth2AuthCode required
@@ -1698,9 +1905,11 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1698
1905
  // authentication oAuth2AuthCode required
1699
1906
  // oauth required
1700
1907
  _a.sent();
1908
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1701
1909
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1702
1910
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1703
1911
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1912
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1704
1913
  return [2 /*return*/, {
1705
1914
  url: common_1.toPathString(localVarUrlObj),
1706
1915
  options: localVarRequestOptions,
@@ -1955,18 +2164,18 @@ exports.OrganizationApiFp = function (configuration) {
1955
2164
  return {
1956
2165
  /**
1957
2166
  *
1958
- * @summary Add (or replace) users in the Organization specified
2167
+ * @summary add a control acccess to the Organization
1959
2168
  * @param {string} organizationId the Organization identifier
1960
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2169
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
1961
2170
  * @param {*} [options] Override http request option.
1962
2171
  * @throws {RequiredError}
1963
2172
  */
1964
- addOrReplaceUsersInOrganization: function (organizationId, organizationUser, options) {
2173
+ addOrganizationAccessControl: function (organizationId, organizationAccessControl, options) {
1965
2174
  return __awaiter(this, void 0, void 0, function () {
1966
2175
  var localVarAxiosArgs;
1967
2176
  return __generator(this, function (_a) {
1968
2177
  switch (_a.label) {
1969
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInOrganization(organizationId, organizationUser, options)];
2178
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrganizationAccessControl(organizationId, organizationAccessControl, options)];
1970
2179
  case 1:
1971
2180
  localVarAxiosArgs = _a.sent();
1972
2181
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2015,17 +2224,16 @@ exports.OrganizationApiFp = function (configuration) {
2015
2224
  },
2016
2225
  /**
2017
2226
  *
2018
- * @summary Register a new organization
2019
- * @param {Organization} organization the Organization to register
2227
+ * @summary Get all permissions per components
2020
2228
  * @param {*} [options] Override http request option.
2021
2229
  * @throws {RequiredError}
2022
2230
  */
2023
- registerOrganization: function (organization, options) {
2231
+ getAllPermissions: function (options) {
2024
2232
  return __awaiter(this, void 0, void 0, function () {
2025
2233
  var localVarAxiosArgs;
2026
2234
  return __generator(this, function (_a) {
2027
2235
  switch (_a.label) {
2028
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerOrganization(organization, options)];
2236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAllPermissions(options)];
2029
2237
  case 1:
2030
2238
  localVarAxiosArgs = _a.sent();
2031
2239
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2035,17 +2243,18 @@ exports.OrganizationApiFp = function (configuration) {
2035
2243
  },
2036
2244
  /**
2037
2245
  *
2038
- * @summary Remove all users from the Organization specified
2246
+ * @summary get a control acccess for the Organization
2039
2247
  * @param {string} organizationId the Organization identifier
2248
+ * @param {string} identityId the User identifier
2040
2249
  * @param {*} [options] Override http request option.
2041
2250
  * @throws {RequiredError}
2042
2251
  */
2043
- removeAllUsersInOrganization: function (organizationId, options) {
2252
+ getOrganizationAccessControl: function (organizationId, identityId, options) {
2044
2253
  return __awaiter(this, void 0, void 0, function () {
2045
2254
  var localVarAxiosArgs;
2046
2255
  return __generator(this, function (_a) {
2047
2256
  switch (_a.label) {
2048
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersInOrganization(organizationId, options)];
2257
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationAccessControl(organizationId, identityId, options)];
2049
2258
  case 1:
2050
2259
  localVarAxiosArgs = _a.sent();
2051
2260
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2055,18 +2264,18 @@ exports.OrganizationApiFp = function (configuration) {
2055
2264
  },
2056
2265
  /**
2057
2266
  *
2058
- * @summary Remove the specified user from the given Organization
2267
+ * @summary Get the Organization permissions by given role
2059
2268
  * @param {string} organizationId the Organization identifier
2060
- * @param {string} userId the User identifier
2269
+ * @param {string} role the Role
2061
2270
  * @param {*} [options] Override http request option.
2062
2271
  * @throws {RequiredError}
2063
2272
  */
2064
- removeUserFromOrganization: function (organizationId, userId, options) {
2273
+ getOrganizationPermissions: function (organizationId, role, options) {
2065
2274
  return __awaiter(this, void 0, void 0, function () {
2066
2275
  var localVarAxiosArgs;
2067
2276
  return __generator(this, function (_a) {
2068
2277
  switch (_a.label) {
2069
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromOrganization(organizationId, userId, options)];
2278
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationPermissions(organizationId, role, options)];
2070
2279
  case 1:
2071
2280
  localVarAxiosArgs = _a.sent();
2072
2281
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2076,17 +2285,17 @@ exports.OrganizationApiFp = function (configuration) {
2076
2285
  },
2077
2286
  /**
2078
2287
  *
2079
- * @summary Unregister an organization
2288
+ * @summary Get the Organization security information
2080
2289
  * @param {string} organizationId the Organization identifier
2081
2290
  * @param {*} [options] Override http request option.
2082
2291
  * @throws {RequiredError}
2083
2292
  */
2084
- unregisterOrganization: function (organizationId, options) {
2293
+ getOrganizationSecurity: function (organizationId, options) {
2085
2294
  return __awaiter(this, void 0, void 0, function () {
2086
2295
  var localVarAxiosArgs;
2087
2296
  return __generator(this, function (_a) {
2088
2297
  switch (_a.label) {
2089
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unregisterOrganization(organizationId, options)];
2298
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationSecurity(organizationId, options)];
2090
2299
  case 1:
2091
2300
  localVarAxiosArgs = _a.sent();
2092
2301
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2096,18 +2305,17 @@ exports.OrganizationApiFp = function (configuration) {
2096
2305
  },
2097
2306
  /**
2098
2307
  *
2099
- * @summary Update an Organization
2308
+ * @summary Get the Organization security users list
2100
2309
  * @param {string} organizationId the Organization identifier
2101
- * @param {Organization} organization the new Organization details
2102
2310
  * @param {*} [options] Override http request option.
2103
2311
  * @throws {RequiredError}
2104
2312
  */
2105
- updateOrganization: function (organizationId, organization, options) {
2313
+ getOrganizationSecurityUsers: function (organizationId, options) {
2106
2314
  return __awaiter(this, void 0, void 0, function () {
2107
2315
  var localVarAxiosArgs;
2108
2316
  return __generator(this, function (_a) {
2109
2317
  switch (_a.label) {
2110
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(organizationId, organization, options)];
2318
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options)];
2111
2319
  case 1:
2112
2320
  localVarAxiosArgs = _a.sent();
2113
2321
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2117,18 +2325,17 @@ exports.OrganizationApiFp = function (configuration) {
2117
2325
  },
2118
2326
  /**
2119
2327
  *
2120
- * @summary Update the solutions container registry configuration for the Organization specified
2121
- * @param {string} organizationId the Organization identifier
2122
- * @param {OrganizationService} organizationService the new solutions container registry configuration to use
2328
+ * @summary Register a new organization
2329
+ * @param {Organization} organization the Organization to register
2123
2330
  * @param {*} [options] Override http request option.
2124
2331
  * @throws {RequiredError}
2125
2332
  */
2126
- updateSolutionsContainerRegistryByOrganizationId: function (organizationId, organizationService, options) {
2333
+ registerOrganization: function (organization, options) {
2127
2334
  return __awaiter(this, void 0, void 0, function () {
2128
2335
  var localVarAxiosArgs;
2129
2336
  return __generator(this, function (_a) {
2130
2337
  switch (_a.label) {
2131
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSolutionsContainerRegistryByOrganizationId(organizationId, organizationService, options)];
2338
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerOrganization(organization, options)];
2132
2339
  case 1:
2133
2340
  localVarAxiosArgs = _a.sent();
2134
2341
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2138,18 +2345,18 @@ exports.OrganizationApiFp = function (configuration) {
2138
2345
  },
2139
2346
  /**
2140
2347
  *
2141
- * @summary Update storage configuration for the Organization specified
2348
+ * @summary Remove the specified access from the given Organization
2142
2349
  * @param {string} organizationId the Organization identifier
2143
- * @param {OrganizationService} organizationService the new Storage configuration to use
2350
+ * @param {string} identityId the User identifier
2144
2351
  * @param {*} [options] Override http request option.
2145
2352
  * @throws {RequiredError}
2146
2353
  */
2147
- updateStorageByOrganizationId: function (organizationId, organizationService, options) {
2354
+ removeOrganizationAccessControl: function (organizationId, identityId, options) {
2148
2355
  return __awaiter(this, void 0, void 0, function () {
2149
2356
  var localVarAxiosArgs;
2150
2357
  return __generator(this, function (_a) {
2151
2358
  switch (_a.label) {
2152
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateStorageByOrganizationId(organizationId, organizationService, options)];
2359
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeOrganizationAccessControl(organizationId, identityId, options)];
2153
2360
  case 1:
2154
2361
  localVarAxiosArgs = _a.sent();
2155
2362
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2159,18 +2366,18 @@ exports.OrganizationApiFp = function (configuration) {
2159
2366
  },
2160
2367
  /**
2161
2368
  *
2162
- * @summary Update tenant credentials for the Organization specified
2369
+ * @summary set the Organization default security
2163
2370
  * @param {string} organizationId the Organization identifier
2164
- * @param {{ [key: string]: object; }} requestBody the new Tenant Credentials to use
2371
+ * @param {string} body the new Organization default security.
2165
2372
  * @param {*} [options] Override http request option.
2166
2373
  * @throws {RequiredError}
2167
2374
  */
2168
- updateTenantCredentialsByOrganizationId: function (organizationId, requestBody, options) {
2375
+ setOrganizationDefaultSecurity: function (organizationId, body, options) {
2169
2376
  return __awaiter(this, void 0, void 0, function () {
2170
2377
  var localVarAxiosArgs;
2171
2378
  return __generator(this, function (_a) {
2172
2379
  switch (_a.label) {
2173
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTenantCredentialsByOrganizationId(organizationId, requestBody, options)];
2380
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, body, options)];
2174
2381
  case 1:
2175
2382
  localVarAxiosArgs = _a.sent();
2176
2383
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2178,31 +2385,135 @@ exports.OrganizationApiFp = function (configuration) {
2178
2385
  });
2179
2386
  });
2180
2387
  },
2181
- };
2182
- };
2183
- /**
2184
- * OrganizationApi - factory interface
2185
- * @export
2186
- */
2187
- exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2188
- var localVarFp = exports.OrganizationApiFp(configuration);
2189
- return {
2190
2388
  /**
2191
2389
  *
2192
- * @summary Add (or replace) users in the Organization specified
2390
+ * @summary Unregister an organization
2193
2391
  * @param {string} organizationId the Organization identifier
2194
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2195
2392
  * @param {*} [options] Override http request option.
2196
2393
  * @throws {RequiredError}
2197
2394
  */
2198
- addOrReplaceUsersInOrganization: function (organizationId, organizationUser, options) {
2199
- return localVarFp.addOrReplaceUsersInOrganization(organizationId, organizationUser, options).then(function (request) { return request(axios, basePath); });
2200
- },
2201
- /**
2202
- *
2203
- * @summary List all Organizations
2204
- * @param {*} [options] Override http request option.
2205
- * @throws {RequiredError}
2395
+ unregisterOrganization: function (organizationId, options) {
2396
+ return __awaiter(this, void 0, void 0, function () {
2397
+ var localVarAxiosArgs;
2398
+ return __generator(this, function (_a) {
2399
+ switch (_a.label) {
2400
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unregisterOrganization(organizationId, options)];
2401
+ case 1:
2402
+ localVarAxiosArgs = _a.sent();
2403
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2404
+ }
2405
+ });
2406
+ });
2407
+ },
2408
+ /**
2409
+ *
2410
+ * @summary Update an Organization
2411
+ * @param {string} organizationId the Organization identifier
2412
+ * @param {Organization} organization the new Organization details
2413
+ * @param {*} [options] Override http request option.
2414
+ * @throws {RequiredError}
2415
+ */
2416
+ updateOrganization: function (organizationId, organization, options) {
2417
+ return __awaiter(this, void 0, void 0, function () {
2418
+ var localVarAxiosArgs;
2419
+ return __generator(this, function (_a) {
2420
+ switch (_a.label) {
2421
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(organizationId, organization, options)];
2422
+ case 1:
2423
+ localVarAxiosArgs = _a.sent();
2424
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2425
+ }
2426
+ });
2427
+ });
2428
+ },
2429
+ /**
2430
+ *
2431
+ * @summary Update the solutions container registry configuration for the Organization specified
2432
+ * @param {string} organizationId the Organization identifier
2433
+ * @param {OrganizationService} organizationService the new solutions container registry configuration to use
2434
+ * @param {*} [options] Override http request option.
2435
+ * @throws {RequiredError}
2436
+ */
2437
+ updateSolutionsContainerRegistryByOrganizationId: function (organizationId, organizationService, options) {
2438
+ return __awaiter(this, void 0, void 0, function () {
2439
+ var localVarAxiosArgs;
2440
+ return __generator(this, function (_a) {
2441
+ switch (_a.label) {
2442
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSolutionsContainerRegistryByOrganizationId(organizationId, organizationService, options)];
2443
+ case 1:
2444
+ localVarAxiosArgs = _a.sent();
2445
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2446
+ }
2447
+ });
2448
+ });
2449
+ },
2450
+ /**
2451
+ *
2452
+ * @summary Update storage configuration for the Organization specified
2453
+ * @param {string} organizationId the Organization identifier
2454
+ * @param {OrganizationService} organizationService the new Storage configuration to use
2455
+ * @param {*} [options] Override http request option.
2456
+ * @throws {RequiredError}
2457
+ */
2458
+ updateStorageByOrganizationId: function (organizationId, organizationService, options) {
2459
+ return __awaiter(this, void 0, void 0, function () {
2460
+ var localVarAxiosArgs;
2461
+ return __generator(this, function (_a) {
2462
+ switch (_a.label) {
2463
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateStorageByOrganizationId(organizationId, organizationService, options)];
2464
+ case 1:
2465
+ localVarAxiosArgs = _a.sent();
2466
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2467
+ }
2468
+ });
2469
+ });
2470
+ },
2471
+ /**
2472
+ *
2473
+ * @summary Update tenant credentials for the Organization specified
2474
+ * @param {string} organizationId the Organization identifier
2475
+ * @param {{ [key: string]: object; }} requestBody the new Tenant Credentials to use
2476
+ * @param {*} [options] Override http request option.
2477
+ * @throws {RequiredError}
2478
+ */
2479
+ updateTenantCredentialsByOrganizationId: function (organizationId, requestBody, options) {
2480
+ return __awaiter(this, void 0, void 0, function () {
2481
+ var localVarAxiosArgs;
2482
+ return __generator(this, function (_a) {
2483
+ switch (_a.label) {
2484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTenantCredentialsByOrganizationId(organizationId, requestBody, options)];
2485
+ case 1:
2486
+ localVarAxiosArgs = _a.sent();
2487
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2488
+ }
2489
+ });
2490
+ });
2491
+ },
2492
+ };
2493
+ };
2494
+ /**
2495
+ * OrganizationApi - factory interface
2496
+ * @export
2497
+ */
2498
+ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2499
+ var localVarFp = exports.OrganizationApiFp(configuration);
2500
+ return {
2501
+ /**
2502
+ *
2503
+ * @summary add a control acccess to the Organization
2504
+ * @param {string} organizationId the Organization identifier
2505
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2506
+ * @param {*} [options] Override http request option.
2507
+ * @throws {RequiredError}
2508
+ */
2509
+ addOrganizationAccessControl: function (organizationId, organizationAccessControl, options) {
2510
+ return localVarFp.addOrganizationAccessControl(organizationId, organizationAccessControl, options).then(function (request) { return request(axios, basePath); });
2511
+ },
2512
+ /**
2513
+ *
2514
+ * @summary List all Organizations
2515
+ * @param {*} [options] Override http request option.
2516
+ * @throws {RequiredError}
2206
2517
  */
2207
2518
  findAllOrganizations: function (options) {
2208
2519
  return localVarFp.findAllOrganizations(options).then(function (request) { return request(axios, basePath); });
@@ -2217,6 +2528,57 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2217
2528
  findOrganizationById: function (organizationId, options) {
2218
2529
  return localVarFp.findOrganizationById(organizationId, options).then(function (request) { return request(axios, basePath); });
2219
2530
  },
2531
+ /**
2532
+ *
2533
+ * @summary Get all permissions per components
2534
+ * @param {*} [options] Override http request option.
2535
+ * @throws {RequiredError}
2536
+ */
2537
+ getAllPermissions: function (options) {
2538
+ return localVarFp.getAllPermissions(options).then(function (request) { return request(axios, basePath); });
2539
+ },
2540
+ /**
2541
+ *
2542
+ * @summary get a control acccess for the Organization
2543
+ * @param {string} organizationId the Organization identifier
2544
+ * @param {string} identityId the User identifier
2545
+ * @param {*} [options] Override http request option.
2546
+ * @throws {RequiredError}
2547
+ */
2548
+ getOrganizationAccessControl: function (organizationId, identityId, options) {
2549
+ return localVarFp.getOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(axios, basePath); });
2550
+ },
2551
+ /**
2552
+ *
2553
+ * @summary Get the Organization permissions by given role
2554
+ * @param {string} organizationId the Organization identifier
2555
+ * @param {string} role the Role
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ getOrganizationPermissions: function (organizationId, role, options) {
2560
+ return localVarFp.getOrganizationPermissions(organizationId, role, options).then(function (request) { return request(axios, basePath); });
2561
+ },
2562
+ /**
2563
+ *
2564
+ * @summary Get the Organization security information
2565
+ * @param {string} organizationId the Organization identifier
2566
+ * @param {*} [options] Override http request option.
2567
+ * @throws {RequiredError}
2568
+ */
2569
+ getOrganizationSecurity: function (organizationId, options) {
2570
+ return localVarFp.getOrganizationSecurity(organizationId, options).then(function (request) { return request(axios, basePath); });
2571
+ },
2572
+ /**
2573
+ *
2574
+ * @summary Get the Organization security users list
2575
+ * @param {string} organizationId the Organization identifier
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ */
2579
+ getOrganizationSecurityUsers: function (organizationId, options) {
2580
+ return localVarFp.getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(axios, basePath); });
2581
+ },
2220
2582
  /**
2221
2583
  *
2222
2584
  * @summary Register a new organization
@@ -2229,24 +2591,25 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2229
2591
  },
2230
2592
  /**
2231
2593
  *
2232
- * @summary Remove all users from the Organization specified
2594
+ * @summary Remove the specified access from the given Organization
2233
2595
  * @param {string} organizationId the Organization identifier
2596
+ * @param {string} identityId the User identifier
2234
2597
  * @param {*} [options] Override http request option.
2235
2598
  * @throws {RequiredError}
2236
2599
  */
2237
- removeAllUsersInOrganization: function (organizationId, options) {
2238
- return localVarFp.removeAllUsersInOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
2600
+ removeOrganizationAccessControl: function (organizationId, identityId, options) {
2601
+ return localVarFp.removeOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(axios, basePath); });
2239
2602
  },
2240
2603
  /**
2241
2604
  *
2242
- * @summary Remove the specified user from the given Organization
2605
+ * @summary set the Organization default security
2243
2606
  * @param {string} organizationId the Organization identifier
2244
- * @param {string} userId the User identifier
2607
+ * @param {string} body the new Organization default security.
2245
2608
  * @param {*} [options] Override http request option.
2246
2609
  * @throws {RequiredError}
2247
2610
  */
2248
- removeUserFromOrganization: function (organizationId, userId, options) {
2249
- return localVarFp.removeUserFromOrganization(organizationId, userId, options).then(function (request) { return request(axios, basePath); });
2611
+ setOrganizationDefaultSecurity: function (organizationId, body, options) {
2612
+ return localVarFp.setOrganizationDefaultSecurity(organizationId, body, options).then(function (request) { return request(axios, basePath); });
2250
2613
  },
2251
2614
  /**
2252
2615
  *
@@ -2317,16 +2680,16 @@ var OrganizationApi = /** @class */ (function (_super) {
2317
2680
  }
2318
2681
  /**
2319
2682
  *
2320
- * @summary Add (or replace) users in the Organization specified
2683
+ * @summary add a control acccess to the Organization
2321
2684
  * @param {string} organizationId the Organization identifier
2322
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2685
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2323
2686
  * @param {*} [options] Override http request option.
2324
2687
  * @throws {RequiredError}
2325
2688
  * @memberof OrganizationApi
2326
2689
  */
2327
- OrganizationApi.prototype.addOrReplaceUsersInOrganization = function (organizationId, organizationUser, options) {
2690
+ OrganizationApi.prototype.addOrganizationAccessControl = function (organizationId, organizationAccessControl, options) {
2328
2691
  var _this = this;
2329
- return exports.OrganizationApiFp(this.configuration).addOrReplaceUsersInOrganization(organizationId, organizationUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
2692
+ return exports.OrganizationApiFp(this.configuration).addOrganizationAccessControl(organizationId, organizationAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
2330
2693
  };
2331
2694
  /**
2332
2695
  *
@@ -2351,6 +2714,67 @@ var OrganizationApi = /** @class */ (function (_super) {
2351
2714
  var _this = this;
2352
2715
  return exports.OrganizationApiFp(this.configuration).findOrganizationById(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2353
2716
  };
2717
+ /**
2718
+ *
2719
+ * @summary Get all permissions per components
2720
+ * @param {*} [options] Override http request option.
2721
+ * @throws {RequiredError}
2722
+ * @memberof OrganizationApi
2723
+ */
2724
+ OrganizationApi.prototype.getAllPermissions = function (options) {
2725
+ var _this = this;
2726
+ return exports.OrganizationApiFp(this.configuration).getAllPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
2727
+ };
2728
+ /**
2729
+ *
2730
+ * @summary get a control acccess for the Organization
2731
+ * @param {string} organizationId the Organization identifier
2732
+ * @param {string} identityId the User identifier
2733
+ * @param {*} [options] Override http request option.
2734
+ * @throws {RequiredError}
2735
+ * @memberof OrganizationApi
2736
+ */
2737
+ OrganizationApi.prototype.getOrganizationAccessControl = function (organizationId, identityId, options) {
2738
+ var _this = this;
2739
+ return exports.OrganizationApiFp(this.configuration).getOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2740
+ };
2741
+ /**
2742
+ *
2743
+ * @summary Get the Organization permissions by given role
2744
+ * @param {string} organizationId the Organization identifier
2745
+ * @param {string} role the Role
2746
+ * @param {*} [options] Override http request option.
2747
+ * @throws {RequiredError}
2748
+ * @memberof OrganizationApi
2749
+ */
2750
+ OrganizationApi.prototype.getOrganizationPermissions = function (organizationId, role, options) {
2751
+ var _this = this;
2752
+ return exports.OrganizationApiFp(this.configuration).getOrganizationPermissions(organizationId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
2753
+ };
2754
+ /**
2755
+ *
2756
+ * @summary Get the Organization security information
2757
+ * @param {string} organizationId the Organization identifier
2758
+ * @param {*} [options] Override http request option.
2759
+ * @throws {RequiredError}
2760
+ * @memberof OrganizationApi
2761
+ */
2762
+ OrganizationApi.prototype.getOrganizationSecurity = function (organizationId, options) {
2763
+ var _this = this;
2764
+ return exports.OrganizationApiFp(this.configuration).getOrganizationSecurity(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2765
+ };
2766
+ /**
2767
+ *
2768
+ * @summary Get the Organization security users list
2769
+ * @param {string} organizationId the Organization identifier
2770
+ * @param {*} [options] Override http request option.
2771
+ * @throws {RequiredError}
2772
+ * @memberof OrganizationApi
2773
+ */
2774
+ OrganizationApi.prototype.getOrganizationSecurityUsers = function (organizationId, options) {
2775
+ var _this = this;
2776
+ return exports.OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2777
+ };
2354
2778
  /**
2355
2779
  *
2356
2780
  * @summary Register a new organization
@@ -2365,28 +2789,29 @@ var OrganizationApi = /** @class */ (function (_super) {
2365
2789
  };
2366
2790
  /**
2367
2791
  *
2368
- * @summary Remove all users from the Organization specified
2792
+ * @summary Remove the specified access from the given Organization
2369
2793
  * @param {string} organizationId the Organization identifier
2794
+ * @param {string} identityId the User identifier
2370
2795
  * @param {*} [options] Override http request option.
2371
2796
  * @throws {RequiredError}
2372
2797
  * @memberof OrganizationApi
2373
2798
  */
2374
- OrganizationApi.prototype.removeAllUsersInOrganization = function (organizationId, options) {
2799
+ OrganizationApi.prototype.removeOrganizationAccessControl = function (organizationId, identityId, options) {
2375
2800
  var _this = this;
2376
- return exports.OrganizationApiFp(this.configuration).removeAllUsersInOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2801
+ return exports.OrganizationApiFp(this.configuration).removeOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2377
2802
  };
2378
2803
  /**
2379
2804
  *
2380
- * @summary Remove the specified user from the given Organization
2805
+ * @summary set the Organization default security
2381
2806
  * @param {string} organizationId the Organization identifier
2382
- * @param {string} userId the User identifier
2807
+ * @param {string} body the new Organization default security.
2383
2808
  * @param {*} [options] Override http request option.
2384
2809
  * @throws {RequiredError}
2385
2810
  * @memberof OrganizationApi
2386
2811
  */
2387
- OrganizationApi.prototype.removeUserFromOrganization = function (organizationId, userId, options) {
2812
+ OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, body, options) {
2388
2813
  var _this = this;
2389
- return exports.OrganizationApiFp(this.configuration).removeUserFromOrganization(organizationId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2814
+ return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
2390
2815
  };
2391
2816
  /**
2392
2817
  *
@@ -2520,15 +2945,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2520
2945
  },
2521
2946
  /**
2522
2947
  *
2523
- * @summary Add (or replace) users in the Scenario specified
2948
+ * @summary add a control acccess to the Scenario
2524
2949
  * @param {string} organizationId the Organization identifier
2525
2950
  * @param {string} workspaceId the Workspace identifier
2526
2951
  * @param {string} scenarioId the Scenario identifier
2527
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
2952
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
2528
2953
  * @param {*} [options] Override http request option.
2529
2954
  * @throws {RequiredError}
2530
2955
  */
2531
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
2956
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
2532
2957
  if (options === void 0) { options = {}; }
2533
2958
  return __awaiter(_this, void 0, void 0, function () {
2534
2959
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2536,14 +2961,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2536
2961
  switch (_a.label) {
2537
2962
  case 0:
2538
2963
  // verify required parameter 'organizationId' is not null or undefined
2539
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'organizationId', organizationId);
2964
+ common_1.assertParamExists('addScenarioAccessControl', 'organizationId', organizationId);
2540
2965
  // verify required parameter 'workspaceId' is not null or undefined
2541
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'workspaceId', workspaceId);
2966
+ common_1.assertParamExists('addScenarioAccessControl', 'workspaceId', workspaceId);
2542
2967
  // verify required parameter 'scenarioId' is not null or undefined
2543
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'scenarioId', scenarioId);
2544
- // verify required parameter 'scenarioUser' is not null or undefined
2545
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'scenarioUser', scenarioUser);
2546
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/users"
2968
+ common_1.assertParamExists('addScenarioAccessControl', 'scenarioId', scenarioId);
2969
+ // verify required parameter 'scenarioAccessControl' is not null or undefined
2970
+ common_1.assertParamExists('addScenarioAccessControl', 'scenarioAccessControl', scenarioAccessControl);
2971
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access"
2547
2972
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
2548
2973
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
2549
2974
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
@@ -2565,7 +2990,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2565
2990
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2566
2991
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2567
2992
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2568
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioUser, localVarRequestOptions, configuration);
2993
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioAccessControl, localVarRequestOptions, configuration);
2569
2994
  return [2 /*return*/, {
2570
2995
  url: common_1.toPathString(localVarUrlObj),
2571
2996
  options: localVarRequestOptions,
@@ -2983,6 +3408,61 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2983
3408
  });
2984
3409
  });
2985
3410
  },
3411
+ /**
3412
+ *
3413
+ * @summary get a control acccess for the Scenario
3414
+ * @param {string} organizationId the Organization identifier
3415
+ * @param {string} workspaceId the Workspace identifier
3416
+ * @param {string} scenarioId the Scenario identifier
3417
+ * @param {string} identityId the User identifier
3418
+ * @param {*} [options] Override http request option.
3419
+ * @throws {RequiredError}
3420
+ */
3421
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3422
+ if (options === void 0) { options = {}; }
3423
+ return __awaiter(_this, void 0, void 0, function () {
3424
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3425
+ return __generator(this, function (_a) {
3426
+ switch (_a.label) {
3427
+ case 0:
3428
+ // verify required parameter 'organizationId' is not null or undefined
3429
+ common_1.assertParamExists('getScenarioAccessControl', 'organizationId', organizationId);
3430
+ // verify required parameter 'workspaceId' is not null or undefined
3431
+ common_1.assertParamExists('getScenarioAccessControl', 'workspaceId', workspaceId);
3432
+ // verify required parameter 'scenarioId' is not null or undefined
3433
+ common_1.assertParamExists('getScenarioAccessControl', 'scenarioId', scenarioId);
3434
+ // verify required parameter 'identityId' is not null or undefined
3435
+ common_1.assertParamExists('getScenarioAccessControl', 'identityId', identityId);
3436
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
3437
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3438
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3439
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3440
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
3441
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3442
+ if (configuration) {
3443
+ baseOptions = configuration.baseOptions;
3444
+ }
3445
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3446
+ localVarHeaderParameter = {};
3447
+ localVarQueryParameter = {};
3448
+ // authentication oAuth2AuthCode required
3449
+ // oauth required
3450
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3451
+ case 1:
3452
+ // authentication oAuth2AuthCode required
3453
+ // oauth required
3454
+ _a.sent();
3455
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3456
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3457
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3458
+ return [2 /*return*/, {
3459
+ url: common_1.toPathString(localVarUrlObj),
3460
+ options: localVarRequestOptions,
3461
+ }];
3462
+ }
3463
+ });
3464
+ });
3465
+ },
2986
3466
  /**
2987
3467
  *
2988
3468
  * @summary Get Scenario data download URL
@@ -3038,6 +3518,159 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3038
3518
  });
3039
3519
  });
3040
3520
  },
3521
+ /**
3522
+ *
3523
+ * @summary Get the Scenario permission by given role
3524
+ * @param {string} organizationId the Organization identifier
3525
+ * @param {string} workspaceId the Workspace identifier
3526
+ * @param {string} role the Role
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
3531
+ if (options === void 0) { options = {}; }
3532
+ return __awaiter(_this, void 0, void 0, function () {
3533
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3534
+ return __generator(this, function (_a) {
3535
+ switch (_a.label) {
3536
+ case 0:
3537
+ // verify required parameter 'organizationId' is not null or undefined
3538
+ common_1.assertParamExists('getScenarioPermissions', 'organizationId', organizationId);
3539
+ // verify required parameter 'workspaceId' is not null or undefined
3540
+ common_1.assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId);
3541
+ // verify required parameter 'role' is not null or undefined
3542
+ common_1.assertParamExists('getScenarioPermissions', 'role', role);
3543
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}"
3544
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3545
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3546
+ .replace("{" + "role" + "}", encodeURIComponent(String(role)));
3547
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3548
+ if (configuration) {
3549
+ baseOptions = configuration.baseOptions;
3550
+ }
3551
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3552
+ localVarHeaderParameter = {};
3553
+ localVarQueryParameter = {};
3554
+ // authentication oAuth2AuthCode required
3555
+ // oauth required
3556
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3557
+ case 1:
3558
+ // authentication oAuth2AuthCode required
3559
+ // oauth required
3560
+ _a.sent();
3561
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3562
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3563
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3564
+ return [2 /*return*/, {
3565
+ url: common_1.toPathString(localVarUrlObj),
3566
+ options: localVarRequestOptions,
3567
+ }];
3568
+ }
3569
+ });
3570
+ });
3571
+ },
3572
+ /**
3573
+ *
3574
+ * @summary Get the Scenario security information
3575
+ * @param {string} organizationId the Organization identifier
3576
+ * @param {string} workspaceId the Workspace identifier
3577
+ * @param {string} scenarioId the Scenario identifier
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
3582
+ if (options === void 0) { options = {}; }
3583
+ return __awaiter(_this, void 0, void 0, function () {
3584
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3585
+ return __generator(this, function (_a) {
3586
+ switch (_a.label) {
3587
+ case 0:
3588
+ // verify required parameter 'organizationId' is not null or undefined
3589
+ common_1.assertParamExists('getScenarioSecurity', 'organizationId', organizationId);
3590
+ // verify required parameter 'workspaceId' is not null or undefined
3591
+ common_1.assertParamExists('getScenarioSecurity', 'workspaceId', workspaceId);
3592
+ // verify required parameter 'scenarioId' is not null or undefined
3593
+ common_1.assertParamExists('getScenarioSecurity', 'scenarioId', scenarioId);
3594
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security"
3595
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3596
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3597
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3598
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3599
+ if (configuration) {
3600
+ baseOptions = configuration.baseOptions;
3601
+ }
3602
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3603
+ localVarHeaderParameter = {};
3604
+ localVarQueryParameter = {};
3605
+ // authentication oAuth2AuthCode required
3606
+ // oauth required
3607
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3608
+ case 1:
3609
+ // authentication oAuth2AuthCode required
3610
+ // oauth required
3611
+ _a.sent();
3612
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3613
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3614
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3615
+ return [2 /*return*/, {
3616
+ url: common_1.toPathString(localVarUrlObj),
3617
+ options: localVarRequestOptions,
3618
+ }];
3619
+ }
3620
+ });
3621
+ });
3622
+ },
3623
+ /**
3624
+ *
3625
+ * @summary Get the Scenario security users list
3626
+ * @param {string} organizationId the Organization identifier
3627
+ * @param {string} workspaceId the Workspace identifier
3628
+ * @param {string} scenarioId the Scenario identifier
3629
+ * @param {*} [options] Override http request option.
3630
+ * @throws {RequiredError}
3631
+ */
3632
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
3633
+ if (options === void 0) { options = {}; }
3634
+ return __awaiter(_this, void 0, void 0, function () {
3635
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3636
+ return __generator(this, function (_a) {
3637
+ switch (_a.label) {
3638
+ case 0:
3639
+ // verify required parameter 'organizationId' is not null or undefined
3640
+ common_1.assertParamExists('getScenarioSecurityUsers', 'organizationId', organizationId);
3641
+ // verify required parameter 'workspaceId' is not null or undefined
3642
+ common_1.assertParamExists('getScenarioSecurityUsers', 'workspaceId', workspaceId);
3643
+ // verify required parameter 'scenarioId' is not null or undefined
3644
+ common_1.assertParamExists('getScenarioSecurityUsers', 'scenarioId', scenarioId);
3645
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/users"
3646
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3647
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3648
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3649
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3650
+ if (configuration) {
3651
+ baseOptions = configuration.baseOptions;
3652
+ }
3653
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3654
+ localVarHeaderParameter = {};
3655
+ localVarQueryParameter = {};
3656
+ // authentication oAuth2AuthCode required
3657
+ // oauth required
3658
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3659
+ case 1:
3660
+ // authentication oAuth2AuthCode required
3661
+ // oauth required
3662
+ _a.sent();
3663
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3664
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3665
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3666
+ return [2 /*return*/, {
3667
+ url: common_1.toPathString(localVarUrlObj),
3668
+ options: localVarRequestOptions,
3669
+ }];
3670
+ }
3671
+ });
3672
+ });
3673
+ },
3041
3674
  /**
3042
3675
  *
3043
3676
  * @summary Get the validation status of an scenario
@@ -3189,14 +3822,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3189
3822
  },
3190
3823
  /**
3191
3824
  *
3192
- * @summary Remove all users from the Scenario specified
3825
+ * @summary Remove the specified access from the given Organization Scenario
3193
3826
  * @param {string} organizationId the Organization identifier
3194
3827
  * @param {string} workspaceId the Workspace identifier
3195
3828
  * @param {string} scenarioId the Scenario identifier
3829
+ * @param {string} identityId the User identifier
3196
3830
  * @param {*} [options] Override http request option.
3197
3831
  * @throws {RequiredError}
3198
3832
  */
3199
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
3833
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3200
3834
  if (options === void 0) { options = {}; }
3201
3835
  return __awaiter(_this, void 0, void 0, function () {
3202
3836
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3204,15 +3838,18 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3204
3838
  switch (_a.label) {
3205
3839
  case 0:
3206
3840
  // verify required parameter 'organizationId' is not null or undefined
3207
- common_1.assertParamExists('removeAllUsersOfScenario', 'organizationId', organizationId);
3841
+ common_1.assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId);
3208
3842
  // verify required parameter 'workspaceId' is not null or undefined
3209
- common_1.assertParamExists('removeAllUsersOfScenario', 'workspaceId', workspaceId);
3843
+ common_1.assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId);
3210
3844
  // verify required parameter 'scenarioId' is not null or undefined
3211
- common_1.assertParamExists('removeAllUsersOfScenario', 'scenarioId', scenarioId);
3212
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/users"
3845
+ common_1.assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId);
3846
+ // verify required parameter 'identityId' is not null or undefined
3847
+ common_1.assertParamExists('removeScenarioAccessControl', 'identityId', identityId);
3848
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
3213
3849
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3214
3850
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3215
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3851
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3852
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
3216
3853
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3217
3854
  if (configuration) {
3218
3855
  baseOptions = configuration.baseOptions;
@@ -3240,15 +3877,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3240
3877
  },
3241
3878
  /**
3242
3879
  *
3243
- * @summary Remove the specified user from the given Scenario
3880
+ * @summary set the Scenario default security
3244
3881
  * @param {string} organizationId the Organization identifier
3245
3882
  * @param {string} workspaceId the Workspace identifier
3246
3883
  * @param {string} scenarioId the Scenario identifier
3247
- * @param {string} userId the User identifier
3884
+ * @param {string} body the new Scenario default security.
3248
3885
  * @param {*} [options] Override http request option.
3249
3886
  * @throws {RequiredError}
3250
3887
  */
3251
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
3888
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
3252
3889
  if (options === void 0) { options = {}; }
3253
3890
  return __awaiter(_this, void 0, void 0, function () {
3254
3891
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3256,23 +3893,22 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3256
3893
  switch (_a.label) {
3257
3894
  case 0:
3258
3895
  // verify required parameter 'organizationId' is not null or undefined
3259
- common_1.assertParamExists('removeUserFromScenario', 'organizationId', organizationId);
3896
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId);
3260
3897
  // verify required parameter 'workspaceId' is not null or undefined
3261
- common_1.assertParamExists('removeUserFromScenario', 'workspaceId', workspaceId);
3898
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId);
3262
3899
  // verify required parameter 'scenarioId' is not null or undefined
3263
- common_1.assertParamExists('removeUserFromScenario', 'scenarioId', scenarioId);
3264
- // verify required parameter 'userId' is not null or undefined
3265
- common_1.assertParamExists('removeUserFromScenario', 'userId', userId);
3266
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/users/{user_id}"
3900
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId);
3901
+ // verify required parameter 'body' is not null or undefined
3902
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'body', body);
3903
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default"
3267
3904
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3268
3905
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3269
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3270
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
3906
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3271
3907
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3272
3908
  if (configuration) {
3273
3909
  baseOptions = configuration.baseOptions;
3274
3910
  }
3275
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3911
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3276
3912
  localVarHeaderParameter = {};
3277
3913
  localVarQueryParameter = {};
3278
3914
  // authentication oAuth2AuthCode required
@@ -3282,9 +3918,11 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3282
3918
  // authentication oAuth2AuthCode required
3283
3919
  // oauth required
3284
3920
  _a.sent();
3921
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3285
3922
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3286
3923
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3287
3924
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3925
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3288
3926
  return [2 /*return*/, {
3289
3927
  url: common_1.toPathString(localVarUrlObj),
3290
3928
  options: localVarRequestOptions,
@@ -3383,20 +4021,20 @@ exports.ScenarioApiFp = function (configuration) {
3383
4021
  },
3384
4022
  /**
3385
4023
  *
3386
- * @summary Add (or replace) users in the Scenario specified
4024
+ * @summary add a control acccess to the Scenario
3387
4025
  * @param {string} organizationId the Organization identifier
3388
4026
  * @param {string} workspaceId the Workspace identifier
3389
4027
  * @param {string} scenarioId the Scenario identifier
3390
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4028
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3391
4029
  * @param {*} [options] Override http request option.
3392
4030
  * @throws {RequiredError}
3393
4031
  */
3394
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
4032
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
3395
4033
  return __awaiter(this, void 0, void 0, function () {
3396
4034
  var localVarAxiosArgs;
3397
4035
  return __generator(this, function (_a) {
3398
4036
  switch (_a.label) {
3399
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options)];
4037
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options)];
3400
4038
  case 1:
3401
4039
  localVarAxiosArgs = _a.sent();
3402
4040
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3410,16 +4048,104 @@ exports.ScenarioApiFp = function (configuration) {
3410
4048
  * @param {string} organizationId the Organization identifier
3411
4049
  * @param {string} workspaceId the Workspace identifier
3412
4050
  * @param {string} scenarioId the Scenario identifier
3413
- * @param {string} comparedScenarioId the Scenario identifier to compare to
4051
+ * @param {string} comparedScenarioId the Scenario identifier to compare to
4052
+ * @param {*} [options] Override http request option.
4053
+ * @throws {RequiredError}
4054
+ */
4055
+ compareScenarios: function (organizationId, workspaceId, scenarioId, comparedScenarioId, options) {
4056
+ return __awaiter(this, void 0, void 0, function () {
4057
+ var localVarAxiosArgs;
4058
+ return __generator(this, function (_a) {
4059
+ switch (_a.label) {
4060
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.compareScenarios(organizationId, workspaceId, scenarioId, comparedScenarioId, options)];
4061
+ case 1:
4062
+ localVarAxiosArgs = _a.sent();
4063
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4064
+ }
4065
+ });
4066
+ });
4067
+ },
4068
+ /**
4069
+ *
4070
+ * @summary Create a new Scenario
4071
+ * @param {string} organizationId the Organization identifier
4072
+ * @param {string} workspaceId the Workspace identifier
4073
+ * @param {Scenario} scenario the Scenario to create
4074
+ * @param {*} [options] Override http request option.
4075
+ * @throws {RequiredError}
4076
+ */
4077
+ createScenario: function (organizationId, workspaceId, scenario, options) {
4078
+ return __awaiter(this, void 0, void 0, function () {
4079
+ var localVarAxiosArgs;
4080
+ return __generator(this, function (_a) {
4081
+ switch (_a.label) {
4082
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createScenario(organizationId, workspaceId, scenario, options)];
4083
+ case 1:
4084
+ localVarAxiosArgs = _a.sent();
4085
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4086
+ }
4087
+ });
4088
+ });
4089
+ },
4090
+ /**
4091
+ *
4092
+ * @summary Delete all Scenarios of the Workspace
4093
+ * @param {string} organizationId the Organization identifier
4094
+ * @param {string} workspaceId the Workspace identifier
4095
+ * @param {*} [options] Override http request option.
4096
+ * @throws {RequiredError}
4097
+ */
4098
+ deleteAllScenarios: function (organizationId, workspaceId, options) {
4099
+ return __awaiter(this, void 0, void 0, function () {
4100
+ var localVarAxiosArgs;
4101
+ return __generator(this, function (_a) {
4102
+ switch (_a.label) {
4103
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAllScenarios(organizationId, workspaceId, options)];
4104
+ case 1:
4105
+ localVarAxiosArgs = _a.sent();
4106
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4107
+ }
4108
+ });
4109
+ });
4110
+ },
4111
+ /**
4112
+ *
4113
+ * @summary Delete a scenario
4114
+ * @param {string} organizationId the Organization identifier
4115
+ * @param {string} workspaceId the Workspace identifier
4116
+ * @param {string} scenarioId the Scenario identifier
4117
+ * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
4118
+ * @param {*} [options] Override http request option.
4119
+ * @throws {RequiredError}
4120
+ */
4121
+ deleteScenario: function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
4122
+ return __awaiter(this, void 0, void 0, function () {
4123
+ var localVarAxiosArgs;
4124
+ return __generator(this, function (_a) {
4125
+ switch (_a.label) {
4126
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options)];
4127
+ case 1:
4128
+ localVarAxiosArgs = _a.sent();
4129
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4130
+ }
4131
+ });
4132
+ });
4133
+ },
4134
+ /**
4135
+ *
4136
+ * @summary Download Scenario data
4137
+ * @param {string} organizationId the Organization identifier
4138
+ * @param {string} workspaceId the Workspace identifier
4139
+ * @param {string} scenarioId the Scenario identifier
3414
4140
  * @param {*} [options] Override http request option.
3415
4141
  * @throws {RequiredError}
3416
4142
  */
3417
- compareScenarios: function (organizationId, workspaceId, scenarioId, comparedScenarioId, options) {
4143
+ downloadScenarioData: function (organizationId, workspaceId, scenarioId, options) {
3418
4144
  return __awaiter(this, void 0, void 0, function () {
3419
4145
  var localVarAxiosArgs;
3420
4146
  return __generator(this, function (_a) {
3421
4147
  switch (_a.label) {
3422
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.compareScenarios(organizationId, workspaceId, scenarioId, comparedScenarioId, options)];
4148
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadScenarioData(organizationId, workspaceId, scenarioId, options)];
3423
4149
  case 1:
3424
4150
  localVarAxiosArgs = _a.sent();
3425
4151
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3429,19 +4155,18 @@ exports.ScenarioApiFp = function (configuration) {
3429
4155
  },
3430
4156
  /**
3431
4157
  *
3432
- * @summary Create a new Scenario
4158
+ * @summary List all Scenarios
3433
4159
  * @param {string} organizationId the Organization identifier
3434
4160
  * @param {string} workspaceId the Workspace identifier
3435
- * @param {Scenario} scenario the Scenario to create
3436
4161
  * @param {*} [options] Override http request option.
3437
4162
  * @throws {RequiredError}
3438
4163
  */
3439
- createScenario: function (organizationId, workspaceId, scenario, options) {
4164
+ findAllScenarios: function (organizationId, workspaceId, options) {
3440
4165
  return __awaiter(this, void 0, void 0, function () {
3441
4166
  var localVarAxiosArgs;
3442
4167
  return __generator(this, function (_a) {
3443
4168
  switch (_a.label) {
3444
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createScenario(organizationId, workspaceId, scenario, options)];
4169
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, options)];
3445
4170
  case 1:
3446
4171
  localVarAxiosArgs = _a.sent();
3447
4172
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3451,18 +4176,19 @@ exports.ScenarioApiFp = function (configuration) {
3451
4176
  },
3452
4177
  /**
3453
4178
  *
3454
- * @summary Delete all Scenarios of the Workspace
4179
+ * @summary List all Scenarios by validation status
3455
4180
  * @param {string} organizationId the Organization identifier
3456
4181
  * @param {string} workspaceId the Workspace identifier
4182
+ * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
3457
4183
  * @param {*} [options] Override http request option.
3458
4184
  * @throws {RequiredError}
3459
4185
  */
3460
- deleteAllScenarios: function (organizationId, workspaceId, options) {
4186
+ findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, options) {
3461
4187
  return __awaiter(this, void 0, void 0, function () {
3462
4188
  var localVarAxiosArgs;
3463
4189
  return __generator(this, function (_a) {
3464
4190
  switch (_a.label) {
3465
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAllScenarios(organizationId, workspaceId, options)];
4191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options)];
3466
4192
  case 1:
3467
4193
  localVarAxiosArgs = _a.sent();
3468
4194
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3472,20 +4198,19 @@ exports.ScenarioApiFp = function (configuration) {
3472
4198
  },
3473
4199
  /**
3474
4200
  *
3475
- * @summary Delete a scenario
4201
+ * @summary Get the details of an scenario
3476
4202
  * @param {string} organizationId the Organization identifier
3477
4203
  * @param {string} workspaceId the Workspace identifier
3478
4204
  * @param {string} scenarioId the Scenario identifier
3479
- * @param {boolean} [waitRelationshipPropagation] whether to wait until child scenarios are effectively updated
3480
4205
  * @param {*} [options] Override http request option.
3481
4206
  * @throws {RequiredError}
3482
4207
  */
3483
- deleteScenario: function (organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options) {
4208
+ findScenarioById: function (organizationId, workspaceId, scenarioId, options) {
3484
4209
  return __awaiter(this, void 0, void 0, function () {
3485
4210
  var localVarAxiosArgs;
3486
4211
  return __generator(this, function (_a) {
3487
4212
  switch (_a.label) {
3488
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteScenario(organizationId, workspaceId, scenarioId, waitRelationshipPropagation, options)];
4213
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findScenarioById(organizationId, workspaceId, scenarioId, options)];
3489
4214
  case 1:
3490
4215
  localVarAxiosArgs = _a.sent();
3491
4216
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3495,19 +4220,20 @@ exports.ScenarioApiFp = function (configuration) {
3495
4220
  },
3496
4221
  /**
3497
4222
  *
3498
- * @summary Download Scenario data
4223
+ * @summary get a control acccess for the Scenario
3499
4224
  * @param {string} organizationId the Organization identifier
3500
4225
  * @param {string} workspaceId the Workspace identifier
3501
4226
  * @param {string} scenarioId the Scenario identifier
4227
+ * @param {string} identityId the User identifier
3502
4228
  * @param {*} [options] Override http request option.
3503
4229
  * @throws {RequiredError}
3504
4230
  */
3505
- downloadScenarioData: function (organizationId, workspaceId, scenarioId, options) {
4231
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3506
4232
  return __awaiter(this, void 0, void 0, function () {
3507
4233
  var localVarAxiosArgs;
3508
4234
  return __generator(this, function (_a) {
3509
4235
  switch (_a.label) {
3510
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadScenarioData(organizationId, workspaceId, scenarioId, options)];
4236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options)];
3511
4237
  case 1:
3512
4238
  localVarAxiosArgs = _a.sent();
3513
4239
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3517,18 +4243,20 @@ exports.ScenarioApiFp = function (configuration) {
3517
4243
  },
3518
4244
  /**
3519
4245
  *
3520
- * @summary List all Scenarios
4246
+ * @summary Get Scenario data download URL
3521
4247
  * @param {string} organizationId the Organization identifier
3522
4248
  * @param {string} workspaceId the Workspace identifier
4249
+ * @param {string} scenarioId the Scenario identifier
4250
+ * @param {string} downloadId the Scenario Download identifier
3523
4251
  * @param {*} [options] Override http request option.
3524
4252
  * @throws {RequiredError}
3525
4253
  */
3526
- findAllScenarios: function (organizationId, workspaceId, options) {
4254
+ getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
3527
4255
  return __awaiter(this, void 0, void 0, function () {
3528
4256
  var localVarAxiosArgs;
3529
4257
  return __generator(this, function (_a) {
3530
4258
  switch (_a.label) {
3531
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, options)];
4259
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options)];
3532
4260
  case 1:
3533
4261
  localVarAxiosArgs = _a.sent();
3534
4262
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3538,19 +4266,19 @@ exports.ScenarioApiFp = function (configuration) {
3538
4266
  },
3539
4267
  /**
3540
4268
  *
3541
- * @summary List all Scenarios by validation status
4269
+ * @summary Get the Scenario permission by given role
3542
4270
  * @param {string} organizationId the Organization identifier
3543
4271
  * @param {string} workspaceId the Workspace identifier
3544
- * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
4272
+ * @param {string} role the Role
3545
4273
  * @param {*} [options] Override http request option.
3546
4274
  * @throws {RequiredError}
3547
4275
  */
3548
- findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, options) {
4276
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
3549
4277
  return __awaiter(this, void 0, void 0, function () {
3550
4278
  var localVarAxiosArgs;
3551
4279
  return __generator(this, function (_a) {
3552
4280
  switch (_a.label) {
3553
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options)];
4281
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options)];
3554
4282
  case 1:
3555
4283
  localVarAxiosArgs = _a.sent();
3556
4284
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3560,19 +4288,19 @@ exports.ScenarioApiFp = function (configuration) {
3560
4288
  },
3561
4289
  /**
3562
4290
  *
3563
- * @summary Get the details of an scenario
4291
+ * @summary Get the Scenario security information
3564
4292
  * @param {string} organizationId the Organization identifier
3565
4293
  * @param {string} workspaceId the Workspace identifier
3566
4294
  * @param {string} scenarioId the Scenario identifier
3567
4295
  * @param {*} [options] Override http request option.
3568
4296
  * @throws {RequiredError}
3569
4297
  */
3570
- findScenarioById: function (organizationId, workspaceId, scenarioId, options) {
4298
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
3571
4299
  return __awaiter(this, void 0, void 0, function () {
3572
4300
  var localVarAxiosArgs;
3573
4301
  return __generator(this, function (_a) {
3574
4302
  switch (_a.label) {
3575
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findScenarioById(organizationId, workspaceId, scenarioId, options)];
4303
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioSecurity(organizationId, workspaceId, scenarioId, options)];
3576
4304
  case 1:
3577
4305
  localVarAxiosArgs = _a.sent();
3578
4306
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3582,20 +4310,19 @@ exports.ScenarioApiFp = function (configuration) {
3582
4310
  },
3583
4311
  /**
3584
4312
  *
3585
- * @summary Get Scenario data download URL
4313
+ * @summary Get the Scenario security users list
3586
4314
  * @param {string} organizationId the Organization identifier
3587
4315
  * @param {string} workspaceId the Workspace identifier
3588
4316
  * @param {string} scenarioId the Scenario identifier
3589
- * @param {string} downloadId the Scenario Download identifier
3590
4317
  * @param {*} [options] Override http request option.
3591
4318
  * @throws {RequiredError}
3592
4319
  */
3593
- getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
4320
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
3594
4321
  return __awaiter(this, void 0, void 0, function () {
3595
4322
  var localVarAxiosArgs;
3596
4323
  return __generator(this, function (_a) {
3597
4324
  switch (_a.label) {
3598
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options)];
4325
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options)];
3599
4326
  case 1:
3600
4327
  localVarAxiosArgs = _a.sent();
3601
4328
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3670,19 +4397,20 @@ exports.ScenarioApiFp = function (configuration) {
3670
4397
  },
3671
4398
  /**
3672
4399
  *
3673
- * @summary Remove all users from the Scenario specified
4400
+ * @summary Remove the specified access from the given Organization Scenario
3674
4401
  * @param {string} organizationId the Organization identifier
3675
4402
  * @param {string} workspaceId the Workspace identifier
3676
4403
  * @param {string} scenarioId the Scenario identifier
4404
+ * @param {string} identityId the User identifier
3677
4405
  * @param {*} [options] Override http request option.
3678
4406
  * @throws {RequiredError}
3679
4407
  */
3680
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
4408
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3681
4409
  return __awaiter(this, void 0, void 0, function () {
3682
4410
  var localVarAxiosArgs;
3683
4411
  return __generator(this, function (_a) {
3684
4412
  switch (_a.label) {
3685
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options)];
4413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options)];
3686
4414
  case 1:
3687
4415
  localVarAxiosArgs = _a.sent();
3688
4416
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3692,20 +4420,20 @@ exports.ScenarioApiFp = function (configuration) {
3692
4420
  },
3693
4421
  /**
3694
4422
  *
3695
- * @summary Remove the specified user from the given Scenario
4423
+ * @summary set the Scenario default security
3696
4424
  * @param {string} organizationId the Organization identifier
3697
4425
  * @param {string} workspaceId the Workspace identifier
3698
4426
  * @param {string} scenarioId the Scenario identifier
3699
- * @param {string} userId the User identifier
4427
+ * @param {string} body the new Scenario default security.
3700
4428
  * @param {*} [options] Override http request option.
3701
4429
  * @throws {RequiredError}
3702
4430
  */
3703
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
4431
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
3704
4432
  return __awaiter(this, void 0, void 0, function () {
3705
4433
  var localVarAxiosArgs;
3706
4434
  return __generator(this, function (_a) {
3707
4435
  switch (_a.label) {
3708
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options)];
4436
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options)];
3709
4437
  case 1:
3710
4438
  localVarAxiosArgs = _a.sent();
3711
4439
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3760,16 +4488,16 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3760
4488
  },
3761
4489
  /**
3762
4490
  *
3763
- * @summary Add (or replace) users in the Scenario specified
4491
+ * @summary add a control acccess to the Scenario
3764
4492
  * @param {string} organizationId the Organization identifier
3765
4493
  * @param {string} workspaceId the Workspace identifier
3766
4494
  * @param {string} scenarioId the Scenario identifier
3767
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4495
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3768
4496
  * @param {*} [options] Override http request option.
3769
4497
  * @throws {RequiredError}
3770
4498
  */
3771
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
3772
- return localVarFp.addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options).then(function (request) { return request(axios, basePath); });
4499
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
4500
+ return localVarFp.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then(function (request) { return request(axios, basePath); });
3773
4501
  },
3774
4502
  /**
3775
4503
  *
@@ -3867,6 +4595,19 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3867
4595
  findScenarioById: function (organizationId, workspaceId, scenarioId, options) {
3868
4596
  return localVarFp.findScenarioById(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
3869
4597
  },
4598
+ /**
4599
+ *
4600
+ * @summary get a control acccess for the Scenario
4601
+ * @param {string} organizationId the Organization identifier
4602
+ * @param {string} workspaceId the Workspace identifier
4603
+ * @param {string} scenarioId the Scenario identifier
4604
+ * @param {string} identityId the User identifier
4605
+ * @param {*} [options] Override http request option.
4606
+ * @throws {RequiredError}
4607
+ */
4608
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4609
+ return localVarFp.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(axios, basePath); });
4610
+ },
3870
4611
  /**
3871
4612
  *
3872
4613
  * @summary Get Scenario data download URL
@@ -3880,6 +4621,42 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3880
4621
  getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
3881
4622
  return localVarFp.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then(function (request) { return request(axios, basePath); });
3882
4623
  },
4624
+ /**
4625
+ *
4626
+ * @summary Get the Scenario permission by given role
4627
+ * @param {string} organizationId the Organization identifier
4628
+ * @param {string} workspaceId the Workspace identifier
4629
+ * @param {string} role the Role
4630
+ * @param {*} [options] Override http request option.
4631
+ * @throws {RequiredError}
4632
+ */
4633
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
4634
+ return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(axios, basePath); });
4635
+ },
4636
+ /**
4637
+ *
4638
+ * @summary Get the Scenario security information
4639
+ * @param {string} organizationId the Organization identifier
4640
+ * @param {string} workspaceId the Workspace identifier
4641
+ * @param {string} scenarioId the Scenario identifier
4642
+ * @param {*} [options] Override http request option.
4643
+ * @throws {RequiredError}
4644
+ */
4645
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
4646
+ return localVarFp.getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4647
+ },
4648
+ /**
4649
+ *
4650
+ * @summary Get the Scenario security users list
4651
+ * @param {string} organizationId the Organization identifier
4652
+ * @param {string} workspaceId the Workspace identifier
4653
+ * @param {string} scenarioId the Scenario identifier
4654
+ * @param {*} [options] Override http request option.
4655
+ * @throws {RequiredError}
4656
+ */
4657
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
4658
+ return localVarFp.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4659
+ },
3883
4660
  /**
3884
4661
  *
3885
4662
  * @summary Get the validation status of an scenario
@@ -3917,28 +4694,29 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3917
4694
  },
3918
4695
  /**
3919
4696
  *
3920
- * @summary Remove all users from the Scenario specified
4697
+ * @summary Remove the specified access from the given Organization Scenario
3921
4698
  * @param {string} organizationId the Organization identifier
3922
4699
  * @param {string} workspaceId the Workspace identifier
3923
4700
  * @param {string} scenarioId the Scenario identifier
4701
+ * @param {string} identityId the User identifier
3924
4702
  * @param {*} [options] Override http request option.
3925
4703
  * @throws {RequiredError}
3926
4704
  */
3927
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
3928
- return localVarFp.removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4705
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4706
+ return localVarFp.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(axios, basePath); });
3929
4707
  },
3930
4708
  /**
3931
4709
  *
3932
- * @summary Remove the specified user from the given Scenario
4710
+ * @summary set the Scenario default security
3933
4711
  * @param {string} organizationId the Organization identifier
3934
4712
  * @param {string} workspaceId the Workspace identifier
3935
4713
  * @param {string} scenarioId the Scenario identifier
3936
- * @param {string} userId the User identifier
4714
+ * @param {string} body the new Scenario default security.
3937
4715
  * @param {*} [options] Override http request option.
3938
4716
  * @throws {RequiredError}
3939
4717
  */
3940
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
3941
- return localVarFp.removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options).then(function (request) { return request(axios, basePath); });
4718
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
4719
+ return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then(function (request) { return request(axios, basePath); });
3942
4720
  },
3943
4721
  /**
3944
4722
  *
@@ -3983,18 +4761,18 @@ var ScenarioApi = /** @class */ (function (_super) {
3983
4761
  };
3984
4762
  /**
3985
4763
  *
3986
- * @summary Add (or replace) users in the Scenario specified
4764
+ * @summary add a control acccess to the Scenario
3987
4765
  * @param {string} organizationId the Organization identifier
3988
4766
  * @param {string} workspaceId the Workspace identifier
3989
4767
  * @param {string} scenarioId the Scenario identifier
3990
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4768
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3991
4769
  * @param {*} [options] Override http request option.
3992
4770
  * @throws {RequiredError}
3993
4771
  * @memberof ScenarioApi
3994
4772
  */
3995
- ScenarioApi.prototype.addOrReplaceUsersInScenario = function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
4773
+ ScenarioApi.prototype.addScenarioAccessControl = function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
3996
4774
  var _this = this;
3997
- return exports.ScenarioApiFp(this.configuration).addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
4775
+ return exports.ScenarioApiFp(this.configuration).addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
3998
4776
  };
3999
4777
  /**
4000
4778
  *
@@ -4108,6 +4886,21 @@ var ScenarioApi = /** @class */ (function (_super) {
4108
4886
  var _this = this;
4109
4887
  return exports.ScenarioApiFp(this.configuration).findScenarioById(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4110
4888
  };
4889
+ /**
4890
+ *
4891
+ * @summary get a control acccess for the Scenario
4892
+ * @param {string} organizationId the Organization identifier
4893
+ * @param {string} workspaceId the Workspace identifier
4894
+ * @param {string} scenarioId the Scenario identifier
4895
+ * @param {string} identityId the User identifier
4896
+ * @param {*} [options] Override http request option.
4897
+ * @throws {RequiredError}
4898
+ * @memberof ScenarioApi
4899
+ */
4900
+ ScenarioApi.prototype.getScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, options) {
4901
+ var _this = this;
4902
+ return exports.ScenarioApiFp(this.configuration).getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4903
+ };
4111
4904
  /**
4112
4905
  *
4113
4906
  * @summary Get Scenario data download URL
@@ -4123,6 +4916,48 @@ var ScenarioApi = /** @class */ (function (_super) {
4123
4916
  var _this = this;
4124
4917
  return exports.ScenarioApiFp(this.configuration).getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4125
4918
  };
4919
+ /**
4920
+ *
4921
+ * @summary Get the Scenario permission by given role
4922
+ * @param {string} organizationId the Organization identifier
4923
+ * @param {string} workspaceId the Workspace identifier
4924
+ * @param {string} role the Role
4925
+ * @param {*} [options] Override http request option.
4926
+ * @throws {RequiredError}
4927
+ * @memberof ScenarioApi
4928
+ */
4929
+ ScenarioApi.prototype.getScenarioPermissions = function (organizationId, workspaceId, role, options) {
4930
+ var _this = this;
4931
+ return exports.ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
4932
+ };
4933
+ /**
4934
+ *
4935
+ * @summary Get the Scenario security information
4936
+ * @param {string} organizationId the Organization identifier
4937
+ * @param {string} workspaceId the Workspace identifier
4938
+ * @param {string} scenarioId the Scenario identifier
4939
+ * @param {*} [options] Override http request option.
4940
+ * @throws {RequiredError}
4941
+ * @memberof ScenarioApi
4942
+ */
4943
+ ScenarioApi.prototype.getScenarioSecurity = function (organizationId, workspaceId, scenarioId, options) {
4944
+ var _this = this;
4945
+ return exports.ScenarioApiFp(this.configuration).getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4946
+ };
4947
+ /**
4948
+ *
4949
+ * @summary Get the Scenario security users list
4950
+ * @param {string} organizationId the Organization identifier
4951
+ * @param {string} workspaceId the Workspace identifier
4952
+ * @param {string} scenarioId the Scenario identifier
4953
+ * @param {*} [options] Override http request option.
4954
+ * @throws {RequiredError}
4955
+ * @memberof ScenarioApi
4956
+ */
4957
+ ScenarioApi.prototype.getScenarioSecurityUsers = function (organizationId, workspaceId, scenarioId, options) {
4958
+ var _this = this;
4959
+ return exports.ScenarioApiFp(this.configuration).getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4960
+ };
4126
4961
  /**
4127
4962
  *
4128
4963
  * @summary Get the validation status of an scenario
@@ -4166,32 +5001,33 @@ var ScenarioApi = /** @class */ (function (_super) {
4166
5001
  };
4167
5002
  /**
4168
5003
  *
4169
- * @summary Remove all users from the Scenario specified
5004
+ * @summary Remove the specified access from the given Organization Scenario
4170
5005
  * @param {string} organizationId the Organization identifier
4171
5006
  * @param {string} workspaceId the Workspace identifier
4172
5007
  * @param {string} scenarioId the Scenario identifier
5008
+ * @param {string} identityId the User identifier
4173
5009
  * @param {*} [options] Override http request option.
4174
5010
  * @throws {RequiredError}
4175
5011
  * @memberof ScenarioApi
4176
5012
  */
4177
- ScenarioApi.prototype.removeAllUsersOfScenario = function (organizationId, workspaceId, scenarioId, options) {
5013
+ ScenarioApi.prototype.removeScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, options) {
4178
5014
  var _this = this;
4179
- return exports.ScenarioApiFp(this.configuration).removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5015
+ return exports.ScenarioApiFp(this.configuration).removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4180
5016
  };
4181
5017
  /**
4182
5018
  *
4183
- * @summary Remove the specified user from the given Scenario
5019
+ * @summary set the Scenario default security
4184
5020
  * @param {string} organizationId the Organization identifier
4185
5021
  * @param {string} workspaceId the Workspace identifier
4186
5022
  * @param {string} scenarioId the Scenario identifier
4187
- * @param {string} userId the User identifier
5023
+ * @param {string} body the new Scenario default security.
4188
5024
  * @param {*} [options] Override http request option.
4189
5025
  * @throws {RequiredError}
4190
5026
  * @memberof ScenarioApi
4191
5027
  */
4192
- ScenarioApi.prototype.removeUserFromScenario = function (organizationId, workspaceId, scenarioId, userId, options) {
5028
+ ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId, body, options) {
4193
5029
  var _this = this;
4194
- return exports.ScenarioApiFp(this.configuration).removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5030
+ return exports.ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
4195
5031
  };
4196
5032
  /**
4197
5033
  *
@@ -4218,6 +5054,100 @@ exports.ScenarioApi = ScenarioApi;
4218
5054
  exports.ScenariorunApiAxiosParamCreator = function (configuration) {
4219
5055
  var _this = this;
4220
5056
  return {
5057
+ /**
5058
+ *
5059
+ * @summary Delete all historical ScenarioRuns in the database
5060
+ * @param {string} organizationId the Organization identifier
5061
+ * @param {*} [options] Override http request option.
5062
+ * @throws {RequiredError}
5063
+ */
5064
+ deleteHistoricalDataOrganization: function (organizationId, options) {
5065
+ if (options === void 0) { options = {}; }
5066
+ return __awaiter(_this, void 0, void 0, function () {
5067
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5068
+ return __generator(this, function (_a) {
5069
+ switch (_a.label) {
5070
+ case 0:
5071
+ // verify required parameter 'organizationId' is not null or undefined
5072
+ common_1.assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId);
5073
+ localVarPath = "/organizations/{organization_id}/scenarioruns/deletehistoricaldata"
5074
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
5075
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5076
+ if (configuration) {
5077
+ baseOptions = configuration.baseOptions;
5078
+ }
5079
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
5080
+ localVarHeaderParameter = {};
5081
+ localVarQueryParameter = {};
5082
+ // authentication oAuth2AuthCode required
5083
+ // oauth required
5084
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
5085
+ case 1:
5086
+ // authentication oAuth2AuthCode required
5087
+ // oauth required
5088
+ _a.sent();
5089
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5090
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5091
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5092
+ return [2 /*return*/, {
5093
+ url: common_1.toPathString(localVarUrlObj),
5094
+ options: localVarRequestOptions,
5095
+ }];
5096
+ }
5097
+ });
5098
+ });
5099
+ },
5100
+ /**
5101
+ *
5102
+ * @summary Delete all historical ScenarioRuns for the Scenario
5103
+ * @param {string} organizationId the Organization identifier
5104
+ * @param {string} workspaceId the Workspace identifier
5105
+ * @param {string} scenarioId the Scenario identifier
5106
+ * @param {*} [options] Override http request option.
5107
+ * @throws {RequiredError}
5108
+ */
5109
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5110
+ if (options === void 0) { options = {}; }
5111
+ return __awaiter(_this, void 0, void 0, function () {
5112
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5113
+ return __generator(this, function (_a) {
5114
+ switch (_a.label) {
5115
+ case 0:
5116
+ // verify required parameter 'organizationId' is not null or undefined
5117
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId);
5118
+ // verify required parameter 'workspaceId' is not null or undefined
5119
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId);
5120
+ // verify required parameter 'scenarioId' is not null or undefined
5121
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId);
5122
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns"
5123
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
5124
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
5125
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
5126
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5127
+ if (configuration) {
5128
+ baseOptions = configuration.baseOptions;
5129
+ }
5130
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
5131
+ localVarHeaderParameter = {};
5132
+ localVarQueryParameter = {};
5133
+ // authentication oAuth2AuthCode required
5134
+ // oauth required
5135
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
5136
+ case 1:
5137
+ // authentication oAuth2AuthCode required
5138
+ // oauth required
5139
+ _a.sent();
5140
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5143
+ return [2 /*return*/, {
5144
+ url: common_1.toPathString(localVarUrlObj),
5145
+ options: localVarRequestOptions,
5146
+ }];
5147
+ }
5148
+ });
5149
+ });
5150
+ },
4221
5151
  /**
4222
5152
  *
4223
5153
  * @summary Delete a scenariorun
@@ -4731,29 +5661,71 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
4731
5661
  // oauth required
4732
5662
  return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
4733
5663
  case 1:
4734
- // authentication oAuth2AuthCode required
4735
- // oauth required
4736
- _a.sent();
4737
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4738
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4739
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4740
- return [2 /*return*/, {
4741
- url: common_1.toPathString(localVarUrlObj),
4742
- options: localVarRequestOptions,
4743
- }];
5664
+ // authentication oAuth2AuthCode required
5665
+ // oauth required
5666
+ _a.sent();
5667
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5668
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5669
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5670
+ return [2 /*return*/, {
5671
+ url: common_1.toPathString(localVarUrlObj),
5672
+ options: localVarRequestOptions,
5673
+ }];
5674
+ }
5675
+ });
5676
+ });
5677
+ },
5678
+ };
5679
+ };
5680
+ /**
5681
+ * ScenariorunApi - functional programming interface
5682
+ * @export
5683
+ */
5684
+ exports.ScenariorunApiFp = function (configuration) {
5685
+ var localVarAxiosParamCreator = exports.ScenariorunApiAxiosParamCreator(configuration);
5686
+ return {
5687
+ /**
5688
+ *
5689
+ * @summary Delete all historical ScenarioRuns in the database
5690
+ * @param {string} organizationId the Organization identifier
5691
+ * @param {*} [options] Override http request option.
5692
+ * @throws {RequiredError}
5693
+ */
5694
+ deleteHistoricalDataOrganization: function (organizationId, options) {
5695
+ return __awaiter(this, void 0, void 0, function () {
5696
+ var localVarAxiosArgs;
5697
+ return __generator(this, function (_a) {
5698
+ switch (_a.label) {
5699
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options)];
5700
+ case 1:
5701
+ localVarAxiosArgs = _a.sent();
5702
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5703
+ }
5704
+ });
5705
+ });
5706
+ },
5707
+ /**
5708
+ *
5709
+ * @summary Delete all historical ScenarioRuns for the Scenario
5710
+ * @param {string} organizationId the Organization identifier
5711
+ * @param {string} workspaceId the Workspace identifier
5712
+ * @param {string} scenarioId the Scenario identifier
5713
+ * @param {*} [options] Override http request option.
5714
+ * @throws {RequiredError}
5715
+ */
5716
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5717
+ return __awaiter(this, void 0, void 0, function () {
5718
+ var localVarAxiosArgs;
5719
+ return __generator(this, function (_a) {
5720
+ switch (_a.label) {
5721
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options)];
5722
+ case 1:
5723
+ localVarAxiosArgs = _a.sent();
5724
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4744
5725
  }
4745
5726
  });
4746
5727
  });
4747
5728
  },
4748
- };
4749
- };
4750
- /**
4751
- * ScenariorunApi - functional programming interface
4752
- * @export
4753
- */
4754
- exports.ScenariorunApiFp = function (configuration) {
4755
- var localVarAxiosParamCreator = exports.ScenariorunApiAxiosParamCreator(configuration);
4756
- return {
4757
5729
  /**
4758
5730
  *
4759
5731
  * @summary Delete a scenariorun
@@ -4996,6 +5968,28 @@ exports.ScenariorunApiFp = function (configuration) {
4996
5968
  exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
4997
5969
  var localVarFp = exports.ScenariorunApiFp(configuration);
4998
5970
  return {
5971
+ /**
5972
+ *
5973
+ * @summary Delete all historical ScenarioRuns in the database
5974
+ * @param {string} organizationId the Organization identifier
5975
+ * @param {*} [options] Override http request option.
5976
+ * @throws {RequiredError}
5977
+ */
5978
+ deleteHistoricalDataOrganization: function (organizationId, options) {
5979
+ return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
5980
+ },
5981
+ /**
5982
+ *
5983
+ * @summary Delete all historical ScenarioRuns for the Scenario
5984
+ * @param {string} organizationId the Organization identifier
5985
+ * @param {string} workspaceId the Workspace identifier
5986
+ * @param {string} scenarioId the Scenario identifier
5987
+ * @param {*} [options] Override http request option.
5988
+ * @throws {RequiredError}
5989
+ */
5990
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5991
+ return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
5992
+ },
4999
5993
  /**
5000
5994
  *
5001
5995
  * @summary Delete a scenariorun
@@ -5132,6 +6126,32 @@ var ScenariorunApi = /** @class */ (function (_super) {
5132
6126
  function ScenariorunApi() {
5133
6127
  return _super !== null && _super.apply(this, arguments) || this;
5134
6128
  }
6129
+ /**
6130
+ *
6131
+ * @summary Delete all historical ScenarioRuns in the database
6132
+ * @param {string} organizationId the Organization identifier
6133
+ * @param {*} [options] Override http request option.
6134
+ * @throws {RequiredError}
6135
+ * @memberof ScenariorunApi
6136
+ */
6137
+ ScenariorunApi.prototype.deleteHistoricalDataOrganization = function (organizationId, options) {
6138
+ var _this = this;
6139
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6140
+ };
6141
+ /**
6142
+ *
6143
+ * @summary Delete all historical ScenarioRuns for the Scenario
6144
+ * @param {string} organizationId the Organization identifier
6145
+ * @param {string} workspaceId the Workspace identifier
6146
+ * @param {string} scenarioId the Scenario identifier
6147
+ * @param {*} [options] Override http request option.
6148
+ * @throws {RequiredError}
6149
+ * @memberof ScenariorunApi
6150
+ */
6151
+ ScenariorunApi.prototype.deleteHistoricalScenarioRunsByScenario = function (organizationId, workspaceId, scenarioId, options) {
6152
+ var _this = this;
6153
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6154
+ };
5135
6155
  /**
5136
6156
  *
5137
6157
  * @summary Delete a scenariorun
@@ -8573,14 +9593,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8573
9593
  return {
8574
9594
  /**
8575
9595
  *
8576
- * @summary Add (or replace) users to the Workspace specified
9596
+ * @summary add a control acccess to the Workspace
8577
9597
  * @param {string} organizationId the Organization identifier
8578
9598
  * @param {string} workspaceId the Workspace identifier
8579
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
9599
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
8580
9600
  * @param {*} [options] Override http request option.
8581
9601
  * @throws {RequiredError}
8582
9602
  */
8583
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
9603
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
8584
9604
  if (options === void 0) { options = {}; }
8585
9605
  return __awaiter(_this, void 0, void 0, function () {
8586
9606
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8588,12 +9608,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8588
9608
  switch (_a.label) {
8589
9609
  case 0:
8590
9610
  // verify required parameter 'organizationId' is not null or undefined
8591
- common_1.assertParamExists('addOrReplaceUsersInOrganizationWorkspace', 'organizationId', organizationId);
9611
+ common_1.assertParamExists('addWorkspaceAccessControl', 'organizationId', organizationId);
8592
9612
  // verify required parameter 'workspaceId' is not null or undefined
8593
- common_1.assertParamExists('addOrReplaceUsersInOrganizationWorkspace', 'workspaceId', workspaceId);
8594
- // verify required parameter 'workspaceUser' is not null or undefined
8595
- common_1.assertParamExists('addOrReplaceUsersInOrganizationWorkspace', 'workspaceUser', workspaceUser);
8596
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/users"
9613
+ common_1.assertParamExists('addWorkspaceAccessControl', 'workspaceId', workspaceId);
9614
+ // verify required parameter 'workspaceAccessControl' is not null or undefined
9615
+ common_1.assertParamExists('addWorkspaceAccessControl', 'workspaceAccessControl', workspaceAccessControl);
9616
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access"
8597
9617
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8598
9618
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8599
9619
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8614,7 +9634,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8614
9634
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8615
9635
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8616
9636
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8617
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceUser, localVarRequestOptions, configuration);
9637
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceAccessControl, localVarRequestOptions, configuration);
8618
9638
  return [2 /*return*/, {
8619
9639
  url: common_1.toPathString(localVarUrlObj),
8620
9640
  options: localVarRequestOptions,
@@ -8648,7 +9668,206 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8648
9668
  if (configuration) {
8649
9669
  baseOptions = configuration.baseOptions;
8650
9670
  }
8651
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9671
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9672
+ localVarHeaderParameter = {};
9673
+ localVarQueryParameter = {};
9674
+ // authentication oAuth2AuthCode required
9675
+ // oauth required
9676
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9677
+ case 1:
9678
+ // authentication oAuth2AuthCode required
9679
+ // oauth required
9680
+ _a.sent();
9681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9682
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9683
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9684
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9685
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
9686
+ return [2 /*return*/, {
9687
+ url: common_1.toPathString(localVarUrlObj),
9688
+ options: localVarRequestOptions,
9689
+ }];
9690
+ }
9691
+ });
9692
+ });
9693
+ },
9694
+ /**
9695
+ *
9696
+ * @summary Delete all Workspace files
9697
+ * @param {string} organizationId the Organization identifier
9698
+ * @param {string} workspaceId the Workspace identifier
9699
+ * @param {*} [options] Override http request option.
9700
+ * @throws {RequiredError}
9701
+ */
9702
+ deleteAllWorkspaceFiles: function (organizationId, workspaceId, options) {
9703
+ if (options === void 0) { options = {}; }
9704
+ return __awaiter(_this, void 0, void 0, function () {
9705
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9706
+ return __generator(this, function (_a) {
9707
+ switch (_a.label) {
9708
+ case 0:
9709
+ // verify required parameter 'organizationId' is not null or undefined
9710
+ common_1.assertParamExists('deleteAllWorkspaceFiles', 'organizationId', organizationId);
9711
+ // verify required parameter 'workspaceId' is not null or undefined
9712
+ common_1.assertParamExists('deleteAllWorkspaceFiles', 'workspaceId', workspaceId);
9713
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files"
9714
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9715
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9716
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9717
+ if (configuration) {
9718
+ baseOptions = configuration.baseOptions;
9719
+ }
9720
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9721
+ localVarHeaderParameter = {};
9722
+ localVarQueryParameter = {};
9723
+ // authentication oAuth2AuthCode required
9724
+ // oauth required
9725
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9726
+ case 1:
9727
+ // authentication oAuth2AuthCode required
9728
+ // oauth required
9729
+ _a.sent();
9730
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9731
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9732
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9733
+ return [2 /*return*/, {
9734
+ url: common_1.toPathString(localVarUrlObj),
9735
+ options: localVarRequestOptions,
9736
+ }];
9737
+ }
9738
+ });
9739
+ });
9740
+ },
9741
+ /**
9742
+ *
9743
+ * @summary Delete a workspace
9744
+ * @param {string} organizationId the Organization identifier
9745
+ * @param {string} workspaceId the Workspace identifier
9746
+ * @param {*} [options] Override http request option.
9747
+ * @throws {RequiredError}
9748
+ */
9749
+ deleteWorkspace: function (organizationId, workspaceId, options) {
9750
+ if (options === void 0) { options = {}; }
9751
+ return __awaiter(_this, void 0, void 0, function () {
9752
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9753
+ return __generator(this, function (_a) {
9754
+ switch (_a.label) {
9755
+ case 0:
9756
+ // verify required parameter 'organizationId' is not null or undefined
9757
+ common_1.assertParamExists('deleteWorkspace', 'organizationId', organizationId);
9758
+ // verify required parameter 'workspaceId' is not null or undefined
9759
+ common_1.assertParamExists('deleteWorkspace', 'workspaceId', workspaceId);
9760
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
9761
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9762
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9763
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9764
+ if (configuration) {
9765
+ baseOptions = configuration.baseOptions;
9766
+ }
9767
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9768
+ localVarHeaderParameter = {};
9769
+ localVarQueryParameter = {};
9770
+ // authentication oAuth2AuthCode required
9771
+ // oauth required
9772
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9773
+ case 1:
9774
+ // authentication oAuth2AuthCode required
9775
+ // oauth required
9776
+ _a.sent();
9777
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9778
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9779
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9780
+ return [2 /*return*/, {
9781
+ url: common_1.toPathString(localVarUrlObj),
9782
+ options: localVarRequestOptions,
9783
+ }];
9784
+ }
9785
+ });
9786
+ });
9787
+ },
9788
+ /**
9789
+ *
9790
+ * @summary Delete a workspace file
9791
+ * @param {string} organizationId the Organization identifier
9792
+ * @param {string} workspaceId the Workspace identifier
9793
+ * @param {string} fileName the file name
9794
+ * @param {*} [options] Override http request option.
9795
+ * @throws {RequiredError}
9796
+ */
9797
+ deleteWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
9798
+ if (options === void 0) { options = {}; }
9799
+ return __awaiter(_this, void 0, void 0, function () {
9800
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9801
+ return __generator(this, function (_a) {
9802
+ switch (_a.label) {
9803
+ case 0:
9804
+ // verify required parameter 'organizationId' is not null or undefined
9805
+ common_1.assertParamExists('deleteWorkspaceFile', 'organizationId', organizationId);
9806
+ // verify required parameter 'workspaceId' is not null or undefined
9807
+ common_1.assertParamExists('deleteWorkspaceFile', 'workspaceId', workspaceId);
9808
+ // verify required parameter 'fileName' is not null or undefined
9809
+ common_1.assertParamExists('deleteWorkspaceFile', 'fileName', fileName);
9810
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/delete"
9811
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9812
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9813
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9814
+ if (configuration) {
9815
+ baseOptions = configuration.baseOptions;
9816
+ }
9817
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9818
+ localVarHeaderParameter = {};
9819
+ localVarQueryParameter = {};
9820
+ // authentication oAuth2AuthCode required
9821
+ // oauth required
9822
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
9823
+ case 1:
9824
+ // authentication oAuth2AuthCode required
9825
+ // oauth required
9826
+ _a.sent();
9827
+ if (fileName !== undefined) {
9828
+ localVarQueryParameter['file_name'] = fileName;
9829
+ }
9830
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9831
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9832
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9833
+ return [2 /*return*/, {
9834
+ url: common_1.toPathString(localVarUrlObj),
9835
+ options: localVarRequestOptions,
9836
+ }];
9837
+ }
9838
+ });
9839
+ });
9840
+ },
9841
+ /**
9842
+ *
9843
+ * @summary Download the Workspace File specified
9844
+ * @param {string} organizationId the Organization identifier
9845
+ * @param {string} workspaceId the Workspace identifier
9846
+ * @param {string} fileName the file name
9847
+ * @param {*} [options] Override http request option.
9848
+ * @throws {RequiredError}
9849
+ */
9850
+ downloadWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
9851
+ if (options === void 0) { options = {}; }
9852
+ return __awaiter(_this, void 0, void 0, function () {
9853
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9854
+ return __generator(this, function (_a) {
9855
+ switch (_a.label) {
9856
+ case 0:
9857
+ // verify required parameter 'organizationId' is not null or undefined
9858
+ common_1.assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId);
9859
+ // verify required parameter 'workspaceId' is not null or undefined
9860
+ common_1.assertParamExists('downloadWorkspaceFile', 'workspaceId', workspaceId);
9861
+ // verify required parameter 'fileName' is not null or undefined
9862
+ common_1.assertParamExists('downloadWorkspaceFile', 'fileName', fileName);
9863
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/download"
9864
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9865
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9866
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9867
+ if (configuration) {
9868
+ baseOptions = configuration.baseOptions;
9869
+ }
9870
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8652
9871
  localVarHeaderParameter = {};
8653
9872
  localVarQueryParameter = {};
8654
9873
  // authentication oAuth2AuthCode required
@@ -8658,11 +9877,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8658
9877
  // authentication oAuth2AuthCode required
8659
9878
  // oauth required
8660
9879
  _a.sent();
8661
- localVarHeaderParameter['Content-Type'] = 'application/json';
9880
+ if (fileName !== undefined) {
9881
+ localVarQueryParameter['file_name'] = fileName;
9882
+ }
8662
9883
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8663
9884
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8664
9885
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8665
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
8666
9886
  return [2 /*return*/, {
8667
9887
  url: common_1.toPathString(localVarUrlObj),
8668
9888
  options: localVarRequestOptions,
@@ -8673,13 +9893,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8673
9893
  },
8674
9894
  /**
8675
9895
  *
8676
- * @summary Delete all Workspace files
9896
+ * @summary List all Workspace files
8677
9897
  * @param {string} organizationId the Organization identifier
8678
9898
  * @param {string} workspaceId the Workspace identifier
8679
9899
  * @param {*} [options] Override http request option.
8680
9900
  * @throws {RequiredError}
8681
9901
  */
8682
- deleteAllWorkspaceFiles: function (organizationId, workspaceId, options) {
9902
+ findAllWorkspaceFiles: function (organizationId, workspaceId, options) {
8683
9903
  if (options === void 0) { options = {}; }
8684
9904
  return __awaiter(_this, void 0, void 0, function () {
8685
9905
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8687,9 +9907,9 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8687
9907
  switch (_a.label) {
8688
9908
  case 0:
8689
9909
  // verify required parameter 'organizationId' is not null or undefined
8690
- common_1.assertParamExists('deleteAllWorkspaceFiles', 'organizationId', organizationId);
9910
+ common_1.assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId);
8691
9911
  // verify required parameter 'workspaceId' is not null or undefined
8692
- common_1.assertParamExists('deleteAllWorkspaceFiles', 'workspaceId', workspaceId);
9912
+ common_1.assertParamExists('findAllWorkspaceFiles', 'workspaceId', workspaceId);
8693
9913
  localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files"
8694
9914
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8695
9915
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
@@ -8697,7 +9917,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8697
9917
  if (configuration) {
8698
9918
  baseOptions = configuration.baseOptions;
8699
9919
  }
8700
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9920
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8701
9921
  localVarHeaderParameter = {};
8702
9922
  localVarQueryParameter = {};
8703
9923
  // authentication oAuth2AuthCode required
@@ -8720,13 +9940,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8720
9940
  },
8721
9941
  /**
8722
9942
  *
8723
- * @summary Delete a workspace
9943
+ * @summary List all Workspaces
8724
9944
  * @param {string} organizationId the Organization identifier
8725
- * @param {string} workspaceId the Workspace identifier
8726
9945
  * @param {*} [options] Override http request option.
8727
9946
  * @throws {RequiredError}
8728
9947
  */
8729
- deleteWorkspace: function (organizationId, workspaceId, options) {
9948
+ findAllWorkspaces: function (organizationId, options) {
8730
9949
  if (options === void 0) { options = {}; }
8731
9950
  return __awaiter(_this, void 0, void 0, function () {
8732
9951
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8734,17 +9953,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8734
9953
  switch (_a.label) {
8735
9954
  case 0:
8736
9955
  // verify required parameter 'organizationId' is not null or undefined
8737
- common_1.assertParamExists('deleteWorkspace', 'organizationId', organizationId);
8738
- // verify required parameter 'workspaceId' is not null or undefined
8739
- common_1.assertParamExists('deleteWorkspace', 'workspaceId', workspaceId);
8740
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
8741
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8742
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9956
+ common_1.assertParamExists('findAllWorkspaces', 'organizationId', organizationId);
9957
+ localVarPath = "/organizations/{organization_id}/workspaces"
9958
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8743
9959
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8744
9960
  if (configuration) {
8745
9961
  baseOptions = configuration.baseOptions;
8746
9962
  }
8747
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9963
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8748
9964
  localVarHeaderParameter = {};
8749
9965
  localVarQueryParameter = {};
8750
9966
  // authentication oAuth2AuthCode required
@@ -8767,14 +9983,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8767
9983
  },
8768
9984
  /**
8769
9985
  *
8770
- * @summary Delete a workspace file
9986
+ * @summary Get the details of an workspace
8771
9987
  * @param {string} organizationId the Organization identifier
8772
9988
  * @param {string} workspaceId the Workspace identifier
8773
- * @param {string} fileName the file name
8774
9989
  * @param {*} [options] Override http request option.
8775
9990
  * @throws {RequiredError}
8776
9991
  */
8777
- deleteWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
9992
+ findWorkspaceById: function (organizationId, workspaceId, options) {
8778
9993
  if (options === void 0) { options = {}; }
8779
9994
  return __awaiter(_this, void 0, void 0, function () {
8780
9995
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8782,19 +9997,17 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8782
9997
  switch (_a.label) {
8783
9998
  case 0:
8784
9999
  // verify required parameter 'organizationId' is not null or undefined
8785
- common_1.assertParamExists('deleteWorkspaceFile', 'organizationId', organizationId);
10000
+ common_1.assertParamExists('findWorkspaceById', 'organizationId', organizationId);
8786
10001
  // verify required parameter 'workspaceId' is not null or undefined
8787
- common_1.assertParamExists('deleteWorkspaceFile', 'workspaceId', workspaceId);
8788
- // verify required parameter 'fileName' is not null or undefined
8789
- common_1.assertParamExists('deleteWorkspaceFile', 'fileName', fileName);
8790
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/delete"
10002
+ common_1.assertParamExists('findWorkspaceById', 'workspaceId', workspaceId);
10003
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
8791
10004
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8792
10005
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8793
10006
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8794
10007
  if (configuration) {
8795
10008
  baseOptions = configuration.baseOptions;
8796
10009
  }
8797
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10010
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8798
10011
  localVarHeaderParameter = {};
8799
10012
  localVarQueryParameter = {};
8800
10013
  // authentication oAuth2AuthCode required
@@ -8804,9 +10017,6 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8804
10017
  // authentication oAuth2AuthCode required
8805
10018
  // oauth required
8806
10019
  _a.sent();
8807
- if (fileName !== undefined) {
8808
- localVarQueryParameter['file_name'] = fileName;
8809
- }
8810
10020
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8811
10021
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8812
10022
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8820,14 +10030,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8820
10030
  },
8821
10031
  /**
8822
10032
  *
8823
- * @summary Download the Workspace File specified
10033
+ * @summary get a control acccess for the Workspace
8824
10034
  * @param {string} organizationId the Organization identifier
8825
10035
  * @param {string} workspaceId the Workspace identifier
8826
- * @param {string} fileName the file name
10036
+ * @param {string} identityId the User identifier
8827
10037
  * @param {*} [options] Override http request option.
8828
10038
  * @throws {RequiredError}
8829
10039
  */
8830
- downloadWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
10040
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
8831
10041
  if (options === void 0) { options = {}; }
8832
10042
  return __awaiter(_this, void 0, void 0, function () {
8833
10043
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8835,14 +10045,15 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8835
10045
  switch (_a.label) {
8836
10046
  case 0:
8837
10047
  // verify required parameter 'organizationId' is not null or undefined
8838
- common_1.assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId);
10048
+ common_1.assertParamExists('getWorkspaceAccessControl', 'organizationId', organizationId);
8839
10049
  // verify required parameter 'workspaceId' is not null or undefined
8840
- common_1.assertParamExists('downloadWorkspaceFile', 'workspaceId', workspaceId);
8841
- // verify required parameter 'fileName' is not null or undefined
8842
- common_1.assertParamExists('downloadWorkspaceFile', 'fileName', fileName);
8843
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/download"
10050
+ common_1.assertParamExists('getWorkspaceAccessControl', 'workspaceId', workspaceId);
10051
+ // verify required parameter 'identityId' is not null or undefined
10052
+ common_1.assertParamExists('getWorkspaceAccessControl', 'identityId', identityId);
10053
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
8844
10054
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8845
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10055
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10056
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
8846
10057
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8847
10058
  if (configuration) {
8848
10059
  baseOptions = configuration.baseOptions;
@@ -8857,9 +10068,6 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8857
10068
  // authentication oAuth2AuthCode required
8858
10069
  // oauth required
8859
10070
  _a.sent();
8860
- if (fileName !== undefined) {
8861
- localVarQueryParameter['file_name'] = fileName;
8862
- }
8863
10071
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8864
10072
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8865
10073
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8873,13 +10081,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8873
10081
  },
8874
10082
  /**
8875
10083
  *
8876
- * @summary List all Workspace files
10084
+ * @summary Get the Workspace permission by given role
8877
10085
  * @param {string} organizationId the Organization identifier
8878
10086
  * @param {string} workspaceId the Workspace identifier
10087
+ * @param {string} role the Role
8879
10088
  * @param {*} [options] Override http request option.
8880
10089
  * @throws {RequiredError}
8881
10090
  */
8882
- findAllWorkspaceFiles: function (organizationId, workspaceId, options) {
10091
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
8883
10092
  if (options === void 0) { options = {}; }
8884
10093
  return __awaiter(_this, void 0, void 0, function () {
8885
10094
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8887,12 +10096,15 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8887
10096
  switch (_a.label) {
8888
10097
  case 0:
8889
10098
  // verify required parameter 'organizationId' is not null or undefined
8890
- common_1.assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId);
10099
+ common_1.assertParamExists('getWorkspacePermissions', 'organizationId', organizationId);
8891
10100
  // verify required parameter 'workspaceId' is not null or undefined
8892
- common_1.assertParamExists('findAllWorkspaceFiles', 'workspaceId', workspaceId);
8893
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files"
10101
+ common_1.assertParamExists('getWorkspacePermissions', 'workspaceId', workspaceId);
10102
+ // verify required parameter 'role' is not null or undefined
10103
+ common_1.assertParamExists('getWorkspacePermissions', 'role', role);
10104
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}"
8894
10105
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8895
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10106
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10107
+ .replace("{" + "role" + "}", encodeURIComponent(String(role)));
8896
10108
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8897
10109
  if (configuration) {
8898
10110
  baseOptions = configuration.baseOptions;
@@ -8920,12 +10132,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8920
10132
  },
8921
10133
  /**
8922
10134
  *
8923
- * @summary List all Workspaces
10135
+ * @summary Get the Workspace security information
8924
10136
  * @param {string} organizationId the Organization identifier
10137
+ * @param {string} workspaceId the Workspace identifier
8925
10138
  * @param {*} [options] Override http request option.
8926
10139
  * @throws {RequiredError}
8927
10140
  */
8928
- findAllWorkspaces: function (organizationId, options) {
10141
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
8929
10142
  if (options === void 0) { options = {}; }
8930
10143
  return __awaiter(_this, void 0, void 0, function () {
8931
10144
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8933,9 +10146,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8933
10146
  switch (_a.label) {
8934
10147
  case 0:
8935
10148
  // verify required parameter 'organizationId' is not null or undefined
8936
- common_1.assertParamExists('findAllWorkspaces', 'organizationId', organizationId);
8937
- localVarPath = "/organizations/{organization_id}/workspaces"
8938
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
10149
+ common_1.assertParamExists('getWorkspaceSecurity', 'organizationId', organizationId);
10150
+ // verify required parameter 'workspaceId' is not null or undefined
10151
+ common_1.assertParamExists('getWorkspaceSecurity', 'workspaceId', workspaceId);
10152
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security"
10153
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10154
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8939
10155
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8940
10156
  if (configuration) {
8941
10157
  baseOptions = configuration.baseOptions;
@@ -8963,13 +10179,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8963
10179
  },
8964
10180
  /**
8965
10181
  *
8966
- * @summary Get the details of an workspace
10182
+ * @summary Get the Workspace security users list
8967
10183
  * @param {string} organizationId the Organization identifier
8968
10184
  * @param {string} workspaceId the Workspace identifier
8969
10185
  * @param {*} [options] Override http request option.
8970
10186
  * @throws {RequiredError}
8971
10187
  */
8972
- findWorkspaceById: function (organizationId, workspaceId, options) {
10188
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
8973
10189
  if (options === void 0) { options = {}; }
8974
10190
  return __awaiter(_this, void 0, void 0, function () {
8975
10191
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8977,10 +10193,10 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8977
10193
  switch (_a.label) {
8978
10194
  case 0:
8979
10195
  // verify required parameter 'organizationId' is not null or undefined
8980
- common_1.assertParamExists('findWorkspaceById', 'organizationId', organizationId);
10196
+ common_1.assertParamExists('getWorkspaceSecurityUsers', 'organizationId', organizationId);
8981
10197
  // verify required parameter 'workspaceId' is not null or undefined
8982
- common_1.assertParamExists('findWorkspaceById', 'workspaceId', workspaceId);
8983
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
10198
+ common_1.assertParamExists('getWorkspaceSecurityUsers', 'workspaceId', workspaceId);
10199
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/users"
8984
10200
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8985
10201
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8986
10202
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -9010,13 +10226,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9010
10226
  },
9011
10227
  /**
9012
10228
  *
9013
- * @summary Remove all users from the Workspace specified
10229
+ * @summary Remove the specified access from the given Organization Workspace
9014
10230
  * @param {string} organizationId the Organization identifier
9015
10231
  * @param {string} workspaceId the Workspace identifier
10232
+ * @param {string} identityId the User identifier
9016
10233
  * @param {*} [options] Override http request option.
9017
10234
  * @throws {RequiredError}
9018
10235
  */
9019
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
10236
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
9020
10237
  if (options === void 0) { options = {}; }
9021
10238
  return __awaiter(_this, void 0, void 0, function () {
9022
10239
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9024,12 +10241,15 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9024
10241
  switch (_a.label) {
9025
10242
  case 0:
9026
10243
  // verify required parameter 'organizationId' is not null or undefined
9027
- common_1.assertParamExists('removeAllUsersOfWorkspace', 'organizationId', organizationId);
10244
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'organizationId', organizationId);
9028
10245
  // verify required parameter 'workspaceId' is not null or undefined
9029
- common_1.assertParamExists('removeAllUsersOfWorkspace', 'workspaceId', workspaceId);
9030
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/users"
10246
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'workspaceId', workspaceId);
10247
+ // verify required parameter 'identityId' is not null or undefined
10248
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'identityId', identityId);
10249
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
9031
10250
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9032
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10251
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10252
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
9033
10253
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9034
10254
  if (configuration) {
9035
10255
  baseOptions = configuration.baseOptions;
@@ -9057,14 +10277,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9057
10277
  },
9058
10278
  /**
9059
10279
  *
9060
- * @summary Remove the specified user from the given Organization Workspace
10280
+ * @summary set the Workspace default security
9061
10281
  * @param {string} organizationId the Organization identifier
9062
10282
  * @param {string} workspaceId the Workspace identifier
9063
- * @param {string} userId the User identifier
10283
+ * @param {string} body the new Workspace default security.
9064
10284
  * @param {*} [options] Override http request option.
9065
10285
  * @throws {RequiredError}
9066
10286
  */
9067
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
10287
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
9068
10288
  if (options === void 0) { options = {}; }
9069
10289
  return __awaiter(_this, void 0, void 0, function () {
9070
10290
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9072,20 +10292,19 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9072
10292
  switch (_a.label) {
9073
10293
  case 0:
9074
10294
  // verify required parameter 'organizationId' is not null or undefined
9075
- common_1.assertParamExists('removeUserFromOrganizationWorkspace', 'organizationId', organizationId);
10295
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId);
9076
10296
  // verify required parameter 'workspaceId' is not null or undefined
9077
- common_1.assertParamExists('removeUserFromOrganizationWorkspace', 'workspaceId', workspaceId);
9078
- // verify required parameter 'userId' is not null or undefined
9079
- common_1.assertParamExists('removeUserFromOrganizationWorkspace', 'userId', userId);
9080
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/users/{user_id}"
10297
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId);
10298
+ // verify required parameter 'body' is not null or undefined
10299
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'body', body);
10300
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/default"
9081
10301
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9082
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
9083
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
10302
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9084
10303
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9085
10304
  if (configuration) {
9086
10305
  baseOptions = configuration.baseOptions;
9087
10306
  }
9088
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10307
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9089
10308
  localVarHeaderParameter = {};
9090
10309
  localVarQueryParameter = {};
9091
10310
  // authentication oAuth2AuthCode required
@@ -9095,9 +10314,11 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9095
10314
  // authentication oAuth2AuthCode required
9096
10315
  // oauth required
9097
10316
  _a.sent();
10317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9098
10318
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9099
10319
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9100
10320
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10321
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
9101
10322
  return [2 /*return*/, {
9102
10323
  url: common_1.toPathString(localVarUrlObj),
9103
10324
  options: localVarRequestOptions,
@@ -9233,19 +10454,19 @@ exports.WorkspaceApiFp = function (configuration) {
9233
10454
  return {
9234
10455
  /**
9235
10456
  *
9236
- * @summary Add (or replace) users to the Workspace specified
10457
+ * @summary add a control acccess to the Workspace
9237
10458
  * @param {string} organizationId the Organization identifier
9238
10459
  * @param {string} workspaceId the Workspace identifier
9239
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
10460
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9240
10461
  * @param {*} [options] Override http request option.
9241
10462
  * @throws {RequiredError}
9242
10463
  */
9243
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
10464
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
9244
10465
  return __awaiter(this, void 0, void 0, function () {
9245
10466
  var localVarAxiosArgs;
9246
10467
  return __generator(this, function (_a) {
9247
10468
  switch (_a.label) {
9248
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options)];
10469
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options)];
9249
10470
  case 1:
9250
10471
  localVarAxiosArgs = _a.sent();
9251
10472
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9424,18 +10645,19 @@ exports.WorkspaceApiFp = function (configuration) {
9424
10645
  },
9425
10646
  /**
9426
10647
  *
9427
- * @summary Remove all users from the Workspace specified
10648
+ * @summary get a control acccess for the Workspace
9428
10649
  * @param {string} organizationId the Organization identifier
9429
10650
  * @param {string} workspaceId the Workspace identifier
10651
+ * @param {string} identityId the User identifier
9430
10652
  * @param {*} [options] Override http request option.
9431
10653
  * @throws {RequiredError}
9432
10654
  */
9433
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
10655
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
9434
10656
  return __awaiter(this, void 0, void 0, function () {
9435
10657
  var localVarAxiosArgs;
9436
10658
  return __generator(this, function (_a) {
9437
10659
  switch (_a.label) {
9438
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersOfWorkspace(organizationId, workspaceId, options)];
10660
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options)];
9439
10661
  case 1:
9440
10662
  localVarAxiosArgs = _a.sent();
9441
10663
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9445,19 +10667,105 @@ exports.WorkspaceApiFp = function (configuration) {
9445
10667
  },
9446
10668
  /**
9447
10669
  *
9448
- * @summary Remove the specified user from the given Organization Workspace
10670
+ * @summary Get the Workspace permission by given role
10671
+ * @param {string} organizationId the Organization identifier
10672
+ * @param {string} workspaceId the Workspace identifier
10673
+ * @param {string} role the Role
10674
+ * @param {*} [options] Override http request option.
10675
+ * @throws {RequiredError}
10676
+ */
10677
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
10678
+ return __awaiter(this, void 0, void 0, function () {
10679
+ var localVarAxiosArgs;
10680
+ return __generator(this, function (_a) {
10681
+ switch (_a.label) {
10682
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspacePermissions(organizationId, workspaceId, role, options)];
10683
+ case 1:
10684
+ localVarAxiosArgs = _a.sent();
10685
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10686
+ }
10687
+ });
10688
+ });
10689
+ },
10690
+ /**
10691
+ *
10692
+ * @summary Get the Workspace security information
9449
10693
  * @param {string} organizationId the Organization identifier
9450
10694
  * @param {string} workspaceId the Workspace identifier
9451
- * @param {string} userId the User identifier
9452
10695
  * @param {*} [options] Override http request option.
9453
10696
  * @throws {RequiredError}
9454
10697
  */
9455
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
10698
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
9456
10699
  return __awaiter(this, void 0, void 0, function () {
9457
10700
  var localVarAxiosArgs;
9458
10701
  return __generator(this, function (_a) {
9459
10702
  switch (_a.label) {
9460
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options)];
10703
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceSecurity(organizationId, workspaceId, options)];
10704
+ case 1:
10705
+ localVarAxiosArgs = _a.sent();
10706
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10707
+ }
10708
+ });
10709
+ });
10710
+ },
10711
+ /**
10712
+ *
10713
+ * @summary Get the Workspace security users list
10714
+ * @param {string} organizationId the Organization identifier
10715
+ * @param {string} workspaceId the Workspace identifier
10716
+ * @param {*} [options] Override http request option.
10717
+ * @throws {RequiredError}
10718
+ */
10719
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
10720
+ return __awaiter(this, void 0, void 0, function () {
10721
+ var localVarAxiosArgs;
10722
+ return __generator(this, function (_a) {
10723
+ switch (_a.label) {
10724
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options)];
10725
+ case 1:
10726
+ localVarAxiosArgs = _a.sent();
10727
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10728
+ }
10729
+ });
10730
+ });
10731
+ },
10732
+ /**
10733
+ *
10734
+ * @summary Remove the specified access from the given Organization Workspace
10735
+ * @param {string} organizationId the Organization identifier
10736
+ * @param {string} workspaceId the Workspace identifier
10737
+ * @param {string} identityId the User identifier
10738
+ * @param {*} [options] Override http request option.
10739
+ * @throws {RequiredError}
10740
+ */
10741
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
10742
+ return __awaiter(this, void 0, void 0, function () {
10743
+ var localVarAxiosArgs;
10744
+ return __generator(this, function (_a) {
10745
+ switch (_a.label) {
10746
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options)];
10747
+ case 1:
10748
+ localVarAxiosArgs = _a.sent();
10749
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10750
+ }
10751
+ });
10752
+ });
10753
+ },
10754
+ /**
10755
+ *
10756
+ * @summary set the Workspace default security
10757
+ * @param {string} organizationId the Organization identifier
10758
+ * @param {string} workspaceId the Workspace identifier
10759
+ * @param {string} body the new Workspace default security.
10760
+ * @param {*} [options] Override http request option.
10761
+ * @throws {RequiredError}
10762
+ */
10763
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
10764
+ return __awaiter(this, void 0, void 0, function () {
10765
+ var localVarAxiosArgs;
10766
+ return __generator(this, function (_a) {
10767
+ switch (_a.label) {
10768
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options)];
9461
10769
  case 1:
9462
10770
  localVarAxiosArgs = _a.sent();
9463
10771
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9522,15 +10830,15 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
9522
10830
  return {
9523
10831
  /**
9524
10832
  *
9525
- * @summary Add (or replace) users to the Workspace specified
10833
+ * @summary add a control acccess to the Workspace
9526
10834
  * @param {string} organizationId the Organization identifier
9527
10835
  * @param {string} workspaceId the Workspace identifier
9528
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
10836
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9529
10837
  * @param {*} [options] Override http request option.
9530
10838
  * @throws {RequiredError}
9531
10839
  */
9532
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
9533
- return localVarFp.addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options).then(function (request) { return request(axios, basePath); });
10840
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
10841
+ return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(axios, basePath); });
9534
10842
  },
9535
10843
  /**
9536
10844
  *
@@ -9623,26 +10931,73 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
9623
10931
  },
9624
10932
  /**
9625
10933
  *
9626
- * @summary Remove all users from the Workspace specified
10934
+ * @summary get a control acccess for the Workspace
9627
10935
  * @param {string} organizationId the Organization identifier
9628
10936
  * @param {string} workspaceId the Workspace identifier
10937
+ * @param {string} identityId the User identifier
9629
10938
  * @param {*} [options] Override http request option.
9630
10939
  * @throws {RequiredError}
9631
10940
  */
9632
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
9633
- return localVarFp.removeAllUsersOfWorkspace(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
10941
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
10942
+ return localVarFp.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(axios, basePath); });
9634
10943
  },
9635
10944
  /**
9636
10945
  *
9637
- * @summary Remove the specified user from the given Organization Workspace
10946
+ * @summary Get the Workspace permission by given role
9638
10947
  * @param {string} organizationId the Organization identifier
9639
10948
  * @param {string} workspaceId the Workspace identifier
9640
- * @param {string} userId the User identifier
10949
+ * @param {string} role the Role
10950
+ * @param {*} [options] Override http request option.
10951
+ * @throws {RequiredError}
10952
+ */
10953
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
10954
+ return localVarFp.getWorkspacePermissions(organizationId, workspaceId, role, options).then(function (request) { return request(axios, basePath); });
10955
+ },
10956
+ /**
10957
+ *
10958
+ * @summary Get the Workspace security information
10959
+ * @param {string} organizationId the Organization identifier
10960
+ * @param {string} workspaceId the Workspace identifier
10961
+ * @param {*} [options] Override http request option.
10962
+ * @throws {RequiredError}
10963
+ */
10964
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
10965
+ return localVarFp.getWorkspaceSecurity(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
10966
+ },
10967
+ /**
10968
+ *
10969
+ * @summary Get the Workspace security users list
10970
+ * @param {string} organizationId the Organization identifier
10971
+ * @param {string} workspaceId the Workspace identifier
10972
+ * @param {*} [options] Override http request option.
10973
+ * @throws {RequiredError}
10974
+ */
10975
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
10976
+ return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
10977
+ },
10978
+ /**
10979
+ *
10980
+ * @summary Remove the specified access from the given Organization Workspace
10981
+ * @param {string} organizationId the Organization identifier
10982
+ * @param {string} workspaceId the Workspace identifier
10983
+ * @param {string} identityId the User identifier
10984
+ * @param {*} [options] Override http request option.
10985
+ * @throws {RequiredError}
10986
+ */
10987
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
10988
+ return localVarFp.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(axios, basePath); });
10989
+ },
10990
+ /**
10991
+ *
10992
+ * @summary set the Workspace default security
10993
+ * @param {string} organizationId the Organization identifier
10994
+ * @param {string} workspaceId the Workspace identifier
10995
+ * @param {string} body the new Workspace default security.
9641
10996
  * @param {*} [options] Override http request option.
9642
10997
  * @throws {RequiredError}
9643
10998
  */
9644
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
9645
- return localVarFp.removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options).then(function (request) { return request(axios, basePath); });
10999
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
11000
+ return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then(function (request) { return request(axios, basePath); });
9646
11001
  },
9647
11002
  /**
9648
11003
  *
@@ -9685,17 +11040,17 @@ var WorkspaceApi = /** @class */ (function (_super) {
9685
11040
  }
9686
11041
  /**
9687
11042
  *
9688
- * @summary Add (or replace) users to the Workspace specified
11043
+ * @summary add a control acccess to the Workspace
9689
11044
  * @param {string} organizationId the Organization identifier
9690
11045
  * @param {string} workspaceId the Workspace identifier
9691
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
11046
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9692
11047
  * @param {*} [options] Override http request option.
9693
11048
  * @throws {RequiredError}
9694
11049
  * @memberof WorkspaceApi
9695
11050
  */
9696
- WorkspaceApi.prototype.addOrReplaceUsersInOrganizationWorkspace = function (organizationId, workspaceId, workspaceUser, options) {
11051
+ WorkspaceApi.prototype.addWorkspaceAccessControl = function (organizationId, workspaceId, workspaceAccessControl, options) {
9697
11052
  var _this = this;
9698
- return exports.WorkspaceApiFp(this.configuration).addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
11053
+ return exports.WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
9699
11054
  };
9700
11055
  /**
9701
11056
  *
@@ -9804,30 +11159,85 @@ var WorkspaceApi = /** @class */ (function (_super) {
9804
11159
  };
9805
11160
  /**
9806
11161
  *
9807
- * @summary Remove all users from the Workspace specified
11162
+ * @summary get a control acccess for the Workspace
9808
11163
  * @param {string} organizationId the Organization identifier
9809
11164
  * @param {string} workspaceId the Workspace identifier
11165
+ * @param {string} identityId the User identifier
9810
11166
  * @param {*} [options] Override http request option.
9811
11167
  * @throws {RequiredError}
9812
11168
  * @memberof WorkspaceApi
9813
11169
  */
9814
- WorkspaceApi.prototype.removeAllUsersOfWorkspace = function (organizationId, workspaceId, options) {
11170
+ WorkspaceApi.prototype.getWorkspaceAccessControl = function (organizationId, workspaceId, identityId, options) {
9815
11171
  var _this = this;
9816
- return exports.WorkspaceApiFp(this.configuration).removeAllUsersOfWorkspace(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11172
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9817
11173
  };
9818
11174
  /**
9819
11175
  *
9820
- * @summary Remove the specified user from the given Organization Workspace
11176
+ * @summary Get the Workspace permission by given role
9821
11177
  * @param {string} organizationId the Organization identifier
9822
11178
  * @param {string} workspaceId the Workspace identifier
9823
- * @param {string} userId the User identifier
11179
+ * @param {string} role the Role
11180
+ * @param {*} [options] Override http request option.
11181
+ * @throws {RequiredError}
11182
+ * @memberof WorkspaceApi
11183
+ */
11184
+ WorkspaceApi.prototype.getWorkspacePermissions = function (organizationId, workspaceId, role, options) {
11185
+ var _this = this;
11186
+ return exports.WorkspaceApiFp(this.configuration).getWorkspacePermissions(organizationId, workspaceId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
11187
+ };
11188
+ /**
11189
+ *
11190
+ * @summary Get the Workspace security information
11191
+ * @param {string} organizationId the Organization identifier
11192
+ * @param {string} workspaceId the Workspace identifier
11193
+ * @param {*} [options] Override http request option.
11194
+ * @throws {RequiredError}
11195
+ * @memberof WorkspaceApi
11196
+ */
11197
+ WorkspaceApi.prototype.getWorkspaceSecurity = function (organizationId, workspaceId, options) {
11198
+ var _this = this;
11199
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurity(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11200
+ };
11201
+ /**
11202
+ *
11203
+ * @summary Get the Workspace security users list
11204
+ * @param {string} organizationId the Organization identifier
11205
+ * @param {string} workspaceId the Workspace identifier
11206
+ * @param {*} [options] Override http request option.
11207
+ * @throws {RequiredError}
11208
+ * @memberof WorkspaceApi
11209
+ */
11210
+ WorkspaceApi.prototype.getWorkspaceSecurityUsers = function (organizationId, workspaceId, options) {
11211
+ var _this = this;
11212
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11213
+ };
11214
+ /**
11215
+ *
11216
+ * @summary Remove the specified access from the given Organization Workspace
11217
+ * @param {string} organizationId the Organization identifier
11218
+ * @param {string} workspaceId the Workspace identifier
11219
+ * @param {string} identityId the User identifier
11220
+ * @param {*} [options] Override http request option.
11221
+ * @throws {RequiredError}
11222
+ * @memberof WorkspaceApi
11223
+ */
11224
+ WorkspaceApi.prototype.removeWorkspaceAccessControl = function (organizationId, workspaceId, identityId, options) {
11225
+ var _this = this;
11226
+ return exports.WorkspaceApiFp(this.configuration).removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11227
+ };
11228
+ /**
11229
+ *
11230
+ * @summary set the Workspace default security
11231
+ * @param {string} organizationId the Organization identifier
11232
+ * @param {string} workspaceId the Workspace identifier
11233
+ * @param {string} body the new Workspace default security.
9824
11234
  * @param {*} [options] Override http request option.
9825
11235
  * @throws {RequiredError}
9826
11236
  * @memberof WorkspaceApi
9827
11237
  */
9828
- WorkspaceApi.prototype.removeUserFromOrganizationWorkspace = function (organizationId, workspaceId, userId, options) {
11238
+ WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId, body, options) {
9829
11239
  var _this = this;
9830
- return exports.WorkspaceApiFp(this.configuration).removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11240
+ return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
9831
11241
  };
9832
11242
  /**
9833
11243
  *