chore: bootstrap monorepo workspace and shared schemas

This commit is contained in:
Anton
2026-04-23 16:03:34 +03:00
commit 5f6a551b6c
15 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { z } from 'zod';
export const loginSchema = z.object({
username: z.string().trim().min(3).max(64),
password: z.string().min(8).max(200),
});
export type LoginInput = z.infer<typeof loginSchema>;
export const authUserSchema = z.object({
id: z.string(),
username: z.string(),
slug: z.string(),
displayName: z.string(),
});
export type AuthUser = z.infer<typeof authUserSchema>;