getV1RoutinesSchema.ts•991 B
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { routineSchema } from './routineSchema.ts'
import { z } from 'zod'
export const getV1RoutinesQueryParamsSchema = z.object({
page: z.coerce.number().int().default(1).describe('Page number (Must be 1 or greater)'),
pageSize: z.coerce.number().int().default(5).describe('Number of items on the requested page (Max 10)'),
})
export const getV1RoutinesHeaderParamsSchema = z.object({
'api-key': z.string().uuid(),
})
/**
* @description A paginated list of routines
*/
export const getV1Routines200Schema = z.object({
page: z.number().int().describe('Current page number').optional(),
page_count: z.number().int().describe('Total number of pages').optional(),
routines: z.array(z.lazy(() => routineSchema)).optional(),
})
/**
* @description Invalid page size
*/
export const getV1Routines400Schema = z.any()
export const getV1RoutinesQueryResponseSchema = z.lazy(() => getV1Routines200Schema)