mirror of
https://github.com/langgenius/dify.git
synced 2026-03-19 21:57:33 +08:00
Signed-off-by: yyh <yuanyouhuilyz@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Coding On Star <447357187@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: statxc <tyleradams93226@gmail.com>
28 lines
699 B
TypeScript
28 lines
699 B
TypeScript
import type { InstalledLatestVersionResponse, PluginDetail } from '@/app/components/plugins/types'
|
|
import { type } from '@orpc/contract'
|
|
import { base } from '../base'
|
|
|
|
export const pluginCheckInstalledContract = base
|
|
.route({
|
|
path: '/workspaces/current/plugin/list/installations/ids',
|
|
method: 'POST',
|
|
})
|
|
.input(type<{
|
|
body: {
|
|
plugin_ids: string[]
|
|
}
|
|
}>())
|
|
.output(type<{ plugins: PluginDetail[] }>())
|
|
|
|
export const pluginLatestVersionsContract = base
|
|
.route({
|
|
path: '/workspaces/current/plugin/list/latest-versions',
|
|
method: 'POST',
|
|
})
|
|
.input(type<{
|
|
body: {
|
|
plugin_ids: string[]
|
|
}
|
|
}>())
|
|
.output(type<InstalledLatestVersionResponse>())
|