From 1fae8d086db74809e947f124888bb0bb3c0bab22 Mon Sep 17 00:00:00 2001 From: yangjianbo Date: Sun, 22 Feb 2026 21:06:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(codex):=20=E8=A1=A5=E5=9B=9E=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E7=BB=9D=E5=AF=B9=E9=87=8D=E7=BD=AE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/types/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index b6c7dd42..1284c176 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -398,6 +398,7 @@ export interface ApiKey { status: 'active' | 'inactive' | 'quota_exhausted' | 'expired' ip_whitelist: string[] ip_blacklist: string[] + last_used_at: string | null quota: number // Quota limit in USD (0 = unlimited) quota_used: number // Used quota amount in USD expires_at: string | null // Expiration time (null = never expires) @@ -720,9 +721,11 @@ export interface CodexUsageSnapshot { // Canonical fields (normalized by backend, use these preferentially) codex_5h_used_percent?: number // 5-hour window usage percentage codex_5h_reset_after_seconds?: number // Seconds until 5h window reset + codex_5h_reset_at?: string // 5-hour window absolute reset time (RFC3339) codex_5h_window_minutes?: number // 5h window in minutes (should be ~300) codex_7d_used_percent?: number // 7-day window usage percentage codex_7d_reset_after_seconds?: number // Seconds until 7d window reset + codex_7d_reset_at?: string // 7-day window absolute reset time (RFC3339) codex_7d_window_minutes?: number // 7d window in minutes (should be ~10080) codex_usage_updated_at?: string // Last update timestamp