@cosmotech/api-ts 2.0.4 → 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: 2.0.4-dev
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).
@@ -1432,7 +1432,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1432
1432
  return {
1433
1433
  /**
1434
1434
  *
1435
- * @summary add a control acccess to the Organization
1435
+ * @summary Add a control access to the Organization
1436
1436
  * @param {string} organizationId the Organization identifier
1437
1437
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
1438
1438
  * @param {*} [options] Override http request option.
@@ -1601,7 +1601,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1601
1601
  },
1602
1602
  /**
1603
1603
  *
1604
- * @summary get a control acccess for the Organization
1604
+ * @summary Get a control access for the Organization
1605
1605
  * @param {string} organizationId the Organization identifier
1606
1606
  * @param {string} identityId the User identifier
1607
1607
  * @param {*} [options] Override http request option.
@@ -1739,7 +1739,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1739
1739
  /**
1740
1740
  *
1741
1741
  * @summary Get the Organization security users list
1742
- * @param {string} organizationId the Organization identifier
1742
+ * @param {string} organizationId The Organization identifier
1743
1743
  * @param {*} [options] Override http request option.
1744
1744
  * @throws {RequiredError}
1745
1745
  */
@@ -1872,13 +1872,13 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1872
1872
  },
1873
1873
  /**
1874
1874
  *
1875
- * @summary set the Organization default security
1875
+ * @summary Set the Organization default security
1876
1876
  * @param {string} organizationId the Organization identifier
1877
- * @param {string} body the new Organization default security.
1877
+ * @param {OrganizationRole} organizationRole the new Organization default security.
1878
1878
  * @param {*} [options] Override http request option.
1879
1879
  * @throws {RequiredError}
1880
1880
  */
1881
- setOrganizationDefaultSecurity: function (organizationId, body, options) {
1881
+ setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
1882
1882
  if (options === void 0) { options = {}; }
1883
1883
  return __awaiter(_this, void 0, void 0, function () {
1884
1884
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1887,8 +1887,8 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1887
1887
  case 0:
1888
1888
  // verify required parameter 'organizationId' is not null or undefined
1889
1889
  common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId);
1890
- // verify required parameter 'body' is not null or undefined
1891
- common_1.assertParamExists('setOrganizationDefaultSecurity', 'body', body);
1890
+ // verify required parameter 'organizationRole' is not null or undefined
1891
+ common_1.assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole);
1892
1892
  localVarPath = "/organizations/{organization_id}/security/default"
1893
1893
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
1894
1894
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1909,7 +1909,7 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1909
1909
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1910
1910
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1911
1911
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1912
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1912
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration);
1913
1913
  return [2 /*return*/, {
1914
1914
  url: common_1.toPathString(localVarUrlObj),
1915
1915
  options: localVarRequestOptions,
@@ -2009,6 +2009,58 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
2009
2009
  });
2010
2010
  });
2011
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
+ },
2012
2064
  /**
2013
2065
  *
2014
2066
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2164,7 +2216,7 @@ exports.OrganizationApiFp = function (configuration) {
2164
2216
  return {
2165
2217
  /**
2166
2218
  *
2167
- * @summary add a control acccess to the Organization
2219
+ * @summary Add a control access to the Organization
2168
2220
  * @param {string} organizationId the Organization identifier
2169
2221
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2170
2222
  * @param {*} [options] Override http request option.
@@ -2243,7 +2295,7 @@ exports.OrganizationApiFp = function (configuration) {
2243
2295
  },
2244
2296
  /**
2245
2297
  *
2246
- * @summary get a control acccess for the Organization
2298
+ * @summary Get a control access for the Organization
2247
2299
  * @param {string} organizationId the Organization identifier
2248
2300
  * @param {string} identityId the User identifier
2249
2301
  * @param {*} [options] Override http request option.
@@ -2306,7 +2358,7 @@ exports.OrganizationApiFp = function (configuration) {
2306
2358
  /**
2307
2359
  *
2308
2360
  * @summary Get the Organization security users list
2309
- * @param {string} organizationId the Organization identifier
2361
+ * @param {string} organizationId The Organization identifier
2310
2362
  * @param {*} [options] Override http request option.
2311
2363
  * @throws {RequiredError}
2312
2364
  */
