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

import { oc } from '@orpc/contract'
import * as z from 'zod'
import { zPostRuleGenerateBody, zPostRuleGenerateResponse } from './zod.gen'

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

export const ruleGenerate = {
  post,
}

export const contract = {
  ruleGenerate,
}
