mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 22:28:55 +08:00
49 lines
918 B
TypeScript
49 lines
918 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import {
|
|
zGetRemoteFilesByUrlPath,
|
|
zGetRemoteFilesByUrlResponse,
|
|
zPostRemoteFilesUploadResponse,
|
|
} from './zod.gen'
|
|
|
|
export const post = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postRemoteFilesUpload',
|
|
path: '/remote-files/upload',
|
|
tags: ['console'],
|
|
})
|
|
.output(zPostRemoteFilesUploadResponse)
|
|
|
|
export const upload = {
|
|
post,
|
|
}
|
|
|
|
export const get = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getRemoteFilesByUrl',
|
|
path: '/remote-files/{url}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetRemoteFilesByUrlPath }))
|
|
.output(zGetRemoteFilesByUrlResponse)
|
|
|
|
export const byUrl = {
|
|
get,
|
|
}
|
|
|
|
export const remoteFiles = {
|
|
upload,
|
|
byUrl,
|
|
}
|
|
|
|
export const contract = {
|
|
remoteFiles,
|
|
}
|