mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
feat: add PermissionInfo type for RBAC
This commit is contained in:
parent
34f0e4514c
commit
18917519e9
1 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,13 @@ export const invite = z.object({
|
|||
role: role.nullable().optional(),
|
||||
});
|
||||
|
||||
export const permissionInfo = z.object({
|
||||
value: z.string(),
|
||||
name: z.string(),
|
||||
category: z.string(),
|
||||
});
|
||||
|
||||
export type Role = z.infer<typeof role>;
|
||||
export type Membership = z.infer<typeof membership>;
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
export type PermissionInfo = z.infer<typeof permissionInfo>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue