feat: model total credits (#30727)

Co-authored-by: CodingOnStar <hanxujiang@dify.ai>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
Coding On Star
2026-01-08 14:11:44 +08:00
committed by GitHub
parent fe0802262c
commit cd1af04dee
46 changed files with 1892 additions and 77 deletions

View File

@@ -142,6 +142,9 @@ export type IWorkspace = {
export type ICurrentWorkspace = Omit<IWorkspace, 'current'> & {
role: 'owner' | 'admin' | 'editor' | 'dataset_operator' | 'normal'
providers: Provider[]
trial_credits: number
trial_credits_used: number
next_credit_reset_date: number
trial_end_reason?: string
custom_config?: {
remove_webapp_brand?: boolean