/* * 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 CreateLobbyDeprecatedGlobals = { appId?: string | undefined; }; export type CreateLobbyDeprecatedSecurity = { playerAuth: string; }; export type CreateLobbyDeprecatedRequest = { appId?: string | undefined; roomId?: string | undefined; createLobbyParams: components.CreateLobbyParams; }; /** @internal */ export type CreateLobbyDeprecatedSecurity$Outbound = { playerAuth: string; }; /** @internal */ export const CreateLobbyDeprecatedSecurity$outboundSchema: z.ZodType< CreateLobbyDeprecatedSecurity$Outbound, z.ZodTypeDef, CreateLobbyDeprecatedSecurity > = z.object({ playerAuth: z.string(), }); export function createLobbyDeprecatedSecurityToJSON( createLobbyDeprecatedSecurity: CreateLobbyDeprecatedSecurity, ): string { return JSON.stringify( CreateLobbyDeprecatedSecurity$outboundSchema.parse( createLobbyDeprecatedSecurity, ), ); } /** @internal */ export type CreateLobbyDeprecatedRequest$Outbound = { appId?: string | undefined; roomId?: string | undefined; CreateLobbyParams: components.CreateLobbyParams$Outbound; }; /** @internal */ export const CreateLobbyDeprecatedRequest$outboundSchema: z.ZodType< CreateLobbyDeprecatedRequest$Outbound, z.ZodTypeDef, CreateLobbyDeprecatedRequest > = z.object({ appId: z.string().optional(), roomId: z.string().optional(), createLobbyParams: components.CreateLobbyParams$outboundSchema, }).transform((v) => { return remap$(v, { createLobbyParams: "CreateLobbyParams", }); }); export function createLobbyDeprecatedRequestToJSON( createLobbyDeprecatedRequest: CreateLobbyDeprecatedRequest, ): string { return JSON.stringify( CreateLobbyDeprecatedRequest$outboundSchema.parse( createLobbyDeprecatedRequest, ), ); }