new scopes

This commit is contained in:
May 2024-05-21 20:03:49 -07:00
parent ce96537d11
commit 1efb6802a0

View file

@ -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([