@emilgroup/tenant-sdk 1.42.1-beta.13 → 1.42.1-beta.131

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 (198) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +32 -12
  4. package/api/dashboard-api.ts +96 -36
  5. package/api/dashboard-group-api.ts +40 -15
  6. package/api/data-report-api.ts +32 -12
  7. package/api/data-report-executor-api.ts +8 -3
  8. package/api/delete-organization-invitations-api.ts +8 -3
  9. package/api/health-check-api.ts +1 -1
  10. package/api/invitation-controller-rest-api.ts +32 -12
  11. package/api/invite-organizations-api.ts +8 -3
  12. package/api/invite-users-api.ts +40 -20
  13. package/api/list-organization-invitations-api.ts +8 -3
  14. package/api/organization-migration-api.ts +40 -15
  15. package/api/organizations-api.ts +24 -9
  16. package/api/re-invite-an-organization-api.ts +8 -3
  17. package/api/report-schedule-api.ts +40 -15
  18. package/api/report-schedule-logs-api.ts +8 -3
  19. package/api/roles-api.ts +8 -3
  20. package/api/settings-api.ts +32 -12
  21. package/api/ssoconnection-api.ts +824 -0
  22. package/api/ssoid-pgroups-api.ts +829 -0
  23. package/api/user-controller-rest-api.ts +116 -57
  24. package/api/user-group-api.ts +64 -24
  25. package/api/users-api.ts +76 -37
  26. package/api.ts +4 -0
  27. package/base.ts +239 -43
  28. package/common.ts +3 -2
  29. package/configuration.ts +20 -0
  30. package/dist/api/custom-schema-api.d.ts +4 -4
  31. package/dist/api/custom-schema-api.js +52 -30
  32. package/dist/api/dashboard-api.d.ts +12 -12
  33. package/dist/api/dashboard-api.js +176 -95
  34. package/dist/api/dashboard-group-api.d.ts +5 -5
  35. package/dist/api/dashboard-group-api.js +71 -39
  36. package/dist/api/data-report-api.d.ts +4 -4
  37. package/dist/api/data-report-api.js +52 -30
  38. package/dist/api/data-report-executor-api.d.ts +1 -1
  39. package/dist/api/data-report-executor-api.js +15 -8
  40. package/dist/api/delete-organization-invitations-api.d.ts +1 -1
  41. package/dist/api/delete-organization-invitations-api.js +15 -8
  42. package/dist/api/health-check-api.d.ts +1 -1
  43. package/dist/api/health-check-api.js +1 -1
  44. package/dist/api/invitation-controller-rest-api.d.ts +4 -4
  45. package/dist/api/invitation-controller-rest-api.js +56 -31
  46. package/dist/api/invite-organizations-api.d.ts +1 -1
  47. package/dist/api/invite-organizations-api.js +15 -8
  48. package/dist/api/invite-users-api.d.ts +12 -12
  49. package/dist/api/invite-users-api.js +62 -37
  50. package/dist/api/list-organization-invitations-api.d.ts +1 -1
  51. package/dist/api/list-organization-invitations-api.js +11 -7
  52. package/dist/api/organization-migration-api.d.ts +5 -5
  53. package/dist/api/organization-migration-api.js +67 -38
  54. package/dist/api/organizations-api.d.ts +3 -3
  55. package/dist/api/organizations-api.js +41 -23
  56. package/dist/api/re-invite-an-organization-api.d.ts +1 -1
  57. package/dist/api/re-invite-an-organization-api.js +15 -8
  58. package/dist/api/report-schedule-api.d.ts +5 -5
  59. package/dist/api/report-schedule-api.js +67 -38
  60. package/dist/api/report-schedule-logs-api.d.ts +1 -1
  61. package/dist/api/report-schedule-logs-api.js +11 -7
  62. package/dist/api/roles-api.d.ts +1 -1
  63. package/dist/api/roles-api.js +11 -7
  64. package/dist/api/settings-api.d.ts +4 -4
  65. package/dist/api/settings-api.js +52 -30
  66. package/dist/api/ssoconnection-api.d.ts +434 -0
  67. package/dist/api/ssoconnection-api.js +829 -0
  68. package/dist/api/ssoid-pgroups-api.d.ts +451 -0
  69. package/dist/api/ssoid-pgroups-api.js +774 -0
  70. package/dist/api/user-controller-rest-api.d.ts +39 -35
  71. package/dist/api/user-controller-rest-api.js +177 -105
  72. package/dist/api/user-group-api.d.ts +8 -8
  73. package/dist/api/user-group-api.js +112 -62
  74. package/dist/api/users-api.d.ts +27 -23
  75. package/dist/api/users-api.js +115 -68
  76. package/dist/api.d.ts +2 -0
  77. package/dist/api.js +2 -0
  78. package/dist/base.d.ts +26 -0
  79. package/dist/base.js +243 -60
  80. package/dist/common.d.ts +1 -1
  81. package/dist/common.js +1 -0
  82. package/dist/configuration.d.ts +17 -0
  83. package/dist/configuration.js +2 -0
  84. package/dist/models/admin-initial-tenant-config-dto.d.ts +4 -2
  85. package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
  86. package/dist/models/create-admin-tenant-request-dto.js +5 -0
  87. package/dist/models/create-sso-connection-request-dto.d.ts +67 -0
  88. package/dist/models/create-sso-connection-request-dto.js +24 -0
  89. package/dist/models/create-sso-connection-response-class.d.ts +25 -0
  90. package/dist/models/create-sso-connection-response-class.js +15 -0
  91. package/dist/models/create-sso-idp-group-request-dto.d.ts +37 -0
  92. package/dist/models/create-sso-idp-group-request-dto.js +15 -0
  93. package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
  94. package/dist/models/create-sso-idp-group-response-class.js +15 -0
  95. package/dist/models/create-tenant-request-dto.d.ts +11 -0
  96. package/dist/models/create-tenant-request-dto.js +5 -0
  97. package/dist/models/custom-field-dto.d.ts +8 -4
  98. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  99. package/dist/models/delete-by-code-response-class.js +15 -0
  100. package/dist/models/get-sso-connection-response-class.d.ts +25 -0
  101. package/dist/models/get-sso-connection-response-class.js +15 -0
  102. package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
  103. package/dist/models/get-sso-connection-setup-response-class.js +15 -0
  104. package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
  105. package/dist/models/get-sso-idp-group-response-class.js +15 -0
  106. package/dist/models/index.d.ts +31 -0
  107. package/dist/models/index.js +31 -0
  108. package/dist/models/invite-class.d.ts +6 -0
  109. package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
  110. package/dist/models/list-sso-idp-groups-response-class.js +15 -0
  111. package/dist/models/oidc-sso-details-input-dto.d.ts +42 -0
  112. package/dist/models/oidc-sso-details-input-dto.js +15 -0
  113. package/dist/models/oidc-sso-details-update-dto.d.ts +42 -0
  114. package/dist/models/oidc-sso-details-update-dto.js +15 -0
  115. package/dist/models/oidc-sso-setup-class.d.ts +37 -0
  116. package/dist/models/oidc-sso-setup-class.js +15 -0
  117. package/dist/models/org-invitation-class.d.ts +6 -0
  118. package/dist/models/role-class.d.ts +7 -0
  119. package/dist/models/role-source-class.d.ts +35 -0
  120. package/dist/models/role-source-class.js +20 -0
  121. package/dist/models/saml-sso-details-dto.d.ts +24 -0
  122. package/dist/models/saml-sso-details-dto.js +15 -0
  123. package/dist/models/saml-sso-setup-class.d.ts +37 -0
  124. package/dist/models/saml-sso-setup-class.js +15 -0
  125. package/dist/models/shared-oidc-sso-details-class.d.ts +42 -0
  126. package/dist/models/shared-oidc-sso-details-class.js +15 -0
  127. package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
  128. package/dist/models/shared-saml-sso-details-class.js +15 -0
  129. package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
  130. package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
  131. package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
  132. package/dist/models/sso-attribute-mapping-dto.js +15 -0
  133. package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
  134. package/dist/models/sso-attribute-mapping-template-class.js +15 -0
  135. package/dist/models/sso-connection-class.d.ts +103 -0
  136. package/dist/models/sso-connection-class.js +24 -0
  137. package/dist/models/sso-connection-setup-class.d.ts +32 -0
  138. package/dist/models/sso-connection-setup-class.js +15 -0
  139. package/dist/models/sso-idp-group-class.d.ts +73 -0
  140. package/dist/models/sso-idp-group-class.js +15 -0
  141. package/dist/models/update-sso-connection-body-dto.d.ts +45 -0
  142. package/dist/models/update-sso-connection-body-dto.js +15 -0
  143. package/dist/models/update-sso-connection-response-class.d.ts +25 -0
  144. package/dist/models/update-sso-connection-response-class.js +15 -0
  145. package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
  146. package/dist/models/update-sso-connection-status-body-dto.js +15 -0
  147. package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
  148. package/dist/models/update-sso-connection-status-response-class.js +15 -0
  149. package/dist/models/update-sso-idp-group-body-dto.d.ts +31 -0
  150. package/dist/models/update-sso-idp-group-body-dto.js +15 -0
  151. package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
  152. package/dist/models/update-sso-idp-group-response-class.js +15 -0
  153. package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
  154. package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
  155. package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
  156. package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
  157. package/dist/models/user-class.d.ts +7 -0
  158. package/models/admin-initial-tenant-config-dto.ts +2 -2
  159. package/models/create-admin-tenant-request-dto.ts +14 -0
  160. package/models/create-sso-connection-request-dto.ts +77 -0
  161. package/models/create-sso-connection-response-class.ts +31 -0
  162. package/models/create-sso-idp-group-request-dto.ts +43 -0
  163. package/models/create-sso-idp-group-response-class.ts +31 -0
  164. package/models/create-tenant-request-dto.ts +14 -0
  165. package/models/custom-field-dto.ts +4 -4
  166. package/models/delete-by-code-response-class.ts +30 -0
  167. package/models/get-sso-connection-response-class.ts +31 -0
  168. package/models/get-sso-connection-setup-response-class.ts +31 -0
  169. package/models/get-sso-idp-group-response-class.ts +31 -0
  170. package/models/index.ts +31 -0
  171. package/models/invite-class.ts +6 -0
  172. package/models/list-sso-idp-groups-response-class.ts +49 -0
  173. package/models/oidc-sso-details-input-dto.ts +48 -0
  174. package/models/oidc-sso-details-update-dto.ts +48 -0
  175. package/models/oidc-sso-setup-class.ts +43 -0
  176. package/models/org-invitation-class.ts +6 -0
  177. package/models/role-class.ts +7 -0
  178. package/models/role-source-class.ts +44 -0
  179. package/models/saml-sso-details-dto.ts +30 -0
  180. package/models/saml-sso-setup-class.ts +43 -0
  181. package/models/shared-oidc-sso-details-class.ts +48 -0
  182. package/models/shared-saml-sso-details-class.ts +30 -0
  183. package/models/shared-sso-attribute-mapping-class.ts +36 -0
  184. package/models/sso-attribute-mapping-dto.ts +36 -0
  185. package/models/sso-attribute-mapping-template-class.ts +42 -0
  186. package/models/sso-connection-class.ts +113 -0
  187. package/models/sso-connection-setup-class.ts +38 -0
  188. package/models/sso-idp-group-class.ts +79 -0
  189. package/models/update-sso-connection-body-dto.ts +51 -0
  190. package/models/update-sso-connection-response-class.ts +31 -0
  191. package/models/update-sso-connection-status-body-dto.ts +30 -0
  192. package/models/update-sso-connection-status-response-class.ts +31 -0
  193. package/models/update-sso-idp-group-body-dto.ts +37 -0
  194. package/models/update-sso-idp-group-response-class.ts +31 -0
  195. package/models/update-sso-idp-group-status-body-dto.ts +30 -0
  196. package/models/update-sso-idp-group-status-response-class.ts +31 -0
  197. package/models/user-class.ts +7 -0
  198. package/package.json +2 -2
