diff options
Diffstat (limited to 'packages/shared')
| -rw-r--r-- | packages/shared/types/bookmarks.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/shared/types/bookmarks.ts b/packages/shared/types/bookmarks.ts index af7474ad..883dda30 100644 --- a/packages/shared/types/bookmarks.ts +++ b/packages/shared/types/bookmarks.ts @@ -196,6 +196,16 @@ export const zUpdateBookmarksRequestSchema = z.object({ note: z.string().optional(), title: z.string().max(MAX_TITLE_LENGTH).nullish(), createdAt: z.coerce.date().optional(), + // Link specific fields (optional) + url: z.string().url().optional(), + description: z.string().nullish(), + author: z.string().nullish(), + publisher: z.string().nullish(), + datePublished: z.coerce.date().nullish(), + dateModified: z.coerce.date().nullish(), + + // Text specific fields (optional) + text: z.string().nullish(), }); export type ZUpdateBookmarksRequest = z.infer< typeof zUpdateBookmarksRequestSchema |
