@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
@@ -93,8 +93,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
93
93
  // http bearer authentication required
94
94
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
95
95
 
96
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
96
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
97
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
98
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
99
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
100
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
101
+ if (authorizationValue || authorizationKeepEmpty) {
102
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
98
103
  }
99
104
 
100
105
 
@@ -140,8 +145,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
140
145
  // http bearer authentication required
141
146
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
142
147
 
143
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
148
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
149
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
150
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
151
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
152
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
153
+ if (authorizationValue || authorizationKeepEmpty) {
154
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
145
155
  }
146
156
 
147
157
 
@@ -186,8 +196,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
186
196
  // http bearer authentication required
187
197
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
188
198
 
189
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
199
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
200
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
201
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
202
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
203
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
204
+ if (authorizationValue || authorizationKeepEmpty) {
205
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
191
206
  }
192
207
 
193
208
 
@@ -232,8 +247,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
232
247
  // http bearer authentication required
233
248
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
234
249
 
235
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
251
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
252
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
253
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
254
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
255
+ if (authorizationValue || authorizationKeepEmpty) {
256
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
237
257
  }
238
258
 
239
259
 
@@ -278,8 +298,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
278
298
  // http bearer authentication required
279
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
280
300
 
281
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
282
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
302
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
303
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
304
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
305
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
306
+ if (authorizationValue || authorizationKeepEmpty) {
307
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
283
308
  }
284
309
 
285
310
 
@@ -297,10 +322,11 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
297
322
  };
298
323
  },
299
324
  /**
300
- * undefined **Required Permissions** \"tenant-management.users.view\"
325
+ * 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\"
326
+ * @summary Retrieve the user
301
327
  * @param {string} code
302
328
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
- * @param {string} [expand] Fields to expand response by
329
+ * @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>
304
330
  * @param {*} [options] Override http request option.
305
331
  * @throws {RequiredError}
306
332
  */
@@ -330,8 +356,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
330
356
  localVarQueryParameter['expand'] = expand;
331
357
  }
332
358
 
333
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
359
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
360
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
361
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
362
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
363
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
364
+ if (authorizationValue || authorizationKeepEmpty) {
365
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
335
366
  }
336
367
 
337
368
 
@@ -374,8 +405,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
374
405
  // http bearer authentication required
375
406
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
376
407
 
377
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
378
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
408
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
409
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
410
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
411
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
412
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
413
+ if (authorizationValue || authorizationKeepEmpty) {
414
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
379
415
  }
380
416
 
381
417
 
@@ -421,8 +457,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
421
457
  // http bearer authentication required
422
458
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
423
459
 
424
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
425
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
460
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
461
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
462
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
463
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
464
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
465
+ if (authorizationValue || authorizationKeepEmpty) {
466
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
426
467
  }
427
468
 
428
469
 
@@ -471,8 +512,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
471
512
  // http bearer authentication required
472
513
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
473
514
 
474
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
475
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
515
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
516
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
517
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
518
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
519
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
520
+ if (authorizationValue || authorizationKeepEmpty) {
521
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
476
522
  }
477
523
 
478
524
 
@@ -495,11 +541,11 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
495
541
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
496
542
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
497
543
  * @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.
498
- * @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>
544
+ * @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>
499
545
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
500
546
  * @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>
501
547
  * @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>
502
- * @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>
548
+ * @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>
503
549
  * @param {*} [options] Override http request option.
504
550
  * @throws {RequiredError}
505
551
  */
@@ -550,8 +596,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
550
596
  localVarQueryParameter['filters'] = filters;
551
597
  }
552
598
 
553
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
599
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
600
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
601
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
602
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
603
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
604
+ if (authorizationValue || authorizationKeepEmpty) {
605
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
555
606
  }
556
607
 
557
608
 
@@ -566,7 +617,7 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
566
617
  };
567
618
  },
568
619
  /**
569
- * 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\"
620
+ * 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\"
570
621
  * @summary List users
571
622
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
572
623
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -574,7 +625,7 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
574
625
  * @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>
575
626
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
576
627
  * @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>
577
- * @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>
628
+ * @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>
578
629
  * @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>
579
630
  * @param {*} [options] Override http request option.
580
631
  * @throws {RequiredError}
@@ -626,8 +677,13 @@ export const UserControllerRestApiAxiosParamCreator = function (configuration?:
626
677
  localVarQueryParameter['filters'] = filters;
627
678
  }
628
679
 
629
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
630
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
680
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
681
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
682
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
683
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
684
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
685
+ if (authorizationValue || authorizationKeepEmpty) {
686
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
631
687
  }
632
688
 
633
689
 
@@ -710,10 +766,11 @@ export const UserControllerRestApiFp = function(configuration?: Configuration) {
710
766
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
711
767
  },
712
768
  /**
713
- * undefined **Required Permissions** \"tenant-management.users.view\"
769
+ * 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\"
770
+ * @summary Retrieve the user
714
771
  * @param {string} code
715
772
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
716
- * @param {string} [expand] Fields to expand response by
773
+ * @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>
717
774
  * @param {*} [options] Override http request option.
718
775
  * @throws {RequiredError}
719
776
  */
