Event reference
Every event on the vault SSE stream shares a common envelope. Some events are fired by Prudra automatically (system events); others are fired by your server viavault.emit().
Event envelope
System events
vault.sealed
Fired when the vault is sealed. The SSE stream closes after this event.
vault.expiring
Fired 1 hour before the vault TTL expires.
vault.expired
Fired when the vault TTL elapses and the vault is deleted.
Custom events
Your server can emit any event type with any payload. Convention is to use dot-notation strings:Related
- Emit events — server-side emission
- Subscribe via SSE — client-side subscription
- Webhooks event reference —
vault.sealedandvault.expiringas webhook events

