@emilgroup/tenant-sdk 1.42.1-beta.9 → 1.42.1-beta.97

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