Files
Compass/common/src/user.ts
2026-02-23 12:54:43 +01:00

32 lines
741 B
TypeScript

import {Socials} from './socials'
import {notification_preferences} from './user-notification-preferences'
export type User = {
id: string
createdTime: number
name: string
username: string
avatarUrl: string
link: Socials // Social links
isBannedFromPosting?: boolean
userDeleted?: boolean
}
export type PrivateUser = {
id: string // same as User.id
email?: string
initialDeviceToken?: string
initialIpAddress?: string
notificationPreferences: notification_preferences
blockedUserIds: string[]
blockedByUserIds: string[]
locale?: string
}
export type UserActivity = {
user_id: string // same as User.id
last_online_time: string
}
export type UserAndPrivateUser = {user: User; privateUser: PrivateUser}