| 1 | export interface Conversation { |
| 2 | id: string; |
| 3 | title: string | null; |
| 4 | participantIds: string[]; |
| 5 | createdAt: Date; |
| 6 | updatedAt: Date; |
| 7 | lastMessageAt: Date | null; |
| 8 | lastMessagePreview: string | null; |
| 9 | } |
| 10 | |
| 11 | export interface CreateConversationInput { |
| 12 | title?: string | null; |
| 13 | participantIds: string[]; |
| 14 | } |
| 15 | |
| 16 | export interface ConversationFilter { |
| 17 | participantId: string; |
| 18 | } |
| 19 | |
| 20 | export type ConversationSummary = Conversation; |