From 18917519e94bf0317cbab402b6c587d5a16a37b0 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 15 Dec 2025 13:20:47 +0000 Subject: [PATCH] feat: add PermissionInfo type for RBAC --- surfsense_web/contracts/types/rbac.types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/surfsense_web/contracts/types/rbac.types.ts b/surfsense_web/contracts/types/rbac.types.ts index aa664fa21..72a9dde4c 100644 --- a/surfsense_web/contracts/types/rbac.types.ts +++ b/surfsense_web/contracts/types/rbac.types.ts @@ -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; export type Membership = z.infer; export type Invite = z.infer; +export type PermissionInfo = z.infer;