mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
24 lines
698 B
TypeScript
24 lines
698 B
TypeScript
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({
|
|
token: z.string().trim().min(1),
|
|
});
|
|
|
|
export type TDisableTwoFactorAuthenticationMutationSchema = z.infer<
|
|
typeof ZDisableTwoFactorAuthenticationMutationSchema
|
|
>;
|
|
|
|
export const ZViewRecoveryCodesMutationSchema = z.object({
|
|
token: z.string().trim().min(1),
|
|
});
|
|
|
|
export type TViewRecoveryCodesMutationSchema = z.infer<typeof ZViewRecoveryCodesMutationSchema>;
|