dify/packages/contracts/generated/api/console/workflow-run-archives/orpc.gen.ts
非法操作 f09d2b191f
feat: archive logs export (#38207)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-14 08:25:37 +00:00

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,
}