changemaker.lite/api/dist/modules/auth/auth.schemas.d.ts

38 lines
1.0 KiB
TypeScript

import { z } from 'zod';
export declare const loginSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
}, {
email: string;
password: string;
}>;
export declare const registerSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
name: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
name?: string | undefined;
phone?: string | undefined;
}, {
email: string;
password: string;
name?: string | undefined;
phone?: string | undefined;
}>;
export declare const refreshSchema: z.ZodObject<{
refreshToken: z.ZodString;
}, "strip", z.ZodTypeAny, {
refreshToken: string;
}, {
refreshToken: string;
}>;
export type LoginInput = z.infer<typeof loginSchema>;
export type RegisterInput = z.infer<typeof registerSchema>;
export type RefreshInput = z.infer<typeof refreshSchema>;
//# sourceMappingURL=auth.schemas.d.ts.map