comAtprotoLabelQueryLabels function

Future<XRPCResponse<LabelQueryLabelsOutput>> comAtprotoLabelQueryLabels({
  1. required List<String> uriPatterns,
  2. List<String>? sources,
  3. int? limit,
  4. String? cursor,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

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

Implementation

Future<XRPCResponse<LabelQueryLabelsOutput>> comAtprotoLabelQueryLabels({
  required List<String> uriPatterns,
  List<String>? sources,
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoLabelQueryLabels,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'uriPatterns': uriPatterns,
    if (sources != null) 'sources': sources,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const LabelQueryLabelsOutputConverter().fromJson,
);