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
37 lines (36 loc) • 1.43 kB
TypeScript
import { z } from "zod";
export declare const stringAttributeSchema: z.ZodObject<{
key: z.ZodString;
type: z.ZodDefault<z.ZodLiteral<"string">>;
error: z.ZodOptional<z.ZodDefault<z.ZodString>>;
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
array: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
encrypted: z.ZodOptional<z.ZodBoolean>;
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
}, "strip", z.ZodTypeAny, {
type: "string";
key: string;
size: number;
format?: string | null | undefined;
description?: string | Record<string, string> | undefined;
required?: boolean | undefined;
array?: boolean | undefined;
error?: string | undefined;
xdefault?: string | null | undefined;
encrypted?: boolean | undefined;
}, {
key: string;
type?: "string" | undefined;
format?: string | null | undefined;
description?: string | Record<string, string> | undefined;
required?: boolean | undefined;
array?: boolean | undefined;
error?: string | undefined;
size?: number | undefined;
xdefault?: string | null | undefined;
encrypted?: boolean | undefined;
}>;
export type StringAttribute = z.infer<typeof stringAttributeSchema>;