QueryEventsQueryParams

constructor(types: ReadOnlyList<String> = persistentListOf(), createdBy: Did? = null, sortDirection: String? = "desc", createdAfter: Timestamp? = null, createdBefore: Timestamp? = null, subject: Uri? = null, collections: ReadOnlyList<Nsid> = persistentListOf(), subjectType: QueryEventsSubjectType? = null, includeAllUserRecords: Boolean? = false, limit: Long? = 50, hasComment: Boolean? = null, comment: String? = null, addedLabels: ReadOnlyList<String> = persistentListOf(), removedLabels: ReadOnlyList<String> = persistentListOf(), addedTags: ReadOnlyList<String> = persistentListOf(), removedTags: ReadOnlyList<String> = persistentListOf(), reportTypes: ReadOnlyList<String> = persistentListOf(), cursor: String? = null)

Parameters

types

The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent) to filter by. If not specified, all events are returned.

sortDirection

Sort direction for the events. Defaults to descending order of created at timestamp.

createdAfter

Retrieve events created after a given timestamp

createdBefore

Retrieve events created before a given timestamp

collections

If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.

subjectType

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

If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.

hasComment

If true, only events with comments are returned

comment

If specified, only events with comments containing the keyword are returned

addedLabels

If specified, only events where all of these labels were added are returned

removedLabels

If specified, only events where all of these labels were removed are returned

addedTags

If specified, only events where all of these tags were added are returned

removedTags

If specified, only events where all of these tags were removed are returned