mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:32:01 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
892 lines
22 KiB
TypeScript
892 lines
22 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* SimpleDataResponse
|
|
*/
|
|
export const zSimpleDataResponse = z.object({
|
|
data: z.string(),
|
|
})
|
|
|
|
/**
|
|
* RagPipelineDatasetImportPayload
|
|
*/
|
|
export const zRagPipelineDatasetImportPayload = z.object({
|
|
yaml_content: z.string(),
|
|
})
|
|
|
|
/**
|
|
* RagPipelineImportPayload
|
|
*/
|
|
export const zRagPipelineImportPayload = z.object({
|
|
description: z.string().nullish(),
|
|
icon: z.string().nullish(),
|
|
icon_background: z.string().nullish(),
|
|
icon_type: z.string().nullish(),
|
|
mode: z.string(),
|
|
name: z.string().nullish(),
|
|
pipeline_id: z.string().nullish(),
|
|
yaml_content: z.string().nullish(),
|
|
yaml_url: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* Payload
|
|
*/
|
|
export const zPayload = z.object({
|
|
description: z.string().max(400).optional().default(''),
|
|
icon_info: z.record(z.string(), z.unknown()).nullish(),
|
|
name: z.string().min(1).max(40),
|
|
})
|
|
|
|
/**
|
|
* SimpleResultResponse
|
|
*/
|
|
export const zSimpleResultResponse = z.object({
|
|
result: z.string(),
|
|
})
|
|
|
|
/**
|
|
* RagPipelineWorkflowSyncResponse
|
|
*/
|
|
export const zRagPipelineWorkflowSyncResponse = z.object({
|
|
hash: z.string(),
|
|
result: z.string(),
|
|
updated_at: z.int(),
|
|
})
|
|
|
|
/**
|
|
* DatasourceNodeRunPayload
|
|
*/
|
|
export const zDatasourceNodeRunPayload = z.object({
|
|
credential_id: z.string().nullish(),
|
|
datasource_type: z.string(),
|
|
inputs: z.record(z.string(), z.unknown()),
|
|
})
|
|
|
|
/**
|
|
* DatasourceVariablesPayload
|
|
*/
|
|
export const zDatasourceVariablesPayload = z.object({
|
|
datasource_info: z.record(z.string(), z.unknown()),
|
|
datasource_type: z.string(),
|
|
start_node_id: z.string(),
|
|
start_node_title: z.string(),
|
|
})
|
|
|
|
/**
|
|
* NodeRunPayload
|
|
*/
|
|
export const zNodeRunPayload = z.object({
|
|
inputs: z.record(z.string(), z.unknown()).nullish(),
|
|
})
|
|
|
|
/**
|
|
* NodeRunRequiredPayload
|
|
*/
|
|
export const zNodeRunRequiredPayload = z.object({
|
|
inputs: z.record(z.string(), z.unknown()),
|
|
})
|
|
|
|
/**
|
|
* DraftWorkflowRunPayload
|
|
*/
|
|
export const zDraftWorkflowRunPayload = z.object({
|
|
datasource_info_list: z.array(z.record(z.string(), z.unknown())),
|
|
datasource_type: z.string(),
|
|
inputs: z.record(z.string(), z.unknown()),
|
|
start_node_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* RagPipelineWorkflowPublishResponse
|
|
*/
|
|
export const zRagPipelineWorkflowPublishResponse = z.object({
|
|
created_at: z.int(),
|
|
result: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Parser
|
|
*/
|
|
export const zParser = z.object({
|
|
credential_id: z.string().nullish(),
|
|
datasource_type: z.string(),
|
|
inputs: z.record(z.string(), z.unknown()),
|
|
})
|
|
|
|
/**
|
|
* PublishedWorkflowRunPayload
|
|
*/
|
|
export const zPublishedWorkflowRunPayload = z.object({
|
|
datasource_info_list: z.array(z.record(z.string(), z.unknown())),
|
|
datasource_type: z.string(),
|
|
inputs: z.record(z.string(), z.unknown()),
|
|
is_preview: z.boolean().optional().default(false),
|
|
original_document_id: z.string().nullish(),
|
|
response_mode: z.enum(['blocking', 'streaming']).optional().default('streaming'),
|
|
start_node_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* SimpleAccount
|
|
*/
|
|
export const zSimpleAccount = z.object({
|
|
email: z.string(),
|
|
id: z.string(),
|
|
name: z.string(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowRunForListResponse
|
|
*/
|
|
export const zWorkflowRunForListResponse = z.object({
|
|
created_at: z.int().nullish(),
|
|
created_by_account: zSimpleAccount.optional(),
|
|
elapsed_time: z.number().nullish(),
|
|
exceptions_count: z.int().nullish(),
|
|
finished_at: z.int().nullish(),
|
|
id: z.string(),
|
|
retry_index: z.int().nullish(),
|
|
status: z.string().nullish(),
|
|
total_steps: z.int().nullish(),
|
|
total_tokens: z.int().nullish(),
|
|
version: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowRunPaginationResponse
|
|
*/
|
|
export const zWorkflowRunPaginationResponse = z.object({
|
|
data: z.array(zWorkflowRunForListResponse),
|
|
has_more: z.boolean(),
|
|
limit: z.int(),
|
|
})
|
|
|
|
/**
|
|
* SimpleEndUser
|
|
*/
|
|
export const zSimpleEndUser = z.object({
|
|
id: z.string(),
|
|
is_anonymous: z.boolean(),
|
|
session_id: z.string().nullish(),
|
|
type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowRunDetailResponse
|
|
*/
|
|
export const zWorkflowRunDetailResponse = z.object({
|
|
created_at: z.int().nullish(),
|
|
created_by_account: zSimpleAccount.optional(),
|
|
created_by_end_user: zSimpleEndUser.optional(),
|
|
created_by_role: z.string().nullish(),
|
|
elapsed_time: z.number().nullish(),
|
|
error: z.string().nullish(),
|
|
exceptions_count: z.int().nullish(),
|
|
finished_at: z.int().nullish(),
|
|
graph: z.unknown(),
|
|
id: z.string(),
|
|
inputs: z.unknown(),
|
|
outputs: z.unknown(),
|
|
status: z.string().nullish(),
|
|
total_steps: z.int().nullish(),
|
|
total_tokens: z.int().nullish(),
|
|
version: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowRunNodeExecutionResponse
|
|
*/
|
|
export const zWorkflowRunNodeExecutionResponse = z.object({
|
|
created_at: z.int().nullish(),
|
|
created_by_account: zSimpleAccount.optional(),
|
|
created_by_end_user: zSimpleEndUser.optional(),
|
|
created_by_role: z.string().nullish(),
|
|
elapsed_time: z.number().nullish(),
|
|
error: z.string().nullish(),
|
|
execution_metadata: z.unknown().optional(),
|
|
extras: z.unknown().optional(),
|
|
finished_at: z.int().nullish(),
|
|
id: z.string(),
|
|
index: z.int().nullish(),
|
|
inputs: z.unknown().optional(),
|
|
inputs_truncated: z.boolean().nullish(),
|
|
node_id: z.string().nullish(),
|
|
node_type: z.string().nullish(),
|
|
outputs: z.unknown().optional(),
|
|
outputs_truncated: z.boolean().nullish(),
|
|
predecessor_node_id: z.string().nullish(),
|
|
process_data: z.unknown().optional(),
|
|
process_data_truncated: z.boolean().nullish(),
|
|
status: z.string().nullish(),
|
|
title: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowRunNodeExecutionListResponse
|
|
*/
|
|
export const zWorkflowRunNodeExecutionListResponse = z.object({
|
|
data: z.array(zWorkflowRunNodeExecutionResponse),
|
|
})
|
|
|
|
/**
|
|
* WorkflowConversationVariableResponse
|
|
*/
|
|
export const zWorkflowConversationVariableResponse = z.object({
|
|
description: z.string(),
|
|
id: z.string(),
|
|
name: z.string(),
|
|
value: z.record(z.string(), z.unknown()),
|
|
value_type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowEnvironmentVariableResponse
|
|
*/
|
|
export const zWorkflowEnvironmentVariableResponse = z.object({
|
|
description: z.string(),
|
|
id: z.string(),
|
|
name: z.string(),
|
|
value: z.record(z.string(), z.unknown()),
|
|
value_type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* PipelineVariableResponse
|
|
*/
|
|
export const zPipelineVariableResponse = z.object({
|
|
allowed_file_extensions: z.array(z.string()).nullish(),
|
|
allowed_file_types: z.array(z.string()).nullish(),
|
|
allowed_file_upload_methods: z.array(z.string()).nullish(),
|
|
belong_to_node_id: z.string(),
|
|
default_value: z.record(z.string(), z.unknown()).optional(),
|
|
label: z.string(),
|
|
max_length: z.int().nullish(),
|
|
options: z.array(z.string()).nullish(),
|
|
placeholder: z.string().nullish(),
|
|
required: z.boolean(),
|
|
tooltips: z.string().nullish(),
|
|
type: z.string(),
|
|
unit: z.string().nullish(),
|
|
variable: z.string(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowResponse
|
|
*/
|
|
export const zWorkflowResponse = z.object({
|
|
conversation_variables: z.array(zWorkflowConversationVariableResponse),
|
|
created_at: z.int(),
|
|
created_by: zSimpleAccount.optional(),
|
|
environment_variables: z.array(zWorkflowEnvironmentVariableResponse),
|
|
features: z.record(z.string(), z.unknown()),
|
|
graph: z.record(z.string(), z.unknown()),
|
|
hash: z.string(),
|
|
id: z.string(),
|
|
marked_comment: z.string(),
|
|
marked_name: z.string(),
|
|
rag_pipeline_variables: z.array(zPipelineVariableResponse),
|
|
tool_published: z.boolean(),
|
|
updated_at: z.int(),
|
|
updated_by: zSimpleAccount.optional(),
|
|
version: z.string(),
|
|
})
|
|
|
|
/**
|
|
* WorkflowPaginationResponse
|
|
*/
|
|
export const zWorkflowPaginationResponse = z.object({
|
|
has_more: z.boolean(),
|
|
items: z.array(zWorkflowResponse),
|
|
limit: z.int(),
|
|
page: z.int(),
|
|
})
|
|
|
|
export const zDeleteRagPipelineCustomizedTemplatesByTemplateIdPath = z.object({
|
|
template_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zDeleteRagPipelineCustomizedTemplatesByTemplateIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPatchRagPipelineCustomizedTemplatesByTemplateIdPath = z.object({
|
|
template_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPatchRagPipelineCustomizedTemplatesByTemplateIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPostRagPipelineCustomizedTemplatesByTemplateIdPath = z.object({
|
|
template_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelineCustomizedTemplatesByTemplateIdResponse = zSimpleDataResponse
|
|
|
|
export const zPostRagPipelineDatasetBody = zRagPipelineDatasetImportPayload
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelineDatasetResponse = z.record(z.string(), z.unknown())
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelineEmptyDatasetResponse = z.record(z.string(), z.unknown())
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelineTemplatesResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelineTemplatesByTemplateIdPath = z.object({
|
|
template_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelineTemplatesByTemplateIdResponse = z.record(z.string(), z.unknown())
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesDatasourcePluginsResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesImportsBody = zRagPipelineImportPayload
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesImportsResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesImportsByImportIdConfirmPath = z.object({
|
|
import_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesImportsByImportIdConfirmResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesImportsByPipelineIdCheckDependenciesPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesImportsByPipelineIdCheckDependenciesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesRecommendedPluginsResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesTransformDatasetsByDatasetIdPath = z.object({
|
|
dataset_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesTransformDatasetsByDatasetIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPostRagPipelinesByPipelineIdCustomizedPublishBody = zPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdCustomizedPublishPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdCustomizedPublishResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdExportsPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdExportsResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Workflow runs retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsResponse = zWorkflowRunPaginationResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowRunsTasksByTaskIdStopPath = z.object({
|
|
pipeline_id: z.string(),
|
|
task_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Task stopped successfully
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowRunsTasksByTaskIdStopResponse
|
|
= zSimpleResultResponse
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsByRunIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
run_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Workflow run detail retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsByRunIdResponse = zWorkflowRunDetailResponse
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsByRunIdNodeExecutionsPath = z.object({
|
|
pipeline_id: z.string(),
|
|
run_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Node executions retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowRunsByRunIdNodeExecutionsResponse
|
|
= zWorkflowRunNodeExecutionListResponse
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Published workflows retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsResponse = zWorkflowPaginationResponse
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDefaultWorkflowBlockConfigsPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDefaultWorkflowBlockConfigsResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypePath
|
|
= z.object({
|
|
block_type: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypeResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Draft workflow retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftResponse = zWorkflowResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftResponse = zRagPipelineWorkflowSyncResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceNodesByNodeIdRunBody
|
|
= zDatasourceNodeRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceNodesByNodeIdRunPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceNodesByNodeIdRunResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceVariablesInspectBody
|
|
= zDatasourceVariablesPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceVariablesInspectPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Datasource variables set successfully
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftDatasourceVariablesInspectResponse
|
|
= zWorkflowRunNodeExecutionResponse
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftEnvironmentVariablesPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftEnvironmentVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftIterationNodesByNodeIdRunBody
|
|
= zNodeRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftIterationNodesByNodeIdRunPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftIterationNodesByNodeIdRunResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftLoopNodesByNodeIdRunBody = zNodeRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftLoopNodesByNodeIdRunPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftLoopNodesByNodeIdRunResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdLastRunPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Node last run retrieved successfully
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdLastRunResponse
|
|
= zWorkflowRunNodeExecutionResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdRunBody
|
|
= zNodeRunRequiredPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdRunPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Node run started successfully
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdRunResponse
|
|
= zWorkflowRunNodeExecutionResponse
|
|
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdVariablesPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdVariablesPath = z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftNodesByNodeIdVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftPreProcessingParametersPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftPreProcessingParametersResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftProcessingParametersPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftProcessingParametersResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftRunBody = zDraftWorkflowRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftRunPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsDraftRunResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftSystemVariablesPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftSystemVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftVariablesPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftVariablesPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftVariablesResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
variable_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
variable_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPatchRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
variable_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPatchRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPutRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdResetPath = z.object({
|
|
pipeline_id: z.string(),
|
|
variable_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPutRagPipelinesByPipelineIdWorkflowsDraftVariablesByVariableIdResetResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Published workflow retrieved successfully, or null if not exist
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishResponse = zWorkflowResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishResponse
|
|
= zRagPipelineWorkflowPublishResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdPreviewBody
|
|
= zParser
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdPreviewPath
|
|
= z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdPreviewResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdRunBody
|
|
= zDatasourceNodeRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdRunPath
|
|
= z.object({
|
|
node_id: z.string(),
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedDatasourceNodesByNodeIdRunResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishedPreProcessingParametersPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishedPreProcessingParametersResponse
|
|
= z.record(z.string(), z.unknown())
|
|
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishedProcessingParametersPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetRagPipelinesByPipelineIdWorkflowsPublishedProcessingParametersResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedRunBody = zPublishedWorkflowRunPayload
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedRunPath = z.object({
|
|
pipeline_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsPublishedRunResponse = z.record(
|
|
z.string(),
|
|
z.unknown(),
|
|
)
|
|
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsByWorkflowIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
workflow_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Workflow deleted successfully
|
|
*/
|
|
export const zDeleteRagPipelinesByPipelineIdWorkflowsByWorkflowIdResponse = z.record(
|
|
z.string(),
|
|
z.never(),
|
|
)
|
|
|
|
export const zPatchRagPipelinesByPipelineIdWorkflowsByWorkflowIdPath = z.object({
|
|
pipeline_id: z.string(),
|
|
workflow_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Workflow updated successfully
|
|
*/
|
|
export const zPatchRagPipelinesByPipelineIdWorkflowsByWorkflowIdResponse = zWorkflowResponse
|
|
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsByWorkflowIdRestorePath = z.object({
|
|
pipeline_id: z.string(),
|
|
workflow_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostRagPipelinesByPipelineIdWorkflowsByWorkflowIdRestoreResponse
|
|
= zRagPipelineWorkflowSyncResponse
|