/** * TypeScript types for process mining resources * These types represent the structure of process-related parquet files */ /** * Process summary with high-level metadata */ export interface ProcessSummary { doc_id: string; process_id: string; type: string; one_liner: string; steps_count: number; confidence: number; mermaid?: string | null; } /** * Individual process step with embedding */ export interface ProcessStep { doc_id: string; process_id: string; step_id: string; order: number; step_key: string; label: string; evidence?: string | null; embedding?: number[] | null; } /** * Edge connecting two process steps */ export interface ProcessEdge { doc_id: string; process_id: string; from_step_id: string; to_step_id: string; relation: string; evidence?: string | null; } /** * Process signature embedding for similarity search */ export interface ProcessSignature { doc_id: string; process_id: string; signature_emb: number[]; } /** * Optional: Temporal event */ export interface Event { date: string; doc_id: string; label: string; evidence?: string; } /** * Optional: Temporal interval */ export interface Interval { start: string; end: string; doc_id: string; type: string; evidence?: string; } /** * Optional: Time-series metric */ export interface MetricTime { ts: string; metric: string; val: number; doc_id: string; unit?: string; } /** * Optional: State deadline */ export interface StateDeadline { date: string; type: string; info: string; doc_id: string; } /** * Result from process.describe tool */ export interface ProcessDescribeResult { success: boolean; processes: ProcessSummary[]; count: number; } /** * Result from process.similar tool */ export interface ProcessSimilarResult { success: boolean; matches: Array<{ doc_id: string; process_id: string; distance: number; summary?: ProcessSummary; }>; count: number; } /** * QA report for composed process * P2.9.4: Quality assurance checks */ export interface QAReport { orphan_steps: string[]; cycles: string[][]; duplicate_edges: string[]; warnings: string[]; } /** * Result from process.compose tool */ export interface ProcessComposeResult { success: boolean; steps: ProcessStep[]; edges: ProcessEdge[]; merged_count: number; source_docs: string[]; qa: QAReport; } /** * Configuration for process parquet URLs */ export interface ProcessParquetConfig { summary_url?: string; steps_url?: string; edges_url?: string; signature_url?: string; events_url?: string; intervals_url?: string; metric_time_url?: string; state_deadline_url?: string; } //# sourceMappingURL=process-types.d.ts.map