"""Pydantic response schemas for API serialization.""" from uuid import UUID from pydantic import BaseModel class PropertyOut(BaseModel): id: UUID pset_name: str name: str value: str model_config = {"from_attributes": True} class ElementOut(BaseModel): id: UUID global_id: str ifc_type: str name: str description: str storey: str model_config = {"from_attributes": True} class ElementDetailOut(ElementOut): properties: list[PropertyOut] = [] class ProjectOut(BaseModel): id: UUID name: str filename: str description: str ifc_schema: str element_count: int = 0 model_config = {"from_attributes": True}