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

from __future__ import annotations
from .account import Account, AccountTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListAccountsResponseTypedDict(TypedDict):
    r"""The response to list Accounts."""

    accounts: NotRequired[List[AccountTypedDict]]
    r"""The list of available accounts"""
    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."""
    total_size: NotRequired[str]
    r"""The total number of accounts in the response. This is an estimate and may be more than the number of accounts in this response if the user is not authorized to view all accounts."""


class ListAccountsResponse(BaseModel):
    r"""The response to list Accounts."""

    accounts: Optional[List[Account]] = None
    r"""The list of available accounts"""

    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."""

    total_size: Optional[str] = None
    r"""The total number of accounts in the response. This is an estimate and may be more than the number of accounts in this response if the user is not authorized to view all accounts."""
