Files
XHChat/web/src/contacts.ts
T

11 lines
319 B
TypeScript

export interface Contact {
id: string
username: string
state: 'none' | 'incoming' | 'outgoing' | 'friend' | 'blocked'
alias: string
category: string
muted: boolean
}
export type ContactAction = 'request' | 'accept' | 'reject' | 'cancel' | 'delete' | 'block' | 'unblock' | 'preferences' | 'mute' | 'unmute'