mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
feat: add GetPermissionsResponse schema for RBAC
This commit is contained in:
parent
18917519e9
commit
d5af72bed6
1 changed files with 8 additions and 0 deletions
|
|
@ -45,7 +45,15 @@ export const permissionInfo = z.object({
|
|||
category: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* Get permissions
|
||||
*/
|
||||
export const getPermissionsResponse = z.object({
|
||||
permissions: z.array(permissionInfo),
|
||||
});
|
||||
|
||||
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>;
|
||||
export type GetPermissionsResponse = z.infer<typeof getPermissionsResponse>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue