mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
new scopes
This commit is contained in:
parent
ce96537d11
commit
1efb6802a0
|
@ -3,12 +3,10 @@ import { z } from "zod";
|
||||||
export const Scope = z.enum([
|
export const Scope = z.enum([
|
||||||
"user", // permissions to /auth/me, with email docked
|
"user", // permissions to /auth/me, with email docked
|
||||||
"email", // adds email back to /auth/me
|
"email", // adds email back to /auth/me
|
||||||
"private", // allows app to read private files
|
"manage_private", // allows app to manage private files
|
||||||
"upload", // allows an app to upload under an account
|
"manage_files", // allows an app to manage an account's files
|
||||||
"manage", // allows an app to manage an account's files
|
"manage_account", // allows an app to manage an account
|
||||||
"customize", // allows an app to change customization settings
|
"manage_server" // allows an app to affect other users, files on admin accounts
|
||||||
"admin", // only available for accounts with admin
|
|
||||||
// gives an app access to all admin tools
|
|
||||||
])
|
])
|
||||||
|
|
||||||
export const TokenType = z.enum([
|
export const TokenType = z.enum([
|
||||||
|
|
Loading…
Reference in a new issue