▍ humdrum codex / soft
488 B raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import { z } from "zod";

export const MastodonConfig = z.object({
  limit: z.number().int().min(1).max(40).default(12),
});
export type MastodonConfig = z.infer<typeof MastodonConfig>;

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<typeof MastodonPayload>;