OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
List normalized sleep intervals synced from health providers.
Goal
Provide canonical sleep data for recovery and coaching workflows.
Context
Used by sleep insights, readiness scoring, and trend reporting.
Source Definition
import {
type AnyOperationSpec,
defineCommand,
defineQuery,
} from '@lssm-tech/lib.contracts-spec/operations';
import type { OperationSpecRegistry } from '@lssm-tech/lib.contracts-spec/operations/registry';
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { HealthSleepRecord } from '../models';
import { HEALTH_TELEMETRY_EVENTS } from '../telemetry';
export const HealthListSleep = defineQuery({
meta: {
key: 'health.sleep.list',
version: '1.0.0',
description:
'List normalized sleep intervals synced from health providers.',
goal: 'Provide canonical sleep data for recovery and coaching workflows.',
context: 'Used by sleep insights, readiness scoring, and trend reporting.',
owners: ['@platform.integrations'],
tags: ['health', 'sleep', 'wearables'],
stability: 'experimental',
},
io: {
input: HealthListSleepInput,
output: HealthListSleepOutput,
},
policy: {
auth: 'user',
},
});