{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "featuredPost": {
      "properties": {
        "cid": {
          "description": "CID of the post record at time of featuring. Used to detect if the post has been deleted or edited.",
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "description": "AT URI of an app.bsky.feed.post in the same actor's repository.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "main": {
      "description": "Featured posts record for the Babesky creator portfolio. An ordered selection of the creator's own posts (max 8) displayed as a curated preview reel in Atmosphere apps. Consumed alongside com.babesky.actor.profile, com.babesky.actor.links, and com.babesky.actor.support.",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "posts": {
            "items": {
              "ref": "#featuredPost",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          }
        },
        "required": [
          "posts",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.babesky.actor.featured",
  "lexicon": 1
}
