From a6fad4713bbfc354d609bfabb1a34bfbeb5bd2a1 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:35:36 +0800 Subject: [PATCH] chore: tweak filter-sphere schema --- src/components/filter-sphere.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/filter-sphere.tsx b/src/components/filter-sphere.tsx index 06bbaf1..f115cf7 100644 --- a/src/components/filter-sphere.tsx +++ b/src/components/filter-sphere.tsx @@ -22,19 +22,24 @@ import { } from "./ui/select"; export const schema = z.object({ - path: z.string().describe("Path"), type: z .union([ - z.literal("YDoc"), + z.literal("YText"), z.literal("YMap"), z.literal("YArray"), - z.literal("YText"), z.literal("YXmlElement"), z.literal("YXmlFragment"), z.literal("YAbstractType"), + z.literal("YDoc"), + z.literal("Object"), + z.literal("Boolean"), + z.literal("String"), + z.literal("Number"), + z.literal("Uint8Array"), ]) .describe("Type"), key: z.string().describe("Key"), + path: z.string().describe("Path"), value: z.unknown(), });