Código fonte para asgard.api.resources.users

from typing import List, Optional

from pydantic import BaseModel

from asgard.models.account import Account
from asgard.models.user import User


[documentos]class UserMeResource(BaseModel): user: User current_account: Account accounts: List[Account] = []
[documentos]class UserListResource(BaseModel): users: List[User] = []
[documentos]class UserResource(BaseModel): user: Optional[User]
[documentos]class UserAccountsResource(BaseModel): accounts: List[Account] = []