/** * User preferences for video quality settings */ export type VideoQuality = 'low' | 'medium' | 'high' | 'ultra'; /** * User preferences for sharing permissions */ export type SharingPermission = 'ask' | 'none'; /** * User preferences for data retention periods */ export type RetentionPeriod = '1-day' | '1-week' | '1-month' | '3-months' | '6-months' | '1-year' | 'forever'; /** * User preferences for notification settings */ export type NotificationLevel = 'none' | 'important' | 'all'; /** * User preferences for AI interaction mode */ export type InteractionMode = 'text-only' | 'voice-only' | 'video-only' | 'mixed'; /** * User preferences for privacy settings */ export interface PrivacyPreferences { /** Whether to allow sites to request data sharing */ allowSiteDataRequests: boolean; /** Data retention period for conversations */ dataRetention: RetentionPeriod; /** Whether to allow analytics collection */ allowAnalytics: boolean; /** Whether to show user video during video interactions */ showUserVideo: boolean; /** Whether to allow AI to access page content */ allowPageAccess: boolean; } /** * User preferences for video settings */ export interface VideoPreferences { /** Preferred video quality for AI interactions */ quality: VideoQuality; /** Whether to enable video by default */ enabled: boolean; /** Maximum video duration in seconds */ maxDuration: number; /** Whether to auto-pause video when tab is not active */ autoPauseOnTabSwitch: boolean; } /** * User preferences for voice settings */ export interface VoicePreferences { /** Whether to enable voice interactions */ enabled: boolean; /** Preferred voice language (ISO 639-1 code, defaults to 'en') */ language: string; /** Whether to enable wake word detection */ wakeWordEnabled: boolean; /** Microphone sensitivity level (0-100) */ microphoneSensitivity: number; } /** * User preferences for UI settings */ export interface UIPreferences { /** Whether to show the AI companion by default */ showCompanion: boolean; /** Floating container positioning */ containerPosition: { /** Display ID for multi-display setups */ displayId?: string; /** X coordinate relative to display */ x: number; /** Y coordinate relative to display */ y: number; /** Whether position is locked */ locked: boolean; }; /** Whether to minimize the container on page load */ minimizeOnLoad: boolean; /** Theme preference */ theme: 'light' | 'dark' | 'auto'; /** Font size preference */ fontSize: 'small' | 'medium' | 'large'; /** Whether to support multi-display setups */ multiDisplaySupport: boolean; } /** * User preferences for AI behavior */ export interface AIBehaviorPreferences { /** Ordered preference for interaction modes (first is preferred) */ interactionModePreferences: InteractionMode[]; /** Whether to use video only when site pays for it */ videoOnlyWhenSitePaid: boolean; /** Whether AI should be proactive in suggestions */ proactiveSuggestions: boolean; /** Whether AI should remember conversation context */ rememberContext: boolean; /** Maximum conversation history to maintain */ maxHistoryLength: number; /** Whether to enable AI navigation assistance */ enableNavigation: boolean; } /** * User preferences for notifications */ export interface NotificationPreferences { /** Notification level for different types of alerts */ level: NotificationLevel; /** Whether to show desktop notifications */ desktopNotifications: boolean; /** Whether to play sound for notifications */ soundEnabled: boolean; /** Whether to show notifications during video calls */ showDuringVideo: boolean; } /** * User preferences for cost and usage tracking */ export interface CostPreferences { /** Whether to show cost information */ showCosts: boolean; /** Monthly budget limit in USD */ monthlyBudget: number; /** Whether to receive low balance warnings */ lowBalanceWarnings: boolean; /** Preferred currency for cost display */ currency: 'USD' | 'EUR' | 'GBP'; } /** * Complete user preferences configuration */ export interface UserPreferences { /** User's unique identifier */ userId: string; /** Privacy-related preferences */ privacy: PrivacyPreferences; /** Video-related preferences */ video: VideoPreferences; /** Voice-related preferences */ voice: VoicePreferences; /** UI-related preferences */ ui: UIPreferences; /** AI behavior preferences */ aiBehavior: AIBehaviorPreferences; /** Notification preferences */ notifications: NotificationPreferences; /** Cost and usage preferences */ costs: CostPreferences; /** Timestamp when preferences were last updated */ lastUpdated: string; /** Version of the preferences schema */ schemaVersion: string; }