from typing import Sequence
from typing import Mapping
from typing import Any


def merge_schemas(schema_list: Sequence[Mapping[str, Any]], library_id: str) -> Mapping[str, Any]:
    """Merge multiple schemas.

    Args:
        schema_list: List of SDF schemas.
        library_id: ID of schema collection.

    Returns:
        Data in JSON output format.
    """
    sdf = {
        "@context": ["https://kairos-sdf.s3.amazonaws.com/context/kairos-v0.9.jsonld"],
        "sdfVersion": "0.9",
        "@id": library_id,
        "schemas": schema_list,
    }

    return sdf