dify/packages/contracts/generated/api/console/rule-structured-output-generate/orpc.gen.ts

39 lines
1.1 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import {
zPostRuleStructuredOutputGenerateBody,
zPostRuleStructuredOutputGenerateResponse,
} from './zod.gen'
/**
* Generate structured output rules 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 structured output rules 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: 'postRuleStructuredOutputGenerate',
path: '/rule-structured-output-generate',
tags: ['console'],
})
.input(z.object({ body: zPostRuleStructuredOutputGenerateBody }))
.output(zPostRuleStructuredOutputGenerateResponse)
export const ruleStructuredOutputGenerate = {
post,
}
export const contract = {
ruleStructuredOutputGenerate,
}