@flipdish/authorization 0.0.74-rc.1776934397 → 0.0.75-rc.1776934614

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
@@ -1009,61 +1009,6 @@ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = ty
1009
1009
  */
1010
1010
  export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
1011
1011
  }
1012
- /**
1013
- * Grant teammate app access to a user being assigned within a brand for the first time.
1014
- * @export
1015
- * @interface GrantTeammateAccessRequestBody
1016
- */
1017
- export interface GrantTeammateAccessRequestBody {
1018
- /**
1019
- * Teammate app access level (role)
1020
- * @type {string}
1021
- * @memberof GrantTeammateAccessRequestBody
1022
- */
1023
- 'appAccessLevel': GrantTeammateAccessRequestBodyAppAccessLevelEnum;
1024
- /**
1025
- * Brand identifier (AppId); normalized to lowercase when stored
1026
- * @type {string}
1027
- * @memberof GrantTeammateAccessRequestBody
1028
- */
1029
- 'brandId': string;
1030
- /**
1031
- * Org-wide store access; when false, propertyIds are required for property-scoped roles
1032
- * @type {boolean}
1033
- * @memberof GrantTeammateAccessRequestBody
1034
- */
1035
- 'hasAccessToAllStores': boolean;
1036
- /**
1037
- * Property resource ids (e.g. p123) when scoped to properties
1038
- * @type {Array<string>}
1039
- * @memberof GrantTeammateAccessRequestBody
1040
- */
1041
- 'propertyIds'?: Array<string>;
1042
- /**
1043
- * Target user email; persisted on first assignment only
1044
- * @type {string}
1045
- * @memberof GrantTeammateAccessRequestBody
1046
- */
1047
- 'userEmail': string;
1048
- /**
1049
- * Target user display name; persisted on first assignment only
1050
- * @type {string}
1051
- * @memberof GrantTeammateAccessRequestBody
1052
- */
1053
- 'userName'?: string;
1054
- }
1055
-
1056
- export const GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
1057
- Owner: 'Owner',
1058
- ManagedOwner: 'ManagedOwner',
1059
- PropertyOwner: 'PropertyOwner',
1060
- PropertyManager: 'PropertyManager',
1061
- FinanceManager: 'FinanceManager',
1062
- Integrator: 'Integrator'
1063
- } as const;
1064
-
1065
- export type GrantTeammateAccessRequestBodyAppAccessLevelEnum = typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof GrantTeammateAccessRequestBodyAppAccessLevelEnum];
1066
-
1067
1012
  /**
1068
1013
  *
1069
1014
  * @export
@@ -1501,6 +1446,63 @@ export const Permissions = {
1501
1446
  export type Permissions = typeof Permissions[keyof typeof Permissions];
1502
1447
 
1503
1448
 
1449
+ /**
1450
+ * Principal with teammate permission summary
1451
+ * @export
1452
+ * @interface PrincipalInOrgWithTeammatePermissionSummary
1453
+ */
1454
+ export interface PrincipalInOrgWithTeammatePermissionSummary {
1455
+ /**
1456
+ *
1457
+ * @type {string}
1458
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1459
+ */
1460
+ 'type': PrincipalInOrgWithTeammatePermissionSummaryTypeEnum;
1461
+ /**
1462
+ *
1463
+ * @type {string}
1464
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1465
+ */
1466
+ 'id': string;
1467
+ /**
1468
+ *
1469
+ * @type {string}
1470
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1471
+ */
1472
+ 'name'?: string;
1473
+ /**
1474
+ *
1475
+ * @type {string}
1476
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1477
+ */
1478
+ 'email'?: string;
1479
+ /**
1480
+ *
1481
+ * @type {string}
1482
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1483
+ */
1484
+ 'phone'?: string;
1485
+ /**
1486
+ * Teammate role label; null when no compensating role or unknown
1487
+ * @type {string}
1488
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1489
+ */
1490
+ 'roleDisplay': string;
1491
+ /**
1492
+ * True when granular roles differ from default for the compensating role
1493
+ * @type {boolean}
1494
+ * @memberof PrincipalInOrgWithTeammatePermissionSummary
1495
+ */
1496
+ 'isCustomised': boolean;
1497
+ }
1498
+
1499
+ export const PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = {
1500
+ User: 'User',
1501
+ Automation: 'Automation'
1502
+ } as const;
1503
+
1504
+ export type PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum[keyof typeof PrincipalInOrgWithTeammatePermissionSummaryTypeEnum];
1505
+
1504
1506
  /**
1505
1507
  * Principals in org
1506
1508
  * @export
@@ -1520,6 +1522,25 @@ export interface PrincipalsInOrgResponse {
1520
1522
  */
