{
  "lexicon": 1,
  "id": "com.pipobscure.bundle.like",
  "defs": {
    "main": {
      "type": "record",
      "description": "The repository's owner likes an app: a star for it, across its releases. It is of the app's listing (com.pipobscure.bundle.listing), and each like comes with a post from the same account saying so. The record key is the sha256 of the listing's at:// address in lowercase hex, so an account has one like of an app; liking it again counts on that record and lists the new post. A like vouches for nothing; nothing installs or refuses by it.",
      "key": "any",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "type": "string",
            "format": "at-uri",
            "description": "The at:// address of the listing of the app liked."
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "description": "How many times the account has liked the app. It counts on past the posts listed. Absent, as written by 0.2.0–0.2.1, it is 1."
          },
          "posts": {
            "type": "array",
            "maxLength": 100,
            "items": {
              "type": "ref",
              "ref": "com.atproto.repo.strongRef"
            },
            "description": "The posts that say so, from the same account, oldest first: one for each like, the newest 100 of them."
          },
          "post": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "The post that says so, as written by 0.2.0–0.2.1, before likes counted; read as posts: [post]. No longer written."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the app was first liked, by the liker's own clock."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When it was last liked, by the liker's own clock."
          }
        }
      }
    }
  }
}
