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([
|
||||
"user", // permissions to /auth/me, with email docked
|
||||
"email", // adds email back to /auth/me
|
||||
"private", // allows app to read private files
|
||||
"upload", // allows an app to upload under an account
|
||||
"manage", // allows an app to manage an account's files
|
||||
"customize", // allows an app to change customization settings
|
||||
"admin", // only available for accounts with admin
|
||||
// gives an app access to all admin tools
|
||||
"manage_private", // allows app to manage private files
|
||||
"manage_files", // allows an app to manage an account's files
|
||||
"manage_account", // allows an app to manage an account
|
||||
"manage_server" // allows an app to affect other users, files on admin accounts
|
||||
])
|
||||
|
||||
export const TokenType = z.enum([
|
||||
|
|
Loading…
Reference in a new issue