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

import typing

import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class StreamBoundingBox(UniversalBaseModel):
    """
    A bounding box around a face.
    """

    x: typing.Optional[float] = pydantic.Field(default=None)
    """
    x-coordinate of bounding box top left corner.
    """

    y: typing.Optional[float] = pydantic.Field(default=None)
    """
    y-coordinate of bounding box top left corner.
    """

    w: typing.Optional[float] = pydantic.Field(default=None)
    """
    Bounding box width.
    """

    h: typing.Optional[float] = pydantic.Field(default=None)
    """
    Bounding box height.
    """

    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
