Hi nostr:npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49 if shosho users want to delete their stream event from the network (as with an old or test screen) can I do this via the ZS API at all?

I do not see mention of delete in the docs.

Reply to this note

Please Login to reply.

Discussion

I think you have to update/replace the current 30311 event with status ended and timestamp and ZS picks it up automatically.

"Live Activity management clients are expected to constantly update kind:30311 during the event. Clients MAY choose to consider status=live events after 1hr without any update as ended. The starts and ends timestamp SHOULD be updated when the status changes to and from live"

https://nips.nostr.com/53

Or is there something you need to do something specific on the ZS backend. What docs have ZS btw, I haven't seen those yet :)

Thanks! I am aware I can PATCH the event with the API to set the status.

But I am looking for the equivalent of a Kind 5.

Which API? From ZS?

Yes, the ZS API. The pattern for Nostr streaming is a bit strange, as in ZS it's the server not the user that signs the Kind 30311, in order for a matching Kind 5 to be published, the server has to do it. The user can't publish their own as they were not the original author. Good news, the ZS API has an endpoint for exactly that, it just wasn't tested or documented, but it does seem to work, and if I put through a DELETE to /streams it will publish a Kind 5 for me. ... Built that in today and shipped it to web, will be in the next app release.

Cool!

I get it, I forget the fact there is a zapstream keypair signing stuff (and which is a participant with your live activity -kind 30313?- if I'm correct). Make sense now to me :)