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