{"$type":"com.atproto.lexicon.schema","defs":{"backlink":{"description":"Records of another collection that link to the record being edited, such as a list's items. They're found by the link, so nothing is stored in the record itself.","properties":{"anyRepo":{"description":"Include linking records from any account's repo, not only the repo of the record being edited.","type":"boolean"},"collection":{"description":"The collection the linking records are in, such as 'app.bsky.graph.listitem'.","format":"nsid","type":"string"},"descending":{"description":"Whether the largest comes first when sorting by a field. Absent: false (smallest first).","type":"boolean"},"display":{"description":"How the records are shown in the editor: 'list', each previewed (the default); 'chips', each by its title, in a row; 'count', just how many there are.","knownValues":["list","chips","count"],"type":"string"},"filters":{"description":"Show only linking records that match every filter.","items":{"ref":"us.polhem.skywrite.widget#listFilter","type":"ref"},"maxLength":8,"type":"array"},"limit":{"description":"The most records there should be; 1 for a single record, such as a list's starter pack. No limit when absent.","minimum":1,"type":"integer"},"name":{"description":"Names the field in the editor and its layout. Must differ from the collection's own fields.","maxGraphemes":64,"maxLength":640,"minLength":1,"type":"string"},"path":{"description":"Field path to the link in those records, such as 'list', or 'subject.uri' for a strong reference.","maxLength":640,"type":"string"},"previewFields":{"description":"How to preview these records in the editor, in place of the collection's own preview: parts left out are left out of the preview. The collection's preview applies when absent.","ref":"#previewFields","type":"ref"},"sortBy":{"description":"A field of the linking records to sort them by, such as 'position'. Dates sort by time and numbers by value; when it's an integer field, the records can be put in order by dragging, which rewrites it. Absent: newest first.","maxGraphemes":64,"maxLength":640,"type":"string"}},"required":["name","collection","path"],"type":"object"},"customColumn":{"description":"A table column whose value is worked out for each record, like a preview field.","properties":{"name":{"description":"The column's heading, and its name in tableColumnFields. Must differ from the collection's own fields.","maxGraphemes":64,"maxLength":640,"minLength":1,"type":"string"},"value":{"refs":["#fieldPath","#fieldTemplate"],"type":"union"}},"required":["name","value"],"type":"object"},"fieldPath":{"description":"A value read from the input: a field path such as 'title' or 'subject.uri', or a lookup function: getRecord() (AT URI to record), describeRepo() (handle, DID, AT URI or record to its repo's DID and handle), getBskyProfile() (handle, DID, AT URI or record to that account's Bluesky profile record), getUri() (record to its AT URI) getRkey() (record to its record key) or getDef() (lexicon path such as 'community.lexicon.calendar.rsvp#going' to that definition's description). A blob read from a record becomes its URL.","properties":{"path":{"description":"Field path or lookup function name.","type":"string"}},"required":["path"],"type":"object"},"fieldTemplate":{"description":"A value rendered from a Mustache template. The template can use the record's fields, plus any variables defined in vars.","properties":{"template":{"description":"Mustache template, such as '{{name}} ({{slug}})'.","type":"string"},"vars":{"description":"Extra template variables, each computed from the record.","items":{"ref":"#templateVar","type":"ref"},"type":"array"}},"required":["template"],"type":"object"},"previewFields":{"description":"Which parts of a record to show when previewing it in a list.","properties":{"body":{"refs":["#fieldPath","#fieldTemplate"],"type":"union"},"thumbnail":{"refs":["#fieldPath","#fieldTemplate"],"type":"union"},"timestamp":{"refs":["#fieldPath","#fieldTemplate"],"type":"union"},"title":{"refs":["#fieldPath","#fieldTemplate"],"type":"union"}},"type":"object"},"quickCompose":{"description":"What a Quick Compose box asks for when writing a new record in a collection. Taken whole: with these settings saved, nothing is guessed from the lexicon. Required properties the box can't fill in itself are always asked for.","properties":{"defaults":{"description":"Values the box starts with, by field name, for fields it asks for: any value the field can hold, such as a document's 'site' or a post's 'tags'.","type":"unknown"},"fields":{"description":"The fields the box asks for, taken from the collection's editor fields. They're shown in the order the editor has them. The text goes in the first rich text field (or text field such as 'text') among them, and a field such as 'title' is the title.","items":{"maxLength":640,"type":"string"},"maxLength":64,"type":"array"}},"type":"object"},"reference":{"description":"A field of the record that links to records of one collection.","properties":{"collection":{"description":"The collection the linked records are in.","format":"nsid","type":"string"},"field":{"description":"The record's field holding the link: an AT URI, or a strong reference.","maxLength":640,"type":"string"}},"required":["field","collection"],"type":"object"},"richText":{"description":"Text written in one of the record's fields and edited with a rich text editor, which fills in other fields from it as it's written: a plain text copy, Bluesky-style facets, a short summary.","properties":{"field":{"description":"The field written in, such as 'text' or 'content'. Names the rich text field in the editor and its layout.","maxLength":640,"type":"string"},"format":{"description":"How it's written: 'text', plain text whose mentions, links and hashtags are facets (as in a Bluesky post: give it a 'facets' output), or 'markdown'.","knownValues":["text","markdown"],"type":"string"},"markdownType":{"description":"For Markdown: how it's saved, as text, as an at.markpub.markdown object, or as the blocks of a Leaflet, pckt or Offprint document. Absent: text if the lexicon makes the field a string, else at.markpub.markdown.","knownValues":["text","at.markpub.markdown","pub.leaflet.content","blog.pckt.content","app.offprint.content"],"type":"string"},"outputs":{"description":"Fields filled in from what's written.","items":{"ref":"#richTextOutput","type":"ref"},"maxLength":8,"type":"array"}},"required":["field","format"],"type":"object"},"richTextOutput":{"description":"A field a rich text field fills in from what's written.","properties":{"field":{"description":"The field to fill in.","maxLength":640,"type":"string"},"kind":{"description":"What goes in it: 'plainText', the text without its formatting; 'facets', the facets of the text (of the plain text copy, for Markdown), as app.bsky.richtext.facet or pub.leaflet.richtext.facet, whichever the field holds; 'summary', the plain text cut short.","knownValues":["plainText","facets","summary"],"type":"string"},"maxLength":{"description":"For a summary, the most characters it has. Absent: 300, or the field's own limit.","minimum":1,"type":"integer"}},"required":["field","kind"],"type":"object"},"templateVar":{"description":"A named template variable and how to compute its value.","properties":{"name":{"description":"Variable name used in the template.","type":"string"},"value":{"refs":["#fieldPath"],"type":"union"}},"required":["name","value"],"type":"object"}},"id":"us.polhem.skywrite.defs","lexicon":1}