24 lines
426 B
TypeScript
24 lines
426 B
TypeScript
export interface CodexAuth {
|
|
accessToken: string;
|
|
accountId?: string;
|
|
}
|
|
|
|
export interface UsageWindow {
|
|
used_percent: number;
|
|
reset_at: number;
|
|
limit_window_seconds: number;
|
|
}
|
|
|
|
export interface CodexUsageResponse {
|
|
plan_type: string;
|
|
rate_limit: {
|
|
primary_window: UsageWindow;
|
|
secondary_window: UsageWindow;
|
|
};
|
|
credits: {
|
|
has_credits: boolean;
|
|
unlimited: boolean;
|
|
balance: number;
|
|
};
|
|
}
|