@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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Cosmo Tech Plaform API
5
5
  * Cosmo Tech Platform API
6
6
  *
7
- * The version of the OpenAPI document: 2.0.4-dev
7
+ * The version of the OpenAPI document: 2.0.6-dev
8
8
  * Contact: platform@cosmotech.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -412,6 +412,19 @@ export interface OrganizationAccessControl {
412
412
  */
413
413
  'role': string;
414
414
  }
415
+ /**
416
+ * the Organization Role
417
+ * @export
418
+ * @interface OrganizationRole
419
+ */
420
+ export interface OrganizationRole {
421
+ /**
422
+ * the Organization Role
423
+ * @type {string}
424
+ * @memberof OrganizationRole
425
+ */
426
+ 'role': string;
427
+ }
415
428
  /**
416
429
  * the Organization security information
417
430
  * @export
@@ -1138,6 +1151,19 @@ export interface ScenarioLastRun {
1138
1151
  */
1139
1152
  'workflowName'?: string;
1140
1153
  }
1154
+ /**
1155
+ * the Scenario Role
1156
+ * @export
1157
+ * @interface ScenarioRole
1158
+ */
1159
+ export interface ScenarioRole {
1160
+ /**
1161
+ * the Scenario Role
1162
+ * @type {string}
1163
+ * @memberof ScenarioRole
1164
+ */
1165
+ 'role': string;
1166
+ }
1141
1167
  /**
1142
1168
  * a ScenarioRun with only base properties
1143
1169
  * @export
@@ -2174,6 +2200,19 @@ export interface WorkspaceFile {
2174
2200
  */
2175
2201
  'fileName'?: string;
2176
2202
  }
2203
+ /**
2204
+ * the Workspace Role
2205
+ * @export
2206
+ * @interface WorkspaceRole
2207
+ */
2208
+ export interface WorkspaceRole {
2209
+ /**
2210
+ * the Workspace Role
2211
+ * @type {string}
2212
+ * @memberof WorkspaceRole
2213
+ */
2214
+ 'role': string;
2215
+ }
2177
2216
  /**
2178
2217
  * the workspace security information
2179
2218
  * @export
@@ -3326,7 +3365,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3326
3365
  return {
3327
3366
  /**
3328
3367
  *
3329
- * @summary add a control acccess to the Organization
3368
+ * @summary Add a control access to the Organization
3330
3369
  * @param {string} organizationId the Organization identifier
3331
3370
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
3332
3371
  * @param {*} [options] Override http request option.
@@ -3476,7 +3515,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3476
3515
  },
3477
3516
  /**
3478
3517
  *
3479
- * @summary get a control acccess for the Organization
3518
+ * @summary Get a control access for the Organization
3480
3519
  * @param {string} organizationId the Organization identifier
3481
3520
  * @param {string} identityId the User identifier
3482
3521
  * @param {*} [options] Override http request option.
@@ -3599,7 +3638,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3599
3638
  /**
3600
3639
  *
3601
3640
  * @summary Get the Organization security users list
3602
- * @param {string} organizationId the Organization identifier
3641
+ * @param {string} organizationId The Organization identifier
3603
3642
  * @param {*} [options] Override http request option.
3604
3643
  * @throws {RequiredError}
3605
3644
  */
@@ -3718,17 +3757,17 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3718
3757
  },
3719
3758
  /**
3720
3759
  *
3721
- * @summary set the Organization default security
3760
+ * @summary Set the Organization default security
3722
3761
  * @param {string} organizationId the Organization identifier
3723
- * @param {string} body the new Organization default security.
3762
+ * @param {OrganizationRole} organizationRole the new Organization default security.
3724
3763
  * @param {*} [options] Override http request option.
3725
3764
  * @throws {RequiredError}
3726
3765
  */
