// This file was generated by liblab | https://liblab.com/ import { z } from 'zod'; import { roomArchetype } from './room-archetype'; /** * The shape of the model inside the application code - what the users use */ export const roomPutMetadata = z.object({ name: z.string().optional(), archetype: roomArchetype.optional(), }); /** * configuration object for a room * @typedef {RoomPutMetadata} roomPutMetadata - configuration object for a room - configuration object for a room * @property {string} - Human readable name of a resource * @property {RoomArchetype} - Possible archetypes of a room */ export type RoomPutMetadata = 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 roomPutMetadataResponse = z .object({ name: z.string().optional(), archetype: roomArchetype.optional(), }) .transform((data) => ({ name: data['name'], archetype: data['archetype'], })); /** * 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 roomPutMetadataRequest = z .object({ name: z.string().nullish(), archetype: roomArchetype.nullish() }) .transform((data) => ({ name: data['name'], archetype: data['archetype'], }));