UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati

69 lines (68 loc) 2.67 kB
import { z } from "zod"; export declare const AuthUserSchema: z.ZodObject<{ $id: z.ZodString; $createdAt: z.ZodOptional<z.ZodString>; $updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodNullable<z.ZodString>>; email: z.ZodOptional<z.ZodNullable<z.ZodString>>; phone: z.ZodOptional<z.ZodNullable<z.ZodString>>; prefs: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>; labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { $id: string; prefs: Record<string, string>; labels: string[]; password?: string | undefined; name?: string | null | undefined; email?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; phone?: string | null | undefined; }, { $id: string; password?: string | undefined; name?: string | null | undefined; email?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; phone?: string | null | undefined; prefs?: Record<string, string> | undefined; labels?: string[] | undefined; }>; export type AuthUser = z.infer<typeof AuthUserSchema>; export declare const AuthUserCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{ $id: z.ZodString; $createdAt: z.ZodOptional<z.ZodString>; $updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodNullable<z.ZodString>>; email: z.ZodOptional<z.ZodNullable<z.ZodString>>; phone: z.ZodOptional<z.ZodNullable<z.ZodString>>; prefs: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>; labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; password: z.ZodOptional<z.ZodString>; }, "$id">, { userId: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }>, "strip", z.ZodTypeAny, { prefs: Record<string, string>; labels: string[]; password?: string | undefined; name?: string | null | undefined; email?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; phone?: string | null | undefined; userId?: string | undefined; }, { password?: string | undefined; name?: string | null | undefined; email?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; phone?: string | null | undefined; prefs?: Record<string, string> | undefined; labels?: string[] | undefined; userId?: string | undefined; }>; export type AuthUserCreate = z.infer<typeof AuthUserCreateSchema>;