@cosmotech/api-ts 0.1.14 → 2.0.6

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.6-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 access 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 access 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 {OrganizationRole} organizationRole 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, organizationRole, 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 'organizationRole' is not null or undefined
1891
+ common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole);
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(organizationRole, localVarRequestOptions, configuration);
1704
1913
  return [2 /*return*/, {
1705
1914
  url: common_1.toPathString(localVarUrlObj),
1706
1915
  options: localVarRequestOptions,
@@ -1800,6 +2009,58 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1800
2009
  });
1801
2010
  });
1802
2011
  },
2012
+ /**
2013
+ *
2014
+ * @summary Update the specified access to User for an Organization
2015
+ * @param {string} organizationId the Organization identifier
2016
+ * @param {string} identityId the User identifier
2017
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
2022
+ if (options === void 0) { options = {}; }
2023
+ return __awaiter(_this, void 0, void 0, function () {
2024
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2025
+ return __generator(this, function (_a) {
2026
+ switch (_a.label) {
2027
+ case 0:
2028
+ // verify required parameter 'organizationId' is not null or undefined
2029
+ common_1.assertParamExists('updateOrganizationAccessControl', 'organizationId', organizationId);
2030
+ // verify required parameter 'identityId' is not null or undefined
2031
+ common_1.assertParamExists('updateOrganizationAccessControl', 'identityId', identityId);
2032
+ // verify required parameter 'organizationRole' is not null or undefined
2033
+ common_1.assertParamExists('updateOrganizationAccessControl', 'organizationRole', organizationRole);
2034
+ localVarPath = "/organizations/{organization_id}/security/access/{identity_id}"
2035
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
2036
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
2037
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2038
+ if (configuration) {
2039
+ baseOptions = configuration.baseOptions;
2040
+ }
2041
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
2042
+ localVarHeaderParameter = {};
2043
+ localVarQueryParameter = {};
2044
+ // authentication oAuth2AuthCode required
2045
+ // oauth required
2046
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
2047
+ case 1:
2048
+ // authentication oAuth2AuthCode required
2049
+ // oauth required
2050
+ _a.sent();
2051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2052
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2053
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2054
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2055
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration);
2056
+ return [2 /*return*/, {
2057
+ url: common_1.toPathString(localVarUrlObj),
2058
+ options: localVarRequestOptions,
2059
+ }];
2060
+ }
2061
+ });
2062
+ });
2063
+ },
1803
2064
  /**
1804
2065
  *
1805
2066
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -1955,18 +2216,18 @@ exports.OrganizationApiFp = function (configuration) {
1955
2216
  return {
1956
2217
  /**
1957
2218
  *
1958
- * @summary Add (or replace) users in the Organization specified
2219
+ * @summary Add a control access to the Organization
1959
2220
  * @param {string} organizationId the Organization identifier
1960
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2221
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
1961
2222
  * @param {*} [options] Override http request option.
1962
2223
  * @throws {RequiredError}
1963
2224
  */
