mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-04 23:06:57 -05:00
18 lines
414 B
TypeScript
18 lines
414 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
|
|
}
|