mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 21:01:18 -04:00
30 lines
673 B
TypeScript
30 lines
673 B
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
|
|
*/
|
|
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,
|
|
}
|