Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
1fae8d08
Commit
1fae8d08
authored
Feb 22, 2026
by
yangjianbo
Browse files
fix(codex): 补回窗口绝对重置时间类型定义
parent
10636d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/types/index.ts
View file @
1fae8d08
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment