dify/packages/contracts/generated/api/console/remote-files/orpc.gen.ts

65 lines
1.7 KiB
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'
/**
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
*
* @deprecated
*/
export const post = oc
.route({
deprecated: true,
description:
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
inputStructure: 'detailed',
method: 'POST',
operationId: 'postRemoteFilesUpload',
path: '/remote-files/upload',
tags: ['console'],
})
.output(zPostRemoteFilesUploadResponse)
export const upload = {
post,
}
/**
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
*
* @deprecated
*/
export const get = oc
.route({
deprecated: true,
description:
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
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,
}