mirror of
https://github.com/langgenius/dify.git
synced 2026-09-21 05:11:22 +08:00
chore: more upload file size for paid user (#39967)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -27,6 +27,12 @@ export type FeatureModel = {
|
||||
workspace_members: LicenseLimitationModel
|
||||
}
|
||||
|
||||
export type VectorSpaceLimitationModel = {
|
||||
limit: number
|
||||
size: number
|
||||
usage_unknown?: boolean
|
||||
}
|
||||
|
||||
export type LimitationModel = {
|
||||
limit: number
|
||||
size: number
|
||||
@@ -84,7 +90,7 @@ export type GetFeaturesVectorSpaceData = {
|
||||
}
|
||||
|
||||
export type GetFeaturesVectorSpaceResponses = {
|
||||
200: LimitationModel
|
||||
200: VectorSpaceLimitationModel
|
||||
}
|
||||
|
||||
export type GetFeaturesVectorSpaceResponse =
|
||||
|
||||
@@ -2,6 +2,15 @@
|
||||
|
||||
import * as z from 'zod'
|
||||
|
||||
/**
|
||||
* VectorSpaceLimitationModel
|
||||
*/
|
||||
export const zVectorSpaceLimitationModel = z.object({
|
||||
limit: z.int(),
|
||||
size: z.int(),
|
||||
usage_unknown: z.boolean().optional().default(false),
|
||||
})
|
||||
|
||||
/**
|
||||
* LimitationModel
|
||||
*/
|
||||
@@ -112,4 +121,4 @@ export const zGetFeaturesResponse = zFeatureModel
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetFeaturesVectorSpaceResponse = zLimitationModel
|
||||
export const zGetFeaturesVectorSpaceResponse = zVectorSpaceLimitationModel
|
||||
|
||||
@@ -16,6 +16,7 @@ export type UploadConfig = {
|
||||
file_upload_limit: number
|
||||
image_file_batch_limit: number
|
||||
image_file_size_limit: number
|
||||
knowledge_file_size_limit: number
|
||||
single_chunk_attachment_limit: number
|
||||
skill_file_size_limit: number
|
||||
video_file_size_limit: number
|
||||
|
||||
@@ -20,6 +20,7 @@ export const zUploadConfig = z.object({
|
||||
file_upload_limit: z.int(),
|
||||
image_file_batch_limit: z.int(),
|
||||
image_file_size_limit: z.int(),
|
||||
knowledge_file_size_limit: z.int(),
|
||||
single_chunk_attachment_limit: z.int(),
|
||||
skill_file_size_limit: z.int(),
|
||||
video_file_size_limit: z.int(),
|
||||
|
||||
@@ -722,6 +722,8 @@ export type DocumentStatusResponse = {
|
||||
completed_at: number | null
|
||||
completed_segments?: number | null
|
||||
error: string | null
|
||||
error_code?: string | null
|
||||
estimated_vector_space_mb?: number | null
|
||||
id: string
|
||||
indexing_status: string
|
||||
parsing_completed_at: number | null
|
||||
@@ -730,6 +732,7 @@ export type DocumentStatusResponse = {
|
||||
splitting_completed_at: number | null
|
||||
stopped_at: number | null
|
||||
total_segments?: number | null
|
||||
vector_space_limit_mb?: number | null
|
||||
}
|
||||
|
||||
export type DocumentTextCreatePayload = {
|
||||
@@ -2414,6 +2417,7 @@ export type PostDatasetsByDatasetIdDocumentCreateByFileErrors = {
|
||||
400: unknown
|
||||
401: unknown
|
||||
403: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
export type PostDatasetsByDatasetIdDocumentCreateByFileResponses = {
|
||||
@@ -2461,6 +2465,7 @@ export type PostDatasetsByDatasetIdDocumentCreateByFile2Errors = {
|
||||
400: unknown
|
||||
401: unknown
|
||||
403: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
export type PostDatasetsByDatasetIdDocumentCreateByFile2Responses = {
|
||||
@@ -2681,6 +2686,7 @@ export type PatchDatasetsByDatasetIdDocumentsByDocumentIdErrors = {
|
||||
401: unknown
|
||||
403: unknown
|
||||
404: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
export type PatchDatasetsByDatasetIdDocumentsByDocumentIdResponses = {
|
||||
@@ -2966,6 +2972,7 @@ export type PostDatasetsByDatasetIdDocumentsByDocumentIdUpdateByFileErrors = {
|
||||
401: unknown
|
||||
403: unknown
|
||||
404: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
export type PostDatasetsByDatasetIdDocumentsByDocumentIdUpdateByFileResponses = {
|
||||
@@ -3017,6 +3024,7 @@ export type PostDatasetsByDatasetIdDocumentsByDocumentIdUpdateByFile2Errors = {
|
||||
401: unknown
|
||||
403: unknown
|
||||
404: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
export type PostDatasetsByDatasetIdDocumentsByDocumentIdUpdateByFile2Responses = {
|
||||
|
||||
@@ -872,6 +872,8 @@ export const zDocumentStatusResponse = z.object({
|
||||
completed_at: z.int().nullable(),
|
||||
completed_segments: z.int().nullish(),
|
||||
error: z.string().nullable(),
|
||||
error_code: z.string().nullish(),
|
||||
estimated_vector_space_mb: z.int().nullish(),
|
||||
id: z.string(),
|
||||
indexing_status: z.string(),
|
||||
parsing_completed_at: z.int().nullable(),
|
||||
@@ -880,6 +882,7 @@ export const zDocumentStatusResponse = z.object({
|
||||
splitting_completed_at: z.int().nullable(),
|
||||
stopped_at: z.int().nullable(),
|
||||
total_segments: z.int().nullish(),
|
||||
vector_space_limit_mb: z.int().nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user