{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A dismissed/acknowledged follow-up alert snapshot, written into the shared moderation account's (studynext.app) repo by the group-alert-acks ingest endpoint. Also serves as the per-member alert history. rkey is server-assigned (a locally-generated TID).",
      "key": "tid",
      "record": {
        "properties": {
          "acknowledgedBy": {
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "groupUri": {
            "format": "at-uri",
            "type": "string"
          },
          "level": {
            "knownValues": [
              "warning",
              "danger"
            ],
            "type": "string"
          },
          "memberDid": {
            "format": "did",
            "type": "string"
          },
          "reasons": {
            "items": {
              "maxLength": 300,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "signature": {
            "description": "Stable fingerprint of the alert's reason set, used to hide it until the content materially changes.",
            "maxLength": 2000,
            "type": "string"
          }
        },
        "required": [
          "groupUri",
          "memberDid",
          "level",
          "reasons",
          "signature",
          "acknowledgedBy",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.groupAlertAck",
  "lexicon": 1
}
