QueryEventsQueryParams

data class QueryEventsQueryParams(val types: List<String>? = null, val createdBy: Did? = null, val sortDirection: String? = "desc", val createdAfter: Timestamp? = null, val createdBefore: Timestamp? = null, val subject: Uri? = null, val collections: List<Nsid>? = null, val subjectType: QueryEventsSubjectType? = null, val includeAllUserRecords: Boolean? = false, val limit: Long? = 50, val hasComment: Boolean? = null, val comment: String? = null, val addedLabels: List<String>? = null, val removedLabels: List<String>? = null, val addedTags: List<String>? = null, val removedTags: List<String>? = null, val reportTypes: List<String>? = null, val policies: List<String>? = null, val modTool: List<String>? = null, val batchId: String? = null, val ageAssuranceState: QueryEventsAgeAssuranceState? = null, val withStrike: Boolean? = null, val 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, record, or conversation) 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. Apply || separator to use multiple keywords and match using OR condition.

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

modTool

If specified, only events where the modTool name matches any of the given values are returned

batchId

If specified, only events where the batchId matches the given value are returned

ageAssuranceState

If specified, only events where the age assurance state matches the given value are returned

withStrike

If specified, only events where strikeCount value is set are returned.

Constructors

Link copied to clipboard
constructor(types: List<String>? = null, createdBy: Did? = null, sortDirection: String? = "desc", createdAfter: Timestamp? = null, createdBefore: Timestamp? = null, subject: Uri? = null, collections: List<Nsid>? = null, subjectType: QueryEventsSubjectType? = null, includeAllUserRecords: Boolean? = false, limit: Long? = 50, hasComment: Boolean? = null, comment: String? = null, addedLabels: List<String>? = null, removedLabels: List<String>? = null, addedTags: List<String>? = null, removedTags: List<String>? = null, reportTypes: List<String>? = null, policies: List<String>? = null, modTool: List<String>? = null, batchId: String? = null, ageAssuranceState: QueryEventsAgeAssuranceState? = null, withStrike: Boolean? = null, cursor: String? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

If specified, only events where the age assurance state matches the given value are returned

Link copied to clipboard

If specified, only events where the batchId matches the given value are returned

Link copied to clipboard

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.

Link copied to clipboard

If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.

Link copied to clipboard

Retrieve events created after a given timestamp

Link copied to clipboard

Retrieve events created before a given timestamp

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If true, only events with comments are returned

Link copied to clipboard

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

Link copied to clipboard
val limit: Long?
Link copied to clipboard

If specified, only events where the modTool name matches any of the given values are returned

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val subject: Uri?
Link copied to clipboard

If specified, only events where the subject is of the given type (account, record, or conversation) 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.

Link copied to clipboard

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.

Link copied to clipboard

If specified, only events where strikeCount value is set are returned.

Functions

Link copied to clipboard