UNPKG

appwrite-utils

Version:
52 lines (51 loc) 1.56 kB
// AUTO-GENERATED from Appwrite OpenAPI spec at main. DO NOT EDIT. // Source: https://github.com/appwrite/appwrite/tree/main/app/config/specs import { z } from "zod"; const VcsContentJsonSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "size": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ], "x-example": 1523, "description": "Content size in bytes. Only files have size, and for directories, 0 is returned." }, "isDirectory": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "x-example": true, "description": "If a content is a directory. Directories can be used to check nested contents." }, "name": { "type": "string", "x-example": "Main.java", "description": "Name of directory or file." } }, "required": [ "name" ], "additionalProperties": {}, "example": { "size": 1523, "isDirectory": true, "name": "Main.java" }, "description": "VcsContents" }; export const VcsContentSchema = z.fromJSONSchema(VcsContentJsonSchema);