getRepo method

Future<XRPCResponse<Uint8List>> getRepo({
  1. required String did,
  2. String? since,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. GetClient? $client,
})

Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.

https://atprotodart.com/docs/lexicons/com/atproto/sync/getRepo

Implementation

Future<XRPCResponse<Uint8List>> getRepo({
  required String did,
  String? since,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<Uint8List>(
      ns.comAtprotoSyncGetRepo,
      headers: $headers,
      parameters: {
        'did': did,
        if (since != null) 'since': since,
        ...?$unknown,
      },
      client: $client,
    );