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

from __future__ import annotations
from openrouter.types import BaseModel
import pydantic
from typing_extensions import Annotated, TypedDict


class RankingsDailyItemTypedDict(TypedDict):
    date_: str
    r"""UTC calendar date the row is aggregated over (YYYY-MM-DD)."""
    model_permaslug: str
    r"""Model variant permaslug (e.g. `openai/gpt-4o-2024-05-13`, `openai/gpt-4o-2024-05-13:free`). Non-default variants include a `:variant` suffix and are ranked as their own entry. The reserved value `other` denotes the aggregated row covering every model outside the daily top 50 for that date — always sorted last within its date."""
    total_tokens: str
    r"""Sum of `prompt_tokens + completion_tokens` for the day, returned as a decimal string so 64-bit values are not truncated."""


class RankingsDailyItem(BaseModel):
    date_: Annotated[str, pydantic.Field(alias="date")]
    r"""UTC calendar date the row is aggregated over (YYYY-MM-DD)."""

    model_permaslug: str
    r"""Model variant permaslug (e.g. `openai/gpt-4o-2024-05-13`, `openai/gpt-4o-2024-05-13:free`). Non-default variants include a `:variant` suffix and are ranked as their own entry. The reserved value `other` denotes the aggregated row covering every model outside the daily top 50 for that date — always sorted last within its date."""

    total_tokens: str
    r"""Sum of `prompt_tokens + completion_tokens` for the day, returned as a decimal string so 64-bit values are not truncated."""
