feat: model total credits (#26942)

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-04 15:26:37 +08:00
committed by GitHub
parent 5362f69083
commit 84cbf0526d
46 changed files with 1890 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