Method decorator factory that invokes a sync notification after
the decorated method resolves. The host implements notifySync
structurally — facades enrich the payload with ids before
delegating, BaseAPI emits straight through the lifecycle emitter.
No action is taken when the host doesn't expose the hook.
Intended for one-shot post-method notifications; this is not
a subscription. Exceptions thrown by the consumer's callback
propagate — the decorator does not swallow them, so a buggy sync
handler surfaces on the caller rather than dying silently.
Method decorator factory that invokes a sync notification after the decorated method resolves. The host implements
notifySyncstructurally — facades enrich the payload withidsbefore delegating, BaseAPI emits straight through the lifecycle emitter. No action is taken when the host doesn't expose the hook.Intended for one-shot post-method notifications; this is not a subscription. Exceptions thrown by the consumer's callback propagate — the decorator does not swallow them, so a buggy sync handler surfaces on the caller rather than dying silently.