Files
Compass/common/src/chat-message.ts
2026-03-10 16:22:44 +01:00

14 lines
336 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 // TODO: switch to Date
visibility: ChatVisibility
isEdited: boolean
reactions: any
}