/* * 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 CreatePublicLobbyDeprecatedGlobals = { appId?: string | undefined; }; export type CreatePublicLobbyDeprecatedSecurity = { playerAuth: string; }; export type CreatePublicLobbyDeprecatedRequest = { appId?: string | undefined; region?: components.Region | undefined; local?: boolean | undefined; }; /** @internal */ export type CreatePublicLobbyDeprecatedSecurity$Outbound = { playerAuth: string; }; /** @internal */ export const CreatePublicLobbyDeprecatedSecurity$outboundSchema: z.ZodType< CreatePublicLobbyDeprecatedSecurity$Outbound, z.ZodTypeDef, CreatePublicLobbyDeprecatedSecurity > = z.object({ playerAuth: z.string(), }); export function createPublicLobbyDeprecatedSecurityToJSON( createPublicLobbyDeprecatedSecurity: CreatePublicLobbyDeprecatedSecurity, ): string { return JSON.stringify( CreatePublicLobbyDeprecatedSecurity$outboundSchema.parse( createPublicLobbyDeprecatedSecurity, ), ); } /** @internal */ export type CreatePublicLobbyDeprecatedRequest$Outbound = { appId?: string | undefined; region?: string | undefined; local: boolean; }; /** @internal */ export const CreatePublicLobbyDeprecatedRequest$outboundSchema: z.ZodType< CreatePublicLobbyDeprecatedRequest$Outbound, z.ZodTypeDef, CreatePublicLobbyDeprecatedRequest > = z.object({ appId: z.string().optional(), region: components.Region$outboundSchema.optional(), local: z.boolean().default(false), }); export function createPublicLobbyDeprecatedRequestToJSON( createPublicLobbyDeprecatedRequest: CreatePublicLobbyDeprecatedRequest, ): string { return JSON.stringify( CreatePublicLobbyDeprecatedRequest$outboundSchema.parse( createPublicLobbyDeprecatedRequest, ), ); }