From 1efb6802a0dcf7bb23b3313496e3371335e7ee74 Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Tue, 21 May 2024 20:03:49 -0700 Subject: [PATCH] new scopes --- src/server/lib/schemas/auth.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/server/lib/schemas/auth.ts b/src/server/lib/schemas/auth.ts index 82e3cdc..adefd40 100644 --- a/src/server/lib/schemas/auth.ts +++ b/src/server/lib/schemas/auth.ts @@ -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([