mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 18:06:36 +08:00
Switch /apps/workflows/online-users request and response schema from workflow_ids/workflow_id to app_ids/app_id without compatibility fallback. Align app list online avatar lookup and online-user map indexing to app.id, matching socket room identity. Update backend access checks, API fields, frontend contract/types, and unit tests accordingly.
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>())
|