decentralised sync engine
at main 678 B view raw
1import { atUriSchema, didSchema } from "@/lib/types/atproto"; 2import { z } from "zod"; 3 4export const shardSessionInfoSchema = z.object({ 5 id: z.string(), 6 token: z.string(), 7 fingerprint: z.string(), 8 allowedChannels: z.array(atUriSchema), 9 shardDid: didSchema, 10 latticeDid: didSchema, 11}); 12export type ShardSessionInfo = z.infer<typeof shardSessionInfoSchema>; 13 14export const latticeSessionInfoSchema = z.object({ 15 id: z.string(), 16 token: z.string(), 17 fingerprint: z.string(), 18 allowedChannels: z.array(atUriSchema), 19 clientDid: didSchema, 20 latticeDid: didSchema, 21}); 22export type LatticeSessionInfo = z.infer<typeof latticeSessionInfoSchema>;