postV1WorkoutsSchema.ts•801 B
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { postWorkoutsRequestBodySchema } from './postWorkoutsRequestBodySchema.ts'
import { workoutSchema } from './workoutSchema.ts'
import { z } from 'zod'
export const postV1WorkoutsHeaderParamsSchema = z.object({
'api-key': z.string().uuid(),
})
/**
* @description The workout was successfully created
*/
export const postV1Workouts201Schema = z.lazy(() => workoutSchema)
/**
* @description Invalid request body
*/
export const postV1Workouts400Schema = z.object({
error: z.string().describe('Error message').optional(),
})
export const postV1WorkoutsMutationRequestSchema = z.lazy(() => postWorkoutsRequestBodySchema)
export const postV1WorkoutsMutationResponseSchema = z.lazy(() => postV1Workouts201Schema)