3727
- setOrganizationDefaultSecurity: async (organizationId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3766
+ setOrganizationDefaultSecurity: async (organizationId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3728
3767
  // verify required parameter 'organizationId' is not null or undefined
3729
3768
  assertParamExists('setOrganizationDefaultSecurity', 'organizationId', organizationId)
3730
- // verify required parameter 'body' is not null or undefined
3731
- assertParamExists('setOrganizationDefaultSecurity', 'body', body)
3769
+ // verify required parameter 'organizationRole' is not null or undefined
3770
+ assertParamExists('setOrganizationDefaultSecurity', 'organizationRole', organizationRole)
3732
3771
  const localVarPath = `/organizations/{organization_id}/security/default`
3733
3772
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
3734
3773
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3753,7 +3792,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3753
3792
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3754
3793
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3755
3794
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3756
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
3795
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
3757
3796
 
3758
3797
  return {
3759
3798
  url: toPathString(localVarUrlObj),
@@ -3842,6 +3881,54 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config
3842
3881
  options: localVarRequestOptions,
3843
3882
  };
3844
3883
  },
3884
+ /**
3885
+ *
3886
+ * @summary Update the specified access to User for an Organization
3887
+ * @param {string} organizationId the Organization identifier
3888
+ * @param {string} identityId the User identifier
3889
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
3890
+ * @param {*} [options] Override http request option.
3891
+ * @throws {RequiredError}
3892
+ */
3893
+ updateOrganizationAccessControl: async (organizationId: string, identityId: string, organizationRole: OrganizationRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3894
+ // verify required parameter 'organizationId' is not null or undefined
3895
+ assertParamExists('updateOrganizationAccessControl', 'organizationId', organizationId)
3896
+ // verify required parameter 'identityId' is not null or undefined
3897
+ assertParamExists('updateOrganizationAccessControl', 'identityId', identityId)
3898
+ // verify required parameter 'organizationRole' is not null or undefined
3899
+ assertParamExists('updateOrganizationAccessControl', 'organizationRole', organizationRole)
3900
+ const localVarPath = `/organizations/{organization_id}/security/access/{identity_id}`
3901
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
3902
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
3903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3904
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3905
+ let baseOptions;
3906
+ if (configuration) {
3907
+ baseOptions = configuration.baseOptions;
3908
+ }
3909
+
3910
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3911
+ const localVarHeaderParameter = {} as any;
3912
+ const localVarQueryParameter = {} as any;
3913
+
3914
+ // authentication oAuth2AuthCode required
3915
+ // oauth required
3916
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3917
+
3918
+
3919
+
3920
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3921
+
3922
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3923
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3924
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3925
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationRole, localVarRequestOptions, configuration)
3926
+
3927
+ return {
3928
+ url: toPathString(localVarUrlObj),
3929
+ options: localVarRequestOptions,
3930
+ };
3931
+ },
3845
3932
  /**
3846
3933
  *
3847
3934
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -3986,7 +4073,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
3986
4073
  return {
3987
4074
  /**
3988
4075
  *
3989
- * @summary add a control acccess to the Organization
4076
+ * @summary Add a control access to the Organization
3990
4077
  * @param {string} organizationId the Organization identifier
3991
4078
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
3992
4079
  * @param {*} [options] Override http request option.
@@ -4029,7 +4116,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4029
4116
  },
4030
4117
  /**
4031
4118
  *
4032
- * @summary get a control acccess for the Organization
4119
+ * @summary Get a control access for the Organization
4033
4120
  * @param {string} organizationId the Organization identifier
4034
4121
  * @param {string} identityId the User identifier
4035
4122
  * @param {*} [options] Override http request option.
@@ -4065,7 +4152,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4065
4152
  /**
4066
4153
  *
4067
4154
  * @summary Get the Organization security users list
4068
- * @param {string} organizationId the Organization identifier
4155
+ * @param {string} organizationId The Organization identifier
4069
4156
  * @param {*} [options] Override http request option.
4070
4157
  * @throws {RequiredError}
4071
4158
  */
@@ -4098,14 +4185,14 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4098
4185
  },
4099
4186
  /**
4100
4187
  *
4101
- * @summary set the Organization default security
4188
+ * @summary Set the Organization default security
4102
4189
  * @param {string} organizationId the Organization identifier
4103
- * @param {string} body the new Organization default security.
4190
+ * @param {OrganizationRole} organizationRole the new Organization default security.
4104
4191
  * @param {*} [options] Override http request option.
4105
4192
  * @throws {RequiredError}
4106
4193
  */
4107
- async setOrganizationDefaultSecurity(organizationId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
4108
- const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, body, options);
4194
+ async setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationSecurity>> {
4195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultSecurity(organizationId, organizationRole, options);
4109
4196
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4110
4197
  },
4111
4198
  /**
@@ -4131,6 +4218,19 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
4131
4218
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(organizationId, organization, options);
4132
4219
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4133
4220
  },
4221
+ /**
4222
+ *
4223
+ * @summary Update the specified access to User for an Organization
4224
+ * @param {string} organizationId the Organization identifier
4225
+ * @param {string} identityId the User identifier
4226
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
4227
+ * @param {*} [options] Override http request option.
4228
+ * @throws {RequiredError}
4229
+ */
4230
+ async updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAccessControl>> {
4231
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options);
4232
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4233
+ },
4134
4234
  /**
4135
4235
  *
4136
4236
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -4179,7 +4279,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4179
4279
  return {
4180
4280
  /**
4181
4281
  *
4182
- * @summary add a control acccess to the Organization
4282
+ * @summary Add a control access to the Organization
4183
4283
  * @param {string} organizationId the Organization identifier
4184
4284
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
4185
4285
  * @param {*} [options] Override http request option.
@@ -4218,7 +4318,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4218
4318
  },
4219
4319
  /**
4220
4320
  *
4221
- * @summary get a control acccess for the Organization
4321
+ * @summary Get a control access for the Organization
4222
4322
  * @param {string} organizationId the Organization identifier
4223
4323
  * @param {string} identityId the User identifier
4224
4324
  * @param {*} [options] Override http request option.
@@ -4251,7 +4351,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4251
4351
  /**
4252
4352
  *
4253
4353
  * @summary Get the Organization security users list
4254
- * @param {string} organizationId the Organization identifier
4354
+ * @param {string} organizationId The Organization identifier
4255
4355
  * @param {*} [options] Override http request option.
4256
4356
  * @throws {RequiredError}
4257
4357
  */
@@ -4281,14 +4381,14 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4281
4381
  },
4282
4382
  /**
4283
4383
  *
4284
- * @summary set the Organization default security
4384
+ * @summary Set the Organization default security
4285
4385
  * @param {string} organizationId the Organization identifier
4286
- * @param {string} body the new Organization default security.
4386
+ * @param {OrganizationRole} organizationRole the new Organization default security.
4287
4387
  * @param {*} [options] Override http request option.
4288
4388
  * @throws {RequiredError}
4289
4389
  */
4290
- setOrganizationDefaultSecurity(organizationId: string, body: string, options?: any): AxiosPromise<OrganizationSecurity> {
4291
- return localVarFp.setOrganizationDefaultSecurity(organizationId, body, options).then((request) => request(axios, basePath));
4390
+ setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationSecurity> {
4391
+ return localVarFp.setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(axios, basePath));
4292
4392
  },
