mirror of
https://github.com/langgenius/dify.git
synced 2026-05-23 02:18:23 +08:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
// 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
|
|
*
|
|
* 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 code 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: 'postRuleCodeGenerate',
|
|
path: '/rule-code-generate',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostRuleCodeGenerateBody }))
|
|
.output(zPostRuleCodeGenerateResponse)
|
|
|
|
export const ruleCodeGenerate = {
|
|
post,
|
|
}
|
|
|
|
export const contract = {
|
|
ruleCodeGenerate,
|
|
}
|