mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat: add pipeline template details and import functionality, enhance dataset pipeline management
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import type { LangFuseConfig, LangSmithConfig, OpikConfig, TracingProvider, WeaveConfig } from '@/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type'
|
||||
import type { App, AppSSO, AppTemplate, SiteConfig } from '@/types/app'
|
||||
import type { App, AppMode, AppSSO, AppTemplate, SiteConfig } from '@/types/app'
|
||||
import type { Dependency } from '@/app/components/plugins/types'
|
||||
|
||||
export enum DSLImportMode {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import type { DSLImportMode, DSLImportStatus } from './app'
|
||||
import type { ChunkingMode, IconInfo } from './datasets'
|
||||
import type { Dependency } from '@/app/components/plugins/types'
|
||||
|
||||
export type PipelineTemplateListParams = {
|
||||
type: 'built-in' | 'customized'
|
||||
@ -21,6 +23,8 @@ export type PipelineTemplateByIdResponse = {
|
||||
name: string
|
||||
icon_info: IconInfo
|
||||
description: string
|
||||
author: string // todo: TBD
|
||||
structure: string // todo: TBD
|
||||
export_data: string
|
||||
}
|
||||
|
||||
@ -46,3 +50,22 @@ export type DeletePipelineResponse = {
|
||||
export type ExportPipelineDSLResponse = {
|
||||
data: string
|
||||
}
|
||||
|
||||
export type ImportPipelineDSLRequest = {
|
||||
mode: DSLImportMode
|
||||
name: string
|
||||
yaml_content: string
|
||||
icon_info: IconInfo
|
||||
description: string
|
||||
}
|
||||
|
||||
export type ImportPipelineDSLResponse = {
|
||||
id: string
|
||||
status: DSLImportStatus
|
||||
app_mode: 'pipeline'
|
||||
dataset_id?: string
|
||||
current_dsl_version?: string
|
||||
imported_dsl_version?: string
|
||||
error: string
|
||||
leaked_dependencies: Dependency[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user