@kaiord/core / activitySummarySchema
Variable: activitySummarySchema
constactivitySummarySchema:ZodObject<{avg_heart_rate:ZodOptional<ZodNumber>;avg_power:ZodOptional<ZodNumber>;date:ZodISODate;distance_meters:ZodOptional<ZodNumber>;duration_seconds:ZodOptional<ZodNumber>;source:ZodString;source_id:ZodString;sport:ZodString;start_time:ZodOptional<ZodISODateTime>;sub_sport:ZodOptional<ZodString>;total_calories:ZodOptional<ZodNumber>; },$strip>
Defined in: packages/core/src/domain/schemas/activity.ts:11
Zod schema for the lightweight summary carried by every activity (executed session). The summary is always present — the calendar and SessionMatch read from it — while the full recorded detail is optional (see activitySchema).