{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Public curated link from a Rizom brain.",
      "key": "any",
      "record": {
        "properties": {
          "anchorDid": {
            "type": "string"
          },
          "brainDid": {
            "type": "string"
          },
          "capturedAt": {
            "format": "datetime",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 2000,
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "source": {
            "properties": {
              "label": {
                "type": "string"
              },
              "ref": {
                "type": "string"
              }
            },
            "required": [
              "ref",
              "label"
            ],
            "type": "object"
          },
          "sourceEntityId": {
            "type": "string"
          },
          "sourceEntityType": {
            "type": "string"
          },
          "summary": {
            "maxLength": 100000,
            "type": "string"
          },
          "title": {
            "maxLength": 500,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "title",
          "url",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.rizom.brain.link",
  "lexicon": 1
}
