mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add shared Permission and Role types
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from "./constants.js";
|
||||
export * from "./i18n/index.js";
|
||||
export * from "./permissions.js";
|
||||
export * from "./types.js";
|
||||
|
||||
@@ -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";
|
||||
Reference in New Issue
Block a user