1521
1523
  'principals': Array<AuthorizationRequestPrincipal>;
1522
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>;
1543
+ }
1523
1544
  /**
1524
1545
  * Details for revoking a forbidden role from a principal
1525
1546
  * @export
@@ -1694,62 +1715,6 @@ export const RoleNames = {
1694
1715
  export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
1695
1716
 
1696
1717
 
1697
- /**
1698
- * Teammate access applied
1699
- * @export
1700
- * @interface TeammateAccessSuccessResponse
1701
- */
1702
- export interface TeammateAccessSuccessResponse {
1703
- /**
1704
- *
1705
- * @type {string}
1706
- * @memberof TeammateAccessSuccessResponse
1707
- */
1708
- 'message': string;
1709
- }
1710
- /**
1711
- * Update teammate app access for an existing teammate. Email and name are not accepted on update; the existing values stored against the user id are reused.
1712
- * @export
1713
- * @interface UpdateTeammateAccessRequestBody
1714
- */
1715
- export interface UpdateTeammateAccessRequestBody {
1716
- /**
1717
- * Teammate app access level (role)
1718
- * @type {string}
1719
- * @memberof UpdateTeammateAccessRequestBody
1720
- */
1721
- 'appAccessLevel': UpdateTeammateAccessRequestBodyAppAccessLevelEnum;
1722
- /**
1723
- * Brand identifier (AppId); normalized to lowercase when stored
1724
- * @type {string}
1725
- * @memberof UpdateTeammateAccessRequestBody
1726
- */
1727
- 'brandId': string;
1728
- /**
1729
- * Org-wide store access; when false, propertyIds are required for property-scoped roles
1730
- * @type {boolean}
1731
- * @memberof UpdateTeammateAccessRequestBody
1732
- */
1733
- 'hasAccessToAllStores': boolean;
1734
- /**
1735
- * Property resource ids (e.g. p123) when scoped to properties
1736
- * @type {Array<string>}
1737
- * @memberof UpdateTeammateAccessRequestBody
1738
- */
1739
- 'propertyIds'?: Array<string>;
1740
- }
1741
-
1742
- export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
1743
- Owner: 'Owner',
1744
- ManagedOwner: 'ManagedOwner',
1745
- PropertyOwner: 'PropertyOwner',
1746
- PropertyManager: 'PropertyManager',
1747
- FinanceManager: 'FinanceManager',
1748
- Integrator: 'Integrator'
1749
- } as const;
1750
-
1751
- export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
1752
-
1753
1718
  /**
1754
1719
  *
1755
1720
  * @export
@@ -3077,51 +3042,6 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3077
3042
  options: localVarRequestOptions,
3078
3043
  };
3079
3044
  },
3080
- /**
3081
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3082
- * @summary Grant teammate access to a new user
3083
- * @param {string} orgId
3084
- * @param {string} userId Target Flipdish user id (numeric string)
3085
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3086
- * @param {*} [options] Override http request option.
3087
- * @throws {RequiredError}
3088
- */
3089
- grantTeammateAccess: async (orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3090
- // verify required parameter 'orgId' is not null or undefined
3091
- assertParamExists('grantTeammateAccess', 'orgId', orgId)
3092
- // verify required parameter 'userId' is not null or undefined
3093
- assertParamExists('grantTeammateAccess', 'userId', userId)
3094
- const localVarPath = `/orgs/{orgId}/users/{userId}/grantTeammateAccess`
3095
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3096
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3097
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3098
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3099
- let baseOptions;
3100
- if (configuration) {
3101
- baseOptions = configuration.baseOptions;
3102
- }
3103
-
3104
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3105
- const localVarHeaderParameter = {} as any;
3106
- const localVarQueryParameter = {} as any;
3107
-
3108
- // authentication ApiKeyAuth required
3109
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3110
-
3111
-
3112
-
3113
- localVarHeaderParameter['Content-Type'] = 'application/json';
3114
-
3115
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3116
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3117
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3118
- localVarRequestOptions.data = serializeDataIfNeeded(grantTeammateAccessRequestBody, localVarRequestOptions, configuration)
3119
-
3120
- return {
3121
- url: toPathString(localVarUrlObj),
3122
- options: localVarRequestOptions,
3123
- };
3124
- },
3125
3045
  /**
3126
3046
  * Revokes a forbidden role from a given principal (user, group, etc.)
3127
3047
  * @summary Revoke Forbidden Role from Principal
@@ -3199,51 +3119,6 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
3199
3119
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3200
3120
  localVarRequestOptions.data = serializeDataIfNeeded(revokeRoleRequestBody, localVarRequestOptions, configuration)
3201
3121
 
3202
- return {
3203
- url: toPathString(localVarUrlObj),
3204
- options: localVarRequestOptions,
3205
- };
3206
- },
3207
- /**
3208
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3209
- * @summary Update teammate access for an existing user
3210
- * @param {string} orgId
3211
- * @param {string} userId Target Flipdish user id (numeric string)
3212
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3213
- * @param {*} [options] Override http request option.
3214
- * @throws {RequiredError}
3215
- */
3216
- updateTeammateAccess: async (orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3217
- // verify required parameter 'orgId' is not null or undefined
3218
- assertParamExists('updateTeammateAccess', 'orgId', orgId)
3219
- // verify required parameter 'userId' is not null or undefined
3220
- assertParamExists('updateTeammateAccess', 'userId', userId)
3221
- const localVarPath = `/orgs/{orgId}/users/{userId}/updateTeammateAccess`
3222
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
3223
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3224
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3225
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3226
- let baseOptions;
3227
- if (configuration) {
3228
- baseOptions = configuration.baseOptions;
3229
- }
3230
-
3231
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3232
- const localVarHeaderParameter = {} as any;
3233
- const localVarQueryParameter = {} as any;
3234
-
3235
- // authentication ApiKeyAuth required
3236
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3237
-
3238
-
3239
-
3240
- localVarHeaderParameter['Content-Type'] = 'application/json';
3241
-
3242
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3243
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3244
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3245
- localVarRequestOptions.data = serializeDataIfNeeded(updateTeammateAccessRequestBody, localVarRequestOptions, configuration)
3246
-
3247
3122
  return {
3248
3123
  url: toPathString(localVarUrlObj),
3249
3124
  options: localVarRequestOptions,
@@ -3287,21 +3162,6 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
3287
3162
  const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.getPrincipalRoles']?.[localVarOperationServerIndex]?.url;
3288
3163
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3289
3164
  },
3290
- /**
3291
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3292
- * @summary Grant teammate access to a new user
3293
- * @param {string} orgId
3294
- * @param {string} userId Target Flipdish user id (numeric string)
3295
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3296
- * @param {*} [options] Override http request option.
3297
- * @throws {RequiredError}
3298
- */
3299
- async grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3300
- const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options);
3301
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3302
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
3303
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3304
- },
3305
3165
  /**
3306
3166
  * Revokes a forbidden role from a given principal (user, group, etc.)
3307
3167
  * @summary Revoke Forbidden Role from Principal
@@ -3330,21 +3190,6 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
3330
3190
  const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']?.[localVarOperationServerIndex]?.url;
3331
3191
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3332
3192
  },
3333
- /**
3334
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3335
- * @summary Update teammate access for an existing user
3336
- * @param {string} orgId
3337
- * @param {string} userId Target Flipdish user id (numeric string)
3338
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3339
- * @param {*} [options] Override http request option.
3340
- * @throws {RequiredError}
3341
- */
3342
- async updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
3343
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options);
3344
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3345
- const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccess']?.[localVarOperationServerIndex]?.url;
3346
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3347
- },
3348
3193
  }