@@ -2366,18 +2418,18 @@ exports.OrganizationApiFp = function (configuration) {
2366
2418
  },
2367
2419
  /**
2368
2420
  *
2369
- * @summary set the Organization default security
2421
+ * @summary Set the Organization default security
2370
2422
  * @param {string} organizationId the Organization identifier
2371
- * @param {string} body the new Organization default security.
2423
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2372
2424
  * @param {*} [options] Override http request option.
2373
2425
  * @throws {RequiredError}
2374
2426
  */
2375
- setOrganizationDefaultSecurity: function (organizationId, body, options) {
2427
+ setOrganizationDefaultSecurity: function (organizationId, organizationRole, options) {
2376
2428
  return __awaiter(this, void 0, void 0, function () {
2377
2429
  var localVarAxiosArgs;
2378
2430
  return __generator(this, function (_a) {
2379
2431
  switch (_a.label) {
2380
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, body, options)];
2432
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options)];
2381
2433
  case 1:
2382
2434
  localVarAxiosArgs = _a.sent();
2383
2435
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2426,6 +2478,28 @@ exports.OrganizationApiFp = function (configuration) {
2426
2478
  });
2427
2479
  });
2428
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
+ },
2429
2503
  /**
2430
2504
  *
2431
2505
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2500,7 +2574,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2500
2574
  return {
2501
2575
  /**
2502
2576
  *
2503
- * @summary add a control acccess to the Organization
2577
+ * @summary Add a control access to the Organization
2504
2578
  * @param {string} organizationId the Organization identifier
2505
2579
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2506
2580
  * @param {*} [options] Override http request option.
@@ -2539,7 +2613,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2539
2613
  },
2540
2614
  /**
2541
2615
  *
2542
- * @summary get a control acccess for the Organization
2616
+ * @summary Get a control access for the Organization
2543
2617
  * @param {string} organizationId the Organization identifier
2544
2618
  * @param {string} identityId the User identifier
2545
2619
  * @param {*} [options] Override http request option.
@@ -2572,7 +2646,7 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2572
2646
  /**
2573
2647
  *
2574
2648
  * @summary Get the Organization security users list
2575
- * @param {string} organizationId the Organization identifier
2649
+ * @param {string} organizationId The Organization identifier
2576
2650
  * @param {*} [options] Override http request option.
2577
2651
  * @throws {RequiredError}
2578
2652
  */
@@ -2602,14 +2676,14 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2602
2676
  },
2603
2677
  /**
2604
2678
  *
2605
- * @summary set the Organization default security
2679
+ * @summary Set the Organization default security
2606
2680
  * @param {string} organizationId the Organization identifier
2607
- * @param {string} body the new Organization default security.
2681
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2608
2682
  * @param {*} [options] Override http request option.
2609
2683
  * @throws {RequiredError}
2610
2684
  */
2611
- setOrganizationDefaultSecurity: function (organizationId, body, options) {
2612
- return localVarFp.setOrganizationDefaultSecurity(organizationId, body, 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); });
2613
2687
  },
