18 lines
905 B
TypeScript
18 lines
905 B
TypeScript
/**
|
|
* Automatically generated types for motia
|
|
* Do NOT edit this file manually.
|
|
*
|
|
* Consider adding this file to .prettierignore and eslint ignore.
|
|
*/
|
|
import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream } from 'motia'
|
|
|
|
declare module 'motia' {
|
|
interface FlowContextStateStreams {
|
|
'conversation': MotiaStream<{ message: string; from: 'user' | 'assistant'; status: 'created' | 'streaming' | 'completed'; timestamp: string }>
|
|
}
|
|
|
|
type Handlers = {
|
|
'ChatApi': ApiRouteHandler<{ message: string; conversationId?: string }, ApiResponse<200, { message: string; from: 'user' | 'assistant'; status: 'created' | 'streaming' | 'completed'; timestamp: string }>, { topic: 'chat-message'; data: { message: string; conversationId: string; assistantMessageId: string } }>
|
|
'AiResponse': EventHandler<{ message: string; conversationId: string; assistantMessageId: string }, never>
|
|
}
|
|
} |