13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
import { type Message } from 'ai-connector'
|
|
|
|
export interface Chat extends Record<string, any> {
|
|
id: string
|
|
title: string
|
|
createdAt: Date
|
|
userId: string
|
|
path: string
|
|
messages: Message[]
|
|
sharePath?: string
|
|
}
|
|
|
|
export type ServerActionResult<Result> = Promise<Result | Error>
|