chat-ui / src /lib /types /Conversation.ts
coyotte508's picture
coyotte508 HF staff
✨ Delete convo (#36)
1a14c61 unverified
raw
history blame
335 Bytes
import type { ObjectId } from 'mongodb';
import type { Message } from './Message';
export interface Conversation {
_id: ObjectId;
// Can be undefined for shared convo then deleted
sessionId?: string;
title: string;
messages: Message[];
shares?: Array<{ id: string; msgCount: number }>;
createdAt: Date;
updatedAt: Date;
}