import { z } from "zod"; export const MastodonConfig = z.object({ limit: z.number().int().min(1).max(40).default(12), }); export type MastodonConfig = z.infer; export const MastodonPayload = z.object({ notifications: z.array( z.object({ type: z.string(), account: z.string(), text: z.string(), url: z.string().nullable(), createdAt: z.string(), }), ), }); export type MastodonPayload = z.infer;