a tool for shared writing and social publishing

add page block generated files

+43
+26
lexicons/api/types/pub/leaflet/blocks/page.ts
··· 1 + /** 2 + * GENERATED CODE - DO NOT MODIFY 3 + */ 4 + import { ValidationResult, BlobRef } from '@atproto/lexicon' 5 + import { CID } from 'multiformats/cid' 6 + import { validate as _validate } from '../../../../lexicons' 7 + import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util' 8 + 9 + const is$typed = _is$typed, 10 + validate = _validate 11 + const id = 'pub.leaflet.blocks.page' 12 + 13 + export interface Main { 14 + $type?: 'pub.leaflet.blocks.page' 15 + id: string 16 + } 17 + 18 + const hashMain = 'main' 19 + 20 + export function isMain<V>(v: V) { 21 + return is$typed(v, id, hashMain) 22 + } 23 + 24 + export function validateMain<V>(v: V) { 25 + return validate<Main & V>(v, id, hashMain) 26 + }
+17
lexicons/pub/leaflet/blocks/page.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.blocks.page", 4 + "defs": { 5 + "main": { 6 + "type": "object", 7 + "required": [ 8 + "id" 9 + ], 10 + "properties": { 11 + "id": { 12 + "type": "string" 13 + } 14 + } 15 + } 16 + } 17 + }