/**
 * 登录请求
 * 
 */
import { z } from "zod";

import { booleanOrFalse, stringOrEmpty } from "../../nullable-defaults";

export const LoginRequestSchema = z.object({
  email: stringOrEmpty,
  username: stringOrEmpty,
  password: z.string(),
  platform: z.string(),
  guestId: stringOrEmpty,
  psid: stringOrEmpty,
  isTestAccount: booleanOrFalse,
});

export type LoginRequestInput = z.input<typeof LoginRequestSchema>;
export type LoginRequestData = z.output<typeof LoginRequestSchema>;
