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

import typing
import typing_extensions
import pydantic

from .get_v1_video_projects_id_response_download import (
    GetV1VideoProjectsIdResponseDownload,
)


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

    created_at: str = pydantic.Field(alias="created_at")
    download: typing.Optional[GetV1VideoProjectsIdResponseDownload] = pydantic.Field(
        alias="download", default=None
    )
    end_seconds: float = pydantic.Field(alias="end_seconds")
    fps: float = pydantic.Field(alias="fps")
    height: float = pydantic.Field(alias="height")
    id: str = pydantic.Field(alias="id")
    name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
    start_seconds: float = pydantic.Field(alias="start_seconds")
    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[
        "ANIMATION",
        "FACE_SWAP",
        "IMAGE_TO_VIDEO",
        "LIP_SYNC",
        "TEXT_TO_VIDEO",
        "VIDEO_TO_VIDEO",
    ] = pydantic.Field(alias="type")
    width: float = pydantic.Field(alias="width")
