matterbridge 2.0.0 → 2.1.0-dev.2
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/CHANGELOG.md +22 -1
- package/README.md +1 -1
- package/dist/cli.js +0 -26
- package/dist/cluster/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -23
- package/dist/deviceManager.js +1 -26
- package/dist/frontend.js +57 -242
- package/dist/index.js +1 -30
- package/dist/logger/export.js +0 -1
- package/dist/matter/export.js +0 -7
- package/dist/matterbridge.js +77 -702
- package/dist/matterbridgeAccessoryPlatform.js +0 -33
- package/dist/matterbridgeBehaviors.js +33 -38
- package/dist/matterbridgeDeviceTypes.js +11 -112
- package/dist/matterbridgeDynamicPlatform.js +0 -33
- package/dist/matterbridgeEndpoint.js +970 -2524
- package/dist/matterbridgePlatform.js +3 -123
- package/dist/matterbridgeTypes.js +0 -28
- package/dist/pluginManager.js +3 -240
- package/dist/storage/export.js +0 -1
- package/dist/utils/colorUtils.js +2 -205
- package/dist/utils/export.js +0 -1
- package/dist/utils/utils.js +7 -251
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.6df4ebe4.js → main.26dbf9b9.js} +3 -3
- package/frontend/build/static/js/{main.6df4ebe4.js.map → main.26dbf9b9.js.map} +1 -1
- package/npm-shrinkwrap.json +83 -68
- package/package.json +2 -4
- package/dist/cli.d.ts +0 -25
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cluster/export.d.ts +0 -2
- package/dist/cluster/export.d.ts.map +0 -1
- package/dist/cluster/export.js.map +0 -1
- package/dist/defaultConfigSchema.d.ts +0 -27
- package/dist/defaultConfigSchema.d.ts.map +0 -1
- package/dist/defaultConfigSchema.js.map +0 -1
- package/dist/deviceManager.d.ts +0 -46
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/frontend.d.ts +0 -98
- package/dist/frontend.d.ts.map +0 -1
- package/dist/frontend.js.map +0 -1
- package/dist/index.d.ts +0 -34
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger/export.d.ts +0 -2
- package/dist/logger/export.d.ts.map +0 -1
- package/dist/logger/export.js.map +0 -1
- package/dist/matter/export.d.ts +0 -10
- package/dist/matter/export.d.ts.map +0 -1
- package/dist/matter/export.js.map +0 -1
- package/dist/matterbridge.d.ts +0 -356
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -39
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -963
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -177
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -39
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -10254
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgeEndpointDefault.d.ts +0 -2
- package/dist/matterbridgeEndpointDefault.d.ts.map +0 -1
- package/dist/matterbridgeEndpointDefault.js +0 -159
- package/dist/matterbridgeEndpointDefault.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -164
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -167
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -238
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.js.map +0 -1
- package/dist/storage/export.d.ts +0 -2
- package/dist/storage/export.d.ts.map +0 -1
- package/dist/storage/export.js.map +0 -1
- package/dist/utils/colorUtils.d.ts +0 -61
- package/dist/utils/colorUtils.d.ts.map +0 -1
- package/dist/utils/colorUtils.js.map +0 -1
- package/dist/utils/export.d.ts +0 -3
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/utils.d.ts +0 -221
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js.map +0 -1
- /package/frontend/build/static/js/{main.6df4ebe4.js.LICENSE.txt → main.26dbf9b9.js.LICENSE.txt} +0 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-dev.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.1.0-dev.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@matter/main": "0.
|
|
13
|
-
"@project-chip/matter.js": "0.11.9",
|
|
12
|
+
"@matter/main": "0.12.1",
|
|
14
13
|
"archiver": "7.0.1",
|
|
15
14
|
"express": "4.21.2",
|
|
16
15
|
"glob": "11.0.1",
|
|
@@ -48,65 +47,65 @@
|
|
|
48
47
|
}
|
|
49
48
|
},
|
|
50
49
|
"node_modules/@matter/general": {
|
|
51
|
-
"version": "0.
|
|
52
|
-
"resolved": "https://registry.npmjs.org/@matter/general/-/general-0.
|
|
53
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "0.12.1",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/@matter/general/-/general-0.12.1.tgz",
|
|
52
|
+
"integrity": "sha512-26ZnXpcPeKUJ3xGJvJnkM7dMt32IlJ+5ZCoM8KN2FtXC2Z6EUBJMVxjSxXA4Wbg91wZvj/y/z0xkcEI3gcIOAA==",
|
|
54
53
|
"license": "Apache-2.0",
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@noble/curves": "^1.
|
|
55
|
+
"@noble/curves": "^1.8.1"
|
|
57
56
|
}
|
|
58
57
|
},
|
|
59
58
|
"node_modules/@matter/main": {
|
|
60
|
-
"version": "0.
|
|
61
|
-
"resolved": "https://registry.npmjs.org/@matter/main/-/main-0.
|
|
62
|
-
"integrity": "sha512-
|
|
59
|
+
"version": "0.12.1",
|
|
60
|
+
"resolved": "https://registry.npmjs.org/@matter/main/-/main-0.12.1.tgz",
|
|
61
|
+
"integrity": "sha512-TQscTaFzgtUy9R+tNDm1aIViW4qDiXVdnYZGTVWjWqPN/7wOtEO2IgwP3xk9c3bHNkEXPux6TfvPoAx7UkYUng==",
|
|
63
62
|
"license": "Apache-2.0",
|
|
64
63
|
"dependencies": {
|
|
65
|
-
"@matter/general": "0.
|
|
66
|
-
"@matter/model": "0.
|
|
67
|
-
"@matter/node": "0.
|
|
68
|
-
"@matter/protocol": "0.
|
|
69
|
-
"@matter/types": "0.
|
|
70
|
-
"@noble/curves": "^1.
|
|
64
|
+
"@matter/general": "0.12.1",
|
|
65
|
+
"@matter/model": "0.12.1",
|
|
66
|
+
"@matter/node": "0.12.1",
|
|
67
|
+
"@matter/protocol": "0.12.1",
|
|
68
|
+
"@matter/types": "0.12.1",
|
|
69
|
+
"@noble/curves": "^1.8.1"
|
|
71
70
|
},
|
|
72
71
|
"optionalDependencies": {
|
|
73
|
-
"@matter/nodejs": "0.
|
|
72
|
+
"@matter/nodejs": "0.12.1"
|
|
74
73
|
}
|
|
75
74
|
},
|
|
76
75
|
"node_modules/@matter/model": {
|
|
77
|
-
"version": "0.
|
|
78
|
-
"resolved": "https://registry.npmjs.org/@matter/model/-/model-0.
|
|
79
|
-
"integrity": "sha512-
|
|
76
|
+
"version": "0.12.1",
|
|
77
|
+
"resolved": "https://registry.npmjs.org/@matter/model/-/model-0.12.1.tgz",
|
|
78
|
+
"integrity": "sha512-UlUR7iRuBRadfuf4Qwo3OYi7WUrXJk4nddqsD2tBq7y1cA5zsnV3E85zVX/8iiiUSqAbx3rcAuWJ+CCjn0ikUA==",
|
|
80
79
|
"license": "Apache-2.0",
|
|
81
80
|
"dependencies": {
|
|
82
|
-
"@matter/general": "0.
|
|
83
|
-
"@noble/curves": "^1.
|
|
81
|
+
"@matter/general": "0.12.1",
|
|
82
|
+
"@noble/curves": "^1.8.1"
|
|
84
83
|
}
|
|
85
84
|
},
|
|
86
85
|
"node_modules/@matter/node": {
|
|
87
|
-
"version": "0.
|
|
88
|
-
"resolved": "https://registry.npmjs.org/@matter/node/-/node-0.
|
|
89
|
-
"integrity": "sha512-
|
|
86
|
+
"version": "0.12.1",
|
|
87
|
+
"resolved": "https://registry.npmjs.org/@matter/node/-/node-0.12.1.tgz",
|
|
88
|
+
"integrity": "sha512-PtN1pRmMynPwwxaSZklCDwLt4uCz1o/moXi0PX2DU866JdkHaKPgLi+29PcalcDB2dMZbrcJTaimAhXcjPVkog==",
|
|
90
89
|
"license": "Apache-2.0",
|
|
91
90
|
"dependencies": {
|
|
92
|
-
"@matter/general": "0.
|
|
93
|
-
"@matter/model": "0.
|
|
94
|
-
"@matter/protocol": "0.
|
|
95
|
-
"@matter/types": "0.
|
|
96
|
-
"@noble/curves": "^1.
|
|
91
|
+
"@matter/general": "0.12.1",
|
|
92
|
+
"@matter/model": "0.12.1",
|
|
93
|
+
"@matter/protocol": "0.12.1",
|
|
94
|
+
"@matter/types": "0.12.1",
|
|
95
|
+
"@noble/curves": "^1.8.1"
|
|
97
96
|
}
|
|
98
97
|
},
|
|
99
98
|
"node_modules/@matter/nodejs": {
|
|
100
|
-
"version": "0.
|
|
101
|
-
"resolved": "https://registry.npmjs.org/@matter/nodejs/-/nodejs-0.
|
|
102
|
-
"integrity": "sha512-
|
|
99
|
+
"version": "0.12.1",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/@matter/nodejs/-/nodejs-0.12.1.tgz",
|
|
101
|
+
"integrity": "sha512-G4tPCzaCJMuly0yiIf+eOhz1ezSQQarETFtDuImE+9vicVyKKCL1eq5SviV5nx9DikIcalKMbKh6F6t21sslDA==",
|
|
103
102
|
"license": "Apache-2.0",
|
|
104
103
|
"optional": true,
|
|
105
104
|
"dependencies": {
|
|
106
|
-
"@matter/general": "0.
|
|
107
|
-
"@matter/node": "0.
|
|
108
|
-
"@matter/protocol": "0.
|
|
109
|
-
"@matter/types": "0.
|
|
105
|
+
"@matter/general": "0.12.1",
|
|
106
|
+
"@matter/node": "0.12.1",
|
|
107
|
+
"@matter/protocol": "0.12.1",
|
|
108
|
+
"@matter/types": "0.12.1",
|
|
110
109
|
"node-localstorage": "^3.0.5"
|
|
111
110
|
},
|
|
112
111
|
"engines": {
|
|
@@ -114,26 +113,26 @@
|
|
|
114
113
|
}
|
|
115
114
|
},
|
|
116
115
|
"node_modules/@matter/protocol": {
|
|
117
|
-
"version": "0.
|
|
118
|
-
"resolved": "https://registry.npmjs.org/@matter/protocol/-/protocol-0.
|
|
119
|
-
"integrity": "sha512-
|
|
116
|
+
"version": "0.12.1",
|
|
117
|
+
"resolved": "https://registry.npmjs.org/@matter/protocol/-/protocol-0.12.1.tgz",
|
|
118
|
+
"integrity": "sha512-HOa5OdMsmmSjmtYA+wmBmS2poUeZqlcoA9fUk40kWla6yINJOyHZCgnPKARxXxm1qk95BEoLN3ovUIKoajkstQ==",
|
|
120
119
|
"license": "Apache-2.0",
|
|
121
120
|
"dependencies": {
|
|
122
|
-
"@matter/general": "0.
|
|
123
|
-
"@matter/model": "0.
|
|
124
|
-
"@matter/types": "0.
|
|
125
|
-
"@noble/curves": "^1.
|
|
121
|
+
"@matter/general": "0.12.1",
|
|
122
|
+
"@matter/model": "0.12.1",
|
|
123
|
+
"@matter/types": "0.12.1",
|
|
124
|
+
"@noble/curves": "^1.8.1"
|
|
126
125
|
}
|
|
127
126
|
},
|
|
128
127
|
"node_modules/@matter/types": {
|
|
129
|
-
"version": "0.
|
|
130
|
-
"resolved": "https://registry.npmjs.org/@matter/types/-/types-0.
|
|
131
|
-
"integrity": "sha512-
|
|
128
|
+
"version": "0.12.1",
|
|
129
|
+
"resolved": "https://registry.npmjs.org/@matter/types/-/types-0.12.1.tgz",
|
|
130
|
+
"integrity": "sha512-O4zyMGLUnoWQZ7P5TJDWrtTpdaG8xSDq1a5xO3e8pmc3I9w6LSoKciEqrjFvq9lT6gvj3hcts/64c0Rxn7NEIw==",
|
|
132
131
|
"license": "Apache-2.0",
|
|
133
132
|
"dependencies": {
|
|
134
|
-
"@matter/general": "0.
|
|
135
|
-
"@matter/model": "0.
|
|
136
|
-
"@noble/curves": "^1.
|
|
133
|
+
"@matter/general": "0.12.1",
|
|
134
|
+
"@matter/model": "0.12.1",
|
|
135
|
+
"@noble/curves": "^1.8.1"
|
|
137
136
|
}
|
|
138
137
|
},
|
|
139
138
|
"node_modules/@noble/curves": {
|
|
@@ -173,20 +172,6 @@
|
|
|
173
172
|
"node": ">=14"
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
|
-
"node_modules/@project-chip/matter.js": {
|
|
177
|
-
"version": "0.11.9",
|
|
178
|
-
"resolved": "https://registry.npmjs.org/@project-chip/matter.js/-/matter.js-0.11.9.tgz",
|
|
179
|
-
"integrity": "sha512-r0ZXAdq2lB5w7pxkVjr/huo9hLeahUJIIxuJraXa980v67U8JNAzOOtrGboxvfgceCvDdWD40AD/1SRNnBF3gw==",
|
|
180
|
-
"license": "Apache-2.0",
|
|
181
|
-
"dependencies": {
|
|
182
|
-
"@matter/general": "0.11.9",
|
|
183
|
-
"@matter/model": "0.11.9",
|
|
184
|
-
"@matter/node": "0.11.9",
|
|
185
|
-
"@matter/protocol": "0.11.9",
|
|
186
|
-
"@matter/types": "0.11.9",
|
|
187
|
-
"@noble/curves": "^1.7.0"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
175
|
"node_modules/abort-controller": {
|
|
191
176
|
"version": "3.0.0",
|
|
192
177
|
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
|
|
@@ -1333,10 +1318,13 @@
|
|
|
1333
1318
|
}
|
|
1334
1319
|
},
|
|
1335
1320
|
"node_modules/node-persist": {
|
|
1336
|
-
"version": "4.0.
|
|
1337
|
-
"resolved": "https://registry.npmjs.org/node-persist/-/node-persist-4.0.
|
|
1338
|
-
"integrity": "sha512-
|
|
1321
|
+
"version": "4.0.4",
|
|
1322
|
+
"resolved": "https://registry.npmjs.org/node-persist/-/node-persist-4.0.4.tgz",
|
|
1323
|
+
"integrity": "sha512-8sPAz/7tw1mCCc8xBG4f0wi+flHkSSgQeX998iQ75Pu27evA6UUWCjSE7xnrYTg2q33oU5leJ061EKPDv6BocQ==",
|
|
1339
1324
|
"license": "MIT",
|
|
1325
|
+
"dependencies": {
|
|
1326
|
+
"p-limit": "^3.1.0"
|
|
1327
|
+
},
|
|
1340
1328
|
"engines": {
|
|
1341
1329
|
"node": ">=10.12.0"
|
|
1342
1330
|
}
|
|
@@ -1390,6 +1378,21 @@
|
|
|
1390
1378
|
"node": ">= 0.8"
|
|
1391
1379
|
}
|
|
1392
1380
|
},
|
|
1381
|
+
"node_modules/p-limit": {
|
|
1382
|
+
"version": "3.1.0",
|
|
1383
|
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
|
1384
|
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
|
1385
|
+
"license": "MIT",
|
|
1386
|
+
"dependencies": {
|
|
1387
|
+
"yocto-queue": "^0.1.0"
|
|
1388
|
+
},
|
|
1389
|
+
"engines": {
|
|
1390
|
+
"node": ">=10"
|
|
1391
|
+
},
|
|
1392
|
+
"funding": {
|
|
1393
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1393
1396
|
"node_modules/package-json-from-dist": {
|
|
1394
1397
|
"version": "1.0.1",
|
|
1395
1398
|
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
|
@@ -2091,6 +2094,18 @@
|
|
|
2091
2094
|
}
|
|
2092
2095
|
}
|
|
2093
2096
|
},
|
|
2097
|
+
"node_modules/yocto-queue": {
|
|
2098
|
+
"version": "0.1.0",
|
|
2099
|
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
|
2100
|
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
|
2101
|
+
"license": "MIT",
|
|
2102
|
+
"engines": {
|
|
2103
|
+
"node": ">=10"
|
|
2104
|
+
},
|
|
2105
|
+
"funding": {
|
|
2106
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2094
2109
|
"node_modules/zip-stream": {
|
|
2095
2110
|
"version": "6.0.1",
|
|
2096
2111
|
"resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-dev.2",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
],
|
|
42
42
|
"type": "module",
|
|
43
43
|
"main": "dist/index.js",
|
|
44
|
-
"types": "dist/index.d.ts",
|
|
45
44
|
"bin": {
|
|
46
45
|
"matterbridge": "dist/cli.js"
|
|
47
46
|
},
|
|
@@ -75,8 +74,7 @@
|
|
|
75
74
|
}
|
|
76
75
|
},
|
|
77
76
|
"dependencies": {
|
|
78
|
-
"@matter/main": "0.
|
|
79
|
-
"@project-chip/matter.js": "0.11.9",
|
|
77
|
+
"@matter/main": "0.12.1",
|
|
80
78
|
"archiver": "7.0.1",
|
|
81
79
|
"express": "4.21.2",
|
|
82
80
|
"glob": "11.0.1",
|
package/dist/cli.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* This file contains the CLI entry point of Matterbridge.
|
|
4
|
-
*
|
|
5
|
-
* @file cli.ts
|
|
6
|
-
* @author Luca Liguori
|
|
7
|
-
* @date 2023-12-29
|
|
8
|
-
* @version 1.0.11
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2023, 2024, 2025 Luca Liguori.
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License. *
|
|
23
|
-
*/
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;GAqBG"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[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/cluster/export.ts"],"names":[],"mappings":";AAAA,8BAA8B"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the default config for the plugins.
|
|
3
|
-
*
|
|
4
|
-
* @file defaultConfigSchema.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-05-07
|
|
7
|
-
* @version 1.0.1
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
import { PlatformConfig } from './matterbridgePlatform.js';
|
|
24
|
-
export declare const zigbee2mqtt_config: PlatformConfig;
|
|
25
|
-
export declare const somfytahoma_config: PlatformConfig;
|
|
26
|
-
export declare const shelly_config: PlatformConfig;
|
|
27
|
-
//# sourceMappingURL=defaultConfigSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfigSchema.d.ts","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,eAAO,MAAM,kBAAkB,EAAE,cAiBhC,CAAC;AA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WAAW,EAAE,WAAW;IACxB,gBAAgB,EAAE,EAAE;IACpB,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE,EAAE;IACrB,gBAAgB,EAAE,WAAW;IAC7B,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,UAAU;IAC5B,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;IACnB,qBAAqB,EAAE,EAAE;IACzB,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,CAAC;IAChB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,KAAK;IACd,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
|
package/dist/deviceManager.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the DeviceManager class.
|
|
3
|
-
*
|
|
4
|
-
* @file devices.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-07-26
|
|
7
|
-
* @version 1.0.8
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
import { LogLevel } from './logger/export.js';
|
|
24
|
-
import { NodeStorage } from './storage/export.js';
|
|
25
|
-
import { Matterbridge } from './matterbridge.js';
|
|
26
|
-
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
27
|
-
export declare class DeviceManager {
|
|
28
|
-
private readonly _devices;
|
|
29
|
-
private readonly matterbridge;
|
|
30
|
-
private readonly nodeContext;
|
|
31
|
-
private readonly log;
|
|
32
|
-
constructor(matterbridge: Matterbridge, nodeContext: NodeStorage);
|
|
33
|
-
get length(): number;
|
|
34
|
-
get size(): number;
|
|
35
|
-
has(uniqueId: string): boolean;
|
|
36
|
-
get(uniqueId: string): MatterbridgeEndpoint | undefined;
|
|
37
|
-
set(device: MatterbridgeEndpoint): MatterbridgeEndpoint;
|
|
38
|
-
remove(device: MatterbridgeEndpoint): boolean;
|
|
39
|
-
clear(): void;
|
|
40
|
-
array(): MatterbridgeEndpoint[];
|
|
41
|
-
[Symbol.iterator](): MapIterator<MatterbridgeEndpoint>;
|
|
42
|
-
forEach(callback: (device: MatterbridgeEndpoint) => Promise<void>): Promise<void>;
|
|
43
|
-
get logLevel(): LogLevel;
|
|
44
|
-
set logLevel(logLevel: LogLevel);
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=deviceManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,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GAAG,CAAC,KAAK,CAAC,mCAAmC,GAAG,GAAG,MAAM,CAAC,UAAU,GAAG,EAAE,iBAAiB,IAAI,GAAG,MAAM,CAAC,YAAY,GAAG,EAAE,cAAc,IAAI,GAAG,MAAM,CAAC,QAAQ,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;gBACnL,eAAe;YACjB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ,CAAC,QAAkB;QAC7B,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC/B,CAAC;CAgCF"}
|
package/dist/frontend.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class Frontend.
|
|
3
|
-
*
|
|
4
|
-
* @file frontend.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2025-01-13
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2025, 2026, 2027 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
import { BaseRegisteredPlugin } from './matterbridgeTypes.js';
|
|
24
|
-
import { Matterbridge } from './matterbridge.js';
|
|
25
|
-
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
26
|
-
/**
|
|
27
|
-
* Websocket message ID for logging.
|
|
28
|
-
* @constant {number}
|
|
29
|
-
*/
|
|
30
|
-
export declare const WS_ID_LOG = 0;
|
|
31
|
-
/**
|
|
32
|
-
* Websocket message ID indicating a refresh is needed.
|
|
33
|
-
* @constant {number}
|
|
34
|
-
*/
|
|
35
|
-
export declare const WS_ID_REFRESH_NEEDED = 1;
|
|
36
|
-
/**
|
|
37
|
-
* Websocket message ID indicating a restart is needed.
|
|
38
|
-
* @constant {number}
|
|
39
|
-
*/
|
|
40
|
-
export declare const WS_ID_RESTART_NEEDED = 2;
|
|
41
|
-
/**
|
|
42
|
-
* Initializes the frontend of Matterbridge.
|
|
43
|
-
*
|
|
44
|
-
* @param port The port number to run the frontend server on. Default is 8283.
|
|
45
|
-
*/
|
|
46
|
-
export declare class Frontend {
|
|
47
|
-
private matterbridge;
|
|
48
|
-
private log;
|
|
49
|
-
private port;
|
|
50
|
-
private initializeError;
|
|
51
|
-
private expressApp;
|
|
52
|
-
private httpServer;
|
|
53
|
-
private httpsServer;
|
|
54
|
-
private webSocketServer;
|
|
55
|
-
constructor(matterbridge: Matterbridge);
|
|
56
|
-
start(port?: number): Promise<void>;
|
|
57
|
-
stop(): Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* Retrieves the cluster text description from a given device.
|
|
60
|
-
* @param {MatterbridgeDevice} device - The MatterbridgeDevice object.
|
|
61
|
-
* @returns {string} The attributes description of the cluster servers in the device.
|
|
62
|
-
*/
|
|
63
|
-
protected getClusterTextFromDevice(device: MatterbridgeEndpoint): string;
|
|
64
|
-
/**
|
|
65
|
-
* Retrieves the base registered plugins sanitized for res.json().
|
|
66
|
-
* @returns {BaseRegisteredPlugin[]} A promise that resolves to an array of BaseRegisteredPlugin objects.
|
|
67
|
-
*/
|
|
68
|
-
getBaseRegisteredPlugins(): Promise<BaseRegisteredPlugin[]>;
|
|
69
|
-
/**
|
|
70
|
-
* Handles incoming websocket messages for the Matterbridge.
|
|
71
|
-
*
|
|
72
|
-
* @param {Matterbridge} this - The Matterbridge instance.
|
|
73
|
-
* @param {WebSocket} client - The websocket client that sent the message.
|
|
74
|
-
* @param {WebSocket.RawData} message - The raw data of the message received from the client.
|
|
75
|
-
* @returns {Promise<void>} A promise that resolves when the message has been handled.
|
|
76
|
-
*/
|
|
77
|
-
private wsMessageHandler;
|
|
78
|
-
/**
|
|
79
|
-
* Sends a WebSocket message to all connected clients. The function is called by AnsiLogger.setGlobalCallback.
|
|
80
|
-
*
|
|
81
|
-
* @param {string} level - The logger level of the message: debug info notice warn error fatal...
|
|
82
|
-
* @param {string} time - The time string of the message
|
|
83
|
-
* @param {string} name - The logger name of the message
|
|
84
|
-
* @param {string} message - The content of the message.
|
|
85
|
-
*/
|
|
86
|
-
wssSendMessage(level: string, time: string, name: string, message: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Sends a need to refresh WebSocket message to all connected clients.
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
wssSendRefreshRequired(): void;
|
|
92
|
-
/**
|
|
93
|
-
* Sends a need to restart WebSocket message to all connected clients.
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
wssSendRestartRequired(): void;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=frontend.d.ts.map
|
package/dist/frontend.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAmBH,OAAO,EAA2B,oBAAoB,EAAyB,MAAM,wBAAwB,CAAC;AAC9G,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,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