{
  "type": "object",
  "properties": {
    "types": {
      "type": "array",
      "description":
        "A list of event types to include. If this list is absent then all event types are included.",
      "items": {
        "type": "string"
      }
    },
    "not_types": {
      "type": "array",
      "description":
        "A list of event types to exclude. If this list is absent then no event types are excluded.",
      "items": {
        "type": "string"
      }
    },
    "senders": {
      "type": "array",
      "description":
        "A list of senders IDs to include. If this list is absent then all senders are included.",
      "items": {
        "type": "string"
      }
    },
    "not_senders": {
      "type": "array",
      "description":
        "A list of sender IDs to exclude. If this list is absent then no senders are excluded.",
      "items": {
        "type": "string"
      }
    },
    "rooms": {
      "type": "array",
      "description":
        "A list of room IDs to include. If this list is absent then all rooms are included.",
      "items": {
        "type": "string"
      }
    },
    "not_rooms": {
      "type": "array",
      "description":
        "A list of room IDs to exclude. If this list is absent then no rooms are excluded.",
      "items": {
        "type": "string"
      }
    }
  }
}

{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description":
        "The maximum number of events to return."
    },
    "types": {
      "type": "array",
      "description":
        "A list of event types to include. If this list is absent then all event types are included.",
      "items": {
        "type": "string"
      }
    },
    "not_types": {
      "type": "array",
      "description":
        "A list of event types to exclude. If this list is absent then no event types are excluded.",
      "items": {
        "type": "string"
      }
    },
    "senders": {
      "type": "array",
      "description":
        "A list of senders IDs to include. If this list is absent then all senders are included.",
      "items": {
        "type": "string"
      }
    },
    "not_senders": {
      "type": "array",
      "description":
        "A list of sender IDs to exclude. If this list is absent then no senders are excluded.",
      "items": {
        "type": "string"
      }
    },
    "rooms": {
      "type": "array",
      "description":
        "A list of room IDs to include. If this list is absent then all rooms are included.",
      "items": {
        "type": "string"
      }
    },
    "not_rooms": {
      "type": "array",
      "description":
        "A list of room IDs to exclude. If this list is absent then no rooms are excluded.",
      "items": {
        "type": "string"
      }
    }
  }
}

Add a limit to filters
Add a limit to filters
