# generated by datamodel-codegen:
#   filename:  Accounts/AccountsResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from .. import definitions


class AccountsResponse(Struct, omit_defaults=True):
    accounts: List[definitions.AccountWithPermissions]

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        accounts: List[definitions.AccountWithPermissions],
    ):
        return cls(
            accounts,
        )

    def __str__(self) -> str:
        return f"AccountsResponse(accounts={self.accounts})"
