postWorkoutsRequestBodySchema.ts•828 B
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { postWorkoutsRequestExerciseSchema } from './postWorkoutsRequestExerciseSchema.ts'
import { z } from 'zod'
export const postWorkoutsRequestBodySchema = z.object({
workout: z
.object({
title: z.string().describe('The title of the workout.').optional(),
description: z.string().describe('A description for the workout workout.').nullable().nullish(),
start_time: z.string().describe('The time the workout started.').optional(),
end_time: z.string().describe('The time the workout ended.').optional(),
is_private: z.boolean().describe('A boolean indicating if the workout is private.').optional(),
exercises: z.array(z.lazy(() => postWorkoutsRequestExerciseSchema)).optional(),
})
.optional(),
})