import { api } from '../../shared/api/client'
import { modelOperationsPlanSchema, type ModelOperationsPlan } from './schema'

export async function getModelOperationsPlan(): Promise<ModelOperationsPlan> {
  const response = await api.get('/internal/v1/model-operations/plan')
  return modelOperationsPlanSchema.parse(response.data)
}
