"""Admin (instance-management) response schemas.""" from pydantic import BaseModel from app.api.health import CheckStatus class ServicesStatusOut(BaseModel): """Backing-dependency health for the admin dashboard (mirrors readiness).""" database: CheckStatus redis: CheckStatus ml: CheckStatus class ReindexJob(BaseModel): source: str job_id: str class ReindexResponse(BaseModel): """The scan jobs enqueued by a re-index, one per indexable source.""" jobs: list[ReindexJob] class AdminSettingsOut(BaseModel): """Effective, non-secret instance configuration. Secrets and connection strings are never exposed — only whether an optional integration is set up.""" environment: str allow_registration: bool storage_backend: str media_path: str youtube_enabled: bool coverart_enabled: bool ml_configured: bool acoustid_configured: bool local_import_configured: bool