Redesign permissions page

This commit is contained in:
2026-10-02 19:33:58 +02:00
parent d5772c24e5
commit a513e731c4
2 changed files with 305 additions and 149 deletions

View File

@@ -95,6 +95,22 @@ export type UserSession = {
creation_time: string,
last_used_time: string,
valid_domains: string[],
// Whether this is the key the list of sessions was requested with
current: boolean,
// What the key is allowed to do
filesystem_read: boolean,
filesystem_write: boolean,
account_read: boolean,
account_write: boolean,
session_read: boolean,
session_write: boolean,
billing_read: boolean,
billing_write: boolean,
// IDs of the directories the key is limited to. Empty means no limit
filesystem_dirs: string[],
}
// If cached_user is undefined it means that the value is not initialized yet,