{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A contributor's full copy of a note as they last saved it. Revisions define the note. The rkey is the note's rkey.",
      "key": "tid",
      "record": {
        "properties": {
          "atRevision": {
            "description": "AT-URI of the head revision when this copy was saved.",
            "format": "at-uri",
            "type": "string"
          },
          "content": {
            "description": "The note's whole body at atRevision.",
            "maxLength": 1000000,
            "type": "string"
          },
          "createdAt": {
            "description": "When this copy was saved.",
            "format": "datetime",
            "type": "string"
          },
          "noteRef": {
            "description": "AT-URI of the note record.",
            "format": "at-uri",
            "type": "string"
          },
          "slug": {
            "description": "The note's slug.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "status": {
            "description": "The note's status at atRevision. A copy that leaves it out is of a live note.",
            "knownValues": [
              "live",
              "deleted"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "title": {
            "description": "The note's title at atRevision.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "wikiRef": {
            "description": "AT-URI of the note's wiki record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "noteRef",
          "wikiRef",
          "slug",
          "title",
          "content",
          "atRevision",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "wiki.lichen.noteSnapshot",
  "lexicon": 1
}