2614
2688
  /**
2615
2689
  *
@@ -2632,6 +2706,18 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2632
2706
  updateOrganization: function (organizationId, organization, options) {
2633
2707
  return localVarFp.updateOrganization(organizationId, organization, options).then(function (request) { return request(axios, basePath); });
2634
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
+ },
2635
2721
  /**
2636
2722
  *
2637
2723
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2680,7 +2766,7 @@ var OrganizationApi = /** @class */ (function (_super) {
2680
2766
  }
2681
2767
  /**
2682
2768
  *
2683
- * @summary add a control acccess to the Organization
2769
+ * @summary Add a control access to the Organization
2684
2770
  * @param {string} organizationId the Organization identifier
2685
2771
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
2686
2772
  * @param {*} [options] Override http request option.
@@ -2727,7 +2813,7 @@ var OrganizationApi = /** @class */ (function (_super) {
2727
2813
  };
2728
2814
  /**
2729
2815
  *
2730
- * @summary get a control acccess for the Organization
2816
+ * @summary Get a control access for the Organization
2731
2817
  * @param {string} organizationId the Organization identifier
2732
2818
  * @param {string} identityId the User identifier
2733
2819
  * @param {*} [options] Override http request option.
@@ -2766,7 +2852,7 @@ var OrganizationApi = /** @class */ (function (_super) {
2766
2852
  /**
2767
2853
  *
2768
2854
  * @summary Get the Organization security users list
2769
- * @param {string} organizationId the Organization identifier
2855
+ * @param {string} organizationId The Organization identifier
2770
2856
  * @param {*} [options] Override http request option.
2771
2857
  * @throws {RequiredError}
2772
2858
  * @memberof OrganizationApi
@@ -2802,16 +2888,16 @@ var OrganizationApi = /** @class */ (function (_super) {
2802
2888
  };
2803
2889
  /**
2804
2890
  *
2805
- * @summary set the Organization default security
2891
+ * @summary Set the Organization default security
2806
2892
  * @param {string} organizationId the Organization identifier
2807
- * @param {string} body the new Organization default security.
2893
+ * @param {OrganizationRole} organizationRole the new Organization default security.
2808
2894
  * @param {*} [options] Override http request option.
2809
2895
  * @throws {RequiredError}
2810
2896
  * @memberof OrganizationApi
2811
2897
  */
2812
- OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, body, options) {
2898
+ OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, organizationRole, options) {
2813
2899
  var _this = this;
2814
- return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, body, 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); });
2815
2901
  };
2816
2902
  /**
2817
2903
  *
@@ -2838,6 +2924,20 @@ var OrganizationApi = /** @class */ (function (_super) {
2838
2924
  var _this = this;
2839
2925
  return exports.OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2840
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
+ };
2841
2941
  /**
2842
2942
  *
2843
2943
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -2945,7 +3045,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
2945
3045
  },
2946
3046
  /**
2947
3047
  *
2948
- * @summary add a control acccess to the Scenario
3048
+ * @summary Add a control access to the Scenario
2949
3049
  * @param {string} organizationId the Organization identifier
2950
3050
  * @param {string} workspaceId the Workspace identifier
2951
3051
  * @param {string} scenarioId the Scenario identifier
@@ -3410,7 +3510,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3410
3510
  },
3411
3511
  /**
3412
3512
  *
3413
- * @summary get a control acccess for the Scenario
3513
+ * @summary Get a control access for the Scenario
3414
3514
  * @param {string} organizationId the Organization identifier
3415
3515
  * @param {string} workspaceId the Workspace identifier
3416
3516
  * @param {string} scenarioId the Scenario identifier
@@ -3877,15 +3977,15 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3877
3977
  },
3878
3978
  /**
3879
3979
  *
3880
- * @summary set the Scenario default security
3980
+ * @summary Set the Scenario default security
3881
3981
  * @param {string} organizationId the Organization identifier
3882
3982
  * @param {string} workspaceId the Workspace identifier
3883
3983
  * @param {string} scenarioId the Scenario identifier
3884
- * @param {string} body the new Scenario default security.
3984
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
3885
3985
  * @param {*} [options] Override http request option.
3886
3986
  * @throws {RequiredError}
3887
3987
  */
3888
- setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
3988
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
3889
3989
  if (options === void 0) { options = {}; }
3890
3990
  return __awaiter(_this, void 0, void 0, function () {
3891
3991
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3898,8 +3998,8 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3898
3998
  common_1.assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId);
3899
3999
  // verify required parameter 'scenarioId' is not null or undefined
3900
4000
  common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId);
3901
- // verify required parameter 'body' is not null or undefined
3902
- common_1.assertParamExists('setScenarioDefaultSecurity', 'body', body);
4001
+ // verify required parameter 'scenarioRole' is not null or undefined
4002
+ common_1.assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole);
3903
4003
  localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default"
3904
4004
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3905
4005
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
@@ -3922,7 +4022,7 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3922
4022
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3923
4023
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3924
4024
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3925
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
4025
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration);
3926
4026
  return [2 /*return*/, {
3927
4027
  url: common_1.toPathString(localVarUrlObj),
3928
4028
  options: localVarRequestOptions,
@@ -3987,6 +4087,66 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3987
4087
  });
