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.

health.sleep.list

List normalized sleep intervals synced from health providers.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @platform.integrations
  • Tags: health, sleep, wearables
  • field.key.label
    health.sleep.list
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    health.sleep.list
    field.description.label

    List normalized sleep intervals synced from health providers.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @platform.integrations
  • Tags: health, sleep, wearables
  • field.tags.label
    health,sleep,wearables
    field.owners.label
    @platform.integrations
    field.stability.label
    experimental

    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',
    	},
    });