comAtprotoSpaceListRecords function

Future<XRPCResponse<SpaceListRecordsOutput>> comAtprotoSpaceListRecords({
  1. required String space,
  2. required String repo,
  3. String? collection,
  4. int? limit,
  5. String? cursor,
  6. bool? excludeValues,
  7. required ServiceContext $ctx,
  8. String? $service,
  9. Map<String, String>? $headers,
  10. Map<String, String>? $unknown,
})

List records in a space repo, optionally filtered by collection. Requires auth as the repo's account or with a space credential; implemented by PDS.

Implementation

Future<XRPCResponse<SpaceListRecordsOutput>> comAtprotoSpaceListRecords({
  required String space,
  required String repo,
  String? collection,
  int? limit,
  String? cursor,
  bool? excludeValues,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoSpaceListRecords,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'space': space,
    'repo': repo,
    if (collection != null) 'collection': collection,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
    if (excludeValues != null) 'excludeValues': excludeValues,
  },
  to: const SpaceListRecordsOutputConverter().fromJson,
);