3988
4088
  });
3989
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
+ },
3990
4150
  };
3991
4151
  };
3992
4152
  /**
@@ -4021,7 +4181,7 @@ exports.ScenarioApiFp = function (configuration) {
4021
4181
  },
4022
4182
  /**
4023
4183
  *
4024
- * @summary add a control acccess to the Scenario
4184
+ * @summary Add a control access to the Scenario
4025
4185
  * @param {string} organizationId the Organization identifier
4026
4186
  * @param {string} workspaceId the Workspace identifier
4027
4187
  * @param {string} scenarioId the Scenario identifier
@@ -4220,7 +4380,7 @@ exports.ScenarioApiFp = function (configuration) {
4220
4380
  },
4221
4381
  /**
4222
4382
  *
4223
- * @summary get a control acccess for the Scenario
4383
+ * @summary Get a control access for the Scenario
4224
4384
  * @param {string} organizationId the Organization identifier
4225
4385
  * @param {string} workspaceId the Workspace identifier
4226
4386
  * @param {string} scenarioId the Scenario identifier
@@ -4420,20 +4580,20 @@ exports.ScenarioApiFp = function (configuration) {
4420
4580
  },
4421
4581
  /**
4422
4582
  *
4423
- * @summary set the Scenario default security
4583
+ * @summary Set the Scenario default security
4424
4584
  * @param {string} organizationId the Organization identifier
4425
4585
  * @param {string} workspaceId the Workspace identifier
4426
4586
  * @param {string} scenarioId the Scenario identifier
4427
- * @param {string} body the new Scenario default security.
4587
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
4428
4588
  * @param {*} [options] Override http request option.
4429
4589
  * @throws {RequiredError}
4430
4590
  */
4431
- setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
4591
+ setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
4432
4592
  return __awaiter(this, void 0, void 0, function () {
4433
4593
  var localVarAxiosArgs;
4434
4594
  return __generator(this, function (_a) {
4435
4595
  switch (_a.label) {
4436
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options)];
4596
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options)];
4437
4597
  case 1:
4438
4598
  localVarAxiosArgs = _a.sent();
4439
4599
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -4464,6 +4624,30 @@ exports.ScenarioApiFp = function (configuration) {
4464
4624
  });
4465
4625
  });
4466
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
+ },
4467
4651
  };
4468
4652
  };
4469
4653
  /**
@@ -4488,7 +4672,7 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4488
4672
  },
4489
4673
  /**
4490
4674
  *
4491
- * @summary add a control acccess to the Scenario
4675
+ * @summary Add a control access to the Scenario
4492
4676
  * @param {string} organizationId the Organization identifier
4493
4677
  * @param {string} workspaceId the Workspace identifier
4494
4678
  * @param {string} scenarioId the Scenario identifier
@@ -4597,7 +4781,7 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4597
4781
  },
4598
4782
  /**
4599
4783
  *
4600
- * @summary get a control acccess for the Scenario
4784
+ * @summary Get a control access for the Scenario
4601
4785
  * @param {string} organizationId the Organization identifier
4602
4786
  * @param {string} workspaceId the Workspace identifier
4603
4787
  * @param {string} scenarioId the Scenario identifier
@@ -4707,16 +4891,16 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4707
4891
  },
4708
4892
  /**
4709
4893
  *
4710
- * @summary set the Scenario default security
4894
+ * @summary Set the Scenario default security
4711
4895
  * @param {string} organizationId the Organization identifier
4712
4896
  * @param {string} workspaceId the Workspace identifier
4713
4897
  * @param {string} scenarioId the Scenario identifier
4714
- * @param {string} body the new Scenario default security.
4898
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
4715
4899
  * @param {*} [options] Override http request option.
4716
4900
  * @throws {RequiredError}
4717
4901
  */
