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

from __future__ import annotations
from .toolcallstatus import ToolCallStatus
from openrouter.types import BaseModel
from openrouter.utils import validate_open_enum
from pydantic.functional_validators import PlainValidator
from typing import Literal, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


OutputDatetimeItemType = Literal["openrouter:datetime",]


class OutputDatetimeItemTypedDict(TypedDict):
    r"""An openrouter:datetime server tool output item"""

    datetime: str
    r"""ISO 8601 datetime string"""
    status: ToolCallStatus
    timezone: str
    r"""IANA timezone name"""
    type: OutputDatetimeItemType
    id: NotRequired[str]


class OutputDatetimeItem(BaseModel):
    r"""An openrouter:datetime server tool output item"""

    datetime: str
    r"""ISO 8601 datetime string"""

    status: Annotated[ToolCallStatus, PlainValidator(validate_open_enum(False))]

    timezone: str
    r"""IANA timezone name"""

    type: OutputDatetimeItemType

    id: Optional[str] = None
