// 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
 *
 * Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
 *
 * @deprecated
 */
export const post = oc
  .route({
    deprecated: true,
    description:
      'Generate rule configuration using LLM\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
    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,
}