4718
- setScenarioDefaultSecurity: function (organizationId, workspaceId, scenarioId, body, options) {
4719
- return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, 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); });
4720
4904
  },
4721
4905
  /**
4722
4906
  *
@@ -4731,6 +4915,20 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4731
4915
  updateScenario: function (organizationId, workspaceId, scenarioId, scenario, options) {
4732
4916
  return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(axios, basePath); });
4733
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
+ },
4734
4932
  };
4735
4933
  };
4736
4934
  /**
@@ -4761,7 +4959,7 @@ var ScenarioApi = /** @class */ (function (_super) {
4761
4959
  };
4762
4960
  /**
4763
4961
  *
4764
- * @summary add a control acccess to the Scenario
4962
+ * @summary Add a control access to the Scenario
4765
4963
  * @param {string} organizationId the Organization identifier
4766
4964
  * @param {string} workspaceId the Workspace identifier
4767
4965
  * @param {string} scenarioId the Scenario identifier
@@ -4888,7 +5086,7 @@ var ScenarioApi = /** @class */ (function (_super) {
4888
5086
  };
4889
5087
  /**
4890
5088
  *
4891
- * @summary get a control acccess for the Scenario
5089
+ * @summary Get a control access for the Scenario
4892
5090
  * @param {string} organizationId the Organization identifier
4893
5091
  * @param {string} workspaceId the Workspace identifier
4894
5092
  * @param {string} scenarioId the Scenario identifier
@@ -5016,18 +5214,18 @@ var ScenarioApi = /** @class */ (function (_super) {
5016
5214
  };
5017
5215
  /**
5018
5216
  *
5019
- * @summary set the Scenario default security
5217
+ * @summary Set the Scenario default security
5020
5218
  * @param {string} organizationId the Organization identifier
5021
5219
  * @param {string} workspaceId the Workspace identifier
5022
5220
  * @param {string} scenarioId the Scenario identifier
5023
- * @param {string} body the new Scenario default security.
5221
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
5024
5222
  * @param {*} [options] Override http request option.
5025
5223
  * @throws {RequiredError}
5026
5224
  * @memberof ScenarioApi
5027
5225
  */
5028
- ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId, body, options) {
5226
+ ScenarioApi.prototype.setScenarioDefaultSecurity = function (organizationId, workspaceId, scenarioId, scenarioRole, options) {
5029
5227
  var _this = this;
5030
- return exports.ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, 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); });
5031
5229
  };
5032
5230
  /**
5033
5231
  *
@@ -5044,6 +5242,22 @@ var ScenarioApi = /** @class */ (function (_super) {
5044
5242
  var _this = this;
5045
5243
  return exports.ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then(function (request) { return request(_this.axios, _this.basePath); });
5046
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
+ };
5047
5261
  return ScenarioApi;
5048
5262
  }(base_1.BaseAPI));
5049
5263
  exports.ScenarioApi = ScenarioApi;
