{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "grantUri": {
            "description": "AT URI of the dev.pcvera.temp.badge.grant record being rejected.",
            "format": "at-uri",
            "type": "string"
          },
          "reason": {
            "description": "Machine-readable rejection reason.",
            "enum": [
              "spam",
              "mistake",
              "not_interested",
              "other"
            ],
            "type": "string"
          },
          "recipientDid": {
            "description": "DID of the recipient who rejected (must match the grant recipient).",
            "format": "did",
            "type": "string"
          },
          "rejectedAt": {
            "description": "When the recipient rejected the grant.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "recipientDid",
          "grantUri",
          "rejectedAt",
          "reason"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Recipient rejects a pending badge grant.",
  "id": "dev.pcvera.temp.badge.rejection",
  "lexicon": 1
}
