mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 21:32:18 +00:00
18 lines
437 B
TypeScript
18 lines
437 B
TypeScript
/// A common type returned by several endpoints.
|
|
/// Basic information to display a user and their avatar.
|
|
export interface UserDetailsLight {
|
|
user_token: string,
|
|
/// Username (lowercase)
|
|
username: string,
|
|
/// Username with user-specified capitalization
|
|
display_name: string,
|
|
gravatar_hash: string,
|
|
default_avatar: DefaultAvatarInfo,
|
|
|
|
}
|
|
|
|
export interface DefaultAvatarInfo {
|
|
image_index: number,
|
|
color_index: number,
|
|
}
|