@@ -9593,7 +9807,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
9593
9807
  return {
9594
9808
  /**
9595
9809
  *
9596
- * @summary add a control acccess to the Workspace
9810
+ * @summary Add a control access to the Workspace
9597
9811
  * @param {string} organizationId the Organization identifier
9598
9812
  * @param {string} workspaceId the Workspace identifier
9599
9813
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -10030,7 +10244,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10030
10244
  },
10031
10245
  /**
10032
10246
  *
10033
- * @summary get a control acccess for the Workspace
10247
+ * @summary Get a control access for the Workspace
10034
10248
  * @param {string} organizationId the Organization identifier
10035
10249
  * @param {string} workspaceId the Workspace identifier
10036
10250
  * @param {string} identityId the User identifier
@@ -10277,14 +10491,14 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10277
10491
  },
10278
10492
  /**
10279
10493
  *
10280
- * @summary set the Workspace default security
10494
+ * @summary Set the Workspace default security
10281
10495
  * @param {string} organizationId the Organization identifier
10282
10496
  * @param {string} workspaceId the Workspace identifier
10283
- * @param {string} body the new Workspace default security.
10497
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
10284
10498
  * @param {*} [options] Override http request option.
10285
10499
  * @throws {RequiredError}
10286
10500
  */
10287
- setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
10501
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
10288
10502
  if (options === void 0) { options = {}; }
10289
10503
  return __awaiter(_this, void 0, void 0, function () {
10290
10504
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10295,8 +10509,8 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10295
10509
  common_1.assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId);
10296
10510
  // verify required parameter 'workspaceId' is not null or undefined
10297
10511
  common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId);
10298
- // verify required parameter 'body' is not null or undefined
10299
- common_1.assertParamExists('setWorkspaceDefaultSecurity', 'body', body);
10512
+ // verify required parameter 'workspaceRole' is not null or undefined
10513
+ common_1.assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole);
10300
10514
  localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/security/default"
10301
10515
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10302
10516
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
@@ -10318,7 +10532,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10318
10532
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10319
10533
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10320
10534
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10321
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
10535
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
10322
10536
  return [2 /*return*/, {
10323
10537
  url: common_1.toPathString(localVarUrlObj),
10324
10538
  options: localVarRequestOptions,
@@ -10332,7 +10546,7 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10332
10546
  * @summary Update a workspace
10333
10547
  * @param {string} organizationId the Organization identifier
10334
10548
  * @param {string} workspaceId the Workspace identifier
10335
- * @param {Workspace} workspace the new Workspace details.
10549
+ * @param {Workspace} workspace The new Workspace details.
10336
10550
  * @param {*} [options] Override http request option.
10337
10551
  * @throws {RequiredError}
10338
10552
  */
@@ -10379,6 +10593,62 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10379
10593
  });
10380
10594
  });
10381
10595
  },
