UNPKG

appwrite-utils

Version:
34 lines (33 loc) 961 B
import { z } from "zod"; import { Models } from "appwrite"; export declare const AuthUserSchema: z.ZodObject<{ $id: string; $createdAt: string; $updatedAt: string; name: string; password?: string | undefined; hash?: string | undefined; hashOptions?: object | undefined; registration: string; status: boolean; labels: string[]; passwordUpdate: string; email: string; phone: string; emailVerification: boolean; phoneVerification: boolean; mfa: boolean; prefs: Models.Preferences; targets: Models.Target[]; accessedAt: string; }, z.core.$strip>; export type AuthUser = z.infer<typeof AuthUserSchema>; export declare const AuthUserCreateSchema: z.ZodObject<{ name: string; email: string; phone: string; password?: string | undefined; labels: string[]; prefs: Models.Preferences; }, z.core.$strip>; export type AuthUserCreate = z.infer<typeof AuthUserCreateSchema>;