UNPKG

@kitn.ai/ui

Version:

Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.

47 lines (46 loc) 1.36 kB
export interface ModelOption { id: string; name: string; provider?: string; /** A short subtitle shown under the name (e.g. "Flagship model"). Takes * precedence over `provider` for the row subtitle when both are set. */ description?: string; /** Optional group name. Models sharing a `group` are collected under a * collapsible section (e.g. "Legacy models"); ungrouped models list first. */ group?: string; } export interface SearchFilters { tags?: string[]; authors?: string[]; contentType?: 'transcript' | 'markdown'; dateRange?: { from: string; to: string; }; } export interface ConversationScope { type: 'document' | 'collection'; documentId?: string; filters?: SearchFilters; } export interface ConversationSummary { id: string; title: string; groupId?: string; scope: ConversationScope; messageCount: number; lastMessageAt: string; updatedAt: string; /** Right-aligned trailing text on the row — a count, status, or "days ago". * When omitted, a short relative time is auto-derived from `updatedAt` * (fallback `lastMessageAt`). */ trailing?: string; } export interface ConversationGroup { id: string; userId?: string; teamId?: string; name: string; sortOrder: number; createdAt: string; }