import { apiClient } from '@/infrastructure/api/api-client';
import type { UpdateRunbookDto } from '@/application/dto/runbook.dto';
import type { Runbook } from '@/domain/entities/runbook';

export async function updateRunbook(id: string, data: UpdateRunbookDto): Promise<Runbook> {
  return apiClient<Runbook>(`/api/v1/ops/runbooks/${id}`, {
    method: 'PUT',
    body: data,
  });
}
