"""Health check endpoints."""

from fastapi import APIRouter
from pydantic import BaseModel

from ieum._version import __version__

router = APIRouter()


class HealthResponse(BaseModel):
    """Health check response."""

    status: str
    version: str
    service: str


@router.get("/health", response_model=HealthResponse)
async def health_check() -> HealthResponse:
    """Health check endpoint.

    Returns:
        Health status with version information.
    """
    return HealthResponse(
        status="healthy",
        version=__version__,
        service="ieum-api",
    )