1964
- addOrReplaceUsersInOrganization: function (organizationId, organizationUser, options) {
2225
+ addOrganizationAccessControl: function (organizationId, organizationAccessControl, options) {
1965
2226
  return __awaiter(this, void 0, void 0, function () {
1966
2227
  var localVarAxiosArgs;
1967
2228
  return __generator(this, function (_a) {
1968
2229
  switch (_a.label) {
1969
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInOrganization(organizationId, organizationUser, options)];
2230
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrganizationAccessControl(organizationId, organizationAccessControl, options)];
1970
2231
  case 1:
1971
2232
  localVarAxiosArgs = _a.sent();
1972
2233
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2015,17 +2276,16 @@ exports.OrganizationApiFp = function (configuration) {
2015
2276
  },
2016
2277
  /**
2017
2278
  *
2018
- * @summary Register a new organization
2019
- * @param {Organization} organization the Organization to register
2279
+ * @summary Get all permissions per components
2020
2280
  * @param {*} [options] Override http request option.
2021
2281
  * @throws {RequiredError}
2022
2282
  */
2023
- registerOrganization: function (organization, options) {
2283
+ getAllPermissions: function (options) {
2024
2284
  return __awaiter(this, void 0, void 0, function () {
2025
2285
  var localVarAxiosArgs;
2026
2286
  return __generator(this, function (_a) {
2027
2287
  switch (_a.label) {
2028
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerOrganization(organization, options)];
2288
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAllPermissions(options)];
2029
2289
  case 1:
2030
2290
  localVarAxiosArgs = _a.sent();
2031
2291
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2035,17 +2295,18 @@ exports.OrganizationApiFp = function (configuration) {
2035
2295
  },
2036
2296
  /**
2037
2297
  *
2038
- * @summary Remove all users from the Organization specified
2298
+ * @summary Get a control access for the Organization
2039
2299
  * @param {string} organizationId the Organization identifier
2300
+ * @param {string} identityId the User identifier
2040
2301
  * @param {*} [options] Override http request option.
2041
2302
  * @throws {RequiredError}
2042
2303
  */
2043
- removeAllUsersInOrganization: function (organizationId, options) {
2304
+ getOrganizationAccessControl: function (organizationId, identityId, options) {
2044
2305
  return __awaiter(this, void 0, void 0, function () {
2045
2306
  var localVarAxiosArgs;
2046
2307
  return __generator(this, function (_a) {
2047
2308
  switch (_a.label) {
2048
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersInOrganization(organizationId, options)];
2309
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationAccessControl(organizationId, identityId, options)];
2049
2310
  case 1:
2050
2311
  localVarAxiosArgs = _a.sent();
2051
2312
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2055,18 +2316,18 @@ exports.OrganizationApiFp = function (configuration) {
2055
2316
  },
2056
2317
  /**
2057
2318
  *
2058
- * @summary Remove the specified user from the given Organization
2319
+ * @summary Get the Organization permissions by given role
2059
2320
  * @param {string} organizationId the Organization identifier
2060
- * @param {string} userId the User identifier
2321
+ * @param {string} role the Role
2061
2322
  * @param {*} [options] Override http request option.
2062
2323
  * @throws {RequiredError}
2063
2324
  */
2064
- removeUserFromOrganization: function (organizationId, userId, options) {
2325
+ getOrganizationPermissions: function (organizationId, role, options) {
2065
2326
  return __awaiter(this, void 0, void 0, function () {
2066
2327
  var localVarAxiosArgs;
2067
2328
  return __generator(this, function (_a) {
2068
2329
  switch (_a.label) {
2069
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromOrganization(organizationId, userId, options)];
2330
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationPermissions(organizationId, role, options)];
2070
2331
  case 1:
2071
2332
  localVarAxiosArgs = _a.sent();
2072
2333
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2076,17 +2337,119 @@ exports.OrganizationApiFp = function (configuration) {
2076
2337
  },
2077
2338
  /**
2078
2339
  *
2079
- * @summary Unregister an organization
2340
+ * @summary Get the Organization security information
2080
2341
  * @param {string} organizationId the Organization identifier
2081
2342
  * @param {*} [options] Override http request option.
2082
2343
  * @throws {RequiredError}
2083
2344
  */
2084
- unregisterOrganization: function (organizationId, options) {
2345
+ getOrganizationSecurity: function (organizationId, options) {
2085
2346
  return __awaiter(this, void 0, void 0, function () {
2086
2347
  var localVarAxiosArgs;
2087
2348
  return __generator(this, function (_a) {
2088
2349
  switch (_a.label) {
2089
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unregisterOrganization(organizationId, options)];
2350
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationSecurity(organizationId, options)];
2351
+ case 1:
2352
+ localVarAxiosArgs = _a.sent();
2353
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2354
+ }
2355
+ });
2356
+ });
2357
+ },
2358
+ /**
2359
+ *
2360
+ * @summary Get the Organization security users list
2361
+ * @param {string} organizationId The Organization identifier
2362
+ * @param {*} [options] Override http request option.
2363
+ * @throws {RequiredError}
2364
+ */
2365
+ getOrganizationSecurityUsers: function (organizationId, options) {
2366
+ return __awaiter(this, void 0, void 0, function () {
2367
+ var localVarAxiosArgs;
2368
+ return __generator(this, function (_a) {
2369
+ switch (_a.label) {
2370
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationSecurityUsers(organizationId, options)];
2371
+ case 1:
2372
+ localVarAxiosArgs = _a.sent();
2373
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2374
+ }
2375
+ });
2376
+ });
2377
+ },
2378
+ /**
2379
+ *
2380
+ * @summary Register a new organization
2381
+ * @param {Organization} organization the Organization to register
2382
+ * @param {*} [options] Override http request option.
2383
+ * @throws {RequiredError}
2384
+ */
2385
+ registerOrganization: function (organization, options) {
2386
+ return __awaiter(this, void 0, void 0, function () {
2387
+ var localVarAxiosArgs;
2388
+ return __generator(this, function (_a) {
2389
+ switch (_a.label) {
2390
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerOrganization(organization, options)];
2391
+ case 1:
2392
+ localVarAxiosArgs = _a.sent();
2393
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2394
+ }
2395
+ });
2396
+ });
2397
+ },
2398
+ /**
2399
+ *
2400
+ * @summary Remove the specified access from the given Organization
2401
+ * @param {string} organizationId the Organization identifier
2402
+ * @param {string} identityId the User identifier
2403
+ * @param {*} [options] Override http request option.
2404
+ * @throws {RequiredError}
2405
+ */
2406
+ removeOrganizationAccessControl: function (organizationId, identityId, options) {
2407
+ return __awaiter(this, void 0, void 0, function () {
2408
+ var localVarAxiosArgs;
2409
+ return __generator(this, function (_a) {
2410
+ switch (_a.label) {
2411
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeOrganizationAccessControl(organizationId, identityId, options)];
2412
+ case 1:
2413
+ localVarAxiosArgs = _a.sent();
2414
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2415
+ }
2416
+ });
2417
+ });
2418
+ },
2419
+ /**
2420
+ *
2421
+ * @summary Set the Organization default security
2422
+ * @param {string} organizationId the Organization identifier
2423
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2424
+ * @param {*} [options] Override http request option.
2425
+ * @throws {RequiredError}
2426
+ */
2427
+ setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
2428
+ return __awaiter(this, void 0, void 0, function () {
2429
+ var localVarAxiosArgs;
2430
+ return __generator(this, function (_a) {
2431
+ switch (_a.label) {
2432
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options)];
2433
+ case 1:
2434
+ localVarAxiosArgs = _a.sent();
2435
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2436
+ }
2437
+ });
2438
+ });
2439
+ },
2440
+ /**
2441
+ *
2442
+ * @summary Unregister an organization
2443
+ * @param {string} organizationId the Organization identifier
2444
+ * @param {*} [options] Override http request option.
2445
+ * @throws {RequiredError}
2446
+ */
2447
+ unregisterOrganization: function (organizationId, options) {
2448
+ return __awaiter(this, void 0, void 0, function () {
2449
+ var localVarAxiosArgs;
2450
+ return __generator(this, function (_a) {
2451
+ switch (_a.label) {
2452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unregisterOrganization(organizationId, options)];
2090
2453
  case 1:
2091
2454
  localVarAxiosArgs = _a.sent();
2092
2455
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2115,6 +2478,28 @@ exports.OrganizationApiFp = function (configuration) {
2115
2478
  });
2116
2479
  });
2117
2480
  },
2481
+ /**
2482
+ *
2483
+ * @summary Update the specified access to User for an Organization
2484
+ * @param {string} organizationId the Organization identifier
2485
+ * @param {string} identityId the User identifier
2486
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
2487
+ * @param {*} [options] Override http request option.
2488
+ * @throws {RequiredError}
2489
+ */
2490
+ updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
2491
+ return __awaiter(this, void 0, void 0, function () {
2492
+ var localVarAxiosArgs;
2493
+ return __generator(this, function (_a) {
2494
+ switch (_a.label) {
2495
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options)];
2496
+ case 1:
2497
+ localVarAxiosArgs = _a.sent();
2498
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2499
+ }
2500
+ });
2501
+ });
2502
+ },
2118
2503
  /**
2119
2504
  *
2120
2505
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2189,14 +2574,14 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2189
2574
  return {
2190
2575
  /**
2191
2576
  *
2192
- * @summary Add (or replace) users in the Organization specified
2577
+ * @summary Add a control access to the Organization
2193
2578
  * @param {string} organizationId the Organization identifier
2194
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2579
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2195
2580
  * @param {*} [options] Override http request option.
2196
2581
  * @throws {RequiredError}
2197
2582
  */
2198
- addOrReplaceUsersInOrganization: function (organizationId, organizationUser, options) {
2199
- return localVarFp.addOrReplaceUsersInOrganization(organizationId, organizationUser, options).then(function (request) { return request(axios, basePath); });
2583
+ addOrganizationAccessControl: function (organizationId, organizationAccessControl, options) {
2584
+ return localVarFp.addOrganizationAccessControl(organizationId, organizationAccessControl, options).then(function (request) { return request(axios, basePath); });
2200
2585
  },
2201
2586
  /**
2202
2587
  *
@@ -2217,6 +2602,57 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2217
2602
  findOrganizationById: function (organizationId, options) {
2218
2603
  return localVarFp.findOrganizationById(organizationId, options).then(function (request) { return request(axios, basePath); });
2219
2604
  },
2605
+ /**
2606
+ *
2607
+ * @summary Get all permissions per components
2608
+ * @param {*} [options] Override http request option.
2609
+ * @throws {RequiredError}
2610
+ */
2611
+ getAllPermissions: function (options) {
2612
+ return localVarFp.getAllPermissions(options).then(function (request) { return request(axios, basePath); });
2613
+ },
2614
+ /**
2615
+ *
2616
+ * @summary Get a control access for the Organization
2617
+ * @param {string} organizationId the Organization identifier
2618
+ * @param {string} identityId the User identifier
2619
+ * @param {*} [options] Override http request option.
2620
+ * @throws {RequiredError}
2621
+ */
2622
+ getOrganizationAccessControl: function (organizationId, identityId, options) {
2623
+ return localVarFp.getOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(axios, basePath); });
2624
+ },
2625
+ /**
2626
+ *
2627
+ * @summary Get the Organization permissions by given role
2628
+ * @param {string} organizationId the Organization identifier
2629
+ * @param {string} role the Role
2630
+ * @param {*} [options] Override http request option.
2631
+ * @throws {RequiredError}
2632
+ */
2633
+ getOrganizationPermissions: function (organizationId, role, options) {
2634
+ return localVarFp.getOrganizationPermissions(organizationId, role, options).then(function (request) { return request(axios, basePath); });
2635
+ },
2636
+ /**
2637
+ *
2638
+ * @summary Get the Organization security information
2639
+ * @param {string} organizationId the Organization identifier
2640
+ * @param {*} [options] Override http request option.
2641
+ * @throws {RequiredError}
2642
+ */
2643
+ getOrganizationSecurity: function (organizationId, options) {
2644
+ return localVarFp.getOrganizationSecurity(organizationId, options).then(function (request) { return request(axios, basePath); });
2645
+ },
2646
+ /**
2647
+ *
2648
+ * @summary Get the Organization security users list
2649
+ * @param {string} organizationId The Organization identifier
2650
+ * @param {*} [options] Override http request option.
2651
+ * @throws {RequiredError}
2652
+ */
2653
+ getOrganizationSecurityUsers: function (organizationId, options) {
2654
+ return localVarFp.getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(axios, basePath); });
2655
+ },
2220
2656
  /**
2221
2657
  *
2222
2658
  * @summary Register a new organization
@@ -2229,24 +2665,25 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2229
2665
  },
2230
2666
  /**
2231
2667
  *
2232
- * @summary Remove all users from the Organization specified
2668
+ * @summary Remove the specified access from the given Organization
2233
2669
  * @param {string} organizationId the Organization identifier
2670
+ * @param {string} identityId the User identifier
2234
2671
  * @param {*} [options] Override http request option.
2235
2672
  * @throws {RequiredError}
2236
2673
  */
2237
- removeAllUsersInOrganization: function (organizationId, options) {
2238
- return localVarFp.removeAllUsersInOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
2674
+ removeOrganizationAccessControl: function (organizationId, identityId, options) {
2675
+ return localVarFp.removeOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(axios, basePath); });
2239
2676
  },
2240
2677
  /**
2241
2678
  *
2242
- * @summary Remove the specified user from the given Organization
2679
+ * @summary Set the Organization default security
2243
2680
  * @param {string} organizationId the Organization identifier
2244
- * @param {string} userId the User identifier
2681
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2245
2682
  * @param {*} [options] Override http request option.
2246
2683
  * @throws {RequiredError}
2247
2684
  */
2248
- removeUserFromOrganization: function (organizationId, userId, options) {
2249
- return localVarFp.removeUserFromOrganization(organizationId, userId, options).then(function (request) { return request(axios, basePath); });
2685
+ setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
2686
+ return localVarFp.setOrganizationDefaultSecurity(organizationId, organizationRole, options).then(function (request) { return request(axios, basePath); });
2250
2687
  },
2251
2688
  /**
2252
2689
  *
@@ -2269,6 +2706,18 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2269
2706
  updateOrganization: function (organizationId, organization, options) {
2270
2707
  return localVarFp.updateOrganization(organizationId, organization, options).then(function (request) { return request(axios, basePath); });
2271
2708
  },
2709
+ /**
2710
+ *
2711
+ * @summary Update the specified access to User for an Organization
2712
+ * @param {string} organizationId the Organization identifier
2713
+ * @param {string} identityId the User identifier
2714
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ updateOrganizationAccessControl: function (organizationId, identityId, organizationRole, options) {
2719
+ return localVarFp.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then(function (request) { return request(axios, basePath); });
2720
+ },
2272
2721
  /**
2273
2722
  *
2274
2723
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2317,16 +2766,16 @@ var OrganizationApi = /** @class */ (function (_super) {
2317
2766
  }
2318
2767
  /**
2319
2768
  *
2320
- * @summary Add (or replace) users in the Organization specified
2769
+ * @summary Add a control access to the Organization
2321
2770
  * @param {string} organizationId the Organization identifier
2322
- * @param {Array<OrganizationUser>} organizationUser the Users to add. Any User with the same ID is overwritten
2771
+ * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2323
2772
  * @param {*} [options] Override http request option.
2324
2773
  * @throws {RequiredError}
2325
2774
  * @memberof OrganizationApi
2326
2775
  */
2327
- OrganizationApi.prototype.addOrReplaceUsersInOrganization = function (organizationId, organizationUser, options) {
2776
+ OrganizationApi.prototype.addOrganizationAccessControl = function (organizationId, organizationAccessControl, options) {
2328
2777
  var _this = this;
2329
- return exports.OrganizationApiFp(this.configuration).addOrReplaceUsersInOrganization(organizationId, organizationUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
2778
+ return exports.OrganizationApiFp(this.configuration).addOrganizationAccessControl(organizationId, organizationAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
2330
2779
  };
2331
2780
  /**
2332
2781
  *
@@ -2351,6 +2800,67 @@ var OrganizationApi = /** @class */ (function (_super) {
2351
2800
  var _this = this;
2352
2801
  return exports.OrganizationApiFp(this.configuration).findOrganizationById(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2353
2802
  };
2803
+ /**
2804
+ *
2805
+ * @summary Get all permissions per components
2806
+ * @param {*} [options] Override http request option.
2807
+ * @throws {RequiredError}
2808
+ * @memberof OrganizationApi
2809
+ */
2810
+ OrganizationApi.prototype.getAllPermissions = function (options) {
2811
+ var _this = this;
2812
+ return exports.OrganizationApiFp(this.configuration).getAllPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
2813
+ };
2814
+ /**
2815
+ *
2816
+ * @summary Get a control access for the Organization
2817
+ * @param {string} organizationId the Organization identifier
2818
+ * @param {string} identityId the User identifier
2819
+ * @param {*} [options] Override http request option.
2820
+ * @throws {RequiredError}
2821
+ * @memberof OrganizationApi
2822
+ */
2823
+ OrganizationApi.prototype.getOrganizationAccessControl = function (organizationId, identityId, options) {
2824
+ var _this = this;
2825
+ return exports.OrganizationApiFp(this.configuration).getOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2826
+ };
2827
+ /**
2828
+ *
2829
+ * @summary Get the Organization permissions by given role
2830
+ * @param {string} organizationId the Organization identifier
2831
+ * @param {string} role the Role
2832
+ * @param {*} [options] Override http request option.
2833
+ * @throws {RequiredError}
2834
+ * @memberof OrganizationApi
2835
+ */
2836
+ OrganizationApi.prototype.getOrganizationPermissions = function (organizationId, role, options) {
2837
+ var _this = this;
2838
+ return exports.OrganizationApiFp(this.configuration).getOrganizationPermissions(organizationId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
2839
+ };
2840
+ /**
2841
+ *
2842
+ * @summary Get the Organization security information
2843
+ * @param {string} organizationId the Organization identifier
2844
+ * @param {*} [options] Override http request option.
2845
+ * @throws {RequiredError}
2846
+ * @memberof OrganizationApi
2847
+ */
2848
+ OrganizationApi.prototype.getOrganizationSecurity = function (organizationId, options) {
2849
+ var _this = this;
2850
+ return exports.OrganizationApiFp(this.configuration).getOrganizationSecurity(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2851
+ };
2852
+ /**
2853
+ *
2854
+ * @summary Get the Organization security users list
2855
+ * @param {string} organizationId The Organization identifier
2856
+ * @param {*} [options] Override http request option.
2857
+ * @throws {RequiredError}
2858
+ * @memberof OrganizationApi
2859
+ */
2860
+ OrganizationApi.prototype.getOrganizationSecurityUsers = function (organizationId, options) {
2861
+ var _this = this;
2862
+ return exports.OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2863
+ };
2354
2864
  /**
2355
2865
  *
2356
2866
  * @summary Register a new organization
@@ -2365,28 +2875,29 @@ var OrganizationApi = /** @class */ (function (_super) {
2365
2875
  };
2366
2876
  /**
2367
2877
  *
2368
- * @summary Remove all users from the Organization specified
2878
+ * @summary Remove the specified access from the given Organization
2369
2879
  * @param {string} organizationId the Organization identifier
2880
+ * @param {string} identityId the User identifier
2370
2881
  * @param {*} [options] Override http request option.
2371
2882
  * @throws {RequiredError}
2372
2883
  * @memberof OrganizationApi
2373
2884
  */
2374
- OrganizationApi.prototype.removeAllUsersInOrganization = function (organizationId, options) {
2885
+ OrganizationApi.prototype.removeOrganizationAccessControl = function (organizationId, identityId, options) {
2375
2886
  var _this = this;
2376
- return exports.OrganizationApiFp(this.configuration).removeAllUsersInOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2887
+ return exports.OrganizationApiFp(this.configuration).removeOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2377
2888
  };
2378
2889
  /**
2379
2890
  *
2380
- * @summary Remove the specified user from the given Organization
2891
+ * @summary Set the Organization default security
2381
2892
  * @param {string} organizationId the Organization identifier
2382
- * @param {string} userId the User identifier
2893
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2383
2894
  * @param {*} [options] Override http request option.
2384
2895
  * @throws {RequiredError}
2385
2896
  * @memberof OrganizationApi
2386
2897
  */
2387
- OrganizationApi.prototype.removeUserFromOrganization = function (organizationId, userId, options) {
2898
+ OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, organizationRole, options) {
2388
2899
  var _this = this;
2389
- return exports.OrganizationApiFp(this.configuration).removeUserFromOrganization(organizationId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2900
+ return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
2390
2901
  };
2391
2902
  /**
2392
2903
  *
@@ -2413,6 +2924,20 @@ var OrganizationApi = /** @class */ (function (_super) {
2413
2924
  var _this = this;
2414
2925
  return exports.OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2415
2926
  };
2927
+ /**
2928
+ *
2929
+ * @summary Update the specified access to User for an Organization
2930
+ * @param {string} organizationId the Organization identifier
2931
+ * @param {string} identityId the User identifier
2932
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ * @memberof OrganizationApi
2936
+ */
2937
+ OrganizationApi.prototype.updateOrganizationAccessControl = function (organizationId, identityId, organizationRole, options) {
2938
+ var _this = this;
2939
+ return exports.OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
2940
+ };
2416
2941
  /**
2417
2942
  *
2418
2943
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2520,15 +3045,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2520
3045
  },
2521
3046
  /**
2522
3047
  *
2523
- * @summary Add (or replace) users in the Scenario specified
3048
+ * @summary Add a control access to the Scenario
2524
3049
  * @param {string} organizationId the Organization identifier
2525
3050
  * @param {string} workspaceId the Workspace identifier
2526
3051
  * @param {string} scenarioId the Scenario identifier
2527
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
3052
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
2528
3053
  * @param {*} [options] Override http request option.
2529
3054
  * @throws {RequiredError}
2530
3055
  */
2531
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
3056
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
2532
3057
  if (options === void 0) { options = {}; }
2533
3058
  return __awaiter(_this, void 0, void 0, function () {
2534
3059
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2536,14 +3061,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2536
3061
  switch (_a.label) {
2537
3062
  case 0:
2538
3063
  // verify required parameter 'organizationId' is not null or undefined
2539
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'organizationId', organizationId);
3064
+ common_1.assertParamExists('addScenarioAccessControl', 'organizationId', organizationId);
2540
3065
  // verify required parameter 'workspaceId' is not null or undefined
2541
- common_1.assertParamExists('addOrReplaceUsersInScenario', 'workspaceId', workspaceId);
3066
+ common_1.assertParamExists('addScenarioAccessControl', 'workspaceId', workspaceId);
2542
3067
  // 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"
3068
+ common_1.assertParamExists('addScenarioAccessControl', 'scenarioId', scenarioId);
3069
+ // verify required parameter 'scenarioAccessControl' is not null or undefined
3070
+ common_1.assertParamExists('addScenarioAccessControl', 'scenarioAccessControl', scenarioAccessControl);
3071
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access"
2547
3072
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
2548
3073
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
2549
3074
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
@@ -2565,7 +3090,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2565
3090
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2566
3091
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2567
3092
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2568
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioUser, localVarRequestOptions, configuration);
3093
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioAccessControl, localVarRequestOptions, configuration);
2569
3094
  return [2 /*return*/, {
2570
3095
  url: common_1.toPathString(localVarUrlObj),
2571
3096
  options: localVarRequestOptions,
@@ -2985,15 +3510,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2985
3510
  },
2986
3511
  /**
2987
3512
  *
2988
- * @summary Get Scenario data download URL
3513
+ * @summary Get a control access for the Scenario
2989
3514
  * @param {string} organizationId the Organization identifier
2990
3515
  * @param {string} workspaceId the Workspace identifier
2991
3516
  * @param {string} scenarioId the Scenario identifier
2992
- * @param {string} downloadId the Scenario Download identifier
3517
+ * @param {string} identityId the User identifier
2993
3518
  * @param {*} [options] Override http request option.
2994
3519
  * @throws {RequiredError}
2995
3520
  */
2996
- getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
3521
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
2997
3522
  if (options === void 0) { options = {}; }
2998
3523
  return __awaiter(_this, void 0, void 0, function () {
2999
3524
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3001,18 +3526,18 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3001
3526
  switch (_a.label) {
3002
3527
  case 0:
3003
3528
  // verify required parameter 'organizationId' is not null or undefined
3004
- common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'organizationId', organizationId);
3529
+ common_1.assertParamExists('getScenarioAccessControl', 'organizationId', organizationId);
3005
3530
  // verify required parameter 'workspaceId' is not null or undefined
3006
- common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'workspaceId', workspaceId);
3531
+ common_1.assertParamExists('getScenarioAccessControl', 'workspaceId', workspaceId);
3007
3532
  // verify required parameter 'scenarioId' is not null or undefined
3008
- common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'scenarioId', scenarioId);
3009
- // verify required parameter 'downloadId' is not null or undefined
3010
- common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'downloadId', downloadId);
3011
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads/{download_id}"
3533
+ common_1.assertParamExists('getScenarioAccessControl', 'scenarioId', scenarioId);
3534
+ // verify required parameter 'identityId' is not null or undefined
3535
+ common_1.assertParamExists('getScenarioAccessControl', 'identityId', identityId);
3536
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
3012
3537
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3013
3538
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3014
3539
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3015
- .replace("{" + "download_id" + "}", encodeURIComponent(String(downloadId)));
3540
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
3016
3541
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3017
3542
  if (configuration) {
3018
3543
  baseOptions = configuration.baseOptions;
@@ -3040,14 +3565,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3040
3565
  },
3041
3566
  /**
3042
3567
  *
3043
- * @summary Get the validation status of an scenario
3568
+ * @summary Get Scenario data download URL
3044
3569
  * @param {string} organizationId the Organization identifier
3045
3570
  * @param {string} workspaceId the Workspace identifier
3046
3571
  * @param {string} scenarioId the Scenario identifier
3572
+ * @param {string} downloadId the Scenario Download identifier
3047
3573
  * @param {*} [options] Override http request option.
3048
3574
  * @throws {RequiredError}
3049
3575
  */
3050
- getScenarioValidationStatusById: function (organizationId, workspaceId, scenarioId, options) {
3576
+ getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
3051
3577
  if (options === void 0) { options = {}; }
3052
3578
  return __awaiter(_this, void 0, void 0, function () {
3053
3579
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3055,15 +3581,18 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3055
3581
  switch (_a.label) {
3056
3582
  case 0:
3057
3583
  // verify required parameter 'organizationId' is not null or undefined
3058
- common_1.assertParamExists('getScenarioValidationStatusById', 'organizationId', organizationId);
3584
+ common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'organizationId', organizationId);
3059
3585
  // verify required parameter 'workspaceId' is not null or undefined
3060
- common_1.assertParamExists('getScenarioValidationStatusById', 'workspaceId', workspaceId);
3586
+ common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'workspaceId', workspaceId);
3061
3587
  // verify required parameter 'scenarioId' is not null or undefined
3062
- common_1.assertParamExists('getScenarioValidationStatusById', 'scenarioId', scenarioId);
3063
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/ValidationStatus"
3588
+ common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'scenarioId', scenarioId);
3589
+ // verify required parameter 'downloadId' is not null or undefined
3590
+ common_1.assertParamExists('getScenarioDataDownloadJobInfo', 'downloadId', downloadId);
3591
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/downloads/{download_id}"
3064
3592
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3065
3593
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3066
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3594
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3595
+ .replace("{" + "download_id" + "}", encodeURIComponent(String(downloadId)));
3067
3596
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3068
3597
  if (configuration) {
3069
3598
  baseOptions = configuration.baseOptions;
@@ -3091,13 +3620,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3091
3620
  },
3092
3621
  /**
3093
3622
  *
3094
- * @summary Get the Scenarios Tree
3623
+ * @summary Get the Scenario permission by given role
3095
3624
  * @param {string} organizationId the Organization identifier
3096
3625
  * @param {string} workspaceId the Workspace identifier
3626
+ * @param {string} role the Role
3097
3627
  * @param {*} [options] Override http request option.
3098
3628
  * @throws {RequiredError}
3099
3629
  */
3100
- getScenariosTree: function (organizationId, workspaceId, options) {
3630
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
3101
3631
  if (options === void 0) { options = {}; }
3102
3632
  return __awaiter(_this, void 0, void 0, function () {
3103
3633
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3105,12 +3635,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3105
3635
  switch (_a.label) {
3106
3636
  case 0:
3107
3637
  // verify required parameter 'organizationId' is not null or undefined
3108
- common_1.assertParamExists('getScenariosTree', 'organizationId', organizationId);
3638
+ common_1.assertParamExists('getScenarioPermissions', 'organizationId', organizationId);
3109
3639
  // verify required parameter 'workspaceId' is not null or undefined
3110
- common_1.assertParamExists('getScenariosTree', 'workspaceId', workspaceId);
3111
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/tree"
3640
+ common_1.assertParamExists('getScenarioPermissions', 'workspaceId', workspaceId);
3641
+ // verify required parameter 'role' is not null or undefined
3642
+ common_1.assertParamExists('getScenarioPermissions', 'role', role);
3643
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/permissions/{role}"
3112
3644
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3113
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
3645
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3646
+ .replace("{" + "role" + "}", encodeURIComponent(String(role)));
3114
3647
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3115
3648
  if (configuration) {
3116
3649
  baseOptions = configuration.baseOptions;
@@ -3138,14 +3671,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3138
3671
  },
3139
3672
  /**
3140
3673
  *
3141
- * @summary Remove all Parameter Values from the Scenario specified
3674
+ * @summary Get the Scenario security information
3142
3675
  * @param {string} organizationId the Organization identifier
3143
3676
  * @param {string} workspaceId the Workspace identifier
3144
3677
  * @param {string} scenarioId the Scenario identifier
3145
3678
  * @param {*} [options] Override http request option.
3146
3679
  * @throws {RequiredError}
3147
3680
  */
3148
- removeAllScenarioParameterValues: function (organizationId, workspaceId, scenarioId, options) {
3681
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
3149
3682
  if (options === void 0) { options = {}; }
3150
3683
  return __awaiter(_this, void 0, void 0, function () {
3151
3684
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3153,12 +3686,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3153
3686
  switch (_a.label) {
3154
3687
  case 0:
3155
3688
  // verify required parameter 'organizationId' is not null or undefined
3156
- common_1.assertParamExists('removeAllScenarioParameterValues', 'organizationId', organizationId);
3689
+ common_1.assertParamExists('getScenarioSecurity', 'organizationId', organizationId);
3157
3690
  // verify required parameter 'workspaceId' is not null or undefined
3158
- common_1.assertParamExists('removeAllScenarioParameterValues', 'workspaceId', workspaceId);
3691
+ common_1.assertParamExists('getScenarioSecurity', 'workspaceId', workspaceId);
3159
3692
  // verify required parameter 'scenarioId' is not null or undefined
3160
- common_1.assertParamExists('removeAllScenarioParameterValues', 'scenarioId', scenarioId);
3161
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/parameterValues"
3693
+ common_1.assertParamExists('getScenarioSecurity', 'scenarioId', scenarioId);
3694
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security"
3162
3695
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3163
3696
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3164
3697
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
@@ -3166,7 +3699,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3166
3699
  if (configuration) {
3167
3700
  baseOptions = configuration.baseOptions;
3168
3701
  }
3169
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3702
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3170
3703
  localVarHeaderParameter = {};
3171
3704
  localVarQueryParameter = {};
3172
3705
  // authentication oAuth2AuthCode required
@@ -3189,14 +3722,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3189
3722
  },
3190
3723
  /**
3191
3724
  *
3192
- * @summary Remove all users from the Scenario specified
3725
+ * @summary Get the Scenario security users list
3193
3726
  * @param {string} organizationId the Organization identifier
3194
3727
  * @param {string} workspaceId the Workspace identifier
3195
3728
  * @param {string} scenarioId the Scenario identifier
3196
3729
  * @param {*} [options] Override http request option.
3197
3730
  * @throws {RequiredError}
3198
3731
  */
3199
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
3732
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
3200
3733
  if (options === void 0) { options = {}; }
3201
3734
  return __awaiter(_this, void 0, void 0, function () {
3202
3735
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3204,12 +3737,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3204
3737
  switch (_a.label) {
3205
3738
  case 0:
3206
3739
  // verify required parameter 'organizationId' is not null or undefined
3207
- common_1.assertParamExists('removeAllUsersOfScenario', 'organizationId', organizationId);
3740
+ common_1.assertParamExists('getScenarioSecurityUsers', 'organizationId', organizationId);
3208
3741
  // verify required parameter 'workspaceId' is not null or undefined
3209
- common_1.assertParamExists('removeAllUsersOfScenario', 'workspaceId', workspaceId);
3742
+ common_1.assertParamExists('getScenarioSecurityUsers', 'workspaceId', workspaceId);
3210
3743
  // 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"
3744
+ common_1.assertParamExists('getScenarioSecurityUsers', 'scenarioId', scenarioId);
3745
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/users"
3213
3746
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3214
3747
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3215
3748
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
@@ -3217,7 +3750,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3217
3750
  if (configuration) {
3218
3751
  baseOptions = configuration.baseOptions;
3219
3752
  }
3220
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3753
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3221
3754
  localVarHeaderParameter = {};
3222
3755
  localVarQueryParameter = {};
3223
3756
  // authentication oAuth2AuthCode required
@@ -3240,15 +3773,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3240
3773
  },
3241
3774
  /**
3242
3775
  *
3243
- * @summary Remove the specified user from the given Scenario
3776
+ * @summary Get the validation status of an scenario
3244
3777
  * @param {string} organizationId the Organization identifier
3245
3778
  * @param {string} workspaceId the Workspace identifier
3246
3779
  * @param {string} scenarioId the Scenario identifier
3247
- * @param {string} userId the User identifier
3248
3780
  * @param {*} [options] Override http request option.
3249
3781
  * @throws {RequiredError}
3250
3782
  */
3251
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
3783
+ getScenarioValidationStatusById: function (organizationId, workspaceId, scenarioId, options) {
3252
3784
  if (options === void 0) { options = {}; }
3253
3785
  return __awaiter(_this, void 0, void 0, function () {
3254
3786
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3256,18 +3788,168 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3256
3788
  switch (_a.label) {
3257
3789
  case 0:
3258
3790
  // verify required parameter 'organizationId' is not null or undefined
3259
- common_1.assertParamExists('removeUserFromScenario', 'organizationId', organizationId);
3791
+ common_1.assertParamExists('getScenarioValidationStatusById', 'organizationId', organizationId);
3260
3792
  // verify required parameter 'workspaceId' is not null or undefined
3261
- common_1.assertParamExists('removeUserFromScenario', 'workspaceId', workspaceId);
3793
+ common_1.assertParamExists('getScenarioValidationStatusById', 'workspaceId', workspaceId);
3262
3794
  // 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}"
3795
+ common_1.assertParamExists('getScenarioValidationStatusById', 'scenarioId', scenarioId);
3796
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/ValidationStatus"
3267
3797
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3268
3798
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3269
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3270
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
3799
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3800
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3801
+ if (configuration) {
3802
+ baseOptions = configuration.baseOptions;
3803
+ }
3804
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3805
+ localVarHeaderParameter = {};
3806
+ localVarQueryParameter = {};
3807
+ // authentication oAuth2AuthCode required
3808
+ // oauth required
3809
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3810
+ case 1:
3811
+ // authentication oAuth2AuthCode required
3812
+ // oauth required
3813
+ _a.sent();
3814
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3815
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3816
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3817
+ return [2 /*return*/, {
3818
+ url: common_1.toPathString(localVarUrlObj),
3819
+ options: localVarRequestOptions,
3820
+ }];
3821
+ }
3822
+ });
3823
+ });
3824
+ },
3825
+ /**
3826
+ *
3827
+ * @summary Get the Scenarios Tree
3828
+ * @param {string} organizationId the Organization identifier
3829
+ * @param {string} workspaceId the Workspace identifier
3830
+ * @param {*} [options] Override http request option.
3831
+ * @throws {RequiredError}
3832
+ */
3833
+ getScenariosTree: function (organizationId, workspaceId, options) {
3834
+ if (options === void 0) { options = {}; }
3835
+ return __awaiter(_this, void 0, void 0, function () {
3836
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3837
+ return __generator(this, function (_a) {
3838
+ switch (_a.label) {
3839
+ case 0:
3840
+ // verify required parameter 'organizationId' is not null or undefined
3841
+ common_1.assertParamExists('getScenariosTree', 'organizationId', organizationId);
3842
+ // verify required parameter 'workspaceId' is not null or undefined
3843
+ common_1.assertParamExists('getScenariosTree', 'workspaceId', workspaceId);
3844
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/tree"
3845
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3846
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
3847
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3848
+ if (configuration) {
3849
+ baseOptions = configuration.baseOptions;
3850
+ }
3851
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3852
+ localVarHeaderParameter = {};
3853
+ localVarQueryParameter = {};
3854
+ // authentication oAuth2AuthCode required
3855
+ // oauth required
3856
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3857
+ case 1:
3858
+ // authentication oAuth2AuthCode required
3859
+ // oauth required
3860
+ _a.sent();
3861
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3862
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3863
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3864
+ return [2 /*return*/, {
3865
+ url: common_1.toPathString(localVarUrlObj),
3866
+ options: localVarRequestOptions,
3867
+ }];
3868
+ }
3869
+ });
3870
+ });
3871
+ },
3872
+ /**
3873
+ *
3874
+ * @summary Remove all Parameter Values from the Scenario specified
3875
+ * @param {string} organizationId the Organization identifier
3876
+ * @param {string} workspaceId the Workspace identifier
3877
+ * @param {string} scenarioId the Scenario identifier
3878
+ * @param {*} [options] Override http request option.
3879
+ * @throws {RequiredError}
3880
+ */
3881
+ removeAllScenarioParameterValues: function (organizationId, workspaceId, scenarioId, options) {
3882
+ if (options === void 0) { options = {}; }
3883
+ return __awaiter(_this, void 0, void 0, function () {
3884
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3885
+ return __generator(this, function (_a) {
3886
+ switch (_a.label) {
3887
+ case 0:
3888
+ // verify required parameter 'organizationId' is not null or undefined
3889
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'organizationId', organizationId);
3890
+ // verify required parameter 'workspaceId' is not null or undefined
3891
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'workspaceId', workspaceId);
3892
+ // verify required parameter 'scenarioId' is not null or undefined
3893
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'scenarioId', scenarioId);
3894
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/parameterValues"
3895
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3896
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3897
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
3898
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3899
+ if (configuration) {
3900
+ baseOptions = configuration.baseOptions;
3901
+ }
3902
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3903
+ localVarHeaderParameter = {};
3904
+ localVarQueryParameter = {};
3905
+ // authentication oAuth2AuthCode required
3906
+ // oauth required
3907
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
3908
+ case 1:
3909
+ // authentication oAuth2AuthCode required
3910
+ // oauth required
3911
+ _a.sent();
3912
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3913
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3914
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3915
+ return [2 /*return*/, {
3916
+ url: common_1.toPathString(localVarUrlObj),
3917
+ options: localVarRequestOptions,
3918
+ }];
3919
+ }
3920
+ });
3921
+ });
3922
+ },
3923
+ /**
3924
+ *
3925
+ * @summary Remove the specified access from the given Organization Scenario
3926
+ * @param {string} organizationId the Organization identifier
3927
+ * @param {string} workspaceId the Workspace identifier
3928
+ * @param {string} scenarioId the Scenario identifier
3929
+ * @param {string} identityId the User identifier
3930
+ * @param {*} [options] Override http request option.
3931
+ * @throws {RequiredError}
3932
+ */
3933
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3934
+ if (options === void 0) { options = {}; }
3935
+ return __awaiter(_this, void 0, void 0, function () {
3936
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3937
+ return __generator(this, function (_a) {
3938
+ switch (_a.label) {
3939
+ case 0:
3940
+ // verify required parameter 'organizationId' is not null or undefined
3941
+ common_1.assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId);
3942
+ // verify required parameter 'workspaceId' is not null or undefined
3943
+ common_1.assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId);
3944
+ // verify required parameter 'scenarioId' is not null or undefined
3945
+ common_1.assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId);
3946
+ // verify required parameter 'identityId' is not null or undefined
3947
+ common_1.assertParamExists('removeScenarioAccessControl', 'identityId', identityId);
3948
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
3949
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3950
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3951
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3952
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
3271
3953
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3272
3954
  if (configuration) {
3273
3955
  baseOptions = configuration.baseOptions;
@@ -3293,6 +3975,62 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3293
3975
  });
3294
3976
  });
3295
3977
  },
3978
+ /**
3979
+ *
3980
+ * @summary Set the Scenario default security
3981
+ * @param {string} organizationId the Organization identifier
3982
+ * @param {string} workspaceId the Workspace identifier
3983
+ * @param {string} scenarioId the Scenario identifier
3984
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
3985
+ * @param {*} [options] Override http request option.
3986
+ * @throws {RequiredError}
3987
+ */
3988
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
3989
+ if (options === void 0) { options = {}; }
3990
+ return __awaiter(_this, void 0, void 0, function () {
3991
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3992
+ return __generator(this, function (_a) {
3993
+ switch (_a.label) {
3994
+ case 0:
3995
+ // verify required parameter 'organizationId' is not null or undefined
3996
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId);
3997
+ // verify required parameter 'workspaceId' is not null or undefined
3998
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId);
3999
+ // verify required parameter 'scenarioId' is not null or undefined
4000
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId);
4001
+ // verify required parameter 'scenarioRole' is not null or undefined
4002
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole);
4003
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default"
4004
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
4005
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
4006
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
4007
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4008
+ if (configuration) {
4009
+ baseOptions = configuration.baseOptions;
4010
+ }
4011
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
4012
+ localVarHeaderParameter = {};
4013
+ localVarQueryParameter = {};
4014
+ // authentication oAuth2AuthCode required
4015
+ // oauth required
4016
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
4017
+ case 1:
4018
+ // authentication oAuth2AuthCode required
4019
+ // oauth required
4020
+ _a.sent();
4021
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4022
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4023
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4024
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4025
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration);
4026
+ return [2 /*return*/, {
4027
+ url: common_1.toPathString(localVarUrlObj),
4028
+ options: localVarRequestOptions,
4029
+ }];
4030
+ }
4031
+ });
4032
+ });
4033
+ },
3296
4034
  /**
3297
4035
  *
3298
4036
  * @summary Update a scenario
@@ -3349,6 +4087,66 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3349
4087
  });
3350
4088
  });
3351
4089
  },
4090
+ /**
4091
+ *
4092
+ * @summary Update the specified access to User for a Scenario
4093
+ * @param {string} organizationId the Organization identifier
4094
+ * @param {string} workspaceId the Workspace identifier
4095
+ * @param {string} scenarioId the Scenario identifier
4096
+ * @param {string} identityId the User identifier
4097
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
4098
+ * @param {*} [options] Override http request option.
4099
+ * @throws {RequiredError}
4100
+ */
4101
+ updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
4102
+ if (options === void 0) { options = {}; }
4103
+ return __awaiter(_this, void 0, void 0, function () {
4104
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4105
+ return __generator(this, function (_a) {
4106
+ switch (_a.label) {
4107
+ case 0:
4108
+ // verify required parameter 'organizationId' is not null or undefined
4109
+ common_1.assertParamExists('updateScenarioAccessControl', 'organizationId', organizationId);
4110
+ // verify required parameter 'workspaceId' is not null or undefined
4111
+ common_1.assertParamExists('updateScenarioAccessControl', 'workspaceId', workspaceId);
4112
+ // verify required parameter 'scenarioId' is not null or undefined
4113
+ common_1.assertParamExists('updateScenarioAccessControl', 'scenarioId', scenarioId);
4114
+ // verify required parameter 'identityId' is not null or undefined
4115
+ common_1.assertParamExists('updateScenarioAccessControl', 'identityId', identityId);
4116
+ // verify required parameter 'scenarioRole' is not null or undefined
4117
+ common_1.assertParamExists('updateScenarioAccessControl', 'scenarioRole', scenarioRole);
4118
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
4119
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
4120
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
4121
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
4122
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
4123
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4124
+ if (configuration) {
4125
+ baseOptions = configuration.baseOptions;
4126
+ }
4127
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
4128
+ localVarHeaderParameter = {};
4129
+ localVarQueryParameter = {};
4130
+ // authentication oAuth2AuthCode required
4131
+ // oauth required
4132
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
4133
+ case 1:
4134
+ // authentication oAuth2AuthCode required
4135
+ // oauth required
4136
+ _a.sent();
4137
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4138
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4139
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4140
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4141
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration);
4142
+ return [2 /*return*/, {
4143
+ url: common_1.toPathString(localVarUrlObj),
4144
+ options: localVarRequestOptions,
4145
+ }];
4146
+ }
4147
+ });
4148
+ });
4149
+ },
3352
4150
  };
3353
4151
  };
3354
4152
  /**
@@ -3383,20 +4181,20 @@ exports.ScenarioApiFp = function (configuration) {
3383
4181
  },
3384
4182
  /**
3385
4183
  *
3386
- * @summary Add (or replace) users in the Scenario specified
4184
+ * @summary Add a control access to the Scenario
3387
4185
  * @param {string} organizationId the Organization identifier
3388
4186
  * @param {string} workspaceId the Workspace identifier
3389
4187
  * @param {string} scenarioId the Scenario identifier
3390
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4188
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3391
4189
  * @param {*} [options] Override http request option.
3392
4190
  * @throws {RequiredError}
3393
4191
  */
3394
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
4192
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
3395
4193
  return __awaiter(this, void 0, void 0, function () {
3396
4194
  var localVarAxiosArgs;
3397
4195
  return __generator(this, function (_a) {
3398
4196
  switch (_a.label) {
3399
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options)];
4197
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options)];
3400
4198
  case 1:
3401
4199
  localVarAxiosArgs = _a.sent();
3402
4200
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3580,6 +4378,29 @@ exports.ScenarioApiFp = function (configuration) {
3580
4378
  });
3581
4379
  });
3582
4380
  },
4381
+ /**
4382
+ *
4383
+ * @summary Get a control access for the Scenario
4384
+ * @param {string} organizationId the Organization identifier
4385
+ * @param {string} workspaceId the Workspace identifier
4386
+ * @param {string} scenarioId the Scenario identifier
4387
+ * @param {string} identityId the User identifier
4388
+ * @param {*} [options] Override http request option.
4389
+ * @throws {RequiredError}
4390
+ */
4391
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4392
+ return __awaiter(this, void 0, void 0, function () {
4393
+ var localVarAxiosArgs;
4394
+ return __generator(this, function (_a) {
4395
+ switch (_a.label) {
4396
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options)];
4397
+ case 1:
4398
+ localVarAxiosArgs = _a.sent();
4399
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4400
+ }
4401
+ });
4402
+ });
4403
+ },
3583
4404
  /**
3584
4405
  *
3585
4406
  * @summary Get Scenario data download URL
@@ -3595,7 +4416,73 @@ exports.ScenarioApiFp = function (configuration) {
3595
4416
  var localVarAxiosArgs;
3596
4417
  return __generator(this, function (_a) {
3597
4418
  switch (_a.label) {
3598
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options)];
4419
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options)];
4420
+ case 1:
4421
+ localVarAxiosArgs = _a.sent();
4422
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4423
+ }
4424
+ });
4425
+ });
4426
+ },
4427
+ /**
4428
+ *
4429
+ * @summary Get the Scenario permission by given role
4430
+ * @param {string} organizationId the Organization identifier
4431
+ * @param {string} workspaceId the Workspace identifier
4432
+ * @param {string} role the Role
4433
+ * @param {*} [options] Override http request option.
4434
+ * @throws {RequiredError}
4435
+ */
4436
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
4437
+ return __awaiter(this, void 0, void 0, function () {
4438
+ var localVarAxiosArgs;
4439
+ return __generator(this, function (_a) {
4440
+ switch (_a.label) {
4441
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioPermissions(organizationId, workspaceId, role, options)];
4442
+ case 1:
4443
+ localVarAxiosArgs = _a.sent();
4444
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4445
+ }
4446
+ });
4447
+ });
4448
+ },
4449
+ /**
4450
+ *
4451
+ * @summary Get the Scenario security information
4452
+ * @param {string} organizationId the Organization identifier
4453
+ * @param {string} workspaceId the Workspace identifier
4454
+ * @param {string} scenarioId the Scenario identifier
4455
+ * @param {*} [options] Override http request option.
4456
+ * @throws {RequiredError}
4457
+ */
4458
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
4459
+ return __awaiter(this, void 0, void 0, function () {
4460
+ var localVarAxiosArgs;
4461
+ return __generator(this, function (_a) {
4462
+ switch (_a.label) {
4463
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioSecurity(organizationId, workspaceId, scenarioId, options)];
4464
+ case 1:
4465
+ localVarAxiosArgs = _a.sent();
4466
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4467
+ }
4468
+ });
4469
+ });
4470
+ },
4471
+ /**
4472
+ *
4473
+ * @summary Get the Scenario security users list
4474
+ * @param {string} organizationId the Organization identifier
4475
+ * @param {string} workspaceId the Workspace identifier
4476
+ * @param {string} scenarioId the Scenario identifier
4477
+ * @param {*} [options] Override http request option.
4478
+ * @throws {RequiredError}
4479
+ */
4480
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
4481
+ return __awaiter(this, void 0, void 0, function () {
4482
+ var localVarAxiosArgs;
4483
+ return __generator(this, function (_a) {
4484
+ switch (_a.label) {
4485
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options)];
3599
4486
  case 1:
3600
4487
  localVarAxiosArgs = _a.sent();
3601
4488
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3670,19 +4557,20 @@ exports.ScenarioApiFp = function (configuration) {
3670
4557
  },
3671
4558
  /**
3672
4559
  *
3673
- * @summary Remove all users from the Scenario specified
4560
+ * @summary Remove the specified access from the given Organization Scenario
3674
4561
  * @param {string} organizationId the Organization identifier
3675
4562
  * @param {string} workspaceId the Workspace identifier
3676
4563
  * @param {string} scenarioId the Scenario identifier
4564
+ * @param {string} identityId the User identifier
3677
4565
  * @param {*} [options] Override http request option.
3678
4566
  * @throws {RequiredError}
3679
4567
  */
3680
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
4568
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
3681
4569
  return __awaiter(this, void 0, void 0, function () {
3682
4570
  var localVarAxiosArgs;
3683
4571
  return __generator(this, function (_a) {
3684
4572
  switch (_a.label) {
3685
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options)];
4573
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options)];
3686
4574
  case 1:
3687
4575
  localVarAxiosArgs = _a.sent();
3688
4576
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3692,20 +4580,20 @@ exports.ScenarioApiFp = function (configuration) {
3692
4580
  },
3693
4581
  /**
3694
4582
  *
3695
- * @summary Remove the specified user from the given Scenario
4583
+ * @summary Set the Scenario default security
3696
4584
  * @param {string} organizationId the Organization identifier
3697
4585
  * @param {string} workspaceId the Workspace identifier
3698
4586
  * @param {string} scenarioId the Scenario identifier
3699
- * @param {string} userId the User identifier
4587
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
3700
4588
  * @param {*} [options] Override http request option.
3701
4589
  * @throws {RequiredError}
3702
4590
  */
3703
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
4591
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
3704
4592
  return __awaiter(this, void 0, void 0, function () {
3705
4593
  var localVarAxiosArgs;
3706
4594
  return __generator(this, function (_a) {
3707
4595
  switch (_a.label) {
3708
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options)];
4596
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options)];
3709
4597
  case 1:
3710
4598
  localVarAxiosArgs = _a.sent();
3711
4599
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3736,6 +4624,30 @@ exports.ScenarioApiFp = function (configuration) {
3736
4624
  });
3737
4625
  });
3738
4626
  },
4627
+ /**
4628
+ *
4629
+ * @summary Update the specified access to User for a Scenario
4630
+ * @param {string} organizationId the Organization identifier
4631
+ * @param {string} workspaceId the Workspace identifier
4632
+ * @param {string} scenarioId the Scenario identifier
4633
+ * @param {string} identityId the User identifier
4634
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
4635
+ * @param {*} [options] Override http request option.
4636
+ * @throws {RequiredError}
4637
+ */
4638
+ updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
4639
+ return __awaiter(this, void 0, void 0, function () {
4640
+ var localVarAxiosArgs;
4641
+ return __generator(this, function (_a) {
4642
+ switch (_a.label) {
4643
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options)];
4644
+ case 1:
4645
+ localVarAxiosArgs = _a.sent();
4646
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4647
+ }
4648
+ });
4649
+ });
4650
+ },
3739
4651
  };
