import type { SuggestedFlow } from './copilot'

export interface AssistantChat {
  id: string
  title: string
  messages: AssistantChatMessage[]
  message_count: number
  pinned: boolean
  created_at: string
  updated_at: string
}

export interface AssistantChatMessage {
  role: 'user' | 'assistant'
  content: string
}

export interface ChatListItem {
  id: string
  title: string
  message_count: number
  pinned: boolean
  created_at: string
  updated_at: string
}

export interface ChatMessageResponse {
  content: string
  suggested_flows: SuggestedFlow[]
}

export interface RetentionSettings {
  chat_retention_days: number | null
  chat_retention_max_count: number | null
}

export type { SuggestedFlow }
