add user avatars, delete, set, view
This commit is contained in:
parent
cc4ebfbdd0
commit
f14daf041a
6 changed files with 560 additions and 0 deletions
18
types/file.d.ts
vendored
18
types/file.d.ts
vendored
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue