getLatestCommit method

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

Get the current commit CID & revision of the specified repo. Does not require auth.

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

Implementation

Future<XRPCResponse<GetLatestCommitOutput>> getLatestCommit({
  required String did,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetLatestCommitOutput>(
      ns.comAtprotoSyncGetLatestCommit,
      headers: $headers,
      parameters: {
        'did': did,
        ...?$unknown,
      },
      to: const GetLatestCommitOutputConverter().fromJson,
      client: $client,
    );