aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/types/users.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/shared/types/users.ts b/packages/shared/types/users.ts
index 86c5a9ee..62b77e56 100644
--- a/packages/shared/types/users.ts
+++ b/packages/shared/types/users.ts
@@ -39,3 +39,16 @@ export const zUserStatsResponseSchema = z.object({
numLists: z.number(),
numHighlights: z.number(),
});
+
+export const zUserSettingsSchema = z.object({
+ bookmarkClickAction: z.enum([
+ "open_original_link",
+ "expand_bookmark_preview",
+ ]),
+});
+
+export type ZUserSettings = z.infer<typeof zUserSettingsSchema>;
+
+export const zUpdateUserSettingsSchema = zUserSettingsSchema.partial().pick({
+ bookmarkClickAction: true,
+});