@flipdish/authorization 0.0.63-rc.1776760940 → 0.0.64-rc.1776869357
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/api.ts +118 -42
- package/configuration.ts +1 -1
- package/dist/api.d.ts +78 -37
- package/dist/api.js +105 -29
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1447,61 +1447,61 @@ export type Permissions = typeof Permissions[keyof typeof Permissions];
|
|
|
1447
1447
|
|
|
1448
1448
|
|
|
1449
1449
|
/**
|
|
1450
|
-
* Principal
|
|
1450
|
+
* Principal with teammate permission summary
|
|
1451
1451
|
* @export
|
|
1452
|
-
* @interface
|
|
1452
|
+
* @interface PrincipalInOrgWithTeammatePermissionSummary
|
|
1453
1453
|
*/
|
|
1454
|
-
export interface
|
|
1454
|
+
export interface PrincipalInOrgWithTeammatePermissionSummary {
|
|
1455
1455
|
/**
|
|
1456
1456
|
*
|
|
1457
1457
|
* @type {string}
|
|
1458
|
-
* @memberof
|
|
1458
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1459
1459
|
*/
|
|
1460
|
-
'type':
|
|
1460
|
+
'type': PrincipalInOrgWithTeammatePermissionSummaryTypeEnum;
|
|
1461
1461
|
/**
|
|
1462
1462
|
*
|
|
1463
1463
|
* @type {string}
|
|
1464
|
-
* @memberof
|
|
1464
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1465
1465
|
*/
|
|
1466
1466
|
'id': string;
|
|
1467
1467
|
/**
|
|
1468
1468
|
*
|
|
1469
1469
|
* @type {string}
|
|
1470
|
-
* @memberof
|
|
1470
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1471
1471
|
*/
|
|
1472
1472
|
'name'?: string;
|
|
1473
1473
|
/**
|
|
1474
1474
|
*
|
|
1475
1475
|
* @type {string}
|
|
1476
|
-
* @memberof
|
|
1476
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1477
1477
|
*/
|
|
1478
1478
|
'email'?: string;
|
|
1479
1479
|
/**
|
|
1480
1480
|
*
|
|
1481
1481
|
* @type {string}
|
|
1482
|
-
* @memberof
|
|
1482
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1483
1483
|
*/
|
|
1484
1484
|
'phone'?: string;
|
|
1485
1485
|
/**
|
|
1486
|
-
* Teammate role label when
|
|
1486
|
+
* Teammate role label; null when no compensating role or unknown
|
|
1487
1487
|
* @type {string}
|
|
1488
|
-
* @memberof
|
|
1488
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1489
1489
|
*/
|
|
1490
|
-
'roleDisplay'
|
|
1490
|
+
'roleDisplay': string;
|
|
1491
1491
|
/**
|
|
1492
1492
|
* True when granular roles differ from default for the compensating role
|
|
1493
1493
|
* @type {boolean}
|
|
1494
|
-
* @memberof
|
|
1494
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1495
1495
|
*/
|
|
1496
|
-
'isCustomised'
|
|
1496
|
+
'isCustomised': boolean;
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
|
-
export const
|
|
1499
|
+
export const PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = {
|
|
1500
1500
|
User: 'User',
|
|
1501
1501
|
Automation: 'Automation'
|
|
1502
1502
|
} as const;
|
|
1503
1503
|
|
|
1504
|
-
export type
|
|
1504
|
+
export type PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum[keyof typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum];
|
|
1505
1505
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Principals in org
|
|
@@ -1517,10 +1517,29 @@ export interface PrincipalsInOrgResponse {
|
|
|
1517
1517
|
'orgId': string;
|
|
1518
1518
|
/**
|
|
1519
1519
|
* List of principals in org
|
|
1520
|
-
* @type {Array<
|
|
1520
|
+
* @type {Array<AuthorizationRequestPrincipal>}
|
|
1521
1521
|
* @memberof PrincipalsInOrgResponse
|
|
1522
1522
|
*/
|
|
1523
|
-
'principals': Array<
|
|
1523
|
+
'principals': Array<AuthorizationRequestPrincipal>;
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Principals in org including teammate permission summary per principal
|
|
1527
|
+
* @export
|
|
1528
|
+
* @interface PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1529
|
+
*/
|
|
1530
|
+
export interface PrincipalsInOrgWithTeammatePermissionSummaryResponse {
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @type {string}
|
|
1534
|
+
* @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1535
|
+
*/
|
|
1536
|
+
'orgId': string;
|
|
1537
|
+
/**
|
|
1538
|
+
* List of principals with roleDisplay and isCustomised
|
|
1539
|
+
* @type {Array<PrincipalInOrgWithTeammatePermissionSummary>}
|
|
1540
|
+
* @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1541
|
+
*/
|
|
1542
|
+
'principals': Array<PrincipalInOrgWithTeammatePermissionSummary>;
|
|
1524
1543
|
}
|
|
1525
1544
|
/**
|
|
1526
1545
|
* Details for revoking a forbidden role from a principal
|
|
@@ -3297,14 +3316,13 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3297
3316
|
export const UserManagementApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3298
3317
|
return {
|
|
3299
3318
|
/**
|
|
3300
|
-
* List the users in a given org.
|
|
3319
|
+
* List the users in a given org.
|
|
3301
3320
|
* @summary List Users in Org
|
|
3302
3321
|
* @param {string} orgId
|
|
3303
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
3304
3322
|
* @param {*} [options] Override http request option.
|
|
3305
3323
|
* @throws {RequiredError}
|
|
3306
3324
|
*/
|
|
3307
|
-
listUsersInOrg: async (orgId: string,
|
|
3325
|
+
listUsersInOrg: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3308
3326
|
// verify required parameter 'orgId' is not null or undefined
|
|
3309
3327
|
assertParamExists('listUsersInOrg', 'orgId', orgId)
|
|
3310
3328
|
const localVarPath = `/orgs/{orgId}/users`
|
|
@@ -3323,10 +3341,43 @@ export const UserManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3323
3341
|
// authentication ApiKeyAuth required
|
|
3324
3342
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3325
3343
|
|
|
3326
|
-
|
|
3327
|
-
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3348
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3349
|
+
|
|
3350
|
+
return {
|
|
3351
|
+
url: toPathString(localVarUrlObj),
|
|
3352
|
+
options: localVarRequestOptions,
|
|
3353
|
+
};
|
|
3354
|
+
},
|
|
3355
|
+
/**
|
|
3356
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3357
|
+
* @summary List Users in Org with teammate permission summary
|
|
3358
|
+
* @param {string} orgId
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
listUsersInOrgWithTeammatePermissionSummary: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3363
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
3364
|
+
assertParamExists('listUsersInOrgWithTeammatePermissionSummary', 'orgId', orgId)
|
|
3365
|
+
const localVarPath = `/orgs/{orgId}/users/teammatePermissionSummary`
|
|
3366
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
3367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3369
|
+
let baseOptions;
|
|
3370
|
+
if (configuration) {
|
|
3371
|
+
baseOptions = configuration.baseOptions;
|
|
3328
3372
|
}
|
|
3329
3373
|
|
|
3374
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3375
|
+
const localVarHeaderParameter = {} as any;
|
|
3376
|
+
const localVarQueryParameter = {} as any;
|
|
3377
|
+
|
|
3378
|
+
// authentication ApiKeyAuth required
|
|
3379
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3380
|
+
|
|
3330
3381
|
|
|
3331
3382
|
|
|
3332
3383
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3349,19 +3400,31 @@ export const UserManagementApiFp = function(configuration?: Configuration) {
|
|
|
3349
3400
|
const localVarAxiosParamCreator = UserManagementApiAxiosParamCreator(configuration)
|
|
3350
3401
|
return {
|
|
3351
3402
|
/**
|
|
3352
|
-
* List the users in a given org.
|
|
3403
|
+
* List the users in a given org.
|
|
3353
3404
|
* @summary List Users in Org
|
|
3354
3405
|
* @param {string} orgId
|
|
3355
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
3356
3406
|
* @param {*} [options] Override http request option.
|
|
3357
3407
|
* @throws {RequiredError}
|
|
3358
3408
|
*/
|
|
3359
|
-
async listUsersInOrg(orgId: string,
|
|
3360
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId,
|
|
3409
|
+
async listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
|
|
3410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options);
|
|
3361
3411
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3362
3412
|
const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
|
|
3363
3413
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3364
3414
|
},
|
|
3415
|
+
/**
|
|
3416
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3417
|
+
* @summary List Users in Org with teammate permission summary
|
|
3418
|
+
* @param {string} orgId
|
|
3419
|
+
* @param {*} [options] Override http request option.
|
|
3420
|
+
* @throws {RequiredError}
|
|
3421
|
+
*/
|
|
3422
|
+
async listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse>> {
|
|
3423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrgWithTeammatePermissionSummary(orgId, options);
|
|
3424
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3425
|
+
const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrgWithTeammatePermissionSummary']?.[localVarOperationServerIndex]?.url;
|
|
3426
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3427
|
+
},
|
|
3365
3428
|
}
|
|
3366
3429
|
};
|
|
3367
3430
|
|
|
@@ -3373,15 +3436,24 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
|
|
|
3373
3436
|
const localVarFp = UserManagementApiFp(configuration)
|
|
3374
3437
|
return {
|
|
3375
3438
|
/**
|
|
3376
|
-
* List the users in a given org.
|
|
3439
|
+
* List the users in a given org.
|
|
3377
3440
|
* @summary List Users in Org
|
|
3378
3441
|
* @param {string} orgId
|
|
3379
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
3380
3442
|
* @param {*} [options] Override http request option.
|
|
3381
3443
|
* @throws {RequiredError}
|
|
3382
3444
|
*/
|
|
3383
|
-
listUsersInOrg(orgId: string,
|
|
3384
|
-
return localVarFp.listUsersInOrg(orgId,
|
|
3445
|
+
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
|
|
3446
|
+
return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
|
|
3447
|
+
},
|
|
3448
|
+
/**
|
|
3449
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3450
|
+
* @summary List Users in Org with teammate permission summary
|
|
3451
|
+
* @param {string} orgId
|
|
3452
|
+
* @param {*} [options] Override http request option.
|
|
3453
|
+
* @throws {RequiredError}
|
|
3454
|
+
*/
|
|
3455
|
+
listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse> {
|
|
3456
|
+
return localVarFp.listUsersInOrgWithTeammatePermissionSummary(orgId, options).then((request) => request(axios, basePath));
|
|
3385
3457
|
},
|
|
3386
3458
|
};
|
|
3387
3459
|
};
|
|
@@ -3394,26 +3466,30 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
|
|
|
3394
3466
|
*/
|
|
3395
3467
|
export class UserManagementApi extends BaseAPI {
|
|
3396
3468
|
/**
|
|
3397
|
-
* List the users in a given org.
|
|
3469
|
+
* List the users in a given org.
|
|
3398
3470
|
* @summary List Users in Org
|
|
3399
3471
|
* @param {string} orgId
|
|
3400
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
3401
3472
|
* @param {*} [options] Override http request option.
|
|
3402
3473
|
* @throws {RequiredError}
|
|
3403
3474
|
* @memberof UserManagementApi
|
|
3404
3475
|
*/
|
|
3405
|
-
public listUsersInOrg(orgId: string,
|
|
3406
|
-
return UserManagementApiFp(this.configuration).listUsersInOrg(orgId,
|
|
3476
|
+
public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) {
|
|
3477
|
+
return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3482
|
+
* @summary List Users in Org with teammate permission summary
|
|
3483
|
+
* @param {string} orgId
|
|
3484
|
+
* @param {*} [options] Override http request option.
|
|
3485
|
+
* @throws {RequiredError}
|
|
3486
|
+
* @memberof UserManagementApi
|
|
3487
|
+
*/
|
|
3488
|
+
public listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig) {
|
|
3489
|
+
return UserManagementApiFp(this.configuration).listUsersInOrgWithTeammatePermissionSummary(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
3407
3490
|
}
|
|
3408
3491
|
}
|
|
3409
3492
|
|
|
3410
|
-
/**
|
|
3411
|
-
* @export
|
|
3412
|
-
*/
|
|
3413
|
-
export const ListUsersInOrgIncludeEnum = {
|
|
3414
|
-
TeammatePermissionSummary: 'teammatePermissionSummary'
|
|
3415
|
-
} as const;
|
|
3416
|
-
export type ListUsersInOrgIncludeEnum = typeof ListUsersInOrgIncludeEnum[keyof typeof ListUsersInOrgIncludeEnum];
|
|
3417
3493
|
|
|
3418
3494
|
|
|
3419
3495
|
/**
|
package/configuration.ts
CHANGED
|
@@ -100,7 +100,7 @@ export class Configuration {
|
|
|
100
100
|
|
|
101
101
|
const extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
102
102
|
headers: {
|
|
103
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.64-rc.1776869357"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1390,59 +1390,59 @@ export declare const Permissions: {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
export type Permissions = typeof Permissions[keyof typeof Permissions];
|
|
1392
1392
|
/**
|
|
1393
|
-
* Principal
|
|
1393
|
+
* Principal with teammate permission summary
|
|
1394
1394
|
* @export
|
|
1395
|
-
* @interface
|
|
1395
|
+
* @interface PrincipalInOrgWithTeammatePermissionSummary
|
|
1396
1396
|
*/
|
|
1397
|
-
export interface
|
|
1397
|
+
export interface PrincipalInOrgWithTeammatePermissionSummary {
|
|
1398
1398
|
/**
|
|
1399
1399
|
*
|
|
1400
1400
|
* @type {string}
|
|
1401
|
-
* @memberof
|
|
1401
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1402
1402
|
*/
|
|
1403
|
-
'type':
|
|
1403
|
+
'type': PrincipalInOrgWithTeammatePermissionSummaryTypeEnum;
|
|
1404
1404
|
/**
|
|
1405
1405
|
*
|
|
1406
1406
|
* @type {string}
|
|
1407
|
-
* @memberof
|
|
1407
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1408
1408
|
*/
|
|
1409
1409
|
'id': string;
|
|
1410
1410
|
/**
|
|
1411
1411
|
*
|
|
1412
1412
|
* @type {string}
|
|
1413
|
-
* @memberof
|
|
1413
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1414
1414
|
*/
|
|
1415
1415
|
'name'?: string;
|
|
1416
1416
|
/**
|
|
1417
1417
|
*
|
|
1418
1418
|
* @type {string}
|
|
1419
|
-
* @memberof
|
|
1419
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1420
1420
|
*/
|
|
1421
1421
|
'email'?: string;
|
|
1422
1422
|
/**
|
|
1423
1423
|
*
|
|
1424
1424
|
* @type {string}
|
|
1425
|
-
* @memberof
|
|
1425
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1426
1426
|
*/
|
|
1427
1427
|
'phone'?: string;
|
|
1428
1428
|
/**
|
|
1429
|
-
* Teammate role label when
|
|
1429
|
+
* Teammate role label; null when no compensating role or unknown
|
|
1430
1430
|
* @type {string}
|
|
1431
|
-
* @memberof
|
|
1431
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1432
1432
|
*/
|
|
1433
|
-
'roleDisplay'
|
|
1433
|
+
'roleDisplay': string;
|
|
1434
1434
|
/**
|
|
1435
1435
|
* True when granular roles differ from default for the compensating role
|
|
1436
1436
|
* @type {boolean}
|
|
1437
|
-
* @memberof
|
|
1437
|
+
* @memberof PrincipalInOrgWithTeammatePermissionSummary
|
|
1438
1438
|
*/
|
|
1439
|
-
'isCustomised'
|
|
1439
|
+
'isCustomised': boolean;
|
|
1440
1440
|
}
|
|
1441
|
-
export declare const
|
|
1441
|
+
export declare const PrincipalInOrgWithTeammatePermissionSummaryTypeEnum: {
|
|
1442
1442
|
readonly User: "User";
|
|
1443
1443
|
readonly Automation: "Automation";
|
|
1444
1444
|
};
|
|
1445
|
-
export type
|
|
1445
|
+
export type PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum[keyof typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum];
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Principals in org
|
|
1448
1448
|
* @export
|
|
@@ -1457,10 +1457,29 @@ export interface PrincipalsInOrgResponse {
|
|
|
1457
1457
|
'orgId': string;
|
|
1458
1458
|
/**
|
|
1459
1459
|
* List of principals in org
|
|
1460
|
-
* @type {Array<
|
|
1460
|
+
* @type {Array<AuthorizationRequestPrincipal>}
|
|
1461
1461
|
* @memberof PrincipalsInOrgResponse
|
|
1462
1462
|
*/
|
|
1463
|
-
'principals': Array<
|
|
1463
|
+
'principals': Array<AuthorizationRequestPrincipal>;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Principals in org including teammate permission summary per principal
|
|
1467
|
+
* @export
|
|
1468
|
+
* @interface PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1469
|
+
*/
|
|
1470
|
+
export interface PrincipalsInOrgWithTeammatePermissionSummaryResponse {
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @type {string}
|
|
1474
|
+
* @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1475
|
+
*/
|
|
1476
|
+
'orgId': string;
|
|
1477
|
+
/**
|
|
1478
|
+
* List of principals with roleDisplay and isCustomised
|
|
1479
|
+
* @type {Array<PrincipalInOrgWithTeammatePermissionSummary>}
|
|
1480
|
+
* @memberof PrincipalsInOrgWithTeammatePermissionSummaryResponse
|
|
1481
|
+
*/
|
|
1482
|
+
'principals': Array<PrincipalInOrgWithTeammatePermissionSummary>;
|
|
1464
1483
|
}
|
|
1465
1484
|
/**
|
|
1466
1485
|
* Details for revoking a forbidden role from a principal
|
|
@@ -2415,14 +2434,21 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2415
2434
|
*/
|
|
2416
2435
|
export declare const UserManagementApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2417
2436
|
/**
|
|
2418
|
-
* List the users in a given org.
|
|
2437
|
+
* List the users in a given org.
|
|
2419
2438
|
* @summary List Users in Org
|
|
2420
2439
|
* @param {string} orgId
|
|
2421
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2422
2440
|
* @param {*} [options] Override http request option.
|
|
2423
2441
|
* @throws {RequiredError}
|
|
2424
2442
|
*/
|
|
2425
|
-
listUsersInOrg: (orgId: string,
|
|
2443
|
+
listUsersInOrg: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2446
|
+
* @summary List Users in Org with teammate permission summary
|
|
2447
|
+
* @param {string} orgId
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
listUsersInOrgWithTeammatePermissionSummary: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2426
2452
|
};
|
|
2427
2453
|
/**
|
|
2428
2454
|
* UserManagementApi - functional programming interface
|
|
@@ -2430,14 +2456,21 @@ export declare const UserManagementApiAxiosParamCreator: (configuration?: Config
|
|
|
2430
2456
|
*/
|
|
2431
2457
|
export declare const UserManagementApiFp: (configuration?: Configuration) => {
|
|
2432
2458
|
/**
|
|
2433
|
-
* List the users in a given org.
|
|
2459
|
+
* List the users in a given org.
|
|
2434
2460
|
* @summary List Users in Org
|
|
2435
2461
|
* @param {string} orgId
|
|
2436
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2437
2462
|
* @param {*} [options] Override http request option.
|
|
2438
2463
|
* @throws {RequiredError}
|
|
2439
2464
|
*/
|
|
2440
|
-
listUsersInOrg(orgId: string,
|
|
2465
|
+
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>>;
|
|
2466
|
+
/**
|
|
2467
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2468
|
+
* @summary List Users in Org with teammate permission summary
|
|
2469
|
+
* @param {string} orgId
|
|
2470
|
+
* @param {*} [options] Override http request option.
|
|
2471
|
+
* @throws {RequiredError}
|
|
2472
|
+
*/
|
|
2473
|
+
listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse>>;
|
|
2441
2474
|
};
|
|
2442
2475
|
/**
|
|
2443
2476
|
* UserManagementApi - factory interface
|
|
@@ -2445,14 +2478,21 @@ export declare const UserManagementApiFp: (configuration?: Configuration) => {
|
|
|
2445
2478
|
*/
|
|
2446
2479
|
export declare const UserManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2447
2480
|
/**
|
|
2448
|
-
* List the users in a given org.
|
|
2481
|
+
* List the users in a given org.
|
|
2449
2482
|
* @summary List Users in Org
|
|
2450
2483
|
* @param {string} orgId
|
|
2451
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2452
2484
|
* @param {*} [options] Override http request option.
|
|
2453
2485
|
* @throws {RequiredError}
|
|
2454
2486
|
*/
|
|
2455
|
-
listUsersInOrg(orgId: string,
|
|
2487
|
+
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse>;
|
|
2488
|
+
/**
|
|
2489
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2490
|
+
* @summary List Users in Org with teammate permission summary
|
|
2491
|
+
* @param {string} orgId
|
|
2492
|
+
* @param {*} [options] Override http request option.
|
|
2493
|
+
* @throws {RequiredError}
|
|
2494
|
+
*/
|
|
2495
|
+
listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgWithTeammatePermissionSummaryResponse>;
|
|
2456
2496
|
};
|
|
2457
2497
|
/**
|
|
2458
2498
|
* UserManagementApi - object-oriented interface
|
|
@@ -2462,23 +2502,24 @@ export declare const UserManagementApiFactory: (configuration?: Configuration, b
|
|
|
2462
2502
|
*/
|
|
2463
2503
|
export declare class UserManagementApi extends BaseAPI {
|
|
2464
2504
|
/**
|
|
2465
|
-
* List the users in a given org.
|
|
2505
|
+
* List the users in a given org.
|
|
2466
2506
|
* @summary List Users in Org
|
|
2467
2507
|
* @param {string} orgId
|
|
2468
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2469
2508
|
* @param {*} [options] Override http request option.
|
|
2470
2509
|
* @throws {RequiredError}
|
|
2471
2510
|
* @memberof UserManagementApi
|
|
2472
2511
|
*/
|
|
2473
|
-
listUsersInOrg(orgId: string,
|
|
2512
|
+
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgResponse, any, {}>>;
|
|
2513
|
+
/**
|
|
2514
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2515
|
+
* @summary List Users in Org with teammate permission summary
|
|
2516
|
+
* @param {string} orgId
|
|
2517
|
+
* @param {*} [options] Override http request option.
|
|
2518
|
+
* @throws {RequiredError}
|
|
2519
|
+
* @memberof UserManagementApi
|
|
2520
|
+
*/
|
|
2521
|
+
listUsersInOrgWithTeammatePermissionSummary(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgWithTeammatePermissionSummaryResponse, any, {}>>;
|
|
2474
2522
|
}
|
|
2475
|
-
/**
|
|
2476
|
-
* @export
|
|
2477
|
-
*/
|
|
2478
|
-
export declare const ListUsersInOrgIncludeEnum: {
|
|
2479
|
-
readonly TeammatePermissionSummary: "teammatePermissionSummary";
|
|
2480
|
-
};
|
|
2481
|
-
export type ListUsersInOrgIncludeEnum = typeof ListUsersInOrgIncludeEnum[keyof typeof ListUsersInOrgIncludeEnum];
|
|
2482
2523
|
/**
|
|
2483
2524
|
* UserPermissionsApi - axios parameter creator
|
|
2484
2525
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -84,8 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.UserPermissionsApi = void 0;
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
89
88
|
var axios_1 = require("axios");
|
|
90
89
|
// Some imports not used depending on template conditions
|
|
91
90
|
// @ts-ignore
|
|
@@ -541,7 +540,7 @@ exports.Permissions = {
|
|
|
541
540
|
RoleFactory: 'RoleFactory',
|
|
542
541
|
RoleAuthDeveloper: 'RoleAuthDeveloper'
|
|
543
542
|
};
|
|
544
|
-
exports.
|
|
543
|
+
exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = {
|
|
545
544
|
User: 'User',
|
|
546
545
|
Automation: 'Automation'
|
|
547
546
|
};
|
|
@@ -2566,19 +2565,18 @@ var UserManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2566
2565
|
var _this = this;
|
|
2567
2566
|
return {
|
|
2568
2567
|
/**
|
|
2569
|
-
* List the users in a given org.
|
|
2568
|
+
* List the users in a given org.
|
|
2570
2569
|
* @summary List Users in Org
|
|
2571
2570
|
* @param {string} orgId
|
|
2572
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2573
2571
|
* @param {*} [options] Override http request option.
|
|
2574
2572
|
* @throws {RequiredError}
|
|
2575
2573
|
*/
|
|
2576
|
-
listUsersInOrg: function (orgId_1
|
|
2574
|
+
listUsersInOrg: function (orgId_1) {
|
|
2577
2575
|
var args_1 = [];
|
|
2578
|
-
for (var _i =
|
|
2579
|
-
args_1[_i -
|
|
2576
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2577
|
+
args_1[_i - 1] = arguments[_i];
|
|
2580
2578
|
}
|
|
2581
|
-
return __awaiter(_this, __spreadArray([orgId_1
|
|
2579
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
2582
2580
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2583
2581
|
if (options === void 0) { options = {}; }
|
|
2584
2582
|
return __generator(this, function (_a) {
|
|
@@ -2600,9 +2598,51 @@ var UserManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2600
2598
|
case 1:
|
|
2601
2599
|
// authentication ApiKeyAuth required
|
|
2602
2600
|
_a.sent();
|
|
2603
|
-
|
|
2604
|
-
|
|
2601
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2602
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2603
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2604
|
+
return [2 /*return*/, {
|
|
2605
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2606
|
+
options: localVarRequestOptions,
|
|
2607
|
+
}];
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
});
|
|
2611
|
+
},
|
|
2612
|
+
/**
|
|
2613
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2614
|
+
* @summary List Users in Org with teammate permission summary
|
|
2615
|
+
* @param {string} orgId
|
|
2616
|
+
* @param {*} [options] Override http request option.
|
|
2617
|
+
* @throws {RequiredError}
|
|
2618
|
+
*/
|
|
2619
|
+
listUsersInOrgWithTeammatePermissionSummary: function (orgId_1) {
|
|
2620
|
+
var args_1 = [];
|
|
2621
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2622
|
+
args_1[_i - 1] = arguments[_i];
|
|
2623
|
+
}
|
|
2624
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
2625
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2626
|
+
if (options === void 0) { options = {}; }
|
|
2627
|
+
return __generator(this, function (_a) {
|
|
2628
|
+
switch (_a.label) {
|
|
2629
|
+
case 0:
|
|
2630
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2631
|
+
(0, common_1.assertParamExists)('listUsersInOrgWithTeammatePermissionSummary', 'orgId', orgId);
|
|
2632
|
+
localVarPath = "/orgs/{orgId}/users/teammatePermissionSummary"
|
|
2633
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2634
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2635
|
+
if (configuration) {
|
|
2636
|
+
baseOptions = configuration.baseOptions;
|
|
2605
2637
|
}
|
|
2638
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2639
|
+
localVarHeaderParameter = {};
|
|
2640
|
+
localVarQueryParameter = {};
|
|
2641
|
+
// authentication ApiKeyAuth required
|
|
2642
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2643
|
+
case 1:
|
|
2644
|
+
// authentication ApiKeyAuth required
|
|
2645
|
+
_a.sent();
|
|
2606
2646
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2607
2647
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2608
2648
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2625,20 +2665,19 @@ var UserManagementApiFp = function (configuration) {
|
|
|
2625
2665
|
var localVarAxiosParamCreator = (0, exports.UserManagementApiAxiosParamCreator)(configuration);
|
|
2626
2666
|
return {
|
|
2627
2667
|
/**
|
|
2628
|
-
* List the users in a given org.
|
|
2668
|
+
* List the users in a given org.
|
|
2629
2669
|
* @summary List Users in Org
|
|
2630
2670
|
* @param {string} orgId
|
|
2631
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2632
2671
|
* @param {*} [options] Override http request option.
|
|
2633
2672
|
* @throws {RequiredError}
|
|
2634
2673
|
*/
|
|
2635
|
-
listUsersInOrg: function (orgId,
|
|
2674
|
+
listUsersInOrg: function (orgId, options) {
|
|
2636
2675
|
return __awaiter(this, void 0, void 0, function () {
|
|
2637
2676
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2638
2677
|
var _a, _b, _c;
|
|
2639
2678
|
return __generator(this, function (_d) {
|
|
2640
2679
|
switch (_d.label) {
|
|
2641
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId,
|
|
2680
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId, options)];
|
|
2642
2681
|
case 1:
|
|
2643
2682
|
localVarAxiosArgs = _d.sent();
|
|
2644
2683
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2648,6 +2687,29 @@ var UserManagementApiFp = function (configuration) {
|
|
|
2648
2687
|
});
|
|
2649
2688
|
});
|
|
2650
2689
|
},
|
|
2690
|
+
/**
|
|
2691
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2692
|
+
* @summary List Users in Org with teammate permission summary
|
|
2693
|
+
* @param {string} orgId
|
|
2694
|
+
* @param {*} [options] Override http request option.
|
|
2695
|
+
* @throws {RequiredError}
|
|
2696
|
+
*/
|
|
2697
|
+
listUsersInOrgWithTeammatePermissionSummary: function (orgId, options) {
|
|
2698
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2699
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2700
|
+
var _a, _b, _c;
|
|
2701
|
+
return __generator(this, function (_d) {
|
|
2702
|
+
switch (_d.label) {
|
|
2703
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrgWithTeammatePermissionSummary(orgId, options)];
|
|
2704
|
+
case 1:
|
|
2705
|
+
localVarAxiosArgs = _d.sent();
|
|
2706
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2707
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManagementApi.listUsersInOrgWithTeammatePermissionSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2708
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
});
|
|
2712
|
+
},
|
|
2651
2713
|
};
|
|
2652
2714
|
};
|
|
2653
2715
|
exports.UserManagementApiFp = UserManagementApiFp;
|
|
@@ -2659,15 +2721,24 @@ var UserManagementApiFactory = function (configuration, basePath, axios) {
|
|
|
2659
2721
|
var localVarFp = (0, exports.UserManagementApiFp)(configuration);
|
|
2660
2722
|
return {
|
|
2661
2723
|
/**
|
|
2662
|
-
* List the users in a given org.
|
|
2724
|
+
* List the users in a given org.
|
|
2663
2725
|
* @summary List Users in Org
|
|
2664
2726
|
* @param {string} orgId
|
|
2665
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2666
2727
|
* @param {*} [options] Override http request option.
|
|
2667
2728
|
* @throws {RequiredError}
|
|
2668
2729
|
*/
|
|
2669
|
-
listUsersInOrg: function (orgId,
|
|
2670
|
-
return localVarFp.listUsersInOrg(orgId,
|
|
2730
|
+
listUsersInOrg: function (orgId, options) {
|
|
2731
|
+
return localVarFp.listUsersInOrg(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2732
|
+
},
|
|
2733
|
+
/**
|
|
2734
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2735
|
+
* @summary List Users in Org with teammate permission summary
|
|
2736
|
+
* @param {string} orgId
|
|
2737
|
+
* @param {*} [options] Override http request option.
|
|
2738
|
+
* @throws {RequiredError}
|
|
2739
|
+
*/
|
|
2740
|
+
listUsersInOrgWithTeammatePermissionSummary: function (orgId, options) {
|
|
2741
|
+
return localVarFp.listUsersInOrgWithTeammatePermissionSummary(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2671
2742
|
},
|
|
2672
2743
|
};
|
|
2673
2744
|
};
|
|
@@ -2684,27 +2755,32 @@ var UserManagementApi = /** @class */ (function (_super) {
|
|
|
2684
2755
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2685
2756
|
}
|
|
2686
2757
|
/**
|
|
2687
|
-
* List the users in a given org.
|
|
2758
|
+
* List the users in a given org.
|
|
2688
2759
|
* @summary List Users in Org
|
|
2689
2760
|
* @param {string} orgId
|
|
2690
|
-
* @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
|
|
2691
2761
|
* @param {*} [options] Override http request option.
|
|
2692
2762
|
* @throws {RequiredError}
|
|
2693
2763
|
* @memberof UserManagementApi
|
|
2694
2764
|
*/
|
|
2695
|
-
UserManagementApi.prototype.listUsersInOrg = function (orgId,
|
|
2765
|
+
UserManagementApi.prototype.listUsersInOrg = function (orgId, options) {
|
|
2766
|
+
var _this = this;
|
|
2767
|
+
return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2768
|
+
};
|
|
2769
|
+
/**
|
|
2770
|
+
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
2771
|
+
* @summary List Users in Org with teammate permission summary
|
|
2772
|
+
* @param {string} orgId
|
|
2773
|
+
* @param {*} [options] Override http request option.
|
|
2774
|
+
* @throws {RequiredError}
|
|
2775
|
+
* @memberof UserManagementApi
|
|
2776
|
+
*/
|
|
2777
|
+
UserManagementApi.prototype.listUsersInOrgWithTeammatePermissionSummary = function (orgId, options) {
|
|
2696
2778
|
var _this = this;
|
|
2697
|
-
return (0, exports.UserManagementApiFp)(this.configuration).
|
|
2779
|
+
return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrgWithTeammatePermissionSummary(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2698
2780
|
};
|
|
2699
2781
|
return UserManagementApi;
|
|
2700
2782
|
}(base_1.BaseAPI));
|
|
2701
2783
|
exports.UserManagementApi = UserManagementApi;
|
|
2702
|
-
/**
|
|
2703
|
-
* @export
|
|
2704
|
-
*/
|
|
2705
|
-
exports.ListUsersInOrgIncludeEnum = {
|
|
2706
|
-
TeammatePermissionSummary: 'teammatePermissionSummary'
|
|
2707
|
-
};
|
|
2708
2784
|
/**
|
|
2709
2785
|
* UserPermissionsApi - axios parameter creator
|
|
2710
2786
|
* @export
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.64-rc.1776869357"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED