Skip to content

js-bao-wss-client


js-bao-wss-client / CreateCollectionTypeConfigParams

Interface: CreateCollectionTypeConfigParams ​

Parameters for collectionTypeConfigs.create(): the collection type to configure plus its optional rule set and declared-access manifest.

Properties ​

collectionType ​

collectionType: string

The collection type identifier to configure (e.g., "class-students")


metadataManifest? ​

optional metadataManifest?: DeclaredMetadataManifest

Optional declared-access manifest that lets this type's rule set load metadata categories as md.self.<category>.<key>. Declaring a category here is the prerequisite for migrating a collection.contextId binding to a metadata category.


ruleSetId? ​

optional ruleSetId?: string

Rule set to enforce for collections of this type. Must have resourceType: "collection".

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