// 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 devicePutUsertest = z.object({ usertest: z.boolean().optional(), }); /** * * @typedef {DevicePutUsertest} devicePutUsertest * @property {boolean} - Activates or extends user usertest mode of device for 120 seconds. `false` deactivates usertest mode. In usertest mode, devices report changes in state faster and indicate state changes on device LED (if applicable) */ export type DevicePutUsertest = 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 devicePutUsertestResponse = z .object({ usertest: z.boolean().optional(), }) .transform((data) => ({ usertest: data['usertest'], })); /** * 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 devicePutUsertestRequest = z.object({ usertest: z.boolean().nullish() }).transform((data) => ({ usertest: data['usertest'], }));