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