{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Defines a badge's visual appearance and type. Created by the issuer and referenced by issuance records.",
      "key": "tid",
      "record": {
        "properties": {
          "badgeType": {
            "description": "The category of this badge, used for scope and display rules.",
            "knownValues": [
              "place.stream.badge.defs#vip",
              "place.stream.badge.defs#event"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Optional description of the badge.",
            "maxLength": 256,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/gif",
              "image/webp"
            ],
            "description": "Badge icon image.",
            "maxSize": 262144,
            "type": "blob"
          },
          "name": {
            "description": "Display name for this badge.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "name",
          "badgeType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "place.stream.badge.def",
  "lexicon": 1
}
