mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 10:02:27 -04:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
18 lines
412 B
TypeScript
18 lines
412 B
TypeScript
import {type JSONContent} from '@tiptap/core'
|
|
export type ChatVisibility = 'private' | 'system_status' | 'introduction'
|
|
|
|
export type ChatMessage = {
|
|
id: number
|
|
userId: string
|
|
channelId: string
|
|
content: JSONContent
|
|
createdTime: number
|
|
visibility: ChatVisibility
|
|
isEdited: boolean
|
|
reactions: any
|
|
}
|
|
export type PrivateChatMessage = Omit<ChatMessage, 'id'> & {
|
|
id: number
|
|
createdTimeTs: string
|
|
}
|