I wrote this spec in the Strfry issue to implement NIP-42, which has gone nowhere, but it describes what I’m looking for. https://github.com/hoytech/strfry/issues/47#issuecomment-1861778810