def METHOD_NAME(
    project_id: int, release: Optional[str], dist: Optional[str]
) -> ArtifactBundleFlatFileIndex:
    index = ArtifactBundleFlatFileIndex.objects.create(
        project_id=project_id,
        release_name=release or "",
        dist_name=dist or "",
    )
    index.update_flat_file_index("{}")
    return index