From 84f6856d3e924d25f9778ce12bbf51c97b31c8e6 Mon Sep 17 00:00:00 2001 From: Juliet Date: Wed, 10 Sep 2025 17:47:34 +0200 Subject: [PATCH] add leaflet lexicon validation --- package.json | 1 + pnpm-lock.yaml | 11 +++++++++++ src/utils/types/lexicons.ts | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/package.json b/package.json index f8e9edf..b272f67 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@atcute/did-plc": "^0.1.6", "@atcute/identity": "^1.1.0", "@atcute/identity-resolver": "^1.1.3", + "@atcute/leaflet": "^1.0.6", "@atcute/lexicon-doc": "^1.0.3", "@atcute/lexicons": "^1.1.1", "@atcute/oauth-browser-client": "^1.0.26", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3425eb1..12837ee 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,9 @@ importers: '@atcute/identity-resolver': specifier: ^1.1.3 version: 1.1.3(@atcute/identity@1.1.0) + '@atcute/leaflet': + specifier: ^1.0.6 + version: 1.0.6 '@atcute/lexicon-doc': specifier: ^1.0.3 version: 1.0.3 @@ -174,6 +177,9 @@ packages: '@atcute/identity@1.1.0': resolution: {integrity: sha512-6vRvRqJatDB+JUQsb+UswYmtBGQnSZcqC3a2y6H5DB/v5KcIh+6nFFtc17G0+3W9rxdk7k9M4KkgkdKf/YDNoQ==} + '@atcute/leaflet@1.0.6': + resolution: {integrity: sha512-Q82GhrNdKwA7vd1IchWh4IUjhkDB2jfKGS1LhBeYkJSq4CJKX+nlWosSBSJOfCPY+drSqHWxHrq2bmWCCQJvXg==} + '@atcute/lexicon-doc@1.0.3': resolution: {integrity: sha512-U7rinsTOwXGGcrF6/s7GzTXargcQpDr4BTrj5ci/XTK+POEK5jpcI+Ag1fF932pBX3k97em6y4TWwTSO8M/McQ==} @@ -1505,6 +1511,11 @@ snapshots: '@atcute/lexicons': 1.1.1 '@badrap/valita': 0.4.6 + '@atcute/leaflet@1.0.6': + dependencies: + '@atcute/atproto': 3.1.3 + '@atcute/lexicons': 1.1.1 + '@atcute/lexicon-doc@1.0.3': dependencies: '@badrap/valita': 0.4.6 diff --git a/src/utils/types/lexicons.ts b/src/utils/types/lexicons.ts index 073a1fb..12b790b 100644 --- a/src/utils/types/lexicons.ts +++ b/src/utils/types/lexicons.ts @@ -17,6 +17,12 @@ import { AppBskyLabelerService, ChatBskyActorDeclaration, } from "@atcute/bluesky"; +import { + PubLeafletComment, + PubLeafletDocument, + PubLeafletGraphSubscription, + PubLeafletPublication, +} from "@atcute/leaflet"; import { ShTangledActorProfile, ShTangledFeedStar, @@ -79,4 +85,10 @@ export const lexicons: Record = { "sh.tangled.repo.pull.status.merged": ShTangledRepoPullStatusMerged.mainSchema, "sh.tangled.repo.pull.status.open": ShTangledRepoPullStatusOpen.mainSchema, "sh.tangled.knot": ShTangledKnot.mainSchema, + + // Leaflet + "pub.leaflet.comment": PubLeafletComment.mainSchema, + "pub.leaflet.document": PubLeafletDocument.mainSchema, + "pub.leaflet.graph.subscription": PubLeafletGraphSubscription.mainSchema, + "pub.leaflet.publication": PubLeafletPublication.mainSchema, }; -- 2.51.2