···41import * as PubLeafletContent from './types/pub/leaflet/content'
42import * as PubLeafletDocument from './types/pub/leaflet/document'
43import * as PubLeafletGraphSubscription from './types/pub/leaflet/graph/subscription'
044import * as PubLeafletPagesCanvas from './types/pub/leaflet/pages/canvas'
45import * as PubLeafletPagesLinearDocument from './types/pub/leaflet/pages/linearDocument'
46import * as PubLeafletPollDefinition from './types/pub/leaflet/poll/definition'
···87export * as PubLeafletContent from './types/pub/leaflet/content'
88export * as PubLeafletDocument from './types/pub/leaflet/document'
89export * as PubLeafletGraphSubscription from './types/pub/leaflet/graph/subscription'
090export * as PubLeafletPagesCanvas from './types/pub/leaflet/pages/canvas'
91export * as PubLeafletPagesLinearDocument from './types/pub/leaflet/pages/linearDocument'
92export * as PubLeafletPollDefinition from './types/pub/leaflet/poll/definition'
···408 publication: PubLeafletPublicationRecord
409 blocks: PubLeafletBlocksNS
410 graph: PubLeafletGraphNS
0411 pages: PubLeafletPagesNS
412 poll: PubLeafletPollNS
413 richtext: PubLeafletRichtextNS
···417 this._client = client
418 this.blocks = new PubLeafletBlocksNS(client)
419 this.graph = new PubLeafletGraphNS(client)
0420 this.pages = new PubLeafletPagesNS(client)
421 this.poll = new PubLeafletPollNS(client)
422 this.richtext = new PubLeafletRichtextNS(client)
···523 'com.atproto.repo.deleteRecord',
524 undefined,
525 { collection: 'pub.leaflet.graph.subscription', ...params },
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000526 { headers },
527 )
528 }
···1+/**
2+ * GENERATED CODE - DO NOT MODIFY
3+ */
4+import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5+import { CID } from 'multiformats/cid'
6+import { validate as _validate } from '../../../../lexicons'
7+import {
8+ type $Typed,
9+ is$typed as _is$typed,
10+ type OmitKey,
11+} from '../../../../util'
12+13+const is$typed = _is$typed,
14+ validate = _validate
15+const id = 'pub.leaflet.interactions.recommend'
16+17+export interface Record {
18+ $type: 'pub.leaflet.interactions.recommend'
19+ subject: string
20+ createdAt: string
21+ [k: string]: unknown
22+}
23+24+const hashRecord = 'main'
25+26+export function isRecord<V>(v: V) {
27+ return is$typed(v, id, hashRecord)
28+}
29+30+export function validateRecord<V>(v: V) {
31+ return validate<Record & V>(v, id, hashRecord, true)
32+}
+2
lexicons/build.ts
···3import { PubLeafletDocument } from "./src/document";
4import * as PublicationLexicons from "./src/publication";
5import * as PollLexicons from "./src/polls";
06import { ThemeLexicons } from "./src/theme";
78import * as fs from "fs";
···31 ...BlockLexicons,
32 ...Object.values(PublicationLexicons),
33 ...Object.values(PollLexicons),
034];
3536// Write each lexicon to a file
···3import { PubLeafletDocument } from "./src/document";
4import * as PublicationLexicons from "./src/publication";
5import * as PollLexicons from "./src/polls";
6+import * as InteractionsLexicons from "./src/interactions";
7import { ThemeLexicons } from "./src/theme";
89import * as fs from "fs";
···32 ...BlockLexicons,
33 ...Object.values(PublicationLexicons),
34 ...Object.values(PollLexicons),
35+ ...Object.values(InteractionsLexicons),
36];
3738// Write each lexicon to a file
···1+create table "public"."recommends_on_documents" (
2+ "uri" text not null,
3+ "record" jsonb not null,
4+ "document" text not null,
5+ "recommender_did" text not null,
6+ "indexed_at" timestamp with time zone not null default now()
7+);
8+9+alter table "public"."recommends_on_documents" enable row level security;
10+11+CREATE UNIQUE INDEX recommends_on_documents_pkey ON public.recommends_on_documents USING btree (uri);
12+13+alter table "public"."recommends_on_documents" add constraint "recommends_on_documents_pkey" PRIMARY KEY using index "recommends_on_documents_pkey";
14+15+CREATE INDEX recommends_on_documents_document_idx ON public.recommends_on_documents USING btree (document);
16+17+CREATE INDEX recommends_on_documents_recommender_did_idx ON public.recommends_on_documents USING btree (recommender_did);
18+19+CREATE UNIQUE INDEX recommends_on_documents_recommender_document_idx ON public.recommends_on_documents USING btree (recommender_did, document);
20+21+alter table "public"."recommends_on_documents" add constraint "recommends_on_documents_document_fkey" FOREIGN KEY (document) REFERENCES documents(uri) ON UPDATE CASCADE ON DELETE CASCADE;
22+23+alter table "public"."recommends_on_documents" add constraint "recommends_on_documents_recommender_did_fkey" FOREIGN KEY (recommender_did) REFERENCES identities(atp_did) ON UPDATE CASCADE ON DELETE CASCADE;
24+25+grant delete on table "public"."recommends_on_documents" to "anon";
26+27+grant insert on table "public"."recommends_on_documents" to "anon";
28+29+grant references on table "public"."recommends_on_documents" to "anon";
30+31+grant select on table "public"."recommends_on_documents" to "anon";
32+33+grant trigger on table "public"."recommends_on_documents" to "anon";
34+35+grant truncate on table "public"."recommends_on_documents" to "anon";
36+37+grant update on table "public"."recommends_on_documents" to "anon";
38+39+grant delete on table "public"."recommends_on_documents" to "authenticated";
40+41+grant insert on table "public"."recommends_on_documents" to "authenticated";
42+43+grant references on table "public"."recommends_on_documents" to "authenticated";
44+45+grant select on table "public"."recommends_on_documents" to "authenticated";
46+47+grant trigger on table "public"."recommends_on_documents" to "authenticated";
48+49+grant truncate on table "public"."recommends_on_documents" to "authenticated";
50+51+grant update on table "public"."recommends_on_documents" to "authenticated";
52+53+grant delete on table "public"."recommends_on_documents" to "service_role";
54+55+grant insert on table "public"."recommends_on_documents" to "service_role";
56+57+grant references on table "public"."recommends_on_documents" to "service_role";
58+59+grant select on table "public"."recommends_on_documents" to "service_role";
60+61+grant trigger on table "public"."recommends_on_documents" to "service_role";
62+63+grant truncate on table "public"."recommends_on_documents" to "service_role";
64+65+grant update on table "public"."recommends_on_documents" to "service_role";