"""synthesizeIdentity: deliberately unavailable. No generator + face-swap pipeline with a commercial licence exists that this sidecar can ship, so the operation always answers 501. The request schema forbids unknown fields, so a target-face image is rejected before this runs. """ from __future__ import annotations import threading from typing import Any from ..errors import Unsupported from ..schemas import SynthesizeIdentityRequest from .common import Ctx def run(ctx: Ctx, _body: SynthesizeIdentityRequest, _cancel: threading.Event) -> dict[str, Any]: spec = ctx.registry.backend("synthesizeIdentity").spec raise Unsupported(spec.unavailable_reason or "no commercially licensed model")