# This file was auto-generated by Fern from our API Definition.

from ..core.pydantic_utilities import UniversalBaseModel
import typing
from .all_cameras_status import AllCamerasStatus
from .status import Status
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class ServerStatus(UniversalBaseModel):
    """
    Contains the status of the app
    """

    cameras: typing.Optional[AllCamerasStatus] = None
    name: str
    robots: typing.Optional[typing.List[str]] = None
    status: Status
    version_id: typing.Optional[str] = pydantic.Field(default=None)
    """
    Current version of the teleoperation server
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
            extra="allow", frozen=True
        )  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
