mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { z } from "zod";
|
|
|
|
export const userInfoResponse = z.object({
|
|
email: z.string().email(),
|
|
nickname: z.string().nonempty(),
|
|
});
|
|
export type UserInfoResponse = z.output<typeof userInfoResponse>;
|
|
|
|
export const nicknameChangeRequest = z.object({
|
|
newNickname: z.string().trim().min(2).max(8),
|
|
});
|
|
export type NicknameChangeRequest = z.input<typeof nicknameChangeRequest>;
|