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

import typing
import uuid

import pydantic

from ...core.pydantic_utilities import UniversalBaseModel


class OcrJobCreateRequest(UniversalBaseModel):
    job_id: typing.Optional[uuid.UUID] = pydantic.Field(default=None)
    """
    Optional job id. Provide this when you pre-allocate a storage path using the job id.
    """

    storage_path: str = pydantic.Field()
    """
    Path to the uploaded file within the OCR storage bucket.
    """

    file_name: typing.Optional[str] = pydantic.Field(default=None)
    """
    Original file name.
    """

    content_type: typing.Optional[str] = pydantic.Field(default=None)
    """
    MIME type of the uploaded file (e.g., application/pdf, image/png).
    """

    file_kind: typing.Optional[str] = pydantic.Field(default=None)
    """
    Optional hint for file type (pdf or image).
    """

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