import { apiClient } from '@/infrastructure/api/api-client';
import type { RunbookExecution } from '@/domain/entities/runbook';

export async function testRunbook(id: string): Promise<RunbookExecution> {
  return apiClient<RunbookExecution>(`/api/v1/ops/runbooks/${id}/execute`, {
    method: 'POST',
    body: { dryRun: true },
  });
}
