decentralised sync engine

feat: client lattice handshake route

serenity 47814177 fe7ed217

Changed files
+6 -5
src
lib
types
routes
handshake
+4 -3
src/lib/types/http/handlers.ts
···
import { z } from "zod";
-
export const handshakeDataSchema = z.object({
interServiceJwt: z.string(),
-
channelAtUris: z.array(z.string()),
});
-
export type HandshakeData = z.infer<typeof handshakeDataSchema>;
···
+
import { systemsGmstnDevelopmentChannelMembershipRecordSchema } from "@/lib/types/lexicon/systems.gmstn.development.channel.membership";
import { z } from "zod";
+
export const latticeHandshakeDataSchema = z.object({
interServiceJwt: z.string(),
+
memberships: z.array(systemsGmstnDevelopmentChannelMembershipRecordSchema),
});
+
export type LatticeHandshakeData = z.infer<typeof latticeHandshakeDataSchema>;
+2 -2
src/routes/handshake/route.ts
···
-
import { clientHandshakeHandler } from "@/lib/handlers/handshake";
import type { Route } from "@/lib/types/routes";
export const handshakeRoute: Route = {
method: "POST",
-
handler: clientHandshakeHandler,
};
···
+
import { latticeHandshakeHandler } from "@/lib/handlers/latticeHandshake";
import type { Route } from "@/lib/types/routes";
export const handshakeRoute: Route = {
method: "POST",
+
handler: latticeHandshakeHandler,
};