decentralised message store
1import { didSchema, nsidSchema } from "@/lib/types/atproto";
2import { z } from "zod";
3
4export const constellationBacklinkSchema = z.object({
5 did: didSchema,
6 collection: nsidSchema,
7 rkey: z.string(),
8});
9export type ConstellationBacklink = z.infer<typeof constellationBacklinkSchema>;
10
11export const constellationBacklinkResponseSchema = z.object({
12 total: z.number(),
13 records: z.array(constellationBacklinkSchema),
14 cursor: z.optional(z.string().nullish()),
15});
16export type ConstellationBacklinkResponse = z.infer<
17 typeof constellationBacklinkResponseSchema
18>;