queryLabels method

Future<XRPCResponse<QueryLabelsOutput>> queryLabels({
  1. required List<String> uriPatterns,
  2. List<String>? sources,
  3. int? limit,
  4. String? cursor,
  5. Map<String, String>? $unknown,
  6. Map<String, String>? $headers,
  7. GetClient? $client,
})

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

https://atprotodart.com/docs/lexicons/com/atproto/label/queryLabels

Implementation

Future<XRPCResponse<QueryLabelsOutput>> queryLabels({
  required List<String> uriPatterns,
  List<String>? sources,
  int? limit,
  String? cursor,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<QueryLabelsOutput>(
      ns.comAtprotoLabelQueryLabels,
      headers: $headers,
      parameters: {
        'uriPatterns': uriPatterns,
        if (sources != null) 'sources': sources,
        if (limit != null) 'limit': limit.toString(),
        if (cursor != null) 'cursor': cursor,
        ...?$unknown,
      },
      to: const QueryLabelsOutputConverter().fromJson,
      client: $client,
    );