/** * Chatbot-specific type definitions */ /** * User preferences specific to the chatbot widget */ export interface ChatbotUserPreferences { /** Preferred widget size */ size?: 'minimal' | 'medium' | 'large'; /** Widget position on screen */ position?: { x: number; y: number }; /** Custom size configurations for different modes */ customSizes?: Record; /** Whether drag functionality is enabled */ enableDrag?: boolean; /** Whether resize functionality is enabled */ enableResize?: boolean; /** Whether chat area is visible */ showChat?: boolean; /** Whether video area is visible */ showVideo?: boolean; /** Whether widget is in audio-only mode */ isAudioMode?: boolean; /** Whether a call is currently active */ isCallActive?: boolean; } /** * Tavus API request body interface */ export interface TavusRequestBody { /** Replica ID for the conversation */ replica_id: string; /** Persona ID for the conversation */ persona_id: string; /** Optional conversational context */ conversational_context?: string; /** Optional properties for the conversation */ properties?: Record; } /** * Tavus API conversation response interface */ export interface TavusConversationResponse { /** Unique conversation identifier */ conversation_id: string; /** Human-readable conversation name */ conversation_name: string; /** Conversation status (active, ended, etc.) */ status: string; /** URL to join the conversation */ conversation_url: string; /** Replica ID used in the conversation */ replica_id: string; /** Persona ID used in the conversation */ persona_id: string; /** ISO timestamp when conversation was created */ created_at: string; } // TavusErrorResponse is defined in tavus-api.ts /** * Tavus API end conversation response interface */ export interface TavusEndConversationResponse { /** Conversation ID that was ended */ conversation_id: string; /** Final status of the conversation */ status: string; /** ISO timestamp when conversation was ended */ ended_at: string; /** Duration of the conversation in seconds */ duration_seconds: number; } /** * Chrome extension message types for chatbot */ export interface ChatbotExtensionMessage { /** Message type */ type: 'NAVIGATE_TO_URL'; /** URL to navigate to */ url: string; }