10596
+ /**
10597
+ *
10598
+ * @summary Update the specified access to User for a Workspace
10599
+ * @param {string} organizationId the Organization identifier
10600
+ * @param {string} workspaceId the Workspace identifier
10601
+ * @param {string} identityId the User identifier
10602
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
10603
+ * @param {*} [options] Override http request option.
10604
+ * @throws {RequiredError}
10605
+ */
10606
+ updateWorkspaceAccessControl: function (organizationId, workspaceId, identityId, workspaceRole, options) {
10607
+ if (options === void 0) { options = {}; }
10608
+ return __awaiter(_this, void 0, void 0, function () {
10609
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10610
+ return __generator(this, function (_a) {
10611
+ switch (_a.label) {
10612
+ case 0:
10613
+ // verify required parameter 'organizationId' is not null or undefined
10614
+ common_1.assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId);
10615
+ // verify required parameter 'workspaceId' is not null or undefined
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}"
10622
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
10623
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
10624
+ .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
10625
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10626
+ if (configuration) {
10627
+ baseOptions = configuration.baseOptions;
10628
+ }
10629
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
10630
+ localVarHeaderParameter = {};
10631
+ localVarQueryParameter = {};
10632
+ // authentication oAuth2AuthCode required
10633
+ // oauth required
10634
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
10635
+ case 1:
10636
+ // authentication oAuth2AuthCode required
10637
+ // oauth required
10638
+ _a.sent();
10639
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10640
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10641
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10642
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10643
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration);
10644
+ return [2 /*return*/, {
10645
+ url: common_1.toPathString(localVarUrlObj),
10646
+ options: localVarRequestOptions,
10647
+ }];
10648
+ }
10649
+ });
10650
+ });
10651
+ },
10382
10652
  /**
10383
10653
  *
10384
10654
  * @summary Upload a file for the Workspace
@@ -10454,7 +10724,7 @@ exports.WorkspaceApiFp = function (configuration) {
10454
10724
  return {
10455
10725
  /**
10456
10726
  *
10457
- * @summary add a control acccess to the Workspace
10727
+ * @summary Add a control access to the Workspace
10458
10728
  * @param {string} organizationId the Organization identifier
10459
10729
  * @param {string} workspaceId the Workspace identifier
10460
10730
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -10645,7 +10915,7 @@ exports.WorkspaceApiFp = function (configuration) {
10645
10915
  },
10646
10916
  /**
10647
10917
  *
10648
- * @summary get a control acccess for the Workspace
10918
+ * @summary Get a control access for the Workspace
10649
10919
  * @param {string} organizationId the Organization identifier
10650
10920
  * @param {string} workspaceId the Workspace identifier
10651
10921
  * @param {string} identityId the User identifier
@@ -10753,19 +11023,19 @@ exports.WorkspaceApiFp = function (configuration) {
10753
11023
  },
10754
11024
  /**
10755
11025
  *
10756
- * @summary set the Workspace default security
11026
+ * @summary Set the Workspace default security
10757
11027
  * @param {string} organizationId the Organization identifier
10758
11028
  * @param {string} workspaceId the Workspace identifier
10759
- * @param {string} body the new Workspace default security.
11029
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
10760
11030
  * @param {*} [options] Override http request option.
10761
11031
  * @throws {RequiredError}
10762
11032
  */
10763
- setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
11033
+ setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
10764
11034
  return __awaiter(this, void 0, void 0, function () {
10765
11035
  var localVarAxiosArgs;
10766
11036
  return __generator(this, function (_a) {
10767
11037
  switch (_a.label) {
10768
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options)];
11038
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options)];
10769
11039
  case 1:
10770
11040
  localVarAxiosArgs = _a.sent();
10771
11041
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10778,7 +11048,7 @@ exports.WorkspaceApiFp = function (configuration) {
10778
11048
  * @summary Update a workspace
10779
11049
  * @param {string} organizationId the Organization identifier
10780
11050
  * @param {string} workspaceId the Workspace identifier
10781
- * @param {Workspace} workspace the new Workspace details.
11051
+ * @param {Workspace} workspace The new Workspace details.
10782
11052
  * @param {*} [options] Override http request option.
10783
11053
  * @throws {RequiredError}
10784
11054
  */
@@ -10795,6 +11065,29 @@ exports.WorkspaceApiFp = function (configuration) {
10795
11065
  });
10796
11066
  });
10797
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
+ },
10798
11091
  /**
10799
11092
  *
10800
11093
  * @summary Upload a file for the Workspace
@@ -10830,7 +11123,7 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
10830
11123
  return {
10831
11124
  /**
10832
11125
  *
10833
- * @summary add a control acccess to the Workspace
11126
+ * @summary Add a control access to the Workspace
10834
11127
  * @param {string} organizationId the Organization identifier
10835
11128
  * @param {string} workspaceId the Workspace identifier
10836
11129
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -10931,7 +11224,7 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
10931
11224
  },
10932
11225
  /**
10933
11226
  *
10934
- * @summary get a control acccess for the Workspace
11227
+ * @summary Get a control access for the Workspace
10935
11228
  * @param {string} organizationId the Organization identifier
10936
11229
  * @param {string} workspaceId the Workspace identifier
10937
11230
  * @param {string} identityId the User identifier
@@ -10989,28 +11282,41 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
10989
11282
  },
10990
11283
  /**
10991
11284
  *
10992
- * @summary set the Workspace default security
11285
+ * @summary Set the Workspace default security
10993
11286
  * @param {string} organizationId the Organization identifier
10994
11287
  * @param {string} workspaceId the Workspace identifier
10995
- * @param {string} body the new Workspace default security.
11288
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
10996
11289
  * @param {*} [options] Override http request option.
10997
11290
  * @throws {RequiredError}
10998
11291
  */
