Admin page
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
export interface MeResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
admin: boolean;
|
||||
}
|
||||
|
||||
// What the admin users API returns, storage_used is the size of the encrypted files
|
||||
export interface AdminUserEntry {
|
||||
id: string;
|
||||
name: string;
|
||||
admin: boolean;
|
||||
date_created: string;
|
||||
has_key: boolean;
|
||||
file_count: number;
|
||||
storage_used: number;
|
||||
}
|
||||
|
||||
// Only returned once, when the user is created
|
||||
export interface CreatedUser {
|
||||
id: string;
|
||||
name: string;
|
||||
admin: boolean;
|
||||
code: string;
|
||||
}
|
||||
Reference in New Issue
Block a user