4293
4393
  /**
4294
4394
  *
@@ -4311,6 +4411,18 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4311
4411
  updateOrganization(organizationId: string, organization: Organization, options?: any): AxiosPromise<Organization> {
4312
4412
  return localVarFp.updateOrganization(organizationId, organization, options).then((request) => request(axios, basePath));
4313
4413
  },
4414
+ /**
4415
+ *
4416
+ * @summary Update the specified access to User for an Organization
4417
+ * @param {string} organizationId the Organization identifier
4418
+ * @param {string} identityId the User identifier
4419
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
4420
+ * @param {*} [options] Override http request option.
4421
+ * @throws {RequiredError}
4422
+ */
4423
+ updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: any): AxiosPromise<OrganizationAccessControl> {
4424
+ return localVarFp.updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(axios, basePath));
4425
+ },
4314
4426
  /**
4315
4427
  *
4316
4428
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -4356,7 +4468,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
4356
4468
  export class OrganizationApi extends BaseAPI {
4357
4469
  /**
4358
4470
  *
4359
- * @summary add a control acccess to the Organization
4471
+ * @summary Add a control access to the Organization
4360
4472
  * @param {string} organizationId the Organization identifier
4361
4473
  * @param {OrganizationAccessControl} organizationAccessControl the new Organization security access to add.
4362
4474
  * @param {*} [options] Override http request option.
@@ -4403,7 +4515,7 @@ export class OrganizationApi extends BaseAPI {
4403
4515
 
4404
4516
  /**
4405
4517
  *
4406
- * @summary get a control acccess for the Organization
4518
+ * @summary Get a control access for the Organization
4407
4519
  * @param {string} organizationId the Organization identifier
4408
4520
  * @param {string} identityId the User identifier
4409
4521
  * @param {*} [options] Override http request option.
@@ -4442,7 +4554,7 @@ export class OrganizationApi extends BaseAPI {
4442
4554
  /**
4443
4555
  *
4444
4556
  * @summary Get the Organization security users list
4445
- * @param {string} organizationId the Organization identifier
4557
+ * @param {string} organizationId The Organization identifier
4446
4558
  * @param {*} [options] Override http request option.
4447
4559
  * @throws {RequiredError}
4448
4560
  * @memberof OrganizationApi
@@ -4478,15 +4590,15 @@ export class OrganizationApi extends BaseAPI {
4478
4590
 
4479
4591
  /**
4480
4592
  *
4481
- * @summary set the Organization default security
4593
+ * @summary Set the Organization default security
4482
4594
  * @param {string} organizationId the Organization identifier
4483
- * @param {string} body the new Organization default security.
4595
+ * @param {OrganizationRole} organizationRole the new Organization default security.
4484
4596
  * @param {*} [options] Override http request option.
4485
4597
  * @throws {RequiredError}
4486
4598
  * @memberof OrganizationApi
4487
4599
  */
4488
- public setOrganizationDefaultSecurity(organizationId: string, body: string, options?: AxiosRequestConfig) {
4489
- return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, body, options).then((request) => request(this.axios, this.basePath));
4600
+ public setOrganizationDefaultSecurity(organizationId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
4601
+ return OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then((request) => request(this.axios, this.basePath));
4490
4602
  }
4491
4603
 
4492
4604
  /**
@@ -4514,6 +4626,20 @@ export class OrganizationApi extends BaseAPI {
4514
4626
  return OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then((request) => request(this.axios, this.basePath));
4515
4627
  }
4516
4628
 
4629
+ /**
4630
+ *
4631
+ * @summary Update the specified access to User for an Organization
4632
+ * @param {string} organizationId the Organization identifier
4633
+ * @param {string} identityId the User identifier
4634
+ * @param {OrganizationRole} organizationRole The new Organization Access Control
4635
+ * @param {*} [options] Override http request option.
4636
+ * @throws {RequiredError}
4637
+ * @memberof OrganizationApi
4638
+ */
4639
+ public updateOrganizationAccessControl(organizationId: string, identityId: string, organizationRole: OrganizationRole, options?: AxiosRequestConfig) {
4640
+ return OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then((request) => request(this.axios, this.basePath));
4641
+ }
4642
+
4517
4643
  /**
4518
4644
  *
4519
4645
  * @summary Update the solutions container registry configuration for the Organization specified
@@ -4615,7 +4741,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
4615
4741
  },
4616
4742
  /**
4617
4743
  *
4618
- * @summary add a control acccess to the Scenario
4744
+ * @summary Add a control access to the Scenario
4619
4745
  * @param {string} organizationId the Organization identifier
4620
4746
  * @param {string} workspaceId the Workspace identifier
4621
4747
  * @param {string} scenarioId the Scenario identifier
@@ -5038,7 +5164,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5038
5164
  },
5039
5165
  /**
5040
5166
  *
5041
- * @summary get a control acccess for the Scenario
5167
+ * @summary Get a control access for the Scenario
5042
5168
  * @param {string} organizationId the Organization identifier
5043
5169
  * @param {string} workspaceId the Workspace identifier
5044
5170
  * @param {string} scenarioId the Scenario identifier
@@ -5460,23 +5586,23 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5460
5586
  },
5461
5587
  /**
5462
5588
  *
5463
- * @summary set the Scenario default security
5589
+ * @summary Set the Scenario default security
5464
5590
  * @param {string} organizationId the Organization identifier
5465
5591
  * @param {string} workspaceId the Workspace identifier
5466
5592
  * @param {string} scenarioId the Scenario identifier
5467
- * @param {string} body the new Scenario default security.
5593
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
5468
5594
  * @param {*} [options] Override http request option.
5469
5595
  * @throws {RequiredError}
5470
5596
  */