10999
- setWorkspaceDefaultSecurity: function (organizationId, workspaceId, body, options) {
11000
- return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, 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); });
11001
11294
  },
11002
11295
  /**
11003
11296
  *
11004
11297
  * @summary Update a workspace
11005
11298
  * @param {string} organizationId the Organization identifier
11006
11299
  * @param {string} workspaceId the Workspace identifier
11007
- * @param {Workspace} workspace the new Workspace details.
11300
+ * @param {Workspace} workspace The new Workspace details.
11008
11301
  * @param {*} [options] Override http request option.
11009
11302
  * @throws {RequiredError}
11010
11303
  */
11011
11304
  updateWorkspace: function (organizationId, workspaceId, workspace, options) {
11012
11305
  return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(axios, basePath); });
11013
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
+ },
11014
11320
  /**
11015
11321
  *
11016
11322
  * @summary Upload a file for the Workspace
@@ -11040,7 +11346,7 @@ var WorkspaceApi = /** @class */ (function (_super) {
11040
11346
  }
11041
11347
  /**
11042
11348
  *
11043
- * @summary add a control acccess to the Workspace
11349
+ * @summary Add a control access to the Workspace
11044
11350
  * @param {string} organizationId the Organization identifier
11045
11351
  * @param {string} workspaceId the Workspace identifier
11046
11352
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -11159,7 +11465,7 @@ var WorkspaceApi = /** @class */ (function (_super) {
11159
11465
  };
11160
11466
  /**
11161
11467
  *
11162
- * @summary get a control acccess for the Workspace
11468
+ * @summary Get a control access for the Workspace
11163
11469
  * @param {string} organizationId the Organization identifier
11164
11470
  * @param {string} workspaceId the Workspace identifier
11165
11471
  * @param {string} identityId the User identifier
@@ -11227,24 +11533,24 @@ var WorkspaceApi = /** @class */ (function (_super) {
11227
11533
  };
11228
11534
  /**
11229
11535
  *
11230
- * @summary set the Workspace default security
11536
+ * @summary Set the Workspace default security
11231
11537
  * @param {string} organizationId the Organization identifier
11232
11538
  * @param {string} workspaceId the Workspace identifier
11233
- * @param {string} body the new Workspace default security.
11539
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
11234
11540
  * @param {*} [options] Override http request option.
11235
11541
  * @throws {RequiredError}
11236
11542
  * @memberof WorkspaceApi
11237
11543
  */
11238
- WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId, body, options) {
11544
+ WorkspaceApi.prototype.setWorkspaceDefaultSecurity = function (organizationId, workspaceId, workspaceRole, options) {
11239
11545
  var _this = this;
11240
- return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, body, 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); });
11241
11547
  };
11242
11548
  /**
11243
11549
  *
11244
11550
  * @summary Update a workspace
11245
11551
  * @param {string} organizationId the Organization identifier
11246
11552
  * @param {string} workspaceId the Workspace identifier
11247
- * @param {Workspace} workspace the new Workspace details.
11553
+ * @param {Workspace} workspace The new Workspace details.
11248
11554
  * @param {*} [options] Override http request option.
11249
11555
  * @throws {RequiredError}
11250
11556
  * @memberof WorkspaceApi
@@ -11253,6 +11559,21 @@ var WorkspaceApi = /** @class */ (function (_super) {
11253
11559
  var _this = this;
11254
11560
  return exports.WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then(function (request) { return request(_this.axios, _this.basePath); });
11255
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
+ };
11256
11577
  /**
11257
11578
  *
11258
11579
  * @summary Upload a file for the Workspace