@flipdish/authorization 0.0.59-rc.1775835995 → 0.0.61-rc.1776683828

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 CHANGED
@@ -196,6 +196,12 @@ export interface AuthenticateAndAuthorizeResponse {
196
196
  * @memberof AuthenticateAndAuthorizeResponse
197
197
  */
198
198
  'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
199
+ /**
200
+ * Opaque credential to forward to downstream services. Callers should propagate this value without inspecting it.
201
+ * @type {string}
202
+ * @memberof AuthenticateAndAuthorizeResponse
203
+ */
204
+ 'forwardableCredential'?: string;
199
205
  /**
200
206
  *
201
207
  * @type {AuthorizationResponse}
@@ -1440,6 +1446,63 @@ export const Permissions = {
1440
1446
  export type Permissions = typeof Permissions[keyof typeof Permissions];
1441
1447
 
1442
1448
 
1449
+ /**
1450
+ * Principal in org; optional teammate permission summary fields
1451
+ * @export
1452
+ * @interface PrincipalInOrg
1453
+ */
1454
+ export interface PrincipalInOrg {
1455
+ /**
1456
+ *
1457
+ * @type {string}
1458
+ * @memberof PrincipalInOrg
1459
+ */
1460
+ 'type': PrincipalInOrgTypeEnum;
1461
+ /**
1462
+ *
1463
+ * @type {string}
1464
+ * @memberof PrincipalInOrg
1465
+ */
1466
+ 'id': string;
1467
+ /**
1468
+ *
1469
+ * @type {string}
1470
+ * @memberof PrincipalInOrg
1471
+ */
1472
+ 'name'?: string;
1473
+ /**
1474
+ *
1475
+ * @type {string}
1476
+ * @memberof PrincipalInOrg
1477
+ */
1478
+ 'email'?: string;
1479
+ /**
1480
+ *
1481
+ * @type {string}
1482
+ * @memberof PrincipalInOrg
1483
+ */
1484
+ 'phone'?: string;
1485
+ /**
1486
+ * Teammate role label when include=teammatePermissionSummary is set
1487
+ * @type {string}
1488
+ * @memberof PrincipalInOrg
1489
+ */
1490
+ 'roleDisplay'?: string;
1491
+ /**
1492
+ * True when granular roles differ from default for the compensating role
1493
+ * @type {boolean}
1494
+ * @memberof PrincipalInOrg
1495
+ */
1496
+ 'isCustomised'?: boolean;
1497
+ }
1498
+
1499
+ export const PrincipalInOrgTypeEnum = {
1500
+ User: 'User',
1501
+ Automation: 'Automation'
1502
+ } as const;
1503
+
1504
+ export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum];
1505
+
1443
1506
  /**
1444
1507
  * Principals in org
1445
1508
  * @export
@@ -1454,10 +1517,10 @@ export interface PrincipalsInOrgResponse {
1454
1517
  'orgId': string;
1455
1518
  /**
1456
1519
  * List of principals in org
1457
- * @type {Array<AuthorizationRequestPrincipal>}
1520
+ * @type {Array<PrincipalInOrg>}
1458
1521
  * @memberof PrincipalsInOrgResponse
1459
1522
  */
1460
- 'principals': Array<AuthorizationRequestPrincipal>;
1523
+ 'principals': Array<PrincipalInOrg>;
1461
1524
  }
1462
1525
  /**
1463
1526
  * Details for revoking a forbidden role from a principal
@@ -3234,13 +3297,14 @@ export class RoleAssignmentApi extends BaseAPI {
3234
3297
  export const UserManagementApiAxiosParamCreator = function (configuration?: Configuration) {
3235
3298
  return {
3236
3299
  /**
3237
- * List the users in a given org
3300
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
3238
3301
  * @summary List Users in Org
3239
3302
  * @param {string} orgId
3303
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
3240
3304
  * @param {*} [options] Override http request option.
3241
3305
  * @throws {RequiredError}
3242
3306
  */
