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

from __future__ import annotations
from typing import Optional
from typing_extensions import NotRequired, TypedDict
from unkey.py.types import BaseModel


class V2RatelimitListOverridesRequestBodyTypedDict(TypedDict):
    namespace: str
    r"""The id or name of the rate limit namespace to list overrides for."""
    cursor: NotRequired[str]
    r"""Pagination cursor from a previous response. Include this when fetching subsequent pages of results. Each response containing more results than the requested limit will include a cursor value in the pagination object that can be used here."""
    limit: NotRequired[int]
    r"""Maximum number of override entries to return in a single response. Use this to control response size and loading performance.

    - Lower values (10-20): Better for UI displays and faster response times
    - Higher values (50-100): Better for data exports or bulk operations
    - Default (10): Suitable for most dashboard views

    Results exceeding this limit will be paginated, with a cursor provided for fetching subsequent pages.
    """


class V2RatelimitListOverridesRequestBody(BaseModel):
    namespace: str
    r"""The id or name of the rate limit namespace to list overrides for."""

    cursor: Optional[str] = None
    r"""Pagination cursor from a previous response. Include this when fetching subsequent pages of results. Each response containing more results than the requested limit will include a cursor value in the pagination object that can be used here."""

    limit: Optional[int] = 10
    r"""Maximum number of override entries to return in a single response. Use this to control response size and loading performance.

    - Lower values (10-20): Better for UI displays and faster response times
    - Higher values (50-100): Better for data exports or bulk operations
    - Default (10): Suitable for most dashboard views

    Results exceeding this limit will be paginated, with a cursor provided for fetching subsequent pages.
    """
