/** * Voice Demo UI Types * * Core TypeScript types for the voice demo application. */ /** * Configuration for creating a voice demo session */ export interface VoiceSessionConfig { customerName?: string; customerEmail?: string; deckId?: string; sessionType?: string; use_existing_deck?: boolean; deck_url?: string; } /** * LiveKit tokens returned from the API */ export interface LiveKitTokens { sessionId: string; roomName: string; customerToken: string; agentToken: string; screenshareToken: string; livekitUrl: string; deckUrl?: string; message: string; } /** * Session state for the voice demo */ export type SessionState = | { status: 'idle' } | { status: 'creating' } | { status: 'connecting' } | { status: 'connected'; tokens: LiveKitTokens } | { status: 'disconnected' } | { status: 'error'; error: string }; /** * API error response */ export interface ApiError { error: string; details?: string; }