3f8bc58ca9
Phase 1 — Core API (Go): - Events, guests, tokens, RSVPs CRUD on PostgreSQL via pgx/v5 - HMAC-signed per-guest tokens with format validation - Health endpoint with DB ping, slog JSON logging, graceful shutdown Phase 2 — NATS + Fraud Engine: - NATS JetStream pub/sub with explicit-ack consumers - Python/FastAPI fraud engine with heuristic risk scoring (fingerprint mismatch, IP change, missing signals, repeated access) - gRPC sync scoring with 250ms fail-open timeout - Per-guest baseline tracking; risk bands low/medium/high/block Phase 3 — Notifications + Frontend: - Notification worker scaffolding (Twilio/SES stubs, retry/backoff) - Nuxt 3 frontend with Tailwind dark theme + brand green - Live monitor via WebSocket with auto-reconnect - Activity history endpoint backfills monitor with RSVPs + scored access checks (including blocked attempts) UX polish: - Marketing-friendly landing page (hero mockup, how-it-works, features, use cases, testimonials, FAQ, final CTA) - Animated layered card mockups on landing + new-event page - Plus-ones stepper, RSVP status badges, filter buttons - Friendly access-check labels (Verified/Review/Suspicious/Blocked) - Dashboard hydration fix via ClientOnly wrapper Infrastructure: - docker-compose for full local dev (postgres, nats, api, fraud-engine, notifier, frontend) - Multi-stage Dockerfiles, non-root UID 1000 - Integration tests with testcontainers-go Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
59 lines
2.5 KiB
Python
59 lines
2.5 KiB
Python
from google.protobuf.internal import containers as _containers
|
|
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class Risk(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
__slots__ = ()
|
|
RISK_UNSPECIFIED: _ClassVar[Risk]
|
|
RISK_LOW: _ClassVar[Risk]
|
|
RISK_MEDIUM: _ClassVar[Risk]
|
|
RISK_HIGH: _ClassVar[Risk]
|
|
RISK_BLOCK: _ClassVar[Risk]
|
|
RISK_UNSPECIFIED: Risk
|
|
RISK_LOW: Risk
|
|
RISK_MEDIUM: Risk
|
|
RISK_HIGH: Risk
|
|
RISK_BLOCK: Risk
|
|
|
|
class ScoreRequest(_message.Message):
|
|
__slots__ = ("event_id", "guest_id", "token_id", "access_log_id", "fingerprint", "ip_address", "user_agent", "referrer")
|
|
class FingerprintEntry(_message.Message):
|
|
__slots__ = ("key", "value")
|
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
key: str
|
|
value: str
|
|
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
EVENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
GUEST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
TOKEN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
ACCESS_LOG_ID_FIELD_NUMBER: _ClassVar[int]
|
|
FINGERPRINT_FIELD_NUMBER: _ClassVar[int]
|
|
IP_ADDRESS_FIELD_NUMBER: _ClassVar[int]
|
|
USER_AGENT_FIELD_NUMBER: _ClassVar[int]
|
|
REFERRER_FIELD_NUMBER: _ClassVar[int]
|
|
event_id: str
|
|
guest_id: str
|
|
token_id: str
|
|
access_log_id: str
|
|
fingerprint: _containers.ScalarMap[str, str]
|
|
ip_address: str
|
|
user_agent: str
|
|
referrer: str
|
|
def __init__(self, event_id: _Optional[str] = ..., guest_id: _Optional[str] = ..., token_id: _Optional[str] = ..., access_log_id: _Optional[str] = ..., fingerprint: _Optional[_Mapping[str, str]] = ..., ip_address: _Optional[str] = ..., user_agent: _Optional[str] = ..., referrer: _Optional[str] = ...) -> None: ...
|
|
|
|
class ScoreResponse(_message.Message):
|
|
__slots__ = ("score", "risk", "reasons")
|
|
SCORE_FIELD_NUMBER: _ClassVar[int]
|
|
RISK_FIELD_NUMBER: _ClassVar[int]
|
|
REASONS_FIELD_NUMBER: _ClassVar[int]
|
|
score: int
|
|
risk: Risk
|
|
reasons: _containers.RepeatedScalarFieldContainer[str]
|
|
def __init__(self, score: _Optional[int] = ..., risk: _Optional[_Union[Risk, str]] = ..., reasons: _Optional[_Iterable[str]] = ...) -> None: ...
|