postRoutinesRequestSetSchema.ts•1.05 kB
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { z } from 'zod'
export const postRoutinesRequestSetSchema = z.object({
type: z.enum(['warmup', 'normal', 'failure', 'dropset']).describe('The type of the set.').optional(),
weight_kg: z.number().describe('The weight in kilograms.').nullable().nullish(),
reps: z.number().int().describe('The number of repetitions.').nullable().nullish(),
distance_meters: z.number().int().describe('The distance in meters.').nullable().nullish(),
duration_seconds: z.number().int().describe('The duration in seconds.').nullable().nullish(),
custom_metric: z.number().describe('A custom metric for the set. Currently used for steps and floors.').nullable().nullish(),
rep_range: z
.object({
start: z.number().describe('Starting rep count for the range').nullable().nullish(),
end: z.number().describe('Ending rep count for the range').nullable().nullish(),
})
.describe('Range of reps for the set, if applicable')
.nullable()
.nullish(),
})