mirror of
https://github.com/langgenius/dify.git
synced 2026-06-16 22:11:09 +08:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: fatelei <fatelei@gmail.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com> Co-authored-by: gigglewang <gigglewang@dify.ai> Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai> Co-authored-by: chariri <w@chariri.moe> Co-authored-by: Evan <2869018789@qq.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
91 lines
1.8 KiB
TypeScript
91 lines
1.8 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import {
|
|
zGetExploreAppsByAppIdPath,
|
|
zGetExploreAppsByAppIdResponse,
|
|
zGetExploreAppsLearnDifyQuery,
|
|
zGetExploreAppsLearnDifyResponse,
|
|
zGetExploreAppsQuery,
|
|
zGetExploreAppsResponse,
|
|
zGetExploreBannersQuery,
|
|
zGetExploreBannersResponse,
|
|
} from './zod.gen'
|
|
|
|
export const get = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getExploreAppsLearnDify',
|
|
path: '/explore/apps/learn-dify',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetExploreAppsLearnDifyQuery.optional() }))
|
|
.output(zGetExploreAppsLearnDifyResponse)
|
|
|
|
export const learnDify = {
|
|
get,
|
|
}
|
|
|
|
export const get2 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getExploreAppsByAppId',
|
|
path: '/explore/apps/{app_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetExploreAppsByAppIdPath }))
|
|
.output(zGetExploreAppsByAppIdResponse)
|
|
|
|
export const byAppId = {
|
|
get: get2,
|
|
}
|
|
|
|
export const get3 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getExploreApps',
|
|
path: '/explore/apps',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetExploreAppsQuery.optional() }))
|
|
.output(zGetExploreAppsResponse)
|
|
|
|
export const apps = {
|
|
get: get3,
|
|
learnDify,
|
|
byAppId,
|
|
}
|
|
|
|
/**
|
|
* Get banner list
|
|
*/
|
|
export const get4 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getExploreBanners',
|
|
path: '/explore/banners',
|
|
summary: 'Get banner list',
|
|
tags: ['default'],
|
|
})
|
|
.input(z.object({ query: zGetExploreBannersQuery.optional() }))
|
|
.output(zGetExploreBannersResponse)
|
|
|
|
export const banners = {
|
|
get: get4,
|
|
}
|
|
|
|
export const explore = {
|
|
apps,
|
|
banners,
|
|
}
|
|
|
|
export const contract = {
|
|
explore,
|
|
}
|