Builds a commit session intent that adds a user from their KeyPackage event
and delivers a Welcome to them after the commit acks.
Validates that the event is a KeyPackage (kind 30443) and that the embedded
credential identity matches the event author before constructing the Add
proposal. Pair the result with GroupSession.send /
GroupsManager.send; GroupsManager.invite wraps this helper and
resolves actorPubkey from the signer.
Builds a
commitsession intent that adds a user from their KeyPackage event and delivers a Welcome to them after the commit acks.Validates that the event is a KeyPackage (kind 30443) and that the embedded credential identity matches the event author before constructing the Add proposal. Pair the result with GroupSession.send / GroupsManager.send; GroupsManager.invite wraps this helper and resolves
actorPubkeyfrom the signer.