sciagent code + Gitea Actions CI/CD
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Thinh Lam
2026-06-30 09:38:30 +07:00
commit 688fac73e9
1167 changed files with 158244 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""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