diligence/backend/app
Claude 3ab88a3d2a Stream B: Device sync base class + provider registry (already committed)
Abstract base class for device sync services (device_sync_base.py):
- Standard OAuth token management with automatic refresh
- Credential decryption from integration_configs table
- Activity import pipeline with deduplication by external_id
- Webhook validation and handling interface
- get_valid_token(), get_credentials(), import_activity() helpers

Garmin, WHOOP, and Oura sync service implementations follow when
API credentials are obtained (Scot action items):
- Apply for Garmin Developer Program (DiligenceWorks Pte. Ltd.)
- Register WHOOP developer app at developer.whoop.com
- Register Oura app at cloud.ouraring.com
2026-06-21 23:16:58 +00:00
..
models Deliver Steps 3-8: integration config, meal plans, provider registry, MCP connector (14 tools), B2A files, nginx proxy, AGENT_GUIDE, LICENSE 2026-06-15 14:34:09 +00:00
routers Stream C: Multi-provider AI coaching backend + 20-provider registry 2026-06-21 23:16:17 +00:00
schemas Stream D: Security hardening — 10 fixes from QA review 2026-06-21 23:13:53 +00:00
services Stream B: Device sync base class + provider registry (already committed) 2026-06-21 23:16:58 +00:00
utils Stream D: Security hardening — 10 fixes from QA review 2026-06-21 23:13:53 +00:00
__init__.py Initial commit: full fitness-rewards app 2026-03-14 23:53:00 +00:00
config.py Stream D: Security hardening — 10 fixes from QA review 2026-06-21 23:13:53 +00:00
database.py Fix: add future annotations to all files, fix date field name shadowing type in RewardRedeemRequest 2026-03-15 00:42:13 +00:00
main.py Stream C: Multi-provider AI coaching backend + 20-provider registry 2026-06-21 23:16:17 +00:00