/** * Persona type classification */ export type PersonaType = 'preset' | 'custom'; /** * Persona personality traits */ export type PersonalityTrait = 'friendly' | 'professional' | 'casual' | 'formal' | 'enthusiastic' | 'calm' | 'humorous' | 'serious'; /** * Persona expertise areas */ export type ExpertiseArea = 'general' | 'technical' | 'creative' | 'business' | 'educational' | 'entertainment' | 'health' | 'finance'; /** * Persona communication style */ export type CommunicationStyle = 'conversational' | 'instructional' | 'collaborative' | 'advisory' | 'analytical' | 'storytelling'; /** * Persona availability status */ export type PersonaStatus = 'active' | 'inactive' | 'archived'; /** * Persona access level */ export type PersonaAccess = 'free' | 'premium' | 'enterprise'; /** * Persona configuration for different interaction modes */ export interface PersonaModeConfig { /** Whether this persona supports text interactions */ textEnabled: boolean; /** Whether this persona supports voice interactions */ voiceEnabled: boolean; /** Whether this persona supports video interactions */ videoEnabled: boolean; /** Preferred interaction mode for this persona */ preferredMode: 'text' | 'voice' | 'video' | 'mixed'; } /** * Persona system prompt configuration */ export interface PersonaSystemPrompt { /** Base system prompt for the persona */ base: string; /** Context-specific prompt variations */ contextVariations: Record; /** Instructions for handling different conversation types */ conversationInstructions: string; /** Guidelines for maintaining persona consistency */ consistencyGuidelines: string; } /** * Persona appearance and visual settings */ export interface PersonaAppearance { /** Persona name for display */ displayName: string; /** Persona description */ description: string; /** Avatar image URL or identifier */ avatarUrl?: string; /** Primary color theme for the persona */ primaryColor: string; /** Secondary color theme for the persona */ secondaryColor: string; /** Whether to show visual indicators for this persona */ showVisualIndicators: boolean; } /** * Persona behavior and interaction settings */ export interface PersonaBehavior { /** Primary personality traits */ personalityTraits: PersonalityTrait[]; /** Communication style preference */ communicationStyle: CommunicationStyle; /** Whether to use emojis and informal language */ useInformalLanguage: boolean; /** Response length preference */ responseLength: 'concise' | 'detailed'; /** Whether to ask clarifying questions */ askClarifyingQuestions: boolean; /** Whether to provide proactive suggestions */ provideSuggestions: boolean; } /** * Persona expertise and knowledge configuration */ export interface PersonaExpertise { /** Primary expertise areas */ expertiseAreas: ExpertiseArea[]; /** Specific knowledge domains */ knowledgeDomains: string[]; /** Whether to admit when knowledge is limited */ admitLimitations: boolean; /** Whether to suggest additional resources */ suggestResources: boolean; /** Confidence level in responses (0-100) */ confidenceLevel: number; } /** * Persona context and site-specific behavior */ export interface PersonaContext { /** Whether to adapt to site-specific content */ adaptToSite: boolean; /** Whether to use site-specific terminology */ useSiteTerminology: boolean; /** Whether to reference page content */ referencePageContent: boolean; /** Whether to maintain conversation context */ maintainContext: boolean; /** Maximum context length to maintain */ maxContextLength: number; } /** * Persona access and permissions */ export interface PersonaAccessSettings { /** Access level required for this persona */ accessLevel: PersonaAccess; /** Whether this persona is available to all users */ isPublic: boolean; /** User ID who created this persona (for custom personas) */ createdBy?: string; /** Whether this persona can be modified */ isEditable: boolean; /** Whether this persona can be shared */ isShareable: boolean; } /** * Persona metadata and tracking */ export interface PersonaMetadata { /** Unique identifier for the persona */ id: string; /** Persona type (preset or custom) */ type: PersonaType; /** Current status of the persona */ status: PersonaStatus; /** Version of the persona */ version: string; /** Creation timestamp */ createdAt: string; /** Last modification timestamp */ lastModified: string; /** Usage statistics */ usageCount: number; /** Average rating from users */ averageRating?: number; /** Number of ratings received */ ratingCount: number; } /** * Complete persona configuration */ export interface Persona { /** Persona metadata */ metadata: PersonaMetadata; /** Persona appearance settings */ appearance: PersonaAppearance; /** Persona behavior settings */ behavior: PersonaBehavior; /** Persona expertise configuration */ expertise: PersonaExpertise; /** Persona context settings */ context: PersonaContext; /** Persona access settings */ access: PersonaAccessSettings; /** Persona mode configuration */ modes: PersonaModeConfig; /** Persona system prompt configuration */ systemPrompt: PersonaSystemPrompt; /** Custom settings specific to this persona */ customSettings?: Record; }