alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
18 lines (15 loc) • 430 B
text/typescript
import type { Static } from "alepha";
import { z } from "alepha";
/**
* Schema for user registration query parameters.
* Allows specifying a custom user realm.
*/
export const registerQuerySchema = z.object({
userRealmName: z
.text({
description:
"The user realm to register the user in (defaults to 'default')",
})
.optional(),
});
export type RegisterQuery = Static<typeof registerQuerySchema>;