From c2254d7d1d70318e2090d2a7b2b0f528f5d416af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 12 Nov 2025 15:36:05 +0000 Subject: [PATCH] Changes before error encountered Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com> --- src-ui/src/app/data/ai-status.ts | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src-ui/src/app/data/ai-status.ts diff --git a/src-ui/src/app/data/ai-status.ts b/src-ui/src/app/data/ai-status.ts new file mode 100644 index 000000000..586d646e4 --- /dev/null +++ b/src-ui/src/app/data/ai-status.ts @@ -0,0 +1,63 @@ +/** + * Represents the AI scanner status and statistics + */ +export interface AIStatus { + /** + * Whether the AI scanner is currently active/enabled + */ + active: boolean + + /** + * Whether the AI scanner is currently processing documents + */ + processing: boolean + + /** + * Number of documents scanned today + */ + documents_scanned_today: number + + /** + * Number of AI suggestions applied + */ + suggestions_applied: number + + /** + * Number of pending deletion requests awaiting user approval + */ + pending_deletion_requests: number + + /** + * Last scan timestamp (ISO format) + */ + last_scan?: string + + /** + * AI scanner version or configuration info + */ + version?: string +} + +/** + * Represents a pending deletion request initiated by AI + */ +export interface DeletionRequest { + id: number + document_id: number + document_title: string + reason: string + confidence: number + created_at: string + status: DeletionRequestStatus +} + +/** + * Status of a deletion request + */ +export enum DeletionRequestStatus { + Pending = 'pending', + Approved = 'approved', + Rejected = 'rejected', + Cancelled = 'cancelled', + Completed = 'completed', +}