from typing import Dict


def __init_run_document(data: Dict) -> Dict:
    """Initializes workflow run document."""
    document: Dict = dict()
    document['api'] = dict()
    document['internal'] = dict()
    document['api']['request'] = data
    document['api']['state'] = 'UNKNOWN'
    document['api']['run_log'] = dict()
    document['api']['task_logs'] = list()
    document['api']['outputs'] = dict()
    return document