{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When the grant record was created.",
            "format": "datetime",
            "type": "string"
          },
          "defUri": {
            "description": "AT URI of the dev.pcvera.temp.badge.def record this grant references.",
            "format": "at-uri",
            "type": "string"
          },
          "issuerDid": {
            "description": "DID of the account that created the grant (issuer).",
            "format": "did",
            "type": "string"
          },
          "message": {
            "description": "Optional short note from the issuer to the recipient.",
            "maxGraphemes": 500,
            "maxLength": 2000,
            "type": "string"
          },
          "moreInfoUrl": {
            "description": "Optional HTTPS URL for context; clients MUST restrict to https in application validation.",
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          },
          "recipientDid": {
            "description": "DID of the recipient who may accept or reject.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "issuerDid",
          "recipientDid",
          "defUri",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Issuer grants a badge definition to a recipient; may include an optional HTTPS more-info link.",
  "id": "dev.pcvera.temp.badge.grant",
  "lexicon": 1
}
