work.lexical.collection.item

lexical.work

Documentation

A record linking a work to a collection.

main record

A record linking a work to a collection.

Record Key tid Timestamp-based ID

Properties

collection string at-uri Required

AT URI of the collection this item belongs to.

maxLength: 2048 bytes
containsSpoilers boolean Optional

If true, apps should obscure the note until the user chooses to reveal it.

note string Optional

An optional note about this item in the collection.

maxLength: 1000 bytesmaxGraphemes: 4000 graphemes
noteFacets array of ref social.lexical.richtext.facet Optional

Facets for rich text in the note. Clients must accept but may ignore any or all facets.

position integer Optional

1-indexed position of this item in the collection. Meaningful when the collection is ranked.

minimum: 1
work string at-uri Required

AT URI of the work. Must reference a work.lexical.work or work.lexical.work.* record.

maxLength: 2048 bytes
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "collection",
      "work"
    ],
    "properties": {
      "note": {
        "type": "string",
        "maxLength": 1000,
        "description": "An optional note about this item in the collection.",
        "maxGraphemes": 4000
      },
      "work": {
        "type": "string",
        "format": "at-uri",
        "required": true,
        "maxLength": 2048,
        "description": "AT URI of the work. Must reference a work.lexical.work or work.lexical.work.* record."
      },
      "position": {
        "type": "integer",
        "minimum": 1,
        "description": "1-indexed position of this item in the collection. Meaningful when the collection is ranked."
      },
      "collection": {
        "type": "string",
        "format": "at-uri",
        "required": true,
        "maxLength": 2048,
        "description": "AT URI of the collection this item belongs to."
      },
      "noteFacets": {
        "type": "array",
        "items": {
          "ref": "social.lexical.richtext.facet",
          "type": "ref",
          "nullable": false
        },
        "nullable": false,
        "required": false,
        "description": "Facets for rich text in the note. Clients must accept but may ignore any or all facets."
      },
      "containsSpoilers": {
        "type": "boolean",
        "description": "If true, apps should obscure the note until the user chooses to reveal it."
      }
    }
  },
  "description": "A record linking a work to a collection."
}

Lexicon Garden

@