---
url: /docs/api/core/variables/sleepStageSchema.md
---
[**@kaiord/core**](../README.md)

***

[@kaiord/core](../README.md) / sleepStageSchema

# Variable: sleepStageSchema

> `const` **sleepStageSchema**: `ZodObject`<{ `durationSeconds`: `ZodNumber`; `stage`: `ZodEnum`<{ `awake`: `"awake"`; `deep`: `"deep"`; `light`: `"light"`; `rem`: `"rem"`; }>; `startTime`: `ZodISODateTime`; }, `$strip`>

Defined in: [packages/core/src/domain/schemas/health/sleep.ts:14](https://github.com/pablo-albaladejo/kaiord/blob/3eacbe62ef72342d970523967cc5155b5935bb85/packages/core/src/domain/schemas/health/sleep.ts#L14)

Zod schema for a single sleep stage within a sleep session.

Stages cover a contiguous time slice with one of four canonical Garmin
sleep classifications. Adjacent stages do NOT have to be the same kind,
but their durations MUST sum to the parent session total within the
documented tolerance.
