# 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 PersonalStoreResponse(UniversalBaseModel):
    """
    Response schema for a single personal vector store.
    """

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

    name: str = pydantic.Field()
    """
    Store name
    """

    description: typing.Optional[str] = pydantic.Field(default=None)
    """
    Store description
    """

    is_default: bool = pydantic.Field()
    """
    Whether this is the auto-provisioned default store
    """

    file_count: int = pydantic.Field()
    """
    Number of files in the store
    """

    data_size: int = pydantic.Field()
    """
    Total data size in bytes
    """

    created_at: dt.datetime = pydantic.Field()
    """
    When the store was created
    """

    updated_at: dt.datetime = pydantic.Field()
    """
    Last update timestamp
    """

    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
