"""Generation image DTOs.""" from __future__ import annotations from dataclasses import dataclass from typing import Any @dataclass(frozen=True) class GenerationImage: image_id: str profile_id: str | None workflow_id: str | None node_id: str | None task_id: str | None batch_id: str | None version_tag: str | None image_uri: str thumbnail_uri: str | None positive_prompt: str | None negative_prompt: str | None model_used: str | None model_route: str | None seed: int | None width: int | None height: int | None is_selected: bool is_archived: bool metadata: dict[str, Any] created_at: str def to_dict(self) -> dict[str, Any]: return { "image_id": self.image_id, "profile_id": self.profile_id, "workflow_id": self.workflow_id, "node_id": self.node_id, "task_id": self.task_id, "batch_id": self.batch_id, "version_tag": self.version_tag, "image_uri": self.image_uri, "thumbnail_uri": self.thumbnail_uri, "positive_prompt": self.positive_prompt, "negative_prompt": self.negative_prompt, "model_used": self.model_used, "model_route": self.model_route, "seed": self.seed, "width": self.width, "height": self.height, "is_selected": self.is_selected, "is_archived": self.is_archived, "metadata": self.metadata, "created_at": self.created_at, }