3740
4652
  };
3741
4653
  /**
@@ -3760,16 +4672,16 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3760
4672
  },
3761
4673
  /**
3762
4674
  *
3763
- * @summary Add (or replace) users in the Scenario specified
4675
+ * @summary Add a control access to the Scenario
3764
4676
  * @param {string} organizationId the Organization identifier
3765
4677
  * @param {string} workspaceId the Workspace identifier
3766
4678
  * @param {string} scenarioId the Scenario identifier
3767
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4679
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3768
4680
  * @param {*} [options] Override http request option.
3769
4681
  * @throws {RequiredError}
3770
4682
  */
3771
- addOrReplaceUsersInScenario: function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
3772
- return localVarFp.addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options).then(function (request) { return request(axios, basePath); });
4683
+ addScenarioAccessControl: function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
4684
+ return localVarFp.addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then(function (request) { return request(axios, basePath); });
3773
4685
  },
3774
4686
  /**
3775
4687
  *
@@ -3867,6 +4779,19 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3867
4779
  findScenarioById: function (organizationId, workspaceId, scenarioId, options) {
3868
4780
  return localVarFp.findScenarioById(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
3869
4781
  },
4782
+ /**
4783
+ *
4784
+ * @summary Get a control access for the Scenario
4785
+ * @param {string} organizationId the Organization identifier
4786
+ * @param {string} workspaceId the Workspace identifier
4787
+ * @param {string} scenarioId the Scenario identifier
4788
+ * @param {string} identityId the User identifier
4789
+ * @param {*} [options] Override http request option.
4790
+ * @throws {RequiredError}
4791
+ */
4792
+ getScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4793
+ return localVarFp.getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(axios, basePath); });
4794
+ },
3870
4795
  /**
3871
4796
  *
3872
4797
  * @summary Get Scenario data download URL
@@ -3880,6 +4805,42 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3880
4805
  getScenarioDataDownloadJobInfo: function (organizationId, workspaceId, scenarioId, downloadId, options) {
3881
4806
  return localVarFp.getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then(function (request) { return request(axios, basePath); });
3882
4807
  },
4808
+ /**
4809
+ *
4810
+ * @summary Get the Scenario permission by given role
4811
+ * @param {string} organizationId the Organization identifier
4812
+ * @param {string} workspaceId the Workspace identifier
4813
+ * @param {string} role the Role
4814
+ * @param {*} [options] Override http request option.
4815
+ * @throws {RequiredError}
4816
+ */
4817
+ getScenarioPermissions: function (organizationId, workspaceId, role, options) {
4818
+ return localVarFp.getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(axios, basePath); });
4819
+ },
4820
+ /**
4821
+ *
4822
+ * @summary Get the Scenario security information
4823
+ * @param {string} organizationId the Organization identifier
4824
+ * @param {string} workspaceId the Workspace identifier
4825
+ * @param {string} scenarioId the Scenario identifier
4826
+ * @param {*} [options] Override http request option.
4827
+ * @throws {RequiredError}
4828
+ */
4829
+ getScenarioSecurity: function (organizationId, workspaceId, scenarioId, options) {
4830
+ return localVarFp.getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4831
+ },
4832
+ /**
4833
+ *
4834
+ * @summary Get the Scenario security users list
4835
+ * @param {string} organizationId the Organization identifier
4836
+ * @param {string} workspaceId the Workspace identifier
4837
+ * @param {string} scenarioId the Scenario identifier
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ */
4841
+ getScenarioSecurityUsers: function (organizationId, workspaceId, scenarioId, options) {
4842
+ return localVarFp.getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4843
+ },
3883
4844
  /**
3884
4845
  *
3885
4846
  * @summary Get the validation status of an scenario
@@ -3917,28 +4878,29 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3917
4878
  },
3918
4879
  /**
3919
4880
  *
3920
- * @summary Remove all users from the Scenario specified
4881
+ * @summary Remove the specified access from the given Organization Scenario
3921
4882
  * @param {string} organizationId the Organization identifier
3922
4883
  * @param {string} workspaceId the Workspace identifier
3923
4884
  * @param {string} scenarioId the Scenario identifier
4885
+ * @param {string} identityId the User identifier
3924
4886
  * @param {*} [options] Override http request option.
3925
4887
  * @throws {RequiredError}
3926
4888
  */
