import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DeletedBuild, DeletedBuild$Outbound } from "./deletedbuild.js"; /** * Enable google auth for your application. */ export type Google = { /** * A Google generated token representing the developer's credentials for [Google's API Console](https://console.cloud.google.com/apis/dashboard?pli=1&project=discourse-login-388921). Learn how to get a `clientId` [here](https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid). */ clientId: string; }; /** * 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). */ export type AuthConfiguration = { /** * Enable google auth for your application. */ google?: Google | undefined; /** * Construct a type with a set of properties K of type T */ nickname?: DeletedBuild | undefined; /** * Construct a type with a set of properties K of type T */ anonymous?: DeletedBuild | undefined; }; /** @internal */ export declare const Google$inboundSchema: z.ZodType; /** @internal */ export type Google$Outbound = { clientId: string; }; /** @internal */ export declare const Google$outboundSchema: z.ZodType; export declare function googleToJSON(google: Google): string; export declare function googleFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AuthConfiguration$inboundSchema: z.ZodType; /** @internal */ export type AuthConfiguration$Outbound = { google?: Google$Outbound | undefined; nickname?: DeletedBuild$Outbound | undefined; anonymous?: DeletedBuild$Outbound | undefined; }; /** @internal */ export declare const AuthConfiguration$outboundSchema: z.ZodType; export declare function authConfigurationToJSON(authConfiguration: AuthConfiguration): string; export declare function authConfigurationFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=authconfiguration.d.ts.map