UNPKG

appwrite-utils

Version:
78 lines (77 loc) 2.39 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 RowJsonSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "$id": { "type": "string", "x-example": "5e5ea5c16897e", "description": "Row ID." }, "$sequence": { "readOnly": true, "x-example": 1, "description": "Row automatically incrementing ID.", "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "$tableId": { "readOnly": true, "x-example": "5e5ea5c15117e", "description": "Table ID.", "type": "string" }, "$databaseId": { "readOnly": true, "x-example": "5e5ea5c15117e", "description": "Database ID.", "type": "string" }, "$createdAt": { "type": "string", "x-example": "2020-10-15T06:38:00.000+00:00", "description": "Row creation date in ISO 8601 format." }, "$updatedAt": { "type": "string", "x-example": "2020-10-15T06:38:00.000+00:00", "description": "Row update date in ISO 8601 format." }, "$permissions": { "type": "array", "items": { "type": "string" }, "x-example": [ "read(\"any\")" ], "description": "Row permissions. [Learn more about permissions](https://appwrite.io/docs/permissions)." } }, "required": [ "$id", "$sequence", "$tableId", "$databaseId", "$createdAt", "$updatedAt", "$permissions" ], "additionalProperties": {}, "example": { "$id": "5e5ea5c16897e", "$sequence": 1, "$tableId": "5e5ea5c15117e", "$databaseId": "5e5ea5c15117e", "$createdAt": "2020-10-15T06:38:00.000+00:00", "$updatedAt": "2020-10-15T06:38:00.000+00:00", "$permissions": [ "read(\"any\")" ] }, "description": "Row" }; export const RowSchema = z.fromJSONSchema(RowJsonSchema);