Prepare NPM references and mutation API

This commit is contained in:
Lyncoln
2026-09-19 22:52:14 -04:00
parent 8caac79a1e
commit 381119a6b5
6 changed files with 436 additions and 10 deletions
-7
View File
@@ -121,12 +121,6 @@ def _normalize_proxy_host(
if not forward_host:
raise RuntimeError(f"{label} has no forward_host")
certificate_id = payload.get("certificate_id")
if certificate_id in (None, "", 0, "0"):
certificate_local_key = None
else:
certificate_local_key = str(certificate_id)
normalized_payload: dict[str, Any] = {
"domain_names": list(domains),
"forward_scheme": forward_scheme,
@@ -135,7 +129,6 @@ def _normalize_proxy_host(
payload.get("forward_port"),
label,
),
"certificate_local_key": certificate_local_key,
}
for field in _PROXY_BOOLEAN_FIELDS:
normalized_payload[field] = _normalized_bool(