2023-12-01 05:52:16 +05:30
|
|
|
import { z } from 'zod';
|
|
|
|
|
|
|
|
|
|
export const ZEnableTwoFactorAuthenticationMutationSchema = z.object({
|
|
|
|
|
code: z.string().min(6).max(6),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type TEnableTwoFactorAuthenticationMutationSchema = z.infer<
|
|
|
|
|
typeof ZEnableTwoFactorAuthenticationMutationSchema
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
export const ZDisableTwoFactorAuthenticationMutationSchema = z.object({
|
2024-03-25 11:34:50 +08:00
|
|
|
token: z.string().trim().min(1),
|
2023-12-01 05:52:16 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type TDisableTwoFactorAuthenticationMutationSchema = z.infer<
|
|
|
|
|
typeof ZDisableTwoFactorAuthenticationMutationSchema
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
export const ZViewRecoveryCodesMutationSchema = z.object({
|
2024-03-25 11:34:50 +08:00
|
|
|
token: z.string().trim().min(1),
|
2023-12-01 05:52:16 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type TViewRecoveryCodesMutationSchema = z.infer<typeof ZViewRecoveryCodesMutationSchema>;
|