"""
Generated by Sideko (sideko.dev)
"""

import typing
import typing_extensions
import pydantic

from .get_v1_image_projects_id_response_downloads_item import (
    GetV1ImageProjectsIdResponseDownloadsItem,
)


class GetV1ImageProjectsIdResponse(pydantic.BaseModel):
    model_config = pydantic.ConfigDict(
        arbitrary_types_allowed=True,
        populate_by_name=True,
    )

    created_at: str = pydantic.Field(alias="created_at")
    downloads: typing.List[GetV1ImageProjectsIdResponseDownloadsItem] = pydantic.Field(
        alias="downloads"
    )
    id: str = pydantic.Field(alias="id")
    image_count: float = pydantic.Field(alias="image_count")
    name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
    status: typing_extensions.Literal[
        "canceled", "complete", "draft", "error", "queued", "rendering"
    ] = pydantic.Field(alias="status")
    total_frame_cost: float = pydantic.Field(alias="total_frame_cost")
    type_field: typing_extensions.Literal[
        "AI_HEADSHOT", "AI_IMAGE", "FACE_SWAP", "IMAGE_UPSCALER", "QR_CODE"
    ] = pydantic.Field(alias="type")
