decentralised sync engine

feat: additional lexicon types

serenity 5bc32cce cd53b830

+9
src/lib/types/atproto.ts
···
),
});
export type DidDocument = z.infer<typeof didDocumentSchema>;
+
+
export const comAtprotoRepoStrongRefSchema = z.object({
+
$type: z.optional(z.literal("com.atproto.repo.strongRef")),
+
cid: z.string(),
+
uri: z.string(),
+
});
+
export type ComAtprotoRepoStrongRef = z.infer<
+
typeof comAtprotoRepoStrongRefSchema
+
>;
+14
src/lib/types/lexicon/systems.gmstn.development.channel.ts
···
+
import { comAtprotoRepoStrongRefSchema } from "@/lib/types/atproto";
+
import { z } from "zod";
+
+
export const systemsGmstnDevelopmentChannelRecordSchema = z.object({
+
$type: z.string(),
+
name: z.string(),
+
topic: z.string(),
+
storeAt: comAtprotoRepoStrongRefSchema,
+
routeThrough: comAtprotoRepoStrongRefSchema,
+
createdAt: z.coerce.date(),
+
});
+
export type SystemsGmstnDevelopmentChannel = z.infer<
+
typeof systemsGmstnDevelopmentChannelRecordSchema
+
>;
+14
src/lib/types/lexicon/systems.gmstn.development.lattice.ts
···
+
import { comAtprotoRepoStrongRefSchema } from "@/lib/types/atproto";
+
import { z } from "zod";
+
+
export const systemsGmstnDevelopmentChannelRecordSchema = z.object({
+
$type: z.string(),
+
name: z.string(),
+
topic: z.string(),
+
storeAt: comAtprotoRepoStrongRefSchema,
+
routeThrough: comAtprotoRepoStrongRefSchema,
+
createdAt: z.coerce.date(),
+
});
+
export type SystemsGmstnDevelopmentChannel = z.infer<
+
typeof systemsGmstnDevelopmentChannelRecordSchema
+
>;