"""Instance-admin schemas. Operator-facing, owner-only — operational status and config, never tree data or PII (instance ownership doesn't bypass privacy).""" from pydantic import BaseModel from app.schemas.ai_policy import ConfiguredProvider class InstanceStatus(BaseModel): version: str env: str # Operator account(s) — the email(s) named in OWNER_EMAIL. owner_emails: list[str] require_email_verification: bool # Aggregate, non-identifying counts (live rows only). user_count: int tree_count: int # Instance-wide AI configuration (no secrets). default_llm_provider: str ai_providers: list[ConfiguredProvider]