@@ -224,7 +224,7 @@ export declare class SettingsApi extends BaseAPI {
224
224
  * @throws {RequiredError}
225
225
  * @memberof SettingsApi
226
226
  */
227
- getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}>>;
227
+ getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}, any>>;
228
228
  /**
229
229
  * undefined **Required Permissions** \"tenant-management.tenants.view\"
230
230
  * @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
@@ -232,7 +232,7 @@ export declare class SettingsApi extends BaseAPI {
232
232
  * @throws {RequiredError}
233
233
  * @memberof SettingsApi
234
234
  */
235
- getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}>>;
235
+ getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}, any>>;
236
236
  /**
237
237
  * undefined **Required Permissions** \"tenant-management.tenants.update\"
238
238
  * @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
@@ -240,7 +240,7 @@ export declare class SettingsApi extends BaseAPI {
240
240
  * @throws {RequiredError}
241
241
  * @memberof SettingsApi
242
242
  */
243
- setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetTenantSettingResponseClass, any, {}>>;
243
+ setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetTenantSettingResponseClass, any, {}, any>>;
244
244
  /**
245
245
  * undefined **Required Permissions** \"tenant-management.tenants.update\"
246
246
  * @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
@@ -248,5 +248,5 @@ export declare class SettingsApi extends BaseAPI {
248
248
  * @throws {RequiredError}
249
249
  * @memberof SettingsApi
250
250
  */
