mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 23:19:39 -05:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
import { z } from "zod/v4";
|
|
import { id } from "~/utils/zod";
|
|
import { NOTIFICATIONS } from "./notifications-contants";
|
|
|
|
export const markAsSeenActionSchema = z.object({
|
|
notificationIds: z.array(id).min(1).max(NOTIFICATIONS.MAX_SHOWN),
|
|
});
|
|
|
|
export const subscribeSchema = z.object({
|
|
endpoint: z.string().url(),
|
|
keys: z.object({
|
|
auth: z.string(),
|
|
p256dh: z.string(),
|
|
}),
|
|
});
|