appwrite-utils
Version:
74 lines (73 loc) • 2.5 kB
JavaScript
// 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 SpecificationListJsonSchema = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"x-example": 5,
"description": "Total number of specifications that matched your query."
},
"specifications": {
"type": "array",
"items": {
"type": "object",
"properties": {
"memory": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"x-example": 512,
"description": "Memory size in MB."
},
"cpus": {
"type": "number",
"x-example": 1,
"description": "Number of CPUs."
},
"enabled": {
"type": "boolean",
"x-example": true,
"description": "Is size enabled."
},
"slug": {
"type": "string",
"x-example": "s-1vcpu-512mb",
"description": "Size slug."
}
},
"required": [
"memory",
"cpus",
"enabled",
"slug"
],
"additionalProperties": {},
"example": {
"memory": 512,
"cpus": 1,
"enabled": true,
"slug": "s-1vcpu-512mb"
},
"description": "Specification"
},
"x-example": "",
"description": "List of specifications."
}
},
"required": [
"total",
"specifications"
],
"additionalProperties": {},
"example": {
"total": 5,
"specifications": ""
},
"description": "Specifications List"
};
export const SpecificationListSchema = z.fromJSONSchema(SpecificationListJsonSchema);