mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:09:21 +08:00
chore: knip fix (#34481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -16,22 +16,6 @@ export enum Theme {
|
||||
system = 'system',
|
||||
}
|
||||
|
||||
export enum ProviderType {
|
||||
openai = 'openai',
|
||||
anthropic = 'anthropic',
|
||||
azure_openai = 'azure_openai',
|
||||
replicate = 'replicate',
|
||||
huggingface_hub = 'huggingface_hub',
|
||||
minimax = 'minimax',
|
||||
tongyi = 'tongyi',
|
||||
spark = 'spark',
|
||||
}
|
||||
|
||||
export enum AppType {
|
||||
chat = 'chat',
|
||||
completion = 'completion',
|
||||
}
|
||||
|
||||
export enum ModelModeType {
|
||||
chat = 'chat',
|
||||
completion = 'completion',
|
||||
@@ -51,12 +35,6 @@ export enum RETRIEVE_METHOD {
|
||||
keywordSearch = 'keyword_search',
|
||||
}
|
||||
|
||||
export type VariableInput = {
|
||||
key: string
|
||||
name: string
|
||||
value: string
|
||||
}
|
||||
|
||||
/**
|
||||
* App modes
|
||||
*/
|
||||
@@ -388,20 +366,6 @@ export type AppSSO = {
|
||||
enable_sso: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* App Template
|
||||
*/
|
||||
export type AppTemplate = {
|
||||
/** Name */
|
||||
name: string
|
||||
/** Description */
|
||||
description: string
|
||||
/** Mode */
|
||||
mode: AppModeEnum
|
||||
/** Model */
|
||||
model_config: ModelConfig
|
||||
}
|
||||
|
||||
export enum Resolution {
|
||||
low = 'low',
|
||||
high = 'high',
|
||||
|
||||
@@ -273,7 +273,7 @@ export type DocPathWithoutLang =
|
||||
| `${DocPathWithoutLangBase}#${string}`
|
||||
|
||||
// Full documentation path with language prefix
|
||||
export type DifyDocPath = `${DocLanguage}/${DocPathWithoutLang}`
|
||||
type DifyDocPath = `${DocLanguage}/${DocPathWithoutLang}`
|
||||
|
||||
// API Reference path translations (English -> other languages)
|
||||
export const apiReferencePathTranslations: Record<string, { zh?: string; ja?: string }> = {
|
||||
|
||||
@@ -6,12 +6,6 @@ export type DataSourceNodeProcessingResponse = {
|
||||
completed: number
|
||||
}
|
||||
|
||||
export type DataSourceNodeError = {
|
||||
event: 'datasource_error'
|
||||
message: string
|
||||
code?: string
|
||||
}
|
||||
|
||||
export type OnlineDriveFile = {
|
||||
id: string
|
||||
name: string
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import type { RefObject } from 'react'
|
||||
import type { Viewport } from 'reactflow'
|
||||
import type { BeforeRunFormProps } from '@/app/components/workflow/nodes/_base/components/before-run-form'
|
||||
import type { ErrorHandleTypeEnum } from '@/app/components/workflow/nodes/_base/components/error-handle/types'
|
||||
import type { FormInputItem, UserAction } from '@/app/components/workflow/nodes/human-input/types'
|
||||
import type { SpecialResultPanelProps } from '@/app/components/workflow/run/special-result-panel'
|
||||
import type {
|
||||
BlockEnum,
|
||||
CommonNodeType,
|
||||
@@ -402,10 +400,6 @@ export type WorkflowRunHistoryResponse = {
|
||||
data: WorkflowRunHistory[]
|
||||
}
|
||||
|
||||
export type ChatRunHistoryResponse = {
|
||||
data: WorkflowRunHistory[]
|
||||
}
|
||||
|
||||
export type NodesDefaultConfigsResponse = {
|
||||
type: string
|
||||
config: any
|
||||
@@ -439,10 +433,6 @@ export type UpdateWorkflowParams = {
|
||||
releaseNotes: string
|
||||
}
|
||||
|
||||
export type PanelExposedType = {
|
||||
singleRunParams: Pick<BeforeRunFormProps, 'forms'> & Partial<SpecialResultPanelProps>
|
||||
}
|
||||
|
||||
export type PanelProps = {
|
||||
getInputVars: (textList: string[]) => InputVar[]
|
||||
toVarInputs: (variables: Variable[]) => InputVar[]
|
||||
|
||||
Reference in New Issue
Block a user