@emilgroup/tenant-sdk-node 1.39.1-beta.4 → 1.39.1-beta.41

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 (119) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/README.md +2 -2
  3. package/api/ssoconnection-api.ts +793 -0
  4. package/api/ssoid-pgroups-api.ts +803 -0
  5. package/api/user-controller-rest-api.ts +4 -4
  6. package/api/users-api.ts +4 -4
  7. package/api.ts +4 -0
  8. package/dist/api/ssoconnection-api.d.ts +434 -0
  9. package/dist/api/ssoconnection-api.js +784 -0
  10. package/dist/api/ssoid-pgroups-api.d.ts +451 -0
  11. package/dist/api/ssoid-pgroups-api.js +739 -0
  12. package/dist/api/user-controller-rest-api.d.ts +4 -4
  13. package/dist/api/user-controller-rest-api.js +3 -3
  14. package/dist/api/users-api.d.ts +4 -4
  15. package/dist/api/users-api.js +3 -3
  16. package/dist/api.d.ts +2 -0
  17. package/dist/api.js +2 -0
  18. package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
  19. package/dist/models/create-admin-tenant-request-dto.js +5 -0
  20. package/dist/models/create-sso-connection-request-dto.d.ts +66 -0
  21. package/dist/models/create-sso-connection-request-dto.js +23 -0
  22. package/dist/models/create-sso-connection-response-class.d.ts +25 -0
  23. package/dist/models/create-sso-connection-response-class.js +15 -0
  24. package/dist/models/create-sso-idp-group-request-dto.d.ts +36 -0
  25. package/dist/models/create-sso-idp-group-request-dto.js +15 -0
  26. package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
  27. package/dist/models/create-sso-idp-group-response-class.js +15 -0
  28. package/dist/models/create-tenant-request-dto.d.ts +11 -0
  29. package/dist/models/create-tenant-request-dto.js +5 -0
  30. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  31. package/dist/models/delete-by-code-response-class.js +15 -0
  32. package/dist/models/get-sso-connection-response-class.d.ts +25 -0
  33. package/dist/models/get-sso-connection-response-class.js +15 -0
  34. package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
  35. package/dist/models/get-sso-connection-setup-response-class.js +15 -0
  36. package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
  37. package/dist/models/get-sso-idp-group-response-class.js +15 -0
  38. package/dist/models/index.d.ts +30 -0
  39. package/dist/models/index.js +30 -0
  40. package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
  41. package/dist/models/list-sso-idp-groups-response-class.js +15 -0
  42. package/dist/models/oidc-sso-details-input-dto.d.ts +36 -0
  43. package/dist/models/oidc-sso-details-input-dto.js +15 -0
  44. package/dist/models/oidc-sso-details-update-dto.d.ts +36 -0
  45. package/dist/models/oidc-sso-details-update-dto.js +15 -0
  46. package/dist/models/oidc-sso-setup-class.d.ts +31 -0
  47. package/dist/models/oidc-sso-setup-class.js +15 -0
  48. package/dist/models/saml-sso-details-dto.d.ts +24 -0
  49. package/dist/models/saml-sso-details-dto.js +15 -0
  50. package/dist/models/saml-sso-setup-class.d.ts +37 -0
  51. package/dist/models/saml-sso-setup-class.js +15 -0
  52. package/dist/models/shared-oidc-sso-details-class.d.ts +36 -0
  53. package/dist/models/shared-oidc-sso-details-class.js +15 -0
  54. package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
  55. package/dist/models/shared-saml-sso-details-class.js +15 -0
  56. package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
  57. package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
  58. package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
  59. package/dist/models/sso-attribute-mapping-dto.js +15 -0
  60. package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
  61. package/dist/models/sso-attribute-mapping-template-class.js +15 -0
  62. package/dist/models/sso-connection-class.d.ts +102 -0
  63. package/dist/models/sso-connection-class.js +23 -0
  64. package/dist/models/sso-connection-setup-class.d.ts +32 -0
  65. package/dist/models/sso-connection-setup-class.js +15 -0
  66. package/dist/models/sso-idp-group-class.d.ts +72 -0
  67. package/dist/models/sso-idp-group-class.js +15 -0
  68. package/dist/models/update-sso-connection-body-dto.d.ts +45 -0
  69. package/dist/models/update-sso-connection-body-dto.js +15 -0
  70. package/dist/models/update-sso-connection-response-class.d.ts +25 -0
  71. package/dist/models/update-sso-connection-response-class.js +15 -0
  72. package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
  73. package/dist/models/update-sso-connection-status-body-dto.js +15 -0
  74. package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
  75. package/dist/models/update-sso-connection-status-response-class.js +15 -0
  76. package/dist/models/update-sso-idp-group-body-dto.d.ts +30 -0
  77. package/dist/models/update-sso-idp-group-body-dto.js +15 -0
  78. package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
  79. package/dist/models/update-sso-idp-group-response-class.js +15 -0
  80. package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
  81. package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
  82. package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
  83. package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
  84. package/dist/models/user-class.d.ts +7 -0
  85. package/models/create-admin-tenant-request-dto.ts +14 -0
  86. package/models/create-sso-connection-request-dto.ts +76 -0
  87. package/models/create-sso-connection-response-class.ts +31 -0
  88. package/models/create-sso-idp-group-request-dto.ts +42 -0
  89. package/models/create-sso-idp-group-response-class.ts +31 -0
  90. package/models/create-tenant-request-dto.ts +14 -0
  91. package/models/delete-by-code-response-class.ts +30 -0
  92. package/models/get-sso-connection-response-class.ts +31 -0
  93. package/models/get-sso-connection-setup-response-class.ts +31 -0
  94. package/models/get-sso-idp-group-response-class.ts +31 -0
  95. package/models/index.ts +30 -0
  96. package/models/list-sso-idp-groups-response-class.ts +49 -0
  97. package/models/oidc-sso-details-input-dto.ts +42 -0
  98. package/models/oidc-sso-details-update-dto.ts +42 -0
  99. package/models/oidc-sso-setup-class.ts +37 -0
  100. package/models/saml-sso-details-dto.ts +30 -0
  101. package/models/saml-sso-setup-class.ts +43 -0
  102. package/models/shared-oidc-sso-details-class.ts +42 -0
  103. package/models/shared-saml-sso-details-class.ts +30 -0
  104. package/models/shared-sso-attribute-mapping-class.ts +36 -0
  105. package/models/sso-attribute-mapping-dto.ts +36 -0
  106. package/models/sso-attribute-mapping-template-class.ts +42 -0
  107. package/models/sso-connection-class.ts +112 -0
  108. package/models/sso-connection-setup-class.ts +38 -0
  109. package/models/sso-idp-group-class.ts +78 -0
  110. package/models/update-sso-connection-body-dto.ts +51 -0
  111. package/models/update-sso-connection-response-class.ts +31 -0
  112. package/models/update-sso-connection-status-body-dto.ts +30 -0
  113. package/models/update-sso-connection-status-response-class.ts +31 -0
  114. package/models/update-sso-idp-group-body-dto.ts +36 -0
  115. package/models/update-sso-idp-group-response-class.ts +31 -0
  116. package/models/update-sso-idp-group-status-body-dto.ts +30 -0
  117. package/models/update-sso-idp-group-status-response-class.ts +31 -0
  118. package/models/user-class.ts +7 -0
  119. package/package.json +1 -1
