from typing import List


def _find_chunk_params(param_values) -> List[str]:
    """Look through parameter values for chunk Resolvables

    Args:
        param_values: The parameter values to be scanned

    Returns:
        A list of file ids (may be empty).
    """
    ids = []

    # Resolvables can only be dicts, so we only care about those
    if isinstance(param_values, dict):
        if param_values.get("type") == "chunk":
            ids.append(param_values.get("details", {}).get("file_id"))

        # If it's not a resolvable it might be a model, so recurse down and check
        else:
            for value in param_values.values():
                ids += _find_chunk_params(value)

    return ids