decentralised sync engine

refactor: rename export

serenity 3a355d4c 47814177

Changed files
+3 -3
src
lib
utils
+3 -3
src/lib/utils/handshake.ts
···
import type { AtUri, Did } from "@/lib/types/atproto";
-
import type { ShardSessionInfo } from "@/lib/types/handshake";
import {
-
handshakeResponseSchema,
httpSuccessResponseSchema,
} from "@/lib/types/http/responses";
import { atUriToString } from "@/lib/utils/atproto";
import { getShardEndpointFromDid } from "@/lib/utils/gmstn";
···
success: handshakeDataParseSuccess,
error: handshakeDataParseError,
data: handshakeDataParsed,
-
} = handshakeResponseSchema.safeParse(handshakeData);
if (!handshakeDataParseSuccess)
return { ok: false, error: z.treeifyError(handshakeDataParseError) };
···
import type { AtUri, Did } from "@/lib/types/atproto";
+
import { type ShardSessionInfo } from "@/lib/types/handshake";
import {
httpSuccessResponseSchema,
+
shardHandshakeResponseSchema,
} from "@/lib/types/http/responses";
import { atUriToString } from "@/lib/utils/atproto";
import { getShardEndpointFromDid } from "@/lib/utils/gmstn";
···
success: handshakeDataParseSuccess,
error: handshakeDataParseError,
data: handshakeDataParsed,
+
} = shardHandshakeResponseSchema.safeParse(handshakeData);
if (!handshakeDataParseSuccess)
return { ok: false, error: z.treeifyError(handshakeDataParseError) };