toolsOzoneModerationQueryEvents function

Future<XRPCResponse<ModerationQueryEventsOutput>> toolsOzoneModerationQueryEvents({
  1. List<String>? types,
  2. String? createdBy,
  3. String? sortDirection,
  4. DateTime? createdAfter,
  5. DateTime? createdBefore,
  6. String? subject,
  7. List<String>? collections,
  8. ModerationQueryEventsSubjectType? subjectType,
  9. bool? includeAllUserRecords,
  10. int? limit,
  11. bool? hasComment,
  12. String? comment,
  13. List<String>? addedLabels,
  14. List<String>? removedLabels,
  15. List<String>? addedTags,
  16. List<String>? removedTags,
  17. List<String>? reportTypes,
  18. List<String>? policies,
  19. List<String>? modTool,
  20. String? batchId,
  21. ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
  22. String? cursor,
  23. required ServiceContext $ctx,
  24. Map<String, String>? $headers,
  25. Map<String, String>? $unknown,
})

List moderation events related to a subject.

Implementation

Future<XRPCResponse<ModerationQueryEventsOutput>>
toolsOzoneModerationQueryEvents({
  List<String>? types,
  String? createdBy,
  String? sortDirection,
  DateTime? createdAfter,
  DateTime? createdBefore,
  String? subject,
  List<String>? collections,
  ModerationQueryEventsSubjectType? subjectType,
  bool? includeAllUserRecords,
  int? limit,
  bool? hasComment,
  String? comment,
  List<String>? addedLabels,
  List<String>? removedLabels,
  List<String>? addedTags,
  List<String>? removedTags,
  List<String>? reportTypes,
  List<String>? policies,
  List<String>? modTool,
  String? batchId,
  ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
  String? cursor,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.toolsOzoneModerationQueryEvents,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (types != null) 'types': types,
    if (createdBy != null) 'createdBy': createdBy,
    if (sortDirection != null) 'sortDirection': sortDirection,
    if (createdAfter != null) 'createdAfter': iso8601(createdAfter),
    if (createdBefore != null) 'createdBefore': iso8601(createdBefore),
    if (subject != null) 'subject': subject,
    if (collections != null) 'collections': collections,
    if (subjectType != null) 'subjectType': subjectType.toJson(),
    if (includeAllUserRecords != null)
      'includeAllUserRecords': includeAllUserRecords,
    if (limit != null) 'limit': limit,
    if (hasComment != null) 'hasComment': hasComment,
    if (comment != null) 'comment': comment,
    if (addedLabels != null) 'addedLabels': addedLabels,
    if (removedLabels != null) 'removedLabels': removedLabels,
    if (addedTags != null) 'addedTags': addedTags,
    if (removedTags != null) 'removedTags': removedTags,
    if (reportTypes != null) 'reportTypes': reportTypes,
    if (policies != null) 'policies': policies,
    if (modTool != null) 'modTool': modTool,
    if (batchId != null) 'batchId': batchId,
    if (ageAssuranceState != null)
      'ageAssuranceState': ageAssuranceState.toJson(),
    if (cursor != null) 'cursor': cursor,
  },
  to: const ModerationQueryEventsOutputConverter().fromJson,
);