feat: version tag (#14949)

This commit is contained in:
Wu Tianwei
2025-03-07 18:10:40 +08:00
committed by GitHub
parent 4aaf07d62a
commit 3ca1373274
41 changed files with 1695 additions and 423 deletions

View File

@@ -111,14 +111,29 @@ export type FetchWorkflowDraftResponse = {
}
hash: string
updated_at: number
updated_by: {
id: string
name: string
email: string
},
tool_published: boolean
environment_variables?: EnvironmentVariable[]
conversation_variables?: ConversationVariable[]
version: string
marked_name: string
marked_comment: string
}
export type VersionHistory = FetchWorkflowDraftResponse
export type FetchWorkflowDraftPageParams = {
appId: string
initialPage: number
limit: number
userId?: string
namedOnly?: boolean
}
export type FetchWorkflowDraftPageResponse = {
items: VersionHistory[]
has_more: boolean
@@ -323,3 +338,14 @@ export type LoopDurationMap = Record<string, number>
export type WorkflowConfigResponse = {
parallel_depth_limit: number
}
export type PublishWorkflowParams = {
title: string
releaseNotes: string
}
export type UpdateWorkflowParams = {
workflowId: string
title: string
releaseNotes: string
}