list users

This commit is contained in:
2025-07-20 13:14:31 +02:00
parent 7f2aac12e6
commit 5ec224b79e
36 changed files with 225 additions and 54 deletions

View File

@@ -0,0 +1,7 @@
export type ApiResponse<T> = {
status: number;
data: T;
};
// TODO: Fix
export type ApiError = string;

View File

@@ -0,0 +1,18 @@
export type AuthSessionType = 'WarrenAuth';
export interface AuthSession {
type: AuthSessionType;
id: string;
user: AuthUser;
expiresAt: number;
}
export interface AuthUser extends AuthUserFields {
id: string;
}
export interface AuthUserFields {
name: string;
email: string;
admin: boolean;
}

View File

@@ -0,0 +1,25 @@
export type FileType = 'file' | 'directory';
export type BreadcrumbData = {
name: string;
href: string;
};
export type DirectoryEntry = {
name: string;
fileType: FileType;
mimeType: string | null;
/// Timestamp in seconds
createdAt: number | null;
};
export type UploadStatus =
| 'not_uploaded'
| 'uploading'
| 'completed'
| 'failed';
export type UploadFile = {
status: UploadStatus;
data: File;
};

View File

@@ -0,0 +1,4 @@
export type Warren = {
id: string;
name: string;
};