Optional
asThe first Matter specification in which this element appears.
Optional
byteApplies to numeric types.
Optional
defaultThe default value for the element.
Optional
descriptionA short summary of the element.
Optional
detailsA paragraph summary of the element.
Optional
errorsThe ID of the element per Matter specification, either global or context-specific. A "machine appropriate" semantic differentiator.
Optional
isIs this a "seed" element? These are global types and cluster elements defined in the core specification, without which we are fairly incapacitated.
Optional
isIndicates that an element defines a datatype.
Optional
isIndicates that an element may have type definitions as children.
Optional
metatypeThe key used for storing this element. A "human appropriate" semantic differentiator.
Optional
operationalOptional
priorityOptional
typeIf an element derives from another element, the name of the parent element goes here.
Optional
untilThe Matter specification revision in which this element was removed.
Optional
xrefReference to Matter specification document.
Static
TagStatic
typesFactory support. Populated by derivatives upon definition.
Authorization limits.
Authorization limits.
A subset of members with conflicts resolved by conformance.
ValueModels may derive from models of the same type or from generic Datatype models.
ValueModels may only derive from ValueModels.
Children of models are always models.
Children of models are always models.
Optionality control.
Optionality control.
The subset of members that are conformant.
Limits on values.
Limits on values.
Get the first derived ancestor with children, if any.
Obtain a discriminator that differentiates different models with the same name
The value to use as a default. The "default" field has a manually supplied value but this property decodes the default and/or generates a default from subfields.
Allows subclasses to pull a working ID from an alternate source.
The "effective type" may be inferred from context.
A local or parent xref.
Active members keyed by property name.
Get the first global base type. This may have semantic meaning more specific than the base primitive type.
Is this model deprecated?
Is this model disallowed?
Determine if this model resides in the global namespace.
Get a string that uniquely identifies this model. This is normally the effective ID but some models require a generated identifier.
Get the entry type for lists, if any.
Is the model mandatory?
All FieldModel children}.
Metatype is only present on global types with specific semantic meaning. This model is significant because it gives us information about how to manipulate the data. This accessor retrieves this model.
Can this model be omitted?
Determine whether this element overrides key properties of its shadow.
The structural parent. This is the model for the element that contains this element's definition.
The path ("." delimited) in the Matter tree.
This is informational and generally tries to adhere to JS API conventions.
Get the primitive type for this value model. This is an integer type for enums and bitmaps. Otherwise it's the metabase.
Other qualities not covered by conformance or access.
Other qualities not covered by conformance or access.
Get shadow model, if any. A "shadow" is an element in my parent's inheritance hierarchy that I override.
Did validation find errors?
Search the inheritance chain for a bitmap field defining a specific bit.
Create an operational extension of the model. This creates a new model that inherits from this model for operational purposes.
Optional
properties: Partial<Omit<EventElement, "tag"> & Partial<Pick<EventElement, "tag">>>Freeze the model hierarchy rooted at this model.
When using a model as operational schema we implement various optimizations that assume the schema is immutable. This function enforces that assumption.
To make changes to a frozen model use clone.
Retrieve a specific child by ID or name.
Does this model derive from another?
Search the inheritance chain for a child property.
Optional
allowedTags: ElementTag[]Retrieve a model of a specific type from the ownership hierarchy.
Find all children that reference a specific type.
Convert model to JSON.
Convert to non-class structure.
Apply a function to all tree elements.
Static
createCreate a model for an element.
An event is triggered by endpoints.