Skip to content

js-bao-wss-client


js-bao-wss-client / DatabaseTypeConfigInfo

Interface: DatabaseTypeConfigInfo ​

A serialized database-type-configuration row, as returned by the databases/types endpoints.

Database type configs control schema-less database behavior for documents tagged with a particular databaseType: which rule set governs access, which CEL-driven triggers run on writes, and how metadataAccess is gated.

Properties ​

appId ​

appId: string


createdAt ​

createdAt: string


createdBy ​

createdBy: string


databaseType ​

databaseType: string


metadataAccess ​

metadataAccess: string | null

CEL expression evaluated to decide whether the caller can read database metadata. null when not configured.

Deprecated ​

Prefer resource metadata categories. This single expression gates read AND update of the database CEL context, so granting read also grants update. Declare a metadata category in metadataManifest — a category has separate readRule/writeRule — and read it from CEL as md.self.<category>.<key>. The field keeps working; the runtime gate is unchanged.


metadataManifest ​

metadataManifest: DeclaredMetadataManifest | null

The declared-access manifest for this type's CEL rules, returned parsed. null when none is set. Declaring a category here is the prerequisite for reading md.self.<category>.<key> from this type's rules — i.e. for migrating a metadataAccess gate to a metadata category.


modifiedAt ​

modifiedAt: string


ruleSetId ​

ruleSetId: string | null


triggers ​

triggers: Record<string, ModelRulesInfo> | null

Trigger rules keyed by model name (e.g. { Task: { triggers: [{ on: "create", set: { ... } }] } }). null when no triggers are configured. Reuses ModelRulesInfo from ruleSetsApi — the same per-model rules shape rule sets carry.

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