@emilgroup/tenant-sdk 1.42.1-beta.7 → 1.42.1-beta.71

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