feat: complete auth life-cycle with Step 2 KYC and Private Fleet generation

This commit is contained in:
2026-02-06 22:38:44 +00:00
parent cfd1e365e0
commit 9d06be4f87
5 changed files with 108 additions and 30 deletions

View File

@@ -1,7 +1,8 @@
from pydantic import BaseModel, EmailStr, Field
from typing import Optional
from typing import Optional, Dict
from datetime import date
# --- STEP 1: LITE REGISTRATION ---
class UserLiteRegister(BaseModel):
email: EmailStr
password: str = Field(..., min_length=8)
@@ -13,6 +14,26 @@ class UserLogin(BaseModel):
email: EmailStr
password: str
# --- STEP 2: KYC & ONBOARDING ---
class ICEContact(BaseModel):
name: str
phone: str
relationship: Optional[str] = None
class DocumentDetail(BaseModel):
number: str
expiry_date: date
class UserKYCComplete(BaseModel):
phone_number: str
birth_place: str
birth_date: date
mothers_name: str
# Rugalmas okmánytár, pl: {"id_card": {"number": "123", "expiry_date": "2030-01-01"}}
identity_docs: Dict[str, DocumentDetail]
ice_contact: ICEContact
# --- COMMON & SECURITY ---
class PasswordResetRequest(BaseModel):
email: EmailStr