{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "PageHare's sidecar for a site.standard.document it wrote: one per PageHare document, with the same rkey, so listing this collection enumerates exactly the PageHare documents in a repo (site.standard.document is shared with other apps). It carries the document's facets: mentions, links, and tags inside long-form content, as byte-slice offsets (UTF-8) over the document's textContent field, reusing app.bsky.richtext.facet feature types so facet-aware indexers can parse with existing logic. The human-readable layer stays in-band in the markdown as ordinary links; this record is the machine layer. A pure derivation: regenerated from the document's content.markdown on every write (rkey mirrors the document rkey), never hand-edited.",
      "key": "any",
      "record": {
        "properties": {
          "document": {
            "description": "AT-URI of the site.standard.document this sidecar derives from.",
            "format": "at-uri",
            "type": "string"
          },
          "facets": {
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "document",
          "facets"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pagehare.document",
  "lexicon": 1
}