5471
- setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5597
+ setScenarioDefaultSecurity: async (organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5472
5598
  // verify required parameter 'organizationId' is not null or undefined
5473
5599
  assertParamExists('setScenarioDefaultSecurity', 'organizationId', organizationId)
5474
5600
  // verify required parameter 'workspaceId' is not null or undefined
5475
5601
  assertParamExists('setScenarioDefaultSecurity', 'workspaceId', workspaceId)
5476
5602
  // verify required parameter 'scenarioId' is not null or undefined
5477
5603
  assertParamExists('setScenarioDefaultSecurity', 'scenarioId', scenarioId)
5478
- // verify required parameter 'body' is not null or undefined
5479
- assertParamExists('setScenarioDefaultSecurity', 'body', body)
5604
+ // verify required parameter 'scenarioRole' is not null or undefined
5605
+ assertParamExists('setScenarioDefaultSecurity', 'scenarioRole', scenarioRole)
5480
5606
  const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/default`
5481
5607
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
5482
5608
  .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
@@ -5503,7 +5629,7 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5503
5629
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5504
5630
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5505
5631
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5506
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
5632
+ localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
5507
5633
 
5508
5634
  return {
5509
5635
  url: toPathString(localVarUrlObj),
@@ -5557,6 +5683,62 @@ export const ScenarioApiAxiosParamCreator = function (configuration?: Configurat
5557
5683
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5558
5684
  localVarRequestOptions.data = serializeDataIfNeeded(scenario, localVarRequestOptions, configuration)
5559
5685
 
5686
+ return {
5687
+ url: toPathString(localVarUrlObj),
5688
+ options: localVarRequestOptions,
5689
+ };
5690
+ },
5691
+ /**
5692
+ *
5693
+ * @summary Update the specified access to User for a Scenario
5694
+ * @param {string} organizationId the Organization identifier
5695
+ * @param {string} workspaceId the Workspace identifier
5696
+ * @param {string} scenarioId the Scenario identifier
5697
+ * @param {string} identityId the User identifier
5698
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
5699
+ * @param {*} [options] Override http request option.
5700
+ * @throws {RequiredError}
5701
+ */
5702
+ updateScenarioAccessControl: async (organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5703
+ // verify required parameter 'organizationId' is not null or undefined
5704
+ assertParamExists('updateScenarioAccessControl', 'organizationId', organizationId)
5705
+ // verify required parameter 'workspaceId' is not null or undefined
5706
+ assertParamExists('updateScenarioAccessControl', 'workspaceId', workspaceId)
5707
+ // verify required parameter 'scenarioId' is not null or undefined
5708
+ assertParamExists('updateScenarioAccessControl', 'scenarioId', scenarioId)
5709
+ // verify required parameter 'identityId' is not null or undefined
5710
+ assertParamExists('updateScenarioAccessControl', 'identityId', identityId)
5711
+ // verify required parameter 'scenarioRole' is not null or undefined
5712
+ assertParamExists('updateScenarioAccessControl', 'scenarioRole', scenarioRole)
5713
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}`
5714
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
5715
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
5716
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
5717
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
5718
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5719
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5720
+ let baseOptions;
5721
+ if (configuration) {
5722
+ baseOptions = configuration.baseOptions;
5723
+ }
5724
+
5725
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5726
+ const localVarHeaderParameter = {} as any;
5727
+ const localVarQueryParameter = {} as any;
5728
+
5729
+ // authentication oAuth2AuthCode required
5730
+ // oauth required
5731
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
5732
+
5733
+
5734
+
5735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5736
+
5737
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5738
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5739
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5740
+ localVarRequestOptions.data = serializeDataIfNeeded(scenarioRole, localVarRequestOptions, configuration)
5741
+
5560
5742
  return {
5561
5743
  url: toPathString(localVarUrlObj),
5562
5744
  options: localVarRequestOptions,
@@ -5588,7 +5770,7 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
5588
5770
  },
5589
5771
  /**
5590
5772
  *
5591
- * @summary add a control acccess to the Scenario
5773
+ * @summary Add a control access to the Scenario
5592
5774
  * @param {string} organizationId the Organization identifier
5593
5775
  * @param {string} workspaceId the Workspace identifier
5594
5776
  * @param {string} scenarioId the Scenario identifier
@@ -5706,7 +5888,7 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
5706
5888
  },
5707
5889
  /**
5708
5890
  *
5709
- * @summary get a control acccess for the Scenario
5891
+ * @summary Get a control access for the Scenario
5710
5892
  * @param {string} organizationId the Organization identifier
5711
5893
  * @param {string} workspaceId the Workspace identifier
5712
5894
  * @param {string} scenarioId the Scenario identifier
@@ -5825,16 +6007,16 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
5825
6007
  },
5826
6008
  /**
5827
6009
  *
5828
- * @summary set the Scenario default security
6010
+ * @summary Set the Scenario default security
5829
6011
  * @param {string} organizationId the Organization identifier
5830
6012
  * @param {string} workspaceId the Workspace identifier
5831
6013
  * @param {string} scenarioId the Scenario identifier
5832
- * @param {string} body the new Scenario default security.
6014
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
5833
6015
  * @param {*} [options] Override http request option.
5834
6016
  * @throws {RequiredError}
5835
6017
  */
5836
- async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
5837
- const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options);
6018
+ async setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioSecurity>> {
6019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options);
5838
6020
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5839
6021
  },
