from pathlib import Path
import json


def get_secrets_list(env: str) -> dict[str, set]:
    """Create a list of available app secrets, without their values."""
    path = (Path() / "configuration").resolve()
    default_file = json.loads((path / "default.json").read_text())
    env_file = json.loads((path / f"{env}.json").read_text())

    config_keys: set[str] = set()
    config_keys.update(default_file["secrets"], env_file["secrets"])
    return {"AVAILABLE_SECRETS": config_keys}