@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
@@ -104,9 +104,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
104
104
  assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
108
+ var _a;
109
+ return __generator(this, function (_b) {
110
+ switch (_b.label) {
110
111
  case 0:
111
112
  // verify required parameter 'id' is not null or undefined
112
113
  (0, common_1.assertParamExists)('assignUserRoles', 'id', id);
@@ -124,13 +125,19 @@ var UsersApiAxiosParamCreator = function (configuration) {
124
125
  localVarQueryParameter = {};
125
126
  // authentication bearer required
126
127
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
+ ];
128
132
  case 1:
129
133
  // authentication bearer required
130
134
  // http bearer authentication required
131
- _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ _b.sent();
136
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
137
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
138
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
139
+ if (authorizationValue || authorizationKeepEmpty) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
141
  }
135
142
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,9 +162,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
155
162
  deleteUsers: function (batchDeleteRequestDto, authorization, options) {
156
163
  if (options === void 0) { options = {}; }
157
164
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
- return __generator(this, function (_a) {
160
- switch (_a.label) {
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
166
+ var _a;
167
+ return __generator(this, function (_b) {
168
+ switch (_b.label) {
161
169
  case 0:
162
170
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
163
171
  (0, common_1.assertParamExists)('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto);
@@ -172,13 +180,19 @@ var UsersApiAxiosParamCreator = function (configuration) {
172
180
  localVarQueryParameter = {};
173
181
  // authentication bearer required
174
182
  // http bearer authentication required
175
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
184
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
185
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
186
+ ];
176
187
  case 1:
177
188
  // authentication bearer required
178
189
  // http bearer authentication required
179
- _a.sent();
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ _b.sent();
191
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
192
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
193
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
194
+ if (authorizationValue || authorizationKeepEmpty) {
195
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
196
  }
183
197
  localVarHeaderParameter['Content-Type'] = 'application/json';
184
198
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -203,9 +217,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
203
217
  disableUsers: function (disableUsersRequestDto, authorization, options) {
204
218
  if (options === void 0) { options = {}; }
205
219
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
- return __generator(this, function (_a) {
208
- switch (_a.label) {
220
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
221
+ var _a;
222
+ return __generator(this, function (_b) {
223
+ switch (_b.label) {
209
224
  case 0:
210
225
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
211
226
  (0, common_1.assertParamExists)('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto);
@@ -220,13 +235,19 @@ var UsersApiAxiosParamCreator = function (configuration) {
220
235
  localVarQueryParameter = {};
221
236
  // authentication bearer required
222
237
  // http bearer authentication required
223
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
238
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
239
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
240
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
241
+ ];
224
242
  case 1:
225
243
  // authentication bearer required
226
244
  // http bearer authentication required
227
- _a.sent();
228
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
229
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ _b.sent();
246
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
247
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
248
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
249
+ if (authorizationValue || authorizationKeepEmpty) {
250
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
251
  }
231
252
  localVarHeaderParameter['Content-Type'] = 'application/json';
232
253
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -251,9 +272,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
251
272
  enableUsers: function (enableUsersRequestDto, authorization, options) {
252
273
  if (options === void 0) { options = {}; }
253
274
  return __awaiter(_this, void 0, void 0, function () {
254
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
- return __generator(this, function (_a) {
256
- switch (_a.label) {
275
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
276
+ var _a;
277
+ return __generator(this, function (_b) {
278
+ switch (_b.label) {
257
279
  case 0:
258
280
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
259
281
  (0, common_1.assertParamExists)('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto);
@@ -268,13 +290,19 @@ var UsersApiAxiosParamCreator = function (configuration) {
268
290
  localVarQueryParameter = {};
269
291
  // authentication bearer required
270
292
  // http bearer authentication required
271
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
293
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
294
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
295
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
296
+ ];
272
297
  case 1:
273
298
  // authentication bearer required
274
299
  // http bearer authentication required
275
- _a.sent();
276
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ _b.sent();
301
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
302
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
303
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
304
+ if (authorizationValue || authorizationKeepEmpty) {
305
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
278
306
  }
279
307
  localVarHeaderParameter['Content-Type'] = 'application/json';
280
308
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -290,19 +318,21 @@ var UsersApiAxiosParamCreator = function (configuration) {
290
318
  });
291
319
  },
292
320
  /**
293
- * undefined **Required Permissions** \"tenant-management.users.view\"
321
+ * Returns the user with the given code. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.view\"
322
+ * @summary Retrieve the user
294
323
  * @param {string} code
295
324
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
- * @param {string} [expand] Fields to expand response by
325
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
297
326
  * @param {*} [options] Override http request option.
298
327
  * @throws {RequiredError}
299
328
  */
300
329
  getUser: function (code, authorization, expand, options) {
301
330
  if (options === void 0) { options = {}; }
302
331
  return __awaiter(_this, void 0, void 0, function () {
303
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
304
- return __generator(this, function (_a) {
305
- switch (_a.label) {
332
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
333
+ var _a;
334
+ return __generator(this, function (_b) {
335
+ switch (_b.label) {
306
336
  case 0:
307
337
  // verify required parameter 'code' is not null or undefined
308
338
  (0, common_1.assertParamExists)('getUser', 'code', code);
@@ -322,12 +352,15 @@ var UsersApiAxiosParamCreator = function (configuration) {
322
352
  case 1:
323
353
  // authentication bearer required
324
354
  // http bearer authentication required
325
- _a.sent();
355
+ _b.sent();
326
356
  if (expand !== undefined) {
327
357
  localVarQueryParameter['expand'] = expand;
328
358
  }
329
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
359
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
360
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
361
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
362
+ if (authorizationValue || authorizationKeepEmpty) {
363
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
364
  }
332
365
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
333
366
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -351,9 +384,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
351
384
  linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
352
385
  if (options === void 0) { options = {}; }
353
386
  return __awaiter(_this, void 0, void 0, function () {
354
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
355
- return __generator(this, function (_a) {
356
- switch (_a.label) {
387
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
388
+ var _a;
389
+ return __generator(this, function (_b) {
390
+ switch (_b.label) {
357
391
  case 0:
358
392
  // verify required parameter 'code' is not null or undefined
359
393
  (0, common_1.assertParamExists)('linkUserWithPartner', 'code', code);
@@ -371,13 +405,19 @@ var UsersApiAxiosParamCreator = function (configuration) {
371
405
  localVarQueryParameter = {};
372
406
  // authentication bearer required
373
407
  // http bearer authentication required
374
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
408
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
409
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
410
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
411
+ ];
375
412
  case 1:
376
413
  // authentication bearer required
377
414
  // http bearer authentication required
378
- _a.sent();
379
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
380
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ _b.sent();
416
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
417
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
418
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
419
+ if (authorizationValue || authorizationKeepEmpty) {
420
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
381
421
  }
382
422
  localVarHeaderParameter['Content-Type'] = 'application/json';
383
423
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -393,7 +433,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
393
433
  });
394
434
  },
395
435
  /**
396
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
436
+ * Returns a list of users. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.list\"
397
437
  * @summary List users
398
438
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
399
439
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -401,7 +441,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
401
441
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
402
442
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
403
443
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, firstName, lastName</i>
404
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
444
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
405
445
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
406
446
  * @param {*} [options] Override http request option.
407
447
  * @throws {RequiredError}
@@ -409,9 +449,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
409
449
  listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
410
450
  if (options === void 0) { options = {}; }
411
451
  return __awaiter(_this, void 0, void 0, function () {
412
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
413
- return __generator(this, function (_a) {
414
- switch (_a.label) {
452
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
453
+ var _a;
454
+ return __generator(this, function (_b) {
455
+ switch (_b.label) {
415
456
  case 0:
416
457
  localVarPath = "/tenantservice/v1/users";
417
458
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -428,7 +469,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
428
469
  case 1:
429
470
  // authentication bearer required
430
471
  // http bearer authentication required
431
- _a.sent();
472
+ _b.sent();
432
473
  if (pageSize !== undefined) {
433
474
  localVarQueryParameter['pageSize'] = pageSize;
434
475
  }
@@ -450,8 +491,11 @@ var UsersApiAxiosParamCreator = function (configuration) {
450
491
  if (filters !== undefined) {
451
492
  localVarQueryParameter['filters'] = filters;
452
493
  }
453
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
454
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
494
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
495
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
496
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
497
+ if (authorizationValue || authorizationKeepEmpty) {
498
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
455
499
  }
456
500
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
457
501
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -557,10 +601,11 @@ var UsersApiFp = function (configuration) {
557
601
  });
558
602
  },
559
603
  /**
560
- * undefined **Required Permissions** \"tenant-management.users.view\"
604
+ * Returns the user with the given code. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.view\"
605
+ * @summary Retrieve the user
561
606
  * @param {string} code
562
607
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
563
- * @param {string} [expand] Fields to expand response by
608
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
564
609
  * @param {*} [options] Override http request option.
565
610
  * @throws {RequiredError}
566
611
  */
@@ -599,7 +644,7 @@ var UsersApiFp = function (configuration) {
599
644
  });
600
645
  },
601
646
  /**
602
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
647
+ * Returns a list of users. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.list\"
603
648
  * @summary List users
604
649
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
605
650
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -607,7 +652,7 @@ var UsersApiFp = function (configuration) {
607
652
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
608
653
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
609
654
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, firstName, lastName</i>
610
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
655
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
611
656
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
612
657
  * @param {*} [options] Override http request option.
613
658
  * @throws {RequiredError}
@@ -678,10 +723,11 @@ var UsersApiFactory = function (configuration, basePath, axios) {
678
723
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
679
724
  },
680
725
  /**
681
- * undefined **Required Permissions** \"tenant-management.users.view\"
726
+ * Returns the user with the given code. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.view\"
727
+ * @summary Retrieve the user
682
728
  * @param {string} code
683
729
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
684
- * @param {string} [expand] Fields to expand response by
730
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
685
731
  * @param {*} [options] Override http request option.
686
732
  * @throws {RequiredError}
687
733
  */
@@ -700,7 +746,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
700
746
  return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
701
747
  },
702
748
  /**
703
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
749
+ * Returns a list of users. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.list\"
704
750
  * @summary List users
705
751
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
706
752
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -708,7 +754,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
708
754
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
709
755
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
710
756
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, firstName, lastName</i>
711
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
757
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
712
758
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
713
759
  * @param {*} [options] Override http request option.
714
760
  * @throws {RequiredError}
@@ -740,7 +786,7 @@ var UsersApi = /** @class */ (function (_super) {
740
786
  */
741
787
  UsersApi.prototype.assignUserRoles = function (requestParameters, options) {
742
788
  var _this = this;
743
- return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
789
+ return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
744
790
  };
745
791
  /**
746
792
  * undefined **Required Permissions** \"tenant-management.users.delete\"
@@ -751,7 +797,7 @@ var UsersApi = /** @class */ (function (_super) {
751
797
  */
752
798
  UsersApi.prototype.deleteUsers = function (requestParameters, options) {
753
799
  var _this = this;
754
- return (0, exports.UsersApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
800
+ return (0, exports.UsersApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
755
801
  };
756
802
  /**
757
803
  * undefined **Required Permissions** \"tenant-management.users.update\"
@@ -762,7 +808,7 @@ var UsersApi = /** @class */ (function (_super) {
762
808
  */
763
809
  UsersApi.prototype.disableUsers = function (requestParameters, options) {
764
810
  var _this = this;
765
- return (0, exports.UsersApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
811
+ return (0, exports.UsersApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
766
812
  };
767
813
  /**
768
814
  * undefined **Required Permissions** \"tenant-management.users.update\"
@@ -773,10 +819,11 @@ var UsersApi = /** @class */ (function (_super) {
773
819
  */
774
820
  UsersApi.prototype.enableUsers = function (requestParameters, options) {
775
821
  var _this = this;
776
- return (0, exports.UsersApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
822
+ return (0, exports.UsersApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
777
823
  };
778
824
  /**
779
- * undefined **Required Permissions** \"tenant-management.users.view\"
825
+ * Returns the user with the given code. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.view\"
826
+ * @summary Retrieve the user
780
827
  * @param {UsersApiGetUserRequest} requestParameters Request parameters.
781
828
  * @param {*} [options] Override http request option.
782
829
  * @throws {RequiredError}
@@ -784,7 +831,7 @@ var UsersApi = /** @class */ (function (_super) {
784
831
  */
785
832
  UsersApi.prototype.getUser = function (requestParameters, options) {
786
833
  var _this = this;
787
- return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
834
+ return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
788
835
  };
789
836
  /**
790
837
  * undefined **Required Permissions** \"partner-management.partners.update\"
@@ -795,10 +842,10 @@ var UsersApi = /** @class */ (function (_super) {
795
842
  */
796
843
  UsersApi.prototype.linkUserWithPartner = function (requestParameters, options) {
797
844
  var _this = this;
798
- return (0, exports.UsersApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
845
+ return (0, exports.UsersApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
799
846
  };
800
847
  /**
801
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
848
+ * Returns a list of users. expand=roles returns only roles assigned directly to the user and leaves out roles granted by user groups. Use expand=inheritedRoles to get direct and user group roles together, each role once with its sources (DIRECT or GROUP with userGroupCode). **Required Permissions** \"tenant-management.users.list\"
802
849
  * @summary List users
803
850
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
804
851
  * @param {*} [options] Override http request option.
@@ -808,7 +855,7 @@ var UsersApi = /** @class */ (function (_super) {
808
855
  UsersApi.prototype.listUsers = function (requestParameters, options) {
809
856
  var _this = this;
810
857
  if (requestParameters === void 0) { requestParameters = {}; }
811
- return (0, exports.UsersApiFp)(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
858
+ return (0, exports.UsersApiFp)(this.configuration).listUsers(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); });
812
859
  };
813
860
  return UsersApi;
814
861
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -26,6 +26,8 @@ export * from './api/re-invite-an-organization-api';
26
26
  export * from './api/report-schedule-api';
27
27
  export * from './api/report-schedule-logs-api';
28
28
  export * from './api/roles-api';
29
+ export * from './api/ssoconnection-api';
30
+ export * from './api/ssoid-pgroups-api';
29
31
  export * from './api/settings-api';
30
32
  export * from './api/user-controller-rest-api';
31
33
  export * from './api/user-group-api';
package/dist/api.js CHANGED
@@ -44,6 +44,8 @@ __exportStar(require("./api/re-invite-an-organization-api"), exports);
44
44
  __exportStar(require("./api/report-schedule-api"), exports);
45
45
  __exportStar(require("./api/report-schedule-logs-api"), exports);
46
46
  __exportStar(require("./api/roles-api"), exports);
47
+ __exportStar(require("./api/ssoconnection-api"), exports);
48
+ __exportStar(require("./api/ssoid-pgroups-api"), exports);
47
49
  __exportStar(require("./api/settings-api"), exports);
48
50
  __exportStar(require("./api/user-controller-rest-api"), exports);
49
51
  __exportStar(require("./api/user-group-api"), exports);
package/dist/base.d.ts CHANGED
@@ -22,9 +22,19 @@ export declare const COLLECTION_FORMATS: {
22
22
  tsv: string;
23
23
  pipes: string;
24
24
  };
25
+ export interface SessionClass {
26
+ sub: string;
27
+ username?: string;
28
+ email?: string;
29
+ tenantSlug?: string;
30
+ permissions?: string;
31
+ expiresAt?: number;
32
+ }
25
33
  export interface LoginClass {
26
34
  accessToken: string;
27
35
  permissions: string;
36
+ authMode?: string;
37
+ session?: SessionClass;
28
38
  }
29
39
  export interface SwitchWorkspaceRequest {
30
40
  username: string;
@@ -33,6 +43,8 @@ export interface SwitchWorkspaceRequest {
33
43
  export interface SwitchWorkspaceResponseClass {
34
44
  accessToken: string;
35
45
  permissions: string;
46
+ authMode?: string;
47
+ session?: SessionClass;
36
48
  }
37
49
  export declare enum Environment {
38
50
  Production = "https://apiv2.emil.de",
@@ -63,6 +75,18 @@ export declare class BaseAPI {
63
75
  protected configuration: Configuration | undefined;
64
76
  private tokenData?;
65
77
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
78
+ private sessionAccount;
79
+ private authBasePath;
80
+ private usesSession;
81
+ private useSessionAuth;
82
+ private useHeaderAuth;
83
+ private applyTokenReply;
84
+ private sessionHeaders;
85
+ private withCurrentAuth;
86
+ private canRetryWithToken;
87
+ private canResend;
88
+ private switchToToken;
89
+ private retryWithToken;
66
90
  selectEnvironment(env: Environment): void;
67
91
  selectBasePath(path: string): void;
68
92
  getPermissions(): Array<string>;
@@ -72,6 +96,8 @@ export declare class BaseAPI {
72
96
  private storeTokenData;
73
97
  loadTokenData(): void;
74
98
  cleanTokenData(): void;
99
+ private ownAccount;
100
+ protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
75
101
  private attachInterceptor;
76
102
  }
77
103
  /**