3349
3194
  };
3350
3195
 
@@ -3377,18 +3222,6 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
3377
3222
  getPrincipalRoles(orgId: string, getPrincipalRolesRequestBody?: GetPrincipalRolesRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<GetPrincipalRolesSuccessResponse> {
3378
3223
  return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(axios, basePath));
3379
3224
  },
3380
- /**
3381
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3382
- * @summary Grant teammate access to a new user
3383
- * @param {string} orgId
3384
- * @param {string} userId Target Flipdish user id (numeric string)
3385
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3386
- * @param {*} [options] Override http request option.
3387
- * @throws {RequiredError}
3388
- */
3389
- grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3390
- return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
3391
- },
3392
3225
  /**
3393
3226
  * Revokes a forbidden role from a given principal (user, group, etc.)
3394
3227
  * @summary Revoke Forbidden Role from Principal
@@ -3411,18 +3244,6 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
3411
3244
  revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RevokeRoleSuccessResponse> {
3412
3245
  return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(axios, basePath));
3413
3246
  },
3414
- /**
3415
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3416
- * @summary Update teammate access for an existing user
3417
- * @param {string} orgId
3418
- * @param {string} userId Target Flipdish user id (numeric string)
3419
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3420
- * @param {*} [options] Override http request option.
3421
- * @throws {RequiredError}
3422
- */
3423
- updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
3424
- return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
3425
- },
3426
3247
  };
