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

from __future__ import annotations
from .entitlement import Entitlement, EntitlementTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListEntitlementsResponseTypedDict(TypedDict):
    r"""The response to list Entitlements on an Account."""

    entitlements: NotRequired[List[EntitlementTypedDict]]
    r"""The list of Entitlements on an Account"""
    next_page_token: NotRequired[str]
    r"""A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."""


class ListEntitlementsResponse(BaseModel):
    r"""The response to list Entitlements on an Account."""

    entitlements: Optional[List[Entitlement]] = None
    r"""The list of Entitlements on an Account"""

    next_page_token: Optional[str] = None
    r"""A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."""
