22 lines
388 B
TypeScript
22 lines
388 B
TypeScript
export interface CreateChatCommand {
|
|
type: 'direct' | 'group' | 'game';
|
|
name?: string;
|
|
gameId?: string;
|
|
createdBy: string;
|
|
userIds: string[];
|
|
}
|
|
|
|
export interface SendMessageCommand {
|
|
chatId: string;
|
|
userId: string;
|
|
message: string;
|
|
}
|
|
|
|
export interface ArchiveChatCommand {
|
|
chatId: string;
|
|
}
|
|
|
|
export interface RestoreChatCommand {
|
|
chatId: string;
|
|
}
|