mirror of
https://github.com/langgenius/dify.git
synced 2026-10-25 10:24:40 +08:00
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:
co-authored by
autofix-ci[bot]
parent
800bfc988e
commit
e0c6ca9930
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user