{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A standalone note containing rich text, tags, and links.",
      "key": "tid",
      "record": {
        "properties": {
          "body": {
            "description": "The body content of the note in Markdown format.",
            "maxLength": 100000,
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp of creation.",
            "format": "datetime",
            "type": "string"
          },
          "language": {
            "description": "Language code for the note content (e.g., 'en', 'es', 'fr').",
            "maxLength": 20,
            "type": "string"
          },
          "links": {
            "description": "External or internal links referenced in the note.",
            "items": {
              "properties": {
                "title": {
                  "maxLength": 500,
                  "type": "string"
                },
                "type": {
                  "description": "Type hint for the linked resource.",
                  "maxLength": 100,
                  "type": "string"
                },
                "uri": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "uri"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "tags": {
            "description": "Tags associated with the note.",
            "items": {
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 64,
            "type": "array"
          },
          "title": {
            "description": "Title of the note.",
            "maxLength": 300,
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp of last update.",
            "format": "datetime",
            "type": "string"
          },
          "visibility": {
            "default": "private",
            "description": "Visibility setting for the note.",
            "knownValues": [
              "private",
              "unlisted",
              "public"
            ],
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "title",
          "body",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.stormlightlabs.malfestio.note",
  "lexicon": 1
}
