feat: Add ability to change profile avatar (#12642)

This commit is contained in:
Shun Miyazawa
2025-01-22 11:11:31 +09:00
committed by GitHub
parent 2f41bd495d
commit f582d4a13e
13 changed files with 158 additions and 19 deletions

View File

@@ -22,6 +22,7 @@ export type UserProfileResponse = {
name: string
email: string
avatar: string
avatar_url: string | null
is_password_set: boolean
interface_language?: string
interface_theme?: string
@@ -62,7 +63,7 @@ export type TenantInfoResponse = {
trial_end_reason: null | 'trial_exceeded' | 'using_custom'
}
export type Member = Pick<UserProfileResponse, 'id' | 'name' | 'email' | 'last_login_at' | 'last_active_at' | 'created_at'> & {
export type Member = Pick<UserProfileResponse, 'id' | 'name' | 'email' | 'last_login_at' | 'last_active_at' | 'created_at' | 'avatar_url'> & {
avatar: string
status: 'pending' | 'active' | 'banned' | 'closed'
role: 'owner' | 'admin' | 'editor' | 'normal' | 'dataset_operator'