UNPKG

appwrite-utils-cli

Version:

Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.

65 lines (64 loc) 2.49 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">>>; }, "strip", z.ZodTypeAny, { $id: string; prefs: Record<string, string>; labels: string[]; name?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; }, { $id: string; name?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; email?: string | null | 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<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">>>; }, "$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; $createdAt?: string | undefined; $updatedAt?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; userId?: string | undefined; }, { password?: string | undefined; name?: string | null | undefined; $createdAt?: string | undefined; $updatedAt?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; prefs?: Record<string, string> | undefined; labels?: string[] | undefined; userId?: string | undefined; }>; export type AuthUserCreate = z.infer<typeof AuthUserCreateSchema>;