From 3fe20dda157cbae282f55d6afb8e8f99e795945a Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 26 Feb 2024 12:47:36 +0000 Subject: feature: Add support for adding/removing tags --- packages/web/lib/types/api/tags.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/web/lib') diff --git a/packages/web/lib/types/api/tags.ts b/packages/web/lib/types/api/tags.ts index bcd16f5b..7a99dad4 100644 --- a/packages/web/lib/types/api/tags.ts +++ b/packages/web/lib/types/api/tags.ts @@ -1,7 +1,10 @@ import { z } from "zod"; +export const zAttachedByEnumSchema = z.enum(["ai", "human"]); +export type ZAttachedByEnum = z.infer; export const zBookmarkTagSchema = z.object({ id: z.string(), name: z.string(), + attachedBy: zAttachedByEnumSchema, }); export type ZBookmarkTags = z.infer; -- cgit v1.2.3-70-g09d2