// 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 authenticateRequest = z.object({ devicetype: z.string().optional(), generateclientkey: z.boolean().optional(), }); /** * * @typedef {AuthenticateRequest} authenticateRequest * @property {string} * @property {boolean} */ export type AuthenticateRequest = 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 authenticateRequestResponse = z .object({ devicetype: z.string().optional(), generateclientkey: z.boolean().optional(), }) .transform((data) => ({ devicetype: data['devicetype'], generateclientkey: data['generateclientkey'], })); /** * 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 authenticateRequestRequest = z .object({ devicetype: z.string().nullish(), generateclientkey: z.boolean().nullish() }) .transform((data) => ({ devicetype: data['devicetype'], generateclientkey: data['generateclientkey'], }));