diff --git a/ui/src/components/account/flow-viz/types.ts b/ui/src/components/account/flow-viz/types.ts index 423155b1..a17e3e37 100644 --- a/ui/src/components/account/flow-viz/types.ts +++ b/ui/src/components/account/flow-viz/types.ts @@ -2,6 +2,9 @@ * Type definitions for Account Flow Visualization */ +/** Account tier for subscription level */ +export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown'; + /** Position offset for draggable cards */ export interface DragOffset { x: number; @@ -17,6 +20,8 @@ export interface AccountData { lastUsedAt?: string; color: string; paused?: boolean; + /** Account tier (Antigravity only) */ + tier?: AccountTier; } export interface ProviderData { diff --git a/ui/src/components/monitoring/auth-monitor/hooks.ts b/ui/src/components/monitoring/auth-monitor/hooks.ts index 4af76b84..14868be5 100644 --- a/ui/src/components/monitoring/auth-monitor/hooks.ts +++ b/ui/src/components/monitoring/auth-monitor/hooks.ts @@ -101,6 +101,7 @@ export function useAuthMonitorData(): AuthMonitorData { color: ACCOUNT_COLORS[colorIndex % ACCOUNT_COLORS.length], projectId: account.projectId, paused: account.paused, + tier: account.tier, }; accountsList.push(row); providerData.accounts.push(row); diff --git a/ui/src/components/monitoring/auth-monitor/types.ts b/ui/src/components/monitoring/auth-monitor/types.ts index 1490c134..1ddbf44a 100644 --- a/ui/src/components/monitoring/auth-monitor/types.ts +++ b/ui/src/components/monitoring/auth-monitor/types.ts @@ -2,6 +2,9 @@ * Type definitions for Auth Monitor components */ +/** Account tier for subscription level */ +export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown'; + export interface AccountRow { id: string; email: string; @@ -16,6 +19,8 @@ export interface AccountRow { projectId?: string; /** Whether account is paused (skipped in quota rotation) */ paused?: boolean; + /** Account tier (Antigravity only) */ + tier?: AccountTier; } export interface ProviderStats { diff --git a/ui/src/lib/api-client.ts b/ui/src/lib/api-client.ts index 77b73065..cf190caa 100644 --- a/ui/src/lib/api-client.ts +++ b/ui/src/lib/api-client.ts @@ -83,8 +83,8 @@ export interface OAuthAccount { paused?: boolean; /** ISO timestamp when account was paused */ pausedAt?: string; - /** Account tier: free or paid (Pro/Ultra combined) */ - tier?: 'free' | 'paid' | 'unknown'; + /** Account tier: free, pro, ultra, or unknown */ + tier?: 'free' | 'pro' | 'ultra' | 'unknown'; /** GCP Project ID (Antigravity only) - read-only */ projectId?: string; }