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

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


RankingsDailyMetaVersion = Literal["v1",]
r"""Dataset version. Field names and grain are stable for the life of `v1`."""


class RankingsDailyMetaTypedDict(TypedDict):
    as_of: str
    r"""ISO-8601 timestamp of when the response was generated. Reflects data-freshness because the underlying materialized view continuously ingests upstream events."""
    end_date: str
    r"""Resolved end of the date window (UTC, inclusive)."""
    start_date: str
    r"""Resolved start of the date window (UTC, inclusive)."""
    version: RankingsDailyMetaVersion
    r"""Dataset version. Field names and grain are stable for the life of `v1`."""


class RankingsDailyMeta(BaseModel):
    as_of: str
    r"""ISO-8601 timestamp of when the response was generated. Reflects data-freshness because the underlying materialized view continuously ingests upstream events."""

    end_date: str
    r"""Resolved end of the date window (UTC, inclusive)."""

    start_date: str
    r"""Resolved start of the date window (UTC, inclusive)."""

    version: RankingsDailyMetaVersion
    r"""Dataset version. Field names and grain are stable for the life of `v1`."""
