aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/types/users.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/shared/types/users.ts b/packages/shared/types/users.ts
index 758b757d..830fe87b 100644
--- a/packages/shared/types/users.ts
+++ b/packages/shared/types/users.ts
@@ -1,5 +1,7 @@
import { z } from "zod";
+import { zBookmarkSourceSchema } from "./bookmarks";
+
export const PASSWORD_MIN_LENGTH = 8;
export const PASSWORD_MAX_LENGTH = 100;
@@ -91,6 +93,12 @@ export const zUserStatsResponseSchema = z.object({
}),
)
.max(10),
+ bookmarksBySource: z.array(
+ z.object({
+ source: zBookmarkSourceSchema.nullable(),
+ count: z.number(),
+ }),
+ ),
});
export const zUserSettingsSchema = z.object({