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

import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.serialization import FieldMetadata
from ..core.unchecked_base_model import UncheckedBaseModel
from .edition_enum import EditionEnum


class VersionResponse(UncheckedBaseModel):
    backend: typing.Any
    dm2: typing.Any
    edition: EditionEnum = pydantic.Field()
    """
    Label Studio edition (Community or Enterprise)
    
    * `Community` - Community
    * `Enterprise` - Enterprise
    """

    label_studio_converter: typing_extensions.Annotated[typing.Any, FieldMetadata(alias="label-studio-converter")] = (
        pydantic.Field(alias="label-studio-converter")
    )
    label_studio_frontend: typing_extensions.Annotated[typing.Any, FieldMetadata(alias="label-studio-frontend")] = (
        pydantic.Field(alias="label-studio-frontend")
    )
    label_studio_os_backend: typing_extensions.Annotated[typing.Any, FieldMetadata(alias="label-studio-os-backend")] = (
        pydantic.Field(alias="label-studio-os-backend")
    )
    label_studio_os_package: typing_extensions.Annotated[typing.Any, FieldMetadata(alias="label-studio-os-package")] = (
        pydantic.Field(alias="label-studio-os-package")
    )
    lsf: typing.Any
    release: str = pydantic.Field()
    """
    Current release version of Label Studio
    """

    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
