postWorkoutsRequestBodySchema.ts•798 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.optional(z.object({
"title": z.optional(z.string().describe("The title of the workout.")),
"description": z.string().describe("A description for the workout workout.").nullish(),
"start_time": z.optional(z.string().describe("The time the workout started.")),
"end_time": z.optional(z.string().describe("The time the workout ended.")),
"is_private": z.optional(z.boolean().describe("A boolean indicating if the workout is private.")),
"exercises": z.optional(z.array(z.lazy(() => postWorkoutsRequestExerciseSchema)))
}))
})