dify/web/models/snippet.ts
copilot-swe-agent[bot] fa74a4ed67
Merge deploy/dev into feat/evaluation - resolve merge conflicts
Agent-Logs-Url: https://github.com/langgenius/dify/sessions/489dd945-dfff-462a-9c76-d29fdaa55de2

Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com>
2026-04-17 08:29:13 +00:00

51 lines
1010 B
TypeScript

import type { Viewport } from 'reactflow'
import type { Edge, Node } from '@/app/components/workflow/types'
import type { InputVar } from '@/models/pipeline'
export type SnippetSection = 'orchestrate' | 'evaluation'
export type SnippetListItem = {
id: string
name: string
description: string
author: string
updatedAt: string
usage: string
icon: string
iconBackground: string
status?: string
}
export type SnippetDetail = {
id: string
name: string
description: string
author: string
updatedAt: string
usage: string
icon: string
iconBackground: string
status?: string
}
export type SnippetCanvasData = {
nodes: Node[]
edges: Edge[]
viewport: Viewport
}
export type SnippetInputField = InputVar
export type SnippetDetailUIModel = {
inputFieldCount: number
checklistCount: number
autoSavedAt: string
}
export type SnippetDetailPayload = {
snippet: SnippetDetail
graph: SnippetCanvasData
inputFields: SnippetInputField[]
uiMeta: SnippetDetailUIModel
}