tools.ozone.moderation.queryEvents
#main
List moderation events related to a subject.
Parameters
| Property | Type | Known Values | Required | Description |
|---|---|---|---|---|
| types | array | - | ❌ | - |
| createdBy | string (did) | - | ❌ | - |
| sortDirection | string | - | ❌ | Sort direction for the events. Defaults to descending order of created at timestamp. |
| createdAfter | string (datetime) | - | ❌ | Retrieve events created after a given timestamp |
| createdBefore | string (datetime) | - | ❌ | Retrieve events created before a given timestamp |
| subject | string (uri) | - | ❌ | - |
| collections | array of nsid | - | ❌ | - |
| subjectType | string | account record | ❌ | If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. |
| includeAllUserRecords | boolean | - | ❌ | If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. |
| limit | integer | - | ❌ | - |
| hasComment | boolean | - | ❌ | If true, only events with comments are returned |
| comment | string | - | ❌ | If specified, only events with comments containing the keyword are returned. Apply |
| addedLabels | array | - | ❌ | - |
| removedLabels | array | - | ❌ | - |
| addedTags | array | - | ❌ | - |
| removedTags | array | - | ❌ | - |
| reportTypes | array | - | ❌ | - |
| policies | array | - | ❌ | If specified, only events where the action policies match any of the given policies are returned |
| modTool | array | - | ❌ | - |
| batchId | string | - | ❌ | If specified, only events where the batchId matches the given value are returned |
| ageAssuranceState | string | pending assured unknown reset blocked | ❌ | If specified, only events where the age assurance state matches the given value are returned |
| withStrike | boolean | - | ❌ | If specified, only events where strikeCount value is set are returned. |
| cursor | string | - | ❌ | - |
Output
- Encoding: application/json
| Property | Type | Known Values | Required | Description |
|---|---|---|---|---|
| cursor | string | - | ❌ | - |
| events | array of tools.ozone.moderation.defs#modEventView | - | ✅ | - |