# GENERATED CODE - DO NOT MODIFY
from __future__ import annotations
import chitose
import typing

def get_repo(service: str, headers: dict[str, str], did: str, earliest: typing.Optional[str]=None, latest: typing.Optional[str]=None):
    """Gets the repo state."""
    return chitose.xrpc.call('com.atproto.sync.getRepo', [('did', did), ('earliest', earliest), ('latest', latest)], None, service, {} | headers)