{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Maps a unique article ID to its Bluesky comments thread, preserving original creation time.",
      "key": "any",
      "record": {
        "properties": {
          "articleId": {
            "description": "The site-specific unique identifier for the article (e.g., slug).",
            "maxLength": 300,
            "type": "string"
          },
          "articleUrl": {
            "description": "The URL of the article.",
            "format": "uri",
            "type": "string"
          },
          "commentsThread": {
            "description": "A strong reference to the root post (e.g., app.bsky.feed.post) of the comments thread.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "description": "The original publication timestamp of the article.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "articleId",
          "commentsThread",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.juttu.articleLink",
  "lexicon": 1
}
