Documentation Index
Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
| Field | Type | Description |
|---|---|---|
type | string | Event type — system or custom |
eventId | string | Unique event ID |
vaultId | string | Vault this event belongs to |
timestamp | string | ISO timestamp |
payload | object | Event-specific data |
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

