import { z } from 'zod';
import { usernameSchema } from '../validators.js';

export const loginRequestSchema = z.object({
  username: usernameSchema,
  password: z.string().min(1, 'Passwort ist erforderlich'),
});

export const refreshTokenRequestSchema = z.object({
  refreshToken: z.string().min(1, 'Refresh Token ist erforderlich'),
});

export type LoginRequestInput = z.input<typeof loginRequestSchema>;
export type LoginRequestOutput = z.output<typeof loginRequestSchema>;
