fix: regenerate TypeScript types for Phase 4 typed limits

- Add total_output_tokens, output_token_limit/pct/source, total_token_limit/pct/source, message_limit/pct/source to RuntimeUsageCurrent
- Add output_tokens_per_minute to RuntimeUsageBurnRate
- Add limit_kind to RuntimeUsagePredictions
This commit is contained in:
null 2026-05-21 02:07:25 -05:00
parent cd688ced26
commit dc5af312a6
3 changed files with 15 additions and 0 deletions

View File

@ -10,5 +10,6 @@
*/ */
export interface RuntimeUsageBurnRate { export interface RuntimeUsageBurnRate {
tokens_per_minute: number; tokens_per_minute: number;
output_tokens_per_minute?: number;
cost_usd_per_minute: number; cost_usd_per_minute: number;
} }

View File

@ -11,8 +11,11 @@
export interface RuntimeUsageCurrent { export interface RuntimeUsageCurrent {
total_cost_usd: number; total_cost_usd: number;
total_tokens: number; total_tokens: number;
total_output_tokens?: number;
total_calls: number; total_calls: number;
/** @deprecated Use typed limit fields below */
token_limit?: number | null; token_limit?: number | null;
/** @deprecated Use typed limit pct fields */
token_pct?: number | null; token_pct?: number | null;
cost_limit_usd?: number | null; cost_limit_usd?: number | null;
cost_pct?: number | null; cost_pct?: number | null;
@ -20,4 +23,14 @@ export interface RuntimeUsageCurrent {
token_limit_source?: string | null; token_limit_source?: string | null;
/** Source of the cost limit data */ /** Source of the cost limit data */
cost_limit_source?: string | null; cost_limit_source?: string | null;
// Typed limits (Phase 4)
output_token_limit?: number | null;
output_token_limit_pct?: number | null;
output_token_limit_source?: string | null;
total_token_limit?: number | null;
total_token_limit_pct?: number | null;
total_token_limit_source?: string | null;
message_limit?: number | null;
message_pct?: number | null;
message_limit_source?: string | null;
} }

View File

@ -11,4 +11,5 @@
export interface RuntimeUsagePredictions { export interface RuntimeUsagePredictions {
time_to_limit_ms?: number | null; time_to_limit_ms?: number | null;
safe: boolean; safe: boolean;
limit_kind?: string;
} }