from typing import Dict


def _parse_flat(definitions: Dict) -> Dict:
    """
    Parse flat workflow definitions.

    :param definitions: flat workflow definitions
    :returns: dictionary mapping (type, id, version) to definition.

    """
    workflows = {
        (w["type"], w["id"], w["version"]): {"image": w["image"]}
        for w in definitions["workflows"]
    }
    return workflows