UNPKG

1.8 kBTypeScriptView Raw
1import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
2export declare enum RoleAccess {
3 /**
4 * Access has been explicitly set.
5 */
6 Assigned = 1,
7 /**
8 * Access has been inherited from a higher scope.
9 */
10 Inherited = 2
11}
12export interface RoleAssignment {
13 /**
14 * Designates the role as explicitly assigned or inherited.
15 */
16 access: RoleAccess;
17 /**
18 * User friendly description of access assignment.
19 */
20 accessDisplayName: string;
21 /**
22 * The user to whom the role is assigned.
23 */
24 identity: VSSInterfaces.IdentityRef;
25 /**
26 * The role assigned to the user.
27 */
28 role: SecurityRole;
29}
30export interface SecurityRole {
31 /**
32 * Permissions the role is allowed.
33 */
34 allowPermissions: number;
35 /**
36 * Permissions the role is denied.
37 */
38 denyPermissions: number;
39 /**
40 * Description of user access defined by the role
41 */
42 description: string;
43 /**
44 * User friendly name of the role.
45 */
46 displayName: string;
47 /**
48 * Globally unique identifier for the role.
49 */
50 identifier: string;
51 /**
52 * Unique name of the role in the scope.
53 */
54 name: string;
55 /**
56 * Returns the id of the ParentScope.
57 */
58 scope: string;
59}
60export interface UserRoleAssignmentRef {
61 /**
62 * The name of the role assigned.
63 */
64 roleName: string;
65 /**
66 * Identifier of the user given the role assignment.
67 */
68 uniqueName: string;
69 /**
70 * Unique id of the user given the role assignment.
71 */
72 userId: string;
73}
74export declare var TypeInfo: {
75 RoleAccess: {
76 enumValues: {
77 assigned: number;
78 inherited: number;
79 };
80 };
81 RoleAssignment: any;
82};