mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
75 lines
2.0 KiB
TypeScript
75 lines
2.0 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
import {
|
|
zGetWorkflowRunArchivesDownloadsByDownloadIdPath,
|
|
zGetWorkflowRunArchivesDownloadsByDownloadIdResponse,
|
|
zGetWorkflowRunArchivesResponse,
|
|
zPostWorkflowRunArchivesDownloadsBody,
|
|
zPostWorkflowRunArchivesDownloadsResponse,
|
|
} from './zod.gen'
|
|
|
|
/**
|
|
* Get a temporary workflow-run archive download task
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Get a temporary workflow-run archive download task',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getWorkflowRunArchivesDownloadsByDownloadId',
|
|
path: '/workflow-run-archives/downloads/{download_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetWorkflowRunArchivesDownloadsByDownloadIdPath }))
|
|
.output(zGetWorkflowRunArchivesDownloadsByDownloadIdResponse)
|
|
|
|
export const byDownloadId = {
|
|
get,
|
|
}
|
|
|
|
/**
|
|
* Create or return a temporary workflow-run archive download task
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
description: 'Create or return a temporary workflow-run archive download task',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postWorkflowRunArchivesDownloads',
|
|
path: '/workflow-run-archives/downloads',
|
|
successStatus: 202,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostWorkflowRunArchivesDownloadsBody }))
|
|
.output(zPostWorkflowRunArchivesDownloadsResponse)
|
|
|
|
export const downloads = {
|
|
post,
|
|
byDownloadId,
|
|
}
|
|
|
|
/**
|
|
* List monthly workflow-run archive metadata for the current workspace
|
|
*/
|
|
export const get2 = oc
|
|
.route({
|
|
description: 'List monthly workflow-run archive metadata for the current workspace',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getWorkflowRunArchives',
|
|
path: '/workflow-run-archives',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetWorkflowRunArchivesResponse)
|
|
|
|
export const workflowRunArchives = {
|
|
get: get2,
|
|
downloads,
|
|
}
|
|
|
|
export const contract = {
|
|
workflowRunArchives,
|
|
}
|