Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1000 B
Raw Blame
import type { TagResponse as Tag } from '@dify/contracts/api/console/tags/types.gen'
import type { Viewport } from 'reactflow'
import type { Edge, Node } from '@/app/components/workflow/types'
import type { InputVar } from '@/models/pipeline'

export type SnippetSection = 'orchestrate'

export type SnippetListItem = {
  id: string
  name: string
  description: string | null
  updatedAt: string
  usage: string
  tags: Tag[]
  is_published?: boolean
  status?: string
}

export type SnippetDetail = {
  id: string
  name: string
  description: string | null
  updatedAt: string
  usage: string
  tags: Tag[]
  is_published?: boolean
  status?: string
}

export type SnippetCanvasData = {
  nodes: Node[]
  edges: Edge[]
  viewport: Viewport
}

type SnippetDetailUIModel = {
  inputFieldCount: number
  checklistCount: number
  autoSavedAt: string
}

export type SnippetDetailPayload = {
  snippet: SnippetDetail
  graph: SnippetCanvasData
  inputFields: InputVar[]
  uiMeta: SnippetDetailUIModel
}