postRoutinesRequestBodySchema.ts•753 B
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { postRoutinesRequestExerciseSchema } from './postRoutinesRequestExerciseSchema.ts'
import { z } from 'zod'
export const postRoutinesRequestBodySchema = z.object({
routine: z
.object({
title: z.string().describe('The title of the routine.').optional(),
folder_id: z
.number()
.describe('The folder id the routine should be added to. Pass null to insert the routine into default "My Routines" folder')
.nullable()
.nullish(),
notes: z.string().describe('Additional notes for the routine.').optional(),
exercises: z.array(z.lazy(() => postRoutinesRequestExerciseSchema)).optional(),
})
.optional(),
})