# tools.ozone.report.queryModeratorActivity

> Read authorized moderator events and report activity in one chronological history.

- Kind: query
- Authority: report.ozone.tools
- Lexicon: 1
- Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.queryModeratorActivity)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.queryModeratorActivity/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.queryModeratorActivity/analytics)

## Query (`tools.ozone.report.queryModeratorActivity`)

Type: query · GET

### Parameters (query string)

- `createdAfter` (string · datetime, required): Inclusive UTC lower bound.
- `createdBefore` (string · datetime, required): Exclusive UTC upper bound.
- `cursor` (string)
  - Constraints: maxLength: 512
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `moderator` (string · did, required)
- `types` (array)
  - Constraints: maxLength: 40
  - `items` (string)

### Output (application/json)

- `cursor` (string)
- `rows` (array, required)
  - `items` (ref)
    - Reference: `#activityRow`

## #activityRow (`tools.ozone.report.queryModeratorActivity#activityRow`)

Type: object

### Properties

- `actionEventId` (integer)
- `activity` (ref)
  - Reference: `tools.ozone.report.defs#reportActivityView`
- `createdAt` (string · datetime, required)
- `createdBy` (string · did, required)
- `event` (ref)
  - Reference: `tools.ozone.moderation.defs#modEventView`
- `id` (integer, required)
- `reportId` (integer)
- `source` (string, required)
  - Constraints: enum: event | activity
- `subject` (string)
- `type` (string, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "activityRow": {
      "properties": {
        "actionEventId": {
          "type": "integer"
        },
        "activity": {
          "ref": "tools.ozone.report.defs#reportActivityView",
          "type": "ref"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "format": "did",
          "type": "string"
        },
        "event": {
          "ref": "tools.ozone.moderation.defs#modEventView",
          "type": "ref"
        },
        "id": {
          "type": "integer"
        },
        "reportId": {
          "type": "integer"
        },
        "source": {
          "enum": [
            "event",
            "activity"
          ],
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "source",
        "id",
        "createdAt",
        "createdBy",
        "type"
      ],
      "type": "object"
    },
    "main": {
      "description": "Read authorized moderator events and report activity in one chronological history.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "rows": {
              "items": {
                "ref": "#activityRow",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "rows"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "createdAfter": {
            "description": "Inclusive UTC lower bound.",
            "format": "datetime",
            "type": "string"
          },
          "createdBefore": {
            "description": "Exclusive UTC upper bound.",
            "format": "datetime",
            "type": "string"
          },
          "cursor": {
            "maxLength": 512,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "moderator": {
            "format": "did",
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "maxLength": 40,
            "type": "array"
          }
        },
        "required": [
          "moderator",
          "createdAfter",
          "createdBefore"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "tools.ozone.report.queryModeratorActivity",
  "lexicon": 1
}
```
