decentralised sync engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: did differentiation

serenity c4ae38ef c9466b3d

+7
+5
src/lib/types/atproto.ts
··· 1 + import { z } from "zod"; 2 + 3 + export const didPlcSchema = z.templateLiteral(["did:plc:", z.string()]); 4 + 5 + export type DidPlc = z.infer<typeof didPlcSchema>;
+2
src/lib/types/messages.ts
··· 1 + import { didPlcSchema } from "@/lib/types/atproto"; 1 2 import { z } from "zod"; 2 3 3 4 export const websocketMessageSchema = z.object({ ··· 9 10 export const shardMessageSchema = websocketMessageSchema.extend({ 10 11 type: z.literal("shard/message"), 11 12 text: z.string(), 13 + did: didPlcSchema, 12 14 timestamp: z.coerce.date(), 13 15 }); 14 16