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

import datetime as dt
import typing

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


class PersonalStoreFileResponse(UniversalBaseModel):
    """
    Response schema for a file in a personal store.
    """

    id: str = pydantic.Field()
    """
    Vector store file association ID
    """

    file_id: str = pydantic.Field()
    """
    File ID
    """

    vector_store_id: str = pydantic.Field()
    """
    Vector store ID
    """

    original_filename: typing.Optional[str] = pydantic.Field(default=None)
    """
    Original filename
    """

    file_size: typing.Optional[int] = pydantic.Field(default=None)
    """
    File size in bytes
    """

    processing_status: str = pydantic.Field()
    """
    Processing status
    """

    added_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
    """
    When the file was added
    """

    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
