feat: add Role type for RBAC

This commit is contained in:
CREDO23 2025-12-15 13:04:57 +00:00
parent bc6f7e15f1
commit 37f2b27451

View file

@ -0,0 +1,14 @@
import { z } from "zod";
export const role = z.object({
id: z.number(),
name: z.string().min(1).max(100),
description: z.string().max(500).nullable(),
permissions: z.array(z.string()),
is_default: z.boolean(),
is_system_role: z.boolean(),
search_space_id: z.number(),
created_at: z.string(),
});
export type Role = z.infer<typeof role>;