mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
refactor(dify-agent): download Binding files through Agent Stub (#40143)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
autofix-ci[bot]
parent
c094117ca2
commit
916d7e1c96
@@ -157,9 +157,9 @@ import {
|
||||
zPostAgentByAgentIdPublishBody,
|
||||
zPostAgentByAgentIdPublishPath,
|
||||
zPostAgentByAgentIdPublishResponse,
|
||||
zPostAgentByAgentIdSandboxFilesUploadBody,
|
||||
zPostAgentByAgentIdSandboxFilesUploadPath,
|
||||
zPostAgentByAgentIdSandboxFilesUploadResponse,
|
||||
zPostAgentByAgentIdSandboxFilesDownloadBody,
|
||||
zPostAgentByAgentIdSandboxFilesDownloadPath,
|
||||
zPostAgentByAgentIdSandboxFilesDownloadResponse,
|
||||
zPostAgentByAgentIdSkillsBySlugInferToolsPath,
|
||||
zPostAgentByAgentIdSkillsBySlugInferToolsResponse,
|
||||
zPostAgentByAgentIdSkillsUploadBody,
|
||||
@@ -1179,6 +1179,30 @@ export const referencingWorkflows = {
|
||||
get: get28,
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a ToolFile from one Agent App Binding file and return its download URL
|
||||
*/
|
||||
export const post17 = oc
|
||||
.route({
|
||||
description: 'Create a ToolFile from one Agent App Binding file and return its download URL',
|
||||
inputStructure: 'detailed',
|
||||
method: 'POST',
|
||||
operationId: 'postAgentByAgentIdSandboxFilesDownload',
|
||||
path: '/agent/{agent_id}/sandbox/files/download',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
body: zPostAgentByAgentIdSandboxFilesDownloadBody,
|
||||
params: zPostAgentByAgentIdSandboxFilesDownloadPath,
|
||||
}),
|
||||
)
|
||||
.output(zPostAgentByAgentIdSandboxFilesDownloadResponse)
|
||||
|
||||
export const download5 = {
|
||||
post: post17,
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a text/binary preview file in an Agent App conversation sandbox
|
||||
*/
|
||||
@@ -1203,30 +1227,6 @@ export const read = {
|
||||
get: get29,
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload one Agent App sandbox file and return a signed download URL
|
||||
*/
|
||||
export const post17 = oc
|
||||
.route({
|
||||
description: 'Upload one Agent App sandbox file and return a signed download URL',
|
||||
inputStructure: 'detailed',
|
||||
method: 'POST',
|
||||
operationId: 'postAgentByAgentIdSandboxFilesUpload',
|
||||
path: '/agent/{agent_id}/sandbox/files/upload',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
body: zPostAgentByAgentIdSandboxFilesUploadBody,
|
||||
params: zPostAgentByAgentIdSandboxFilesUploadPath,
|
||||
}),
|
||||
)
|
||||
.output(zPostAgentByAgentIdSandboxFilesUploadResponse)
|
||||
|
||||
export const upload2 = {
|
||||
post: post17,
|
||||
}
|
||||
|
||||
/**
|
||||
* List a directory in an Agent App conversation sandbox
|
||||
*/
|
||||
@@ -1249,8 +1249,8 @@ export const get30 = oc
|
||||
|
||||
export const files5 = {
|
||||
get: get30,
|
||||
download: download5,
|
||||
read,
|
||||
upload: upload2,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1294,7 +1294,7 @@ export const post18 = oc
|
||||
)
|
||||
.output(zPostAgentByAgentIdSkillsUploadResponse)
|
||||
|
||||
export const upload3 = {
|
||||
export const upload2 = {
|
||||
post: post18,
|
||||
}
|
||||
|
||||
@@ -1338,7 +1338,7 @@ export const bySlug = {
|
||||
}
|
||||
|
||||
export const skills3 = {
|
||||
upload: upload3,
|
||||
upload: upload2,
|
||||
bySlug,
|
||||
}
|
||||
|
||||
|
||||
@@ -433,6 +433,16 @@ export type SandboxListResponse = {
|
||||
truncated?: boolean
|
||||
}
|
||||
|
||||
export type AgentSandboxDownloadPayload = {
|
||||
caller_id: string
|
||||
caller_type: 'build_draft' | 'conversation'
|
||||
path: string
|
||||
}
|
||||
|
||||
export type SandboxDownloadResponse = {
|
||||
url: string
|
||||
}
|
||||
|
||||
export type SandboxReadResponse = {
|
||||
binary: boolean
|
||||
path: string
|
||||
@@ -441,16 +451,6 @@ export type SandboxReadResponse = {
|
||||
truncated: boolean
|
||||
}
|
||||
|
||||
export type AgentSandboxUploadPayload = {
|
||||
caller_id: string
|
||||
caller_type: 'build_draft' | 'conversation'
|
||||
path: string
|
||||
}
|
||||
|
||||
export type SandboxUploadResponse = {
|
||||
url: string
|
||||
}
|
||||
|
||||
export type AgentSkillUploadResponse = {
|
||||
manifest: SkillManifest
|
||||
skill: AgentUploadedSkillResponse
|
||||
@@ -3117,6 +3117,22 @@ export type GetAgentByAgentIdSandboxFilesResponses = {
|
||||
export type GetAgentByAgentIdSandboxFilesResponse =
|
||||
GetAgentByAgentIdSandboxFilesResponses[keyof GetAgentByAgentIdSandboxFilesResponses]
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesDownloadData = {
|
||||
body: AgentSandboxDownloadPayload
|
||||
path: {
|
||||
agent_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/agent/{agent_id}/sandbox/files/download'
|
||||
}
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesDownloadResponses = {
|
||||
200: SandboxDownloadResponse
|
||||
}
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesDownloadResponse =
|
||||
PostAgentByAgentIdSandboxFilesDownloadResponses[keyof PostAgentByAgentIdSandboxFilesDownloadResponses]
|
||||
|
||||
export type GetAgentByAgentIdSandboxFilesReadData = {
|
||||
body?: never
|
||||
path: {
|
||||
@@ -3137,22 +3153,6 @@ export type GetAgentByAgentIdSandboxFilesReadResponses = {
|
||||
export type GetAgentByAgentIdSandboxFilesReadResponse =
|
||||
GetAgentByAgentIdSandboxFilesReadResponses[keyof GetAgentByAgentIdSandboxFilesReadResponses]
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesUploadData = {
|
||||
body: AgentSandboxUploadPayload
|
||||
path: {
|
||||
agent_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/agent/{agent_id}/sandbox/files/upload'
|
||||
}
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesUploadResponses = {
|
||||
200: SandboxUploadResponse
|
||||
}
|
||||
|
||||
export type PostAgentByAgentIdSandboxFilesUploadResponse =
|
||||
PostAgentByAgentIdSandboxFilesUploadResponses[keyof PostAgentByAgentIdSandboxFilesUploadResponses]
|
||||
|
||||
export type PostAgentByAgentIdSkillsUploadData = {
|
||||
body: {
|
||||
file: Blob | File
|
||||
|
||||
@@ -200,6 +200,22 @@ export const zSandboxInfoResponse = z.object({
|
||||
workspace_cwd: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* AgentSandboxDownloadPayload
|
||||
*/
|
||||
export const zAgentSandboxDownloadPayload = z.object({
|
||||
caller_id: z.string().min(1),
|
||||
caller_type: z.enum(['build_draft', 'conversation']),
|
||||
path: z.string().min(1),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxDownloadResponse
|
||||
*/
|
||||
export const zSandboxDownloadResponse = z.object({
|
||||
url: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxReadResponse
|
||||
*/
|
||||
@@ -211,22 +227,6 @@ export const zSandboxReadResponse = z.object({
|
||||
truncated: z.boolean(),
|
||||
})
|
||||
|
||||
/**
|
||||
* AgentSandboxUploadPayload
|
||||
*/
|
||||
export const zAgentSandboxUploadPayload = z.object({
|
||||
caller_id: z.string().min(1),
|
||||
caller_type: z.enum(['build_draft', 'conversation']),
|
||||
path: z.string().min(1),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxUploadResponse
|
||||
*/
|
||||
export const zSandboxUploadResponse = z.object({
|
||||
url: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* AgentConfigSnapshotRestoreResponse
|
||||
*/
|
||||
@@ -3500,6 +3500,17 @@ export const zGetAgentByAgentIdSandboxFilesQuery = z.object({
|
||||
*/
|
||||
export const zGetAgentByAgentIdSandboxFilesResponse = zSandboxListResponse
|
||||
|
||||
export const zPostAgentByAgentIdSandboxFilesDownloadBody = zAgentSandboxDownloadPayload
|
||||
|
||||
export const zPostAgentByAgentIdSandboxFilesDownloadPath = z.object({
|
||||
agent_id: z.uuid(),
|
||||
})
|
||||
|
||||
/**
|
||||
* Download URL returned
|
||||
*/
|
||||
export const zPostAgentByAgentIdSandboxFilesDownloadResponse = zSandboxDownloadResponse
|
||||
|
||||
export const zGetAgentByAgentIdSandboxFilesReadPath = z.object({
|
||||
agent_id: z.uuid(),
|
||||
})
|
||||
@@ -3515,17 +3526,6 @@ export const zGetAgentByAgentIdSandboxFilesReadQuery = z.object({
|
||||
*/
|
||||
export const zGetAgentByAgentIdSandboxFilesReadResponse = zSandboxReadResponse
|
||||
|
||||
export const zPostAgentByAgentIdSandboxFilesUploadBody = zAgentSandboxUploadPayload
|
||||
|
||||
export const zPostAgentByAgentIdSandboxFilesUploadPath = z.object({
|
||||
agent_id: z.uuid(),
|
||||
})
|
||||
|
||||
/**
|
||||
* Uploaded
|
||||
*/
|
||||
export const zPostAgentByAgentIdSandboxFilesUploadResponse = zSandboxUploadResponse
|
||||
|
||||
export const zPostAgentByAgentIdSkillsUploadBody = z.object({
|
||||
file: z.custom<Blob | File>((value) => value instanceof Blob || value instanceof File),
|
||||
})
|
||||
|
||||
@@ -406,9 +406,9 @@ import {
|
||||
zPostAppsByAppIdWorkflowCommentsByCommentIdResolveResponse,
|
||||
zPostAppsByAppIdWorkflowCommentsPath,
|
||||
zPostAppsByAppIdWorkflowCommentsResponse,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadBody,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadPath,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponse,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadBody,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadPath,
|
||||
zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponse,
|
||||
zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopPath,
|
||||
zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopResponse,
|
||||
zPostAppsByAppIdWorkflowsByWorkflowIdRestorePath,
|
||||
@@ -3050,6 +3050,31 @@ export const byRunId = {
|
||||
nodeExecutions,
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a ToolFile from one workflow Agent Binding file and return its download URL
|
||||
*/
|
||||
export const post42 = oc
|
||||
.route({
|
||||
description:
|
||||
'Create a ToolFile from one workflow Agent Binding file and return its download URL',
|
||||
inputStructure: 'detailed',
|
||||
method: 'POST',
|
||||
operationId: 'postAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownload',
|
||||
path: '/apps/{app_id}/workflow-runs/{workflow_run_id}/agent-nodes/{node_id}/sandbox/files/download',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
body: zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadBody,
|
||||
params: zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadPath,
|
||||
}),
|
||||
)
|
||||
.output(zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponse)
|
||||
|
||||
export const download5 = {
|
||||
post: post42,
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a text/binary preview file in a workflow Agent node sandbox
|
||||
*/
|
||||
@@ -3074,30 +3099,6 @@ export const read = {
|
||||
get: get58,
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload one workflow Agent sandbox file and return a signed download URL
|
||||
*/
|
||||
export const post42 = oc
|
||||
.route({
|
||||
description: 'Upload one workflow Agent sandbox file and return a signed download URL',
|
||||
inputStructure: 'detailed',
|
||||
method: 'POST',
|
||||
operationId: 'postAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUpload',
|
||||
path: '/apps/{app_id}/workflow-runs/{workflow_run_id}/agent-nodes/{node_id}/sandbox/files/upload',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
body: zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadBody,
|
||||
params: zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadPath,
|
||||
}),
|
||||
)
|
||||
.output(zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponse)
|
||||
|
||||
export const upload3 = {
|
||||
post: post42,
|
||||
}
|
||||
|
||||
/**
|
||||
* List a directory in a workflow Agent node sandbox
|
||||
*/
|
||||
@@ -3120,8 +3121,8 @@ export const get59 = oc
|
||||
|
||||
export const files5 = {
|
||||
get: get59,
|
||||
download: download5,
|
||||
read,
|
||||
upload: upload3,
|
||||
}
|
||||
|
||||
export const sandbox = {
|
||||
|
||||
@@ -865,6 +865,15 @@ export type SandboxListResponse = {
|
||||
truncated?: boolean
|
||||
}
|
||||
|
||||
export type WorkflowAgentSandboxDownloadPayload = {
|
||||
node_execution_id: string
|
||||
path: string
|
||||
}
|
||||
|
||||
export type SandboxDownloadResponse = {
|
||||
url: string
|
||||
}
|
||||
|
||||
export type SandboxReadResponse = {
|
||||
binary: boolean
|
||||
path: string
|
||||
@@ -873,15 +882,6 @@ export type SandboxReadResponse = {
|
||||
truncated: boolean
|
||||
}
|
||||
|
||||
export type WorkflowAgentSandboxUploadPayload = {
|
||||
node_execution_id: string
|
||||
path: string
|
||||
}
|
||||
|
||||
export type SandboxUploadResponse = {
|
||||
url: string
|
||||
}
|
||||
|
||||
export type WorkflowCommentBasicList = {
|
||||
data: Array<WorkflowCommentBasic>
|
||||
}
|
||||
@@ -5700,6 +5700,25 @@ export type GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFi
|
||||
export type GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesResponse =
|
||||
GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesResponses[keyof GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesResponses]
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadData = {
|
||||
body: WorkflowAgentSandboxDownloadPayload
|
||||
path: {
|
||||
app_id: string
|
||||
node_id: string
|
||||
workflow_run_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/apps/{app_id}/workflow-runs/{workflow_run_id}/agent-nodes/{node_id}/sandbox/files/download'
|
||||
}
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponses =
|
||||
{
|
||||
200: SandboxDownloadResponse
|
||||
}
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponse =
|
||||
PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponses[keyof PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponses]
|
||||
|
||||
export type GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadData = {
|
||||
body?: never
|
||||
path: {
|
||||
@@ -5721,25 +5740,6 @@ export type GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFi
|
||||
export type GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadResponse =
|
||||
GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadResponses[keyof GetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadResponses]
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadData = {
|
||||
body: WorkflowAgentSandboxUploadPayload
|
||||
path: {
|
||||
app_id: string
|
||||
node_id: string
|
||||
workflow_run_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/apps/{app_id}/workflow-runs/{workflow_run_id}/agent-nodes/{node_id}/sandbox/files/upload'
|
||||
}
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponses =
|
||||
{
|
||||
200: SandboxUploadResponse
|
||||
}
|
||||
|
||||
export type PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponse =
|
||||
PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponses[keyof PostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponses]
|
||||
|
||||
export type GetAppsByAppIdWorkflowCommentsData = {
|
||||
body?: never
|
||||
path: {
|
||||
|
||||
@@ -545,6 +545,21 @@ export const zWorkflowRunExportResponse = z.object({
|
||||
status: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkflowAgentSandboxDownloadPayload
|
||||
*/
|
||||
export const zWorkflowAgentSandboxDownloadPayload = z.object({
|
||||
node_execution_id: z.string().min(1),
|
||||
path: z.string().min(1),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxDownloadResponse
|
||||
*/
|
||||
export const zSandboxDownloadResponse = z.object({
|
||||
url: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxReadResponse
|
||||
*/
|
||||
@@ -556,21 +571,6 @@ export const zSandboxReadResponse = z.object({
|
||||
truncated: z.boolean(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkflowAgentSandboxUploadPayload
|
||||
*/
|
||||
export const zWorkflowAgentSandboxUploadPayload = z.object({
|
||||
node_execution_id: z.string().min(1),
|
||||
path: z.string().min(1),
|
||||
})
|
||||
|
||||
/**
|
||||
* SandboxUploadResponse
|
||||
*/
|
||||
export const zSandboxUploadResponse = z.object({
|
||||
url: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkflowCommentCreatePayload
|
||||
*/
|
||||
@@ -5960,6 +5960,22 @@ export const zGetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandbox
|
||||
export const zGetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesResponse =
|
||||
zSandboxListResponse
|
||||
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadBody =
|
||||
zWorkflowAgentSandboxDownloadPayload
|
||||
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadPath =
|
||||
z.object({
|
||||
app_id: z.uuid(),
|
||||
node_id: z.string(),
|
||||
workflow_run_id: z.uuid(),
|
||||
})
|
||||
|
||||
/**
|
||||
* Download URL returned
|
||||
*/
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesDownloadResponse =
|
||||
zSandboxDownloadResponse
|
||||
|
||||
export const zGetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadPath =
|
||||
z.object({
|
||||
app_id: z.uuid(),
|
||||
@@ -5979,22 +5995,6 @@ export const zGetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandbox
|
||||
export const zGetAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesReadResponse =
|
||||
zSandboxReadResponse
|
||||
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadBody =
|
||||
zWorkflowAgentSandboxUploadPayload
|
||||
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadPath =
|
||||
z.object({
|
||||
app_id: z.uuid(),
|
||||
node_id: z.string(),
|
||||
workflow_run_id: z.uuid(),
|
||||
})
|
||||
|
||||
/**
|
||||
* Uploaded
|
||||
*/
|
||||
export const zPostAppsByAppIdWorkflowRunsByWorkflowRunIdAgentNodesByNodeIdSandboxFilesUploadResponse =
|
||||
zSandboxUploadResponse
|
||||
|
||||
export const zGetAppsByAppIdWorkflowCommentsPath = z.object({
|
||||
app_id: z.uuid(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user