3927
- removeAllUsersOfScenario: function (organizationId, workspaceId, scenarioId, options) {
3928
- return localVarFp.removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
4889
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4890
+ return localVarFp.removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(axios, basePath); });
3929
4891
  },
3930
4892
  /**
3931
4893
  *
3932
- * @summary Remove the specified user from the given Scenario
4894
+ * @summary Set the Scenario default security
3933
4895
  * @param {string} organizationId the Organization identifier
3934
4896
  * @param {string} workspaceId the Workspace identifier
3935
4897
  * @param {string} scenarioId the Scenario identifier
3936
- * @param {string} userId the User identifier
4898
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
3937
4899
  * @param {*} [options] Override http request option.
3938
4900
  * @throws {RequiredError}
3939
4901
  */
3940
- removeUserFromScenario: function (organizationId, workspaceId, scenarioId, userId, options) {
3941
- return localVarFp.removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options).then(function (request) { return request(axios, basePath); });
4902
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
4903
+ return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then(function (request) { return request(axios, basePath); });
3942
4904
  },
3943
4905
  /**
3944
4906
  *
@@ -3953,6 +4915,20 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
3953
4915
  updateScenario: function (organizationId, workspaceId, scenarioId, scenario, options) {
3954
4916
  return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(axios, basePath); });
3955
4917
  },
4918
+ /**
4919
+ *
4920
+ * @summary Update the specified access to User for a Scenario
4921
+ * @param {string} organizationId the Organization identifier
4922
+ * @param {string} workspaceId the Workspace identifier
4923
+ * @param {string} scenarioId the Scenario identifier
4924
+ * @param {string} identityId the User identifier
4925
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
4926
+ * @param {*} [options] Override http request option.
4927
+ * @throws {RequiredError}
4928
+ */
4929
+ updateScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
4930
+ return localVarFp.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then(function (request) { return request(axios, basePath); });
4931
+ },
3956
4932
  };
