Files
dify/web/contract/console/files.ts
T
盐粒 YanliGitHubJingyi-DifyyyhJoelautofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>hjlarryBond ZhuYansong Zhangyyh
3f2d22ec0f feat(agent-v2): sync nightly updates to main (#37599)
Co-authored-by: Jingyi-Dify <[email protected]>
Co-authored-by: yyh <[email protected]>
Co-authored-by: Joel <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hjlarry <[email protected]>
Co-authored-by: Bond Zhu <[email protected]>
Co-authored-by: Yansong Zhang <[email protected]>
Co-authored-by: yyh <[email protected]>
2026-06-18 05:03:34 +00:00

17 lines
389 B
TypeScript

import type { PostFilesUploadResponse } from '@dify/contracts/api/console/files/types.gen'
import { type } from '@orpc/contract'
import { base } from '../base'
export const fileUploadContract = base
.route({
path: '/files/upload',
method: 'POST',
successStatus: 201,
})
.input(type<{
body: {
file: File
}
}>())
.output(type<PostFilesUploadResponse>())