// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). // Do not edit this file manually. // Auto-generated from Rust backend types using ts-rs export type ApiResponse = { success: boolean, data: T | null, message: string | null, }; export type Config = { theme: ThemeMode, executor: ExecutorConfig, disclaimer_acknowledged: boolean, onboarding_acknowledged: boolean, sound_alerts: boolean, push_notifications: boolean, editor: EditorConfig, }; export type ThemeMode = "light" | "dark" | "system"; export type EditorConfig = { editor_type: EditorType, custom_command: string | null, }; export type EditorType = "vscode" | "cursor" | "windsurf" | "intellij" | "zed" | "custom"; export type ExecutorConfig = { "type": "echo" } | { "type": "claude" } | { "type": "amp" }; // Constants for UI components export const EXECUTOR_TYPES = ["echo", "claude", "amp"] as const; export const EDITOR_TYPES = ["vscode", "cursor", "windsurf", "intellij", "zed", "custom"] as const; export const EXECUTOR_LABELS = { echo: "Echo", claude: "Claude", amp: "Amp" } as const; export const EDITOR_LABELS = { vscode: "VS Code", cursor: "Cursor", windsurf: "Windsurf", intellij: "IntelliJ IDEA", zed: "Zed", custom: "Custom Command" } as const; export type CreateProject = { name: string, git_repo_path: string, use_existing_repo: boolean, setup_script: string | null, }; export type Project = { id: string, name: string, git_repo_path: string, setup_script: string | null, created_at: Date, updated_at: Date, }; export type UpdateProject = { name: string | null, git_repo_path: string | null, setup_script: string | null, }; export type SearchResult = { path: string, is_file: boolean, match_type: SearchMatchType, }; export type SearchMatchType = "FileName" | "DirectoryName" | "FullPath"; export type CreateTask = { project_id: string, title: string, description: string | null, }; export type CreateTaskAndStart = { project_id: string, title: string, description: string | null, executor: ExecutorConfig | null, }; export type TaskStatus = "todo" | "inprogress" | "inreview" | "done" | "cancelled"; export type Task = { id: string, project_id: string, title: string, description: string | null, status: TaskStatus, created_at: string, updated_at: string, }; export type TaskWithAttemptStatus = { id: string, project_id: string, title: string, description: string | null, status: TaskStatus, created_at: string, updated_at: string, has_in_progress_attempt: boolean, has_merged_attempt: boolean, }; export type UpdateTask = { title: string | null, description: string | null, status: TaskStatus | null, }; export type TaskAttemptStatus = "setuprunning" | "setupcomplete" | "setupfailed" | "executorrunning" | "executorcomplete" | "executorfailed"; export type TaskAttempt = { id: string, task_id: string, worktree_path: string, merge_commit: string | null, executor: string | null, created_at: string, updated_at: string, }; export type CreateTaskAttempt = { executor: string | null, }; export type UpdateTaskAttempt = Record; export type TaskAttemptActivity = { id: string, execution_process_id: string, status: TaskAttemptStatus, note: string | null, created_at: string, }; export type CreateTaskAttemptActivity = { execution_process_id: string, status: TaskAttemptStatus | null, note: string | null, }; export type DirectoryEntry = { name: string, path: string, is_directory: boolean, is_git_repo: boolean, }; export type DiffChunkType = "Equal" | "Insert" | "Delete"; export type DiffChunk = { chunk_type: DiffChunkType, content: string, }; export type FileDiff = { path: string, chunks: Array, }; export type WorktreeDiff = { files: Array, }; export type BranchStatus = { is_behind: boolean, commits_behind: number, commits_ahead: number, up_to_date: boolean, merged: boolean, }; export type ExecutionProcess = { id: string, task_attempt_id: string, process_type: ExecutionProcessType, status: ExecutionProcessStatus, command: string, args: string | null, working_directory: string, stdout: string | null, stderr: string | null, exit_code: bigint | null, started_at: string, completed_at: string | null, created_at: string, updated_at: string, }; export type ExecutionProcessStatus = "running" | "completed" | "failed" | "killed"; export type ExecutionProcessType = "setupscript" | "codingagent" | "devserver"; export type CreateExecutionProcess = { task_attempt_id: string, process_type: ExecutionProcessType, command: string, args: string | null, working_directory: string, }; export type UpdateExecutionProcess = { status: ExecutionProcessStatus | null, exit_code: bigint | null, completed_at: string | null, };