decentralised sync engine

refactor: expand uri schema

serenity 5e139ebd 0856d32d

Changed files
+2
src
lib
types
+2
src/lib/types/handshake.ts
···
import { z } from "zod";
export const sessionInfoSchema = z.object({
id: z.string(),
token: z.string(),
fingerprint: z.string(),
});
export type SessionInfo = z.infer<typeof sessionInfoSchema>;
···
+
import { atUriSchema } from "@/lib/types/atproto";
import { z } from "zod";
export const sessionInfoSchema = z.object({
id: z.string(),
token: z.string(),
fingerprint: z.string(),
+
allowedChannels: z.array(atUriSchema),
});
export type SessionInfo = z.infer<typeof sessionInfoSchema>;