5840
6022
  /**
@@ -5851,6 +6033,21 @@ export const ScenarioApiFp = function(configuration?: Configuration) {
5851
6033
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenario(organizationId, workspaceId, scenarioId, scenario, options);
5852
6034
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5853
6035
  },
6036
+ /**
6037
+ *
6038
+ * @summary Update the specified access to User for a Scenario
6039
+ * @param {string} organizationId the Organization identifier
6040
+ * @param {string} workspaceId the Workspace identifier
6041
+ * @param {string} scenarioId the Scenario identifier
6042
+ * @param {string} identityId the User identifier
6043
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
6044
+ * @param {*} [options] Override http request option.
6045
+ * @throws {RequiredError}
6046
+ */
6047
+ async updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioAccessControl>> {
6048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options);
6049
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6050
+ },
5854
6051
  }
5855
6052
  };
5856
6053
 
@@ -5876,7 +6073,7 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
5876
6073
  },
5877
6074
  /**
5878
6075
  *
5879
- * @summary add a control acccess to the Scenario
6076
+ * @summary Add a control access to the Scenario
5880
6077
  * @param {string} organizationId the Organization identifier
5881
6078
  * @param {string} workspaceId the Workspace identifier
5882
6079
  * @param {string} scenarioId the Scenario identifier
@@ -5985,7 +6182,7 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
5985
6182
  },
5986
6183
  /**
5987
6184
  *
5988
- * @summary get a control acccess for the Scenario
6185
+ * @summary Get a control access for the Scenario
5989
6186
  * @param {string} organizationId the Organization identifier
5990
6187
  * @param {string} workspaceId the Workspace identifier
5991
6188
  * @param {string} scenarioId the Scenario identifier
@@ -6095,16 +6292,16 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6095
6292
  },
6096
6293
  /**
6097
6294
  *
6098
- * @summary set the Scenario default security
6295
+ * @summary Set the Scenario default security
6099
6296
  * @param {string} organizationId the Organization identifier
6100
6297
  * @param {string} workspaceId the Workspace identifier
6101
6298
  * @param {string} scenarioId the Scenario identifier
6102
- * @param {string} body the new Scenario default security.
6299
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
6103
6300
  * @param {*} [options] Override http request option.
6104
6301
  * @throws {RequiredError}
6105
6302
  */
6106
- setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: any): AxiosPromise<ScenarioSecurity> {
6107
- return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then((request) => request(axios, basePath));
6303
+ setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioSecurity> {
6304
+ return localVarFp.setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(axios, basePath));
6108
6305
  },
6109
6306
  /**
6110
6307
  *
@@ -6119,6 +6316,20 @@ export const ScenarioApiFactory = function (configuration?: Configuration, baseP
6119
6316
  updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: any): AxiosPromise<Scenario> {
6120
6317
  return localVarFp.updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(axios, basePath));
6121
6318
  },
6319
+ /**
6320
+ *
6321
+ * @summary Update the specified access to User for a Scenario
6322
+ * @param {string} organizationId the Organization identifier
6323
+ * @param {string} workspaceId the Workspace identifier
6324
+ * @param {string} scenarioId the Scenario identifier
6325
+ * @param {string} identityId the User identifier
6326
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
6327
+ * @param {*} [options] Override http request option.
6328
+ * @throws {RequiredError}
6329
+ */
6330
+ updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: any): AxiosPromise<ScenarioAccessControl> {
6331
+ return localVarFp.updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(axios, basePath));
6332
+ },
6122
6333
  };
6123
6334
  };
6124
6335
 
