-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPermissionsClient.ts
More file actions
21 lines (18 loc) · 919 Bytes
/
PermissionsClient.ts
File metadata and controls
21 lines (18 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import type { AccessToken } from "@itwin/core-bentley";
import type { BentleyAPIResponse } from "../types/CommonApiTypes";
import type { Permission } from "../types/Permission";
export interface IPermissionsClient {
/** Retrieves the list of all available permissions **/
getPermissions(
accessToken: AccessToken
): Promise<BentleyAPIResponse<Permission[]>>;
/** Retrieves a list of permissions the identity has for a specified iTwin */
getITwinPermissions(
accessToken: AccessToken,
iTwinId: string
): Promise<BentleyAPIResponse<Permission[]>>;
}