# generated by datamodel-codegen:
#   filename:  image-asset.json
#   timestamp: 2025-11-15T22:03:55+00:00

from __future__ import annotations

from typing import Annotated

from adcp.types.base import AdCPBaseModel
from pydantic import AnyUrl, ConfigDict, Field


class ImageAsset(AdCPBaseModel):
    model_config = ConfigDict(
        extra="forbid",
    )
    alt_text: Annotated[str | None, Field(description="Alternative text for accessibility")] = None
    format: Annotated[
        str | None, Field(description="Image file format (jpg, png, gif, webp, etc.)")
    ] = None
    height: Annotated[int | None, Field(description="Image height in pixels", ge=1)] = None
    url: Annotated[AnyUrl, Field(description="URL to the image asset")]
    width: Annotated[int | None, Field(description="Image width in pixels", ge=1)] = None