@@ -0,0 +1,793 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateSsoConnectionRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateSsoConnectionResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetSsoConnectionResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { GetSsoConnectionSetupResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateSsoConnectionBodyDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateSsoConnectionResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { UpdateSsoConnectionStatusBodyDto } from '../models';
39
+ // @ts-ignore
40
+ import { UpdateSsoConnectionStatusResponseClass } from '../models';
41
+ // URLSearchParams not necessarily used
42
+ // @ts-ignore
43
+ import { URL, URLSearchParams } from 'url';
44
+ const FormData = require('form-data');
45
+ /**
46
+ * SSOConnectionApi - axios parameter creator
47
+ * @export
48
+ */
49
+ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Configuration) {
50
+ return {
51
+ /**
52
+ * Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
53
+ * @summary Create the tenant\'s SSO connection
54
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ createSsoConnection: async (createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
60
+ // verify required parameter 'createSsoConnectionRequestDto' is not null or undefined
61
+ assertParamExists('createSsoConnection', 'createSsoConnectionRequestDto', createSsoConnectionRequestDto)
62
+ const localVarPath = `/tenantservice/v1/sso-connection`;
63
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65
+ let baseOptions;
66
+ let baseAccessToken;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ baseAccessToken = configuration.accessToken;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication bearer required
77
+ // http bearer authentication required
78
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
79
+
80
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
81
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ }
83
+
84
+
85
+
86
+ localVarHeaderParameter['Content-Type'] = 'application/json';
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+ localVarRequestOptions.data = serializeDataIfNeeded(createSsoConnectionRequestDto, localVarRequestOptions, configuration)
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ * 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\"
100
+ * @summary Delete the tenant\'s SSO connection
101
+ * @param {string} code Connection code.
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deleteSsoConnection: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'code' is not null or undefined
108
+ assertParamExists('deleteSsoConnection', 'code', code)
109
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
110
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ let baseAccessToken;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * 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\"
145
+ * @summary Read the tenant\'s current SSO connection
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ getCurrentSsoConnection: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ const localVarPath = `/tenantservice/v1/sso-connection/current`;
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ let baseAccessToken;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ baseAccessToken = configuration.accessToken;
159
+ }
160
+
161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
+ const localVarHeaderParameter = {} as any;
163
+ const localVarQueryParameter = {} as any;
164
+
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
171
+ }
172
+
173
+
174
+
175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
178
+
179
+ return {
180
+ url: toPathString(localVarUrlObj),
181
+ options: localVarRequestOptions,
182
+ };
183
+ },
184
+ /**
185
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
186
+ * @summary Read the tenant\'s SSO connection
187
+ * @param {string} code Connection code.
188
+ * @param {string} [authorization] Bearer Token
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ getSsoConnection: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ // verify required parameter 'code' is not null or undefined
194
+ assertParamExists('getSsoConnection', 'code', code)
195
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
196
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ let baseAccessToken;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ baseAccessToken = configuration.accessToken;
204
+ }
205
+
206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
+ const localVarHeaderParameter = {} as any;
208
+ const localVarQueryParameter = {} as any;
209
+
210
+ // authentication bearer required
211
+ // http bearer authentication required
212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
+
214
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
+ }
217
+
218
+
219
+
220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
223
+
224
+ return {
225
+ url: toPathString(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ },
229
+ /**
230
+ * Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
231
+ * @summary Read the values an SSO connection is created with
232
+ * @param {string} [authorization] Bearer Token
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ getSsoConnectionSetup: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ const localVarPath = `/tenantservice/v1/sso-connection`;
238
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
+ let baseOptions;
241
+ let baseAccessToken;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ baseAccessToken = configuration.accessToken;
245
+ }
246
+
247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
248
+ const localVarHeaderParameter = {} as any;
249
+ const localVarQueryParameter = {} as any;
250
+
251
+ // authentication bearer required
252
+ // http bearer authentication required
253
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
254
+
255
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
256
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
257
+ }
258
+
259
+
260
+
261
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
263
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
264
+
265
+ return {
266
+ url: toPathString(localVarUrlObj),
267
+ options: localVarRequestOptions,
268
+ };
269
+ },
270
+ /**
271
+ * Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
272
+ * @summary Edit the tenant\'s SSO connection
273
+ * @param {string} code Connection code.
274
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
275
+ * @param {string} [authorization] Bearer Token
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ updateSsoConnection: async (code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
+ // verify required parameter 'code' is not null or undefined
281
+ assertParamExists('updateSsoConnection', 'code', code)
282
+ // verify required parameter 'updateSsoConnectionBodyDto' is not null or undefined
283
+ assertParamExists('updateSsoConnection', 'updateSsoConnectionBodyDto', updateSsoConnectionBodyDto)
284
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
285
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
288
+ let baseOptions;
289
+ let baseAccessToken;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ baseAccessToken = configuration.accessToken;
293
+ }
294
+
295
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
296
+ const localVarHeaderParameter = {} as any;
297
+ const localVarQueryParameter = {} as any;
298
+
299
+ // authentication bearer required
300
+ // http bearer authentication required
301
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
302
+
303
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
304
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ }
306
+
307
+
308
+
309
+ localVarHeaderParameter['Content-Type'] = 'application/json';
310
+
311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
314
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionBodyDto, localVarRequestOptions, configuration)
315
+
316
+ return {
317
+ url: toPathString(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ };
320
+ },
321
+ /**
322
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
323
+ * @summary Switch the tenant\'s SSO connection on or off
324
+ * @param {string} code Connection code.
325
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
326
+ * @param {string} [authorization] Bearer Token
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ updateSsoConnectionStatus: async (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
331
+ // verify required parameter 'code' is not null or undefined
332
+ assertParamExists('updateSsoConnectionStatus', 'code', code)
333
+ // verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
334
+ assertParamExists('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto)
335
+ const localVarPath = `/tenantservice/v1/sso-connection/{code}`
336
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
339
+ let baseOptions;
340
+ let baseAccessToken;
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ baseAccessToken = configuration.accessToken;
344
+ }
345
+
346
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
347
+ const localVarHeaderParameter = {} as any;
348
+ const localVarQueryParameter = {} as any;
349
+
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
353
+
354
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
355
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
356
+ }
357
+
358
+
359
+
360
+ localVarHeaderParameter['Content-Type'] = 'application/json';
361
+
362
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
365
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration)
366
+
367
+ return {
368
+ url: toPathString(localVarUrlObj),
369
+ options: localVarRequestOptions,
370
+ };
371
+ },
372
+ }
373
+ };
374
+
375
+ /**
376
+ * SSOConnectionApi - functional programming interface
377
+ * @export
378
+ */
379
+ export const SSOConnectionApiFp = function(configuration?: Configuration) {
380
+ const localVarAxiosParamCreator = SSOConnectionApiAxiosParamCreator(configuration)
381
+ return {
382
+ /**
383
+ * Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
384
+ * @summary Create the tenant\'s SSO connection
385
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
386
+ * @param {string} [authorization] Bearer Token
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ async createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSsoConnectionResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSsoConnection(createSsoConnectionRequestDto, authorization, options);
392
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
+ },
394
+ /**
395
+ * 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\"
396
+ * @summary Delete the tenant\'s SSO connection
397
+ * @param {string} code Connection code.
398
+ * @param {string} [authorization] Bearer Token
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ async deleteSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSsoConnection(code, authorization, options);
404
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
405
+ },
406
+ /**
407
+ * 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\"
408
+ * @summary Read the tenant\'s current SSO connection
409
+ * @param {string} [authorization] Bearer Token
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ async getCurrentSsoConnection(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>> {
414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentSsoConnection(authorization, options);
415
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
416
+ },
417
+ /**
418
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
419
+ * @summary Read the tenant\'s SSO connection
420
+ * @param {string} code Connection code.
421
+ * @param {string} [authorization] Bearer Token
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ async getSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>> {
426
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoConnection(code, authorization, options);
427
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
+ },
429
+ /**
430
+ * Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
431
+ * @summary Read the values an SSO connection is created with
432
+ * @param {string} [authorization] Bearer Token
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ async getSsoConnectionSetup(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionSetupResponseClass>> {
437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoConnectionSetup(authorization, options);
438
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
439
+ },
440
+ /**
441
+ * Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
442
+ * @summary Edit the tenant\'s SSO connection
443
+ * @param {string} code Connection code.
444
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
445
+ * @param {string} [authorization] Bearer Token
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ async updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionResponseClass>> {
450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options);
451
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
452
+ },
453
+ /**
454
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
455
+ * @summary Switch the tenant\'s SSO connection on or off
456
+ * @param {string} code Connection code.
457
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
458
+ * @param {string} [authorization] Bearer Token
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ async updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>> {
463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options);
464
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
465
+ },
466
+ }
467
+ };
468
+
469
+ /**
470
+ * SSOConnectionApi - factory interface
471
+ * @export
472
+ */
473
+ export const SSOConnectionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
474
+ const localVarFp = SSOConnectionApiFp(configuration)
475
+ return {
476
+ /**
477
+ * Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
478
+ * @summary Create the tenant\'s SSO connection
479
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
480
+ * @param {string} [authorization] Bearer Token
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSsoConnectionResponseClass> {
485
+ return localVarFp.createSsoConnection(createSsoConnectionRequestDto, authorization, options).then((request) => request(axios, basePath));
486
+ },
487
+ /**
488
+ * 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\"
489
+ * @summary Delete the tenant\'s SSO connection
490
+ * @param {string} code Connection code.
491
+ * @param {string} [authorization] Bearer Token
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ deleteSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
496
+ return localVarFp.deleteSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
497
+ },
498
+ /**
499
+ * 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\"
500
+ * @summary Read the tenant\'s current SSO connection
501
+ * @param {string} [authorization] Bearer Token
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ getCurrentSsoConnection(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
506
+ return localVarFp.getCurrentSsoConnection(authorization, options).then((request) => request(axios, basePath));
507
+ },
508
+ /**
509
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
510
+ * @summary Read the tenant\'s SSO connection
511
+ * @param {string} code Connection code.
512
+ * @param {string} [authorization] Bearer Token
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
517
+ return localVarFp.getSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
518
+ },
519
+ /**
520
+ * Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
521
+ * @summary Read the values an SSO connection is created with
522
+ * @param {string} [authorization] Bearer Token
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ getSsoConnectionSetup(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionSetupResponseClass> {
527
+ return localVarFp.getSsoConnectionSetup(authorization, options).then((request) => request(axios, basePath));
528
+ },
529
+ /**
530
+ * Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
531
+ * @summary Edit the tenant\'s SSO connection
532
+ * @param {string} code Connection code.
533
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
534
+ * @param {string} [authorization] Bearer Token
535
+ * @param {*} [options] Override http request option.
536
+ * @throws {RequiredError}
537
+ */
538
+ updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionResponseClass> {
539
+ return localVarFp.updateSsoConnection(code, updateSsoConnectionBodyDto, authorization, options).then((request) => request(axios, basePath));
540
+ },
541
+ /**
542
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
543
+ * @summary Switch the tenant\'s SSO connection on or off
544
+ * @param {string} code Connection code.
545
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
546
+ * @param {string} [authorization] Bearer Token
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass> {
551
+ return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then((request) => request(axios, basePath));
552
+ },
553
+ };
554
+ };
555
+
556
+ /**
557
+ * Request parameters for createSsoConnection operation in SSOConnectionApi.
558
+ * @export
559
+ * @interface SSOConnectionApiCreateSsoConnectionRequest
560
+ */
561
+ export interface SSOConnectionApiCreateSsoConnectionRequest {
562
+ /**
563
+ *
564
+ * @type {CreateSsoConnectionRequestDto}
565
+ * @memberof SSOConnectionApiCreateSsoConnection
566
+ */
567
+ readonly createSsoConnectionRequestDto: CreateSsoConnectionRequestDto
568
+
569
+ /**
570
+ * Bearer Token
571
+ * @type {string}
572
+ * @memberof SSOConnectionApiCreateSsoConnection
573
+ */
574
+ readonly authorization?: string
575
+ }
576
+
577
+ /**
578
+ * Request parameters for deleteSsoConnection operation in SSOConnectionApi.
579
+ * @export
580
+ * @interface SSOConnectionApiDeleteSsoConnectionRequest
581
+ */
582
+ export interface SSOConnectionApiDeleteSsoConnectionRequest {
583
+ /**
584
+ * Connection code.
585
+ * @type {string}
586
+ * @memberof SSOConnectionApiDeleteSsoConnection
587
+ */
588
+ readonly code: string
589
+
590
+ /**
591
+ * Bearer Token
592
+ * @type {string}
593
+ * @memberof SSOConnectionApiDeleteSsoConnection
594
+ */
595
+ readonly authorization?: string
596
+ }
597
+
598
+ /**
599
+ * Request parameters for getCurrentSsoConnection operation in SSOConnectionApi.
600
+ * @export
601
+ * @interface SSOConnectionApiGetCurrentSsoConnectionRequest
602
+ */
603
+ export interface SSOConnectionApiGetCurrentSsoConnectionRequest {
604
+ /**
605
+ * Bearer Token
606
+ * @type {string}
607
+ * @memberof SSOConnectionApiGetCurrentSsoConnection
608
+ */
609
+ readonly authorization?: string
610
+ }
611
+
612
+ /**
613
+ * Request parameters for getSsoConnection operation in SSOConnectionApi.
614
+ * @export
615
+ * @interface SSOConnectionApiGetSsoConnectionRequest
616
+ */
617
+ export interface SSOConnectionApiGetSsoConnectionRequest {
618
+ /**
619
+ * Connection code.
620
+ * @type {string}
621
+ * @memberof SSOConnectionApiGetSsoConnection
622
+ */
623
+ readonly code: string
624
+
625
+ /**
626
+ * Bearer Token
627
+ * @type {string}
628
+ * @memberof SSOConnectionApiGetSsoConnection
629
+ */
630
+ readonly authorization?: string
631
+ }
632
+
633
+ /**
634
+ * Request parameters for getSsoConnectionSetup operation in SSOConnectionApi.
635
+ * @export
636
+ * @interface SSOConnectionApiGetSsoConnectionSetupRequest
637
+ */
638
+ export interface SSOConnectionApiGetSsoConnectionSetupRequest {
639
+ /**
640
+ * Bearer Token
641
+ * @type {string}
642
+ * @memberof SSOConnectionApiGetSsoConnectionSetup
643
+ */
644
+ readonly authorization?: string
645
+ }
646
+
647
+ /**
648
+ * Request parameters for updateSsoConnection operation in SSOConnectionApi.
649
+ * @export
650
+ * @interface SSOConnectionApiUpdateSsoConnectionRequest
651
+ */
652
+ export interface SSOConnectionApiUpdateSsoConnectionRequest {
653
+ /**
654
+ * Connection code.
655
+ * @type {string}
656
+ * @memberof SSOConnectionApiUpdateSsoConnection
657
+ */
658
+ readonly code: string
659
+
660
+ /**
661
+ *
662
+ * @type {UpdateSsoConnectionBodyDto}
663
+ * @memberof SSOConnectionApiUpdateSsoConnection
664
+ */
665
+ readonly updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto
666
+
667
+ /**
668
+ * Bearer Token
669
+ * @type {string}
670
+ * @memberof SSOConnectionApiUpdateSsoConnection
671
+ */
672
+ readonly authorization?: string
673
+ }
674
+
675
+ /**
676
+ * Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
677
+ * @export
678
+ * @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
679
+ */
680
+ export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
681
+ /**
682
+ * Connection code.
683
+ * @type {string}
684
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
685
+ */
686
+ readonly code: string
687
+
688
+ /**
689
+ *
690
+ * @type {UpdateSsoConnectionStatusBodyDto}
691
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
692
+ */
693
+ readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto
694
+
695
+ /**
696
+ * Bearer Token
697
+ * @type {string}
698
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
699
+ */
700
+ readonly authorization?: string
701
+ }
702
+
703
+ /**
704
+ * SSOConnectionApi - object-oriented interface
705
+ * @export
706
+ * @class SSOConnectionApi
707
+ * @extends {BaseAPI}
708
+ */
709
+ export class SSOConnectionApi extends BaseAPI {
710
+ /**
711
+ * Validates the identity provider data, stores the configuration, and prepares the tenant\'s Cognito user pool for the mapped claims. The connection is created inactive: activating it is a separate action. One connection per tenant. **Required Permissions** \"tenant-management.settings.create\"
712
+ * @summary Create the tenant\'s SSO connection
713
+ * @param {SSOConnectionApiCreateSsoConnectionRequest} requestParameters Request parameters.
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ * @memberof SSOConnectionApi
717
+ */
718
+ public createSsoConnection(requestParameters: SSOConnectionApiCreateSsoConnectionRequest, options?: AxiosRequestConfig) {
719
+ return SSOConnectionApiFp(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
720
+ }
721
+
722
+ /**
723
+ * 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\"
724
+ * @summary Delete the tenant\'s SSO connection
725
+ * @param {SSOConnectionApiDeleteSsoConnectionRequest} requestParameters Request parameters.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ * @memberof SSOConnectionApi
729
+ */
730
+ public deleteSsoConnection(requestParameters: SSOConnectionApiDeleteSsoConnectionRequest, options?: AxiosRequestConfig) {
731
+ return SSOConnectionApiFp(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
732
+ }
733
+
734
+ /**
735
+ * 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\"
736
+ * @summary Read the tenant\'s current SSO connection
737
+ * @param {SSOConnectionApiGetCurrentSsoConnectionRequest} requestParameters Request parameters.
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ * @memberof SSOConnectionApi
741
+ */
742
+ public getCurrentSsoConnection(requestParameters: SSOConnectionApiGetCurrentSsoConnectionRequest = {}, options?: AxiosRequestConfig) {
743
+ return SSOConnectionApiFp(this.configuration).getCurrentSsoConnection(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
744
+ }
745
+
746
+ /**
747
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"tenant-management.settings.view\"
748
+ * @summary Read the tenant\'s SSO connection
749
+ * @param {SSOConnectionApiGetSsoConnectionRequest} requestParameters Request parameters.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ * @memberof SSOConnectionApi
753
+ */
754
+ public getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig) {
755
+ return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
756
+ }
757
+
758
+ /**
759
+ * Returns what the creation form with required data. **Required Permissions** \"tenant-management.settings.create\"
760
+ * @summary Read the values an SSO connection is created with
761
+ * @param {SSOConnectionApiGetSsoConnectionSetupRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ * @memberof SSOConnectionApi
765
+ */
766
+ public getSsoConnectionSetup(requestParameters: SSOConnectionApiGetSsoConnectionSetupRequest = {}, options?: AxiosRequestConfig) {
767
+ return SSOConnectionApiFp(this.configuration).getSsoConnectionSetup(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
768
+ }
769
+
770
+ /**
771
+ * Replaces the display name, identity provider details and the claim mapping. The protocol and the provider 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\"
772
+ * @summary Edit the tenant\'s SSO connection
773
+ * @param {SSOConnectionApiUpdateSsoConnectionRequest} requestParameters Request parameters.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ * @memberof SSOConnectionApi
777
+ */
778
+ public updateSsoConnection(requestParameters: SSOConnectionApiUpdateSsoConnectionRequest, options?: AxiosRequestConfig) {
779
+ return SSOConnectionApiFp(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
780
+ }
781
+
782
+ /**
783
+ * Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
784
+ * @summary Switch the tenant\'s SSO connection on or off
785
+ * @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ * @memberof SSOConnectionApi
789
+ */
790
+ public updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig) {
791
+ return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
792
+ }
793
+ }