Skip to content

js-bao-wss-client


js-bao-wss-client / SchemaDiscoveredEvent

Interface: SchemaDiscoveredEvent ​

Payload of the schema-discovered event (client.on("schema-discovered", ...)). Fired when the client infers a model schema from a synced document's contents — this only happens when no explicit models or schemaToml were provided in the client options. The discovered schema is also available via client.getDocumentSchema(documentId).

Properties ​

documentId ​

documentId: string


modelNames ​

modelNames: string[]


schema ​

schema: DiscoveredSchema

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