import { USER_ROLE, SIGNUP_METHOD, USER_STATUS } from '../../constants'; import { z } from 'zod'; export namespace GetMeCommand { export const RequestSchema = z.object({}); export type Request = z.infer; export const ResponseSchema = z.object({ data: z.object({ uuid: z.string().uuid(), email: z.string().email(), status: z.nativeEnum(USER_STATUS), role: z.nativeEnum(USER_ROLE), vkId: z.string().nullable(), yandexId: z.string().nullable(), signupMethod: z.nativeEnum(SIGNUP_METHOD), }), }); export type Response = z.infer; }