/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { AuthConfiguration, AuthConfiguration$Outbound, AuthConfiguration$outboundSchema, } from "./authconfiguration.js"; import { ServiceConfigWrite, ServiceConfigWrite$Outbound, ServiceConfigWrite$outboundSchema, } from "./serviceconfigwrite.js"; /** * Make all properties in T optional */ export type PartialAppConfigWithServiceConfig = { appName?: string | undefined; /** * Configure [player authentication](https://hathora.dev/docs/backend-integrations/lobbies-and-matchmaking/auth-service) for your application. Use Hathora's built-in auth providers or use your own [custom authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service#custom-auth-provider). */ authConfiguration?: AuthConfiguration | undefined; serviceConfig?: ServiceConfigWrite | undefined; }; /** @internal */ export type PartialAppConfigWithServiceConfig$Outbound = { appName?: string | undefined; authConfiguration?: AuthConfiguration$Outbound | undefined; serviceConfig?: ServiceConfigWrite$Outbound | undefined; }; /** @internal */ export const PartialAppConfigWithServiceConfig$outboundSchema: z.ZodType< PartialAppConfigWithServiceConfig$Outbound, z.ZodTypeDef, PartialAppConfigWithServiceConfig > = z.object({ appName: z.string().optional(), authConfiguration: AuthConfiguration$outboundSchema.optional(), serviceConfig: ServiceConfigWrite$outboundSchema.optional(), }); export function partialAppConfigWithServiceConfigToJSON( partialAppConfigWithServiceConfig: PartialAppConfigWithServiceConfig, ): string { return JSON.stringify( PartialAppConfigWithServiceConfig$outboundSchema.parse( partialAppConfigWithServiceConfig, ), ); }