matterbridge 1.6.7 → 1.6.8-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 +17 -0
- package/README-SERVICE.md +12 -3
- package/README.md +2 -0
- package/dist/cli.js +0 -0
- package/dist/deviceManager.d.ts +1 -1
- package/dist/deviceManager.d.ts.map +1 -1
- package/dist/matter/export.d.ts.map +1 -1
- package/dist/matter/export.js +5 -0
- package/dist/matter/export.js.map +1 -1
- package/dist/matterbridge.d.ts +13 -13
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +2 -1
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeBehaviors.d.ts +24 -850
- package/dist/matterbridgeBehaviors.d.ts.map +1 -1
- package/dist/matterbridgeDevice.d.ts +64 -5985
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +24 -0
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgeEdge.d.ts +13 -15
- package/dist/matterbridgeEdge.d.ts.map +1 -1
- package/dist/matterbridgeEdge.js +1 -3
- package/dist/matterbridgeEdge.js.map +1 -1
- package/dist/matterbridgeEndpoint.d.ts +76 -9106
- package/dist/matterbridgeEndpoint.d.ts.map +1 -1
- package/dist/matterbridgeEndpoint.js +24 -0
- package/dist/matterbridgeEndpoint.js.map +1 -1
- package/dist/matterbridgePlatform.d.ts +7 -7
- package/dist/pluginManager.d.ts +1 -1
- package/dist/pluginManager.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/npm-shrinkwrap.json +7 -71
- package/package.json +1 -2
- package/dist/cli.d.ts +0 -25
- package/dist/cluster/export.d.ts +0 -2
- package/dist/defaultConfigSchema.d.ts +0 -27
- package/dist/index.d.ts +0 -40
- package/dist/logger/export.d.ts +0 -2
- package/dist/matter/export.d.ts +0 -6
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -39
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -39
- package/dist/matterbridgeTypes.d.ts +0 -162
- package/dist/matterbridgeWebsocket.d.ts +0 -49
- package/dist/storage/export.d.ts +0 -2
- package/dist/utils/colorUtils.d.ts +0 -61
- package/dist/utils/export.d.ts +0 -3
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8-dev.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "1.6.
|
|
9
|
+
"version": "1.6.8-dev.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.11.9",
|
|
@@ -488,24 +488,6 @@
|
|
|
488
488
|
"node": ">= 0.8"
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
|
-
"node_modules/call-bind": {
|
|
492
|
-
"version": "1.0.8",
|
|
493
|
-
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
|
|
494
|
-
"integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",
|
|
495
|
-
"license": "MIT",
|
|
496
|
-
"dependencies": {
|
|
497
|
-
"call-bind-apply-helpers": "^1.0.0",
|
|
498
|
-
"es-define-property": "^1.0.0",
|
|
499
|
-
"get-intrinsic": "^1.2.4",
|
|
500
|
-
"set-function-length": "^1.2.2"
|
|
501
|
-
},
|
|
502
|
-
"engines": {
|
|
503
|
-
"node": ">= 0.4"
|
|
504
|
-
},
|
|
505
|
-
"funding": {
|
|
506
|
-
"url": "https://github.com/sponsors/ljharb"
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
491
|
"node_modules/call-bind-apply-helpers": {
|
|
510
492
|
"version": "1.0.1",
|
|
511
493
|
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
|
|
@@ -520,13 +502,13 @@
|
|
|
520
502
|
}
|
|
521
503
|
},
|
|
522
504
|
"node_modules/call-bound": {
|
|
523
|
-
"version": "1.0.
|
|
524
|
-
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.
|
|
525
|
-
"integrity": "sha512-
|
|
505
|
+
"version": "1.0.3",
|
|
506
|
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
|
|
507
|
+
"integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
|
|
526
508
|
"license": "MIT",
|
|
527
509
|
"dependencies": {
|
|
528
|
-
"call-bind": "^1.0.
|
|
529
|
-
"get-intrinsic": "^1.2.
|
|
510
|
+
"call-bind-apply-helpers": "^1.0.1",
|
|
511
|
+
"get-intrinsic": "^1.2.6"
|
|
530
512
|
},
|
|
531
513
|
"engines": {
|
|
532
514
|
"node": ">= 0.4"
|
|
@@ -650,23 +632,6 @@
|
|
|
650
632
|
"node": ">= 8"
|
|
651
633
|
}
|
|
652
634
|
},
|
|
653
|
-
"node_modules/define-data-property": {
|
|
654
|
-
"version": "1.1.4",
|
|
655
|
-
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
|
656
|
-
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
|
657
|
-
"license": "MIT",
|
|
658
|
-
"dependencies": {
|
|
659
|
-
"es-define-property": "^1.0.0",
|
|
660
|
-
"es-errors": "^1.3.0",
|
|
661
|
-
"gopd": "^1.0.1"
|
|
662
|
-
},
|
|
663
|
-
"engines": {
|
|
664
|
-
"node": ">= 0.4"
|
|
665
|
-
},
|
|
666
|
-
"funding": {
|
|
667
|
-
"url": "https://github.com/sponsors/ljharb"
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
635
|
"node_modules/depd": {
|
|
671
636
|
"version": "2.0.0",
|
|
672
637
|
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
|
@@ -1022,18 +987,6 @@
|
|
|
1022
987
|
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
|
1023
988
|
"license": "ISC"
|
|
1024
989
|
},
|
|
1025
|
-
"node_modules/has-property-descriptors": {
|
|
1026
|
-
"version": "1.0.2",
|
|
1027
|
-
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
|
1028
|
-
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
|
1029
|
-
"license": "MIT",
|
|
1030
|
-
"dependencies": {
|
|
1031
|
-
"es-define-property": "^1.0.0"
|
|
1032
|
-
},
|
|
1033
|
-
"funding": {
|
|
1034
|
-
"url": "https://github.com/sponsors/ljharb"
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
990
|
"node_modules/has-symbols": {
|
|
1038
991
|
"version": "1.1.0",
|
|
1039
992
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
|
@@ -1684,23 +1637,6 @@
|
|
|
1684
1637
|
"node": ">= 0.8.0"
|
|
1685
1638
|
}
|
|
1686
1639
|
},
|
|
1687
|
-
"node_modules/set-function-length": {
|
|
1688
|
-
"version": "1.2.2",
|
|
1689
|
-
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
|
1690
|
-
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
|
1691
|
-
"license": "MIT",
|
|
1692
|
-
"dependencies": {
|
|
1693
|
-
"define-data-property": "^1.1.4",
|
|
1694
|
-
"es-errors": "^1.3.0",
|
|
1695
|
-
"function-bind": "^1.1.2",
|
|
1696
|
-
"get-intrinsic": "^1.2.4",
|
|
1697
|
-
"gopd": "^1.0.1",
|
|
1698
|
-
"has-property-descriptors": "^1.0.2"
|
|
1699
|
-
},
|
|
1700
|
-
"engines": {
|
|
1701
|
-
"node": ">= 0.4"
|
|
1702
|
-
}
|
|
1703
|
-
},
|
|
1704
1640
|
"node_modules/setprototypeof": {
|
|
1705
1641
|
"version": "1.2.0",
|
|
1706
1642
|
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8-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
|
},
|
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/cluster/export.d.ts
DELETED
|
@@ -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
|
package/dist/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the entry point of Matterbridge.
|
|
3
|
-
*
|
|
4
|
-
* @file index.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.6
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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
|
-
export type Identity<T> = T;
|
|
24
|
-
export type AtLeastOne<T> = ArrayMinLength<T, 1>;
|
|
25
|
-
type BuildArrayMinLength<T, N extends number, Current extends T[]> = Current['length'] extends N ? [...Current, ...T[]] : BuildArrayMinLength<T, N, [...Current, T]>;
|
|
26
|
-
export type ArrayMinLength<T, N extends number> = BuildArrayMinLength<T, N, []>;
|
|
27
|
-
export * from '@matter/main/clusters';
|
|
28
|
-
export * from '@matter/main/types';
|
|
29
|
-
export { SemanticNamespace, ClosureTag, CompassDirectionTag, CompassLocationTag, DirectionTag, ElectricalMeasurementTag, LaundryTag, LevelTag, LocationTag, NumberTag, PositionTag, PowerSourceTag, RefrigeratorTag, RoomAirConditionerTag, SwitchesTag, } from '@matter/node';
|
|
30
|
-
export * from '@project-chip/matter.js/device';
|
|
31
|
-
export * from '@project-chip/matter.js/cluster';
|
|
32
|
-
export * from './matterbridge.js';
|
|
33
|
-
export * from './matterbridgeTypes.js';
|
|
34
|
-
export * from './matterbridgeDevice.js';
|
|
35
|
-
export * from './matterbridgeEndpoint.js';
|
|
36
|
-
export * from './matterbridgeDeviceTypes.js';
|
|
37
|
-
export * from './matterbridgePlatform.js';
|
|
38
|
-
export * from './matterbridgeAccessoryPlatform.js';
|
|
39
|
-
export * from './matterbridgeDynamicPlatform.js';
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/logger/export.d.ts
DELETED
package/dist/matter/export.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from '@matter/main';
|
|
2
|
-
export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
|
|
3
|
-
export * from '../matterbridgeDeviceTypes.js';
|
|
4
|
-
export * from '../matterbridgeEndpoint.js';
|
|
5
|
-
export * from '../matterbridgeBehaviors.js';
|
|
6
|
-
//# sourceMappingURL=export.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeAccessoryPlatform.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeAccessoryPlatform.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.5
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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 { Matterbridge } from './matterbridge.js';
|
|
24
|
-
import { MatterbridgePlatform, PlatformConfig } from './matterbridgePlatform.js';
|
|
25
|
-
import { AnsiLogger } from 'node-ansi-logger';
|
|
26
|
-
/**
|
|
27
|
-
* Represents a Matterbridge accessory platform.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export declare class MatterbridgeAccessoryPlatform extends MatterbridgePlatform {
|
|
31
|
-
/**
|
|
32
|
-
* Creates an instance of MatterbridgeAccessoryPlatform.
|
|
33
|
-
* @param {Matterbridge} matterbridge - The Matterbridge instance.
|
|
34
|
-
* @param {AnsiLogger} log - The logger instance.
|
|
35
|
-
* @param {PlatformConfig} config - The platform configuration.
|
|
36
|
-
*/
|
|
37
|
-
constructor(matterbridge: Matterbridge, log: AnsiLogger, config: PlatformConfig);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=matterbridgeAccessoryPlatform.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeDynamicPlatform.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeDynamicPlatform.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.5
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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 { Matterbridge } from './matterbridge.js';
|
|
24
|
-
import { MatterbridgePlatform, PlatformConfig } from './matterbridgePlatform.js';
|
|
25
|
-
import { AnsiLogger } from 'node-ansi-logger';
|
|
26
|
-
/**
|
|
27
|
-
* Represents a dynamic platform for Matterbridge.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export declare class MatterbridgeDynamicPlatform extends MatterbridgePlatform {
|
|
31
|
-
/**
|
|
32
|
-
* Creates an instance of MatterbridgeDynamicPlatform.
|
|
33
|
-
* @param {Matterbridge} matterbridge - The Matterbridge instance.
|
|
34
|
-
* @param {AnsiLogger} log - The logger instance.
|
|
35
|
-
* @param {PlatformConfig} config - The platform configuration.
|
|
36
|
-
*/
|
|
37
|
-
constructor(matterbridge: Matterbridge, log: AnsiLogger, config: PlatformConfig);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=matterbridgeDynamicPlatform.d.ts.map
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the types for Matterbridge.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeTypes.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-07-12
|
|
7
|
-
* @version 1.0.2
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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 { NodeStorage } from 'node-persist-manager';
|
|
24
|
-
import { LogLevel } from 'node-ansi-logger';
|
|
25
|
-
import { MatterbridgePlatform, PlatformConfig, PlatformSchema } from './matterbridgePlatform.js';
|
|
26
|
-
import { MatterbridgeDevice } from './matterbridgeDevice.js';
|
|
27
|
-
import { FabricIndex, NodeId, VendorId, StorageContext, ServerNode, EndpointNumber } from '@matter/main';
|
|
28
|
-
import { ExposedFabricInformation } from '@matter/main/protocol';
|
|
29
|
-
import { AggregatorEndpoint } from '@matter/node/endpoints/aggregator';
|
|
30
|
-
import { CommissioningServer } from '@project-chip/matter.js';
|
|
31
|
-
import { Aggregator } from '@project-chip/matter.js/device';
|
|
32
|
-
import { Endpoint } from '@project-chip/matter.js/endpoint';
|
|
33
|
-
export declare const plg = "\u001B[38;5;33m";
|
|
34
|
-
export declare const dev = "\u001B[38;5;79m";
|
|
35
|
-
export declare const typ = "\u001B[38;5;207m";
|
|
36
|
-
export interface RegisteredPlugin extends BaseRegisteredPlugin {
|
|
37
|
-
nodeContext?: NodeStorage;
|
|
38
|
-
storageContext?: StorageContext;
|
|
39
|
-
commissioningServer?: CommissioningServer;
|
|
40
|
-
aggregator?: Aggregator;
|
|
41
|
-
device?: MatterbridgeDevice;
|
|
42
|
-
platform?: MatterbridgePlatform;
|
|
43
|
-
reachabilityTimeout?: NodeJS.Timeout;
|
|
44
|
-
serverNode?: ServerNode<ServerNode.RootEndpoint>;
|
|
45
|
-
aggregatorNode?: Endpoint<AggregatorEndpoint>;
|
|
46
|
-
}
|
|
47
|
-
export interface BaseRegisteredPlugin {
|
|
48
|
-
name: string;
|
|
49
|
-
version: string;
|
|
50
|
-
description: string;
|
|
51
|
-
author: string;
|
|
52
|
-
path: string;
|
|
53
|
-
type: string;
|
|
54
|
-
latestVersion?: string;
|
|
55
|
-
locked?: boolean;
|
|
56
|
-
error?: boolean;
|
|
57
|
-
enabled?: boolean;
|
|
58
|
-
loaded?: boolean;
|
|
59
|
-
started?: boolean;
|
|
60
|
-
configured?: boolean;
|
|
61
|
-
paired?: boolean;
|
|
62
|
-
connected?: boolean;
|
|
63
|
-
fabricInformations?: SanitizedExposedFabricInformation[];
|
|
64
|
-
sessionInformations?: SanitizedSessionInformation[];
|
|
65
|
-
registeredDevices?: number;
|
|
66
|
-
addedDevices?: number;
|
|
67
|
-
qrPairingCode?: string;
|
|
68
|
-
manualPairingCode?: string;
|
|
69
|
-
configJson?: PlatformConfig;
|
|
70
|
-
schemaJson?: PlatformSchema;
|
|
71
|
-
}
|
|
72
|
-
export interface SystemInformation {
|
|
73
|
-
interfaceName: string;
|
|
74
|
-
macAddress: string;
|
|
75
|
-
ipv4Address: string;
|
|
76
|
-
ipv6Address: string;
|
|
77
|
-
nodeVersion: string;
|
|
78
|
-
hostname: string;
|
|
79
|
-
user: string;
|
|
80
|
-
osType: string;
|
|
81
|
-
osRelease: string;
|
|
82
|
-
osPlatform: string;
|
|
83
|
-
osArch: string;
|
|
84
|
-
totalMemory: string;
|
|
85
|
-
freeMemory: string;
|
|
86
|
-
systemUptime: string;
|
|
87
|
-
}
|
|
88
|
-
export interface MatterbridgeInformation {
|
|
89
|
-
homeDirectory: string;
|
|
90
|
-
rootDirectory: string;
|
|
91
|
-
matterbridgeDirectory: string;
|
|
92
|
-
matterbridgePluginDirectory: string;
|
|
93
|
-
globalModulesDirectory: string;
|
|
94
|
-
matterbridgeVersion: string;
|
|
95
|
-
matterbridgeLatestVersion: string;
|
|
96
|
-
matterbridgeQrPairingCode: string | undefined;
|
|
97
|
-
matterbridgeManualPairingCode: string | undefined;
|
|
98
|
-
matterbridgeFabricInformations: SanitizedExposedFabricInformation[];
|
|
99
|
-
matterbridgeSessionInformations: SanitizedSessionInformation[];
|
|
100
|
-
matterbridgePaired: boolean;
|
|
101
|
-
matterbridgeConnected: boolean;
|
|
102
|
-
bridgeMode: string;
|
|
103
|
-
restartMode: string;
|
|
104
|
-
edge: boolean;
|
|
105
|
-
readOnly: boolean;
|
|
106
|
-
profile?: string;
|
|
107
|
-
loggerLevel: LogLevel;
|
|
108
|
-
fileLogger: boolean;
|
|
109
|
-
matterLoggerLevel: number;
|
|
110
|
-
matterFileLogger: boolean;
|
|
111
|
-
mattermdnsinterface: string | undefined;
|
|
112
|
-
matteripv4address: string | undefined;
|
|
113
|
-
matteripv6address: string | undefined;
|
|
114
|
-
matterPort: number;
|
|
115
|
-
matterDiscriminator: number | undefined;
|
|
116
|
-
matterPasscode: number | undefined;
|
|
117
|
-
restartRequired: boolean;
|
|
118
|
-
refreshRequired: boolean;
|
|
119
|
-
}
|
|
120
|
-
export interface SanitizedExposedFabricInformation {
|
|
121
|
-
fabricIndex: FabricIndex;
|
|
122
|
-
fabricId: string;
|
|
123
|
-
nodeId: string;
|
|
124
|
-
rootNodeId: string;
|
|
125
|
-
rootVendorId: VendorId;
|
|
126
|
-
rootVendorName: string;
|
|
127
|
-
label: string;
|
|
128
|
-
}
|
|
129
|
-
export interface SessionInformation {
|
|
130
|
-
name: string;
|
|
131
|
-
nodeId: NodeId;
|
|
132
|
-
peerNodeId: NodeId;
|
|
133
|
-
fabric?: ExposedFabricInformation;
|
|
134
|
-
isPeerActive: boolean;
|
|
135
|
-
secure: boolean;
|
|
136
|
-
lastInteractionTimestamp?: number;
|
|
137
|
-
lastActiveTimestamp?: number;
|
|
138
|
-
numberOfActiveSubscriptions: number;
|
|
139
|
-
}
|
|
140
|
-
export interface SanitizedSessionInformation {
|
|
141
|
-
name: string;
|
|
142
|
-
nodeId: string;
|
|
143
|
-
peerNodeId: string;
|
|
144
|
-
fabric?: SanitizedExposedFabricInformation;
|
|
145
|
-
isPeerActive: boolean;
|
|
146
|
-
secure: boolean;
|
|
147
|
-
lastInteractionTimestamp?: string;
|
|
148
|
-
lastActiveTimestamp?: string;
|
|
149
|
-
numberOfActiveSubscriptions: number;
|
|
150
|
-
}
|
|
151
|
-
export interface ApiDevices {
|
|
152
|
-
pluginName: string;
|
|
153
|
-
type: string;
|
|
154
|
-
endpoint: EndpointNumber | undefined;
|
|
155
|
-
name: string;
|
|
156
|
-
serial: string;
|
|
157
|
-
productUrl: string;
|
|
158
|
-
configUrl?: string;
|
|
159
|
-
uniqueId: string;
|
|
160
|
-
cluster: string;
|
|
161
|
-
}
|
|
162
|
-
//# sourceMappingURL=matterbridgeTypes.d.ts.map
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the function matterbridgeMessageHandler.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeWebsocket.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-10-16
|
|
7
|
-
* @version 1.0.0
|
|
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 { Matterbridge } from './matterbridge.js';
|
|
24
|
-
import WebSocket from 'ws';
|
|
25
|
-
/**
|
|
26
|
-
* Websocket message ID for logging.
|
|
27
|
-
* @constant {number}
|
|
28
|
-
*/
|
|
29
|
-
export declare const WS_ID_LOG = 0;
|
|
30
|
-
/**
|
|
31
|
-
* Websocket message ID indicating a refresh is needed.
|
|
32
|
-
* @constant {number}
|
|
33
|
-
*/
|
|
34
|
-
export declare const WS_ID_REFRESH_NEEDED = 1;
|
|
35
|
-
/**
|
|
36
|
-
* Websocket message ID indicating a restart is needed.
|
|
37
|
-
* @constant {number}
|
|
38
|
-
*/
|
|
39
|
-
export declare const WS_ID_RESTART_NEEDED = 2;
|
|
40
|
-
/**
|
|
41
|
-
* Handles incoming websocket messages for the Matterbridge.
|
|
42
|
-
*
|
|
43
|
-
* @param {Matterbridge} this - The Matterbridge instance.
|
|
44
|
-
* @param {WebSocket} client - The websocket client that sent the message.
|
|
45
|
-
* @param {WebSocket.RawData} message - The raw data of the message received from the client.
|
|
46
|
-
* @returns {Promise<void>} A promise that resolves when the message has been handled.
|
|
47
|
-
*/
|
|
48
|
-
export declare function wsMessageHandler(this: Matterbridge, client: WebSocket, message: WebSocket.RawData): Promise<void>;
|
|
49
|
-
//# sourceMappingURL=matterbridgeWebsocket.d.ts.map
|
package/dist/storage/export.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the color utilities.
|
|
3
|
-
*
|
|
4
|
-
* @file colorUtils.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-10-05
|
|
7
|
-
* @version 1.3.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 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
|
-
export interface RGB {
|
|
24
|
-
r: number;
|
|
25
|
-
g: number;
|
|
26
|
-
b: number;
|
|
27
|
-
}
|
|
28
|
-
export interface XY {
|
|
29
|
-
x: number;
|
|
30
|
-
y: number;
|
|
31
|
-
}
|
|
32
|
-
export interface HSL {
|
|
33
|
-
h: number;
|
|
34
|
-
s: number;
|
|
35
|
-
l: number;
|
|
36
|
-
}
|
|
37
|
-
export declare function hslColorToRgbColor(hue: number, saturation: number, luminance: number): RGB;
|
|
38
|
-
export declare function rgbColorToXYColor(rgb: RGB): XY;
|
|
39
|
-
export declare function xyColorToRgbColor(x: number, y: number, brightness?: number): RGB;
|
|
40
|
-
export declare function rgbColorToHslColor(rgb: RGB): HSL;
|
|
41
|
-
export declare function xyToHsl(x: number, y: number): HSL;
|
|
42
|
-
export declare function miredToKelvin(mired: number): number;
|
|
43
|
-
export declare function kelvinToMired(kelvin: number): number;
|
|
44
|
-
export declare function kelvinToRGB(kelvin: number): RGB;
|
|
45
|
-
/**
|
|
46
|
-
* Converts CIE color space to RGB color space
|
|
47
|
-
* @param {Number} x
|
|
48
|
-
* @param {Number} y
|
|
49
|
-
* @param {Number} brightness - Ranges from 1 to 254
|
|
50
|
-
* @return {Array} Array that contains the color values for red, green and blue
|
|
51
|
-
* From: https://github.com/usolved/cie-rgb-converter/blob/master/cie_rgb_converter.js
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* Converts RGB color space to CIE color space
|
|
55
|
-
* @param {Number} red
|
|
56
|
-
* @param {Number} green
|
|
57
|
-
* @param {Number} blue
|
|
58
|
-
* @return {Array} Array that contains the CIE color values for x and y
|
|
59
|
-
* From: https://github.com/usolved/cie-rgb-converter/blob/master/cie_rgb_converter.js
|
|
60
|
-
*/
|
|
61
|
-
//# sourceMappingURL=colorUtils.d.ts.map
|
package/dist/utils/export.d.ts
DELETED