@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.
- package/.openapi-generator/FILES +33 -0
- package/README.md +2 -2
- package/api/custom-schema-api.ts +32 -12
- package/api/dashboard-api.ts +96 -36
- package/api/dashboard-group-api.ts +40 -15
- package/api/data-report-api.ts +32 -12
- package/api/data-report-executor-api.ts +8 -3
- package/api/delete-organization-invitations-api.ts +8 -3
- package/api/health-check-api.ts +1 -1
- package/api/invitation-controller-rest-api.ts +32 -12
- package/api/invite-organizations-api.ts +8 -3
- package/api/invite-users-api.ts +40 -20
- package/api/list-organization-invitations-api.ts +8 -3
- package/api/organization-migration-api.ts +40 -15
- package/api/organizations-api.ts +24 -9
- package/api/re-invite-an-organization-api.ts +8 -3
- package/api/report-schedule-api.ts +40 -15
- package/api/report-schedule-logs-api.ts +8 -3
- package/api/roles-api.ts +8 -3
- package/api/settings-api.ts +32 -12
- package/api/ssoconnection-api.ts +824 -0
- package/api/ssoid-pgroups-api.ts +829 -0
- package/api/user-controller-rest-api.ts +116 -57
- package/api/user-group-api.ts +64 -24
- package/api/users-api.ts +76 -37
- package/api.ts +4 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/custom-schema-api.d.ts +4 -4
- package/dist/api/custom-schema-api.js +52 -30
- package/dist/api/dashboard-api.d.ts +12 -12
- package/dist/api/dashboard-api.js +176 -95
- package/dist/api/dashboard-group-api.d.ts +5 -5
- package/dist/api/dashboard-group-api.js +71 -39
- package/dist/api/data-report-api.d.ts +4 -4
- package/dist/api/data-report-api.js +52 -30
- package/dist/api/data-report-executor-api.d.ts +1 -1
- package/dist/api/data-report-executor-api.js +15 -8
- package/dist/api/delete-organization-invitations-api.d.ts +1 -1
- package/dist/api/delete-organization-invitations-api.js +15 -8
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/invitation-controller-rest-api.d.ts +4 -4
- package/dist/api/invitation-controller-rest-api.js +56 -31
- package/dist/api/invite-organizations-api.d.ts +1 -1
- package/dist/api/invite-organizations-api.js +15 -8
- package/dist/api/invite-users-api.d.ts +12 -12
- package/dist/api/invite-users-api.js +62 -37
- package/dist/api/list-organization-invitations-api.d.ts +1 -1
- package/dist/api/list-organization-invitations-api.js +11 -7
- package/dist/api/organization-migration-api.d.ts +5 -5
- package/dist/api/organization-migration-api.js +67 -38
- package/dist/api/organizations-api.d.ts +3 -3
- package/dist/api/organizations-api.js +41 -23
- package/dist/api/re-invite-an-organization-api.d.ts +1 -1
- package/dist/api/re-invite-an-organization-api.js +15 -8
- package/dist/api/report-schedule-api.d.ts +5 -5
- package/dist/api/report-schedule-api.js +67 -38
- package/dist/api/report-schedule-logs-api.d.ts +1 -1
- package/dist/api/report-schedule-logs-api.js +11 -7
- package/dist/api/roles-api.d.ts +1 -1
- package/dist/api/roles-api.js +11 -7
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +52 -30
- package/dist/api/ssoconnection-api.d.ts +434 -0
- package/dist/api/ssoconnection-api.js +829 -0
- package/dist/api/ssoid-pgroups-api.d.ts +451 -0
- package/dist/api/ssoid-pgroups-api.js +774 -0
- package/dist/api/user-controller-rest-api.d.ts +39 -35
- package/dist/api/user-controller-rest-api.js +177 -105
- package/dist/api/user-group-api.d.ts +8 -8
- package/dist/api/user-group-api.js +112 -62
- package/dist/api/users-api.d.ts +27 -23
- package/dist/api/users-api.js +115 -68
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/admin-initial-tenant-config-dto.d.ts +4 -2
- package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-admin-tenant-request-dto.js +5 -0
- package/dist/models/create-sso-connection-request-dto.d.ts +67 -0
- package/dist/models/create-sso-connection-request-dto.js +24 -0
- package/dist/models/create-sso-connection-response-class.d.ts +25 -0
- package/dist/models/create-sso-connection-response-class.js +15 -0
- package/dist/models/create-sso-idp-group-request-dto.d.ts +37 -0
- package/dist/models/create-sso-idp-group-request-dto.js +15 -0
- package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/create-sso-idp-group-response-class.js +15 -0
- package/dist/models/create-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-tenant-request-dto.js +5 -0
- package/dist/models/custom-field-dto.d.ts +8 -4
- package/dist/models/delete-by-code-response-class.d.ts +24 -0
- package/dist/models/delete-by-code-response-class.js +15 -0
- package/dist/models/get-sso-connection-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-response-class.js +15 -0
- package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-setup-response-class.js +15 -0
- package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/get-sso-idp-group-response-class.js +15 -0
- package/dist/models/index.d.ts +31 -0
- package/dist/models/index.js +31 -0
- package/dist/models/invite-class.d.ts +6 -0
- package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
- package/dist/models/list-sso-idp-groups-response-class.js +15 -0
- package/dist/models/oidc-sso-details-input-dto.d.ts +42 -0
- package/dist/models/oidc-sso-details-input-dto.js +15 -0
- package/dist/models/oidc-sso-details-update-dto.d.ts +42 -0
- package/dist/models/oidc-sso-details-update-dto.js +15 -0
- package/dist/models/oidc-sso-setup-class.d.ts +37 -0
- package/dist/models/oidc-sso-setup-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +6 -0
- package/dist/models/role-class.d.ts +7 -0
- package/dist/models/role-source-class.d.ts +35 -0
- package/dist/models/role-source-class.js +20 -0
- package/dist/models/saml-sso-details-dto.d.ts +24 -0
- package/dist/models/saml-sso-details-dto.js +15 -0
- package/dist/models/saml-sso-setup-class.d.ts +37 -0
- package/dist/models/saml-sso-setup-class.js +15 -0
- package/dist/models/shared-oidc-sso-details-class.d.ts +42 -0
- package/dist/models/shared-oidc-sso-details-class.js +15 -0
- package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
- package/dist/models/shared-saml-sso-details-class.js +15 -0
- package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
- package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
- package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
- package/dist/models/sso-attribute-mapping-dto.js +15 -0
- package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
- package/dist/models/sso-attribute-mapping-template-class.js +15 -0
- package/dist/models/sso-connection-class.d.ts +103 -0
- package/dist/models/sso-connection-class.js +24 -0
- package/dist/models/sso-connection-setup-class.d.ts +32 -0
- package/dist/models/sso-connection-setup-class.js +15 -0
- package/dist/models/sso-idp-group-class.d.ts +73 -0
- package/dist/models/sso-idp-group-class.js +15 -0
- package/dist/models/update-sso-connection-body-dto.d.ts +45 -0
- package/dist/models/update-sso-connection-body-dto.js +15 -0
- package/dist/models/update-sso-connection-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-response-class.js +15 -0
- package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-connection-status-body-dto.js +15 -0
- package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-status-response-class.js +15 -0
- package/dist/models/update-sso-idp-group-body-dto.d.ts +31 -0
- package/dist/models/update-sso-idp-group-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-response-class.js +15 -0
- package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
- package/dist/models/user-class.d.ts +7 -0
- package/models/admin-initial-tenant-config-dto.ts +2 -2
- package/models/create-admin-tenant-request-dto.ts +14 -0
- package/models/create-sso-connection-request-dto.ts +77 -0
- package/models/create-sso-connection-response-class.ts +31 -0
- package/models/create-sso-idp-group-request-dto.ts +43 -0
- package/models/create-sso-idp-group-response-class.ts +31 -0
- package/models/create-tenant-request-dto.ts +14 -0
- package/models/custom-field-dto.ts +4 -4
- package/models/delete-by-code-response-class.ts +30 -0
- package/models/get-sso-connection-response-class.ts +31 -0
- package/models/get-sso-connection-setup-response-class.ts +31 -0
- package/models/get-sso-idp-group-response-class.ts +31 -0
- package/models/index.ts +31 -0
- package/models/invite-class.ts +6 -0
- package/models/list-sso-idp-groups-response-class.ts +49 -0
- package/models/oidc-sso-details-input-dto.ts +48 -0
- package/models/oidc-sso-details-update-dto.ts +48 -0
- package/models/oidc-sso-setup-class.ts +43 -0
- package/models/org-invitation-class.ts +6 -0
- package/models/role-class.ts +7 -0
- package/models/role-source-class.ts +44 -0
- package/models/saml-sso-details-dto.ts +30 -0
- package/models/saml-sso-setup-class.ts +43 -0
- package/models/shared-oidc-sso-details-class.ts +48 -0
- package/models/shared-saml-sso-details-class.ts +30 -0
- package/models/shared-sso-attribute-mapping-class.ts +36 -0
- package/models/sso-attribute-mapping-dto.ts +36 -0
- package/models/sso-attribute-mapping-template-class.ts +42 -0
- package/models/sso-connection-class.ts +113 -0
- package/models/sso-connection-setup-class.ts +38 -0
- package/models/sso-idp-group-class.ts +79 -0
- package/models/update-sso-connection-body-dto.ts +51 -0
- package/models/update-sso-connection-response-class.ts +31 -0
- package/models/update-sso-connection-status-body-dto.ts +30 -0
- package/models/update-sso-connection-status-response-class.ts +31 -0
- package/models/update-sso-idp-group-body-dto.ts +37 -0
- package/models/update-sso-idp-group-response-class.ts +31 -0
- package/models/update-sso-idp-group-status-body-dto.ts +30 -0
- package/models/update-sso-idp-group-status-response-class.ts +31 -0
- package/models/user-class.ts +7 -0
- 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
|
-
|
|
97
|
-
|
|
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
|
-
|
|
144
|
-
|
|
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
|
-
|
|
190
|
-
|
|
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
|
-
|
|
236
|
-
|
|
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
|
-
|
|
282
|
-
|
|
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
|
-
*
|
|
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]
|
|
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
|
-
|
|
334
|
-
|
|
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
|
-
|
|
378
|
-
|
|
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
|
-
|
|
425
|
-
|
|
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
|
-
|
|
475
|
-
|
|
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
|
-
|
|
554
|
-
|
|
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
|
|
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
|
-
|
|
630
|
-
|
|
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
|
-
*
|
|
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]
|
|
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
|
|
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
|
-
*
|
|
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]
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
}
|