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

export async function createRunbook(data: CreateRunbookDto): Promise<Runbook> {
  return apiClient<Runbook>('/api/v1/ops/runbooks', {
    method: 'POST',
    body: data,
  });
}
