import { type Sleep } from "https://deno.land/x/oura_api@1.0.1/src/OuraBase.ts";
Holds a comprehensive set of sleep metrics provided by the Oura ring within a given timeframe. A user can have multiple sleep periods per day.
Properties
heart_rate: SampleData
HR samples
hrv: SampleData
HVR samples
Sleep latency in seconds. This is the time it took for the user to fall asleep after going to bed.
30-second movement classification for the period where every character corresponds to: 1 no motion 2 restless 3 tossing and turning 4 active
readiness: { contributors: { activity_balance: number | null; body_temperature: number | null; hrv_balance: number | null; previous_day_activity: number | null; previous_night: number | null; recovery_index: number | null; resting_heart_rate: number | null; sleep_balance: number | null; }; score: number; temperature_deviation: number; temperature_trend_deviation: number; }
Readiness
5-minute sleep phase classification for the period where every character corresponds to: 1 deep sleep 2 light sleep 3 REM sleep 4 awake