mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-20 07:44:01 -05:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import { type JSONContent } from '@tiptap/core'
|
|
export type ChatVisibility = 'private' | 'system_status' | 'introduction'
|
|
|
|
export type ChatMessage = {
|
|
id: string
|
|
userId: string
|
|
channelId: string
|
|
content: JSONContent
|
|
createdTime: number
|
|
visibility: ChatVisibility
|
|
}
|
|
export type PrivateChatMessage = Omit<ChatMessage, 'id'> & {
|
|
id: number
|
|
createdTimeTs: string
|
|
}
|