// This file was generated by liblab | https://liblab.com/ import { z } from 'zod'; import { onMode1 } from './on-mode-1'; import { on, onRequest, onResponse } from './on'; /** * The shape of the model inside the application code - what the users use */ export const powerupOn1 = z.object({ mode: onMode1.optional(), on1: on.optional(), }); /** * * @typedef {PowerupOn1} powerupOn1 * @property {OnMode1} - State to activate after powerup. On will use the value specified in the “on” property. When setting mode “on”, the on property must be included. Toggle will alternate between on and off on each subsequent power toggle. Previous will return to the state it was in before powering off. * @property {On} */ export type PowerupOn1 = 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 powerupOn1Response = z .object({ mode: onMode1.optional(), on: onResponse.optional(), }) .transform((data) => ({ mode: data['mode'], on1: data['on'], })); /** * 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 powerupOn1Request = z.object({ mode: onMode1.nullish(), on1: onRequest.nullish() }).transform((data) => ({ mode: data['mode'], on: data['on1'], }));