Sync Controls
Trigger Tesla data ingestion and persist results into D1.
Connect a Tesla account, ingest fleet data, and store normalized payloads in D1. This build focuses on the ingestion pipeline (OAuth → vehicle list → telemetry snapshots).
Track Tesla authorization, token expiry, and last sync time.
Redirect to Tesla OAuth, exchange code for tokens, store refresh token in D1.
Pull `/api/1/vehicles`, upsert vehicle metadata, track update timestamps.
Optionally pull `/vehicle_data` and persist raw payloads for risk modeling.
Trigger Tesla data ingestion and persist results into D1.