Skip to content

js-bao-wss-client


js-bao-wss-client / CreateRuleSetParams

Interface: CreateRuleSetParams ​

Parameters for ruleSets.create().

Properties ​

description? ​

optional description?: string

Optional human-readable description of the rule set's purpose


name ​

name: string

Display name for the rule set


resourceType ​

resourceType: string

The type of resource these rules apply to (e.g., "document", "group")


rules ​

rules: Record<string, CategoryRules>

Rules keyed by category/model name, each a map of operation → rule expression. A rule expression is a bare CEL string or, to colocate declared loads, an object { expr, loads }.

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