251
- setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetUserSettingResponseClass, any, {}>>;
251
+ setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetUserSettingResponseClass, any, {}, any>>;
252
252
  }
@@ -103,9 +103,10 @@ var SettingsApiAxiosParamCreator = function (configuration) {
103
103
  getTenantSettings: function (keys, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'keys' is not null or undefined
111
112
  (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
@@ -124,12 +125,15 @@ var SettingsApiAxiosParamCreator = function (configuration) {
124
125
  case 1:
125
126
  // authentication bearer required
126
127
  // http bearer authentication required
127
- _a.sent();
128
+ _b.sent();
128
129
  if (keys !== undefined) {
129
130
  localVarQueryParameter['keys'] = keys;
130
131
  }
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
137
  }
134
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -152,9 +156,10 @@ var SettingsApiAxiosParamCreator = function (configuration) {
152
156
  getUserSettings: function (keys, authorization, options) {
153
157
  if (options === void 0) { options = {}; }
154
158
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
160
+ var _a;
161
+ return __generator(this, function (_b) {
162
+ switch (_b.label) {
158
163
  case 0:
159
164
  // verify required parameter 'keys' is not null or undefined
160
165
  (0, common_1.assertParamExists)('getUserSettings', 'keys', keys);
@@ -173,12 +178,15 @@ var SettingsApiAxiosParamCreator = function (configuration) {
173
178
  case 1:
174
179
  // authentication bearer required
175
180
  // http bearer authentication required
176
- _a.sent();
181
+ _b.sent();
177
182
  if (keys !== undefined) {
178
183
  localVarQueryParameter['keys'] = keys;
179
184
  }
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
186
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
187
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
188
+ if (authorizationValue || authorizationKeepEmpty) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
190
  }
183
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,9 +209,10 @@ var SettingsApiAxiosParamCreator = function (configuration) {
201
209
  setTenantSetting: function (setSettingRequestDto, authorization, options) {
202
210
  if (options === void 0) { options = {}; }
203
211
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
213
+ var _a;
214
+ return __generator(this, function (_b) {
215
+ switch (_b.label) {
207
216
  case 0:
208
217
  // verify required parameter 'setSettingRequestDto' is not null or undefined
209
218
  (0, common_1.assertParamExists)('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto);
@@ -218,13 +227,19 @@ var SettingsApiAxiosParamCreator = function (configuration) {
218
227
  localVarQueryParameter = {};
219
228
  // authentication bearer required
220
229
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
232
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
233
+ ];
222
234
  case 1:
223
235
  // authentication bearer required
224
236
  // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ _b.sent();
238
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
239
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
240
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
241
+ if (authorizationValue || authorizationKeepEmpty) {
242
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
243
  }
229
244
  localVarHeaderParameter['Content-Type'] = 'application/json';
230
245
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -249,9 +264,10 @@ var SettingsApiAxiosParamCreator = function (configuration) {
249
264
  setUserSetting: function (setSettingRequestDto, authorization, options) {
250
265
  if (options === void 0) { options = {}; }
251
266
  return __awaiter(_this, void 0, void 0, function () {
252
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
- return __generator(this, function (_a) {
254
- switch (_a.label) {
267
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
268
+ var _a;
269
+ return __generator(this, function (_b) {
270
+ switch (_b.label) {
255
271
  case 0:
256
272
  // verify required parameter 'setSettingRequestDto' is not null or undefined
257
273
  (0, common_1.assertParamExists)('setUserSetting', 'setSettingRequestDto', setSettingRequestDto);
@@ -266,13 +282,19 @@ var SettingsApiAxiosParamCreator = function (configuration) {
266
282
  localVarQueryParameter = {};
267
283
  // authentication bearer required
268
284
  // http bearer authentication required
269
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
285
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
286
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
287
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
288
+ ];
270
289
  case 1:
271
290
  // authentication bearer required
272
291
  // http bearer authentication required
273
- _a.sent();
274
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
275
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
+ _b.sent();
293
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
294
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
295
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
296
+ if (authorizationValue || authorizationKeepEmpty) {
297
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
276
298
  }
277
299
  localVarHeaderParameter['Content-Type'] = 'application/json';
278
300
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -453,7 +475,7 @@ var SettingsApi = /** @class */ (function (_super) {
453
475
  */
454
476
  SettingsApi.prototype.getTenantSettings = function (requestParameters, options) {
455
477
  var _this = this;
456
- return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
478
+ return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
457
479
  };
458
480
  /**
459
481
  * undefined **Required Permissions** \"tenant-management.tenants.view\"
@@ -464,7 +486,7 @@ var SettingsApi = /** @class */ (function (_super) {
464
486
  */
465
487
  SettingsApi.prototype.getUserSettings = function (requestParameters, options) {
466
488
  var _this = this;
467
- return (0, exports.SettingsApiFp)(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
489
+ return (0, exports.SettingsApiFp)(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
468
490
  };
469
491
  /**
470
492
  * undefined **Required Permissions** \"tenant-management.tenants.update\"
@@ -475,7 +497,7 @@ var SettingsApi = /** @class */ (function (_super) {
475
497
  */
476
498
  SettingsApi.prototype.setTenantSetting = function (requestParameters, options) {
477
499
  var _this = this;
478
- return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
500
+ return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
479
501
  };
480
502
  /**
481
503
  * undefined **Required Permissions** \"tenant-management.tenants.update\"
@@ -486,7 +508,7 @@ var SettingsApi = /** @class */ (function (_super) {
486
508
  */
487
509
  SettingsApi.prototype.setUserSetting = function (requestParameters, options) {
488
510
  var _this = this;
489
- return (0, exports.SettingsApiFp)(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
511
+ return (0, exports.SettingsApiFp)(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
490
512
  };
491
513
  return SettingsApi;
492
514
  }(base_1.BaseAPI));
@@ -0,0 +1,434 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateSsoConnectionRequestDto } from '../models';
16
+ import { CreateSsoConnectionResponseClass } from '../models';
17
+ import { DeleteResponseClass } from '../models';
18
+ import { GetSsoConnectionResponseClass } from '../models';
19
+ import { GetSsoConnectionSetupResponseClass } from '../models';
20
+ import { UpdateSsoConnectionBodyDto } from '../models';
21
+ import { UpdateSsoConnectionResponseClass } from '../models';
22
+ import { UpdateSsoConnectionStatusBodyDto } from '../models';
23
+ import { UpdateSsoConnectionStatusResponseClass } from '../models';
24
+ /**
25
+ * SSOConnectionApi - axios parameter creator
26
+ * @export
27
+ */
28
+ export declare const SSOConnectionApiAxiosParamCreator: (configuration?: Configuration) => {
29
+ /**
30
+ * 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\"
31
+ * @summary Create the tenant\'s SSO connection
32
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
33
+ * @param {string} [authorization] Bearer Token
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ createSsoConnection: (createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * 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\"
40
+ * @summary Delete the tenant\'s SSO connection
41
+ * @param {string} code Connection code.
42
+ * @param {string} [authorization] Bearer Token
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ deleteSsoConnection: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * 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\"
49
+ * @summary Read the tenant\'s current SSO connection
50
+ * @param {string} [authorization] Bearer Token
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getCurrentSsoConnection: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"identity-management.sso.view\"
57
+ * @summary Read the tenant\'s SSO connection
58
+ * @param {string} code Connection code.
59
+ * @param {string} [authorization] Bearer Token
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ getSsoConnection: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ /**
65
+ * Returns what the creation form with required data. **Required Permissions** \"identity-management.sso.view\"
66
+ * @summary Read the values an SSO connection is created with
67
+ * @param {string} [authorization] Bearer Token
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ getSsoConnectionSetup: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
72
+ /**
73
+ * 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\"
74
+ * @summary Edit the tenant\'s SSO connection
75
+ * @param {string} code Connection code.
76
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
77
+ * @param {string} [authorization] Bearer Token
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ updateSsoConnection: (code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
82
+ /**
83
+ * Activates and deactivates SSO connection status. **Required Permissions** \"identity-management.sso.update\"
84
+ * @summary Switch the tenant\'s SSO connection on or off
85
+ * @param {string} code Connection code.
86
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
87
+ * @param {string} [authorization] Bearer Token
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ updateSsoConnectionStatus: (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
92
+ };
93
+ /**
94
+ * SSOConnectionApi - functional programming interface
95
+ * @export
96
+ */
97
+ export declare const SSOConnectionApiFp: (configuration?: Configuration) => {
98
+ /**
99
+ * 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\"
100
+ * @summary Create the tenant\'s SSO connection
101
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSsoConnectionResponseClass>>;
107
+ /**
108
+ * 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\"
109
+ * @summary Delete the tenant\'s SSO connection
110
+ * @param {string} code Connection code.
111
+ * @param {string} [authorization] Bearer Token
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ deleteSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
116
+ /**
117
+ * 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\"
118
+ * @summary Read the tenant\'s current SSO connection
119
+ * @param {string} [authorization] Bearer Token
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ getCurrentSsoConnection(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>>;
124
+ /**
125
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"identity-management.sso.view\"
126
+ * @summary Read the tenant\'s SSO connection
127
+ * @param {string} code Connection code.
128
+ * @param {string} [authorization] Bearer Token
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ getSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>>;
133
+ /**
134
+ * Returns what the creation form with required data. **Required Permissions** \"identity-management.sso.view\"
135
+ * @summary Read the values an SSO connection is created with
136
+ * @param {string} [authorization] Bearer Token
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ getSsoConnectionSetup(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionSetupResponseClass>>;
141
+ /**
142
+ * 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\"
143
+ * @summary Edit the tenant\'s SSO connection
144
+ * @param {string} code Connection code.
145
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionResponseClass>>;
151
+ /**
152
+ * Activates and deactivates SSO connection status. **Required Permissions** \"identity-management.sso.update\"
153
+ * @summary Switch the tenant\'s SSO connection on or off
154
+ * @param {string} code Connection code.
155
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
156
+ * @param {string} [authorization] Bearer Token
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>>;
161
+ };
162
+ /**
163
+ * SSOConnectionApi - factory interface
164
+ * @export
165
+ */
166
+ export declare const SSOConnectionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
167
+ /**
168
+ * 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\"
169
+ * @summary Create the tenant\'s SSO connection
170
+ * @param {CreateSsoConnectionRequestDto} createSsoConnectionRequestDto
171
+ * @param {string} [authorization] Bearer Token
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ createSsoConnection(createSsoConnectionRequestDto: CreateSsoConnectionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSsoConnectionResponseClass>;
176
+ /**
177
+ * 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\"
178
+ * @summary Delete the tenant\'s SSO connection
179
+ * @param {string} code Connection code.
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ deleteSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
185
+ /**
186
+ * 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\"
187
+ * @summary Read the tenant\'s current SSO connection
188
+ * @param {string} [authorization] Bearer Token
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ getCurrentSsoConnection(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass>;
193
+ /**
194
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"identity-management.sso.view\"
195
+ * @summary Read the tenant\'s SSO connection
196
+ * @param {string} code Connection code.
197
+ * @param {string} [authorization] Bearer Token
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass>;
202
+ /**
203
+ * Returns what the creation form with required data. **Required Permissions** \"identity-management.sso.view\"
204
+ * @summary Read the values an SSO connection is created with
205
+ * @param {string} [authorization] Bearer Token
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getSsoConnectionSetup(authorization?: string, options?: any): AxiosPromise<GetSsoConnectionSetupResponseClass>;
210
+ /**
211
+ * 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\"
212
+ * @summary Edit the tenant\'s SSO connection
213
+ * @param {string} code Connection code.
214
+ * @param {UpdateSsoConnectionBodyDto} updateSsoConnectionBodyDto
215
+ * @param {string} [authorization] Bearer Token
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ updateSsoConnection(code: string, updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionResponseClass>;
220
+ /**
221
+ * Activates and deactivates SSO connection status. **Required Permissions** \"identity-management.sso.update\"
222
+ * @summary Switch the tenant\'s SSO connection on or off
223
+ * @param {string} code Connection code.
224
+ * @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
225
+ * @param {string} [authorization] Bearer Token
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass>;
230
+ };
231
+ /**
232
+ * Request parameters for createSsoConnection operation in SSOConnectionApi.
233
+ * @export
234
+ * @interface SSOConnectionApiCreateSsoConnectionRequest
235
+ */
236
+ export interface SSOConnectionApiCreateSsoConnectionRequest {
237
+ /**
238
+ *
239
+ * @type {CreateSsoConnectionRequestDto}
240
+ * @memberof SSOConnectionApiCreateSsoConnection
241
+ */
242
+ readonly createSsoConnectionRequestDto: CreateSsoConnectionRequestDto;
243
+ /**
244
+ * Bearer Token
245
+ * @type {string}
246
+ * @memberof SSOConnectionApiCreateSsoConnection
247
+ */
248
+ readonly authorization?: string;
249
+ }
250
+ /**
251
+ * Request parameters for deleteSsoConnection operation in SSOConnectionApi.
252
+ * @export
253
+ * @interface SSOConnectionApiDeleteSsoConnectionRequest
254
+ */
255
+ export interface SSOConnectionApiDeleteSsoConnectionRequest {
256
+ /**
257
+ * Connection code.
258
+ * @type {string}
259
+ * @memberof SSOConnectionApiDeleteSsoConnection
260
+ */
261
+ readonly code: string;
262
+ /**
263
+ * Bearer Token
264
+ * @type {string}
265
+ * @memberof SSOConnectionApiDeleteSsoConnection
266
+ */
267
+ readonly authorization?: string;
268
+ }
269
+ /**
270
+ * Request parameters for getCurrentSsoConnection operation in SSOConnectionApi.
271
+ * @export
272
+ * @interface SSOConnectionApiGetCurrentSsoConnectionRequest
273
+ */
274
+ export interface SSOConnectionApiGetCurrentSsoConnectionRequest {
275
+ /**
276
+ * Bearer Token
277
+ * @type {string}
278
+ * @memberof SSOConnectionApiGetCurrentSsoConnection
279
+ */
280
+ readonly authorization?: string;
281
+ }
282
+ /**
283
+ * Request parameters for getSsoConnection operation in SSOConnectionApi.
284
+ * @export
285
+ * @interface SSOConnectionApiGetSsoConnectionRequest
286
+ */
287
+ export interface SSOConnectionApiGetSsoConnectionRequest {
288
+ /**
289
+ * Connection code.
290
+ * @type {string}
291
+ * @memberof SSOConnectionApiGetSsoConnection
292
+ */
293
+ readonly code: string;
294
+ /**
295
+ * Bearer Token
296
+ * @type {string}
297
+ * @memberof SSOConnectionApiGetSsoConnection
298
+ */
299
+ readonly authorization?: string;
300
+ }
301
+ /**
302
+ * Request parameters for getSsoConnectionSetup operation in SSOConnectionApi.
303
+ * @export
304
+ * @interface SSOConnectionApiGetSsoConnectionSetupRequest
305
+ */
306
+ export interface SSOConnectionApiGetSsoConnectionSetupRequest {
307
+ /**
308
+ * Bearer Token
309
+ * @type {string}
310
+ * @memberof SSOConnectionApiGetSsoConnectionSetup
311
+ */
312
+ readonly authorization?: string;
313
+ }
314
+ /**
315
+ * Request parameters for updateSsoConnection operation in SSOConnectionApi.
316
+ * @export
317
+ * @interface SSOConnectionApiUpdateSsoConnectionRequest
318
+ */
319
+ export interface SSOConnectionApiUpdateSsoConnectionRequest {
320
+ /**
321
+ * Connection code.
322
+ * @type {string}
323
+ * @memberof SSOConnectionApiUpdateSsoConnection
324
+ */
325
+ readonly code: string;
326
+ /**
327
+ *
328
+ * @type {UpdateSsoConnectionBodyDto}
329
+ * @memberof SSOConnectionApiUpdateSsoConnection
330
+ */
331
+ readonly updateSsoConnectionBodyDto: UpdateSsoConnectionBodyDto;
332
+ /**
333
+ * Bearer Token
334
+ * @type {string}
335
+ * @memberof SSOConnectionApiUpdateSsoConnection
336
+ */
337
+ readonly authorization?: string;
338
+ }
339
+ /**
340
+ * Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
341
+ * @export
342
+ * @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
343
+ */
344
+ export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
345
+ /**
346
+ * Connection code.
347
+ * @type {string}
348
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
349
+ */
350
+ readonly code: string;
351
+ /**
352
+ *
353
+ * @type {UpdateSsoConnectionStatusBodyDto}
354
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
355
+ */
356
+ readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto;
357
+ /**
358
+ * Bearer Token
359
+ * @type {string}
360
+ * @memberof SSOConnectionApiUpdateSsoConnectionStatus
361
+ */
362
+ readonly authorization?: string;
363
+ }
364
+ /**
365
+ * SSOConnectionApi - object-oriented interface
366
+ * @export
367
+ * @class SSOConnectionApi
368
+ * @extends {BaseAPI}
369
+ */
370
+ export declare class SSOConnectionApi extends BaseAPI {
371
+ /**
372
+ * 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\"
373
+ * @summary Create the tenant\'s SSO connection
374
+ * @param {SSOConnectionApiCreateSsoConnectionRequest} requestParameters Request parameters.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ * @memberof SSOConnectionApi
378
+ */
379
+ createSsoConnection(requestParameters: SSOConnectionApiCreateSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSsoConnectionResponseClass, any, {}, any>>;
380
+ /**
381
+ * 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\"
382
+ * @summary Delete the tenant\'s SSO connection
383
+ * @param {SSOConnectionApiDeleteSsoConnectionRequest} requestParameters Request parameters.
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ * @memberof SSOConnectionApi
387
+ */
388
+ deleteSsoConnection(requestParameters: SSOConnectionApiDeleteSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
389
+ /**
390
+ * 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\"
391
+ * @summary Read the tenant\'s current SSO connection
392
+ * @param {SSOConnectionApiGetCurrentSsoConnectionRequest} requestParameters Request parameters.
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ * @memberof SSOConnectionApi
396
+ */
397
+ getCurrentSsoConnection(requestParameters?: SSOConnectionApiGetCurrentSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoConnectionResponseClass, any, {}, any>>;
398
+ /**
399
+ * Returns the SSO Connection entity identified by code **Required Permissions** \"identity-management.sso.view\"
400
+ * @summary Read the tenant\'s SSO connection
401
+ * @param {SSOConnectionApiGetSsoConnectionRequest} requestParameters Request parameters.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ * @memberof SSOConnectionApi
405
+ */
406
+ getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoConnectionResponseClass, any, {}, any>>;
407
+ /**
408
+ * Returns what the creation form with required data. **Required Permissions** \"identity-management.sso.view\"
409
+ * @summary Read the values an SSO connection is created with
410
+ * @param {SSOConnectionApiGetSsoConnectionSetupRequest} requestParameters Request parameters.
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ * @memberof SSOConnectionApi
414
+ */
415
+ getSsoConnectionSetup(requestParameters?: SSOConnectionApiGetSsoConnectionSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoConnectionSetupResponseClass, any, {}, any>>;
416
+ /**
417
+ * 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\"
418
+ * @summary Edit the tenant\'s SSO connection
419
+ * @param {SSOConnectionApiUpdateSsoConnectionRequest} requestParameters Request parameters.
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ * @memberof SSOConnectionApi
423
+ */
424
+ updateSsoConnection(requestParameters: SSOConnectionApiUpdateSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateSsoConnectionResponseClass, any, {}, any>>;
425
+ /**
426
+ * Activates and deactivates SSO connection status. **Required Permissions** \"identity-management.sso.update\"
427
+ * @summary Switch the tenant\'s SSO connection on or off
428
+ * @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ * @memberof SSOConnectionApi
432
+ */
433
+ updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateSsoConnectionStatusResponseClass, any, {}, any>>;
434
+ }