mirror of
https://github.com/langgenius/dify.git
synced 2026-06-14 04:31:07 +08:00
53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* EventStreamResponse
|
|
*/
|
|
export const zEventStreamResponse = z.string()
|
|
|
|
/**
|
|
* HumanInputPauseTypeResponse
|
|
*/
|
|
export const zHumanInputPauseTypeResponse = z.object({
|
|
backstage_input_url: z.string().nullish(),
|
|
form_id: z.string(),
|
|
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
|