3957
4933
  };
3958
4934
  /**
@@ -3983,18 +4959,18 @@ var ScenarioApi = /** @class */ (function (_super) {
3983
4959
  };
3984
4960
  /**
3985
4961
  *
3986
- * @summary Add (or replace) users in the Scenario specified
4962
+ * @summary Add a control access to the Scenario
3987
4963
  * @param {string} organizationId the Organization identifier
3988
4964
  * @param {string} workspaceId the Workspace identifier
3989
4965
  * @param {string} scenarioId the Scenario identifier
3990
- * @param {Array<ScenarioUser>} scenarioUser the Users to add. Any User with the same ID is overwritten
4966
+ * @param {ScenarioAccessControl} scenarioAccessControl the new Scenario security access to add.
3991
4967
  * @param {*} [options] Override http request option.
3992
4968
  * @throws {RequiredError}
3993
4969
  * @memberof ScenarioApi
3994
4970
  */
3995
- ScenarioApi.prototype.addOrReplaceUsersInScenario = function (organizationId, workspaceId, scenarioId, scenarioUser, options) {
4971
+ ScenarioApi.prototype.addScenarioAccessControl = function (organizationId, workspaceId, scenarioId, scenarioAccessControl, options) {
3996
4972
  var _this = this;
3997
- return exports.ScenarioApiFp(this.configuration).addOrReplaceUsersInScenario(organizationId, workspaceId, scenarioId, scenarioUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
4973
+ return exports.ScenarioApiFp(this.configuration).addScenarioAccessControl(organizationId, workspaceId, scenarioId, scenarioAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
3998
4974
  };
3999
4975
  /**
4000
4976
  *
@@ -4108,6 +5084,21 @@ var ScenarioApi = /** @class */ (function (_super) {
4108
5084
  var _this = this;
4109
5085
  return exports.ScenarioApiFp(this.configuration).findScenarioById(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4110
5086
  };
5087
+ /**
5088
+ *
5089
+ * @summary Get a control access for the Scenario
5090
+ * @param {string} organizationId the Organization identifier
5091
+ * @param {string} workspaceId the Workspace identifier
5092
+ * @param {string} scenarioId the Scenario identifier
5093
+ * @param {string} identityId the User identifier
5094
+ * @param {*} [options] Override http request option.
5095
+ * @throws {RequiredError}
5096
+ * @memberof ScenarioApi
5097
+ */
5098
+ ScenarioApi.prototype.getScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, options) {
5099
+ var _this = this;
5100
+ return exports.ScenarioApiFp(this.configuration).getScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5101
+ };
4111
5102
  /**
4112
5103
  *
4113
5104
  * @summary Get Scenario data download URL
@@ -4123,6 +5114,48 @@ var ScenarioApi = /** @class */ (function (_super) {
4123
5114
  var _this = this;
4124
5115
  return exports.ScenarioApiFp(this.configuration).getScenarioDataDownloadJobInfo(organizationId, workspaceId, scenarioId, downloadId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4125
5116
  };
5117
+ /**
5118
+ *
5119
+ * @summary Get the Scenario permission by given role
5120
+ * @param {string} organizationId the Organization identifier
5121
+ * @param {string} workspaceId the Workspace identifier
5122
+ * @param {string} role the Role
5123
+ * @param {*} [options] Override http request option.
5124
+ * @throws {RequiredError}
5125
+ * @memberof ScenarioApi
5126
+ */
5127
+ ScenarioApi.prototype.getScenarioPermissions = function (organizationId, workspaceId, role, options) {
5128
+ var _this = this;
5129
+ return exports.ScenarioApiFp(this.configuration).getScenarioPermissions(organizationId, workspaceId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
5130
+ };
5131
+ /**
5132
+ *
5133
+ * @summary Get the Scenario security information
5134
+ * @param {string} organizationId the Organization identifier
5135
+ * @param {string} workspaceId the Workspace identifier
5136
+ * @param {string} scenarioId the Scenario identifier
5137
+ * @param {*} [options] Override http request option.
5138
+ * @throws {RequiredError}
5139
+ * @memberof ScenarioApi
5140
+ */
5141
+ ScenarioApi.prototype.getScenarioSecurity = function (organizationId, workspaceId, scenarioId, options) {
5142
+ var _this = this;
5143
+ return exports.ScenarioApiFp(this.configuration).getScenarioSecurity(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5144
+ };
5145
+ /**
5146
+ *
5147
+ * @summary Get the Scenario security users list
5148
+ * @param {string} organizationId the Organization identifier
5149
+ * @param {string} workspaceId the Workspace identifier
5150
+ * @param {string} scenarioId the Scenario identifier
5151
+ * @param {*} [options] Override http request option.
5152
+ * @throws {RequiredError}
5153
+ * @memberof ScenarioApi
5154
+ */
5155
+ ScenarioApi.prototype.getScenarioSecurityUsers = function (organizationId, workspaceId, scenarioId, options) {
5156
+ var _this = this;
5157
+ return exports.ScenarioApiFp(this.configuration).getScenarioSecurityUsers(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5158
+ };
4126
5159
  /**
4127
5160
  *
4128
5161
  * @summary Get the validation status of an scenario
@@ -4166,32 +5199,33 @@ var ScenarioApi = /** @class */ (function (_super) {
4166
5199
  };
4167
5200
  /**
4168
5201
  *
4169
- * @summary Remove all users from the Scenario specified
5202
+ * @summary Remove the specified access from the given Organization Scenario
4170
5203
  * @param {string} organizationId the Organization identifier
4171
5204
  * @param {string} workspaceId the Workspace identifier
4172
5205
  * @param {string} scenarioId the Scenario identifier
5206
+ * @param {string} identityId the User identifier
4173
5207
  * @param {*} [options] Override http request option.
4174
5208
  * @throws {RequiredError}
4175
5209
  * @memberof ScenarioApi
4176
5210
  */
4177
- ScenarioApi.prototype.removeAllUsersOfScenario = function (organizationId, workspaceId, scenarioId, options) {
5211
+ ScenarioApi.prototype.removeScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, options) {
4178
5212
  var _this = this;
4179
- return exports.ScenarioApiFp(this.configuration).removeAllUsersOfScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5213
+ return exports.ScenarioApiFp(this.configuration).removeScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4180
5214
  };
4181
5215
  /**
4182
5216
  *
4183
- * @summary Remove the specified user from the given Scenario
5217
+ * @summary Set the Scenario default security
4184
5218
  * @param {string} organizationId the Organization identifier
4185
5219
  * @param {string} workspaceId the Workspace identifier
4186
5220
  * @param {string} scenarioId the Scenario identifier
4187
- * @param {string} userId the User identifier
5221
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
4188
5222
  * @param {*} [options] Override http request option.
4189
5223
  * @throws {RequiredError}
4190
5224
  * @memberof ScenarioApi
4191
5225
  */
4192
- ScenarioApi.prototype.removeUserFromScenario = function (organizationId, workspaceId, scenarioId, userId, options) {
5226
+ ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
4193
5227
  var _this = this;
4194
- return exports.ScenarioApiFp(this.configuration).removeUserFromScenario(organizationId, workspaceId, scenarioId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5228
+ return exports.ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
4195
5229
  };
4196
5230
  /**
4197
5231
  *
@@ -4208,6 +5242,22 @@ var ScenarioApi = /** @class */ (function (_super) {
4208
5242
  var _this = this;
4209
5243
  return exports.ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(_this.axios, _this.basePath); });
4210
5244
  };
5245
+ /**
5246
+ *
5247
+ * @summary Update the specified access to User for a Scenario
5248
+ * @param {string} organizationId the Organization identifier
5249
+ * @param {string} workspaceId the Workspace identifier
5250
+ * @param {string} scenarioId the Scenario identifier
5251
+ * @param {string} identityId the User identifier
5252
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
5253
+ * @param {*} [options] Override http request option.
5254
+ * @throws {RequiredError}
5255
+ * @memberof ScenarioApi
5256
+ */
5257
+ ScenarioApi.prototype.updateScenarioAccessControl = function (organizationId, workspaceId, scenarioId, identityId, scenarioRole, options) {
5258
+ var _this = this;
5259
+ return exports.ScenarioApiFp(this.configuration).updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
5260
+ };
4211
5261
  return ScenarioApi;
4212
5262
  }(base_1.BaseAPI));
4213
5263
  exports.ScenarioApi = ScenarioApi;
@@ -4218,6 +5268,100 @@ exports.ScenarioApi = ScenarioApi;
4218
5268
  exports.ScenariorunApiAxiosParamCreator = function (configuration) {
4219
5269
  var _this = this;
4220
5270
  return {
5271
+ /**
5272
+ *
5273
+ * @summary Delete all historical ScenarioRuns in the database
5274
+ * @param {string} organizationId the Organization identifier
5275
+ * @param {*} [options] Override http request option.
5276
+ * @throws {RequiredError}
5277
+ */
5278
+ deleteHistoricalDataOrganization: function (organizationId, options) {
5279
+ if (options === void 0) { options = {}; }
5280
+ return __awaiter(_this, void 0, void 0, function () {
5281
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5282
+ return __generator(this, function (_a) {
5283
+ switch (_a.label) {
5284
+ case 0:
5285
+ // verify required parameter 'organizationId' is not null or undefined
5286
+ common_1.assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId);
5287
+ localVarPath = "/organizations/{organization_id}/scenarioruns/deletehistoricaldata"
5288
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
5289
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5290
+ if (configuration) {
5291
+ baseOptions = configuration.baseOptions;
5292
+ }
5293
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
5294
+ localVarHeaderParameter = {};
5295
+ localVarQueryParameter = {};
5296
+ // authentication oAuth2AuthCode required
5297
+ // oauth required
5298
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
5299
+ case 1:
5300
+ // authentication oAuth2AuthCode required
5301
+ // oauth required
5302
+ _a.sent();
5303
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5304
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5305
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5306
+ return [2 /*return*/, {
5307
+ url: common_1.toPathString(localVarUrlObj),
5308
+ options: localVarRequestOptions,
5309
+ }];
5310
+ }
5311
+ });
5312
+ });
5313
+ },
5314
+ /**
5315
+ *
5316
+ * @summary Delete all historical ScenarioRuns for the Scenario
5317
+ * @param {string} organizationId the Organization identifier
5318
+ * @param {string} workspaceId the Workspace identifier
5319
+ * @param {string} scenarioId the Scenario identifier
5320
+ * @param {*} [options] Override http request option.
5321
+ * @throws {RequiredError}
5322
+ */
5323
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5324
+ if (options === void 0) { options = {}; }
5325
+ return __awaiter(_this, void 0, void 0, function () {
5326
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5327
+ return __generator(this, function (_a) {
5328
+ switch (_a.label) {
5329
+ case 0:
5330
+ // verify required parameter 'organizationId' is not null or undefined
5331
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'organizationId', organizationId);
5332
+ // verify required parameter 'workspaceId' is not null or undefined
5333
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'workspaceId', workspaceId);
5334
+ // verify required parameter 'scenarioId' is not null or undefined
5335
+ common_1.assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId);
5336
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns"
5337
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
5338
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
5339
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
5340
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5341
+ if (configuration) {
5342
+ baseOptions = configuration.baseOptions;
5343
+ }
5344
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
5345
+ localVarHeaderParameter = {};
5346
+ localVarQueryParameter = {};
5347
+ // authentication oAuth2AuthCode required
5348
+ // oauth required
5349
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
5350
+ case 1:
5351
+ // authentication oAuth2AuthCode required
5352
+ // oauth required
5353
+ _a.sent();
5354
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5355
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5356
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5357
+ return [2 /*return*/, {
5358
+ url: common_1.toPathString(localVarUrlObj),
5359
+ options: localVarRequestOptions,
5360
+ }];
5361
+ }
5362
+ });
5363
+ });
5364
+ },
4221
5365
  /**
4222
5366
  *
4223
5367
  * @summary Delete a scenariorun
@@ -4754,6 +5898,48 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
4754
5898
  exports.ScenariorunApiFp = function (configuration) {
4755
5899
  var localVarAxiosParamCreator = exports.ScenariorunApiAxiosParamCreator(configuration);
4756
5900
  return {
5901
+ /**
5902
+ *
5903
+ * @summary Delete all historical ScenarioRuns in the database
5904
+ * @param {string} organizationId the Organization identifier
5905
+ * @param {*} [options] Override http request option.
5906
+ * @throws {RequiredError}
5907
+ */
5908
+ deleteHistoricalDataOrganization: function (organizationId, options) {
5909
+ return __awaiter(this, void 0, void 0, function () {
5910
+ var localVarAxiosArgs;
5911
+ return __generator(this, function (_a) {
5912
+ switch (_a.label) {
5913
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options)];
5914
+ case 1:
5915
+ localVarAxiosArgs = _a.sent();
5916
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5917
+ }
5918
+ });
5919
+ });
5920
+ },
5921
+ /**
5922
+ *
5923
+ * @summary Delete all historical ScenarioRuns for the Scenario
5924
+ * @param {string} organizationId the Organization identifier
5925
+ * @param {string} workspaceId the Workspace identifier
5926
+ * @param {string} scenarioId the Scenario identifier
5927
+ * @param {*} [options] Override http request option.
5928
+ * @throws {RequiredError}
5929
+ */
5930
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
5931
+ return __awaiter(this, void 0, void 0, function () {
5932
+ var localVarAxiosArgs;
5933
+ return __generator(this, function (_a) {
5934
+ switch (_a.label) {
5935
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options)];
5936
+ case 1:
5937
+ localVarAxiosArgs = _a.sent();
5938
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5939
+ }
5940
+ });
5941
+ });
5942
+ },
4757
5943
  /**
4758
5944
  *
4759
5945
  * @summary Delete a scenariorun
@@ -4996,6 +6182,28 @@ exports.ScenariorunApiFp = function (configuration) {
4996
6182
  exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
4997
6183
  var localVarFp = exports.ScenariorunApiFp(configuration);
4998
6184
  return {
6185
+ /**
6186
+ *
6187
+ * @summary Delete all historical ScenarioRuns in the database
6188
+ * @param {string} organizationId the Organization identifier
6189
+ * @param {*} [options] Override http request option.
6190
+ * @throws {RequiredError}
6191
+ */
6192
+ deleteHistoricalDataOrganization: function (organizationId, options) {
6193
+ return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
6194
+ },
6195
+ /**
6196
+ *
6197
+ * @summary Delete all historical ScenarioRuns for the Scenario
6198
+ * @param {string} organizationId the Organization identifier
6199
+ * @param {string} workspaceId the Workspace identifier
6200
+ * @param {string} scenarioId the Scenario identifier
6201
+ * @param {*} [options] Override http request option.
6202
+ * @throws {RequiredError}
6203
+ */
6204
+ deleteHistoricalScenarioRunsByScenario: function (organizationId, workspaceId, scenarioId, options) {
6205
+ return localVarFp.deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
6206
+ },
4999
6207
  /**
5000
6208
  *
5001
6209
  * @summary Delete a scenariorun
@@ -5132,6 +6340,32 @@ var ScenariorunApi = /** @class */ (function (_super) {
5132
6340
  function ScenariorunApi() {
5133
6341
  return _super !== null && _super.apply(this, arguments) || this;
5134
6342
  }
6343
+ /**
6344
+ *
6345
+ * @summary Delete all historical ScenarioRuns in the database
6346
+ * @param {string} organizationId the Organization identifier
6347
+ * @param {*} [options] Override http request option.
6348
+ * @throws {RequiredError}
6349
+ * @memberof ScenariorunApi
6350
+ */
6351
+ ScenariorunApi.prototype.deleteHistoricalDataOrganization = function (organizationId, options) {
6352
+ var _this = this;
6353
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6354
+ };
6355
+ /**
6356
+ *
6357
+ * @summary Delete all historical ScenarioRuns for the Scenario
6358
+ * @param {string} organizationId the Organization identifier
6359
+ * @param {string} workspaceId the Workspace identifier
6360
+ * @param {string} scenarioId the Scenario identifier
6361
+ * @param {*} [options] Override http request option.
6362
+ * @throws {RequiredError}
6363
+ * @memberof ScenariorunApi
6364
+ */
6365
+ ScenariorunApi.prototype.deleteHistoricalScenarioRunsByScenario = function (organizationId, workspaceId, scenarioId, options) {
6366
+ var _this = this;
6367
+ return exports.ScenariorunApiFp(this.configuration).deleteHistoricalScenarioRunsByScenario(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
6368
+ };
5135
6369
  /**
5136
6370
  *
5137
6371
  * @summary Delete a scenariorun
@@ -8573,14 +9807,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8573
9807
  return {
8574
9808
  /**
8575
9809
  *
8576
- * @summary Add (or replace) users to the Workspace specified
9810
+ * @summary Add a control access to the Workspace
8577
9811
  * @param {string} organizationId the Organization identifier
8578
9812
  * @param {string} workspaceId the Workspace identifier
8579
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
9813
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
8580
9814
  * @param {*} [options] Override http request option.
8581
9815
  * @throws {RequiredError}
8582
9816
  */
8583
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
9817
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
8584
9818
  if (options === void 0) { options = {}; }
8585
9819
  return __awaiter(_this, void 0, void 0, function () {
8586
9820
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8588,12 +9822,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8588
9822
  switch (_a.label) {
8589
9823
  case 0:
8590
9824
  // verify required parameter 'organizationId' is not null or undefined
8591
- common_1.assertParamExists('addOrReplaceUsersInOrganizationWorkspace', 'organizationId', organizationId);
9825
+ common_1.assertParamExists('addWorkspaceAccessControl', 'organizationId', organizationId);
8592
9826
  // 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"
9827
+ common_1.assertParamExists('addWorkspaceAccessControl', 'workspaceId', workspaceId);
9828
+ // verify required parameter 'workspaceAccessControl' is not null or undefined
9829
+ common_1.assertParamExists('addWorkspaceAccessControl', 'workspaceAccessControl', workspaceAccessControl);
9830
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access"
8597
9831
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8598
9832
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8599
9833
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8614,7 +9848,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8614
9848
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8615
9849
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8616
9850
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8617
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceUser, localVarRequestOptions, configuration);
9851
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceAccessControl, localVarRequestOptions, configuration);
8618
9852
  return [2 /*return*/, {
8619
9853
  url: common_1.toPathString(localVarUrlObj),
8620
9854
  options: localVarRequestOptions,
@@ -8789,12 +10023,256 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8789
10023
  common_1.assertParamExists('deleteWorkspaceFile', 'fileName', fileName);
8790
10024
  localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/delete"
8791
10025
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8792
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10026
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10027
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10028
+ if (configuration) {
10029
+ baseOptions = configuration.baseOptions;
10030
+ }
10031
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10032
+ localVarHeaderParameter = {};
10033
+ localVarQueryParameter = {};
10034
+ // authentication oAuth2AuthCode required
10035
+ // oauth required
10036
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10037
+ case 1:
10038
+ // authentication oAuth2AuthCode required
10039
+ // oauth required
10040
+ _a.sent();
10041
+ if (fileName !== undefined) {
10042
+ localVarQueryParameter['file_name'] = fileName;
10043
+ }
10044
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10045
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10046
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10047
+ return [2 /*return*/, {
10048
+ url: common_1.toPathString(localVarUrlObj),
10049
+ options: localVarRequestOptions,
10050
+ }];
10051
+ }
10052
+ });
10053
+ });
10054
+ },
10055
+ /**
10056
+ *
10057
+ * @summary Download the Workspace File specified
10058
+ * @param {string} organizationId the Organization identifier
10059
+ * @param {string} workspaceId the Workspace identifier
10060
+ * @param {string} fileName the file name
10061
+ * @param {*} [options] Override http request option.
10062
+ * @throws {RequiredError}
10063
+ */
10064
+ downloadWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
10065
+ if (options === void 0) { options = {}; }
10066
+ return __awaiter(_this, void 0, void 0, function () {
10067
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10068
+ return __generator(this, function (_a) {
10069
+ switch (_a.label) {
10070
+ case 0:
10071
+ // verify required parameter 'organizationId' is not null or undefined
10072
+ common_1.assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId);
10073
+ // verify required parameter 'workspaceId' is not null or undefined
10074
+ common_1.assertParamExists('downloadWorkspaceFile', 'workspaceId', workspaceId);
10075
+ // verify required parameter 'fileName' is not null or undefined
10076
+ common_1.assertParamExists('downloadWorkspaceFile', 'fileName', fileName);
10077
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files/download"
10078
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10079
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10080
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10081
+ if (configuration) {
10082
+ baseOptions = configuration.baseOptions;
10083
+ }
10084
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10085
+ localVarHeaderParameter = {};
10086
+ localVarQueryParameter = {};
10087
+ // authentication oAuth2AuthCode required
10088
+ // oauth required
10089
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10090
+ case 1:
10091
+ // authentication oAuth2AuthCode required
10092
+ // oauth required
10093
+ _a.sent();
10094
+ if (fileName !== undefined) {
10095
+ localVarQueryParameter['file_name'] = fileName;
10096
+ }
10097
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10098
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10099
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10100
+ return [2 /*return*/, {
10101
+ url: common_1.toPathString(localVarUrlObj),
10102
+ options: localVarRequestOptions,
10103
+ }];
10104
+ }
10105
+ });
10106
+ });
10107
+ },
10108
+ /**
10109
+ *
10110
+ * @summary List all Workspace files
10111
+ * @param {string} organizationId the Organization identifier
10112
+ * @param {string} workspaceId the Workspace identifier
10113
+ * @param {*} [options] Override http request option.
10114
+ * @throws {RequiredError}
10115
+ */
10116
+ findAllWorkspaceFiles: function (organizationId, workspaceId, options) {
10117
+ if (options === void 0) { options = {}; }
10118
+ return __awaiter(_this, void 0, void 0, function () {
10119
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10120
+ return __generator(this, function (_a) {
10121
+ switch (_a.label) {
10122
+ case 0:
10123
+ // verify required parameter 'organizationId' is not null or undefined
10124
+ common_1.assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId);
10125
+ // verify required parameter 'workspaceId' is not null or undefined
10126
+ common_1.assertParamExists('findAllWorkspaceFiles', 'workspaceId', workspaceId);
10127
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/files"
10128
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10129
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10130
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10131
+ if (configuration) {
10132
+ baseOptions = configuration.baseOptions;
10133
+ }
10134
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10135
+ localVarHeaderParameter = {};
10136
+ localVarQueryParameter = {};
10137
+ // authentication oAuth2AuthCode required
10138
+ // oauth required
10139
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10140
+ case 1:
10141
+ // authentication oAuth2AuthCode required
10142
+ // oauth required
10143
+ _a.sent();
10144
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10145
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10146
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10147
+ return [2 /*return*/, {
10148
+ url: common_1.toPathString(localVarUrlObj),
10149
+ options: localVarRequestOptions,
10150
+ }];
10151
+ }
10152
+ });
10153
+ });
10154
+ },
10155
+ /**
10156
+ *
10157
+ * @summary List all Workspaces
10158
+ * @param {string} organizationId the Organization identifier
10159
+ * @param {*} [options] Override http request option.
10160
+ * @throws {RequiredError}
10161
+ */
10162
+ findAllWorkspaces: function (organizationId, options) {
10163
+ if (options === void 0) { options = {}; }
10164
+ return __awaiter(_this, void 0, void 0, function () {
10165
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10166
+ return __generator(this, function (_a) {
10167
+ switch (_a.label) {
10168
+ case 0:
10169
+ // verify required parameter 'organizationId' is not null or undefined
10170
+ common_1.assertParamExists('findAllWorkspaces', 'organizationId', organizationId);
10171
+ localVarPath = "/organizations/{organization_id}/workspaces"
10172
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
10173
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10174
+ if (configuration) {
10175
+ baseOptions = configuration.baseOptions;
10176
+ }
10177
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10178
+ localVarHeaderParameter = {};
10179
+ localVarQueryParameter = {};
10180
+ // authentication oAuth2AuthCode required
10181
+ // oauth required
10182
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10183
+ case 1:
10184
+ // authentication oAuth2AuthCode required
10185
+ // oauth required
10186
+ _a.sent();
10187
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10188
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10189
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10190
+ return [2 /*return*/, {
10191
+ url: common_1.toPathString(localVarUrlObj),
10192
+ options: localVarRequestOptions,
10193
+ }];
10194
+ }
10195
+ });
10196
+ });
10197
+ },
10198
+ /**
10199
+ *
10200
+ * @summary Get the details of an workspace
10201
+ * @param {string} organizationId the Organization identifier
10202
+ * @param {string} workspaceId the Workspace identifier
10203
+ * @param {*} [options] Override http request option.
10204
+ * @throws {RequiredError}
10205
+ */
10206
+ findWorkspaceById: function (organizationId, workspaceId, options) {
10207
+ if (options === void 0) { options = {}; }
10208
+ return __awaiter(_this, void 0, void 0, function () {
10209
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10210
+ return __generator(this, function (_a) {
10211
+ switch (_a.label) {
10212
+ case 0:
10213
+ // verify required parameter 'organizationId' is not null or undefined
10214
+ common_1.assertParamExists('findWorkspaceById', 'organizationId', organizationId);
10215
+ // verify required parameter 'workspaceId' is not null or undefined
10216
+ common_1.assertParamExists('findWorkspaceById', 'workspaceId', workspaceId);
10217
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
10218
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10219
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10220
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10221
+ if (configuration) {
10222
+ baseOptions = configuration.baseOptions;
10223
+ }
10224
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10225
+ localVarHeaderParameter = {};
10226
+ localVarQueryParameter = {};
10227
+ // authentication oAuth2AuthCode required
10228
+ // oauth required
10229
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10230
+ case 1:
10231
+ // authentication oAuth2AuthCode required
10232
+ // oauth required
10233
+ _a.sent();
10234
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10235
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10236
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10237
+ return [2 /*return*/, {
10238
+ url: common_1.toPathString(localVarUrlObj),
10239
+ options: localVarRequestOptions,
10240
+ }];
10241
+ }
10242
+ });
10243
+ });
10244
+ },
10245
+ /**
10246
+ *
10247
+ * @summary Get a control access for the Workspace
10248
+ * @param {string} organizationId the Organization identifier
10249
+ * @param {string} workspaceId the Workspace identifier
10250
+ * @param {string} identityId the User identifier
10251
+ * @param {*} [options] Override http request option.
10252
+ * @throws {RequiredError}
10253
+ */
10254
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
10255
+ if (options === void 0) { options = {}; }
10256
+ return __awaiter(_this, void 0, void 0, function () {
10257
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10258
+ return __generator(this, function (_a) {
10259
+ switch (_a.label) {
10260
+ case 0:
10261
+ // verify required parameter 'organizationId' is not null or undefined
10262
+ common_1.assertParamExists('getWorkspaceAccessControl', 'organizationId', organizationId);
10263
+ // verify required parameter 'workspaceId' is not null or undefined
10264
+ common_1.assertParamExists('getWorkspaceAccessControl', 'workspaceId', workspaceId);
10265
+ // verify required parameter 'identityId' is not null or undefined
10266
+ common_1.assertParamExists('getWorkspaceAccessControl', 'identityId', identityId);
10267
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
10268
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10269
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10270
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
8793
10271
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8794
10272
  if (configuration) {
8795
10273
  baseOptions = configuration.baseOptions;
8796
10274
  }
8797
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10275
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8798
10276
  localVarHeaderParameter = {};
8799
10277
  localVarQueryParameter = {};
8800
10278
  // authentication oAuth2AuthCode required
@@ -8804,9 +10282,6 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8804
10282
  // authentication oAuth2AuthCode required
8805
10283
  // oauth required
8806
10284
  _a.sent();
8807
- if (fileName !== undefined) {
8808
- localVarQueryParameter['file_name'] = fileName;
8809
- }
8810
10285
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8811
10286
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8812
10287
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8820,14 +10295,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8820
10295
  },
8821
10296
  /**
8822
10297
  *
8823
- * @summary Download the Workspace File specified
10298
+ * @summary Get the Workspace permission by given role
8824
10299
  * @param {string} organizationId the Organization identifier
8825
10300
  * @param {string} workspaceId the Workspace identifier
8826
- * @param {string} fileName the file name
10301
+ * @param {string} role the Role
8827
10302
  * @param {*} [options] Override http request option.
8828
10303
  * @throws {RequiredError}
8829
10304
  */
8830
- downloadWorkspaceFile: function (organizationId, workspaceId, fileName, options) {
10305
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
8831
10306
  if (options === void 0) { options = {}; }
8832
10307
  return __awaiter(_this, void 0, void 0, function () {
8833
10308
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8835,14 +10310,15 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8835
10310
  switch (_a.label) {
8836
10311
  case 0:
8837
10312
  // verify required parameter 'organizationId' is not null or undefined
8838
- common_1.assertParamExists('downloadWorkspaceFile', 'organizationId', organizationId);
10313
+ common_1.assertParamExists('getWorkspacePermissions', 'organizationId', organizationId);
8839
10314
  // 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"
10315
+ common_1.assertParamExists('getWorkspacePermissions', 'workspaceId', workspaceId);
10316
+ // verify required parameter 'role' is not null or undefined
10317
+ common_1.assertParamExists('getWorkspacePermissions', 'role', role);
10318
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role}"
8844
10319
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8845
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10320
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10321
+ .replace("{" + "role" + "}", encodeURIComponent(String(role)));
8846
10322
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8847
10323
  if (configuration) {
8848
10324
  baseOptions = configuration.baseOptions;
@@ -8857,9 +10333,6 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8857
10333
  // authentication oAuth2AuthCode required
8858
10334
  // oauth required
8859
10335
  _a.sent();
8860
- if (fileName !== undefined) {
8861
- localVarQueryParameter['file_name'] = fileName;
8862
- }
8863
10336
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8864
10337
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8865
10338
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8873,13 +10346,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8873
10346
  },
8874
10347
  /**
8875
10348
  *
8876
- * @summary List all Workspace files
10349
+ * @summary Get the Workspace security information
8877
10350
  * @param {string} organizationId the Organization identifier
8878
10351
  * @param {string} workspaceId the Workspace identifier
8879
10352
  * @param {*} [options] Override http request option.
8880
10353
  * @throws {RequiredError}
8881
10354
  */
8882
- findAllWorkspaceFiles: function (organizationId, workspaceId, options) {
10355
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
8883
10356
  if (options === void 0) { options = {}; }
8884
10357
  return __awaiter(_this, void 0, void 0, function () {
8885
10358
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8887,10 +10360,10 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8887
10360
  switch (_a.label) {
8888
10361
  case 0:
8889
10362
  // verify required parameter 'organizationId' is not null or undefined
8890
- common_1.assertParamExists('findAllWorkspaceFiles', 'organizationId', organizationId);
10363
+ common_1.assertParamExists('getWorkspaceSecurity', 'organizationId', organizationId);
8891
10364
  // 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"
10365
+ common_1.assertParamExists('getWorkspaceSecurity', 'workspaceId', workspaceId);
10366
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security"
8894
10367
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8895
10368
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8896
10369
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8920,12 +10393,13 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8920
10393
  },
8921
10394
  /**
8922
10395
  *
8923
- * @summary List all Workspaces
10396
+ * @summary Get the Workspace security users list
8924
10397
  * @param {string} organizationId the Organization identifier
10398
+ * @param {string} workspaceId the Workspace identifier
8925
10399
  * @param {*} [options] Override http request option.
8926
10400
  * @throws {RequiredError}
8927
10401
  */
8928
- findAllWorkspaces: function (organizationId, options) {
10402
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
8929
10403
  if (options === void 0) { options = {}; }
8930
10404
  return __awaiter(_this, void 0, void 0, function () {
8931
10405
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8933,9 +10407,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8933
10407
  switch (_a.label) {
8934
10408
  case 0:
8935
10409
  // 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)));
10410
+ common_1.assertParamExists('getWorkspaceSecurityUsers', 'organizationId', organizationId);
10411
+ // verify required parameter 'workspaceId' is not null or undefined
10412
+ common_1.assertParamExists('getWorkspaceSecurityUsers', 'workspaceId', workspaceId);
10413
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/users"
10414
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10415
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
8939
10416
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8940
10417
  if (configuration) {
8941
10418
  baseOptions = configuration.baseOptions;
@@ -8963,13 +10440,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8963
10440
  },
8964
10441
  /**
8965
10442
  *
8966
- * @summary Get the details of an workspace
10443
+ * @summary Remove the specified access from the given Organization Workspace
8967
10444
  * @param {string} organizationId the Organization identifier
8968
10445
  * @param {string} workspaceId the Workspace identifier
10446
+ * @param {string} identityId the User identifier
8969
10447
  * @param {*} [options] Override http request option.
8970
10448
  * @throws {RequiredError}
8971
10449
  */
8972
- findWorkspaceById: function (organizationId, workspaceId, options) {
10450
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
8973
10451
  if (options === void 0) { options = {}; }
8974
10452
  return __awaiter(_this, void 0, void 0, function () {
8975
10453
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8977,17 +10455,20 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
8977
10455
  switch (_a.label) {
8978
10456
  case 0:
8979
10457
  // verify required parameter 'organizationId' is not null or undefined
8980
- common_1.assertParamExists('findWorkspaceById', 'organizationId', organizationId);
10458
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'organizationId', organizationId);
8981
10459
  // verify required parameter 'workspaceId' is not null or undefined
8982
- common_1.assertParamExists('findWorkspaceById', 'workspaceId', workspaceId);
8983
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
10460
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'workspaceId', workspaceId);
10461
+ // verify required parameter 'identityId' is not null or undefined
10462
+ common_1.assertParamExists('removeWorkspaceAccessControl', 'identityId', identityId);
10463
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
8984
10464
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8985
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10465
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10466
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
8986
10467
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8987
10468
  if (configuration) {
8988
10469
  baseOptions = configuration.baseOptions;
8989
10470
  }
8990
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10471
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8991
10472
  localVarHeaderParameter = {};
8992
10473
  localVarQueryParameter = {};
8993
10474
  // authentication oAuth2AuthCode required
@@ -9010,13 +10491,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9010
10491
  },
9011
10492
  /**
9012
10493
  *
9013
- * @summary Remove all users from the Workspace specified
10494
+ * @summary Set the Workspace default security
9014
10495
  * @param {string} organizationId the Organization identifier
9015
10496
  * @param {string} workspaceId the Workspace identifier
10497
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
9016
10498
  * @param {*} [options] Override http request option.
9017
10499
  * @throws {RequiredError}
9018
10500
  */
9019
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
10501
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
9020
10502
  if (options === void 0) { options = {}; }
9021
10503
  return __awaiter(_this, void 0, void 0, function () {
9022
10504
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9024,17 +10506,19 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9024
10506
  switch (_a.label) {
9025
10507
  case 0:
9026
10508
  // verify required parameter 'organizationId' is not null or undefined
9027
- common_1.assertParamExists('removeAllUsersOfWorkspace', 'organizationId', organizationId);
10509
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId);
9028
10510
  // 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"
10511
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId);
10512
+ // verify required parameter 'workspaceRole' is not null or undefined
10513
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole);
10514
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/default"
9031
10515
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9032
10516
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9033
10517
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9034
10518
  if (configuration) {
9035
10519
  baseOptions = configuration.baseOptions;
9036
10520
  }
9037
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10521
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9038
10522
  localVarHeaderParameter = {};
9039
10523
  localVarQueryParameter = {};
9040
10524
  // authentication oAuth2AuthCode required
@@ -9044,9 +10528,11 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9044
10528
  // authentication oAuth2AuthCode required
9045
10529
  // oauth required
9046
10530
  _a.sent();
10531
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9047
10532
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9048
10533
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9049
10534
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10535
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
9050
10536
  return [2 /*return*/, {
9051
10537
  url: common_1.toPathString(localVarUrlObj),
9052
10538
  options: localVarRequestOptions,
@@ -9057,14 +10543,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9057
10543
  },
9058
10544
  /**
9059
10545
  *
9060
- * @summary Remove the specified user from the given Organization Workspace
10546
+ * @summary Update a workspace
9061
10547
  * @param {string} organizationId the Organization identifier
9062
10548
  * @param {string} workspaceId the Workspace identifier
9063
- * @param {string} userId the User identifier
10549
+ * @param {Workspace} workspace The new Workspace details.
9064
10550
  * @param {*} [options] Override http request option.
9065
10551
  * @throws {RequiredError}
9066
10552
  */
9067
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
10553
+ updateWorkspace: function (organizationId, workspaceId, workspace, options) {
9068
10554
  if (options === void 0) { options = {}; }
9069
10555
  return __awaiter(_this, void 0, void 0, function () {
9070
10556
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9072,20 +10558,19 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9072
10558
  switch (_a.label) {
9073
10559
  case 0:
9074
10560
  // verify required parameter 'organizationId' is not null or undefined
9075
- common_1.assertParamExists('removeUserFromOrganizationWorkspace', 'organizationId', organizationId);
10561
+ common_1.assertParamExists('updateWorkspace', 'organizationId', organizationId);
9076
10562
  // 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}"
10563
+ common_1.assertParamExists('updateWorkspace', 'workspaceId', workspaceId);
10564
+ // verify required parameter 'workspace' is not null or undefined
10565
+ common_1.assertParamExists('updateWorkspace', 'workspace', workspace);
10566
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
9081
10567
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9082
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
9083
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
10568
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9084
10569
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9085
10570
  if (configuration) {
9086
10571
  baseOptions = configuration.baseOptions;
9087
10572
  }
9088
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10573
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
9089
10574
  localVarHeaderParameter = {};
9090
10575
  localVarQueryParameter = {};
9091
10576
  // authentication oAuth2AuthCode required
@@ -9095,9 +10580,11 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9095
10580
  // authentication oAuth2AuthCode required
9096
10581
  // oauth required
9097
10582
  _a.sent();
10583
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9098
10584
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9099
10585
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9100
10586
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10587
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
9101
10588
  return [2 /*return*/, {
9102
10589
  url: common_1.toPathString(localVarUrlObj),
9103
10590
  options: localVarRequestOptions,
@@ -9108,14 +10595,15 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9108
10595
  },
9109
10596
  /**
9110
10597
  *
9111
- * @summary Update a workspace
10598
+ * @summary Update the specified access to User for a Workspace
9112
10599
  * @param {string} organizationId the Organization identifier
9113
10600
  * @param {string} workspaceId the Workspace identifier
9114
- * @param {Workspace} workspace the new Workspace details.
10601
+ * @param {string} identityId the User identifier
10602
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
9115
10603
  * @param {*} [options] Override http request option.
9116
10604
  * @throws {RequiredError}
9117
10605
  */
9118
- updateWorkspace: function (organizationId, workspaceId, workspace, options) {
10606
+ updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
9119
10607
  if (options === void 0) { options = {}; }
9120
10608
  return __awaiter(_this, void 0, void 0, function () {
9121
10609
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9123,14 +10611,17 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9123
10611
  switch (_a.label) {
9124
10612
  case 0:
9125
10613
  // verify required parameter 'organizationId' is not null or undefined
9126
- common_1.assertParamExists('updateWorkspace', 'organizationId', organizationId);
10614
+ common_1.assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId);
9127
10615
  // verify required parameter 'workspaceId' is not null or undefined
9128
- common_1.assertParamExists('updateWorkspace', 'workspaceId', workspaceId);
9129
- // verify required parameter 'workspace' is not null or undefined
9130
- common_1.assertParamExists('updateWorkspace', 'workspace', workspace);
9131
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}"
10616
+ common_1.assertParamExists('updateWorkspaceAccessControl', 'workspaceId', workspaceId);
10617
+ // verify required parameter 'identityId' is not null or undefined
10618
+ common_1.assertParamExists('updateWorkspaceAccessControl', 'identityId', identityId);
10619
+ // verify required parameter 'workspaceRole' is not null or undefined
10620
+ common_1.assertParamExists('updateWorkspaceAccessControl', 'workspaceRole', workspaceRole);
10621
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}"
9132
10622
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9133
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
10623
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10624
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
9134
10625
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9135
10626
  if (configuration) {
9136
10627
  baseOptions = configuration.baseOptions;
@@ -9149,7 +10640,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9149
10640
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9150
10641
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9151
10642
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9152
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
10643
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
9153
10644
  return [2 /*return*/, {
9154
10645
  url: common_1.toPathString(localVarUrlObj),
9155
10646
  options: localVarRequestOptions,
@@ -9233,19 +10724,19 @@ exports.WorkspaceApiFp = function (configuration) {
9233
10724
  return {
9234
10725
  /**
9235
10726
  *
9236
- * @summary Add (or replace) users to the Workspace specified
10727
+ * @summary Add a control access to the Workspace
9237
10728
  * @param {string} organizationId the Organization identifier
9238
10729
  * @param {string} workspaceId the Workspace identifier
9239
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
10730
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9240
10731
  * @param {*} [options] Override http request option.
9241
10732
  * @throws {RequiredError}
9242
10733
  */
9243
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
10734
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
9244
10735
  return __awaiter(this, void 0, void 0, function () {
9245
10736
  var localVarAxiosArgs;
9246
10737
  return __generator(this, function (_a) {
9247
10738
  switch (_a.label) {
9248
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options)];
10739
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options)];
9249
10740
  case 1:
9250
10741
  localVarAxiosArgs = _a.sent();
9251
10742
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9424,18 +10915,19 @@ exports.WorkspaceApiFp = function (configuration) {
9424
10915
  },
9425
10916
  /**
9426
10917
  *
9427
- * @summary Remove all users from the Workspace specified
10918
+ * @summary Get a control access for the Workspace
9428
10919
  * @param {string} organizationId the Organization identifier
9429
10920
  * @param {string} workspaceId the Workspace identifier
10921
+ * @param {string} identityId the User identifier
9430
10922
  * @param {*} [options] Override http request option.
9431
10923
  * @throws {RequiredError}
9432
10924
  */
9433
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
10925
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
9434
10926
  return __awaiter(this, void 0, void 0, function () {
9435
10927
  var localVarAxiosArgs;
9436
10928
  return __generator(this, function (_a) {
9437
10929
  switch (_a.label) {
9438
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAllUsersOfWorkspace(organizationId, workspaceId, options)];
10930
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options)];
9439
10931
  case 1:
9440
10932
  localVarAxiosArgs = _a.sent();
9441
10933
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9445,19 +10937,105 @@ exports.WorkspaceApiFp = function (configuration) {
9445
10937
  },
9446
10938
  /**
9447
10939
  *
9448
- * @summary Remove the specified user from the given Organization Workspace
10940
+ * @summary Get the Workspace permission by given role
9449
10941
  * @param {string} organizationId the Organization identifier
9450
10942
  * @param {string} workspaceId the Workspace identifier
9451
- * @param {string} userId the User identifier
10943
+ * @param {string} role the Role
10944
+ * @param {*} [options] Override http request option.
10945
+ * @throws {RequiredError}
10946
+ */
10947
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
10948
+ return __awaiter(this, void 0, void 0, function () {
10949
+ var localVarAxiosArgs;
10950
+ return __generator(this, function (_a) {
10951
+ switch (_a.label) {
10952
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspacePermissions(organizationId, workspaceId, role, options)];
10953
+ case 1:
10954
+ localVarAxiosArgs = _a.sent();
10955
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10956
+ }
10957
+ });
10958
+ });
10959
+ },
10960
+ /**
10961
+ *
10962
+ * @summary Get the Workspace security information
10963
+ * @param {string} organizationId the Organization identifier
10964
+ * @param {string} workspaceId the Workspace identifier
10965
+ * @param {*} [options] Override http request option.
10966
+ * @throws {RequiredError}
10967
+ */
10968
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
10969
+ return __awaiter(this, void 0, void 0, function () {
10970
+ var localVarAxiosArgs;
10971
+ return __generator(this, function (_a) {
10972
+ switch (_a.label) {
10973
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceSecurity(organizationId, workspaceId, options)];
10974
+ case 1:
10975
+ localVarAxiosArgs = _a.sent();
10976
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10977
+ }
10978
+ });
10979
+ });
10980
+ },
10981
+ /**
10982
+ *
10983
+ * @summary Get the Workspace security users list
10984
+ * @param {string} organizationId the Organization identifier
10985
+ * @param {string} workspaceId the Workspace identifier
10986
+ * @param {*} [options] Override http request option.
10987
+ * @throws {RequiredError}
10988
+ */
10989
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
10990
+ return __awaiter(this, void 0, void 0, function () {
10991
+ var localVarAxiosArgs;
10992
+ return __generator(this, function (_a) {
10993
+ switch (_a.label) {
10994
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceSecurityUsers(organizationId, workspaceId, options)];
10995
+ case 1:
10996
+ localVarAxiosArgs = _a.sent();
10997
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10998
+ }
10999
+ });
11000
+ });
11001
+ },
11002
+ /**
11003
+ *
11004
+ * @summary Remove the specified access from the given Organization Workspace
11005
+ * @param {string} organizationId the Organization identifier
11006
+ * @param {string} workspaceId the Workspace identifier
11007
+ * @param {string} identityId the User identifier
9452
11008
  * @param {*} [options] Override http request option.
9453
11009
  * @throws {RequiredError}
9454
11010
  */
9455
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
11011
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
9456
11012
  return __awaiter(this, void 0, void 0, function () {
9457
11013
  var localVarAxiosArgs;
9458
11014
  return __generator(this, function (_a) {
9459
11015
  switch (_a.label) {
9460
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options)];
11016
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options)];
11017
+ case 1:
11018
+ localVarAxiosArgs = _a.sent();
11019
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11020
+ }
11021
+ });
11022
+ });
11023
+ },
11024
+ /**
11025
+ *
11026
+ * @summary Set the Workspace default security
11027
+ * @param {string} organizationId the Organization identifier
11028
+ * @param {string} workspaceId the Workspace identifier
11029
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
11030
+ * @param {*} [options] Override http request option.
11031
+ * @throws {RequiredError}
11032
+ */
11033
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
11034
+ return __awaiter(this, void 0, void 0, function () {
11035
+ var localVarAxiosArgs;
11036
+ return __generator(this, function (_a) {
11037
+ switch (_a.label) {
11038
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options)];
9461
11039
  case 1:
9462
11040
  localVarAxiosArgs = _a.sent();
9463
11041
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9470,7 +11048,7 @@ exports.WorkspaceApiFp = function (configuration) {
9470
11048
  * @summary Update a workspace
9471
11049
  * @param {string} organizationId the Organization identifier
9472
11050
  * @param {string} workspaceId the Workspace identifier
9473
- * @param {Workspace} workspace the new Workspace details.
11051
+ * @param {Workspace} workspace The new Workspace details.
9474
11052
  * @param {*} [options] Override http request option.
9475
11053
  * @throws {RequiredError}
9476
11054
  */
@@ -9487,6 +11065,29 @@ exports.WorkspaceApiFp = function (configuration) {
9487
11065
  });
9488
11066
  });
9489
11067
  },
11068
+ /**
11069
+ *
11070
+ * @summary Update the specified access to User for a Workspace
11071
+ * @param {string} organizationId the Organization identifier
11072
+ * @param {string} workspaceId the Workspace identifier
11073
+ * @param {string} identityId the User identifier
11074
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11075
+ * @param {*} [options] Override http request option.
11076
+ * @throws {RequiredError}
11077
+ */
11078
+ updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
11079
+ return __awaiter(this, void 0, void 0, function () {
11080
+ var localVarAxiosArgs;
11081
+ return __generator(this, function (_a) {
11082
+ switch (_a.label) {
11083
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options)];
11084
+ case 1:
11085
+ localVarAxiosArgs = _a.sent();
11086
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11087
+ }
11088
+ });
11089
+ });
11090
+ },
9490
11091
  /**
9491
11092
  *
9492
11093
  * @summary Upload a file for the Workspace
@@ -9522,15 +11123,15 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
9522
11123
  return {
9523
11124
  /**
9524
11125
  *
9525
- * @summary Add (or replace) users to the Workspace specified
11126
+ * @summary Add a control access to the Workspace
9526
11127
  * @param {string} organizationId the Organization identifier
9527
11128
  * @param {string} workspaceId the Workspace identifier
9528
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
11129
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9529
11130
  * @param {*} [options] Override http request option.
9530
11131
  * @throws {RequiredError}
9531
11132
  */
9532
- addOrReplaceUsersInOrganizationWorkspace: function (organizationId, workspaceId, workspaceUser, options) {
9533
- return localVarFp.addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options).then(function (request) { return request(axios, basePath); });
11133
+ addWorkspaceAccessControl: function (organizationId, workspaceId, workspaceAccessControl, options) {
11134
+ return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(axios, basePath); });
9534
11135
  },
9535
11136
  /**
9536
11137
  *
@@ -9623,39 +11224,99 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
9623
11224
  },
9624
11225
  /**
9625
11226
  *
9626
- * @summary Remove all users from the Workspace specified
11227
+ * @summary Get a control access for the Workspace
9627
11228
  * @param {string} organizationId the Organization identifier
9628
11229
  * @param {string} workspaceId the Workspace identifier
11230
+ * @param {string} identityId the User identifier
9629
11231
  * @param {*} [options] Override http request option.
9630
11232
  * @throws {RequiredError}
9631
11233
  */
9632
- removeAllUsersOfWorkspace: function (organizationId, workspaceId, options) {
9633
- return localVarFp.removeAllUsersOfWorkspace(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
11234
+ getWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
11235
+ return localVarFp.getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(axios, basePath); });
9634
11236
  },
9635
11237
  /**
9636
11238
  *
9637
- * @summary Remove the specified user from the given Organization Workspace
11239
+ * @summary Get the Workspace permission by given role
9638
11240
  * @param {string} organizationId the Organization identifier
9639
11241
  * @param {string} workspaceId the Workspace identifier
9640
- * @param {string} userId the User identifier
11242
+ * @param {string} role the Role
11243
+ * @param {*} [options] Override http request option.
11244
+ * @throws {RequiredError}
11245
+ */
11246
+ getWorkspacePermissions: function (organizationId, workspaceId, role, options) {
11247
+ return localVarFp.getWorkspacePermissions(organizationId, workspaceId, role, options).then(function (request) { return request(axios, basePath); });
11248
+ },
11249
+ /**
11250
+ *
11251
+ * @summary Get the Workspace security information
11252
+ * @param {string} organizationId the Organization identifier
11253
+ * @param {string} workspaceId the Workspace identifier
11254
+ * @param {*} [options] Override http request option.
11255
+ * @throws {RequiredError}
11256
+ */
11257
+ getWorkspaceSecurity: function (organizationId, workspaceId, options) {
11258
+ return localVarFp.getWorkspaceSecurity(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
11259
+ },
11260
+ /**
11261
+ *
11262
+ * @summary Get the Workspace security users list
11263
+ * @param {string} organizationId the Organization identifier
11264
+ * @param {string} workspaceId the Workspace identifier
11265
+ * @param {*} [options] Override http request option.
11266
+ * @throws {RequiredError}
11267
+ */
11268
+ getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
11269
+ return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
11270
+ },
11271
+ /**
11272
+ *
11273
+ * @summary Remove the specified access from the given Organization Workspace
11274
+ * @param {string} organizationId the Organization identifier
11275
+ * @param {string} workspaceId the Workspace identifier
11276
+ * @param {string} identityId the User identifier
11277
+ * @param {*} [options] Override http request option.
11278
+ * @throws {RequiredError}
11279
+ */
11280
+ removeWorkspaceAccessControl: function (organizationId, workspaceId, identityId, options) {
11281
+ return localVarFp.removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(axios, basePath); });
11282
+ },
11283
+ /**
11284
+ *
11285
+ * @summary Set the Workspace default security
11286
+ * @param {string} organizationId the Organization identifier
11287
+ * @param {string} workspaceId the Workspace identifier
11288
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
9641
11289
  * @param {*} [options] Override http request option.
9642
11290
  * @throws {RequiredError}
9643
11291
  */
9644
- removeUserFromOrganizationWorkspace: function (organizationId, workspaceId, userId, options) {
9645
- return localVarFp.removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options).then(function (request) { return request(axios, basePath); });
11292
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
11293
+ return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(axios, basePath); });
9646
11294
  },
9647
11295
  /**
9648
11296
  *
9649
11297
  * @summary Update a workspace
9650
11298
  * @param {string} organizationId the Organization identifier
9651
11299
  * @param {string} workspaceId the Workspace identifier
9652
- * @param {Workspace} workspace the new Workspace details.
11300
+ * @param {Workspace} workspace The new Workspace details.
9653
11301
  * @param {*} [options] Override http request option.
9654
11302
  * @throws {RequiredError}
9655
11303
  */
9656
11304
  updateWorkspace: function (organizationId, workspaceId, workspace, options) {
9657
11305
  return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(axios, basePath); });
9658
11306
  },
11307
+ /**
11308
+ *
11309
+ * @summary Update the specified access to User for a Workspace
11310
+ * @param {string} organizationId the Organization identifier
11311
+ * @param {string} workspaceId the Workspace identifier
11312
+ * @param {string} identityId the User identifier
11313
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11314
+ * @param {*} [options] Override http request option.
11315
+ * @throws {RequiredError}
11316
+ */
11317
+ updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
11318
+ return localVarFp.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then(function (request) { return request(axios, basePath); });
11319
+ },
9659
11320
  /**
9660
11321
  *
9661
11322
  * @summary Upload a file for the Workspace
@@ -9685,17 +11346,17 @@ var WorkspaceApi = /** @class */ (function (_super) {
9685
11346
  }
9686
11347
  /**
9687
11348
  *
9688
- * @summary Add (or replace) users to the Workspace specified
11349
+ * @summary Add a control access to the Workspace
9689
11350
  * @param {string} organizationId the Organization identifier
9690
11351
  * @param {string} workspaceId the Workspace identifier
9691
- * @param {Array<WorkspaceUser>} workspaceUser the Users to add. Any User with the same ID is overwritten
11352
+ * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
9692
11353
  * @param {*} [options] Override http request option.
9693
11354
  * @throws {RequiredError}
9694
11355
  * @memberof WorkspaceApi
9695
11356
  */
9696
- WorkspaceApi.prototype.addOrReplaceUsersInOrganizationWorkspace = function (organizationId, workspaceId, workspaceUser, options) {
11357
+ WorkspaceApi.prototype.addWorkspaceAccessControl = function (organizationId, workspaceId, workspaceAccessControl, options) {
9697
11358
  var _this = this;
9698
- return exports.WorkspaceApiFp(this.configuration).addOrReplaceUsersInOrganizationWorkspace(organizationId, workspaceId, workspaceUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
11359
+ return exports.WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
9699
11360
  };
9700
11361
  /**
9701
11362
  *
@@ -9804,37 +11465,92 @@ var WorkspaceApi = /** @class */ (function (_super) {
9804
11465
  };
9805
11466
  /**
9806
11467
  *
9807
- * @summary Remove all users from the Workspace specified
11468
+ * @summary Get a control access for the Workspace
9808
11469
  * @param {string} organizationId the Organization identifier
9809
11470
  * @param {string} workspaceId the Workspace identifier
11471
+ * @param {string} identityId the User identifier
9810
11472
  * @param {*} [options] Override http request option.
9811
11473
  * @throws {RequiredError}
9812
11474
  * @memberof WorkspaceApi
9813
11475
  */
9814
- WorkspaceApi.prototype.removeAllUsersOfWorkspace = function (organizationId, workspaceId, options) {
11476
+ WorkspaceApi.prototype.getWorkspaceAccessControl = function (organizationId, workspaceId, identityId, options) {
9815
11477
  var _this = this;
9816
- return exports.WorkspaceApiFp(this.configuration).removeAllUsersOfWorkspace(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11478
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9817
11479
  };
9818
11480
  /**
9819
11481
  *
9820
- * @summary Remove the specified user from the given Organization Workspace
11482
+ * @summary Get the Workspace permission by given role
9821
11483
  * @param {string} organizationId the Organization identifier
9822
11484
  * @param {string} workspaceId the Workspace identifier
9823
- * @param {string} userId the User identifier
11485
+ * @param {string} role the Role
11486
+ * @param {*} [options] Override http request option.
11487
+ * @throws {RequiredError}
11488
+ * @memberof WorkspaceApi
11489
+ */
11490
+ WorkspaceApi.prototype.getWorkspacePermissions = function (organizationId, workspaceId, role, options) {
11491
+ var _this = this;
11492
+ return exports.WorkspaceApiFp(this.configuration).getWorkspacePermissions(organizationId, workspaceId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
11493
+ };
11494
+ /**
11495
+ *
11496
+ * @summary Get the Workspace security information
11497
+ * @param {string} organizationId the Organization identifier
11498
+ * @param {string} workspaceId the Workspace identifier
11499
+ * @param {*} [options] Override http request option.
11500
+ * @throws {RequiredError}
11501
+ * @memberof WorkspaceApi
11502
+ */
11503
+ WorkspaceApi.prototype.getWorkspaceSecurity = function (organizationId, workspaceId, options) {
11504
+ var _this = this;
11505
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurity(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11506
+ };
11507
+ /**
11508
+ *
11509
+ * @summary Get the Workspace security users list
11510
+ * @param {string} organizationId the Organization identifier
11511
+ * @param {string} workspaceId the Workspace identifier
11512
+ * @param {*} [options] Override http request option.
11513
+ * @throws {RequiredError}
11514
+ * @memberof WorkspaceApi
11515
+ */
11516
+ WorkspaceApi.prototype.getWorkspaceSecurityUsers = function (organizationId, workspaceId, options) {
11517
+ var _this = this;
11518
+ return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11519
+ };
11520
+ /**
11521
+ *
11522
+ * @summary Remove the specified access from the given Organization Workspace
11523
+ * @param {string} organizationId the Organization identifier
11524
+ * @param {string} workspaceId the Workspace identifier
11525
+ * @param {string} identityId the User identifier
11526
+ * @param {*} [options] Override http request option.
11527
+ * @throws {RequiredError}
11528
+ * @memberof WorkspaceApi
11529
+ */
11530
+ WorkspaceApi.prototype.removeWorkspaceAccessControl = function (organizationId, workspaceId, identityId, options) {
11531
+ var _this = this;
11532
+ return exports.WorkspaceApiFp(this.configuration).removeWorkspaceAccessControl(organizationId, workspaceId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11533
+ };
11534
+ /**
11535
+ *
11536
+ * @summary Set the Workspace default security
11537
+ * @param {string} organizationId the Organization identifier
11538
+ * @param {string} workspaceId the Workspace identifier
11539
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
9824
11540
  * @param {*} [options] Override http request option.
9825
11541
  * @throws {RequiredError}
9826
11542
  * @memberof WorkspaceApi
9827
11543
  */
9828
- WorkspaceApi.prototype.removeUserFromOrganizationWorkspace = function (organizationId, workspaceId, userId, options) {
11544
+ WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId, workspaceRole, options) {
9829
11545
  var _this = this;
9830
- return exports.WorkspaceApiFp(this.configuration).removeUserFromOrganizationWorkspace(organizationId, workspaceId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11546
+ return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
9831
11547
  };
9832
11548
  /**
9833
11549
  *
9834
11550
  * @summary Update a workspace
9835
11551
  * @param {string} organizationId the Organization identifier
9836
11552
  * @param {string} workspaceId the Workspace identifier
9837
- * @param {Workspace} workspace the new Workspace details.
11553
+ * @param {Workspace} workspace The new Workspace details.
9838
11554
  * @param {*} [options] Override http request option.
9839
11555
  * @throws {RequiredError}
9840
11556
  * @memberof WorkspaceApi
@@ -9843,6 +11559,21 @@ var WorkspaceApi = /** @class */ (function (_super) {
9843
11559
  var _this = this;
9844
11560
  return exports.WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(_this.axios, _this.basePath); });
9845
11561
  };
11562
+ /**
11563
+ *
11564
+ * @summary Update the specified access to User for a Workspace
11565
+ * @param {string} organizationId the Organization identifier
11566
+ * @param {string} workspaceId the Workspace identifier
11567
+ * @param {string} identityId the User identifier
11568
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11569
+ * @param {*} [options] Override http request option.
11570
+ * @throws {RequiredError}
11571
+ * @memberof WorkspaceApi
11572
+ */
11573
+ WorkspaceApi.prototype.updateWorkspaceAccessControl = function (organizationId, workspaceId, identityId, workspaceRole, options) {
11574
+ var _this = this;
11575
+ return exports.WorkspaceApiFp(this.configuration).updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
11576
+ };
9846
11577
  /**
9847
11578
  *
9848
11579
  * @summary Upload a file for the Workspace