Skip to content

js-bao-wss-client


js-bao-wss-client / AddGroupMemberParams

Type Alias: AddGroupMemberParams ​

AddGroupMemberParams = { email?: never; userId: string; } | { email: string; userId?: never; }

Identifies the user to add via groups.addMember() — either an existing user's userId or an email (which may belong to someone who has not signed up yet). Provide exactly one of the two.

Union Members ​

Type Literal ​

{ email?: never; userId: string; }

email? ​

optional email?: never

userId ​

userId: string

The user's ID (mutually exclusive with email)


Type Literal ​

{ email: string; userId?: never; }

email ​

email: string

The user's email address (mutually exclusive with userId)

userId? ​

optional userId?: never

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