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 workout entries synced from health integrations.
Goal
Provide canonical workout history across connected providers.
Context
Used by training plans, progress analytics, and recovery workflows.
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 { HealthWorkoutRecord } from '../models';
import { HEALTH_TELEMETRY_EVENTS } from '../telemetry';
export const HealthListWorkouts = defineQuery({
meta: {
key: 'health.workouts.list',
version: '1.0.0',
description:
'List normalized workout entries synced from health integrations.',
goal: 'Provide canonical workout history across connected providers.',
context:
'Used by training plans, progress analytics, and recovery workflows.',
owners: ['@platform.integrations'],
tags: ['health', 'workouts', 'wearables'],
stability: 'experimental',
},
io: {
input: HealthListWorkoutsInput,
output: HealthListWorkoutsOutput,
},
policy: {
auth: 'user',
},
});