/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { EnforcementEnum } from './EnforcementEnum'; import type { IntervalTypeEnum } from './IntervalTypeEnum'; import type { SpendCapScopeEnum } from './SpendCapScopeEnum'; /** * Spend cap across any scope (tenant, agent, user-per-agent). * * Admins write ``max_cost_usd``, ``interval_type``, ``enforcement``, * ``alert_thresholds`` and ``enabled``. The spend counters * (``current_spend_usd``/``remaining_usd``/``is_exceeded``) are reconciled * from ClickHouse and surfaced read-only so a UI can render a progress bar. * ``scope``/``platform``/``mentor``/``user`` are set by the view, never the * request body; ``mentor_unique_id``/``username`` are echoed read-only so the * caller can tell which agent/user a cap belongs to. */ export type SpendCap = { readonly id: number; readonly scope: SpendCapScopeEnum; readonly platform_key: string; readonly mentor_unique_id: string | null; readonly mentor_name: string | null; readonly username: string | null; readonly email: string | null; interval_type: IntervalTypeEnum; max_cost_usd: string; enforcement?: EnforcementEnum; alert_thresholds?: any; readonly period_started_at: string | null; readonly current_spend_usd: string; readonly remaining_usd: string; readonly is_exceeded: boolean; readonly last_reconciled_at: string | null; enabled?: boolean; readonly created_at: string; readonly updated_at: string; };