/** Types for the workspace feature. */

export interface Workspace {
	id: string;
	name: string;
	repo_id: string;
	repo_name: string;
	repo_ssh_key_id: string | null;
	project_id: string;
	project_name: string;
	user_id: string;
	branch: string;
	path: string;
	status: "ready" | "syncing" | "error";
	last_sync_at: string | null;
	created_at: string;
	updated_at: string;
	instance_count: number;
}

export interface CreateWorkspaceRequest {
	name: string;
	branch: string;
}

export interface SyncResult {
	branch_deleted: boolean;
	pulled: boolean;
	last_sync_at: string | null;
}
