import { ChatRoomId } from '../chat'; import { UserId, Username } from './User'; import { UserRole } from './UserRole'; export interface PublicUser { /** The user's ID */ id: UserId; /** The unique username of the user */ username: Username; /** The user's first name. */ firstName: string; /** The user's last name. */ lastName: string; /** The user's profile picture. */ profilePicture?: string; /** The user's profile emoji. */ emoji: string; /** List of users following this user. */ followers: UserId[]; /** List of users this user is following. */ following: UserId[]; /** List of users this user is following. */ chatRoom?: ChatRoomId; /** The user's role/privileges */ role: UserRole; }