mirror of
https://mirror.skon.top/github.com/langgenius/dify.git
synced 2026-04-30 17:50:29 +08:00
chore: update dependency catalog (#35594)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2059,7 +2059,7 @@
|
||||
},
|
||||
"web/app/components/base/text-generation/types.ts": {
|
||||
"no-barrel-files/no-barrel-files": {
|
||||
"count": 3
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/textarea/index.stories.tsx": {
|
||||
@@ -2070,11 +2070,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/textarea/index.tsx": {
|
||||
"react-refresh/only-export-components": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/video-gallery/VideoPlayer.tsx": {
|
||||
"react/set-state-in-effect": {
|
||||
"count": 1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "dify",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"packageManager": "pnpm@10.33.2",
|
||||
"engines": {
|
||||
"node": "^22.22.1"
|
||||
},
|
||||
|
||||
@@ -125,21 +125,6 @@ describe('@langgenius/dify-ui/toast', () => {
|
||||
expect(onClose).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('should respect the host timeout configuration', async () => {
|
||||
const screen = await render(<ToastHost timeout={3000} />)
|
||||
|
||||
toast('Configured timeout')
|
||||
await expect.element(screen.getByText('Configured timeout')).toBeInTheDocument()
|
||||
|
||||
await vi.advanceTimersByTimeAsync(2999)
|
||||
expect(document.body).toHaveTextContent('Configured timeout')
|
||||
|
||||
await vi.advanceTimersByTimeAsync(1)
|
||||
await vi.waitFor(() => {
|
||||
expect(document.body).not.toHaveTextContent('Configured timeout')
|
||||
})
|
||||
})
|
||||
|
||||
it('should respect custom timeout values including zero', async () => {
|
||||
const screen = await render(<ToastHost />)
|
||||
|
||||
|
||||
850
pnpm-lock.yaml
generated
850
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -47,18 +47,18 @@ overrides:
|
||||
yaml@>=2.0.0 <2.8.3: 2.8.3
|
||||
yauzl@<3.2.1: 3.2.1
|
||||
catalog:
|
||||
'@amplitude/analytics-browser': 2.41.0
|
||||
'@amplitude/plugin-session-replay-browser': 1.27.10
|
||||
'@amplitude/analytics-browser': 2.41.1
|
||||
'@amplitude/plugin-session-replay-browser': 1.28.0
|
||||
'@antfu/eslint-config': 8.2.0
|
||||
'@base-ui/react': 1.4.1
|
||||
'@chromatic-com/storybook': 5.1.2
|
||||
'@cucumber/cucumber': 12.8.1
|
||||
'@cucumber/cucumber': 12.8.2
|
||||
'@egoist/tailwindcss-icons': 1.9.2
|
||||
'@emoji-mart/data': 1.2.1
|
||||
'@eslint-react/eslint-plugin': 3.0.0
|
||||
'@eslint/js': 10.0.1
|
||||
'@floating-ui/react': 0.27.19
|
||||
'@formatjs/intl-localematcher': 0.8.3
|
||||
'@formatjs/intl-localematcher': 0.8.4
|
||||
'@headlessui/react': 2.2.10
|
||||
'@heroicons/react': 2.2.0
|
||||
'@hono/node-server': 1.19.14
|
||||
@@ -77,14 +77,14 @@ catalog:
|
||||
'@monaco-editor/react': 4.7.0
|
||||
'@next/eslint-plugin-next': 16.2.4
|
||||
'@next/mdx': 16.2.4
|
||||
'@orpc/client': 1.13.14
|
||||
'@orpc/contract': 1.13.14
|
||||
'@orpc/openapi-client': 1.13.14
|
||||
'@orpc/tanstack-query': 1.13.14
|
||||
'@orpc/client': 1.14.0
|
||||
'@orpc/contract': 1.14.0
|
||||
'@orpc/openapi-client': 1.14.0
|
||||
'@orpc/tanstack-query': 1.14.0
|
||||
'@playwright/test': 1.59.1
|
||||
'@remixicon/react': 4.9.0
|
||||
'@rgrove/parse-xml': 4.2.0
|
||||
'@sentry/react': 10.49.0
|
||||
'@sentry/react': 10.50.0
|
||||
'@storybook/addon-docs': 10.3.5
|
||||
'@storybook/addon-links': 10.3.5
|
||||
'@storybook/addon-onboarding': 10.3.5
|
||||
@@ -98,12 +98,12 @@ catalog:
|
||||
'@tailwindcss/postcss': 4.2.4
|
||||
'@tailwindcss/typography': 0.5.19
|
||||
'@tailwindcss/vite': 4.2.4
|
||||
'@tanstack/eslint-plugin-query': 5.99.2
|
||||
'@tanstack/eslint-plugin-query': 5.100.5
|
||||
'@tanstack/react-devtools': 0.10.2
|
||||
'@tanstack/react-form': 1.29.1
|
||||
'@tanstack/react-form-devtools': 0.2.22
|
||||
'@tanstack/react-query': 5.99.2
|
||||
'@tanstack/react-query-devtools': 5.99.2
|
||||
'@tanstack/react-query': 5.100.5
|
||||
'@tanstack/react-query-devtools': 5.100.5
|
||||
'@tanstack/react-virtual': 3.13.24
|
||||
'@testing-library/dom': 10.4.1
|
||||
'@testing-library/jest-dom': 6.9.1
|
||||
@@ -122,11 +122,11 @@ catalog:
|
||||
'@types/sortablejs': 1.15.9
|
||||
'@typescript-eslint/eslint-plugin': 8.59.0
|
||||
'@typescript-eslint/parser': 8.59.0
|
||||
'@typescript/native-preview': 7.0.0-dev.20260422.1
|
||||
'@typescript/native-preview': 7.0.0-dev.20260426.1
|
||||
'@vitejs/plugin-react': 6.0.1
|
||||
'@vitejs/plugin-rsc': 0.5.24
|
||||
'@vitejs/plugin-rsc': 0.5.25
|
||||
'@vitest/coverage-v8': 4.1.5
|
||||
abcjs: 6.6.2
|
||||
abcjs: 6.6.3
|
||||
agentation: 3.0.2
|
||||
ahooks: 3.9.7
|
||||
class-variance-authority: 0.7.1
|
||||
@@ -158,7 +158,7 @@ catalog:
|
||||
fast-deep-equal: 3.1.3
|
||||
happy-dom: 20.9.0
|
||||
hast-util-to-jsx-runtime: 2.3.6
|
||||
hono: 4.12.14
|
||||
hono: 4.12.15
|
||||
html-entities: 2.6.0
|
||||
html-to-image: 1.11.13
|
||||
i18next: 26.0.6
|
||||
@@ -171,11 +171,11 @@ catalog:
|
||||
js-yaml: 4.1.1
|
||||
jsonschema: 1.5.0
|
||||
katex: 0.16.45
|
||||
knip: 6.6.1
|
||||
knip: 6.7.0
|
||||
ky: 2.0.2
|
||||
lamejs: 1.2.1
|
||||
lexical: 0.43.0
|
||||
loro-crdt: 1.11.1
|
||||
loro-crdt: 1.12.0
|
||||
mermaid: 11.14.0
|
||||
mime: 4.1.0
|
||||
mitt: 3.0.1
|
||||
@@ -185,7 +185,7 @@ catalog:
|
||||
nuqs: 2.8.9
|
||||
pinyin-pro: 3.28.1
|
||||
playwright: 1.59.1
|
||||
postcss: 8.5.10
|
||||
postcss: 8.5.12
|
||||
qrcode.react: 4.2.0
|
||||
qs: 6.15.1
|
||||
react: 19.2.5
|
||||
|
||||
@@ -5,7 +5,7 @@ export type ModelAndParameter = {
|
||||
parameters: Record<string, any>
|
||||
}
|
||||
|
||||
export type MultipleAndConfigs = {
|
||||
type MultipleAndConfigs = {
|
||||
multiple: boolean
|
||||
configs: ModelAndParameter[]
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
HumanInputFormData,
|
||||
} from '@/types/workflow'
|
||||
|
||||
export type MessageMore = {
|
||||
type MessageMore = {
|
||||
time: string
|
||||
tokens: number
|
||||
latency: number | string
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Features } from './types'
|
||||
import { createStore } from 'zustand'
|
||||
import { Resolution, TransferMethod } from '@/types/app'
|
||||
|
||||
export type FeaturesModal = {
|
||||
type FeaturesModal = {
|
||||
showFeaturesModal: boolean
|
||||
setShowFeaturesModal: (showFeaturesModal: boolean) => void
|
||||
}
|
||||
@@ -11,7 +11,7 @@ export type FeaturesState = {
|
||||
features: Features
|
||||
}
|
||||
|
||||
export type FeaturesAction = {
|
||||
type FeaturesAction = {
|
||||
setFeatures: (features: Features) => void
|
||||
}
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ import type {
|
||||
TtsAutoPlay,
|
||||
} from '@/types/app'
|
||||
|
||||
export type EnabledOrDisabled = {
|
||||
type EnabledOrDisabled = {
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export type MoreLikeThis = EnabledOrDisabled
|
||||
type MoreLikeThis = EnabledOrDisabled
|
||||
|
||||
export type OpeningStatement = EnabledOrDisabled & {
|
||||
opening_statement?: string
|
||||
@@ -75,7 +75,7 @@ export type FileUpload = {
|
||||
}
|
||||
} & EnabledOrDisabled
|
||||
|
||||
export type AnnotationReplyConfig = {
|
||||
type AnnotationReplyConfig = {
|
||||
enabled: boolean
|
||||
id?: string
|
||||
score_threshold?: number
|
||||
|
||||
@@ -33,7 +33,7 @@ export type SelectConfiguration = {
|
||||
}
|
||||
}
|
||||
|
||||
export type FileConfiguration = {
|
||||
type FileConfiguration = {
|
||||
allowedFileTypes: string[]
|
||||
allowedFileExtensions: string[]
|
||||
allowedFileUploadMethods: TransferMethod[]
|
||||
|
||||
@@ -13,11 +13,11 @@ export enum InputFieldType {
|
||||
fileTypes = 'fileTypes',
|
||||
}
|
||||
|
||||
export type InputTypeSelectConfiguration = {
|
||||
type InputTypeSelectConfiguration = {
|
||||
supportFile: boolean
|
||||
}
|
||||
|
||||
export type NumberSliderConfiguration = {
|
||||
type NumberSliderConfiguration = {
|
||||
description: string
|
||||
max?: number
|
||||
min?: number
|
||||
|
||||
@@ -14,11 +14,11 @@ export enum InputFieldType {
|
||||
variableOrConstant = 'variableOrConstant',
|
||||
}
|
||||
|
||||
export type InputTypeSelectConfiguration = {
|
||||
type InputTypeSelectConfiguration = {
|
||||
supportFile: boolean
|
||||
}
|
||||
|
||||
export type NumberSliderConfiguration = {
|
||||
type NumberSliderConfiguration = {
|
||||
description: string
|
||||
max?: number
|
||||
min?: number
|
||||
|
||||
@@ -14,7 +14,7 @@ export type TypeWithI18N<T = string> = {
|
||||
[key: string]: T
|
||||
}
|
||||
|
||||
export type FormShowOnObject = {
|
||||
type FormShowOnObject = {
|
||||
variable: string
|
||||
value: string
|
||||
}
|
||||
@@ -43,7 +43,7 @@ export type FormOption = {
|
||||
icon?: string
|
||||
}
|
||||
|
||||
export type AnyValidators = FieldValidators<any, any, any, any, any, any, any, any, any, any, any, any>
|
||||
type AnyValidators = FieldValidators<any, any, any, any, any, any, any, any, any, any, any, any>
|
||||
|
||||
export enum FormItemValidateStatusEnum {
|
||||
Success = 'success',
|
||||
|
||||
@@ -3,11 +3,11 @@ import * as z from 'zod'
|
||||
const commonSchema = {
|
||||
className: z.string().min(1).optional(),
|
||||
}
|
||||
export const withIconCardListPropsSchema = z.object(commonSchema).strict()
|
||||
const withIconCardListPropsSchema = z.object(commonSchema).strict()
|
||||
|
||||
const HTTP_URL_REGEX = /^https?:\/\//i
|
||||
|
||||
export const withIconCardItemPropsSchema = z.object({
|
||||
const withIconCardItemPropsSchema = z.object({
|
||||
...commonSchema,
|
||||
icon: z.string().trim().url().refine(
|
||||
value => HTTP_URL_REGEX.test(value),
|
||||
|
||||
@@ -4,7 +4,6 @@ import type {
|
||||
VisionFile,
|
||||
} from '@/types/app'
|
||||
|
||||
export type { VisionFile } from '@/types/app'
|
||||
export { TransferMethod } from '@/types/app'
|
||||
|
||||
export type TextGenerationConfig = Omit<ModelConfig, 'model'> & {
|
||||
|
||||
@@ -58,4 +58,3 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||
Textarea.displayName = 'Textarea'
|
||||
|
||||
export default Textarea
|
||||
export { textareaVariants }
|
||||
|
||||
@@ -2,13 +2,13 @@ import type { ChildChunkDetail, SegmentDetailModel } from '@/models/datasets'
|
||||
import { noop } from 'es-toolkit/function'
|
||||
import { createContext, useContextSelector } from 'use-context-selector'
|
||||
|
||||
export type CurrSegmentType = {
|
||||
type CurrSegmentType = {
|
||||
segInfo?: SegmentDetailModel
|
||||
showModal: boolean
|
||||
isEditMode?: boolean
|
||||
}
|
||||
|
||||
export type CurrChildChunkType = {
|
||||
type CurrChildChunkType = {
|
||||
childChunkInfo?: ChildChunkDetail
|
||||
showModal: boolean
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ const parseAsDocSort = createParser<SortType>({
|
||||
|
||||
const parseAsKeyword = parseAsString.withDefault('')
|
||||
|
||||
export const documentListParsers = {
|
||||
const documentListParsers = {
|
||||
page: parseAsPage,
|
||||
limit: parseAsLimit,
|
||||
keyword: parseAsKeyword,
|
||||
|
||||
@@ -5,9 +5,9 @@ import type { CommonNodeType } from '../../workflow/types'
|
||||
import type { DataSet } from '@/models/datasets'
|
||||
import type { App } from '@/types/app'
|
||||
|
||||
export type SearchResultType = 'app' | 'knowledge' | 'plugin' | 'workflow-node' | 'command' | 'recent'
|
||||
type SearchResultType = 'app' | 'knowledge' | 'plugin' | 'workflow-node' | 'command' | 'recent'
|
||||
|
||||
export type BaseSearchResult<T = any> = {
|
||||
type BaseSearchResult<T = any> = {
|
||||
id: string
|
||||
title: string
|
||||
description?: string
|
||||
@@ -29,7 +29,7 @@ export type KnowledgeSearchResult = {
|
||||
type: 'knowledge'
|
||||
} & BaseSearchResult<DataSet>
|
||||
|
||||
export type WorkflowNodeSearchResult = {
|
||||
type WorkflowNodeSearchResult = {
|
||||
type: 'workflow-node'
|
||||
metadata?: {
|
||||
nodeId: string
|
||||
|
||||
@@ -92,7 +92,7 @@ export enum CustomConfigurationStatusEnum {
|
||||
noConfigure = 'no-configure',
|
||||
}
|
||||
|
||||
export type FormShowOnObject = {
|
||||
type FormShowOnObject = {
|
||||
variable: string
|
||||
value: string
|
||||
}
|
||||
@@ -155,7 +155,7 @@ export enum QuotaUnitEnum {
|
||||
times = 'times',
|
||||
}
|
||||
|
||||
export type QuotaConfiguration = {
|
||||
type QuotaConfiguration = {
|
||||
quota_type: CurrentSystemQuotaTypeEnum
|
||||
quota_unit: QuotaUnitEnum
|
||||
quota_limit: number
|
||||
|
||||
@@ -7,13 +7,13 @@ import { FormTypeEnum } from '@/app/components/header/account-setting/model-prov
|
||||
import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'
|
||||
import { VarType } from '@/app/components/workflow/types'
|
||||
|
||||
export type ReasoningConfigInputValue = {
|
||||
type ReasoningConfigInputValue = {
|
||||
type?: VarKindType
|
||||
value?: unknown
|
||||
[key: string]: unknown
|
||||
} | null
|
||||
|
||||
export type ReasoningConfigInput = {
|
||||
type ReasoningConfigInput = {
|
||||
value: ReasoningConfigInputValue
|
||||
auto?: 0 | 1
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export enum PluginSource {
|
||||
debugging = 'remote',
|
||||
}
|
||||
|
||||
export type PluginToolDeclaration = {
|
||||
type PluginToolDeclaration = {
|
||||
identity: {
|
||||
author: string
|
||||
name: string
|
||||
@@ -34,12 +34,12 @@ export type PluginToolDeclaration = {
|
||||
credentials_schema: ToolCredential[] // TODO
|
||||
}
|
||||
|
||||
export type PluginEndpointDeclaration = {
|
||||
type PluginEndpointDeclaration = {
|
||||
settings: ToolCredential[]
|
||||
endpoints: EndpointItem[]
|
||||
}
|
||||
|
||||
export type EndpointItem = {
|
||||
type EndpointItem = {
|
||||
path: string
|
||||
method: string
|
||||
hidden?: boolean
|
||||
@@ -60,7 +60,7 @@ export type EndpointListItem = {
|
||||
hook_id: string
|
||||
}
|
||||
|
||||
export type PluginDeclarationMeta = {
|
||||
type PluginDeclarationMeta = {
|
||||
version: string
|
||||
minimum_dify_version?: string
|
||||
}
|
||||
@@ -96,14 +96,14 @@ export type PluginTriggerSubscriptionConstructor = {
|
||||
parameters: ParametersSchema[]
|
||||
}
|
||||
|
||||
export type PluginTriggerDefinition = {
|
||||
type PluginTriggerDefinition = {
|
||||
events: TriggerEvent[]
|
||||
identity: Identity
|
||||
subscription_constructor: PluginTriggerSubscriptionConstructor
|
||||
subscription_schema: ParametersSchema[]
|
||||
}
|
||||
|
||||
export type CredentialsSchema = {
|
||||
type CredentialsSchema = {
|
||||
name: string
|
||||
label: Record<Locale, string>
|
||||
description: Record<Locale, string>
|
||||
@@ -117,7 +117,7 @@ export type CredentialsSchema = {
|
||||
placeholder: Record<Locale, string>
|
||||
}
|
||||
|
||||
export type OauthSchema = {
|
||||
type OauthSchema = {
|
||||
client_schema: CredentialsSchema[]
|
||||
credentials_schema: CredentialsSchema[]
|
||||
}
|
||||
@@ -352,7 +352,7 @@ export enum InstallStep {
|
||||
installFailed = 'failed',
|
||||
}
|
||||
|
||||
export type GitHubAsset = {
|
||||
type GitHubAsset = {
|
||||
id: number
|
||||
name: string
|
||||
browser_download_url: string
|
||||
@@ -496,7 +496,7 @@ export type PackageDependency = {
|
||||
|
||||
export type Dependency = GitHubItemAndMarketPlaceDependency | PackageDependency
|
||||
|
||||
export type Version = {
|
||||
type Version = {
|
||||
plugin_org: string
|
||||
plugin_name: string
|
||||
version: string
|
||||
@@ -554,7 +554,7 @@ export type StrategyDetail = {
|
||||
features: AgentFeature[]
|
||||
}
|
||||
|
||||
export type Identity = {
|
||||
type Identity = {
|
||||
author: string
|
||||
name: string
|
||||
label: Record<Locale, string>
|
||||
@@ -564,7 +564,7 @@ export type Identity = {
|
||||
tags: string[]
|
||||
}
|
||||
|
||||
export type StrategyDeclaration = {
|
||||
type StrategyDeclaration = {
|
||||
identity: Identity
|
||||
plugin_id: string
|
||||
strategies: StrategyDetail[]
|
||||
|
||||
@@ -100,7 +100,7 @@ export type ToolParameter = {
|
||||
max?: number
|
||||
}
|
||||
|
||||
export type TriggerParameter = {
|
||||
type TriggerParameter = {
|
||||
name: string
|
||||
label: LocalizedText
|
||||
human_description: LocalizedText
|
||||
@@ -165,7 +165,7 @@ export type CustomCollectionBackend = {
|
||||
labels: string[]
|
||||
}
|
||||
|
||||
export type ParamItem = {
|
||||
type ParamItem = {
|
||||
name: string
|
||||
label: LocalizedText
|
||||
human_description: LocalizedText
|
||||
|
||||
@@ -10,7 +10,7 @@ import { handleStream, post } from '@/service/base'
|
||||
import { ContentType } from '@/service/fetch'
|
||||
import { AppModeEnum } from '@/types/app'
|
||||
|
||||
export type HandleRunMode = TriggerType
|
||||
type HandleRunMode = TriggerType
|
||||
export type HandleRunOptions = {
|
||||
mode?: HandleRunMode
|
||||
scheduleNodeId?: string
|
||||
|
||||
@@ -124,7 +124,7 @@ export type DataSourceItem = {
|
||||
is_authorized: boolean
|
||||
}
|
||||
|
||||
export type TriggerCredentialField = {
|
||||
type TriggerCredentialField = {
|
||||
type: 'secret-input' | 'text-input' | 'select' | 'boolean'
|
||||
| 'app-selector' | 'model-selector' | 'tools-selector'
|
||||
name: string
|
||||
@@ -226,14 +226,14 @@ export type TriggerLogEntity = {
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export type LogRequest = {
|
||||
type LogRequest = {
|
||||
method: string
|
||||
url: string
|
||||
headers: LogRequestHeaders
|
||||
data: string
|
||||
}
|
||||
|
||||
export type LogRequestHeaders = {
|
||||
type LogRequestHeaders = {
|
||||
'Host': string
|
||||
'User-Agent': string
|
||||
'Content-Length': string
|
||||
@@ -251,13 +251,13 @@ export type LogRequestHeaders = {
|
||||
[key: string]: string
|
||||
}
|
||||
|
||||
export type LogResponse = {
|
||||
type LogResponse = {
|
||||
status_code: number
|
||||
headers: LogResponseHeaders
|
||||
data: string
|
||||
}
|
||||
|
||||
export type LogResponseHeaders = {
|
||||
type LogResponseHeaders = {
|
||||
'Content-Type': string
|
||||
'Content-Length': string
|
||||
[key: string]: string
|
||||
|
||||
@@ -22,7 +22,7 @@ export type NodePanelPresenceUser = {
|
||||
avatar?: string | null
|
||||
}
|
||||
|
||||
export type NodePanelPresenceInfo = NodePanelPresenceUser & {
|
||||
type NodePanelPresenceInfo = NodePanelPresenceUser & {
|
||||
clientId: string
|
||||
timestamp: number
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export type CollaborationState = {
|
||||
error?: string
|
||||
}
|
||||
|
||||
export type CollaborationEventType
|
||||
type CollaborationEventType
|
||||
= | 'mouse_move'
|
||||
| 'vars_and_features_update'
|
||||
| 'sync_request'
|
||||
|
||||
@@ -4,7 +4,7 @@ export type WebSocketConfig = {
|
||||
withCredentials?: boolean
|
||||
}
|
||||
|
||||
export type ConnectionInfo = {
|
||||
type ConnectionInfo = {
|
||||
connected: boolean
|
||||
connecting: boolean
|
||||
socketId?: string
|
||||
|
||||
@@ -27,7 +27,7 @@ export type SyncDraftCallback = {
|
||||
onError?: () => void
|
||||
onSettled?: () => void
|
||||
}
|
||||
export type CommonHooksFnMap = {
|
||||
type CommonHooksFnMap = {
|
||||
doSyncWorkflowDraft: (
|
||||
notRefreshWhenSyncError?: boolean,
|
||||
callback?: SyncDraftCallback,
|
||||
|
||||
@@ -32,7 +32,7 @@ export type WeightedScore = {
|
||||
}
|
||||
}
|
||||
|
||||
export type RetrievalSetting = {
|
||||
type RetrievalSetting = {
|
||||
search_method?: RETRIEVE_METHOD
|
||||
reranking_enable?: boolean
|
||||
reranking_model?: RerankingModel
|
||||
|
||||
@@ -83,8 +83,8 @@ export type LoopNodeType = CommonNodeType & {
|
||||
loop_variables?: LoopVariable[]
|
||||
}
|
||||
|
||||
export type HandleUpdateLoopVariable = (id: string, updateData: Partial<LoopVariable>) => void
|
||||
export type HandleRemoveLoopVariable = (id: string) => void
|
||||
type HandleUpdateLoopVariable = (id: string, updateData: Partial<LoopVariable>) => void
|
||||
type HandleRemoveLoopVariable = (id: string) => void
|
||||
|
||||
export type LoopVariablesComponentShape = {
|
||||
nodeId: string
|
||||
|
||||
@@ -4,7 +4,7 @@ export type ScheduleMode = 'visual' | 'cron'
|
||||
|
||||
export type ScheduleFrequency = 'hourly' | 'daily' | 'weekly' | 'monthly'
|
||||
|
||||
export type VisualConfig = {
|
||||
type VisualConfig = {
|
||||
time?: string
|
||||
weekdays?: string[]
|
||||
on_minute?: number
|
||||
|
||||
@@ -16,9 +16,9 @@ const isPresent = (v: unknown): boolean => {
|
||||
return !(v === '' || v === null || v === undefined || v === false)
|
||||
}
|
||||
// Column configuration types for table components
|
||||
export type ColumnType = 'input' | 'select' | 'switch' | 'custom'
|
||||
type ColumnType = 'input' | 'select' | 'switch' | 'custom'
|
||||
|
||||
export type SelectOption = {
|
||||
type SelectOption = {
|
||||
name: string
|
||||
value: string
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ export type ChildNodeTypeCount = {
|
||||
[key: string]: number
|
||||
}
|
||||
|
||||
export const TRIGGER_NODE_TYPES = [
|
||||
const TRIGGER_NODE_TYPES = [
|
||||
BlockEnum.TriggerSchedule,
|
||||
BlockEnum.TriggerWebhook,
|
||||
BlockEnum.TriggerPlugin,
|
||||
|
||||
@@ -98,14 +98,14 @@ function createStore({
|
||||
return store
|
||||
}
|
||||
|
||||
export type WorkflowHistoryStore = {
|
||||
type WorkflowHistoryStore = {
|
||||
nodes: Node[]
|
||||
edges: Edge[]
|
||||
workflowHistoryEvent: WorkflowHistoryEventT | undefined
|
||||
workflowHistoryEventMeta?: WorkflowHistoryEventMeta
|
||||
}
|
||||
|
||||
export type WorkflowHistoryActions = {
|
||||
type WorkflowHistoryActions = {
|
||||
setNodes?: (nodes: Node[]) => void
|
||||
setEdges?: (edges: Edge[]) => void
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { createContext, useContext } from 'use-context-selector'
|
||||
* Typed event object emitted via the shared EventEmitter.
|
||||
* Covers workflow updates, prompt-editor commands, DSL export checks, etc.
|
||||
*/
|
||||
export type EventEmitterMessage = {
|
||||
type EventEmitterMessage = {
|
||||
type: string
|
||||
payload?: unknown
|
||||
instanceId?: string
|
||||
|
||||
@@ -27,7 +27,7 @@ export type WorkflowCommentList = {
|
||||
participants: UserProfile[]
|
||||
}
|
||||
|
||||
export type WorkflowCommentDetailMention = {
|
||||
type WorkflowCommentDetailMention = {
|
||||
mentioned_user_id: string
|
||||
mentioned_user_account?: UserProfile | null
|
||||
reply_id: string | null
|
||||
|
||||
@@ -75,7 +75,7 @@ export type AppTokenCostsResponse = {
|
||||
|
||||
export type UpdateAppModelConfigResponse = { result: string }
|
||||
|
||||
export type ApiKeyItemResponse = {
|
||||
type ApiKeyItemResponse = {
|
||||
id: string
|
||||
token: string
|
||||
last_used_at: string
|
||||
|
||||
@@ -56,7 +56,7 @@ export type Member = Pick<UserProfileResponse, 'id' | 'name' | 'email' | 'last_l
|
||||
role: 'owner' | 'admin' | 'editor' | 'normal' | 'dataset_operator'
|
||||
}
|
||||
|
||||
export enum ProviderName {
|
||||
enum ProviderName {
|
||||
OPENAI = 'openai',
|
||||
AZURE_OPENAI = 'azure_openai',
|
||||
ANTHROPIC = 'anthropic',
|
||||
|
||||
@@ -227,7 +227,7 @@ export type QA = {
|
||||
answer: string
|
||||
}
|
||||
|
||||
export type IndexingEstimateResponse = {
|
||||
type IndexingEstimateResponse = {
|
||||
tokens: number
|
||||
total_price: number
|
||||
currency: string
|
||||
@@ -279,7 +279,7 @@ export type Rules = {
|
||||
subchunk_segmentation: Segmentation
|
||||
}
|
||||
|
||||
export type Limits = {
|
||||
type Limits = {
|
||||
indexing_max_segmentation_tokens_length: number
|
||||
}
|
||||
|
||||
@@ -288,24 +288,21 @@ export type PreProcessingRule = {
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
export type Segmentation = {
|
||||
type Segmentation = {
|
||||
separator: string
|
||||
max_tokens: number
|
||||
chunk_overlap?: number
|
||||
}
|
||||
|
||||
export const DocumentIndexingStatusList = [
|
||||
'waiting',
|
||||
'parsing',
|
||||
'cleaning',
|
||||
'splitting',
|
||||
'indexing',
|
||||
'paused',
|
||||
'error',
|
||||
'completed',
|
||||
] as const
|
||||
|
||||
export type DocumentIndexingStatus = typeof DocumentIndexingStatusList[number]
|
||||
export type DocumentIndexingStatus
|
||||
= | 'waiting'
|
||||
| 'parsing'
|
||||
| 'cleaning'
|
||||
| 'splitting'
|
||||
| 'indexing'
|
||||
| 'paused'
|
||||
| 'error'
|
||||
| 'completed'
|
||||
|
||||
export const DisplayStatusList = [
|
||||
'queuing',
|
||||
@@ -386,7 +383,7 @@ export type UploadFileIdInfo = {
|
||||
|
||||
export type DataSourceInfo = LegacyDataSourceInfo | LocalFileInfo | OnlineDocumentInfo | WebsiteCrawlInfo | UploadFileIdInfo
|
||||
|
||||
export type InitialDocumentDetail = {
|
||||
type InitialDocumentDetail = {
|
||||
id: string
|
||||
batch: string
|
||||
position: number
|
||||
@@ -432,7 +429,7 @@ export type DocumentListResponse = {
|
||||
limit: number
|
||||
}
|
||||
|
||||
export type DocumentReq = {
|
||||
type DocumentReq = {
|
||||
original_document_id?: string
|
||||
indexing_technique?: IndexingType
|
||||
doc_form: ChunkingMode
|
||||
@@ -452,7 +449,7 @@ export type IndexingEstimateParams = DocumentReq & Partial<DataSource> & {
|
||||
dataset_id: string
|
||||
}
|
||||
|
||||
export type DataSource = {
|
||||
type DataSource = {
|
||||
type: DataSourceType
|
||||
info_list: {
|
||||
data_source_type: DataSourceType
|
||||
@@ -513,7 +510,7 @@ export type FullDocumentDetail = SimpleDocumentDetail & {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
export type DocMetadata = {
|
||||
type DocMetadata = {
|
||||
title: string
|
||||
language: string
|
||||
author: string
|
||||
@@ -534,16 +531,13 @@ export const CUSTOMIZABLE_DOC_TYPES = [
|
||||
'im_chat_log',
|
||||
] as const
|
||||
|
||||
export const FIXED_DOC_TYPES = ['synced_from_github', 'synced_from_notion', 'wikipedia_entry'] as const
|
||||
|
||||
export type CustomizableDocType = typeof CUSTOMIZABLE_DOC_TYPES[number]
|
||||
export type FixedDocType = typeof FIXED_DOC_TYPES[number]
|
||||
type CustomizableDocType = typeof CUSTOMIZABLE_DOC_TYPES[number]
|
||||
type FixedDocType = 'synced_from_github' | 'synced_from_notion' | 'wikipedia_entry'
|
||||
export type DocType = CustomizableDocType | FixedDocType
|
||||
|
||||
export type DocumentDetailResponse = FullDocumentDetail
|
||||
|
||||
export const SEGMENT_STATUS_LIST = ['waiting', 'completed', 'error', 'indexing']
|
||||
export type SegmentStatus = typeof SEGMENT_STATUS_LIST[number]
|
||||
type SegmentStatus = 'waiting' | 'completed' | 'error' | 'indexing'
|
||||
|
||||
export type Attachment = {
|
||||
id: string
|
||||
@@ -634,7 +628,7 @@ export type ExternalKnowledgeBaseHitTesting = {
|
||||
}
|
||||
}
|
||||
|
||||
export type Segment = {
|
||||
type Segment = {
|
||||
id: string
|
||||
document: Document
|
||||
content: string
|
||||
@@ -648,7 +642,7 @@ export type Segment = {
|
||||
answer: string
|
||||
}
|
||||
|
||||
export type Document = {
|
||||
type Document = {
|
||||
id: string
|
||||
data_source_type: string
|
||||
name: string
|
||||
@@ -663,7 +657,7 @@ export type HitTestingRecordsResponse = {
|
||||
page: number
|
||||
}
|
||||
|
||||
export type TsnePosition = {
|
||||
type TsnePosition = {
|
||||
x: number
|
||||
y: number
|
||||
}
|
||||
@@ -750,7 +744,7 @@ export const DEFAULT_WEIGHTED_SCORE = {
|
||||
},
|
||||
}
|
||||
|
||||
export type ChildChunkType = 'automatic' | 'customized'
|
||||
type ChildChunkType = 'automatic' | 'customized'
|
||||
|
||||
export type ChildChunkDetail = {
|
||||
id: string
|
||||
|
||||
@@ -114,7 +114,7 @@ export type ModerationConfig = MoreLikeThisConfig & {
|
||||
} & Partial<Record<string, any>>
|
||||
}
|
||||
|
||||
export type RetrieverResourceConfig = MoreLikeThisConfig
|
||||
type RetrieverResourceConfig = MoreLikeThisConfig
|
||||
export type AgentConfig = {
|
||||
enabled: boolean
|
||||
strategy: AgentStrategy
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { AppIconType, AppModeEnum } from '@/types/app'
|
||||
|
||||
export type AppBasicInfo = {
|
||||
type AppBasicInfo = {
|
||||
id: string
|
||||
mode: AppModeEnum
|
||||
icon_type: AppIconType | null
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
} from '@/app/components/workflow/types'
|
||||
import type { VisionFile } from '@/types/app'
|
||||
|
||||
export type CompletionParamsType = {
|
||||
type CompletionParamsType = {
|
||||
max_tokens: number
|
||||
temperature: number
|
||||
top_p: number
|
||||
@@ -15,13 +15,13 @@ export type CompletionParamsType = {
|
||||
frequency_penalty: number
|
||||
}
|
||||
|
||||
export type LogModelConfig = {
|
||||
type LogModelConfig = {
|
||||
name: string
|
||||
provider: string
|
||||
completion_params: CompletionParamsType
|
||||
}
|
||||
|
||||
export type ModelConfigDetail = {
|
||||
type ModelConfigDetail = {
|
||||
introduction: string
|
||||
prompt_template: string
|
||||
prompt_variables: Array<{
|
||||
@@ -53,7 +53,7 @@ export type Annotation = {
|
||||
created_at?: number
|
||||
}
|
||||
|
||||
export type MessageContent = {
|
||||
type MessageContent = {
|
||||
id: string
|
||||
conversation_id: string
|
||||
query: string
|
||||
@@ -186,8 +186,7 @@ export type ChatMessagesResponse = {
|
||||
limit: number
|
||||
}
|
||||
|
||||
export const MessageRatings = ['like', 'dislike', null] as const
|
||||
export type MessageRating = typeof MessageRatings[number]
|
||||
export type MessageRating = 'like' | 'dislike' | null
|
||||
|
||||
export type LogMessageFeedbacksRequest = {
|
||||
message_id: string
|
||||
@@ -229,7 +228,7 @@ export type TriggerMetadata = {
|
||||
icon_dark?: string | null
|
||||
}
|
||||
|
||||
export type WorkflowLogDetails = {
|
||||
type WorkflowLogDetails = {
|
||||
trigger_metadata?: TriggerMetadata
|
||||
}
|
||||
|
||||
@@ -246,12 +245,12 @@ export type WorkflowRunDetail = {
|
||||
total_steps: number
|
||||
finished_at: number
|
||||
}
|
||||
export type AccountInfo = {
|
||||
type AccountInfo = {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
}
|
||||
export type EndUserInfo = {
|
||||
type EndUserInfo = {
|
||||
id: string
|
||||
type: 'browser' | 'service_api'
|
||||
is_anonymous: boolean
|
||||
@@ -303,7 +302,7 @@ export type WorkflowRunDetailResponse = {
|
||||
exceptions_count?: number
|
||||
}
|
||||
|
||||
export type AgentLogMeta = {
|
||||
type AgentLogMeta = {
|
||||
status: string
|
||||
executor: string
|
||||
start_time: string
|
||||
@@ -338,7 +337,7 @@ export type AgentIteration = {
|
||||
}
|
||||
}
|
||||
|
||||
export type AgentLogFile = {
|
||||
type AgentLogFile = {
|
||||
id: string
|
||||
type: string
|
||||
url: string
|
||||
@@ -357,7 +356,7 @@ export type AgentLogDetailResponse = {
|
||||
files: AgentLogFile[]
|
||||
}
|
||||
|
||||
export type PauseType = {
|
||||
type PauseType = {
|
||||
type: 'human_input'
|
||||
form_id: string
|
||||
backstage_input_url: string
|
||||
@@ -365,7 +364,7 @@ export type PauseType = {
|
||||
type: 'breakpoint'
|
||||
}
|
||||
|
||||
export type PauseDetail = {
|
||||
type PauseDetail = {
|
||||
node_id: string
|
||||
node_title: string
|
||||
pause_type: PauseType
|
||||
|
||||
@@ -275,7 +275,7 @@ function generateTypeDefinitions(
|
||||
typeNames.push(typeName)
|
||||
|
||||
lines.push(`// ${sectionToTypeName(section)} paths`)
|
||||
lines.push(`export type ${typeName} =`)
|
||||
lines.push(`type ${typeName} =`)
|
||||
|
||||
for (const p of paths) {
|
||||
lines.push(` | '/${p}'`)
|
||||
@@ -297,7 +297,7 @@ function generateTypeDefinitions(
|
||||
if (apiReferencePaths.length > 0) {
|
||||
const sortedPaths = [...apiReferencePaths].sort()
|
||||
lines.push('// API Reference paths (English, use apiReferencePathTranslations for other languages)')
|
||||
lines.push('export type ApiReferencePath =')
|
||||
lines.push('type ApiReferencePath =')
|
||||
for (const p of sortedPaths) {
|
||||
lines.push(` | '${p}'`)
|
||||
}
|
||||
@@ -307,7 +307,7 @@ function generateTypeDefinitions(
|
||||
|
||||
// Generate base combined type
|
||||
lines.push('// Base path without language prefix')
|
||||
lines.push('export type DocPathWithoutLangBase =')
|
||||
lines.push('type DocPathWithoutLangBase =')
|
||||
for (const typeName of typeNames) {
|
||||
lines.push(` | ${typeName}`)
|
||||
}
|
||||
|
||||
@@ -47,39 +47,39 @@ export type IOnDataMoreInfo = {
|
||||
}
|
||||
|
||||
export type IOnData = (message: string, isFirstMessage: boolean, moreInfo: IOnDataMoreInfo) => void
|
||||
export type IOnThought = (though: ThoughtItem) => void
|
||||
export type IOnFile = (file: VisionFile) => void
|
||||
export type IOnMessageEnd = (messageEnd: MessageEnd) => void
|
||||
type IOnThought = (though: ThoughtItem) => void
|
||||
type IOnFile = (file: VisionFile) => void
|
||||
type IOnMessageEnd = (messageEnd: MessageEnd) => void
|
||||
export type IOnMessageReplace = (messageReplace: MessageReplace) => void
|
||||
export type IOnCompleted = (hasError?: boolean, errorMessage?: string) => void
|
||||
export type IOnError = (msg: string, code?: string) => void
|
||||
|
||||
export type IOnWorkflowStarted = (workflowStarted: WorkflowStartedResponse) => void
|
||||
export type IOnWorkflowFinished = (workflowFinished: WorkflowFinishedResponse) => void
|
||||
export type IOnNodeStarted = (nodeStarted: NodeStartedResponse) => void
|
||||
export type IOnNodeFinished = (nodeFinished: NodeFinishedResponse) => void
|
||||
export type IOnIterationStarted = (workflowStarted: IterationStartedResponse) => void
|
||||
export type IOnIterationNext = (workflowStarted: IterationNextResponse) => void
|
||||
export type IOnNodeRetry = (nodeFinished: NodeFinishedResponse) => void
|
||||
export type IOnIterationFinished = (workflowFinished: IterationFinishedResponse) => void
|
||||
export type IOnParallelBranchStarted = (parallelBranchStarted: ParallelBranchStartedResponse) => void
|
||||
export type IOnParallelBranchFinished = (parallelBranchFinished: ParallelBranchFinishedResponse) => void
|
||||
export type IOnTextChunk = (textChunk: TextChunkResponse) => void
|
||||
export type IOnTTSChunk = (messageId: string, audioStr: string, audioType?: string) => void
|
||||
export type IOnTTSEnd = (messageId: string, audioStr: string, audioType?: string) => void
|
||||
export type IOnTextReplace = (textReplace: TextReplaceResponse) => void
|
||||
export type IOnLoopStarted = (workflowStarted: LoopStartedResponse) => void
|
||||
export type IOnLoopNext = (workflowStarted: LoopNextResponse) => void
|
||||
export type IOnLoopFinished = (workflowFinished: LoopFinishedResponse) => void
|
||||
export type IOnAgentLog = (agentLog: AgentLogResponse) => void
|
||||
type IOnWorkflowStarted = (workflowStarted: WorkflowStartedResponse) => void
|
||||
type IOnWorkflowFinished = (workflowFinished: WorkflowFinishedResponse) => void
|
||||
type IOnNodeStarted = (nodeStarted: NodeStartedResponse) => void
|
||||
type IOnNodeFinished = (nodeFinished: NodeFinishedResponse) => void
|
||||
type IOnIterationStarted = (workflowStarted: IterationStartedResponse) => void
|
||||
type IOnIterationNext = (workflowStarted: IterationNextResponse) => void
|
||||
type IOnNodeRetry = (nodeFinished: NodeFinishedResponse) => void
|
||||
type IOnIterationFinished = (workflowFinished: IterationFinishedResponse) => void
|
||||
type IOnParallelBranchStarted = (parallelBranchStarted: ParallelBranchStartedResponse) => void
|
||||
type IOnParallelBranchFinished = (parallelBranchFinished: ParallelBranchFinishedResponse) => void
|
||||
type IOnTextChunk = (textChunk: TextChunkResponse) => void
|
||||
type IOnTTSChunk = (messageId: string, audioStr: string, audioType?: string) => void
|
||||
type IOnTTSEnd = (messageId: string, audioStr: string, audioType?: string) => void
|
||||
type IOnTextReplace = (textReplace: TextReplaceResponse) => void
|
||||
type IOnLoopStarted = (workflowStarted: LoopStartedResponse) => void
|
||||
type IOnLoopNext = (workflowStarted: LoopNextResponse) => void
|
||||
type IOnLoopFinished = (workflowFinished: LoopFinishedResponse) => void
|
||||
type IOnAgentLog = (agentLog: AgentLogResponse) => void
|
||||
|
||||
export type IOHumanInputRequired = (humanInputRequired: HumanInputRequiredResponse) => void
|
||||
export type IOnHumanInputFormFilled = (humanInputFormFilled: HumanInputFormFilledResponse) => void
|
||||
export type IOnHumanInputFormTimeout = (humanInputFormTimeout: HumanInputFormTimeoutResponse) => void
|
||||
export type IOWorkflowPaused = (workflowPaused: WorkflowPausedResponse) => void
|
||||
export type IOnDataSourceNodeProcessing = (dataSourceNodeProcessing: DataSourceNodeProcessingResponse) => void
|
||||
export type IOnDataSourceNodeCompleted = (dataSourceNodeCompleted: DataSourceNodeCompletedResponse) => void
|
||||
export type IOnDataSourceNodeError = (dataSourceNodeError: DataSourceNodeErrorResponse) => void
|
||||
type IOHumanInputRequired = (humanInputRequired: HumanInputRequiredResponse) => void
|
||||
type IOnHumanInputFormFilled = (humanInputFormFilled: HumanInputFormFilledResponse) => void
|
||||
type IOnHumanInputFormTimeout = (humanInputFormTimeout: HumanInputFormTimeoutResponse) => void
|
||||
type IOWorkflowPaused = (workflowPaused: WorkflowPausedResponse) => void
|
||||
type IOnDataSourceNodeProcessing = (dataSourceNodeProcessing: DataSourceNodeProcessingResponse) => void
|
||||
type IOnDataSourceNodeCompleted = (dataSourceNodeCompleted: DataSourceNodeCompletedResponse) => void
|
||||
type IOnDataSourceNodeError = (dataSourceNodeError: DataSourceNodeErrorResponse) => void
|
||||
|
||||
export type IOtherOptions = {
|
||||
isPublicAPI?: boolean
|
||||
|
||||
@@ -50,8 +50,7 @@ export const AppModes = [AppModeEnum.COMPLETION, AppModeEnum.WORKFLOW, AppModeEn
|
||||
/**
|
||||
* Variable type
|
||||
*/
|
||||
export const VariableTypes = ['string', 'number', 'select'] as const
|
||||
export type VariableType = typeof VariableTypes[number]
|
||||
type VariableType = 'string' | 'number' | 'select'
|
||||
|
||||
/**
|
||||
* Prompt variable parameter
|
||||
@@ -69,7 +68,7 @@ export type PromptVariable = {
|
||||
max_length?: number
|
||||
}
|
||||
|
||||
export type TextTypeFormItem = {
|
||||
type TextTypeFormItem = {
|
||||
default: string
|
||||
label: string
|
||||
variable: string
|
||||
@@ -78,7 +77,7 @@ export type TextTypeFormItem = {
|
||||
hide: boolean
|
||||
}
|
||||
|
||||
export type SelectTypeFormItem = {
|
||||
type SelectTypeFormItem = {
|
||||
default: string
|
||||
label: string
|
||||
variable: string
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
export type DocLanguage = 'en' | 'zh' | 'ja'
|
||||
|
||||
// UseDify paths
|
||||
export type UseDifyPath =
|
||||
type UseDifyPath =
|
||||
| '/use-dify/build/additional-features'
|
||||
| '/use-dify/build/goto-anything'
|
||||
| '/use-dify/build/mcp'
|
||||
@@ -121,7 +121,7 @@ type ExtractNodesPath<T> = T extends `/use-dify/nodes/${infer Path}` ? Path : ne
|
||||
export type UseDifyNodesPath = ExtractNodesPath<UseDifyPath>
|
||||
|
||||
// SelfHost paths
|
||||
export type SelfHostPath =
|
||||
type SelfHostPath =
|
||||
| '/self-host/advanced-deployments/local-source-code'
|
||||
| '/self-host/advanced-deployments/start-the-frontend-docker-container'
|
||||
| '/self-host/configuration/environments'
|
||||
@@ -136,7 +136,7 @@ export type SelfHostPath =
|
||||
| '/self-host/troubleshooting/weaviate-v4-migration'
|
||||
|
||||
// DevelopPlugin paths
|
||||
export type DevelopPluginPath =
|
||||
type DevelopPluginPath =
|
||||
| '/develop-plugin/dev-guides-and-walkthroughs/agent-strategy-plugin'
|
||||
| '/develop-plugin/dev-guides-and-walkthroughs/cheatsheet'
|
||||
| '/develop-plugin/dev-guides-and-walkthroughs/creating-new-model-provider'
|
||||
@@ -178,7 +178,7 @@ export type DevelopPluginPath =
|
||||
| '/develop-plugin/publishing/standards/third-party-signature-verification'
|
||||
|
||||
// API Reference paths (English, use apiReferencePathTranslations for other languages)
|
||||
export type ApiReferencePath =
|
||||
type ApiReferencePath =
|
||||
| '/api-reference/annotations/configure-annotation-reply'
|
||||
| '/api-reference/annotations/create-annotation'
|
||||
| '/api-reference/annotations/delete-annotation'
|
||||
@@ -261,7 +261,7 @@ export type ApiReferencePath =
|
||||
| '/api-reference/workflows/stop-workflow-task'
|
||||
|
||||
// Base path without language prefix
|
||||
export type DocPathWithoutLangBase =
|
||||
type DocPathWithoutLangBase =
|
||||
| UseDifyPath
|
||||
| SelfHostPath
|
||||
| DevelopPluginPath
|
||||
|
||||
@@ -6,7 +6,7 @@ export type DataSourceNodeProcessingResponse = {
|
||||
completed: number
|
||||
}
|
||||
|
||||
export type OnlineDriveFile = {
|
||||
type OnlineDriveFile = {
|
||||
id: string
|
||||
name: string
|
||||
size: number
|
||||
|
||||
@@ -453,7 +453,7 @@ export const VarInInspectType = {
|
||||
} as const
|
||||
export type VarInInspectType = typeof VarInInspectType[keyof typeof VarInInspectType]
|
||||
|
||||
export type FullContent = {
|
||||
type FullContent = {
|
||||
size_bytes: number
|
||||
download_url: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user