3243
- listUsersInOrg: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3307
+ listUsersInOrg: async (orgId: string, include?: ListUsersInOrgIncludeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3244
3308
  // verify required parameter 'orgId' is not null or undefined
3245
3309
  assertParamExists('listUsersInOrg', 'orgId', orgId)
3246
3310
  const localVarPath = `/orgs/{orgId}/users`
@@ -3259,6 +3323,10 @@ export const UserManagementApiAxiosParamCreator = function (configuration?: Conf
3259
3323
  // authentication ApiKeyAuth required
3260
3324
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3261
3325
 
3326
+ if (include !== undefined) {
3327
+ localVarQueryParameter['include'] = include;
3328
+ }
3329
+
3262
3330
 
3263
3331
 
3264
3332
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3281,14 +3349,15 @@ export const UserManagementApiFp = function(configuration?: Configuration) {
3281
3349
  const localVarAxiosParamCreator = UserManagementApiAxiosParamCreator(configuration)
3282
3350
  return {
3283
3351
  /**
3284
- * List the users in a given org
3352
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
3285
3353
  * @summary List Users in Org
3286
3354
  * @param {string} orgId
3355
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
3287
3356
  * @param {*} [options] Override http request option.
3288
3357
  * @throws {RequiredError}
3289
3358
  */
3290
- async listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
3291
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options);
3359
+ async listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
3360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, include, options);
3292
3361
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3293
3362
  const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
3294
3363
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3304,14 +3373,15 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
3304
3373
  const localVarFp = UserManagementApiFp(configuration)
3305
3374
  return {
3306
3375
  /**
3307
- * List the users in a given org
3376
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
3308
3377
  * @summary List Users in Org
3309
3378
  * @param {string} orgId
3379
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
3310
3380
  * @param {*} [options] Override http request option.
3311
3381
  * @throws {RequiredError}
3312
3382
  */
3313
- listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
3314
- return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
3383
+ listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
3384
+ return localVarFp.listUsersInOrg(orgId, include, options).then((request) => request(axios, basePath));
3315
3385
  },
3316
3386
  };
3317
3387
  };
@@ -3324,18 +3394,26 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
3324
3394
  */
3325
3395
  export class UserManagementApi extends BaseAPI {
3326
3396
  /**
3327
- * List the users in a given org
3397
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
3328
3398
  * @summary List Users in Org
3329
3399
  * @param {string} orgId
3400
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
3330
3401
  * @param {*} [options] Override http request option.
3331
3402
  * @throws {RequiredError}
3332
3403
  * @memberof UserManagementApi
3333
3404
  */
3334
- public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) {
3335
- return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
3405
+ public listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig) {
3406
+ return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, include, options).then((request) => request(this.axios, this.basePath));
3336
3407
  }
3337
3408
  }
3338
3409
 
3410
+ /**
3411
+ * @export
3412
+ */
3413
+ export const ListUsersInOrgIncludeEnum = {
3414
+ TeammatePermissionSummary: 'teammatePermissionSummary'
3415
+ } as const;
3416
+ export type ListUsersInOrgIncludeEnum = typeof ListUsersInOrgIncludeEnum[keyof typeof ListUsersInOrgIncludeEnum];
3339
3417
 
3340
3418
 
3341
3419
  /**
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.59-rc.1775835995"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.61-rc.1776683828"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -182,6 +182,12 @@ export interface AuthenticateAndAuthorizeResponse {
182
182
  * @memberof AuthenticateAndAuthorizeResponse
183
183
  */
184
184
  'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication;
