@matter/model 0.12.5 → 0.13.0-alpha.0-20250304-d4a7592a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -13
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,22 +16,21 @@ Specification](https://csa-iot.org/developer-resource/specifications-download-re
|
|
|
16
16
|
|
|
17
17
|
Subfolders support specific functions:
|
|
18
18
|
|
|
19
|
-
- [elements/](elements) - types describing the data model
|
|
20
|
-
- [models/](models) - classes implementing an operational version of the data model
|
|
21
|
-
- [standard/](standard) - the full data model defined by the Matter Specification
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
The datatypes in [elements](elements) model Matter elements using TypeScript types. _Elements_ are a formal component
|
|
19
|
+
- [elements/](src/elements) - types describing the data model
|
|
20
|
+
- [models/](src/models) - classes implementing an operational version of the data model
|
|
21
|
+
- [standard/](src/standard) - the full data model defined by the Matter Specification
|
|
22
|
+
- [aspects/](src/aspects) - parsers and ASTs for fields that utilize domain specific languages
|
|
23
|
+
- [logic/](src/logic) - various algorithms that operate on models
|
|
24
|
+
|
|
25
|
+
The datatypes in [elements](src/elements) model Matter elements using TypeScript types. _Elements_ are a formal component
|
|
27
26
|
of the Matter specification that describe individual structures in the data model. Our element definitions are subtypes
|
|
28
|
-
of [BaseElement](elements/BaseElement.ts).
|
|
27
|
+
of [BaseElement](src/elements/BaseElement.ts).
|
|
29
28
|
|
|
30
|
-
For each element definition, a class in [models](models) offers a concrete operational implementation. This is the API
|
|
29
|
+
For each element definition, a class in [models](src/models) offers a concrete operational implementation. This is the API
|
|
31
30
|
to use if you need to work with the data model beyond simple data modeling. Our models are all subtypes of
|
|
32
|
-
[Model](models/Model.ts).
|
|
31
|
+
[Model](src/models/Model.ts).
|
|
33
32
|
|
|
34
|
-
[MatterModel](models/MatterModel.ts) is the primary entrypoint to the API.
|
|
33
|
+
[MatterModel](src/models/MatterModel.ts) is the primary entrypoint to the API.
|
|
35
34
|
|
|
36
35
|
## Usage
|
|
37
36
|
|
|
@@ -115,7 +114,7 @@ We still include the CHIP generator and model in our repository but no longer us
|
|
|
115
114
|
|
|
116
115
|
### Standard (final) data model
|
|
117
116
|
|
|
118
|
-
Unlike above data models, the _standard data model_ in [src/model/standard](./standard) is part of the matter.js public
|
|
117
|
+
Unlike above data models, the _standard data model_ in [src/model/standard](./src/standard) is part of the matter.js public
|
|
119
118
|
API. This represents our best attempt at a complete Matter data model.
|
|
120
119
|
|
|
121
120
|
[generate-model.ts](../../codegen/src/generate-model.ts) creates this model by analyzing and combining elements from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/model",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
4
4
|
"description": "Matter data model",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iot",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"embed-examples": "embedme **/README.md"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@matter/general": "0.
|
|
36
|
+
"@matter/general": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
37
37
|
"@noble/curves": "^1.8.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@matter/testing": "0.
|
|
41
|
-
"@matter/tools": "0.
|
|
40
|
+
"@matter/testing": "0.13.0-alpha.0-20250304-d4a7592a4",
|
|
41
|
+
"@matter/tools": "0.13.0-alpha.0-20250304-d4a7592a4"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist/**/*",
|