/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as components from "../components/index.js"; export type CreatePrivateLobbyDeprecatedGlobals = { appId?: string | undefined; }; export type CreatePrivateLobbyDeprecatedSecurity = { playerAuth: string; }; export type CreatePrivateLobbyDeprecatedRequest = { appId?: string | undefined; region?: components.Region | undefined; local?: boolean | undefined; }; /** @internal */ export type CreatePrivateLobbyDeprecatedSecurity$Outbound = { playerAuth: string; }; /** @internal */ export const CreatePrivateLobbyDeprecatedSecurity$outboundSchema: z.ZodType< CreatePrivateLobbyDeprecatedSecurity$Outbound, z.ZodTypeDef, CreatePrivateLobbyDeprecatedSecurity > = z.object({ playerAuth: z.string(), }); export function createPrivateLobbyDeprecatedSecurityToJSON( createPrivateLobbyDeprecatedSecurity: CreatePrivateLobbyDeprecatedSecurity, ): string { return JSON.stringify( CreatePrivateLobbyDeprecatedSecurity$outboundSchema.parse( createPrivateLobbyDeprecatedSecurity, ), ); } /** @internal */ export type CreatePrivateLobbyDeprecatedRequest$Outbound = { appId?: string | undefined; region?: string | undefined; local: boolean; }; /** @internal */ export const CreatePrivateLobbyDeprecatedRequest$outboundSchema: z.ZodType< CreatePrivateLobbyDeprecatedRequest$Outbound, z.ZodTypeDef, CreatePrivateLobbyDeprecatedRequest > = z.object({ appId: z.string().optional(), region: components.Region$outboundSchema.optional(), local: z.boolean().default(false), }); export function createPrivateLobbyDeprecatedRequestToJSON( createPrivateLobbyDeprecatedRequest: CreatePrivateLobbyDeprecatedRequest, ): string { return JSON.stringify( CreatePrivateLobbyDeprecatedRequest$outboundSchema.parse( createPrivateLobbyDeprecatedRequest, ), ); }