add user avatars, delete, set, view

This commit is contained in:
creations 2025-03-17 05:47:22 -04:00
parent cc4ebfbdd0
commit f14daf041a
Signed by: creations
GPG key ID: 8F553AA4320FC711
6 changed files with 560 additions and 0 deletions

18
types/file.d.ts vendored
View file

@ -41,3 +41,21 @@ type Folder = {
created_at: string;
updated_at: string;
};
// Avatars
type AvatarEntry = {
id: UUID;
owner: UUID;
mime_type: string;
extension: string;
size: number;
created_at: string;
updated_at: string;
};
type AvatarUpload = Partial<AvatarEntry> & {
url?: string;
};