Notifications & Audit
client.notifications and client.audit — platform events and audit log queries.
On this page3
client.notifications
| Method | Description |
|---|---|
list(options?) | AsyncGenerator<Notification> |
markRead(id, options?) | Mark one read |
markReadBulk(ids, options?) | Bulk read |
markAllRead(options?) | Mark all read |
delete(id, options?) | Delete one |
deleteBulk(ids, options?) | Bulk delete |
deleteAll(options?) | Clear all |
getConfig(options?) | Notification preferences |
updateConfig(config, options?) | Update preferences |
for await (const n of client.notifications.list()) {
if (n.read === 'no') console.log(n.id, n.created)
}
await client.notifications.markAllRead()Types: Notification, NotificationConfig
client.audit
| Method | Description |
|---|---|
list(vaultId, filters?, options?) | AsyncGenerator<AuditLog> |
get(id, options?) | Full entry |
Filters (AuditFilter): user_id, action, resource_type, from_date, to_date
for await (const entry of client.audit.list(vaultId, {
action: 'space-list',
from_date: '2026-06-01T00:00:00Z',
})) {
console.log(entry.timestamp, entry.actor, entry.event)
}