Skip to content

js-bao-wss-client


js-bao-wss-client / DatabaseInfo

Interface: DatabaseInfo ​

A database's metadata, including the caller's permission level. Returned by databases.create(), get(), update(), and list().

Properties ​

celContext ​

celContext: Record<string, any> | null

User-facing name for the CEL context dict attached to this database. Values here are referenced from CEL access rules as database.celContext.<key> (or the legacy database.metadata.<key>) and from filter JSON as $database.celContext.<key>.

Deprecated ​

Prefer resource metadata categories. A category carries separate readRule/writeRule, so granting read no longer implies granting update — the foot-gun of the CEL-context access gate (metadataAccess), which gates read AND update with a single expression. Declare a category in the database type config's metadataManifest and read it from CEL as md.self.<category>.<key>.


createdAt ​

createdAt: string


createdBy ​

createdBy: string


databaseId ​

databaseId: string


databaseType ​

databaseType: string | null


metadata ​

metadata: Record<string, any> | null

Deprecated ​

Prefer resource metadata categories — a category has separate readRule/writeRule (granting read no longer grants update) and is read from CEL as md.self.<category>.<key>. This field is the legacy wire-level name for the same dict as the (also-deprecated) celContext; it stays for backwards compatibility with stored CEL expressions that reference database.metadata.<key>.


modifiedAt ​

modifiedAt: string


permission ​

permission: string | null


title ​

title: 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