Files
dify/packages/contracts/generated/api/console/remote-files/zod.gen.ts
Stephen Zhou b04b4449db chore(api): annotate simple contract responses (#36331)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-05-19 06:13:20 +00:00

49 lines
942 B
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* RemoteFileUploadPayload
*/
export const zRemoteFileUploadPayload = z.object({
url: z.string(),
})
/**
* FileWithSignedUrl
*/
export const zFileWithSignedUrl = z.object({
created_at: z.int().nullable(),
created_by: z.string().nullable(),
extension: z.string().nullable(),
id: z.string(),
mime_type: z.string().nullable(),
name: z.string(),
size: z.int(),
url: z.string().nullable(),
})
/**
* RemoteFileInfo
*/
export const zRemoteFileInfo = z.object({
file_length: z.int(),
file_type: z.string(),
})
export const zPostRemoteFilesUploadBody = zRemoteFileUploadPayload
/**
* File uploaded successfully
*/
export const zPostRemoteFilesUploadResponse = zFileWithSignedUrl
export const zGetRemoteFilesByUrlPath = z.object({
url: z.string(),
})
/**
* Success
*/
export const zGetRemoteFilesByUrlResponse = zRemoteFileInfo