---
url: /docs/api/core/variables/fileTypeSchema.md
---
[**@kaiord/core**](../README.md)

***

[@kaiord/core](../README.md) / fileTypeSchema

# Variable: fileTypeSchema

> `const` **fileTypeSchema**: `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](https://github.com/pablo-albaladejo/kaiord/blob/3eacbe62ef72342d970523967cc5155b5935bb85/packages/core/src/domain/schemas/file-type.ts#L13)

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`).
