feat: add shared Permission and Role types

This commit is contained in:
Siddharth Kumar Sah
2026-04-10 21:25:29 +08:00
parent e8bad0e67b
commit 2f594e9605
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
export * from "./constants.js";
export * from "./i18n/index.js";
export * from "./permissions.js";
export * from "./types.js";
+15
View File
@@ -0,0 +1,15 @@
export type Permission =
| "tools:use"
| "files:own"
| "files:all"
| "apikeys:own"
| "apikeys:all"
| "pipelines:own"
| "pipelines:all"
| "settings:read"
| "settings:write"
| "users:manage"
| "teams:manage"
| "branding:manage";
export type Role = "admin" | "user";