Skip to content

js-bao-wss-client


js-bao-wss-client / PermissionEvent

Interface: PermissionEvent ​

Payload of the permission event (client.on("permission", ...)). Fired when the client learns the signed-in user's access level for a document, or that level changes.

Properties ​

documentId ​

documentId: string


permission ​

permission: "owner" | "read-write" | "reader" | "admin"

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30