"""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 ActivityItemTypedDict(TypedDict):
    byok_usage_inference: float
    r"""BYOK inference cost in USD (external credits spent)"""
    completion_tokens: int
    r"""Total completion tokens generated"""
    date_: str
    r"""Date of the activity (YYYY-MM-DD format)"""
    endpoint_id: str
    r"""Unique identifier for the endpoint"""
    model: str
    r"""Model slug (e.g., \"openai/gpt-4.1\")"""
    model_permaslug: str
    r"""Model permaslug (e.g., \"openai/gpt-4.1-2025-04-14\")"""
    prompt_tokens: int
    r"""Total prompt tokens used"""
    provider_name: str
    r"""Name of the provider serving this endpoint"""
    reasoning_tokens: int
    r"""Total reasoning tokens used"""
    requests: int
    r"""Number of requests made"""
    usage: float
    r"""Total cost in USD (OpenRouter credits spent)"""


class ActivityItem(BaseModel):
    byok_usage_inference: float
    r"""BYOK inference cost in USD (external credits spent)"""

    completion_tokens: int
    r"""Total completion tokens generated"""

    date_: Annotated[str, pydantic.Field(alias="date")]
    r"""Date of the activity (YYYY-MM-DD format)"""

    endpoint_id: str
    r"""Unique identifier for the endpoint"""

    model: str
    r"""Model slug (e.g., \"openai/gpt-4.1\")"""

    model_permaslug: str
    r"""Model permaslug (e.g., \"openai/gpt-4.1-2025-04-14\")"""

    prompt_tokens: int
    r"""Total prompt tokens used"""

    provider_name: str
    r"""Name of the provider serving this endpoint"""

    reasoning_tokens: int
    r"""Total reasoning tokens used"""

    requests: int
    r"""Number of requests made"""

    usage: float
    r"""Total cost in USD (OpenRouter credits spent)"""
