//#region ../shared/src/genie.d.ts /** SSE event discriminated union produced by streamSendMessage and streamConversation */ type GenieStreamEvent = { type: "message_start"; conversationId: string; messageId: string; spaceId: string; } | { type: "status"; status: string; } | { type: "message_result"; message: GenieMessageResponse; } | { type: "query_result"; attachmentId: string; statementId: string; data: GenieStatementResponse; } | { type: "error"; error: string; } | { type: "history_info"; conversationId: string; spaceId: string; /** Opaque token to fetch the next (older) page. Null means no more pages. */ nextPageToken: string | null; /** Total messages returned in this initial load */ loadedCount: number; }; /** Shape of the Databricks SQL statement_response returned by Genie queries */ interface GenieStatementResponse { manifest: { schema: { columns: Array<{ name: string; type_name: string; }>; }; }; result: { data_array: (string | null)[][]; }; } /** Cleaned response — subset of SDK GenieMessage */ interface GenieMessageResponse { messageId: string; conversationId: string; spaceId: string; status: string; content: string; attachments?: GenieAttachmentResponse[]; error?: string; } interface GenieAttachmentResponse { attachmentId?: string; query?: { title?: string; description?: string; query?: string; statementId?: string; }; text?: { content?: string; }; suggestedQuestions?: string[]; } //#endregion export { GenieAttachmentResponse, GenieMessageResponse, GenieStatementResponse, GenieStreamEvent }; //# sourceMappingURL=genie.d.ts.map