mirror of
https://github.com/zooai/ai.git
synced 2026-10-30 14:52:08 +00:00
20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
import { type Message } from 'ai'
|
|
|
|
// TODO refactor and remove unneccessary duplicate data.
|
|
export interface Chats extends Record<string, any> {
|
|
id: string
|
|
title: string
|
|
createdAt: Date
|
|
userId: string
|
|
path: string
|
|
messages: Message[]
|
|
sharePath?: string // Refactor to use RLS
|
|
}
|
|
|
|
export type ServerActionResult<Result> = Promise<
|
|
| Result
|
|
| {
|
|
error: string
|
|
}
|
|
>
|