toolsOzoneSafelinkQueryEvents function

Future<XRPCResponse<SafelinkQueryEventsOutput>> toolsOzoneSafelinkQueryEvents({
  1. String? cursor,
  2. int? limit,
  3. List<String>? urls,
  4. String? patternType,
  5. SafelinkQueryEventsSortDirection? sortDirection,
  6. required ServiceContext $ctx,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Query URL safety audit events

Implementation

Future<XRPCResponse<SafelinkQueryEventsOutput>> toolsOzoneSafelinkQueryEvents({
  String? cursor,
  int? limit,
  List<String>? urls,
  String? patternType,
  SafelinkQueryEventsSortDirection? sortDirection,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneSafelinkQueryEvents,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    if (cursor != null) 'cursor': cursor,
    if (limit != null) 'limit': limit,
    if (urls != null) 'urls': urls,
    if (patternType != null) 'patternType': patternType,
    if (sortDirection != null) 'sortDirection': sortDirection.toJson(),
  },
  to: const SafelinkQueryEventsOutputConverter().fromJson,
);