mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-02 12:22:40 +02:00
feat: add Membership type for RBAC
This commit is contained in:
parent
37f2b27451
commit
8a9f3e1c18
1 changed files with 15 additions and 1 deletions
|
|
@ -11,4 +11,18 @@ export const role = z.object({
|
||||||
created_at: z.string(),
|
created_at: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Role = z.infer<typeof role>;
|
export const membership = z.object({
|
||||||
|
id: z.number(),
|
||||||
|
user_id: z.string(),
|
||||||
|
search_space_id: z.number(),
|
||||||
|
role_id: z.number().nullable(),
|
||||||
|
is_owner: z.boolean(),
|
||||||
|
joined_at: z.string(),
|
||||||
|
created_at: z.string(),
|
||||||
|
role: role.nullable().optional(),
|
||||||
|
user_email: z.string().nullable().optional(),
|
||||||
|
user_is_active: z.boolean().nullable().optional(),
|
||||||
|
});
|
||||||
|
|
||||||
|
export type Role = z.infer<typeof role>;
|
||||||
|
export type Membership = z.infer<typeof membership>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue