import { KnowledgeSource } from '../../domain/entities/knowledge-article.entity';

export class CreateArticleDto {
  title: string;
  content: string;
  category: string;
  tags?: string[];
  source?: KnowledgeSource;
  sourceUrl?: string;
  autoPublish?: boolean;
}

export class UpdateArticleDto {
  title?: string;
  content?: string;
  category?: string;
  tags?: string[];
}

export class SearchArticlesDto {
  query: string;
  category?: string;
  useVector?: boolean;
}

export class RetrieveKnowledgeDto {
  query: string;
  userId?: string;
  category?: string;
  includeMemories?: boolean;
  includeExperiences?: boolean;
}

export class ImportArticlesDto {
  articles: Array<{
    title: string;
    content: string;
    category: string;
    tags?: string[];
  }>;
}

export class FeedbackDto {
  helpful: boolean;
}

export class ExtractedTextResponse {
  extractedText: string;
  suggestedTitle: string;
  wordCount: number;
  pageCount?: number;
}
