@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,774 @@
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.SSOIdPGroupsApi = exports.SSOIdPGroupsApiFactory = exports.SSOIdPGroupsApiFp = exports.SSOIdPGroupsApiAxiosParamCreator = 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
+ * SSOIdPGroupsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var SSOIdPGroupsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Creates an inactive IdP group with at least one EIS user-group mapping. externalId is any text and is immutable after create. **Required Permissions** \"identity-management.sso.create\"
97
+ * @summary Register an IdP group and its EIS mappings
98
+ * @param {CreateSsoIdpGroupRequestDto} createSsoIdpGroupRequestDto
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createSsoIdpGroup: function (createSsoIdpGroupRequestDto, 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 'createSsoIdpGroupRequestDto' is not null or undefined
112
+ (0, common_1.assertParamExists)('createSsoIdpGroup', 'createSsoIdpGroupRequestDto', createSsoIdpGroupRequestDto);
113
+ localVarPath = "/tenantservice/v1/sso-idp-groups";
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)(createSsoIdpGroupRequestDto, localVarRequestOptions, configuration);
143
+ return [2 /*return*/, {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ }];
147
+ }
148
+ });
149
+ });
150
+ },
151
+ /**
152
+ * undefined **Required Permissions** \"identity-management.sso.update\"
153
+ * @summary Delete an IdP group and all of its mappings
154
+ * @param {string} code IdP group code.
155
+ * @param {string} [authorization] Bearer Token
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ deleteSsoIdpGroup: 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)('deleteSsoIdpGroup', 'code', code);
169
+ localVarPath = "/tenantservice/v1/sso-idp-groups/{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
+ * undefined **Required Permissions** \"identity-management.sso.view\"
208
+ * @summary Get an IdP group by code
209
+ * @param {string} code IdP group code.
210
+ * @param {string} [authorization] Bearer Token
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ getSsoIdpGroup: function (code, authorization, options) {
215
+ if (options === void 0) { options = {}; }
216
+ return __awaiter(_this, void 0, void 0, function () {
217
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
218
+ var _a;
219
+ return __generator(this, function (_b) {
220
+ switch (_b.label) {
221
+ case 0:
222
+ // verify required parameter 'code' is not null or undefined
223
+ (0, common_1.assertParamExists)('getSsoIdpGroup', 'code', code);
224
+ localVarPath = "/tenantservice/v1/sso-idp-groups/{code}"
225
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
226
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ baseAccessToken = configuration.accessToken;
230
+ }
231
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
232
+ localVarHeaderParameter = {};
233
+ localVarQueryParameter = {};
234
+ // authentication bearer required
235
+ // http bearer authentication required
236
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
237
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
238
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
239
+ ];
240
+ case 1:
241
+ // authentication bearer required
242
+ // http bearer authentication required
243
+ _b.sent();
244
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
246
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
247
+ if (authorizationValue || authorizationKeepEmpty) {
248
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
249
+ }
250
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
253
+ return [2 /*return*/, {
254
+ url: (0, common_1.toPathString)(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ }];
257
+ }
258
+ });
259
+ });
260
+ },
261
+ /**
262
+ * The `name` field is deprecated in favor of `externalId`. **Required Permissions** \"identity-management.sso.view\"
263
+ * @summary List registered IdP groups
264
+ * @param {string} [authorization] Bearer Token
265
+ * @param {number} [pageSize] Number of items per page.
266
+ * @param {string} [pageToken] Opaque token for the next page (returned in a previous response).
267
+ * @param {string} [filter] Filter IdP groups by one or more fields. Allowed: id, code, externalId, isActive, userGroup.code, createdAt, updatedAt.
268
+ * @param {string} [search] Free-text search over searchable columns.
269
+ * @param {string} [order] Sort the response. Allowed columns: id, code, externalId, isActive, createdAt, updatedAt.
270
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
271
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ listSsoIdpGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
276
+ if (options === void 0) { options = {}; }
277
+ return __awaiter(_this, void 0, void 0, function () {
278
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
279
+ var _a;
280
+ return __generator(this, function (_b) {
281
+ switch (_b.label) {
282
+ case 0:
283
+ localVarPath = "/tenantservice/v1/sso-idp-groups";
284
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
290
+ localVarHeaderParameter = {};
291
+ localVarQueryParameter = {};
292
+ // authentication bearer required
293
+ // http bearer authentication required
294
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
295
+ case 1:
296
+ // authentication bearer required
297
+ // http bearer authentication required
298
+ _b.sent();
299
+ if (pageSize !== undefined) {
300
+ localVarQueryParameter['pageSize'] = pageSize;
301
+ }
302
+ if (pageToken !== undefined) {
303
+ localVarQueryParameter['pageToken'] = pageToken;
304
+ }
305
+ if (filter !== undefined) {
306
+ localVarQueryParameter['filter'] = filter;
307
+ }
308
+ if (search !== undefined) {
309
+ localVarQueryParameter['search'] = search;
310
+ }
311
+ if (order !== undefined) {
312
+ localVarQueryParameter['order'] = order;
313
+ }
314
+ if (expand !== undefined) {
315
+ localVarQueryParameter['expand'] = expand;
316
+ }
317
+ if (filters !== undefined) {
318
+ localVarQueryParameter['filters'] = filters;
319
+ }
320
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
321
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
322
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
323
+ if (authorizationValue || authorizationKeepEmpty) {
324
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
325
+ }
326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
328
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
329
+ return [2 /*return*/, {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ }];
333
+ }
334
+ });
335
+ });
336
+ },
337
+ /**
338
+ * externalId is immutable. eisUserGroupCodes is set-replace when present. **Required Permissions** \"identity-management.sso.update\"
339
+ * @summary Update the EIS mappings of an IdP group
340
+ * @param {string} code IdP group code.
341
+ * @param {UpdateSsoIdpGroupBodyDto} updateSsoIdpGroupBodyDto
342
+ * @param {string} [authorization] Bearer Token
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ updateSsoIdpGroup: function (code, updateSsoIdpGroupBodyDto, authorization, options) {
347
+ if (options === void 0) { options = {}; }
348
+ return __awaiter(_this, void 0, void 0, function () {
349
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
350
+ var _a;
351
+ return __generator(this, function (_b) {
352
+ switch (_b.label) {
353
+ case 0:
354
+ // verify required parameter 'code' is not null or undefined
355
+ (0, common_1.assertParamExists)('updateSsoIdpGroup', 'code', code);
356
+ // verify required parameter 'updateSsoIdpGroupBodyDto' is not null or undefined
357
+ (0, common_1.assertParamExists)('updateSsoIdpGroup', 'updateSsoIdpGroupBodyDto', updateSsoIdpGroupBodyDto);
358
+ localVarPath = "/tenantservice/v1/sso-idp-groups/{code}"
359
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
360
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
361
+ if (configuration) {
362
+ baseOptions = configuration.baseOptions;
363
+ baseAccessToken = configuration.accessToken;
364
+ }
365
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
366
+ localVarHeaderParameter = {};
367
+ localVarQueryParameter = {};
368
+ // authentication bearer required
369
+ // http bearer authentication required
370
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
371
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
372
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
373
+ ];
374
+ case 1:
375
+ // authentication bearer required
376
+ // http bearer authentication required
377
+ _b.sent();
378
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
379
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
380
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
381
+ if (authorizationValue || authorizationKeepEmpty) {
382
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
383
+ }
384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
385
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
386
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
387
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
388
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSsoIdpGroupBodyDto, localVarRequestOptions, configuration);
389
+ return [2 /*return*/, {
390
+ url: (0, common_1.toPathString)(localVarUrlObj),
391
+ options: localVarRequestOptions,
392
+ }];
393
+ }
394
+ });
395
+ });
396
+ },
397
+ /**
398
+ * Switches whether the IdP group participates in login-time access resolution. Status is shared across every mapping edge for that group. **Required Permissions** \"identity-management.sso.update\"
399
+ * @summary Activate or deactivate an IdP group
400
+ * @param {string} code IdP group code.
401
+ * @param {UpdateSsoIdpGroupStatusBodyDto} updateSsoIdpGroupStatusBodyDto
402
+ * @param {string} [authorization] Bearer Token
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ updateSsoIdpGroupStatus: function (code, updateSsoIdpGroupStatusBodyDto, authorization, options) {
407
+ if (options === void 0) { options = {}; }
408
+ return __awaiter(_this, void 0, void 0, function () {
409
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
410
+ var _a;
411
+ return __generator(this, function (_b) {
412
+ switch (_b.label) {
413
+ case 0:
414
+ // verify required parameter 'code' is not null or undefined
415
+ (0, common_1.assertParamExists)('updateSsoIdpGroupStatus', 'code', code);
416
+ // verify required parameter 'updateSsoIdpGroupStatusBodyDto' is not null or undefined
417
+ (0, common_1.assertParamExists)('updateSsoIdpGroupStatus', 'updateSsoIdpGroupStatusBodyDto', updateSsoIdpGroupStatusBodyDto);
418
+ localVarPath = "/tenantservice/v1/sso-idp-groups/{code}"
419
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
420
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ baseAccessToken = configuration.accessToken;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
431
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
432
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
433
+ ];
434
+ case 1:
435
+ // authentication bearer required
436
+ // http bearer authentication required
437
+ _b.sent();
438
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
439
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
440
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
441
+ if (authorizationValue || authorizationKeepEmpty) {
442
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
443
+ }
444
+ localVarHeaderParameter['Content-Type'] = 'application/json';
445
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
448
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSsoIdpGroupStatusBodyDto, localVarRequestOptions, configuration);
449
+ return [2 /*return*/, {
450
+ url: (0, common_1.toPathString)(localVarUrlObj),
451
+ options: localVarRequestOptions,
452
+ }];
453
+ }
454
+ });
455
+ });
456
+ },
457
+ };
458
+ };
459
+ exports.SSOIdPGroupsApiAxiosParamCreator = SSOIdPGroupsApiAxiosParamCreator;
460
+ /**
461
+ * SSOIdPGroupsApi - functional programming interface
462
+ * @export
463
+ */
464
+ var SSOIdPGroupsApiFp = function (configuration) {
465
+ var localVarAxiosParamCreator = (0, exports.SSOIdPGroupsApiAxiosParamCreator)(configuration);
466
+ return {
467
+ /**
468
+ * Creates an inactive IdP group with at least one EIS user-group mapping. externalId is any text and is immutable after create. **Required Permissions** \"identity-management.sso.create\"
469
+ * @summary Register an IdP group and its EIS mappings
470
+ * @param {CreateSsoIdpGroupRequestDto} createSsoIdpGroupRequestDto
471
+ * @param {string} [authorization] Bearer Token
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ createSsoIdpGroup: function (createSsoIdpGroupRequestDto, authorization, options) {
476
+ return __awaiter(this, void 0, void 0, function () {
477
+ var localVarAxiosArgs;
478
+ return __generator(this, function (_a) {
479
+ switch (_a.label) {
480
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSsoIdpGroup(createSsoIdpGroupRequestDto, authorization, options)];
481
+ case 1:
482
+ localVarAxiosArgs = _a.sent();
483
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
484
+ }
485
+ });
486
+ });
487
+ },
488
+ /**
489
+ * undefined **Required Permissions** \"identity-management.sso.update\"
490
+ * @summary Delete an IdP group and all of its mappings
491
+ * @param {string} code IdP group code.
492
+ * @param {string} [authorization] Bearer Token
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ deleteSsoIdpGroup: function (code, authorization, options) {
497
+ return __awaiter(this, void 0, void 0, function () {
498
+ var localVarAxiosArgs;
499
+ return __generator(this, function (_a) {
500
+ switch (_a.label) {
501
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSsoIdpGroup(code, authorization, options)];
502
+ case 1:
503
+ localVarAxiosArgs = _a.sent();
504
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
505
+ }
506
+ });
507
+ });
508
+ },
509
+ /**
510
+ * undefined **Required Permissions** \"identity-management.sso.view\"
511
+ * @summary Get an IdP group by code
512
+ * @param {string} code IdP group code.
513
+ * @param {string} [authorization] Bearer Token
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ getSsoIdpGroup: function (code, authorization, options) {
518
+ return __awaiter(this, void 0, void 0, function () {
519
+ var localVarAxiosArgs;
520
+ return __generator(this, function (_a) {
521
+ switch (_a.label) {
522
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSsoIdpGroup(code, authorization, options)];
523
+ case 1:
524
+ localVarAxiosArgs = _a.sent();
525
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
526
+ }
527
+ });
528
+ });
529
+ },
530
+ /**
531
+ * The `name` field is deprecated in favor of `externalId`. **Required Permissions** \"identity-management.sso.view\"
532
+ * @summary List registered IdP groups
533
+ * @param {string} [authorization] Bearer Token
534
+ * @param {number} [pageSize] Number of items per page.
535
+ * @param {string} [pageToken] Opaque token for the next page (returned in a previous response).
536
+ * @param {string} [filter] Filter IdP groups by one or more fields. Allowed: id, code, externalId, isActive, userGroup.code, createdAt, updatedAt.
537
+ * @param {string} [search] Free-text search over searchable columns.
538
+ * @param {string} [order] Sort the response. Allowed columns: id, code, externalId, isActive, createdAt, updatedAt.
539
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
540
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ listSsoIdpGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
545
+ return __awaiter(this, void 0, void 0, function () {
546
+ var localVarAxiosArgs;
547
+ return __generator(this, function (_a) {
548
+ switch (_a.label) {
549
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSsoIdpGroups(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
550
+ case 1:
551
+ localVarAxiosArgs = _a.sent();
552
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
553
+ }
554
+ });
555
+ });
556
+ },
557
+ /**
558
+ * externalId is immutable. eisUserGroupCodes is set-replace when present. **Required Permissions** \"identity-management.sso.update\"
559
+ * @summary Update the EIS mappings of an IdP group
560
+ * @param {string} code IdP group code.
561
+ * @param {UpdateSsoIdpGroupBodyDto} updateSsoIdpGroupBodyDto
562
+ * @param {string} [authorization] Bearer Token
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ updateSsoIdpGroup: function (code, updateSsoIdpGroupBodyDto, authorization, options) {
567
+ return __awaiter(this, void 0, void 0, function () {
568
+ var localVarAxiosArgs;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSsoIdpGroup(code, updateSsoIdpGroupBodyDto, authorization, options)];
572
+ case 1:
573
+ localVarAxiosArgs = _a.sent();
574
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
575
+ }
576
+ });
577
+ });
578
+ },
579
+ /**
580
+ * Switches whether the IdP group participates in login-time access resolution. Status is shared across every mapping edge for that group. **Required Permissions** \"identity-management.sso.update\"
581
+ * @summary Activate or deactivate an IdP group
582
+ * @param {string} code IdP group code.
583
+ * @param {UpdateSsoIdpGroupStatusBodyDto} updateSsoIdpGroupStatusBodyDto
584
+ * @param {string} [authorization] Bearer Token
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ updateSsoIdpGroupStatus: function (code, updateSsoIdpGroupStatusBodyDto, authorization, options) {
589
+ return __awaiter(this, void 0, void 0, function () {
590
+ var localVarAxiosArgs;
591
+ return __generator(this, function (_a) {
592
+ switch (_a.label) {
593
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSsoIdpGroupStatus(code, updateSsoIdpGroupStatusBodyDto, authorization, options)];
594
+ case 1:
595
+ localVarAxiosArgs = _a.sent();
596
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
597
+ }
598
+ });
599
+ });
600
+ },
601
+ };
602
+ };
603
+ exports.SSOIdPGroupsApiFp = SSOIdPGroupsApiFp;
604
+ /**
605
+ * SSOIdPGroupsApi - factory interface
606
+ * @export
607
+ */
608
+ var SSOIdPGroupsApiFactory = function (configuration, basePath, axios) {
609
+ var localVarFp = (0, exports.SSOIdPGroupsApiFp)(configuration);
610
+ return {
611
+ /**
612
+ * Creates an inactive IdP group with at least one EIS user-group mapping. externalId is any text and is immutable after create. **Required Permissions** \"identity-management.sso.create\"
613
+ * @summary Register an IdP group and its EIS mappings
614
+ * @param {CreateSsoIdpGroupRequestDto} createSsoIdpGroupRequestDto
615
+ * @param {string} [authorization] Bearer Token
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ createSsoIdpGroup: function (createSsoIdpGroupRequestDto, authorization, options) {
620
+ return localVarFp.createSsoIdpGroup(createSsoIdpGroupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
621
+ },
622
+ /**
623
+ * undefined **Required Permissions** \"identity-management.sso.update\"
624
+ * @summary Delete an IdP group and all of its mappings
625
+ * @param {string} code IdP group code.
626
+ * @param {string} [authorization] Bearer Token
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ deleteSsoIdpGroup: function (code, authorization, options) {
631
+ return localVarFp.deleteSsoIdpGroup(code, authorization, options).then(function (request) { return request(axios, basePath); });
632
+ },
633
+ /**
634
+ * undefined **Required Permissions** \"identity-management.sso.view\"
635
+ * @summary Get an IdP group by code
636
+ * @param {string} code IdP group code.
637
+ * @param {string} [authorization] Bearer Token
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ getSsoIdpGroup: function (code, authorization, options) {
642
+ return localVarFp.getSsoIdpGroup(code, authorization, options).then(function (request) { return request(axios, basePath); });
643
+ },
644
+ /**
645
+ * The `name` field is deprecated in favor of `externalId`. **Required Permissions** \"identity-management.sso.view\"
646
+ * @summary List registered IdP groups
647
+ * @param {string} [authorization] Bearer Token
648
+ * @param {number} [pageSize] Number of items per page.
649
+ * @param {string} [pageToken] Opaque token for the next page (returned in a previous response).
650
+ * @param {string} [filter] Filter IdP groups by one or more fields. Allowed: id, code, externalId, isActive, userGroup.code, createdAt, updatedAt.
651
+ * @param {string} [search] Free-text search over searchable columns.
652
+ * @param {string} [order] Sort the response. Allowed columns: id, code, externalId, isActive, createdAt, updatedAt.
653
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
654
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ listSsoIdpGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
659
+ return localVarFp.listSsoIdpGroups(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
660
+ },
661
+ /**
662
+ * externalId is immutable. eisUserGroupCodes is set-replace when present. **Required Permissions** \"identity-management.sso.update\"
663
+ * @summary Update the EIS mappings of an IdP group
664
+ * @param {string} code IdP group code.
665
+ * @param {UpdateSsoIdpGroupBodyDto} updateSsoIdpGroupBodyDto
666
+ * @param {string} [authorization] Bearer Token
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ updateSsoIdpGroup: function (code, updateSsoIdpGroupBodyDto, authorization, options) {
671
+ return localVarFp.updateSsoIdpGroup(code, updateSsoIdpGroupBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
672
+ },
673
+ /**
674
+ * Switches whether the IdP group participates in login-time access resolution. Status is shared across every mapping edge for that group. **Required Permissions** \"identity-management.sso.update\"
675
+ * @summary Activate or deactivate an IdP group
676
+ * @param {string} code IdP group code.
677
+ * @param {UpdateSsoIdpGroupStatusBodyDto} updateSsoIdpGroupStatusBodyDto
678
+ * @param {string} [authorization] Bearer Token
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ updateSsoIdpGroupStatus: function (code, updateSsoIdpGroupStatusBodyDto, authorization, options) {
683
+ return localVarFp.updateSsoIdpGroupStatus(code, updateSsoIdpGroupStatusBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
684
+ },
685
+ };
686
+ };
687
+ exports.SSOIdPGroupsApiFactory = SSOIdPGroupsApiFactory;
688
+ /**
689
+ * SSOIdPGroupsApi - object-oriented interface
690
+ * @export
691
+ * @class SSOIdPGroupsApi
692
+ * @extends {BaseAPI}
693
+ */
694
+ var SSOIdPGroupsApi = /** @class */ (function (_super) {
695
+ __extends(SSOIdPGroupsApi, _super);
696
+ function SSOIdPGroupsApi() {
697
+ return _super !== null && _super.apply(this, arguments) || this;
698
+ }
699
+ /**
700
+ * Creates an inactive IdP group with at least one EIS user-group mapping. externalId is any text and is immutable after create. **Required Permissions** \"identity-management.sso.create\"
701
+ * @summary Register an IdP group and its EIS mappings
702
+ * @param {SSOIdPGroupsApiCreateSsoIdpGroupRequest} requestParameters Request parameters.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ * @memberof SSOIdPGroupsApi
706
+ */
707
+ SSOIdPGroupsApi.prototype.createSsoIdpGroup = function (requestParameters, options) {
708
+ var _this = this;
709
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).createSsoIdpGroup(requestParameters.createSsoIdpGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
710
+ };
711
+ /**
712
+ * undefined **Required Permissions** \"identity-management.sso.update\"
713
+ * @summary Delete an IdP group and all of its mappings
714
+ * @param {SSOIdPGroupsApiDeleteSsoIdpGroupRequest} requestParameters Request parameters.
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ * @memberof SSOIdPGroupsApi
718
+ */
719
+ SSOIdPGroupsApi.prototype.deleteSsoIdpGroup = function (requestParameters, options) {
720
+ var _this = this;
721
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).deleteSsoIdpGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
722
+ };
723
+ /**
724
+ * undefined **Required Permissions** \"identity-management.sso.view\"
725
+ * @summary Get an IdP group by code
726
+ * @param {SSOIdPGroupsApiGetSsoIdpGroupRequest} requestParameters Request parameters.
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ * @memberof SSOIdPGroupsApi
730
+ */
731
+ SSOIdPGroupsApi.prototype.getSsoIdpGroup = function (requestParameters, options) {
732
+ var _this = this;
733
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).getSsoIdpGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
734
+ };
735
+ /**
736
+ * The `name` field is deprecated in favor of `externalId`. **Required Permissions** \"identity-management.sso.view\"
737
+ * @summary List registered IdP groups
738
+ * @param {SSOIdPGroupsApiListSsoIdpGroupsRequest} requestParameters Request parameters.
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ * @memberof SSOIdPGroupsApi
742
+ */
743
+ SSOIdPGroupsApi.prototype.listSsoIdpGroups = function (requestParameters, options) {
744
+ var _this = this;
745
+ if (requestParameters === void 0) { requestParameters = {}; }
746
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).listSsoIdpGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
747
+ };
748
+ /**
749
+ * externalId is immutable. eisUserGroupCodes is set-replace when present. **Required Permissions** \"identity-management.sso.update\"
750
+ * @summary Update the EIS mappings of an IdP group
751
+ * @param {SSOIdPGroupsApiUpdateSsoIdpGroupRequest} requestParameters Request parameters.
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ * @memberof SSOIdPGroupsApi
755
+ */
756
+ SSOIdPGroupsApi.prototype.updateSsoIdpGroup = function (requestParameters, options) {
757
+ var _this = this;
758
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).updateSsoIdpGroup(requestParameters.code, requestParameters.updateSsoIdpGroupBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
759
+ };
760
+ /**
761
+ * Switches whether the IdP group participates in login-time access resolution. Status is shared across every mapping edge for that group. **Required Permissions** \"identity-management.sso.update\"
762
+ * @summary Activate or deactivate an IdP group
763
+ * @param {SSOIdPGroupsApiUpdateSsoIdpGroupStatusRequest} requestParameters Request parameters.
764
+ * @param {*} [options] Override http request option.
765
+ * @throws {RequiredError}
766
+ * @memberof SSOIdPGroupsApi
767
+ */
768
+ SSOIdPGroupsApi.prototype.updateSsoIdpGroupStatus = function (requestParameters, options) {
769
+ var _this = this;
770
+ return (0, exports.SSOIdPGroupsApiFp)(this.configuration).updateSsoIdpGroupStatus(requestParameters.code, requestParameters.updateSsoIdpGroupStatusBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
771
+ };
772
+ return SSOIdPGroupsApi;
773
+ }(base_1.BaseAPI));
774
+ exports.SSOIdPGroupsApi = SSOIdPGroupsApi;