us.polhem.skywrite.defs

Details · defs
Kinddefs
Authorityskywrite.polhem.us
Commit rev3n2z4ouuzgg2j
Indexed

#customColumn

object

A table column whose value is worked out for each record, like a preview field.

Properties

name

requiredstring

The column's heading, and its name in tableColumnFields. Must differ from the collection's own fields.

  • minLength: 1
  • maxLength: 640
  • maxGraphemes: 64

value

requiredunion

#fieldPath

object

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

requiredstring

Field path or lookup function name.

#fieldTemplate

object

A value rendered from a Mustache template. The template can use the record's fields, plus any variables defined in vars.

Properties

template

requiredstring

Mustache template, such as '{{name}} ({{slug}})'.

vars

array

Extra template variables, each computed from the record.

itemsref
Reference

#previewFields

object

Which parts of a record to show when previewing it in a list.

#quickCompose

object

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

unknown

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'.

fields

array

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.

  • maxLength: 64
itemsstring
  • maxLength: 640

#reference

object

A field of the record that links to records of one collection.

Properties

collection

requiredstring · nsid

The collection the linked records are in.

field

requiredstring

The record's field holding the link: an AT URI, or a strong reference.

  • maxLength: 640

#richText

object

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

requiredstring

The field written in, such as 'text' or 'content'. Names the rich text field in the editor and its layout.

  • maxLength: 640

format

requiredstring

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

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

outputs

array

Fields filled in from what's written.

  • maxLength: 8
itemsref
Reference

#richTextOutput

object

A field a rich text field fills in from what's written.

Properties

field

requiredstring

The field to fill in.

  • maxLength: 640

kind

requiredstring

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

maxLength

integer

For a summary, the most characters it has. Absent: 300, or the field's own limit.

  • minimum: 1

#templateVar

object

A named template variable and how to compute its value.

Properties

name

requiredstring

Variable name used in the template.

value

requiredunion
One of

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A table column whose value is worked out for each record, like a preview field.

  • A record containing user settings for how to manage a collection in Skywrite.

  • A record containing user settings for how to manage a collection in Skywrite.

  • A box on Skywrite's dashboard: what it shows, and its settings. Skywrite's built-in widgets are records in skywrite.polhem.us's repo; widgets someone adds are records in their own repo. The dashboard in us.polhem.skywrite.settings places widgets by their AT URIs.