185
+ /**
186
+ * Opaque credential to forward to downstream services. Callers should propagate this value without inspecting it.
187
+ * @type {string}
188
+ * @memberof AuthenticateAndAuthorizeResponse
189
+ */
190
+ 'forwardableCredential'?: string;
185
191
  /**
186
192
  *
187
193
  * @type {AuthorizationResponse}
@@ -1383,6 +1389,60 @@ export declare const Permissions: {
1383
1389
  readonly RoleAuthDeveloper: "RoleAuthDeveloper";
1384
1390
  };
1385
1391
  export type Permissions = typeof Permissions[keyof typeof Permissions];
1392
+ /**
1393
+ * Principal in org; optional teammate permission summary fields
1394
+ * @export
1395
+ * @interface PrincipalInOrg
1396
+ */
1397
+ export interface PrincipalInOrg {
1398
+ /**
1399
+ *
1400
+ * @type {string}
1401
+ * @memberof PrincipalInOrg
1402
+ */
1403
+ 'type': PrincipalInOrgTypeEnum;
1404
+ /**
1405
+ *
1406
+ * @type {string}
1407
+ * @memberof PrincipalInOrg
1408
+ */
1409
+ 'id': string;
1410
+ /**
1411
+ *
1412
+ * @type {string}
1413
+ * @memberof PrincipalInOrg
1414
+ */
1415
+ 'name'?: string;
1416
+ /**
1417
+ *
1418
+ * @type {string}
1419
+ * @memberof PrincipalInOrg
1420
+ */
1421
+ 'email'?: string;
1422
+ /**
1423
+ *
1424
+ * @type {string}
1425
+ * @memberof PrincipalInOrg
1426
+ */
1427
+ 'phone'?: string;
1428
+ /**
1429
+ * Teammate role label when include=teammatePermissionSummary is set
1430
+ * @type {string}
1431
+ * @memberof PrincipalInOrg
1432
+ */
1433
+ 'roleDisplay'?: string;
1434
+ /**
1435
+ * True when granular roles differ from default for the compensating role
1436
+ * @type {boolean}
1437
+ * @memberof PrincipalInOrg
1438
+ */
1439
+ 'isCustomised'?: boolean;
1440
+ }
1441
+ export declare const PrincipalInOrgTypeEnum: {
1442
+ readonly User: "User";
1443
+ readonly Automation: "Automation";
1444
+ };
1445
+ export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum];
1386
1446
  /**
1387
1447
  * Principals in org
1388
1448
  * @export
@@ -1397,10 +1457,10 @@ export interface PrincipalsInOrgResponse {
1397
1457
  'orgId': string;
1398
1458
  /**
1399
1459
  * List of principals in org
1400
- * @type {Array<AuthorizationRequestPrincipal>}
1460
+ * @type {Array<PrincipalInOrg>}
1401
1461
  * @memberof PrincipalsInOrgResponse
1402
1462
  */
1403
- 'principals': Array<AuthorizationRequestPrincipal>;
1463
+ 'principals': Array<PrincipalInOrg>;
1404
1464
  }
1405
1465
  /**
1406
1466
  * Details for revoking a forbidden role from a principal
@@ -2355,13 +2415,14 @@ export declare class RoleAssignmentApi extends BaseAPI {
2355
2415
  */
2356
2416
  export declare const UserManagementApiAxiosParamCreator: (configuration?: Configuration) => {
2357
2417
  /**
2358
- * List the users in a given org
2418
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2359
2419
  * @summary List Users in Org
2360
2420
  * @param {string} orgId
2421
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2361
2422
  * @param {*} [options] Override http request option.
2362
2423
  * @throws {RequiredError}
2363
2424
  */
2364
- listUsersInOrg: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2425
+ listUsersInOrg: (orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2365
2426
  };
2366
2427
  /**
2367
2428
  * UserManagementApi - functional programming interface
@@ -2369,13 +2430,14 @@ export declare const UserManagementApiAxiosParamCreator: (configuration?: Config
2369
2430
  */
2370
2431
  export declare const UserManagementApiFp: (configuration?: Configuration) => {
2371
2432
  /**
2372
- * List the users in a given org
2433
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2373
2434
  * @summary List Users in Org
2374
2435
  * @param {string} orgId
2436
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2375
2437
  * @param {*} [options] Override http request option.
2376
2438
  * @throws {RequiredError}
2377
2439
  */
2378
- listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>>;
2440
+ listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>>;
2379
2441
  };
2380
2442
  /**
2381
2443
  * UserManagementApi - factory interface
@@ -2383,13 +2445,14 @@ export declare const UserManagementApiFp: (configuration?: Configuration) => {
2383
2445
  */
2384
2446
  export declare const UserManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2385
2447
  /**
2386
- * List the users in a given org
2448
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2387
2449
  * @summary List Users in Org
2388
2450
  * @param {string} orgId
2451
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2389
2452
  * @param {*} [options] Override http request option.
2390
2453
  * @throws {RequiredError}
2391
2454
  */
2392
- listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse>;
2455
+ listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse>;
2393
2456
  };
