22d738fc74
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
34 lines
806 B
Python
34 lines
806 B
Python
"""accounts domain — identity: account records, one-time-code issue/verify, account lookup.
|
|
|
|
Owns INV-2 (email canonical key) and INV-3 (one-time codes handled like secrets). Knows
|
|
nothing about storefronts (that is the storefronts domain, SLICE-3). Imported via this
|
|
package surface only (§6.2).
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from .errors import (
|
|
AccountsError,
|
|
CodeExhausted,
|
|
CodeExpired,
|
|
CodeMismatch,
|
|
DeliveryFailed,
|
|
InvalidEmail,
|
|
ResendCooldown,
|
|
)
|
|
from .models import Account
|
|
from .service import get_account, request_code, verify
|
|
|
|
__all__ = [
|
|
"Account",
|
|
"AccountsError",
|
|
"InvalidEmail",
|
|
"ResendCooldown",
|
|
"CodeMismatch",
|
|
"CodeExpired",
|
|
"CodeExhausted",
|
|
"DeliveryFailed",
|
|
"request_code",
|
|
"verify",
|
|
"get_account",
|
|
]
|