mirror of
https://github.com/langgenius/dify.git
synced 2026-09-21 05:11:22 +08:00
feat: improve ai-credits display (#38589)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,7 @@ export type TenantInfoResponse = {
|
||||
role?: string | null
|
||||
status?: string | null
|
||||
trial_credits?: number | null
|
||||
trial_credits_exhausted_at?: number | null
|
||||
trial_credits_used?: number | null
|
||||
trial_end_reason?: string | null
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ export const zTenantInfoResponse = z.object({
|
||||
role: z.string().nullish(),
|
||||
status: z.string().nullish(),
|
||||
trial_credits: z.int().nullish(),
|
||||
trial_credits_exhausted_at: z.int().nullish(),
|
||||
trial_credits_used: z.int().nullish(),
|
||||
trial_end_reason: z.string().nullish(),
|
||||
})
|
||||
|
||||
@@ -19,6 +19,7 @@ export type TenantInfoResponse = {
|
||||
role?: string | null
|
||||
status?: string | null
|
||||
trial_credits?: number | null
|
||||
trial_credits_exhausted_at?: number | null
|
||||
trial_credits_used?: number | null
|
||||
trial_end_reason?: string | null
|
||||
}
|
||||
|
||||
@@ -633,6 +633,7 @@ export const zTenantInfoResponse = z.object({
|
||||
role: z.string().nullish(),
|
||||
status: z.string().nullish(),
|
||||
trial_credits: z.int().nullish(),
|
||||
trial_credits_exhausted_at: z.int().nullish(),
|
||||
trial_credits_used: z.int().nullish(),
|
||||
trial_end_reason: z.string().nullish(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user