// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'
import * as z from 'zod'

import { zPostRuleCodeGenerateBody, zPostRuleCodeGenerateResponse } from './zod.gen'

/**
 * Generate code rules using LLM
 */
export const post = oc
  .route({
    description: 'Generate code rules using LLM',
    inputStructure: 'detailed',
    method: 'POST',
    operationId: 'postRuleCodeGenerate',
    path: '/rule-code-generate',
    tags: ['console'],
  })
  .input(z.object({ body: zPostRuleCodeGenerateBody }))
  .output(zPostRuleCodeGenerateResponse)

export const ruleCodeGenerate = {
  post,
}

export const contract = {
  ruleCodeGenerate,
}
