{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "consumer": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "afterSequence": {
      "type": "string",
      "pattern": "^\\d+$"
    },
    "topics": {
      "minItems": 1,
      "maxItems": 4,
      "type": "array",
      "items": {"type":"string","enum":["assertion.revision","identity.correction","query.completed","action.committed"]}
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "consumer",
    "projectId"
  ],
  "additionalProperties": false
}
