Skip to content

js-bao-wss-client


js-bao-wss-client / DirectCollectionAdd

Interface: DirectCollectionAdd ​

Result of a direct collection add — the email or userId mapped to an existing app user, so a real _col-reader / _col-writer AppMembership row exists (or was just created).

Properties ​

addedAt ​

addedAt: string


addedBy ​

addedBy: string


permission ​

permission: "read-write" | "reader"


status ​

status: "added" | "already_member"

"added" = new membership created by this call. "already_member" = the user was already in the target system group.


userEmail? ​

optional userEmail?: string


userId ​

userId: string


userName? ​

optional userName?: string

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