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

from __future__ import annotations
from .apprankingsitem import AppRankingsItem, AppRankingsItemTypedDict
from .rankingsdailymeta import RankingsDailyMeta, RankingsDailyMetaTypedDict
from openrouter.types import BaseModel
from typing import List
from typing_extensions import TypedDict


class AppRankingsResponseTypedDict(TypedDict):
    data: List[AppRankingsItemTypedDict]
    r"""Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing."""
    meta: RankingsDailyMetaTypedDict


class AppRankingsResponse(BaseModel):
    data: List[AppRankingsItem]
    r"""Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing."""

    meta: RankingsDailyMeta
