@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
package/api/user-group-api.ts
CHANGED
|
@@ -80,8 +80,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
80
80
|
// http bearer authentication required
|
|
81
81
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
84
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
85
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
86
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
87
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
88
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
89
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
|
|
@@ -126,8 +131,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
126
131
|
// http bearer authentication required
|
|
127
132
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
128
133
|
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
135
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
136
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
|
|
@@ -173,8 +183,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
173
183
|
// http bearer authentication required
|
|
174
184
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
175
185
|
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
193
|
}
|
|
179
194
|
|
|
180
195
|
|
|
@@ -217,8 +232,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
217
232
|
// http bearer authentication required
|
|
218
233
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
219
234
|
|
|
220
|
-
|
|
221
|
-
|
|
235
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
236
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
237
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
238
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
239
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
240
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
241
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
222
242
|
}
|
|
223
243
|
|
|
224
244
|
|
|
@@ -296,8 +316,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
296
316
|
localVarQueryParameter['filters'] = filters;
|
|
297
317
|
}
|
|
298
318
|
|
|
299
|
-
|
|
300
|
-
|
|
319
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
320
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
321
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
322
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
323
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
324
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
325
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
301
326
|
}
|
|
302
327
|
|
|
303
328
|
|
|
@@ -371,8 +396,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
371
396
|
localVarQueryParameter['filters'] = filters;
|
|
372
397
|
}
|
|
373
398
|
|
|
374
|
-
|
|
375
|
-
|
|
399
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
400
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
401
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
402
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
403
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
404
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
405
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
376
406
|
}
|
|
377
407
|
|
|
378
408
|
|
|
@@ -418,8 +448,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
418
448
|
// http bearer authentication required
|
|
419
449
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
420
450
|
|
|
421
|
-
|
|
422
|
-
|
|
451
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
452
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
453
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
454
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
455
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
456
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
457
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
423
458
|
}
|
|
424
459
|
|
|
425
460
|
|
|
@@ -468,8 +503,13 @@ export const UserGroupApiAxiosParamCreator = function (configuration?: Configura
|
|
|
468
503
|
// http bearer authentication required
|
|
469
504
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
470
505
|
|
|
471
|
-
|
|
472
|
-
|
|
506
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
507
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
508
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
509
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
510
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
511
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
512
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
473
513
|
}
|
|
474
514
|
|
|
475
515
|
|
|
@@ -1004,7 +1044,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1004
1044
|
* @memberof UserGroupApi
|
|
1005
1045
|
*/
|
|
1006
1046
|
public addUsersToGroup(requestParameters: UserGroupApiAddUsersToGroupRequest, options?: AxiosRequestConfig) {
|
|
1007
|
-
return UserGroupApiFp(this.configuration).addUsersToGroup(requestParameters.code, requestParameters.addUsersToGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1047
|
+
return UserGroupApiFp(this.configuration).addUsersToGroup(requestParameters.code, requestParameters.addUsersToGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1008
1048
|
}
|
|
1009
1049
|
|
|
1010
1050
|
/**
|
|
@@ -1015,7 +1055,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1015
1055
|
* @memberof UserGroupApi
|
|
1016
1056
|
*/
|
|
1017
1057
|
public createUserGroup(requestParameters: UserGroupApiCreateUserGroupRequest, options?: AxiosRequestConfig) {
|
|
1018
|
-
return UserGroupApiFp(this.configuration).createUserGroup(requestParameters.createUserGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1058
|
+
return UserGroupApiFp(this.configuration).createUserGroup(requestParameters.createUserGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1019
1059
|
}
|
|
1020
1060
|
|
|
1021
1061
|
/**
|
|
@@ -1026,7 +1066,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1026
1066
|
* @memberof UserGroupApi
|
|
1027
1067
|
*/
|
|
1028
1068
|
public deleteUserGroup(requestParameters: UserGroupApiDeleteUserGroupRequest, options?: AxiosRequestConfig) {
|
|
1029
|
-
return UserGroupApiFp(this.configuration).deleteUserGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1069
|
+
return UserGroupApiFp(this.configuration).deleteUserGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1030
1070
|
}
|
|
1031
1071
|
|
|
1032
1072
|
/**
|
|
@@ -1037,7 +1077,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1037
1077
|
* @memberof UserGroupApi
|
|
1038
1078
|
*/
|
|
1039
1079
|
public getUserGroup(requestParameters: UserGroupApiGetUserGroupRequest, options?: AxiosRequestConfig) {
|
|
1040
|
-
return UserGroupApiFp(this.configuration).getUserGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
+
return UserGroupApiFp(this.configuration).getUserGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1041
1081
|
}
|
|
1042
1082
|
|
|
1043
1083
|
/**
|
|
@@ -1048,7 +1088,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1048
1088
|
* @memberof UserGroupApi
|
|
1049
1089
|
*/
|
|
1050
1090
|
public listUserGroupMembers(requestParameters: UserGroupApiListUserGroupMembersRequest, options?: AxiosRequestConfig) {
|
|
1051
|
-
return UserGroupApiFp(this.configuration).listUserGroupMembers(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
return UserGroupApiFp(this.configuration).listUserGroupMembers(requestParameters.code, 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));
|
|
1052
1092
|
}
|
|
1053
1093
|
|
|
1054
1094
|
/**
|
|
@@ -1059,7 +1099,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1059
1099
|
* @memberof UserGroupApi
|
|
1060
1100
|
*/
|
|
1061
1101
|
public listUserGroups(requestParameters: UserGroupApiListUserGroupsRequest = {}, options?: AxiosRequestConfig) {
|
|
1062
|
-
return UserGroupApiFp(this.configuration).listUserGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1102
|
+
return UserGroupApiFp(this.configuration).listUserGroups(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));
|
|
1063
1103
|
}
|
|
1064
1104
|
|
|
1065
1105
|
/**
|
|
@@ -1070,7 +1110,7 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1070
1110
|
* @memberof UserGroupApi
|
|
1071
1111
|
*/
|
|
1072
1112
|
public removeUsersFromGroup(requestParameters: UserGroupApiRemoveUsersFromGroupRequest, options?: AxiosRequestConfig) {
|
|
1073
|
-
return UserGroupApiFp(this.configuration).removeUsersFromGroup(requestParameters.code, requestParameters.removeUsersFromGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1113
|
+
return UserGroupApiFp(this.configuration).removeUsersFromGroup(requestParameters.code, requestParameters.removeUsersFromGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1074
1114
|
}
|
|
1075
1115
|
|
|
1076
1116
|
/**
|
|
@@ -1081,6 +1121,6 @@ export class UserGroupApi extends BaseAPI {
|
|
|
1081
1121
|
* @memberof UserGroupApi
|
|
1082
1122
|
*/
|
|
1083
1123
|
public updateUserGroup(requestParameters: UserGroupApiUpdateUserGroupRequest, options?: AxiosRequestConfig) {
|
|
1084
|
-
return UserGroupApiFp(this.configuration).updateUserGroup(requestParameters.code, requestParameters.updateUserGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1124
|
+
return UserGroupApiFp(this.configuration).updateUserGroup(requestParameters.code, requestParameters.updateUserGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1085
1125
|
}
|
|
1086
1126
|
}
|
package/api/users-api.ts
CHANGED
|
@@ -83,8 +83,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
83
83
|
// http bearer authentication required
|
|
84
84
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
87
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
88
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
89
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
90
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
91
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
92
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
|
|
@@ -129,8 +134,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
129
134
|
// http bearer authentication required
|
|
130
135
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
131
136
|
|
|
132
|
-
|
|
133
|
-
|
|
137
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
138
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
139
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
140
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
141
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
142
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
143
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
|
|
@@ -175,8 +185,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
175
185
|
// http bearer authentication required
|
|
176
186
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
177
187
|
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
189
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
190
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
191
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
192
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
193
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
194
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
195
|
}
|
|
181
196
|
|
|
182
197
|
|
|
@@ -221,8 +236,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
221
236
|
// http bearer authentication required
|
|
222
237
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
223
238
|
|
|
224
|
-
|
|
225
|
-
|
|
239
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
240
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
241
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
242
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
243
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
244
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
245
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
226
246
|
}
|
|
227
247
|
|
|
228
248
|
|
|
@@ -240,10 +260,11 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
240
260
|
};
|
|
241
261
|
},
|
|
242
262
|
/**
|
|
243
|
-
*
|
|
263
|
+
* 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\"
|
|
264
|
+
* @summary Retrieve the user
|
|
244
265
|
* @param {string} code
|
|
245
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
|
-
* @param {string} [expand]
|
|
267
|
+
* @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>
|
|
247
268
|
* @param {*} [options] Override http request option.
|
|
248
269
|
* @throws {RequiredError}
|
|
249
270
|
*/
|
|
@@ -273,8 +294,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
273
294
|
localVarQueryParameter['expand'] = expand;
|
|
274
295
|
}
|
|
275
296
|
|
|
276
|
-
|
|
277
|
-
|
|
297
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
298
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
299
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
300
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
301
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
302
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
303
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
278
304
|
}
|
|
279
305
|
|
|
280
306
|
|
|
@@ -320,8 +346,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
320
346
|
// http bearer authentication required
|
|
321
347
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
322
348
|
|
|
323
|
-
|
|
324
|
-
|
|
349
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
350
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
351
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
352
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
353
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
354
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
355
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
325
356
|
}
|
|
326
357
|
|
|
327
358
|
|
|
@@ -339,7 +370,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
339
370
|
};
|
|
340
371
|
},
|
|
341
372
|
/**
|
|
342
|
-
* Returns a list of users
|
|
373
|
+
* 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\"
|
|
343
374
|
* @summary List users
|
|
344
375
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
376
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -347,7 +378,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
347
378
|
* @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>
|
|
348
379
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
349
380
|
* @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>
|
|
350
|
-
* @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>
|
|
381
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations, userGroups, roles, inheritedRoles<i>
|
|
351
382
|
* @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>
|
|
352
383
|
* @param {*} [options] Override http request option.
|
|
353
384
|
* @throws {RequiredError}
|
|
@@ -399,8 +430,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
399
430
|
localVarQueryParameter['filters'] = filters;
|
|
400
431
|
}
|
|
401
432
|
|
|
402
|
-
|
|
403
|
-
|
|
433
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
434
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
435
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
436
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
437
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
438
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
439
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
404
440
|
}
|
|
405
441
|
|
|
406
442
|
|
|
@@ -471,10 +507,11 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
471
507
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
508
|
},
|
|
473
509
|
/**
|
|
474
|
-
*
|
|
510
|
+
* 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\"
|
|
511
|
+
* @summary Retrieve the user
|
|
475
512
|
* @param {string} code
|
|
476
513
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
477
|
-
* @param {string} [expand]
|
|
514
|
+
* @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>
|
|
478
515
|
* @param {*} [options] Override http request option.
|
|
479
516
|
* @throws {RequiredError}
|
|
480
517
|
*/
|
|
@@ -495,7 +532,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
495
532
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
496
533
|
},
|
|
497
534
|
/**
|
|
498
|
-
* Returns a list of users
|
|
535
|
+
* 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\"
|
|
499
536
|
* @summary List users
|
|
500
537
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
501
538
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -503,7 +540,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
503
540
|
* @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>
|
|
504
541
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
505
542
|
* @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>
|
|
506
|
-
* @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>
|
|
543
|
+
* @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>
|
|
507
544
|
* @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>
|
|
508
545
|
* @param {*} [options] Override http request option.
|
|
509
546
|
* @throws {RequiredError}
|
|
@@ -565,10 +602,11 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
565
602
|
return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
566
603
|
},
|
|
567
604
|
/**
|
|
568
|
-
*
|
|
605
|
+
* 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\"
|
|
606
|
+
* @summary Retrieve the user
|
|
569
607
|
* @param {string} code
|
|
570
608
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
|
-
* @param {string} [expand]
|
|
609
|
+
* @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>
|
|
572
610
|
* @param {*} [options] Override http request option.
|
|
573
611
|
* @throws {RequiredError}
|
|
574
612
|
*/
|
|
@@ -587,7 +625,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
587
625
|
return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
588
626
|
},
|
|
589
627
|
/**
|
|
590
|
-
* Returns a list of users
|
|
628
|
+
* 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\"
|
|
591
629
|
* @summary List users
|
|
592
630
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
631
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -595,7 +633,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
595
633
|
* @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>
|
|
596
634
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
597
635
|
* @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>
|
|
598
|
-
* @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>
|
|
636
|
+
* @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>
|
|
599
637
|
* @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>
|
|
600
638
|
* @param {*} [options] Override http request option.
|
|
601
639
|
* @throws {RequiredError}
|
|
@@ -718,7 +756,7 @@ export interface UsersApiGetUserRequest {
|
|
|
718
756
|
readonly authorization?: string
|
|
719
757
|
|
|
720
758
|
/**
|
|
721
|
-
*
|
|
759
|
+
* 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>
|
|
722
760
|
* @type {string}
|
|
723
761
|
* @memberof UsersApiGetUser
|
|
724
762
|
*/
|
|
@@ -802,7 +840,7 @@ export interface UsersApiListUsersRequest {
|
|
|
802
840
|
readonly order?: string
|
|
803
841
|
|
|
804
842
|
/**
|
|
805
|
-
* 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>
|
|
843
|
+
* 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>
|
|
806
844
|
* @type {string}
|
|
807
845
|
* @memberof UsersApiListUsers
|
|
808
846
|
*/
|
|
@@ -832,7 +870,7 @@ export class UsersApi extends BaseAPI {
|
|
|
832
870
|
* @memberof UsersApi
|
|
833
871
|
*/
|
|
834
872
|
public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
|
|
835
|
-
return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
873
|
+
return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
836
874
|
}
|
|
837
875
|
|
|
838
876
|
/**
|
|
@@ -843,7 +881,7 @@ export class UsersApi extends BaseAPI {
|
|
|
843
881
|
* @memberof UsersApi
|
|
844
882
|
*/
|
|
845
883
|
public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
|
|
846
|
-
return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
884
|
+
return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
847
885
|
}
|
|
848
886
|
|
|
849
887
|
/**
|
|
@@ -854,7 +892,7 @@ export class UsersApi extends BaseAPI {
|
|
|
854
892
|
* @memberof UsersApi
|
|
855
893
|
*/
|
|
856
894
|
public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
|
|
857
|
-
return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
858
896
|
}
|
|
859
897
|
|
|
860
898
|
/**
|
|
@@ -865,18 +903,19 @@ export class UsersApi extends BaseAPI {
|
|
|
865
903
|
* @memberof UsersApi
|
|
866
904
|
*/
|
|
867
905
|
public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
|
|
868
|
-
return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
906
|
+
return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
869
907
|
}
|
|
870
908
|
|
|
871
909
|
/**
|
|
872
|
-
*
|
|
910
|
+
* 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\"
|
|
911
|
+
* @summary Retrieve the user
|
|
873
912
|
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
874
913
|
* @param {*} [options] Override http request option.
|
|
875
914
|
* @throws {RequiredError}
|
|
876
915
|
* @memberof UsersApi
|
|
877
916
|
*/
|
|
878
917
|
public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
|
|
879
|
-
return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
918
|
+
return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
880
919
|
}
|
|
881
920
|
|
|
882
921
|
/**
|
|
@@ -887,11 +926,11 @@ export class UsersApi extends BaseAPI {
|
|
|
887
926
|
* @memberof UsersApi
|
|
888
927
|
*/
|
|
889
928
|
public linkUserWithPartner(requestParameters: UsersApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig) {
|
|
890
|
-
return UsersApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
929
|
+
return UsersApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
891
930
|
}
|
|
892
931
|
|
|
893
932
|
/**
|
|
894
|
-
* Returns a list of users
|
|
933
|
+
* 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\"
|
|
895
934
|
* @summary List users
|
|
896
935
|
* @param {UsersApiListUsersRequest} requestParameters Request parameters.
|
|
897
936
|
* @param {*} [options] Override http request option.
|
|
@@ -899,6 +938,6 @@ export class UsersApi extends BaseAPI {
|
|
|
899
938
|
* @memberof UsersApi
|
|
900
939
|
*/
|
|
901
940
|
public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
|
|
902
|
-
return UsersApiFp(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));
|
|
941
|
+
return UsersApiFp(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));
|
|
903
942
|
}
|
|
904
943
|
}
|
package/api.ts
CHANGED
|
@@ -37,6 +37,8 @@ import { ReInviteAnOrganizationApi } from './api';
|
|
|
37
37
|
import { ReportScheduleApi } from './api';
|
|
38
38
|
import { ReportScheduleLogsApi } from './api';
|
|
39
39
|
import { RolesApi } from './api';
|
|
40
|
+
import { SSOConnectionApi } from './api';
|
|
41
|
+
import { SSOIdPGroupsApi } from './api';
|
|
40
42
|
import { SettingsApi } from './api';
|
|
41
43
|
import { UserControllerRestApi } from './api';
|
|
42
44
|
import { UserGroupApi } from './api';
|
|
@@ -60,6 +62,8 @@ export * from './api/re-invite-an-organization-api';
|
|
|
60
62
|
export * from './api/report-schedule-api';
|
|
61
63
|
export * from './api/report-schedule-logs-api';
|
|
62
64
|
export * from './api/roles-api';
|
|
65
|
+
export * from './api/ssoconnection-api';
|
|
66
|
+
export * from './api/ssoid-pgroups-api';
|
|
63
67
|
export * from './api/settings-api';
|
|
64
68
|
export * from './api/user-controller-rest-api';
|
|
65
69
|
export * from './api/user-group-api';
|