a tool for shared writing and social publishing
0

Configure Feed

Select the types of activity you want to include in your feed.

add missing reccomend lexicon generated files

Jared Pereira (Apr 30, 2026, 3:46 PM EDT) 1f6b24be 96eb6239

+59
+33
lexicons/api/types/site/standard/graph/recommend.ts
··· 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 = 'site.standard.graph.recommend' 16 + 17 + export interface Record { 18 + $type: 'site.standard.graph.recommend' 19 + /** AT-URI reference to the document record being recommended (ex: at://did:plc:abc123/site.standard.document/xyz789). */ 20 + document: string 21 + createdAt: string 22 + [k: string]: unknown 23 + } 24 + 25 + const hashRecord = 'main' 26 + 27 + export function isRecord<V>(v: V) { 28 + return is$typed(v, id, hashRecord) 29 + } 30 + 31 + export function validateRecord<V>(v: V) { 32 + return validate<Record & V>(v, id, hashRecord, true) 33 + }
+26
lexicons/site/standard/graph/recommend.json
··· 1 + { 2 + "id": "site.standard.graph.recommend", 3 + "defs": { 4 + "main": { 5 + "key": "tid", 6 + "type": "record", 7 + "record": { 8 + "type": "object", 9 + "required": ["document", "createdAt"], 10 + "properties": { 11 + "document": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI reference to the document record being recommended (ex: at://did:plc:abc123/site.standard.document/xyz789)." 15 + }, 16 + "createdAt": { 17 + "type": "string", 18 + "format": "datetime" 19 + } 20 + } 21 + }, 22 + "description": "Record declaring a recommendation of a document." 23 + } 24 + }, 25 + "lexicon": 1 26 + }