Files
sciagent/be0/src/application/identity/dto.py
T
Thinh Lam 688fac73e9
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped
sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 09:38:30 +07:00

25 lines
564 B
Python

"""Application DTOs for Identity — the inputs/outputs of use cases (not API schemas)."""
from __future__ import annotations
from dataclasses import dataclass
from src.domain.identity.entities import User
@dataclass(frozen=True)
class LoginCommand:
email: str
password: str
client_ip: str
@dataclass(frozen=True)
class AuthenticatedUser:
"""Result of a successful authentication. The API layer assembles the public
response (incl. staff profile) from this + a profile read."""
user: User
roles: list[str]
access_token: str