← All packages

@searsuite/sear-domain-doc-schema

The dependency-free JSON protocol shared by standalone and embedded rich documents.

interfaceNodeSchema

Persisted rich-document node schema shared by document runtime, commands, and OT.

propertyattrs?: Record<string, any>

Node attributes for styles, formatting, and feature-owned metadata.

propertycontent?: Schema[]

Child rich-document nodes.

propertyid?: string

Stable structural identity for layout, retained render nodes, and collaboration mapping.

propertytext?: string

Optional text content for leaf text nodes.

propertytype: string

Domain node type identifier.

interfaceTextSchema
interface TextSchema extends NodeSchema

Persisted text-bearing rich-document node schema.

propertytext: string

Optional text content for leaf text nodes.

Inherited members 4

Inherited from NodeSchema.

typeSchema
type Schema = NodeSchema | TextSchema

Persisted rich-document schema node.