Files
vces/src/admin.ts
T
2026-10-29 21:42:26 -03:00

25 lines
472 B
TypeScript

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;
}