3427
3248
  };
3428
3249
 
@@ -3459,20 +3280,6 @@ export class RoleAssignmentApi extends BaseAPI {
3459
3280
  return RoleAssignmentApiFp(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then((request) => request(this.axios, this.basePath));
3460
3281
  }
3461
3282
 
3462
- /**
3463
- * Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
3464
- * @summary Grant teammate access to a new user
3465
- * @param {string} orgId
3466
- * @param {string} userId Target Flipdish user id (numeric string)
3467
- * @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
3468
- * @param {*} [options] Override http request option.
3469
- * @throws {RequiredError}
3470
- * @memberof RoleAssignmentApi
3471
- */
3472
- public grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
3473
- return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
3474
- }
3475
-
3476
3283
  /**
3477
3284
  * Revokes a forbidden role from a given principal (user, group, etc.)
3478
3285
  * @summary Revoke Forbidden Role from Principal
@@ -3498,20 +3305,6 @@ export class RoleAssignmentApi extends BaseAPI {
3498
3305
  public revokeRoleFromPrincipal(orgId: string, revokeRoleRequestBody?: RevokeRoleRequestBody, options?: RawAxiosRequestConfig) {
3499
3306
  return RoleAssignmentApiFp(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
3500
3307
  }
3501
-
3502
- /**
3503
- * Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
3504
- * @summary Update teammate access for an existing user
3505
- * @param {string} orgId
3506
- * @param {string} userId Target Flipdish user id (numeric string)
3507
- * @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
3508
- * @param {*} [options] Override http request option.
3509
- * @throws {RequiredError}
3510
- * @memberof RoleAssignmentApi
3511
- */
3512
- public updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
3513
- return RoleAssignmentApiFp(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
3514
- }
3515
3308
  }
3516
3309
 
3517
3310
 
@@ -3550,6 +3343,43 @@ export const UserManagementApiAxiosParamCreator = function (configuration?: Conf
3550
3343
 
3551
3344
 
3552
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;
3372
+ }
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
+
3381
+
3382
+
3553
3383
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3554
3384
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3555
3385
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3582,6 +3412,19 @@ export const UserManagementApiFp = function(configuration?: Configuration) {
3582
3412
  const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
3583
3413
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3584
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
+ },
3585
3428
  }
3586
3429
  };
3587
3430
 
@@ -3602,6 +3445,16 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
3602
3445
  listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
3603
3446
  return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
3604
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));
3457
+ },
3605
3458
  };
3606
3459
  };
3607
3460
 
@@ -3623,6 +3476,18 @@ export class UserManagementApi extends BaseAPI {
3623
3476
  public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) {
3624
3477
  return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
3625
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));
3490
+ }
3626
3491
  }
3627
3492
 
3628
3493
 
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.74-rc.1776934397"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.75-rc.1776934614"
104
104
  }
105
105
  };
106
106