import { Chat, Message } from '@prisma/client'; import { type Message as MessageAI } from 'ai'; export type ChatWithMessages = Chat & { messages: Message[] }; export type MessageUserInput = Pick; export type MessageAssistantResponse = Partial< Pick >; export type MessageUI = Pick & { mediaUrl?: string; }; export interface SignedPayload { id: string; publicUrl: string; signedUrl: string; fields: Record; }