// This file was generated by liblab | https://liblab.com/ import { z } from 'zod'; /** * The shape of the model inside the application code - what the users use */ export const dynamics2 = z.object({ duration: z.number().gte(0).optional(), }); /** * * @typedef {Dynamics2} dynamics2 * @property {number} - Duration of a light transition or timed effects in ms. */ export type Dynamics2 = z.infer; /** * The shape of the model mapping from the api schema into the application shape. * Is equal to application shape if all property names match the api schema */ export const dynamics2Response = z .object({ duration: z.number().gte(0).optional(), }) .transform((data) => ({ duration: data['duration'], })); /** * The shape of the model mapping from the application shape into the api schema. * Is equal to application shape if all property names match the api schema */ export const dynamics2Request = z.object({ duration: z.number().nullish() }).transform((data) => ({ duration: data['duration'], }));