"""Health router — no auth required."""

from __future__ import annotations

from fastapi import APIRouter

import zia
from zia.api.models import HealthResponse

router = APIRouter(tags=["Health"])


@router.get("/health", response_model=HealthResponse, summary="Liveness check")
async def health() -> HealthResponse:
    """Returns 200 OK with platform version. No authentication required."""
    return HealthResponse(version=zia.__version__)
