augmenttoolkit / shared /src /config /config.schema.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 7)
98fbc6d verified
Raw
History Blame Contribute Delete
562 Bytes
import { z } from 'zod';
/**
* Public config contract — the unauthenticated /api/config endpoint.
*
* This is the only public (non-authenticated) endpoint in the L2 bundle: the
* login page reads it before a user signs in to pick the initial language. The
* legacy route (server/src/routes/publicConfig.ts) returns just the server's
* configured default language, so the response is intentionally minimal.
*/
export const publicConfigSchema = z.object({
defaultLanguage: z.string(),
});
export type PublicConfig = z.infer<typeof publicConfigSchema>;