2025-05-07 11:30:13 +08:00
|
|
|
import type { ChunkingMode, IconInfo } from './datasets'
|
|
|
|
|
|
|
|
export type PipelineTemplateListParams = {
|
|
|
|
type: 'built-in' | 'customized'
|
|
|
|
}
|
|
|
|
|
|
|
|
export type PipelineTemple = {
|
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
icon_info: IconInfo
|
|
|
|
description: string
|
|
|
|
position: number
|
|
|
|
doc_form: ChunkingMode
|
|
|
|
}
|
|
|
|
|
|
|
|
export type PipelineTemplateListResponse = {
|
|
|
|
pipelines: PipelineTemple[]
|
|
|
|
}
|
|
|
|
|
|
|
|
export type PipelineTemplateByIdResponse = {
|
|
|
|
name: string
|
|
|
|
icon_info: IconInfo
|
|
|
|
description: string
|
|
|
|
export_data: string
|
|
|
|
}
|
|
|
|
|
2025-05-07 14:29:01 +08:00
|
|
|
export type UpdatePipelineInfoRequest = {
|
|
|
|
pipeline_id: string
|
2025-05-07 11:30:13 +08:00
|
|
|
name: string
|
|
|
|
icon_info: IconInfo
|
|
|
|
description: string
|
|
|
|
}
|
|
|
|
|
2025-05-07 14:29:01 +08:00
|
|
|
export type UpdatePipelineInfoResponse = {
|
|
|
|
pipeline_id: string
|
|
|
|
name: string
|
|
|
|
icon_info: IconInfo
|
|
|
|
description: string
|
|
|
|
position: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export type DeletePipelineResponse = {
|
|
|
|
code: number
|
|
|
|
}
|
|
|
|
|
2025-05-07 11:30:13 +08:00
|
|
|
export type ExportPipelineDSLResponse = {
|
|
|
|
data: string
|
|
|
|
}
|