comAtprotoSyncGetLatestCommit function

Future<XRPCResponse<SyncGetLatestCommitOutput>> comAtprotoSyncGetLatestCommit({
  1. required String did,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

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

Implementation

Future<XRPCResponse<SyncGetLatestCommitOutput>> comAtprotoSyncGetLatestCommit({
  required String did,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoSyncGetLatestCommit,
  service: $service,
  headers: $headers,
  parameters: {...?$unknown, 'did': did},
  to: const SyncGetLatestCommitOutputConverter().fromJson,
);