Skip to content

Type Alias: GenieStreamEvent

GenieStreamEvent = { conversationId: string; messageId: string; spaceId: string; type: "message_start"; } | { status: string; type: "status"; } | { message: GenieMessageResponse; type: "message_result"; } | { attachmentId: string; data: GenieStatementResponse; statementId: string; type: "query_result"; } | { error: string; type: "error"; } | { conversationId: string; loadedCount: number; nextPageToken: string | null; spaceId: string; type: "history_info"; }

SSE event discriminated union produced by streamSendMessage and streamConversation