Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Sleep

import type { Sleep } from "https://googleapis.deno.dev/v1/health:v4.ts";

A sleep session possibly including stages.

interface Sleep {
readonly createTime?: Date;
metadata?: SleepMetadata;
outOfBedSegments?: OutOfBedSegment[];
stages?: SleepStage[];
readonly summary?: SleepSummary;
type?: "SLEEP_TYPE_UNSPECIFIED" | "CLASSIC" | "STAGES";
readonly updateTime?: Date;
}

§Properties

§
readonly createTime?: Date
[src]

Output only. Creation time of this sleep observation.

§

Required. Observed sleep interval.

§

Optional. Sleep metadata: processing, main, manually edited, stages status.

§
outOfBedSegments?: OutOfBedSegment[]
[src]

Optional. “Out of bed” segments that can overlap with sleep stages.

§
stages?: SleepStage[]
[src]

Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.

§
readonly summary?: SleepSummary
[src]

Output only. Sleep summary: metrics and stages summary.

§
type?: "SLEEP_TYPE_UNSPECIFIED" | "CLASSIC" | "STAGES"
[src]

Optional. SleepType: classic or stages.

§
readonly updateTime?: Date
[src]

Output only. Last update time of this sleep observation.