Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web-api-contract): add anon_view variant to Notification schema

Richie McIlroyd47a0720b813
diff --git a/packages/web-api-contract/src/index.ts b/packages/web-api-contract/src/index.ts
index 2203d1de8..2d73d14d3 100644
--- a/packages/web-api-contract/src/index.ts
+++ b/packages/web-api-contract/src/index.ts
@@ -45,6 +45,12 @@ export const Notification = z
author: NotificationAuthor,
comment: CommentData,
}),
+ z.object({
+ type: z.literal("anon_view"),
+ videoId: z.string(),
+ anonName: z.string(),
+ location: z.string().nullable(),
+ }),
// z.object({
// type: z.literal("mention"),
// videoId: z.string(),