UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. Version 1.0.0 aligns with the YAML-first architecture of `appwrite-utils-cli`, providing enhanced integration capabilities and rob

25 lines (24 loc) 781 B
import { z } from "zod"; export const emailAttributeSchema = z.object({ key: z.string().describe("The key of the attribute"), type: z .literal("email") .describe("The type of the attribute") .default("email"), error: z .string() .default("Invalid String Attribute Schema") .optional() .describe("The error message if the attribute is invalid"), required: z .boolean() .default(false) .optional() .describe("Whether the attribute is required or not"), array: z .boolean() .default(false) .optional() .describe("Whether the attribute is an array or not"), xdefault: z.string().nullish().describe("The default value of the attribute"), });