fix: GET query parameter OpenAPI contracts (#37378)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-06-12 09:01:22 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent 800bfc988e
commit e0c6ca9930
62 changed files with 678 additions and 702 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import type { AppDescribeResponse, AppListResponse } from '@dify/contracts/api/openapi/types.gen'
import type { AppDescribeResponse, AppListResponse, AppMode } from '@dify/contracts/api/openapi/types.gen'
import type { OpenApiClient } from '@/http/orpc'
import type { HttpClient } from '@/http/types'
import { createOpenApiClient } from '@/http/orpc'
@@ -7,7 +7,7 @@ export type ListQuery = {
readonly workspaceId: string
readonly page?: number
readonly limit?: number
readonly mode?: string
readonly mode?: AppMode | ''
readonly name?: string
readonly tag?: string
}
+2 -1
View File
@@ -8,6 +8,7 @@ import { runGetApp } from './run'
const APP_MODE_VALUES: readonly AppMode[] = [
'advanced-chat',
'agent',
'agent-chat',
'channel',
'chat',
@@ -56,7 +57,7 @@ export default class GetApp extends DifyCommand {
allWorkspaces: flags['all-workspaces'],
page: flags.page,
limitRaw: flags.limit,
mode: flags.mode,
mode: flags.mode as AppMode | undefined,
name: flags.name,
tag: flags.tag,
format,
+1 -1
View File
@@ -17,7 +17,7 @@ export type GetAppOptions = {
readonly allWorkspaces?: boolean
readonly page?: number
readonly limitRaw?: string
readonly mode?: string
readonly mode?: AppMode
readonly name?: string
readonly tag?: string
readonly format?: string