@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 UserControllerRestApiAxiosParamCreator = 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 UserControllerRestApiAxiosParamCreator = 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);
@@ -156,9 +163,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
156
163
  deleteInvites: function (batchDeleteRequestDto, authorization, options) {
157
164
  if (options === void 0) { options = {}; }
158
165
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
167
+ var _a;
168
+ return __generator(this, function (_b) {
169
+ switch (_b.label) {
162
170
  case 0:
163
171
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
164
172
  (0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
@@ -173,13 +181,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
173
181
  localVarQueryParameter = {};
174
182
  // authentication bearer required
175
183
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
184
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
185
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
186
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
187
+ ];
177
188
  case 1:
178
189
  // authentication bearer required
179
190
  // http bearer authentication required
180
- _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
+ _b.sent();
192
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
193
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
194
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
195
+ if (authorizationValue || authorizationKeepEmpty) {
196
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
197
  }
184
198
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
199
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -204,9 +218,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
204
218
  deleteUsers: function (batchDeleteRequestDto, authorization, options) {
205
219
  if (options === void 0) { options = {}; }
206
220
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
- return __generator(this, function (_a) {
209
- switch (_a.label) {
221
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
222
+ var _a;
223
+ return __generator(this, function (_b) {
224
+ switch (_b.label) {
210
225
  case 0:
211
226
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
212
227
  (0, common_1.assertParamExists)('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto);
@@ -221,13 +236,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
221
236
  localVarQueryParameter = {};
222
237
  // authentication bearer required
223
238
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
239
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
240
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
241
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
242
+ ];
225
243
  case 1:
226
244
  // authentication bearer required
227
245
  // http bearer authentication required
228
- _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
+ _b.sent();
247
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
+ if (authorizationValue || authorizationKeepEmpty) {
251
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
252
  }
232
253
  localVarHeaderParameter['Content-Type'] = 'application/json';
233
254
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -252,9 +273,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
252
273
  disableUsers: function (disableUsersRequestDto, authorization, options) {
253
274
  if (options === void 0) { options = {}; }
254
275
  return __awaiter(_this, void 0, void 0, function () {
255
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
256
- return __generator(this, function (_a) {
257
- switch (_a.label) {
276
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
277
+ var _a;
278
+ return __generator(this, function (_b) {
279
+ switch (_b.label) {
258
280
  case 0:
259
281
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
260
282
  (0, common_1.assertParamExists)('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto);
@@ -269,13 +291,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
269
291
  localVarQueryParameter = {};
270
292
  // authentication bearer required
271
293
  // http bearer authentication required
272
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
294
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
295
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
296
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
297
+ ];
273
298
  case 1:
274
299
  // authentication bearer required
275
300
  // http bearer authentication required
276
- _a.sent();
277
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
278
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ _b.sent();
302
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
303
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
304
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
305
+ if (authorizationValue || authorizationKeepEmpty) {
306
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
307
  }
280
308
  localVarHeaderParameter['Content-Type'] = 'application/json';
281
309
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -300,9 +328,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
300
328
  enableUsers: function (enableUsersRequestDto, authorization, options) {
301
329
  if (options === void 0) { options = {}; }
302
330
  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) {
331
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
332
+ var _a;
333
+ return __generator(this, function (_b) {
334
+ switch (_b.label) {
306
335
  case 0:
307
336
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
308
337
  (0, common_1.assertParamExists)('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto);
@@ -317,13 +346,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
317
346
  localVarQueryParameter = {};
318
347
  // authentication bearer required
319
348
  // http bearer authentication required
320
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
349
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
350
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
351
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
352
+ ];
321
353
  case 1:
322
354
  // authentication bearer required
323
355
  // http bearer authentication required
324
- _a.sent();
325
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
326
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
356
+ _b.sent();
357
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
358
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
359
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
360
+ if (authorizationValue || authorizationKeepEmpty) {
361
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
327
362
  }
328
363
  localVarHeaderParameter['Content-Type'] = 'application/json';
329
364
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -339,19 +374,21 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
339
374
  });
340
375
  },
341
376
  /**
342
- * undefined **Required Permissions** \"tenant-management.users.view\"
377
+ * 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\"
378
+ * @summary Retrieve the user
343
379
  * @param {string} code
344
380
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
- * @param {string} [expand] Fields to expand response by
381
+ * @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>
346
382
  * @param {*} [options] Override http request option.
347
383
  * @throws {RequiredError}
348
384
  */
349
385
  getUser: function (code, authorization, expand, options) {
350
386
  if (options === void 0) { options = {}; }
351
387
  return __awaiter(_this, void 0, void 0, function () {
352
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
353
- return __generator(this, function (_a) {
354
- switch (_a.label) {
388
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
389
+ var _a;
390
+ return __generator(this, function (_b) {
391
+ switch (_b.label) {
355
392
  case 0:
356
393
  // verify required parameter 'code' is not null or undefined
357
394
  (0, common_1.assertParamExists)('getUser', 'code', code);
@@ -371,12 +408,15 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
371
408
  case 1:
372
409
  // authentication bearer required
373
410
  // http bearer authentication required
374
- _a.sent();
411
+ _b.sent();
375
412
  if (expand !== undefined) {
376
413
  localVarQueryParameter['expand'] = expand;
377
414
  }
378
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
379
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
416
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
417
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
418
+ if (authorizationValue || authorizationKeepEmpty) {
419
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
380
420
  }
381
421
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
422
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -400,9 +440,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
400
440
  inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
401
441
  if (options === void 0) { options = {}; }
402
442
  return __awaiter(_this, void 0, void 0, function () {
403
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
404
- return __generator(this, function (_a) {
405
- switch (_a.label) {
443
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
444
+ var _a;
445
+ return __generator(this, function (_b) {
446
+ switch (_b.label) {
406
447
  case 0:
407
448
  // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
408
449
  (0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest);
@@ -417,13 +458,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
417
458
  localVarQueryParameter = {};
418
459
  // authentication bearer required
419
460
  // http bearer authentication required
420
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
461
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
462
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
463
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
464
+ ];
421
465
  case 1:
422
466
  // authentication bearer required
423
467
  // http bearer authentication required
424
- _a.sent();
425
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
468
+ _b.sent();
469
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
470
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
471
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
472
+ if (authorizationValue || authorizationKeepEmpty) {
473
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
427
474
  }
428
475
  localVarHeaderParameter['Content-Type'] = 'application/json';
429
476
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -449,9 +496,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
449
496
  inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
450
497
  if (options === void 0) { options = {}; }
451
498
  return __awaiter(_this, void 0, void 0, function () {
452
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
453
- return __generator(this, function (_a) {
454
- switch (_a.label) {
499
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
500
+ var _a;
501
+ return __generator(this, function (_b) {
502
+ switch (_b.label) {
455
503
  case 0:
456
504
  // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
457
505
  (0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest);
@@ -466,13 +514,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
466
514
  localVarQueryParameter = {};
467
515
  // authentication bearer required
468
516
  // http bearer authentication required
469
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
517
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
518
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
519
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
520
+ ];
470
521
  case 1:
471
522
  // authentication bearer required
472
523
  // http bearer authentication required
473
- _a.sent();
474
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
475
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
524
+ _b.sent();
525
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
526
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
527
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
528
+ if (authorizationValue || authorizationKeepEmpty) {
529
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
476
530
  }
477
531
  localVarHeaderParameter['Content-Type'] = 'application/json';
478
532
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -498,9 +552,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
498
552
  linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
499
553
  if (options === void 0) { options = {}; }
500
554
  return __awaiter(_this, void 0, void 0, function () {
501
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
502
- return __generator(this, function (_a) {
503
- switch (_a.label) {
555
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
556
+ var _a;
557
+ return __generator(this, function (_b) {
558
+ switch (_b.label) {
504
559
  case 0:
505
560
  // verify required parameter 'code' is not null or undefined
506
561
  (0, common_1.assertParamExists)('linkUserWithPartner', 'code', code);
@@ -518,13 +573,19 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
518
573
  localVarQueryParameter = {};
519
574
  // authentication bearer required
520
575
  // http bearer authentication required
521
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
576
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
577
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
578
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
579
+ ];
522
580
  case 1:
523
581
  // authentication bearer required
524
582
  // http bearer authentication required
525
- _a.sent();
526
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
527
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
583
+ _b.sent();
584
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
585
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
586
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
587
+ if (authorizationValue || authorizationKeepEmpty) {
588
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
528
589
  }
529
590
  localVarHeaderParameter['Content-Type'] = 'application/json';
530
591
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -545,20 +606,21 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
545
606
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
607
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
547
608
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
548
- * @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, email, token, organizationId, ern, partnerCode</i>
609
+ * @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, token, organizationId, ern, partnerCode</i>
549
610
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
550
611
  * @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, expiresOn</i>
551
612
  * @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: organizations<i>
552
- * @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, email, token, organizationId, ern, partnerCode</i>
613
+ * @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, token, organizationId, ern, partnerCode</i>
553
614
  * @param {*} [options] Override http request option.
554
615
  * @throws {RequiredError}
555
616
  */
556
617
  listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
618
  if (options === void 0) { options = {}; }
558
619
  return __awaiter(_this, void 0, void 0, function () {
559
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
560
- return __generator(this, function (_a) {
561
- switch (_a.label) {
620
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
621
+ var _a;
622
+ return __generator(this, function (_b) {
623
+ switch (_b.label) {
562
624
  case 0:
563
625
  localVarPath = "/tenantservice/v1/users/invites";
564
626
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -575,7 +637,7 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
575
637
  case 1:
576
638
  // authentication bearer required
577
639
  // http bearer authentication required
578
- _a.sent();
640
+ _b.sent();
579
641
  if (pageSize !== undefined) {
580
642
  localVarQueryParameter['pageSize'] = pageSize;
581
643
  }
@@ -597,8 +659,11 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
597
659
  if (filters !== undefined) {
598
660
  localVarQueryParameter['filters'] = filters;
599
661
  }
600
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
601
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
662
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
663
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
664
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
665
+ if (authorizationValue || authorizationKeepEmpty) {
666
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
602
667
  }
603
668
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
604
669
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -612,7 +677,7 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
612
677
  });
613
678
  },
614
679
  /**
615
- * 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\"
680
+ * 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\"
616
681
  * @summary List users
617
682
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
618
683
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -620,7 +685,7 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
620
685
  * @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>
621
686
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
622
687
  * @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>
623
- * @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>
688
+ * @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>
624
689
  * @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>
625
690
  * @param {*} [options] Override http request option.
626
691
  * @throws {RequiredError}
@@ -628,9 +693,10 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
628
693
  listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
629
694
  if (options === void 0) { options = {}; }
630
695
  return __awaiter(_this, void 0, void 0, function () {
631
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
632
- return __generator(this, function (_a) {
633
- switch (_a.label) {
696
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
697
+ var _a;
698
+ return __generator(this, function (_b) {
699
+ switch (_b.label) {
634
700
  case 0:
635
701
  localVarPath = "/tenantservice/v1/users";
636
702
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -647,7 +713,7 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
647
713
  case 1:
648
714
  // authentication bearer required
649
715
  // http bearer authentication required
650
- _a.sent();
716
+ _b.sent();
651
717
  if (pageSize !== undefined) {
652
718
  localVarQueryParameter['pageSize'] = pageSize;
653
719
  }
@@ -669,8 +735,11 @@ var UserControllerRestApiAxiosParamCreator = function (configuration) {
669
735
  if (filters !== undefined) {
670
736
  localVarQueryParameter['filters'] = filters;
671
737
  }
672
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
673
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
738
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
739
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
740
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
741
+ if (authorizationValue || authorizationKeepEmpty) {
742
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
674
743
  }
675
744
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
676
745
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -797,10 +866,11 @@ var UserControllerRestApiFp = function (configuration) {
797
866
  });
798
867
  },
799
868
  /**
800
- * undefined **Required Permissions** \"tenant-management.users.view\"
869
+ * 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\"
870
+ * @summary Retrieve the user
801
871
  * @param {string} code
802
872
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
803
- * @param {string} [expand] Fields to expand response by
873
+ * @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>
804
874
  * @param {*} [options] Override http request option.
805
875
  * @throws {RequiredError}
806
876
  */
@@ -886,11 +956,11 @@ var UserControllerRestApiFp = function (configuration) {
886
956
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
887
957
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
888
958
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
889
- * @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, email, token, organizationId, ern, partnerCode</i>
959
+ * @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, token, organizationId, ern, partnerCode</i>
890
960
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
891
961
  * @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, expiresOn</i>
892
962
  * @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: organizations<i>
893
- * @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, email, token, organizationId, ern, partnerCode</i>
963
+ * @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, token, organizationId, ern, partnerCode</i>
894
964
  * @param {*} [options] Override http request option.
895
965
  * @throws {RequiredError}
896
966
  */
@@ -908,7 +978,7 @@ var UserControllerRestApiFp = function (configuration) {
908
978
  });
909
979
  },
910
980
  /**
911
- * 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\"
981
+ * 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\"
912
982
  * @summary List users
913
983
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
914
984
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -916,7 +986,7 @@ var UserControllerRestApiFp = function (configuration) {
916
986
  * @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>
917
987
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
918
988
  * @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>
919
- * @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>
989
+ * @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>
920
990
  * @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>
921
991
  * @param {*} [options] Override http request option.
922
992
  * @throws {RequiredError}
@@ -998,10 +1068,11 @@ var UserControllerRestApiFactory = function (configuration, basePath, axios) {
998
1068
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
999
1069
  },
1000
1070
  /**
1001
- * undefined **Required Permissions** \"tenant-management.users.view\"
1071
+ * 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\"
1072
+ * @summary Retrieve the user
1002
1073
  * @param {string} code
1003
1074
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1004
- * @param {string} [expand] Fields to expand response by
1075
+ * @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>
1005
1076
  * @param {*} [options] Override http request option.
1006
1077
  * @throws {RequiredError}
1007
1078
  */
@@ -1047,11 +1118,11 @@ var UserControllerRestApiFactory = function (configuration, basePath, axios) {
1047
1118
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1048
1119
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1049
1120
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1050
- * @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, email, token, organizationId, ern, partnerCode</i>
1121
+ * @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, token, organizationId, ern, partnerCode</i>
1051
1122
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1052
1123
  * @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, expiresOn</i>
1053
1124
  * @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: organizations<i>
1054
- * @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, email, token, organizationId, ern, partnerCode</i>
1125
+ * @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, token, organizationId, ern, partnerCode</i>
1055
1126
  * @param {*} [options] Override http request option.
1056
1127
  * @throws {RequiredError}
1057
1128
  */
@@ -1059,7 +1130,7 @@ var UserControllerRestApiFactory = function (configuration, basePath, axios) {
1059
1130
  return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1060
1131
  },
1061
1132
  /**
1062
- * 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\"
1133
+ * 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\"
1063
1134
  * @summary List users
1064
1135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1065
1136
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1067,7 +1138,7 @@ var UserControllerRestApiFactory = function (configuration, basePath, axios) {
1067
1138
  * @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>
1068
1139
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1069
1140
  * @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>
1070
- * @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>
1141
+ * @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>
1071
1142
  * @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>
1072
1143
  * @param {*} [options] Override http request option.
1073
1144
  * @throws {RequiredError}
@@ -1099,7 +1170,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1099
1170
  */
1100
1171
  UserControllerRestApi.prototype.assignUserRoles = function (requestParameters, options) {
1101
1172
  var _this = this;
1102
- return (0, exports.UserControllerRestApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1173
+ return (0, exports.UserControllerRestApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1103
1174
  };
1104
1175
  /**
1105
1176
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it. **Required Permissions** \"tenant-management.users.delete\"
@@ -1111,7 +1182,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1111
1182
  */
1112
1183
  UserControllerRestApi.prototype.deleteInvites = function (requestParameters, options) {
1113
1184
  var _this = this;
1114
- return (0, exports.UserControllerRestApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1185
+ return (0, exports.UserControllerRestApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1115
1186
  };
1116
1187
  /**
1117
1188
  * undefined **Required Permissions** \"tenant-management.users.delete\"
@@ -1122,7 +1193,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1122
1193
  */
1123
1194
  UserControllerRestApi.prototype.deleteUsers = function (requestParameters, options) {
1124
1195
  var _this = this;
1125
- return (0, exports.UserControllerRestApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1196
+ return (0, exports.UserControllerRestApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1126
1197
  };
1127
1198
  /**
1128
1199
  * undefined **Required Permissions** \"tenant-management.users.update\"
@@ -1133,7 +1204,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1133
1204
  */
1134
1205
  UserControllerRestApi.prototype.disableUsers = function (requestParameters, options) {
1135
1206
  var _this = this;
1136
- return (0, exports.UserControllerRestApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1207
+ return (0, exports.UserControllerRestApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1137
1208
  };
1138
1209
  /**
1139
1210
  * undefined **Required Permissions** \"tenant-management.users.update\"
@@ -1144,10 +1215,11 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1144
1215
  */
1145
1216
  UserControllerRestApi.prototype.enableUsers = function (requestParameters, options) {
1146
1217
  var _this = this;
1147
- return (0, exports.UserControllerRestApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1218
+ return (0, exports.UserControllerRestApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1148
1219
  };
1149
1220
  /**
1150
- * undefined **Required Permissions** \"tenant-management.users.view\"
1221
+ * 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\"
1222
+ * @summary Retrieve the user
1151
1223
  * @param {UserControllerRestApiGetUserRequest} requestParameters Request parameters.
1152
1224
  * @param {*} [options] Override http request option.
1153
1225
  * @throws {RequiredError}
@@ -1155,7 +1227,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1155
1227
  */
1156
1228
  UserControllerRestApi.prototype.getUser = function (requestParameters, options) {
1157
1229
  var _this = this;
1158
- return (0, exports.UserControllerRestApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1230
+ return (0, exports.UserControllerRestApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1159
1231
  };
1160
1232
  /**
1161
1233
  * This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
@@ -1167,7 +1239,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1167
1239
  */
1168
1240
  UserControllerRestApi.prototype.inviteUser = function (requestParameters, options) {
1169
1241
  var _this = this;
1170
- return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1242
+ return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1171
1243
  };
1172
1244
  /**
1173
1245
  * This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
@@ -1179,7 +1251,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1179
1251
  */
1180
1252
  UserControllerRestApi.prototype.inviteUsers = function (requestParameters, options) {
1181
1253
  var _this = this;
1182
- return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1254
+ return (0, exports.UserControllerRestApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1183
1255
  };
1184
1256
  /**
1185
1257
  * undefined **Required Permissions** \"partner-management.partners.update\"
@@ -1190,7 +1262,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1190
1262
  */
1191
1263
  UserControllerRestApi.prototype.linkUserWithPartner = function (requestParameters, options) {
1192
1264
  var _this = this;
1193
- return (0, exports.UserControllerRestApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1265
+ return (0, exports.UserControllerRestApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1194
1266
  };
1195
1267
  /**
1196
1268
  * Returns a list of invited users you have previously created. The invited 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\"
@@ -1203,10 +1275,10 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1203
1275
  UserControllerRestApi.prototype.listInvites = function (requestParameters, options) {
1204
1276
  var _this = this;
1205
1277
  if (requestParameters === void 0) { requestParameters = {}; }
1206
- return (0, exports.UserControllerRestApiFp)(this.configuration).listInvites(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); });
1278
+ return (0, exports.UserControllerRestApiFp)(this.configuration).listInvites(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); });
1207
1279
  };
1208
1280
  /**
1209
- * 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\"
1281
+ * 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\"
1210
1282
  * @summary List users
1211
1283
  * @param {UserControllerRestApiListUsersRequest} requestParameters Request parameters.
1212
1284
  * @param {*} [options] Override http request option.
@@ -1216,7 +1288,7 @@ var UserControllerRestApi = /** @class */ (function (_super) {
1216
1288
  UserControllerRestApi.prototype.listUsers = function (requestParameters, options) {
1217
1289
  var _this = this;
1218
1290
  if (requestParameters === void 0) { requestParameters = {}; }
1219
- return (0, exports.UserControllerRestApiFp)(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); });
1291
+ return (0, exports.UserControllerRestApiFp)(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); });
1220
1292
  };
1221
1293
  return UserControllerRestApi;
1222
1294
  }(base_1.BaseAPI));