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 nutrition and hydration records from connected providers.
Goal
Provide canonical nutrition data for health goals, coaching, and analytics.
Context
Used by nutrition reporting, diet workflows, and aggregate health views.
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 { HealthNutritionRecord } from '../models';
import { HEALTH_TELEMETRY_EVENTS } from '../telemetry';
export const HealthListNutrition = defineQuery({
meta: {
key: 'health.nutrition.list',
version: '1.0.0',
description:
'List normalized nutrition and hydration records from connected providers.',
goal: 'Provide canonical nutrition data for health goals, coaching, and analytics.',
context:
'Used by nutrition reporting, diet workflows, and aggregate health views.',
owners: ['@platform.integrations'],
tags: ['health', 'nutrition', 'wearables'],
stability: 'experimental',
},
io: {
input: HealthListNutritionInput,
output: HealthListNutritionOutput,
},
policy: {
auth: 'user',
},
});