1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { z } from "zod";
export const BlueskyConfig = z.object({
limit: z.number().int().min(1).max(40).default(12),
});
export type BlueskyConfig = z.infer<typeof BlueskyConfig>;
export const BlueskyPayload = z.object({
notifications: z.array(
z.object({
reason: z.string(), // reply | mention | like | repost | follow
author: z.string(),
text: z.string(),
createdAt: z.string(),
}),
),
});
export type BlueskyPayload = z.infer<typeof BlueskyPayload>;
|