@kaiord/core / fileTypeSchema
Variable: fileTypeSchema
constfileTypeSchema:ZodEnum<{body_composition:"body_composition";course:"course";daily_wellness:"daily_wellness";hrv_summary:"hrv_summary";recorded_activity:"recorded_activity";sleep_record:"sleep_record";stress_episode:"stress_episode";structured_workout:"structured_workout";weight_measurement:"weight_measurement"; }>
Defined in: packages/core/src/domain/schemas/file-type.ts:13
KRD type discriminator.
The first three variants are the legacy workout/activity/course types (KRD v1.x). The latter six are the health-metric types introduced in KRD v2.0 (see the health-data capability). All nine values share the same root KRD document shape; per-type invariants are enforced by the krdSchema refinement (metadata.sport requirement) and by the extensions.health.* discriminated union (healthExtensionPayloadSchema).