/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type SetLobbyStateGlobals = { appId?: string | undefined; }; export type SetLobbyStateRequest = { appId?: string | undefined; roomId: string; setLobbyStateParams: components.SetLobbyStateParams; }; /** @internal */ export type SetLobbyStateRequest$Outbound = { appId?: string | undefined; roomId: string; SetLobbyStateParams: components.SetLobbyStateParams$Outbound; }; /** @internal */ export const SetLobbyStateRequest$outboundSchema: z.ZodType< SetLobbyStateRequest$Outbound, z.ZodTypeDef, SetLobbyStateRequest > = z.object({ appId: z.string().optional(), roomId: z.string(), setLobbyStateParams: components.SetLobbyStateParams$outboundSchema, }).transform((v) => { return remap$(v, { setLobbyStateParams: "SetLobbyStateParams", }); }); export function setLobbyStateRequestToJSON( setLobbyStateRequest: SetLobbyStateRequest, ): string { return JSON.stringify( SetLobbyStateRequest$outboundSchema.parse(setLobbyStateRequest), ); }