// 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 responseError = z.object({ type_: z.number().optional(), address: z.string().optional(), description: z.string().optional(), }); /** * * @typedef {ResponseError} responseError * @property {number} * @property {string} * @property {string} */ export type ResponseError = 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 responseErrorResponse = z .object({ type: z.number().optional(), address: z.string().optional(), description: z.string().optional(), }) .transform((data) => ({ type_: data['type'], address: data['address'], description: data['description'], })); /** * 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 responseErrorRequest = z .object({ type_: z.number().nullish(), address: z.string().nullish(), description: z.string().nullish() }) .transform((data) => ({ type: data['type_'], address: data['address'], description: data['description'], }));