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

from ...core.pydantic_utilities import UniversalBaseModel
from .ocr_job_id import OcrJobId
import pydantic
from .ocr_job_status import OcrJobStatus
import typing
from .ocr_response import OcrResponse
from ...core.pydantic_utilities import IS_PYDANTIC_V2


class OcrJobResponse(UniversalBaseModel):
    job_id: OcrJobId = pydantic.Field(alias="jobId")
    status: OcrJobStatus
    data: typing.Optional[OcrResponse] = None

    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
