Shared lexicon schemas for long-form publishing on AT Protocol. Uses typescript to json via prototypey.

Increase text max lengths and graphemes

aka.dad 88514abc 65ee2c1d

verified
+11 -9
+6 -5
src/lexicons/site.standard.document.ts
··· 16 16 }), 17 17 title: lx.string({ 18 18 required: true, 19 - maxLength: 1280, 20 - maxGraphemes: 128, 19 + maxLength: 5000, 20 + maxGraphemes: 500, 21 21 description: 'Title of the document.' 22 22 }), 23 23 description: lx.string({ 24 - maxLength: 3000, 25 - maxGraphemes: 300, 24 + maxLength: 30000, 25 + maxGraphemes: 3000, 26 26 description: 'A brief description or excerpt from the document.' 27 27 }), 28 28 coverImage: lx.blob({ ··· 43 43 tags: lx.array({ 44 44 type: 'string', 45 45 }, { 46 - maxLength: 100, 46 + maxLength: 1280, 47 + maxGraphemes: 128, 47 48 description: 'Array of strings used to tag or categorize the document. Avoid prepending tags with hashtags.' 48 49 }), 49 50 publishedAt: lx.string({
+5 -4
src/lexicons/site.standard.publication.ts
··· 19 19 }), 20 20 name: lx.string({ 21 21 required: true, 22 - maxLength: 1280, 23 - maxGraphemes: 128, 22 + maxLength: 5000, 23 + maxGraphemes: 500, 24 24 description: 'Name of the publication.' 25 25 }), 26 26 description: lx.string({ 27 - maxLength: 3000, 28 - maxGraphemes: 300, 27 + maxLength: 30000, 28 + maxGraphemes: 3000, 29 29 description: 'Brief description of the publication.' 30 30 }), 31 31 basicTheme: lx.ref(siteStandardThemeBasic.json.id, { ··· 42 42 default: true, 43 43 description: 'Boolean which decides whether the publication should appear in discovery feeds.' 44 44 }), 45 + }, { 45 46 description: 'Platform-specific preferences for the publication, including discovery and visibility settings.' 46 47 }) 47 48 })