@@ -6146,7 +6357,7 @@ export class ScenarioApi extends BaseAPI {
6146
6357
 
6147
6358
  /**
6148
6359
  *
6149
- * @summary add a control acccess to the Scenario
6360
+ * @summary Add a control access to the Scenario
6150
6361
  * @param {string} organizationId the Organization identifier
6151
6362
  * @param {string} workspaceId the Workspace identifier
6152
6363
  * @param {string} scenarioId the Scenario identifier
@@ -6273,7 +6484,7 @@ export class ScenarioApi extends BaseAPI {
6273
6484
 
6274
6485
  /**
6275
6486
  *
6276
- * @summary get a control acccess for the Scenario
6487
+ * @summary Get a control access for the Scenario
6277
6488
  * @param {string} organizationId the Organization identifier
6278
6489
  * @param {string} workspaceId the Workspace identifier
6279
6490
  * @param {string} scenarioId the Scenario identifier
@@ -6401,17 +6612,17 @@ export class ScenarioApi extends BaseAPI {
6401
6612
 
6402
6613
  /**
6403
6614
  *
6404
- * @summary set the Scenario default security
6615
+ * @summary Set the Scenario default security
6405
6616
  * @param {string} organizationId the Organization identifier
6406
6617
  * @param {string} workspaceId the Workspace identifier
6407
6618
  * @param {string} scenarioId the Scenario identifier
6408
- * @param {string} body the new Scenario default security.
6619
+ * @param {ScenarioRole} scenarioRole the new Scenario default security.
6409
6620
  * @param {*} [options] Override http request option.
6410
6621
  * @throws {RequiredError}
6411
6622
  * @memberof ScenarioApi
6412
6623
  */
6413
- public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, body: string, options?: AxiosRequestConfig) {
6414
- return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, body, options).then((request) => request(this.axios, this.basePath));
6624
+ public setScenarioDefaultSecurity(organizationId: string, workspaceId: string, scenarioId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
6625
+ return ScenarioApiFp(this.configuration).setScenarioDefaultSecurity(organizationId, workspaceId, scenarioId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
6415
6626
  }
6416
6627
 
6417
6628
  /**
@@ -6428,6 +6639,22 @@ export class ScenarioApi extends BaseAPI {
6428
6639
  public updateScenario(organizationId: string, workspaceId: string, scenarioId: string, scenario: Scenario, options?: AxiosRequestConfig) {
6429
6640
  return ScenarioApiFp(this.configuration).updateScenario(organizationId, workspaceId, scenarioId, scenario, options).then((request) => request(this.axios, this.basePath));
6430
6641
  }
6642
+
6643
+ /**
6644
+ *
6645
+ * @summary Update the specified access to User for a Scenario
6646
+ * @param {string} organizationId the Organization identifier
6647
+ * @param {string} workspaceId the Workspace identifier
6648
+ * @param {string} scenarioId the Scenario identifier
6649
+ * @param {string} identityId the User identifier
6650
+ * @param {ScenarioRole} scenarioRole The new Scenario Access Control
6651
+ * @param {*} [options] Override http request option.
6652
+ * @throws {RequiredError}
6653
+ * @memberof ScenarioApi
6654
+ */
6655
+ public updateScenarioAccessControl(organizationId: string, workspaceId: string, scenarioId: string, identityId: string, scenarioRole: ScenarioRole, options?: AxiosRequestConfig) {
6656
+ return ScenarioApiFp(this.configuration).updateScenarioAccessControl(organizationId, workspaceId, scenarioId, identityId, scenarioRole, options).then((request) => request(this.axios, this.basePath));
6657
+ }
6431
6658
  }
6432
6659
 
6433
6660
 
@@ -10321,7 +10548,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
10321
10548
  return {
10322
10549
  /**
10323
10550
  *
10324
- * @summary add a control acccess to the Workspace
10551
+ * @summary Add a control access to the Workspace
10325
10552
  * @param {string} organizationId the Organization identifier
10326
10553
  * @param {string} workspaceId the Workspace identifier
10327
10554
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -10717,7 +10944,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
10717
10944
  },
10718
10945
  /**
10719
10946
  *
10720
- * @summary get a control acccess for the Workspace
10947
+ * @summary Get a control access for the Workspace
10721
10948
  * @param {string} organizationId the Organization identifier
10722
10949
  * @param {string} workspaceId the Workspace identifier
10723
10950
  * @param {string} identityId the User identifier
@@ -10939,20 +11166,20 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
10939
11166
  },
10940
11167
  /**
10941
11168
  *
10942
- * @summary set the Workspace default security
11169
+ * @summary Set the Workspace default security
10943
11170
  * @param {string} organizationId the Organization identifier
10944
11171
  * @param {string} workspaceId the Workspace identifier
10945
- * @param {string} body the new Workspace default security.
11172
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
10946
11173
  * @param {*} [options] Override http request option.
10947
11174
  * @throws {RequiredError}
10948
11175
  */
10949
- setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string, body: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11176
+ setWorkspaceDefaultSecurity: async (organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10950
11177
  // verify required parameter 'organizationId' is not null or undefined
10951
11178
  assertParamExists('setWorkspaceDefaultSecurity', 'organizationId', organizationId)
10952
11179
  // verify required parameter 'workspaceId' is not null or undefined
10953
11180
  assertParamExists('setWorkspaceDefaultSecurity', 'workspaceId', workspaceId)
10954
- // verify required parameter 'body' is not null or undefined
10955
- assertParamExists('setWorkspaceDefaultSecurity', 'body', body)
11181
+ // verify required parameter 'workspaceRole' is not null or undefined
11182
+ assertParamExists('setWorkspaceDefaultSecurity', 'workspaceRole', workspaceRole)
10956
11183
  const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/default`
10957
11184
  .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
10958
11185
  .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
@@ -10978,7 +11205,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
10978
11205
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10979
11206
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10980
11207
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10981
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
11208
+ localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
10982
11209
 
10983
11210
  return {
10984
11211
  url: toPathString(localVarUrlObj),
@@ -10990,7 +11217,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
10990
11217
  * @summary Update a workspace
10991
11218
  * @param {string} organizationId the Organization identifier
10992
11219
  * @param {string} workspaceId the Workspace identifier
10993
- * @param {Workspace} workspace the new Workspace details.
11220
+ * @param {Workspace} workspace The new Workspace details.
10994
11221
  * @param {*} [options] Override http request option.
10995
11222
  * @throws {RequiredError}
10996
11223
  */
@@ -11033,6 +11260,58 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
11033
11260
  options: localVarRequestOptions,
11034
11261
  };
11035
11262
  },
11263
+ /**
11264
+ *
11265
+ * @summary Update the specified access to User for a Workspace
11266
+ * @param {string} organizationId the Organization identifier
11267
+ * @param {string} workspaceId the Workspace identifier
11268
+ * @param {string} identityId the User identifier
11269
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11270
+ * @param {*} [options] Override http request option.
11271
+ * @throws {RequiredError}
11272
+ */
11273
+ updateWorkspaceAccessControl: async (organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11274
+ // verify required parameter 'organizationId' is not null or undefined
11275
+ assertParamExists('updateWorkspaceAccessControl', 'organizationId', organizationId)
11276
+ // verify required parameter 'workspaceId' is not null or undefined
11277
+ assertParamExists('updateWorkspaceAccessControl', 'workspaceId', workspaceId)
11278
+ // verify required parameter 'identityId' is not null or undefined
11279
+ assertParamExists('updateWorkspaceAccessControl', 'identityId', identityId)
11280
+ // verify required parameter 'workspaceRole' is not null or undefined
11281
+ assertParamExists('updateWorkspaceAccessControl', 'workspaceRole', workspaceRole)
11282
+ const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id}`
11283
+ .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
11284
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
11285
+ .replace(`{${"identity_id"}}`, encodeURIComponent(String(identityId)));
11286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11288
+ let baseOptions;
11289
+ if (configuration) {
11290
+ baseOptions = configuration.baseOptions;
11291
+ }
11292
+
11293
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11294
+ const localVarHeaderParameter = {} as any;
11295
+ const localVarQueryParameter = {} as any;
11296
+
11297
+ // authentication oAuth2AuthCode required
11298
+ // oauth required
11299
+ await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
11300
+
11301
+
11302
+
11303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11304
+
11305
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11306
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11307
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11308
+ localVarRequestOptions.data = serializeDataIfNeeded(workspaceRole, localVarRequestOptions, configuration)
11309
+
11310
+ return {
11311
+ url: toPathString(localVarUrlObj),
11312
+ options: localVarRequestOptions,
11313
+ };
11314
+ },
11036
11315
  /**
11037
11316
  *
11038
11317
  * @summary Upload a file for the Workspace
@@ -11108,7 +11387,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11108
11387
  return {
11109
11388
  /**
11110
11389
  *
11111
- * @summary add a control acccess to the Workspace
11390
+ * @summary Add a control access to the Workspace
11112
11391
  * @param {string} organizationId the Organization identifier
11113
11392
  * @param {string} workspaceId the Workspace identifier
11114
11393
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -11218,7 +11497,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11218
11497
  },
11219
11498
  /**
11220
11499
  *
11221
- * @summary get a control acccess for the Workspace
11500
+ * @summary Get a control access for the Workspace
11222
11501
  * @param {string} organizationId the Organization identifier
11223
11502
  * @param {string} workspaceId the Workspace identifier
11224
11503
  * @param {string} identityId the User identifier
@@ -11281,15 +11560,15 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11281
11560
  },
11282
11561
  /**
11283
11562
  *
11284
- * @summary set the Workspace default security
11563
+ * @summary Set the Workspace default security
11285
11564
  * @param {string} organizationId the Organization identifier
11286
11565
  * @param {string} workspaceId the Workspace identifier
11287
- * @param {string} body the new Workspace default security.
11566
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
11288
11567
  * @param {*} [options] Override http request option.
11289
11568
  * @throws {RequiredError}
11290
11569
  */
11291
- async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
11292
- const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options);
11570
+ async setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceSecurity>> {
11571
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options);
11293
11572
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11294
11573
  },
