@emilgroup/tenant-sdk 1.42.1-beta.23 → 1.42.1-beta.25

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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/ssoconnection-api.ts +431 -0
  4. package/dist/api/ssoconnection-api.d.ts +234 -0
  5. package/dist/api/ssoconnection-api.js +377 -0
  6. package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
  7. package/dist/models/create-admin-tenant-request-dto.js +5 -0
  8. package/dist/models/create-tenant-request-dto.d.ts +11 -0
  9. package/dist/models/create-tenant-request-dto.js +5 -0
  10. package/dist/models/index.d.ts +5 -0
  11. package/dist/models/index.js +5 -0
  12. package/dist/models/oidc-sso-details-update-dto.d.ts +36 -0
  13. package/dist/models/oidc-sso-details-update-dto.js +15 -0
  14. package/dist/models/update-sso-connection-body-dto.d.ts +39 -0
  15. package/dist/models/update-sso-connection-body-dto.js +15 -0
  16. package/dist/models/update-sso-connection-response-class.d.ts +25 -0
  17. package/dist/models/update-sso-connection-response-class.js +15 -0
  18. package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
  19. package/dist/models/update-sso-connection-status-body-dto.js +15 -0
  20. package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
  21. package/dist/models/update-sso-connection-status-response-class.js +15 -0
  22. package/models/create-admin-tenant-request-dto.ts +14 -0
  23. package/models/create-tenant-request-dto.ts +14 -0
  24. package/models/index.ts +5 -0
  25. package/models/oidc-sso-details-update-dto.ts +42 -0
  26. package/models/update-sso-connection-body-dto.ts +45 -0
  27. package/models/update-sso-connection-response-class.ts +31 -0
  28. package/models/update-sso-connection-status-body-dto.ts +30 -0
  29. package/models/update-sso-connection-status-response-class.ts +31 -0
  30. package/package.json +1 -1
@@ -118,6 +118,7 @@ models/list-user-group-members-response-class.ts
118
118
  models/list-user-groups-response-class.ts
119
119
  models/list-users-response-class.ts
120
120
  models/oidc-sso-details-input-dto.ts
121
+ models/oidc-sso-details-update-dto.ts
121
122
  models/org-invitation-class.ts
122
123
  models/org-invitation-response-class.ts
123
124
  models/organization-class.ts
@@ -163,6 +164,10 @@ models/update-organization-request-dto-rest.ts
163
164
  models/update-organization-response-class.ts
164
165
  models/update-report-schedule-request-dto.ts
165
166
  models/update-report-schedule-response-class.ts
167
+ models/update-sso-connection-body-dto.ts
168
+ models/update-sso-connection-response-class.ts
169
+ models/update-sso-connection-status-body-dto.ts
170
+ models/update-sso-connection-status-response-class.ts
166
171
  models/update-user-group-request-dto.ts
167
172
  models/update-user-group-response-class.ts
168
173
  models/user-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk@1.42.1-beta.23 --save
