baodan/dify-main/packages/contracts/generated/api/console/remote-files/zod.gen.ts

49 lines
942 B
TypeScript
Raw Normal View History

// 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