"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


ImageGenCallPartialImageEventType = Literal[
    "response.image_generation_call.partial_image",
]


class ImageGenCallPartialImageEventTypedDict(TypedDict):
    r"""Image generation call with partial image"""

    item_id: str
    output_index: int
    partial_image_b64: str
    partial_image_index: int
    sequence_number: int
    type: ImageGenCallPartialImageEventType


class ImageGenCallPartialImageEvent(BaseModel):
    r"""Image generation call with partial image"""

    item_id: str

    output_index: int

    partial_image_b64: str

    partial_image_index: int

    sequence_number: int

    type: ImageGenCallPartialImageEventType
