feat(types): add User type
This commit is contained in:
@@ -860,3 +860,18 @@ export interface InboxClaimRow {
|
||||
totalLines: number;
|
||||
} | null;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Auth (admin/user/viewer). Mirrors `users.to_public()` on the backend
|
||||
// (backend/src/cyclone/auth/users.py). Role is the triple ("admin" |
|
||||
// "user" | "viewer"); `disabledAt` is non-null when the account has been
|
||||
// disabled by an admin. `createdAt` mirrors the original DB column.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
username: string;
|
||||
role: "admin" | "user" | "viewer";
|
||||
createdAt: string | null;
|
||||
disabledAt?: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user