@@ -763,11 +820,11 @@ export const UserControllerRestApiFp = function(configuration?: Configuration) {
763
820
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
764
821
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
765
822
  * @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.
766
- * @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>
823
+ * @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>
767
824
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
768
825
  * @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>
769
826
  * @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>
770
- * @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>
827
+ * @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>
771
828
  * @param {*} [options] Override http request option.
772
829
  * @throws {RequiredError}
773
830
  */
@@ -776,7 +833,7 @@ export const UserControllerRestApiFp = function(configuration?: Configuration) {
776
833
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
777
834
  },
778
835
  /**
779
- * 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\"
836
+ * 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\"
780
837
  * @summary List users
781
838
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
782
839
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -784,7 +841,7 @@ export const UserControllerRestApiFp = function(configuration?: Configuration) {
784
841
  * @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>
785
842
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
786
843
  * @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>
787
- * @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>
844
+ * @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>
788
845
  * @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>
789
846
  * @param {*} [options] Override http request option.
790
847
  * @throws {RequiredError}
@@ -857,10 +914,11 @@ export const UserControllerRestApiFactory = function (configuration?: Configurat
857
914
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
858
915
  },
859
916
  /**
860
- * undefined **Required Permissions** \"tenant-management.users.view\"
917
+ * 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\"
918
+ * @summary Retrieve the user
861
919
  * @param {string} code
862
920
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
863
- * @param {string} [expand] Fields to expand response by
921
+ * @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>
864
922
  * @param {*} [options] Override http request option.
865
923
  * @throws {RequiredError}
866
924
  */
@@ -906,11 +964,11 @@ export const UserControllerRestApiFactory = function (configuration?: Configurat
906
964
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
907
965
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
908
966
  * @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.
909
- * @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>
967
+ * @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>
910
968
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
911
969
  * @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>
912
970
  * @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>
913
- * @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>
971
+ * @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>
914
972
  * @param {*} [options] Override http request option.
915
973
  * @throws {RequiredError}
916
974
  */
@@ -918,7 +976,7 @@ export const UserControllerRestApiFactory = function (configuration?: Configurat
918
976
  return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
919
977
  },
920
978
  /**
921
- * 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\"
979
+ * 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\"
922
980
  * @summary List users
923
981
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
924
982
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -926,7 +984,7 @@ export const UserControllerRestApiFactory = function (configuration?: Configurat
926
984
  * @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>
927
985
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
928
986
  * @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>
929
- * @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>
987
+ * @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>
930
988
  * @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>
931
989
  * @param {*} [options] Override http request option.
932
990
  * @throws {RequiredError}
@@ -1070,7 +1128,7 @@ export interface UserControllerRestApiGetUserRequest {
1070
1128
  readonly authorization?: string
1071
1129
 
1072
1130
  /**
1073
- * Fields to expand response by
1131
+ * 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>
1074
1132
  * @type {string}
1075
1133
  * @memberof UserControllerRestApiGetUser
1076
1134
  */
@@ -1175,7 +1233,7 @@ export interface UserControllerRestApiListInvitesRequest {
1175
1233
  readonly pageToken?: string
1176
1234
 
1177
1235
  /**
1178
- * 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>
1236
+ * 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>
1179
1237
  * @type {string}
1180
1238
  * @memberof UserControllerRestApiListInvites
1181
1239
  */
@@ -1203,7 +1261,7 @@ export interface UserControllerRestApiListInvitesRequest {
1203
1261
  readonly expand?: string
1204
1262
 
1205
1263
  /**
1206
- * 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>
1264
+ * 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>
1207
1265
  * @type {string}
1208
1266
  * @memberof UserControllerRestApiListInvites
1209
1267
  */
@@ -1259,7 +1317,7 @@ export interface UserControllerRestApiListUsersRequest {
1259
1317
  readonly order?: string
1260
1318
 
1261
1319
  /**
1262
- * 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>
1320
+ * 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>
1263
1321
  * @type {string}
1264
1322
  * @memberof UserControllerRestApiListUsers
1265
1323
  */
@@ -1289,7 +1347,7 @@ export class UserControllerRestApi extends BaseAPI {
1289
1347
  * @memberof UserControllerRestApi
1290
1348
  */
1291
1349
  public assignUserRoles(requestParameters: UserControllerRestApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1292
- return UserControllerRestApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1350
+ return UserControllerRestApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1293
1351
  }
1294
1352
 
1295
1353
  /**
@@ -1301,7 +1359,7 @@ export class UserControllerRestApi extends BaseAPI {
1301
1359
  * @memberof UserControllerRestApi
1302
1360
  */
1303
1361
  public deleteInvites(requestParameters: UserControllerRestApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
1304
- return UserControllerRestApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1362
+ return UserControllerRestApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1305
1363
  }
1306
1364
 
1307
1365
  /**
@@ -1312,7 +1370,7 @@ export class UserControllerRestApi extends BaseAPI {
1312
1370
  * @memberof UserControllerRestApi
1313
1371
  */
1314
1372
  public deleteUsers(requestParameters: UserControllerRestApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1315
- return UserControllerRestApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1373
+ return UserControllerRestApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1316
1374
  }
1317
1375
 
1318
1376
  /**
@@ -1323,7 +1381,7 @@ export class UserControllerRestApi extends BaseAPI {
1323
1381
  * @memberof UserControllerRestApi
1324
1382
  */
1325
1383
  public disableUsers(requestParameters: UserControllerRestApiDisableUsersRequest, options?: AxiosRequestConfig) {
1326
- return UserControllerRestApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1384
+ return UserControllerRestApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1327
1385
  }
1328
1386
 
1329
1387
  /**
@@ -1334,18 +1392,19 @@ export class UserControllerRestApi extends BaseAPI {
1334
1392
  * @memberof UserControllerRestApi
1335
1393
  */
1336
1394
  public enableUsers(requestParameters: UserControllerRestApiEnableUsersRequest, options?: AxiosRequestConfig) {
1337
- return UserControllerRestApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1395
+ return UserControllerRestApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1338
1396
  }
1339
1397
 
1340
1398
  /**
1341
- * undefined **Required Permissions** \"tenant-management.users.view\"
1399
+ * 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\"
1400
+ * @summary Retrieve the user
1342
1401
  * @param {UserControllerRestApiGetUserRequest} requestParameters Request parameters.
1343
1402
  * @param {*} [options] Override http request option.
1344
1403
  * @throws {RequiredError}
1345
1404
  * @memberof UserControllerRestApi
1346
1405
  */
1347
1406
  public getUser(requestParameters: UserControllerRestApiGetUserRequest, options?: AxiosRequestConfig) {
1348
- return UserControllerRestApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1407
+ return UserControllerRestApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1349
1408
  }
1350
1409
 
1351
1410
  /**
@@ -1357,7 +1416,7 @@ export class UserControllerRestApi extends BaseAPI {
1357
1416
  * @memberof UserControllerRestApi
1358
1417
  */
1359
1418
  public inviteUser(requestParameters: UserControllerRestApiInviteUserRequest, options?: AxiosRequestConfig) {
1360
- return UserControllerRestApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1419
+ return UserControllerRestApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1361
1420
  }
1362
1421
 
1363
1422
  /**
@@ -1369,7 +1428,7 @@ export class UserControllerRestApi extends BaseAPI {
1369
1428
  * @memberof UserControllerRestApi
1370
1429
  */
1371
1430
  public inviteUsers(requestParameters: UserControllerRestApiInviteUsersRequest, options?: AxiosRequestConfig) {
1372
- return UserControllerRestApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1431
+ return UserControllerRestApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1373
1432
  }
1374
1433
 
1375
1434
  /**
@@ -1380,7 +1439,7 @@ export class UserControllerRestApi extends BaseAPI {
1380
1439
  * @memberof UserControllerRestApi
1381
1440
  */
1382
1441
  public linkUserWithPartner(requestParameters: UserControllerRestApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig) {
1383
- return UserControllerRestApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1442
+ return UserControllerRestApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1384
1443
  }
1385
1444
 
1386
1445
  /**
@@ -1392,11 +1451,11 @@ export class UserControllerRestApi extends BaseAPI {
1392
1451
  * @memberof UserControllerRestApi
1393
1452
  */
1394
1453
  public listInvites(requestParameters: UserControllerRestApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
1395
- return UserControllerRestApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1454
+ return UserControllerRestApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1396
1455
  }
1397
1456
 
1398
1457
  /**
1399
- * 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\"
1458
+ * 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\"
1400
1459
  * @summary List users
1401
1460
  * @param {UserControllerRestApiListUsersRequest} requestParameters Request parameters.
1402
1461
  * @param {*} [options] Override http request option.
@@ -1404,6 +1463,6 @@ export class UserControllerRestApi extends BaseAPI {
1404
1463
  * @memberof UserControllerRestApi
1405
1464
  */
1406
1465
  public listUsers(requestParameters: UserControllerRestApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1407
- return UserControllerRestApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1466
+ return UserControllerRestApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1408
1467
  }
1409
1468
  }