2394
2457
  /**
2395
2458
  * UserManagementApi - object-oriented interface
@@ -2399,15 +2462,23 @@ export declare const UserManagementApiFactory: (configuration?: Configuration, b
2399
2462
  */
2400
2463
  export declare class UserManagementApi extends BaseAPI {
2401
2464
  /**
2402
- * List the users in a given org
2465
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2403
2466
  * @summary List Users in Org
2404
2467
  * @param {string} orgId
2468
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2405
2469
  * @param {*} [options] Override http request option.
2406
2470
  * @throws {RequiredError}
2407
2471
  * @memberof UserManagementApi
2408
2472
  */
2409
- listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgResponse, any, {}>>;
2473
+ listUsersInOrg(orgId: string, include?: ListUsersInOrgIncludeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalsInOrgResponse, any, {}>>;
2410
2474
  }
2475
+ /**
2476
+ * @export
2477
+ */
2478
+ export declare const ListUsersInOrgIncludeEnum: {
2479
+ readonly TeammatePermissionSummary: "teammatePermissionSummary";
2480
+ };
2481
+ export type ListUsersInOrgIncludeEnum = typeof ListUsersInOrgIncludeEnum[keyof typeof ListUsersInOrgIncludeEnum];
2411
2482
  /**
2412
2483
  * UserPermissionsApi - axios parameter creator
2413
2484
  * @export
package/dist/api.js CHANGED
@@ -84,7 +84,8 @@ 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.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.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;
87
+ exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.ListUsersInOrgIncludeEnum = 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.PrincipalInOrgTypeEnum = 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;
88
+ exports.UserPermissionsApi = void 0;
88
89
  var axios_1 = require("axios");
89
90
  // Some imports not used depending on template conditions
90
91
  // @ts-ignore
@@ -540,6 +541,10 @@ exports.Permissions = {
540
541
  RoleFactory: 'RoleFactory',
541
542
  RoleAuthDeveloper: 'RoleAuthDeveloper'
542
543
  };
544
+ exports.PrincipalInOrgTypeEnum = {
545
+ User: 'User',
546
+ Automation: 'Automation'
547
+ };
543
548
  exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
544
549
  OwnerCompensating: 'OwnerCompensating',
545
550
  PropertyOwnerCompensating: 'PropertyOwnerCompensating',
@@ -2561,18 +2566,19 @@ var UserManagementApiAxiosParamCreator = function (configuration) {
2561
2566
  var _this = this;
2562
2567
  return {
2563
2568
  /**
2564
- * List the users in a given org
2569
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2565
2570
  * @summary List Users in Org
2566
2571
  * @param {string} orgId
2572
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2567
2573
  * @param {*} [options] Override http request option.
2568
2574
  * @throws {RequiredError}
2569
2575
  */
2570
- listUsersInOrg: function (orgId_1) {
2576
+ listUsersInOrg: function (orgId_1, include_1) {
2571
2577
  var args_1 = [];
2572
- for (var _i = 1; _i < arguments.length; _i++) {
2573
- args_1[_i - 1] = arguments[_i];
2578
+ for (var _i = 2; _i < arguments.length; _i++) {
2579
+ args_1[_i - 2] = arguments[_i];
2574
2580
  }
2575
- return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
2581
+ return __awaiter(_this, __spreadArray([orgId_1, include_1], args_1, true), void 0, function (orgId, include, options) {
2576
2582
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2577
2583
  if (options === void 0) { options = {}; }
2578
2584
  return __generator(this, function (_a) {
@@ -2594,6 +2600,9 @@ var UserManagementApiAxiosParamCreator = function (configuration) {
2594
2600
  case 1:
2595
2601
  // authentication ApiKeyAuth required
2596
2602
  _a.sent();
2603
+ if (include !== undefined) {
2604
+ localVarQueryParameter['include'] = include;
2605
+ }
2597
2606
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2598
2607
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2599
2608
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2616,19 +2625,20 @@ var UserManagementApiFp = function (configuration) {
2616
2625
  var localVarAxiosParamCreator = (0, exports.UserManagementApiAxiosParamCreator)(configuration);
2617
2626
  return {
2618
2627
  /**
2619
- * List the users in a given org
2628
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2620
2629
  * @summary List Users in Org
2621
2630
  * @param {string} orgId
2631
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2622
2632
  * @param {*} [options] Override http request option.
2623
2633
  * @throws {RequiredError}
2624
2634
  */
2625
- listUsersInOrg: function (orgId, options) {
2635
+ listUsersInOrg: function (orgId, include, options) {
2626
2636
  return __awaiter(this, void 0, void 0, function () {
2627
2637
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2628
2638
  var _a, _b, _c;
2629
2639
  return __generator(this, function (_d) {
2630
2640
  switch (_d.label) {
2631
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId, options)];
2641
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId, include, options)];
2632
2642
  case 1:
2633
2643
  localVarAxiosArgs = _d.sent();
2634
2644
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -2649,14 +2659,15 @@ var UserManagementApiFactory = function (configuration, basePath, axios) {
2649
2659
  var localVarFp = (0, exports.UserManagementApiFp)(configuration);
2650
2660
  return {
2651
2661
  /**
2652
- * List the users in a given org
2662
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2653
2663
  * @summary List Users in Org
2654
2664
  * @param {string} orgId
2665
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2655
2666
  * @param {*} [options] Override http request option.
2656
2667
  * @throws {RequiredError}
2657
2668
  */
2658
- listUsersInOrg: function (orgId, options) {
2659
- return localVarFp.listUsersInOrg(orgId, options).then(function (request) { return request(axios, basePath); });
2669
+ listUsersInOrg: function (orgId, include, options) {
2670
+ return localVarFp.listUsersInOrg(orgId, include, options).then(function (request) { return request(axios, basePath); });
2660
2671
  },
2661
2672
  };
2662
2673
  };
@@ -2673,20 +2684,27 @@ var UserManagementApi = /** @class */ (function (_super) {
2673
2684
  return _super !== null && _super.apply(this, arguments) || this;
2674
2685
  }
2675
2686
  /**
2676
- * List the users in a given org
2687
+ * List the users in a given org. Pass include=teammatePermissionSummary to add roleDisplay and isCustomised per principal (extra Dynamo reads).
2677
2688
  * @summary List Users in Org
2678
2689
  * @param {string} orgId
2690
+ * @param {ListUsersInOrgIncludeEnum} [include] Include roleDisplay and isCustomised per principal
2679
2691
  * @param {*} [options] Override http request option.
2680
2692
  * @throws {RequiredError}
2681
2693
  * @memberof UserManagementApi
2682
2694
  */
2683
- UserManagementApi.prototype.listUsersInOrg = function (orgId, options) {
2695
+ UserManagementApi.prototype.listUsersInOrg = function (orgId, include, options) {
2684
2696
  var _this = this;
2685
- return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2697
+ return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, include, options).then(function (request) { return request(_this.axios, _this.basePath); });
2686
2698
  };
2687
2699
  return UserManagementApi;
2688
2700
  }(base_1.BaseAPI));
2689
2701
  exports.UserManagementApi = UserManagementApi;
2702
+ /**
2703
+ * @export
2704
+ */
2705
+ exports.ListUsersInOrgIncludeEnum = {
2706
+ TeammatePermissionSummary: 'teammatePermissionSummary'
2707
+ };
2690
2708
  /**
2691
2709
  * UserPermissionsApi - axios parameter creator
2692
2710
  * @export
@@ -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.59-rc.1775835995"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.61-rc.1776683828"
40
40
  }
41
41
  };
42
42
  this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/authorization",
3
- "version": "0.0.59-rc.1775835995",
3
+ "version": "0.0.61-rc.1776683828",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {