feat(server): lossy avatar thumbnails, gzip upload and separate avatar endpoints

This commit is contained in:
justme committed 2026-10-17 14:35:41 +08:00
1 parent ba0b6c258a
commit 31ae3bc39e
16 files changed
+155 -26

No files matched your search

+5 -1
View File
@@ -1,5 +1,5 @@
// Generated from backend DTOs; do not edit.
// backend-contract-sha256: a7ea3b6455a14ed68504e9683a38fae13e560bd48df12f3ecf3e82a88f0b83dd
// backend-contract-sha256: 96cd0ffa3588a288af7bc720b2413cb56499dd862ac98d83c73ccc11a1147d25
export interface AccountChannelBody {
channel_id: string;
@@ -25,12 +25,15 @@ export interface AccountDeviceSigningRequest {
export interface AccountProfile {
avatar?: string | null;
displayName: string;
hasAvatar: boolean;
modifiedAt: number;
username: string;
}
export interface AccountProfileRequest {
avatar?: string | null;
avatarThumb?: string | null;
displayName: string;
keepAvatar: boolean;
}
export interface AccountRegisterRequest {
public_key: string;
@@ -101,6 +104,7 @@ export interface ChannelSettings {
}
export interface ChannelSettingsPatch {
avatar?: string | null;
avatar_thumb?: string | null;
delete_policy?: DeletePolicy | null;
file_max_downloads?: number | null;
join_password?: string | null;