// 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 colorTemperature = z.object({ mirek: z.number().gte(153).lte(500).optional(), }); /** * * @typedef {ColorTemperature} colorTemperature * @property {number} - color temperature in mirek or null when the light color is not in the ct spectrum */ export type ColorTemperature = 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 colorTemperatureResponse = z .object({ mirek: z.number().gte(153).lte(500).optional(), }) .transform((data) => ({ mirek: data['mirek'], })); /** * 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 colorTemperatureRequest = z.object({ mirek: z.number().nullish() }).transform((data) => ({ mirek: data['mirek'], }));