alternative tangled frontend (extremely wip)

feat: more lexicon defs

serenity bf663b11 6e6991f1

+31 -3
+5 -3
src/lib/types/lexicons/app/bsky/actor/profile.ts
··· 1 + import { comAtprotoLabelDefsSelfLabelSchema } from "@/lib/types/lexicons/com/atproto/label/defs"; 2 + import { comAtprotoRepoStrongRefSchema } from "@/lib/types/lexicons/com/atproto/repo/strongRef"; 1 3 import { blobSchema } from "@/lib/types/lexicons/shared/blob"; 2 4 import z from "zod"; 3 5 ··· 8 10 website: z.url().optional(), 9 11 avatar: blobSchema.optional(), 10 12 banner: blobSchema.optional(), 11 - labels: z.unknown().optional(), 12 - joinedViaStarterPack: z.unknown().optional(), 13 - pinnedPost: z.unknown().optional(), 13 + labels: comAtprotoLabelDefsSelfLabelSchema.optional(), 14 + joinedViaStarterPack: comAtprotoRepoStrongRefSchema.optional(), 15 + pinnedPost: comAtprotoRepoStrongRefSchema.optional(), 14 16 createdAt: z.iso.datetime().optional(), 15 17 }); 16 18
+14
src/lib/types/lexicons/com/atproto/label/defs.ts
··· 1 + import { z } from "zod/v4"; 2 + 3 + export const comAtprotoLabelDefsSelfLabelSchema = z.object({ 4 + $type: z.literal("com.atproto.label.defs#selfLabels"), 5 + values: z.array( 6 + z.object({ 7 + val: z.string().max(128), 8 + }), 9 + ), 10 + }); 11 + 12 + export type ComAtprotoLabelDefsSelfLabel = z.infer< 13 + typeof comAtprotoLabelDefsSelfLabelSchema 14 + >;
+12
src/lib/types/lexicons/com/atproto/repo/strongRef.ts
··· 1 + import { z } from "zod/v4"; 2 + 3 + export const comAtprotoRepoStrongRefSchema = z 4 + .object({ 5 + uri: z.string().describe("AT-URI of the referenced record."), 6 + cid: z.string().describe("CID hash of the referenced record."), 7 + }) 8 + .describe("A URI with a content-hash fingerprint."); 9 + 10 + export type ComAtprotoRepoStrongRef = z.infer< 11 + typeof comAtprotoRepoStrongRefSchema 12 + >;