/* * 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"; export type AppConfigWithServiceConfig = { serviceConfig?: ServiceConfigWrite | 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; /** * Readable name for an application. Must be unique within an organization. */ appName: string; }; /** @internal */ export type AppConfigWithServiceConfig$Outbound = { serviceConfig?: ServiceConfigWrite$Outbound | undefined; authConfiguration: AuthConfiguration$Outbound; appName: string; }; /** @internal */ export const AppConfigWithServiceConfig$outboundSchema: z.ZodType< AppConfigWithServiceConfig$Outbound, z.ZodTypeDef, AppConfigWithServiceConfig > = z.object({ serviceConfig: ServiceConfigWrite$outboundSchema.optional(), authConfiguration: AuthConfiguration$outboundSchema, appName: z.string(), }); export function appConfigWithServiceConfigToJSON( appConfigWithServiceConfig: AppConfigWithServiceConfig, ): string { return JSON.stringify( AppConfigWithServiceConfig$outboundSchema.parse(appConfigWithServiceConfig), ); }