11295
11574
  /**
@@ -11297,7 +11576,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11297
11576
  * @summary Update a workspace
11298
11577
  * @param {string} organizationId the Organization identifier
11299
11578
  * @param {string} workspaceId the Workspace identifier
11300
- * @param {Workspace} workspace the new Workspace details.
11579
+ * @param {Workspace} workspace The new Workspace details.
11301
11580
  * @param {*} [options] Override http request option.
11302
11581
  * @throws {RequiredError}
11303
11582
  */
@@ -11305,6 +11584,20 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
11305
11584
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspace(organizationId, workspaceId, workspace, options);
11306
11585
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11307
11586
  },
11587
+ /**
11588
+ *
11589
+ * @summary Update the specified access to User for a Workspace
11590
+ * @param {string} organizationId the Organization identifier
11591
+ * @param {string} workspaceId the Workspace identifier
11592
+ * @param {string} identityId the User identifier
11593
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11594
+ * @param {*} [options] Override http request option.
11595
+ * @throws {RequiredError}
11596
+ */
11597
+ async updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceAccessControl>> {
11598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options);
11599
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11600
+ },
11308
11601
  /**
11309
11602
  *
11310
11603
  * @summary Upload a file for the Workspace
@@ -11332,7 +11625,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
11332
11625
  return {
11333
11626
  /**
11334
11627
  *
11335
- * @summary add a control acccess to the Workspace
11628
+ * @summary Add a control access to the Workspace
11336
11629
  * @param {string} organizationId the Organization identifier
11337
11630
  * @param {string} workspaceId the Workspace identifier
11338
11631
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -11433,7 +11726,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
11433
11726
  },
11434
11727
  /**
11435
11728
  *
11436
- * @summary get a control acccess for the Workspace
11729
+ * @summary Get a control access for the Workspace
11437
11730
  * @param {string} organizationId the Organization identifier
11438
11731
  * @param {string} workspaceId the Workspace identifier
11439
11732
  * @param {string} identityId the User identifier
@@ -11491,28 +11784,41 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
11491
11784
  },
11492
11785
  /**
11493
11786
  *
11494
- * @summary set the Workspace default security
11787
+ * @summary Set the Workspace default security
11495
11788
  * @param {string} organizationId the Organization identifier
11496
11789
  * @param {string} workspaceId the Workspace identifier
11497
- * @param {string} body the new Workspace default security.
11790
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
11498
11791
  * @param {*} [options] Override http request option.
11499
11792
  * @throws {RequiredError}
11500
11793
  */
