{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Grants a specific badge to a recipient. The badge only appears in chat after the recipient adds this record to their place.stream.chat.profile selection array.",
      "key": "tid",
      "record": {
        "properties": {
          "badge": {
            "description": "Strong reference to the place.stream.badge.def record being granted.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "description": "Client-declared timestamp when this issuance was created.",
            "format": "datetime",
            "type": "string"
          },
          "did": {
            "description": "The DID of the user being granted the badge.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did",
          "badge",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "place.stream.badge.issuance",
  "lexicon": 1
}