20
+ npm install @emilgroup/tenant-sdk@1.42.1-beta.25 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.42.1-beta.23
24
+ yarn add @emilgroup/tenant-sdk@1.42.1-beta.25
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -25,7 +25,17 @@ import { CreateSsoConnectionRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateSsoConnectionResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { GetSsoConnectionResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateSsoConnectionBodyDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateSsoConnectionResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateSsoConnectionStatusBodyDto } from '../models';
37
+ // @ts-ignore
38
+ import { UpdateSsoConnectionStatusResponseClass } from '../models';
29
39
  /**
30
40
  * SSOConnectionApi - axios parameter creator
31
41
  * @export
@@ -79,6 +89,92 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
79
89
  options: localVarRequestOptions,
80
90
  };
81
91
  },
92
+ /**
93
+ * Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
94
+ * @summary Delete the tenant\'s SSO connection
95
+ * @param {string} code Connection code.
96
+ * @param {string} [authorization] Bearer Token
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteSsoConnection: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteSsoConnection', 'code', code)
103
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
139
+ * @summary Read the tenant\'s current SSO connection
140
+ * @param {string} [authorization] Bearer Token
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getCurrentSsoConnection: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ const localVarPath = `/tenantservice/v1/sso-connection/current`;
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
82
178
  /**
83
179
  * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
84
180
  * @summary Read the tenant\'s SSO connection
@@ -119,6 +215,108 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
119
215
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
216
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
121
217
 
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ },
223
+ /**
224
+ * Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
225
+ * @summary Edit the tenant\'s SSO connection
226
+ * @param {string} code Connection code.
227
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
228
+ * @param {string} [authorization] Bearer Token
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ updateSsoConnection: async (code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
233
+ // verify required parameter 'code' is not null or undefined
234
+ assertParamExists('updateSsoConnection', 'code', code)
235
+ // verify required parameter 'updateSsoConnectionBodyDto' is not null or undefined
236
+ assertParamExists('updateSsoConnection', 'updateSsoConnectionBodyDto', updateSsoConnectionBodyDto)
237
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
238
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ let baseAccessToken;
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ baseAccessToken = configuration.accessToken;
246
+ }
247
+
248
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
249
+ const localVarHeaderParameter = {} as any;
250
+ const localVarQueryParameter = {} as any;
251
+
252
+ // authentication bearer required
253
+ // http bearer authentication required
254
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
255
+
256
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
257
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
258
+ }
259
+
260
+
261
+
262
+ localVarHeaderParameter['Content-Type'] = 'application/json';
263
+
264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
267
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionBodyDto, localVarRequestOptions, configuration)
268
+
269
+ return {
270
+ url: toPathString(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ },
274
+ /**
275
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
276
+ * @summary Switch the tenant\'s SSO connection on or off
277
+ * @param {string} code Connection code.
278
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
279
+ * @param {string} [authorization] Bearer Token
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ updateSsoConnectionStatus: async (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
+ // verify required parameter 'code' is not null or undefined
285
+ assertParamExists('updateSsoConnectionStatus', 'code', code)
286
+ // verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
287
+ assertParamExists('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto)
288
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
289
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
292
+ let baseOptions;
293
+ let baseAccessToken;
294
+ if (configuration) {
295
+ baseOptions = configuration.baseOptions;
296
+ baseAccessToken = configuration.accessToken;
297
+ }
298
+
299
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
300
+ const localVarHeaderParameter = {} as any;
301
+ const localVarQueryParameter = {} as any;
302
+
303
+ // authentication bearer required
304
+ // http bearer authentication required
305
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
306
+
307
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
308
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ }
310
+
311
+
312
+
313
+ localVarHeaderParameter['Content-Type'] = 'application/json';
314
+
315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
318
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration)
319
+
122
320
  return {
123
321
  url: toPathString(localVarUrlObj),
124
322
  options: localVarRequestOptions,
@@ -146,6 +344,29 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
146
344
  const localVarAxiosArgs = await localVarAxiosParamCreator.createSsoConnection(createSsoConnectionRequestDto, authorization, options);
147
345
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
148
346
  },
347
+ /**
348
+ * Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
349
+ * @summary Delete the tenant\'s SSO connection
350
+ * @param {string} code Connection code.
351
+ * @param {string} [authorization] Bearer Token
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async deleteSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSsoConnection(code, authorization, options);
357
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
+ },
359
+ /**
360
+ * Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
361
+ * @summary Read the tenant\'s current SSO connection
362
+ * @param {string} [authorization] Bearer Token
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ async getCurrentSsoConnection(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentSsoConnection(authorization, options);
368
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
+ },
149
370
  /**
150
371
  * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
151
372
  * @summary Read the tenant\'s SSO connection
@@ -158,6 +379,32 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
158
379
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoConnection(code, authorization, options);
159
380
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
160
381
  },
382
+ /**
383
+ * Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
384
+ * @summary Edit the tenant\'s SSO connection
385
+ * @param {string} code Connection code.
386
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
387
+ * @param {string} [authorization] Bearer Token
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ async updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionResponseClass>> {
392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options);
393
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
394
+ },
395
+ /**
396
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
397
+ * @summary Switch the tenant\'s SSO connection on or off
398
+ * @param {string} code Connection code.
399
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
400
+ * @param {string} [authorization] Bearer Token
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ async updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>> {
405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options);
406
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
407
+ },
161
408
  }
162
409
  };
163
410
 
@@ -179,6 +426,27 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
179
426
  createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSsoConnectionResponseClass> {
180
427
  return localVarFp.createSsoConnection(createSsoConnectionRequestDto, authorization, options).then((request) => request(axios, basePath));
181
428
  },
429
+ /**
430
+ * Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
431
+ * @summary Delete the tenant\'s SSO connection
432
+ * @param {string} code Connection code.
433
+ * @param {string} [authorization] Bearer Token
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ deleteSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
438
+ return localVarFp.deleteSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
439
+ },
440
+ /**
441
+ * Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
442
+ * @summary Read the tenant\'s current SSO connection
443
+ * @param {string} [authorization] Bearer Token
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ getCurrentSsoConnection(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
448
+ return localVarFp.getCurrentSsoConnection(authorization, options).then((request) => request(axios, basePath));
449
+ },
182
450
  /**
183
451
  * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
184
452
  * @summary Read the tenant\'s SSO connection
@@ -190,6 +458,30 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
190
458
  getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
191
459
  return localVarFp.getSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
192
460
  },
461
+ /**
462
+ * Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
463
+ * @summary Edit the tenant\'s SSO connection
464
+ * @param {string} code Connection code.
465
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
466
+ * @param {string} [authorization] Bearer Token
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionResponseClass> {
471
+ return localVarFp.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options).then((request) => request(axios, basePath));
472
+ },
473
+ /**
474
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
475
+ * @summary Switch the tenant\'s SSO connection on or off
476
+ * @param {string} code Connection code.
477
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
478
+ * @param {string} [authorization] Bearer Token
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass> {
483
+ return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then((request) => request(axios, basePath));
484
+ },
193
485
  };
194
486
  };
195
487
 
@@ -214,6 +506,41 @@ export interface SSOConnectionApiCreateSsoConnectionRequest {
214
506
  readonly authorization?: string
215
507
  }
216
508
 
509
+ /**
510
+ * Request parameters for deleteSsoConnection operation in SSOConnectionApi.
511
+ * @export
512
+ * @interface SSOConnectionApiDeleteSsoConnectionRequest
513
+ */
514
+ export interface SSOConnectionApiDeleteSsoConnectionRequest {
515
+ /**
516
+ * Connection code.
517
+ * @type {string}
518
+ * @memberof SSOConnectionApiDeleteSsoConnection
519
+ */
520
+ readonly code: string
521
+
522
+ /**
523
+ * Bearer Token
524
+ * @type {string}
525
+ * @memberof SSOConnectionApiDeleteSsoConnection
526
+ */
527
+ readonly authorization?: string
528
+ }
529
+
530
+ /**
531
+ * Request parameters for getCurrentSsoConnection operation in SSOConnectionApi.
532
+ * @export
533
+ * @interface SSOConnectionApiGetCurrentSsoConnectionRequest
534
+ */
535
+ export interface SSOConnectionApiGetCurrentSsoConnectionRequest {
536
+ /**
537
+ * Bearer Token
538
+ * @type {string}
539
+ * @memberof SSOConnectionApiGetCurrentSsoConnection
540
+ */
541
+ readonly authorization?: string
542
+ }
543
+
217
544
  /**
218
545
  * Request parameters for getSsoConnection operation in SSOConnectionApi.
219
546
  * @export
@@ -235,6 +562,62 @@ export interface SSOConnectionApiGetSsoConnectionRequest {
235
562
  readonly authorization?: string
236
563
  }
237
564
 
565
+ /**
566
+ * Request parameters for updateSsoConnection operation in SSOConnectionApi.
567
+ * @export
568
+ * @interface SSOConnectionApiUpdateSsoConnectionRequest
569
+ */
570
+ export interface SSOConnectionApiUpdateSsoConnectionRequest {
571
+ /**
572
+ * Connection code.
573
+ * @type {string}
574
+ * @memberof SSOConnectionApiUpdateSsoConnection
575
+ */
576
+ readonly code: string
577
+
578
+ /**
579
+ *
580
+ * @type {UpdateSsoConnectionBodyDto}
581
+ * @memberof SSOConnectionApiUpdateSsoConnection
582
+ */
583
+ readonly updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto
584
+
585
+ /**
586
+ * Bearer Token
587
+ * @type {string}
588
+ * @memberof SSOConnectionApiUpdateSsoConnection
589
+ */
590
+ readonly authorization?: string
591
+ }
592
+
593
+ /**
594
+ * Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
595
+ * @export
596
+ * @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
597
+ */
598
+ export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
599
+ /**
600
+ * Connection code.
601
+ * @type {string}
602
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
603
+ */
604
+ readonly code: string
605
+
606
+ /**
607
+ *
608
+ * @type {UpdateSsoConnectionStatusBodyDto}
609
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
610
+ */
611
+ readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto
612
+
613
+ /**
614
+ * Bearer Token
615
+ * @type {string}
616
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
617
+ */
618
+ readonly authorization?: string
619
+ }
620
+
238
621
  /**
239
622
  * SSOConnectionApi - object-oriented interface
240
623
  * @export
@@ -254,6 +637,30 @@ export class SSOConnectionApi extends BaseAPI {
254
637
  return SSOConnectionApiFp(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
255
638
  }
256
639
 
640
+ /**
641
+ * Removes the configuration, so the tenant can be configured again from scratch. Only an inactive connection can be deleted, so deactivate it first: deleting a live one would lock every SSO user out of the tenant. Custom attributes an attribute mapping provisioned stay on the user pool permanently, because Cognito cannot remove them. **Required Permissions** \"tenant-management.settings.delete\"
642
+ * @summary Delete the tenant\'s SSO connection
643
+ * @param {SSOConnectionApiDeleteSsoConnectionRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof SSOConnectionApi
647
+ */
648
+ public deleteSsoConnection(requestParameters: SSOConnectionApiDeleteSsoConnectionRequest, options?: AxiosRequestConfig) {
649
+ return SSOConnectionApiFp(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
+ }
651
+
652
+ /**
653
+ * Returns the SSO connection of the calling tenant. A tenant has at most one connection, so no code has to be known up front. Responds with a not found when the tenant has never configured one. **Required Permissions** \"tenant-management.settings.view\"
654
+ * @summary Read the tenant\'s current SSO connection
655
+ * @param {SSOConnectionApiGetCurrentSsoConnectionRequest} requestParameters Request parameters.
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ * @memberof SSOConnectionApi
659
+ */
660
+ public getCurrentSsoConnection(requestParameters: SSOConnectionApiGetCurrentSsoConnectionRequest = {}, options?: AxiosRequestConfig) {
661
+ return SSOConnectionApiFp(this.configuration).getCurrentSsoConnection(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
662
+ }
663
+
257
664
  /**
258
665
  * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
259
666
  * @summary Read the tenant\'s SSO connection
@@ -265,4 +672,28 @@ export class SSOConnectionApi extends BaseAPI {
265
672
  public getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig) {
266
673
  return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
267
674
  }
675
+
676
+ /**
677
+ * Replaces the identity provider details and the claim mapping. The protocol, the provider and the display name are fixed for the lifetime of a connection. Editing is only allowed while the connection is inactive, so deactivate it first. Leaving the OIDC client secret out keeps the stored one, and an edit never activates the connection. **Required Permissions** \"tenant-management.settings.update\"
678
+ * @summary Edit the tenant\'s SSO connection
679
+ * @param {SSOConnectionApiUpdateSsoConnectionRequest} requestParameters Request parameters.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof SSOConnectionApi
683
+ */
684
+ public updateSsoConnection(requestParameters: SSOConnectionApiUpdateSsoConnectionRequest, options?: AxiosRequestConfig) {
685
+ return SSOConnectionApiFp(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
686
+ }
687
+
688
+ /**
689
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
690
+ * @summary Switch the tenant\'s SSO connection on or off
691
+ * @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ * @memberof SSOConnectionApi
695
+ */
696
+ public updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig) {
697
+ return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
698
+ }
268
699
  }