mirror of
https://github.com/langgenius/dify.git
synced 2026-04-20 06:00:36 -04:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
28 lines
566 B
TypeScript
28 lines
566 B
TypeScript
import type { WorkflowOnlineUsersResponse } from '@/models/app'
|
|
import { type } from '@orpc/contract'
|
|
import { base } from '../base'
|
|
|
|
export const appDeleteContract = base
|
|
.route({
|
|
path: '/apps/{appId}',
|
|
method: 'DELETE',
|
|
})
|
|
.input(type<{
|
|
params: {
|
|
appId: string
|
|
}
|
|
}>())
|
|
.output(type<unknown>())
|
|
|
|
export const workflowOnlineUsersContract = base
|
|
.route({
|
|
path: '/apps/workflows/online-users',
|
|
method: 'GET',
|
|
})
|
|
.input(type<{
|
|
query: {
|
|
app_ids: string
|
|
}
|
|
}>())
|
|
.output(type<WorkflowOnlineUsersResponse>())
|