chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动

演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-18 13:59:25 +08:00
1 parent 60158935f4
commit 6519682885
15831 files changed
+3063428

No files matched your search

@@ -0,0 +1,74 @@
// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import {
zGetWorkflowByWorkflowRunIdEventsPath,
zGetWorkflowByWorkflowRunIdEventsResponse,
zGetWorkflowByWorkflowRunIdPauseDetailsPath,
zGetWorkflowByWorkflowRunIdPauseDetailsResponse,
} from './zod.gen.ts'
/**
* Get workflow execution events stream after resume
*
* GET /console/api/workflow/<workflow_run_id>/events
*
* Returns Server-Sent Events stream.
*/
export const get = oc
.route({
description:
'GET /console/api/workflow/<workflow_run_id>/events\n\nReturns Server-Sent Events stream.',
inputStructure: 'detailed',
method: 'GET',
operationId: 'getWorkflowByWorkflowRunIdEvents',
path: '/workflow/{workflow_run_id}/events',
summary: 'Get workflow execution events stream after resume',
tags: ['console'],
})
.input(z.object({ params: zGetWorkflowByWorkflowRunIdEventsPath }))
.output(zGetWorkflowByWorkflowRunIdEventsResponse)
export const events = {
get,
}
/**
* Get workflow pause details
*
* Get workflow pause details
* GET /console/api/workflow/<workflow_run_id>/pause-details
*
* Returns information about why and where the workflow is paused.
*/
export const get2 = oc
.route({
description:
'Get workflow pause details\nGET /console/api/workflow/<workflow_run_id>/pause-details\n\nReturns information about why and where the workflow is paused.',
inputStructure: 'detailed',
method: 'GET',
operationId: 'getWorkflowByWorkflowRunIdPauseDetails',
path: '/workflow/{workflow_run_id}/pause-details',
summary: 'Get workflow pause details',
tags: ['console'],
})
.input(z.object({ params: zGetWorkflowByWorkflowRunIdPauseDetailsPath }))
.output(zGetWorkflowByWorkflowRunIdPauseDetailsResponse)
export const pauseDetails = {
get: get2,
}
export const byWorkflowRunId = {
events,
pauseDetails,
}
export const workflow = {
byWorkflowRunId,
}
export const contract = {
workflow,
}
@@ -0,0 +1,82 @@
// This file is auto-generated by @hey-api/openapi-ts
export type ClientOptions = {
baseUrl: `${string}://${string}/console/api` | (string & {})
}
export type EventStreamResponse = string
export type ErrorResponse = {
code: string
details?: {
[key: string]: unknown
}
message: string
params?: string
status: number
}
export type WorkflowPauseDetailsResponse = {
paused_at?: string | null
paused_nodes: Array<PausedNodeResponse>
}
export type PausedNodeResponse = {
node_id: string
node_title: string
pause_type: HumanInputPauseTypeResponse
}
export type HumanInputPauseTypeResponse = {
backstage_input_url?: string | null
form_id: string
form_version?: '1' | '2'
type: 'human_input'
}
export type GetWorkflowByWorkflowRunIdEventsData = {
body?: never
path: {
workflow_run_id: string
}
query?: never
url: '/workflow/{workflow_run_id}/events'
}
export type GetWorkflowByWorkflowRunIdEventsErrors = {
default: ErrorResponse
}
export type GetWorkflowByWorkflowRunIdEventsError =
GetWorkflowByWorkflowRunIdEventsErrors[keyof GetWorkflowByWorkflowRunIdEventsErrors]
export type GetWorkflowByWorkflowRunIdEventsResponses = {
200: EventStreamResponse
}
export type GetWorkflowByWorkflowRunIdEventsResponse =
GetWorkflowByWorkflowRunIdEventsResponses[keyof GetWorkflowByWorkflowRunIdEventsResponses]
export type GetWorkflowByWorkflowRunIdPauseDetailsData = {
body?: never
path: {
workflow_run_id: string
}
query?: never
url: '/workflow/{workflow_run_id}/pause-details'
}
export type GetWorkflowByWorkflowRunIdPauseDetailsErrors = {
404: ErrorResponse
default: ErrorResponse
}
export type GetWorkflowByWorkflowRunIdPauseDetailsError =
GetWorkflowByWorkflowRunIdPauseDetailsErrors[keyof GetWorkflowByWorkflowRunIdPauseDetailsErrors]
export type GetWorkflowByWorkflowRunIdPauseDetailsResponses = {
200: WorkflowPauseDetailsResponse
}
export type GetWorkflowByWorkflowRunIdPauseDetailsResponse =
GetWorkflowByWorkflowRunIdPauseDetailsResponses[keyof GetWorkflowByWorkflowRunIdPauseDetailsResponses]
@@ -0,0 +1,69 @@
// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* EventStreamResponse
*/
export const zEventStreamResponse = z.string()
/**
* ErrorResponse
*
* Documented non-2xx body emitted by ``register_external_error_handlers``.
*
* ``params`` and ``details`` appear only on the errors that set them. The schema
* stays open because ``HTTPException.data`` may carry extra keys.
*/
export const zErrorResponse = z.object({
code: z.string(),
details: z.record(z.string(), z.unknown()).optional(),
message: z.string(),
params: z.string().optional(),
status: z.int(),
})
/**
* HumanInputPauseTypeResponse
*/
export const zHumanInputPauseTypeResponse = z.object({
backstage_input_url: z.string().nullish(),
form_id: z.string(),
form_version: z.enum(['1', '2']).optional().default('1'),
type: z.literal('human_input'),
})
/**
* PausedNodeResponse
*/
export const zPausedNodeResponse = z.object({
node_id: z.string(),
node_title: z.string(),
pause_type: zHumanInputPauseTypeResponse,
})
/**
* WorkflowPauseDetailsResponse
*/
export const zWorkflowPauseDetailsResponse = z.object({
paused_at: z.string().nullish(),
paused_nodes: z.array(zPausedNodeResponse),
})
export const zGetWorkflowByWorkflowRunIdEventsPath = z.object({
workflow_run_id: z.string(),
})
/**
* SSE event stream
*/
export const zGetWorkflowByWorkflowRunIdEventsResponse = zEventStreamResponse
export const zGetWorkflowByWorkflowRunIdPauseDetailsPath = z.object({
workflow_run_id: z.string(),
})
/**
* Workflow pause details retrieved successfully
*/
export const zGetWorkflowByWorkflowRunIdPauseDetailsResponse = zWorkflowPauseDetailsResponse