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.biometrics.sync

Synchronize biometric datapoints from provider sources.

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

    Synchronize biometric datapoints from provider sources.

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

    Synchronize biometric datapoints from provider sources.

    Goal

    Keep canonical biometrics synchronized for downstream analytics.

    Context

    Triggered by incremental sync jobs and manual refresh actions.

    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 { HealthBiometricRecord } from '../models';
    import { HEALTH_TELEMETRY_EVENTS } from '../telemetry';
    
    export const HealthSyncBiometrics = defineCommand({
    	meta: {
    		key: 'health.biometrics.sync',
    		version: '1.0.0',
    		description: 'Synchronize biometric datapoints from provider sources.',
    		goal: 'Keep canonical biometrics synchronized for downstream analytics.',
    		context: 'Triggered by incremental sync jobs and manual refresh actions.',
    		owners: ['@platform.integrations'],
    		tags: ['health', 'biometrics', 'wearables'],
    		stability: 'experimental',
    	},
    	io: {
    		input: HealthSyncBiometricsInput,
    		output: HealthSyncBiometricsOutput,
    	},
    	policy: {
    		auth: 'admin',
    	},
    	telemetry: {
    		success: {
    			event: { key: HEALTH_TELEMETRY_EVENTS.biometricsSynced },
    		},
    		failure: {
    			event: { key: HEALTH_TELEMETRY_EVENTS.biometricsSyncFailed },
    		},
    	},
    });