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