mirror of
https://github.com/langgenius/dify.git
synced 2026-06-08 09:27:39 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
49 lines
942 B
TypeScript
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
|