sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user