Files
dify/web/gen/orpc/application.gen.ts
Stephen Zhou 044e35fde4 spilt all
2026-01-25 15:55:10 +08:00

63 lines
2.3 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { z } from 'zod'
import { zGetChatAppInfoResponse, zGetChatAppMetaResponse, zGetChatAppParametersData, zGetChatAppParametersResponse, zGetChatWebAppSettingsResponse } from '../zod/application.gen'
import { base } from './common.gen'
/**
* Get Application Basic Information
*
* Used to get basic information about this application.
*/
export const getChatAppInfoContract = base.route({
path: '/info',
method: 'GET',
operationId: 'getChatAppInfo',
summary: 'Get Application Basic Information',
description: 'Used to get basic information about this application.',
tags: ['Application'],
}).output(z.object({ body: zGetChatAppInfoResponse, status: z.literal(200) }))
/**
* Get Application Parameters Information
*
* Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.
*/
export const getChatAppParametersContract = base.route({
path: '/parameters',
method: 'GET',
operationId: 'getChatAppParameters',
summary: 'Get Application Parameters Information',
description: 'Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.',
tags: ['Application'],
}).input(zGetChatAppParametersData).output(z.object({ body: zGetChatAppParametersResponse, status: z.literal(200) }))
/**
* Get Application Meta Information
*
* Used to get icons of tools in this application.
*/
export const getChatAppMetaContract = base.route({
path: '/meta',
method: 'GET',
operationId: 'getChatAppMeta',
summary: 'Get Application Meta Information',
description: 'Used to get icons of tools in this application.',
tags: ['Application'],
}).output(z.object({ body: zGetChatAppMetaResponse, status: z.literal(200) }))
/**
* Get Application WebApp Settings
*
* Used to get the WebApp settings of the application.
*/
export const getChatWebAppSettingsContract = base.route({
path: '/site',
method: 'GET',
operationId: 'getChatWebAppSettings',
summary: 'Get Application WebApp Settings',
description: 'Used to get the WebApp settings of the application.',
tags: ['Application'],
}).output(z.object({ body: zGetChatWebAppSettingsResponse, status: z.literal(200) }))