11501
- setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: any): AxiosPromise<WorkspaceSecurity> {
11502
- return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then((request) => request(axios, basePath));
11794
+ setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceSecurity> {
11795
+ return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(axios, basePath));
11503
11796
  },
11504
11797
  /**
11505
11798
  *
11506
11799
  * @summary Update a workspace
11507
11800
  * @param {string} organizationId the Organization identifier
11508
11801
  * @param {string} workspaceId the Workspace identifier
11509
- * @param {Workspace} workspace the new Workspace details.
11802
+ * @param {Workspace} workspace The new Workspace details.
11510
11803
  * @param {*} [options] Override http request option.
11511
11804
  * @throws {RequiredError}
11512
11805
  */
11513
11806
  updateWorkspace(organizationId: string, workspaceId: string, workspace: Workspace, options?: any): AxiosPromise<Workspace> {
11514
11807
  return localVarFp.updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(axios, basePath));
11515
11808
  },
11809
+ /**
11810
+ *
11811
+ * @summary Update the specified access to User for a Workspace
11812
+ * @param {string} organizationId the Organization identifier
11813
+ * @param {string} workspaceId the Workspace identifier
11814
+ * @param {string} identityId the User identifier
11815
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
11816
+ * @param {*} [options] Override http request option.
11817
+ * @throws {RequiredError}
11818
+ */
11819
+ updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: any): AxiosPromise<WorkspaceAccessControl> {
11820
+ return localVarFp.updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(axios, basePath));
11821
+ },
11516
11822
  /**
11517
11823
  *
11518
11824
  * @summary Upload a file for the Workspace
@@ -11539,7 +11845,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
11539
11845
  export class WorkspaceApi extends BaseAPI {
11540
11846
  /**
11541
11847
  *
11542
- * @summary add a control acccess to the Workspace
11848
+ * @summary Add a control access to the Workspace
11543
11849
  * @param {string} organizationId the Organization identifier
11544
11850
  * @param {string} workspaceId the Workspace identifier
11545
11851
  * @param {WorkspaceAccessControl} workspaceAccessControl the new Workspace security access to add.
@@ -11658,7 +11964,7 @@ export class WorkspaceApi extends BaseAPI {
11658
11964
 
11659
11965
  /**
11660
11966
  *
11661
- * @summary get a control acccess for the Workspace
11967
+ * @summary Get a control access for the Workspace
11662
11968
  * @param {string} organizationId the Organization identifier
11663
11969
  * @param {string} workspaceId the Workspace identifier
11664
11970
  * @param {string} identityId the User identifier
@@ -11726,16 +12032,16 @@ export class WorkspaceApi extends BaseAPI {
11726
12032
 
11727
12033
  /**
11728
12034
  *
11729
- * @summary set the Workspace default security
12035
+ * @summary Set the Workspace default security
11730
12036
  * @param {string} organizationId the Organization identifier
11731
12037
  * @param {string} workspaceId the Workspace identifier
11732
- * @param {string} body the new Workspace default security.
12038
+ * @param {WorkspaceRole} workspaceRole the new Workspace default security.
11733
12039
  * @param {*} [options] Override http request option.
11734
12040
  * @throws {RequiredError}
11735
12041
  * @memberof WorkspaceApi
11736
12042
  */
11737
- public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, body: string, options?: AxiosRequestConfig) {
11738
- return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, body, options).then((request) => request(this.axios, this.basePath));
12043
+ public setWorkspaceDefaultSecurity(organizationId: string, workspaceId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
12044
+ return WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
11739
12045
  }
11740
12046
 
11741
12047
  /**
@@ -11743,7 +12049,7 @@ export class WorkspaceApi extends BaseAPI {
11743
12049
  * @summary Update a workspace
11744
12050
  * @param {string} organizationId the Organization identifier
11745
12051
  * @param {string} workspaceId the Workspace identifier
11746
- * @param {Workspace} workspace the new Workspace details.
12052
+ * @param {Workspace} workspace The new Workspace details.
11747
12053
  * @param {*} [options] Override http request option.
11748
12054
  * @throws {RequiredError}
11749
12055
  * @memberof WorkspaceApi
@@ -11752,6 +12058,21 @@ export class WorkspaceApi extends BaseAPI {
11752
12058
  return WorkspaceApiFp(this.configuration).updateWorkspace(organizationId, workspaceId, workspace, options).then((request) => request(this.axios, this.basePath));
11753
12059
  }
11754
12060
 
12061
+ /**
12062
+ *
12063
+ * @summary Update the specified access to User for a Workspace
12064
+ * @param {string} organizationId the Organization identifier
12065
+ * @param {string} workspaceId the Workspace identifier
12066
+ * @param {string} identityId the User identifier
12067
+ * @param {WorkspaceRole} workspaceRole The new Workspace Access Control
12068
+ * @param {*} [options] Override http request option.
12069
+ * @throws {RequiredError}
12070
+ * @memberof WorkspaceApi
12071
+ */
12072
+ public updateWorkspaceAccessControl(organizationId: string, workspaceId: string, identityId: string, workspaceRole: WorkspaceRole, options?: AxiosRequestConfig) {
12073
+ return WorkspaceApiFp(this.configuration).updateWorkspaceAccessControl(organizationId, workspaceId, identityId, workspaceRole, options).then((request) => request(this.axios, this.basePath));
12074
+ }
12075
+
11755
12076
  /**
11756
12077
  *
11757
12078
  * @summary Upload a file for the Workspace