export interface ChatTurn { id: string; at: string; role: "user" | "assistant" | "system"; text: string; } export interface ConfigSnapshot { activeProfile?: string; tokenSet: boolean; graphVersion: string; scopes: string[]; tokenMap: { facebook: boolean; instagram: boolean; whatsapp: boolean; }; defaultPageId?: string; defaultAdAccountId?: string; industry?: { mode: string; selected: string; source: string; confidence: number; manualLocked: boolean; }; } export interface PersistedLog { id: string; timestamp: string; action: string; params: Record; latency: number; success: boolean; rollback_plan: string; error?: string; } export interface LoadState { loading: boolean; error: string | null; data: T; }