@matterbridge/core 3.9.1-dev-20260614-89d7aeb → 3.9.1-dev-20260614-18d1a2e

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.
Files changed (37) hide show
  1. package/dist/behaviors/activatedCarbonFilterMonitoringServer.d.ts +1 -1
  2. package/dist/behaviors/booleanStateConfigurationServer.d.ts +2 -2
  3. package/dist/behaviors/colorControlServer.d.ts +9 -9
  4. package/dist/behaviors/deviceEnergyManagementServer.d.ts +4 -4
  5. package/dist/behaviors/doorLockServer.d.ts +17 -17
  6. package/dist/behaviors/fanControlServer.d.ts +2 -2
  7. package/dist/behaviors/hepaFilterMonitoringServer.d.ts +1 -1
  8. package/dist/behaviors/smokeCoAlarmServer.d.ts +1 -1
  9. package/dist/behaviors/thermostatServer.d.ts +10 -10
  10. package/dist/behaviors/valveConfigurationAndControlServer.d.ts +1 -1
  11. package/dist/behaviors/windowCoveringServer.d.ts +5 -5
  12. package/dist/clusters/closure-control.d.ts +1 -1
  13. package/dist/clusters/closure-dimension.d.ts +1 -1
  14. package/dist/clusters/soil-measurement.d.ts +1 -1
  15. package/dist/devices/closure.d.ts +6 -6
  16. package/dist/devices/closurePanel.d.ts +6 -6
  17. package/dist/devices/evse.d.ts +2 -2
  18. package/dist/devices/temperatureControl.d.ts +2 -2
  19. package/dist/helpers.js +0 -10
  20. package/dist/jestutils/jestBroadcastServerSpy.d.ts +13 -12
  21. package/dist/jestutils/jestBroadcastServerSpy.js +1 -1
  22. package/dist/jestutils/jestDeviceManagerSpy.d.ts +14 -13
  23. package/dist/jestutils/jestDeviceManagerSpy.js +1 -1
  24. package/dist/jestutils/jestFrontendSpy.d.ts +7 -9
  25. package/dist/jestutils/jestFrontendSpy.js +1 -1
  26. package/dist/jestutils/jestMatterbridgeEndpointSpy.d.ts +6 -54
  27. package/dist/jestutils/jestMatterbridgeEndpointSpy.js +1 -1
  28. package/dist/jestutils/jestMatterbridgePlatformSpy.d.ts +43 -60
  29. package/dist/jestutils/jestMatterbridgePlatformSpy.js +1 -1
  30. package/dist/jestutils/jestMatterbridgeSpy.d.ts +5 -4
  31. package/dist/jestutils/jestMatterbridgeSpy.js +1 -1
  32. package/dist/jestutils/jestPluginManagerSpy.d.ts +40 -47
  33. package/dist/jestutils/jestPluginManagerSpy.js +1 -1
  34. package/dist/jestutils/jestSetupTest.d.ts +0 -1
  35. package/dist/matterbridgeEndpointHelpers.d.ts +21 -21
  36. package/dist/matterbridgeEndpointHelpers.js +1 -2
  37. package/package.json +5 -5
@@ -1,9 +1,9 @@
1
1
  import { ActivatedCarbonFilterMonitoringServer } from '@matter/node/behaviors/activated-carbon-filter-monitoring';
2
2
  import { type ActivatedCarbonFilterMonitoring } from '@matter/types/clusters/activated-carbon-filter-monitoring';
3
3
  declare const MatterbridgeActivatedCarbonFilterMonitoringServer_base: import("@matter/node").ClusterBehavior.Type<typeof ActivatedCarbonFilterMonitoringServer, import("@matter/types").ClusterType.WithSupportedFeatures<ActivatedCarbonFilterMonitoring, {
4
+ warning: false;
4
5
  condition: true;
5
6
  replacementProductList: false;
6
- warning: false;
7
7
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "activatedCarbonFilterMonitoring">;
8
8
  export declare class MatterbridgeActivatedCarbonFilterMonitoringServer extends MatterbridgeActivatedCarbonFilterMonitoringServer_base {
9
9
  resetCondition(): Promise<void>;
@@ -1,10 +1,10 @@
1
1
  import { BooleanStateConfigurationServer } from '@matter/node/behaviors/boolean-state-configuration';
2
2
  import { BooleanStateConfiguration } from '@matter/types/clusters/boolean-state-configuration';
3
3
  declare const MatterbridgeBooleanStateConfigurationServer_base: import("@matter/node").ClusterBehavior.Type<typeof BooleanStateConfigurationServer, import("@matter/types").ClusterType.WithSupportedFeatures<BooleanStateConfiguration, {
4
- alarmSuppress: false;
4
+ visual: true;
5
5
  audible: true;
6
+ alarmSuppress: false;
6
7
  sensitivityLevel: true;
7
- visual: true;
8
8
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "booleanStateConfiguration">;
9
9
  export declare class MatterbridgeBooleanStateConfigurationServer extends MatterbridgeBooleanStateConfigurationServer_base {
10
10
  enableDisableAlarm(request: BooleanStateConfiguration.EnableDisableAlarmRequest): Promise<void>;
@@ -1,11 +1,11 @@
1
1
  import { ColorControlServer } from '@matter/node/behaviors/color-control';
2
2
  import { ColorControl } from '@matter/types/clusters/color-control';
3
3
  declare const MatterbridgeColorControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof ColorControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<ColorControl, {
4
- colorLoop: false;
5
- colorTemperature: true;
6
- enhancedHue: true;
7
4
  hueSaturation: true;
5
+ enhancedHue: true;
6
+ colorLoop: false;
8
7
  xy: true;
8
+ colorTemperature: true;
9
9
  }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/color-control").ColorControlBaseServer.Internal, "colorControl">;
10
10
  export declare class MatterbridgeColorControlServer extends MatterbridgeColorControlServer_base {
11
11
  moveToHue(request: ColorControl.MoveToHueRequest): Promise<void>;
@@ -17,17 +17,17 @@ export declare class MatterbridgeColorControlServer extends MatterbridgeColorCon
17
17
  moveToColorTemperature(request: ColorControl.MoveToColorTemperatureRequest): Promise<void>;
18
18
  }
19
19
  declare const MatterbridgeEnhancedColorControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof MatterbridgeColorControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<ColorControl, {
20
- colorLoop: false;
21
- colorTemperature: true;
22
- enhancedHue: true;
23
20
  hueSaturation: true;
24
- xy: true;
25
- }>, {
21
+ enhancedHue: true;
26
22
  colorLoop: false;
23
+ xy: true;
27
24
  colorTemperature: true;
28
- enhancedHue: true;
25
+ }>, {
29
26
  hueSaturation: true;
27
+ enhancedHue: true;
28
+ colorLoop: false;
30
29
  xy: true;
30
+ colorTemperature: true;
31
31
  }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/color-control").ColorControlBaseServer.Internal, "colorControl">;
32
32
  export declare class MatterbridgeEnhancedColorControlServer extends MatterbridgeEnhancedColorControlServer_base {
33
33
  }
@@ -1,13 +1,13 @@
1
1
  import { DeviceEnergyManagementServer } from '@matter/node/behaviors/device-energy-management';
2
2
  import { DeviceEnergyManagement } from '@matter/types/clusters/device-energy-management';
3
3
  declare const MatterbridgeDeviceEnergyManagementServer_base: import("@matter/node").ClusterBehavior.Type<typeof DeviceEnergyManagementServer, import("@matter/types").ClusterType.WithSupportedFeatures<DeviceEnergyManagement, {
4
- constraintBasedAdjustment: false;
5
- forecastAdjustment: false;
6
- pausable: false;
7
4
  powerAdjustment: true;
8
5
  powerForecastReporting: true;
9
- startTimeAdjustment: false;
10
6
  stateForecastReporting: false;
7
+ startTimeAdjustment: false;
8
+ pausable: false;
9
+ forecastAdjustment: false;
10
+ constraintBasedAdjustment: false;
11
11
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "deviceEnergyManagement">;
12
12
  export declare class MatterbridgeDeviceEnergyManagementServer extends MatterbridgeDeviceEnergyManagementServer_base {
13
13
  powerAdjustRequest(request: DeviceEnergyManagement.PowerAdjustRequest): Promise<void>;
@@ -1,33 +1,33 @@
1
1
  import { DoorLockServer } from '@matter/node/behaviors/door-lock';
2
2
  import { DoorLock } from '@matter/types/clusters/door-lock';
3
3
  declare const MatterbridgeDoorLockServer_base: import("@matter/node").ClusterBehavior.Type<import("@matter/node").ClusterBehavior.Type<typeof DoorLockServer, import("@matter/types").ClusterType.WithSupportedFeatures<DoorLock, {
4
- aliroBleuwb: false;
5
- aliroProvisioning: false;
6
- credentialOverTheAirAccess: false;
7
- doorPositionSensor: false;
8
- faceCredentials: false;
9
- fingerCredentials: false;
10
- holidaySchedules: false;
11
4
  pinCredential: true;
12
5
  rfidCredential: false;
13
- unbolting: false;
14
- user: true;
6
+ fingerCredentials: false;
15
7
  weekDayAccessSchedules: false;
16
- yearDayAccessSchedules: false;
17
- }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/door-lock").DoorLockBaseServer.Internal, "doorLock">, import("@matter/types").ClusterType.WithEnabledAttributes<import("@matter/types").ClusterType.WithEnabledEvents<import("@matter/types").ClusterType.WithSupportedFeatures<DoorLock, {
18
- aliroBleuwb: false;
19
- aliroProvisioning: false;
20
- credentialOverTheAirAccess: false;
21
8
  doorPositionSensor: false;
22
9
  faceCredentials: false;
23
- fingerCredentials: false;
10
+ credentialOverTheAirAccess: false;
11
+ user: true;
12
+ yearDayAccessSchedules: false;
24
13
  holidaySchedules: false;
14
+ unbolting: false;
15
+ aliroProvisioning: false;
16
+ aliroBleuwb: false;
17
+ }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/door-lock").DoorLockBaseServer.Internal, "doorLock">, import("@matter/types").ClusterType.WithEnabledAttributes<import("@matter/types").ClusterType.WithEnabledEvents<import("@matter/types").ClusterType.WithSupportedFeatures<DoorLock, {
25
18
  pinCredential: true;
26
19
  rfidCredential: false;
27
- unbolting: false;
28
- user: true;
20
+ fingerCredentials: false;
29
21
  weekDayAccessSchedules: false;
22
+ doorPositionSensor: false;
23
+ faceCredentials: false;
24
+ credentialOverTheAirAccess: false;
25
+ user: true;
30
26
  yearDayAccessSchedules: false;
27
+ holidaySchedules: false;
28
+ unbolting: false;
29
+ aliroProvisioning: false;
30
+ aliroBleuwb: false;
31
31
  }>, "doorLockAlarm" | "lockOperation" | "lockOperationError">, never>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/door-lock").DoorLockBaseServer.Internal, "doorLock">;
32
32
  export declare class MatterbridgeDoorLockServer extends MatterbridgeDoorLockServer_base {
33
33
  initialize(): Promise<void>;
@@ -1,11 +1,11 @@
1
1
  import { FanControlServer } from '@matter/node/behaviors/fan-control';
2
2
  import { FanControl } from '@matter/types/clusters/fan-control';
3
3
  declare const MatterbridgeFanControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof FanControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<FanControl, {
4
+ step: true;
4
5
  airflowDirection: false;
5
- auto: true;
6
6
  multiSpeed: false;
7
+ auto: true;
7
8
  rocking: false;
8
- step: true;
9
9
  wind: false;
10
10
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "fanControl">;
11
11
  export declare class MatterbridgeFanControlServer extends MatterbridgeFanControlServer_base {
@@ -1,9 +1,9 @@
1
1
  import { HepaFilterMonitoringServer } from '@matter/node/behaviors/hepa-filter-monitoring';
2
2
  import { type HepaFilterMonitoring } from '@matter/types/clusters/hepa-filter-monitoring';
3
3
  declare const MatterbridgeHepaFilterMonitoringServer_base: import("@matter/node").ClusterBehavior.Type<typeof HepaFilterMonitoringServer, import("@matter/types").ClusterType.WithSupportedFeatures<HepaFilterMonitoring, {
4
+ warning: false;
4
5
  condition: true;
5
6
  replacementProductList: false;
6
- warning: false;
7
7
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "hepaFilterMonitoring">;
8
8
  export declare class MatterbridgeHepaFilterMonitoringServer extends MatterbridgeHepaFilterMonitoringServer_base {
9
9
  resetCondition(): Promise<void>;
@@ -1,8 +1,8 @@
1
1
  import { SmokeCoAlarmServer } from '@matter/node/behaviors/smoke-co-alarm';
2
2
  import { SmokeCoAlarm } from '@matter/types/clusters/smoke-co-alarm';
3
3
  declare const MatterbridgeSmokeCoAlarmServer_base: import("@matter/node").ClusterBehavior.Type<typeof SmokeCoAlarmServer, import("@matter/types").ClusterType.WithSupportedFeatures<SmokeCoAlarm, {
4
- coAlarm: true;
5
4
  smokeAlarm: true;
5
+ coAlarm: true;
6
6
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "smokeCoAlarm">;
7
7
  export declare class MatterbridgeSmokeCoAlarmServer extends MatterbridgeSmokeCoAlarmServer_base {
8
8
  selfTestRequest(): Promise<void>;
@@ -1,14 +1,14 @@
1
1
  import { ThermostatServer } from '@matter/node/behaviors/thermostat';
2
2
  import { Thermostat } from '@matter/types/clusters/thermostat';
3
3
  declare const MatterbridgeThermostatServer_base: import("@matter/node").ClusterBehavior.Type<typeof ThermostatServer, import("@matter/types").ClusterType.WithSupportedFeatures<Thermostat, {
4
- autoMode: true;
5
- cooling: true;
6
- heating: true;
7
- localTemperatureNotExposed: false;
8
- matterScheduleConfiguration: false;
9
4
  occupancy: false;
10
5
  presets: true;
6
+ heating: true;
7
+ cooling: true;
11
8
  setback: false;
9
+ autoMode: true;
10
+ localTemperatureNotExposed: false;
11
+ matterScheduleConfiguration: false;
12
12
  }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/thermostat").ThermostatBaseServer.Internal, "thermostat">;
13
13
  export declare class MatterbridgeThermostatServer extends MatterbridgeThermostatServer_base {
14
14
  initialize(): Promise<void>;
@@ -16,14 +16,14 @@ export declare class MatterbridgeThermostatServer extends MatterbridgeThermostat
16
16
  setActivePresetRequest(request: Thermostat.SetActivePresetRequest): Promise<void>;
17
17
  }
18
18
  declare const MatterbridgePresetThermostatServer_base: import("@matter/node").ClusterBehavior.Type<typeof ThermostatServer, import("@matter/types").ClusterType.WithSupportedFeatures<Thermostat, {
19
- autoMode: true;
20
- cooling: true;
21
- heating: true;
22
- localTemperatureNotExposed: false;
23
- matterScheduleConfiguration: false;
24
19
  occupancy: false;
25
20
  presets: true;
21
+ heating: true;
22
+ cooling: true;
26
23
  setback: false;
24
+ autoMode: true;
25
+ localTemperatureNotExposed: false;
26
+ matterScheduleConfiguration: false;
27
27
  }>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/thermostat").ThermostatBaseServer.Internal, "thermostat">;
28
28
  export declare class MatterbridgePresetThermostatServer extends MatterbridgePresetThermostatServer_base {
29
29
  }
@@ -1,8 +1,8 @@
1
1
  import { ValveConfigurationAndControlServer } from '@matter/node/behaviors/valve-configuration-and-control';
2
2
  import { ValveConfigurationAndControl } from '@matter/types/clusters/valve-configuration-and-control';
3
3
  declare const MatterbridgeValveConfigurationAndControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof ValveConfigurationAndControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<ValveConfigurationAndControl, {
4
- level: true;
5
4
  timeSync: false;
5
+ level: true;
6
6
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "valveConfigurationAndControl">;
7
7
  export declare class MatterbridgeValveConfigurationAndControlServer extends MatterbridgeValveConfigurationAndControlServer_base {
8
8
  open(request: ValveConfigurationAndControl.OpenRequest): Promise<void>;
@@ -2,9 +2,9 @@ import { type WindowCoveringBaseServer, WindowCoveringServer } from '@matter/nod
2
2
  import { WindowCovering } from '@matter/types/clusters/window-covering';
3
3
  declare const MatterbridgeWindowCoveringServer_base: import("@matter/node").ClusterBehavior.Type<typeof WindowCoveringServer, import("@matter/types").ClusterType.WithSupportedFeatures<WindowCovering, {
4
4
  lift: true;
5
+ tilt: true;
5
6
  positionAwareLift: true;
6
7
  positionAwareTilt: true;
7
- tilt: true;
8
8
  }>, import("@matter/types").ClusterType.Concrete, typeof WindowCoveringBaseServer.Internal, "windowCovering">;
9
9
  export declare class MatterbridgeWindowCoveringServer extends MatterbridgeWindowCoveringServer_base {
10
10
  protected internal: WindowCoveringBaseServer.Internal;
@@ -20,27 +20,27 @@ export declare class MatterbridgeWindowCoveringServer extends MatterbridgeWindow
20
20
  }
21
21
  declare const MatterbridgeLiftWindowCoveringServer_base: import("@matter/node").ClusterBehavior.Type<typeof MatterbridgeWindowCoveringServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<WindowCovering, {
22
22
  lift: true;
23
+ tilt: true;
23
24
  positionAwareLift: true;
24
25
  positionAwareTilt: true;
25
- tilt: true;
26
26
  }>, {
27
27
  lift: true;
28
+ tilt: false;
28
29
  positionAwareLift: true;
29
30
  positionAwareTilt: false;
30
- tilt: false;
31
31
  }>, import("@matter/types").ClusterType.Concrete, typeof WindowCoveringBaseServer.Internal, "windowCovering">;
32
32
  export declare class MatterbridgeLiftWindowCoveringServer extends MatterbridgeLiftWindowCoveringServer_base {
33
33
  }
34
34
  declare const MatterbridgeLiftTiltWindowCoveringServer_base: import("@matter/node").ClusterBehavior.Type<typeof MatterbridgeWindowCoveringServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<WindowCovering, {
35
35
  lift: true;
36
+ tilt: true;
36
37
  positionAwareLift: true;
37
38
  positionAwareTilt: true;
38
- tilt: true;
39
39
  }>, {
40
40
  lift: true;
41
+ tilt: true;
41
42
  positionAwareLift: true;
42
43
  positionAwareTilt: true;
43
- tilt: true;
44
44
  }>, import("@matter/types").ClusterType.Concrete, typeof WindowCoveringBaseServer.Internal, "windowCovering">;
45
45
  export declare class MatterbridgeLiftTiltWindowCoveringServer extends MatterbridgeLiftTiltWindowCoveringServer_base {
46
46
  }
@@ -130,7 +130,7 @@ export declare namespace ClosureControl {
130
130
  }
131
131
  export declare const ClosureControl: ClusterType.Concrete & {
132
132
  readonly id: ClusterId & 260;
133
- readonly name: 'ClosureControl';
133
+ readonly name: "ClosureControl";
134
134
  readonly revision: 1;
135
135
  readonly schema: ClusterModel;
136
136
  readonly attributes: ClusterType.AttributeObjects<ClosureControl.Attributes>;
@@ -148,7 +148,7 @@ export declare namespace ClosureDimension {
148
148
  }
149
149
  export declare const ClosureDimension: ClusterType.Concrete & {
150
150
  readonly id: ClusterId & 261;
151
- readonly name: 'ClosureDimension';
151
+ readonly name: "ClosureDimension";
152
152
  readonly revision: 1;
153
153
  readonly schema: ClusterModel;
154
154
  readonly attributes: ClusterType.AttributeObjects<ClosureDimension.Attributes>;
@@ -24,7 +24,7 @@ export declare namespace SoilMeasurement {
24
24
  }
25
25
  export declare const SoilMeasurement: ClusterType.Concrete & {
26
26
  readonly id: ClusterId & 1072;
27
- readonly name: 'SoilMeasurement';
27
+ readonly name: "SoilMeasurement";
28
28
  readonly revision: 1;
29
29
  readonly schema: ClusterModel;
30
30
  readonly attributes: ClusterType.AttributeObjects<SoilMeasurement.Attributes>;
@@ -2,15 +2,15 @@ import { ClosureControlServer } from '@matter/node/behaviors/closure-control';
2
2
  import { ClosureControl } from '@matter/types/clusters/closure-control';
3
3
  import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
4
4
  declare const MatterbridgeClosureControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof ClosureControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<ClosureControl, {
5
- calibration: false;
6
- instantaneous: false;
7
- manuallyOperable: false;
5
+ speed: true;
6
+ positioning: true;
8
7
  motionLatching: true;
8
+ instantaneous: false;
9
+ ventilation: false;
9
10
  pedestrian: false;
10
- positioning: true;
11
+ calibration: false;
11
12
  protection: false;
12
- speed: true;
13
- ventilation: false;
13
+ manuallyOperable: false;
14
14
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "closureControl">;
15
15
  export declare class MatterbridgeClosureControlServer extends MatterbridgeClosureControlServer_base {
16
16
  moveTo: (request: ClosureControl.MoveToRequest) => Promise<void>;
@@ -2,14 +2,14 @@ import { ClosureDimensionServer } from '@matter/node/behaviors/closure-dimension
2
2
  import { ClosureDimension } from '@matter/types/clusters/closure-dimension';
3
3
  import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
4
4
  declare const MatterbridgeClosureDimensionServer_base: import("@matter/node").ClusterBehavior.Type<typeof ClosureDimensionServer, import("@matter/types").ClusterType.WithSupportedFeatures<ClosureDimension, {
5
- limitation: false;
6
- modulation: false;
7
- motionLatching: true;
8
- positioning: true;
9
- rotation: false;
5
+ unit: false;
10
6
  speed: true;
7
+ positioning: true;
8
+ motionLatching: true;
9
+ limitation: false;
11
10
  translation: false;
12
- unit: false;
11
+ rotation: false;
12
+ modulation: false;
13
13
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "closureDimension">;
14
14
  export declare class MatterbridgeClosureDimensionServer extends MatterbridgeClosureDimensionServer_base {
15
15
  setTarget: (request: ClosureDimension.SetTargetRequest) => Promise<void>;
@@ -11,10 +11,10 @@ export declare class Evse extends MatterbridgeEndpoint {
11
11
  createDefaultEnergyEvseModeClusterServer(currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[]): this;
12
12
  }
13
13
  declare const MatterbridgeEnergyEvseServer_base: import("@matter/node").ClusterBehavior.Type<typeof EnergyEvseServer, import("@matter/types").ClusterType.WithSupportedFeatures<EnergyEvse, {
14
- chargingPreferences: true;
15
- plugAndCharge: false;
16
14
  rfid: false;
15
+ chargingPreferences: true;
17
16
  soCReporting: false;
17
+ plugAndCharge: false;
18
18
  v2X: false;
19
19
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "energyEvse">;
20
20
  export declare class MatterbridgeEnergyEvseServer extends MatterbridgeEnergyEvseServer_base {
@@ -4,8 +4,8 @@ import { type MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
4
4
  export declare function createLevelTemperatureControlClusterServer(endpoint: MatterbridgeEndpoint, selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[]): MatterbridgeEndpoint;
5
5
  export declare function createNumberTemperatureControlClusterServer(endpoint: MatterbridgeEndpoint, temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number): MatterbridgeEndpoint;
6
6
  declare const MatterbridgeLevelTemperatureControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof TemperatureControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<TemperatureControl, {
7
- temperatureLevel: true;
8
7
  temperatureNumber: false;
8
+ temperatureLevel: true;
9
9
  temperatureStep: false;
10
10
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "temperatureControl">;
11
11
  export declare class MatterbridgeLevelTemperatureControlServer extends MatterbridgeLevelTemperatureControlServer_base {
@@ -13,8 +13,8 @@ export declare class MatterbridgeLevelTemperatureControlServer extends Matterbri
13
13
  setTemperature(request: TemperatureControl.SetTemperatureRequest): Promise<void>;
14
14
  }
15
15
  declare const MatterbridgeNumberTemperatureControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof TemperatureControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<TemperatureControl, {
16
- temperatureLevel: false;
17
16
  temperatureNumber: true;
17
+ temperatureLevel: false;
18
18
  temperatureStep: true;
19
19
  }>, import("@matter/types").ClusterType.Concrete, new () => {}, "temperatureControl">;
20
20
  export declare class MatterbridgeNumberTemperatureControlServer extends MatterbridgeNumberTemperatureControlServer_base {
package/dist/helpers.js CHANGED
@@ -10,9 +10,6 @@ import { OnOffLightDevice } from '@matter/node/devices/on-off-light';
10
10
  import { OnOffLightSwitchDevice } from '@matter/node/devices/on-off-light-switch';
11
11
  import { OnOffPlugInUnitDevice } from '@matter/node/devices/on-off-plug-in-unit';
12
12
  import { VendorId } from '@matter/types/datatype';
13
- import { hasParameter } from '@matterbridge/utils/cli';
14
- import { doorLock } from './matterbridgeDeviceTypes.js';
15
- import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
16
13
  export async function addVirtualDevice(aggregatorEndpoint, name, type, callback) {
17
14
  let deviceType;
18
15
  switch (type) {
@@ -59,13 +56,6 @@ export async function addVirtualDevice(aggregatorEndpoint, name, type, callback)
59
56
  return device;
60
57
  }
61
58
  export async function addVirtualDevices(matterbridge, aggregatorEndpoint) {
62
- if (hasParameter('experimental') && matterbridge.bridgeMode === 'bridge' && aggregatorEndpoint) {
63
- const lockUserPin = new MatterbridgeEndpoint(doorLock, { id: 'door_lock_user_pin' });
64
- lockUserPin.createDefaultBridgedDeviceBasicInformationClusterServer('Matterbridge User Pin Lock', 'sn_system_lock', 0xfff1, 'Matterbridge', 'Matterbridge Virtual Device', 20000, '2.0.0');
65
- lockUserPin.createUserPinDoorLockClusterServer();
66
- lockUserPin.addRequiredClusterServers();
67
- await aggregatorEndpoint.add(lockUserPin);
68
- }
69
59
  if (matterbridge.virtualMode !== 'disabled' && matterbridge.bridgeMode === 'bridge' && aggregatorEndpoint) {
70
60
  matterbridge.log.notice(`Creating virtual devices for Matterbridge server node...`);
71
61
  await addVirtualDevice(aggregatorEndpoint, 'Restart Matterbridge', matterbridge.virtualMode, async () => {
@@ -1,12 +1,13 @@
1
- export declare const closeBroadcastServerSpy: import("jest-mock").SpiedFunction<() => void>;
2
- export declare const getUniqueIdBroadcastServerSpy: import("jest-mock").SpiedFunction<() => number>;
3
- export declare const isWorkerRequestBroadcastServerSpy: import("jest-mock").SpiedFunction<(value: unknown) => value is import("@matterbridge/types").WorkerMessageRequest>;
4
- export declare const isWorkerRequestOfTypeBroadcastServerSpy: import("jest-mock").SpiedFunction<<K extends keyof import("@matterbridge/types").WorkerMessageTypes>(value: unknown, type: K) => value is import("@matterbridge/types").WorkerMessageRequest<K>>;
5
- export declare const isWorkerResponseBroadcastServerSpy: import("jest-mock").SpiedFunction<(value: unknown) => value is import("@matterbridge/types").WorkerMessageResponse>;
6
- export declare const isWorkerResponseOfTypeBroadcastServerSpy: import("jest-mock").SpiedFunction<<K extends keyof import("@matterbridge/types").WorkerMessageTypes>(value: unknown, type: K) => value is import("@matterbridge/types").WorkerMessageResponse<K>>;
7
- export declare const broadcastBroadcastServerSpy: import("jest-mock").SpiedFunction<(message: import("@matterbridge/types").WorkerMessage) => void>;
8
- export declare const requestBroadcastServerSpy: import("jest-mock").SpiedFunction<<K extends keyof import("@matterbridge/types").WorkerMessageTypes>(message: import("@matterbridge/types").WorkerMessageRequest<K>) => void>;
9
- export declare const respondBroadcastServerSpy: import("jest-mock").SpiedFunction<<K extends keyof import("@matterbridge/types").WorkerMessageTypes>(message: import("@matterbridge/types").WorkerMessageResponse<K>) => void>;
10
- export declare const fetchBroadcastServerSpy: import("jest-mock").SpiedFunction<<T extends import("@matterbridge/types").WorkerMessageRequestAny, K extends Extract<keyof import("@matterbridge/types").WorkerMessageTypes, T['type']>>(message: T, timeout?: number) => Promise<import("@matterbridge/types").WorkerMessageResponseSuccess<K>>>;
11
- export declare const broadcastMessageHandlerBroadcastServerSpy: import("jest-mock").SpiedGetter<import("@matterbridge/types").WorkerSrcType> | import("jest-mock").SpiedSetter<import("@matterbridge/types").WorkerSrcType>;
12
- export declare const broadcastMessageErrorHandlerBroadcastServerSpy: import("jest-mock").SpiedGetter<import("@matterbridge/types").WorkerSrcType> | import("jest-mock").SpiedSetter<import("@matterbridge/types").WorkerSrcType>;
1
+ import { BroadcastServer } from '@matterbridge/thread/server';
2
+ export declare const closeBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.close>;
3
+ export declare const getUniqueIdBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.getUniqueId>;
4
+ export declare const isWorkerRequestBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.isWorkerRequest>;
5
+ export declare const isWorkerRequestOfTypeBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.isWorkerRequestOfType>;
6
+ export declare const isWorkerResponseBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.isWorkerResponse>;
7
+ export declare const isWorkerResponseOfTypeBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.isWorkerResponseOfType>;
8
+ export declare const broadcastBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.broadcast>;
9
+ export declare const requestBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.request>;
10
+ export declare const respondBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.respond>;
11
+ export declare const fetchBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.fetch>;
12
+ export declare const broadcastMessageHandlerBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.broadcastMessageHandler>;
13
+ export declare const broadcastMessageErrorHandlerBroadcastServerSpy: jest.SpiedFunction<typeof BroadcastServer.prototype.broadcastMessageErrorHandler>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { BroadcastServer } from '@matterbridge/thread/server';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const closeBroadcastServerSpy = jest.spyOn(BroadcastServer.prototype, 'close');
4
4
  export const getUniqueIdBroadcastServerSpy = jest.spyOn(BroadcastServer.prototype, 'getUniqueId');
5
5
  export const isWorkerRequestBroadcastServerSpy = jest.spyOn(BroadcastServer.prototype, 'isWorkerRequest');
@@ -1,13 +1,14 @@
1
- export declare const destroyDeviceManagerSpy: import("jest-mock").SpiedFunction<() => void>;
2
- export declare const lengthDeviceManagerSpy: import("jest-mock").SpiedGetter<number>;
3
- export declare const sizeDeviceManagerSpy: import("jest-mock").SpiedGetter<number>;
4
- export declare const hasDeviceManagerSpy: import("jest-mock").SpiedFunction<(uniqueId: string) => boolean>;
5
- export declare const getDeviceManagerSpy: import("jest-mock").SpiedFunction<(uniqueId: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
6
- export declare const setDeviceManagerSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint>;
7
- export declare const removeDeviceManagerSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => boolean>;
8
- export declare const clearDeviceManagerSpy: import("jest-mock").SpiedFunction<() => void>;
9
- export declare const arrayDeviceManagerSpy: import("jest-mock").SpiedFunction<() => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint[]>;
10
- export declare const baseArrayDeviceManagerSpy: import("jest-mock").SpiedFunction<(pluginName?: string) => import("@matterbridge/types").BaseDevice[]>;
11
- export declare const iteratorDeviceManagerSpy: import("jest-mock").SpiedFunction<() => MapIterator<import("../matterbridgeEndpoint.js").MatterbridgeEndpoint>>;
12
- export declare const forEachDeviceManagerSpy: import("jest-mock").SpiedFunction<(callback: (device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>) => Promise<void>>;
13
- export declare const logLevelDeviceManagerSpy: import("jest-mock").SpiedSetter<import("node-ansi-logger").LogLevel>;
1
+ import { DeviceManager } from '../deviceManager.js';
2
+ export declare const destroyDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.destroy>;
3
+ export declare const lengthDeviceManagerSpy: jest.SpiedGetter<typeof DeviceManager.prototype.length>;
4
+ export declare const sizeDeviceManagerSpy: jest.SpiedGetter<typeof DeviceManager.prototype.size>;
5
+ export declare const hasDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.has>;
6
+ export declare const getDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.get>;
7
+ export declare const setDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.set>;
8
+ export declare const removeDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.remove>;
9
+ export declare const clearDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.clear>;
10
+ export declare const arrayDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.array>;
11
+ export declare const baseArrayDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.baseArray>;
12
+ export declare const iteratorDeviceManagerSpy: jest.SpiedFunction<(typeof DeviceManager.prototype)[typeof Symbol.iterator]>;
13
+ export declare const forEachDeviceManagerSpy: jest.SpiedFunction<typeof DeviceManager.prototype.forEach>;
14
+ export declare const logLevelDeviceManagerSpy: jest.SpiedSetter<typeof DeviceManager.prototype.logLevel>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { DeviceManager } from '../deviceManager.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const destroyDeviceManagerSpy = jest.spyOn(DeviceManager.prototype, 'destroy');
4
4
  export const lengthDeviceManagerSpy = jest.spyOn(DeviceManager.prototype, 'length', 'get');
5
5
  export const sizeDeviceManagerSpy = jest.spyOn(DeviceManager.prototype, 'size', 'get');
@@ -1,9 +1,7 @@
1
- export declare const wssSendSnackbarMessageFrontendSpy: import("jest-mock").SpiedFunction<(message: string, timeout?: number, severity?: 'info' | 'warning' | 'error' | 'success') => void>;
2
- export declare const wssSendCloseSnackbarMessageFrontendSpy: import("jest-mock").SpiedFunction<(message: string) => void>;
3
- export declare const wssSendUpdateRequiredFrontendSpy: import("jest-mock").SpiedFunction<(devVersion?: boolean) => void>;
4
- export declare const wssSendRefreshRequiredFrontendSpy: import("jest-mock").SpiedFunction<(changed: import("@matterbridge/types").RefreshRequiredChanged, params?: {
5
- matter?: import("@matterbridge/types").ApiMatter;
6
- lock?: string;
7
- }) => void>;
8
- export declare const wssSendRestartRequiredFrontendSpy: import("jest-mock").SpiedFunction<(snackbar?: boolean, fixed?: boolean) => void>;
9
- export declare const wssSendRestartNotRequiredFrontendSpy: import("jest-mock").SpiedFunction<(snackbar?: boolean) => void>;
1
+ import { Frontend } from '../frontend.js';
2
+ export declare const wssSendSnackbarMessageFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendSnackbarMessage>;
3
+ export declare const wssSendCloseSnackbarMessageFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendCloseSnackbarMessage>;
4
+ export declare const wssSendUpdateRequiredFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendUpdateRequired>;
5
+ export declare const wssSendRefreshRequiredFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendRefreshRequired>;
6
+ export declare const wssSendRestartRequiredFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendRestartRequired>;
7
+ export declare const wssSendRestartNotRequiredFrontendSpy: jest.SpiedFunction<typeof Frontend.prototype.wssSendRestartNotRequired>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { Frontend } from '../frontend.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const wssSendSnackbarMessageFrontendSpy = jest.spyOn(Frontend.prototype, 'wssSendSnackbarMessage');
4
4
  export const wssSendCloseSnackbarMessageFrontendSpy = jest.spyOn(Frontend.prototype, 'wssSendCloseSnackbarMessage');
5
5
  export const wssSendUpdateRequiredFrontendSpy = jest.spyOn(Frontend.prototype, 'wssSendUpdateRequired');
@@ -1,55 +1,7 @@
1
1
  import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
2
- export declare const setClusterMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<{
3
- <T extends import("@matter/node").Behavior.Type>(cluster: T, value: import("@matter/node").Behavior.StateOf<T>, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
4
- <T extends import("@matter/types").ClusterType>(cluster: T, value: Partial<T["Typing"] extends {
5
- Attributes: infer Attributes;
6
- } ? Attributes : {}>, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
7
- (cluster: import("@matter/types").ClusterId | string, value: Record<string, boolean | number | bigint | string | object | undefined | null>, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
8
- }>;
9
- export declare const setAttributeMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<{
10
- <T extends import("@matter/node").Behavior.Type, A extends keyof import("@matter/node").Behavior.StateOf<T>>(clusterId: T, attribute: A, value: import("@matter/node").Behavior.StateOf<T>[A], log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
11
- <T extends import("@matter/types").ClusterType, A extends keyof (T["Typing"] extends {
12
- Attributes: infer Attributes;
13
- } ? Attributes : {})>(clusterId: T, attribute: A, value: (T["Typing"] extends {
14
- Attributes: infer Attributes;
15
- } ? Attributes : {})[A], log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
16
- (clusterId: import("@matter/types").ClusterId | string, attribute: string, value: boolean | number | bigint | string | object | null, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
17
- }>;
18
- export declare const updateAttributeMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<{
19
- <T extends import("@matter/node").Behavior.Type, A extends keyof import("@matter/node").Behavior.StateOf<T>>(cluster: T, attribute: A, value: import("@matter/node").Behavior.StateOf<T>[A], log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
20
- <T extends import("@matter/types").ClusterType, A extends keyof (T["Typing"] extends {
21
- Attributes: infer Attributes;
22
- } ? Attributes : {})>(cluster: T, attribute: A, value: (T["Typing"] extends {
23
- Attributes: infer Attributes;
24
- } ? Attributes : {})[A], log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
25
- (cluster: import("@matter/types").ClusterId | string, attribute: string, value: boolean | number | bigint | string | object | null, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
26
- }>;
27
- export declare const subscribeAttributeMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<{
28
- <T extends import("@matter/node").Behavior.Type, A extends keyof import("@matter/node").Behavior.StateOf<T>>(cluster: T, attribute: A, listener: (newValue: InstanceType<T["State"]>[A], oldValue: InstanceType<T["State"]>[A], context: import("@matter/node").ActionContext) => void, log?: import("node-ansi-logger").AnsiLogger): MatterbridgeEndpoint;
29
- <T extends import("@matter/types").ClusterType, A extends keyof (T["Typing"] extends {
30
- Attributes: infer Attributes;
31
- } ? Attributes : {})>(cluster: T, attribute: A, listener: (newValue: (T["Typing"] extends {
32
- Attributes: infer Attributes;
33
- } ? Attributes : {})[A], oldValue: (T["Typing"] extends {
34
- Attributes: infer Attributes;
35
- } ? Attributes : {})[A], context: import("@matter/node").ActionContext) => void, log?: import("node-ansi-logger").AnsiLogger): MatterbridgeEndpoint;
36
- (cluster: import("@matter/types").ClusterId | string, attribute: string, listener: (newValue: any, oldValue: any, context: import("@matter/node").ActionContext) => void, log?: import("node-ansi-logger").AnsiLogger): MatterbridgeEndpoint;
37
- }>;
38
- export declare const triggerEventMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<{
39
- <T extends import("@matter/node").Behavior.Type, E extends keyof ((T extends {
40
- Interface: infer N extends import("@matter/types").ClusterTyping;
41
- } ? N : import("@matter/types").ClusterTyping)["Events"] & {}) & string>(cluster: T, event: E, payload: E extends keyof ((T extends {
42
- Interface: infer N extends import("@matter/types").ClusterTyping;
43
- } ? N : import("@matter/types").ClusterTyping)["Events"] & {}) & string ? ((T extends {
44
- Interface: infer N extends import("@matter/types").ClusterTyping;
45
- } ? N : import("@matter/types").ClusterTyping)["Events"] & {})[E] : never, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
46
- <T extends import("@matter/types").ClusterType, E extends keyof (T["Typing"] extends {
47
- Events: infer Events;
48
- } ? Events : Record<string, never>) & string>(cluster: T, event: E, payload: E extends keyof (T["Typing"] extends {
49
- Events: infer Events;
50
- } ? Events : Record<string, never>) ? (T["Typing"] extends {
51
- Events: infer Events;
52
- } ? Events : Record<string, never>)[E] : never, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
53
- (cluster: import("@matter/types").ClusterId | string, event: string, payload: Record<string, boolean | number | bigint | string | object | undefined | null>, log?: import("node-ansi-logger").AnsiLogger): Promise<boolean>;
54
- }>;
55
- export declare const triggerSwitchEventMatterbridgeEndpointSpy: import("jest-mock").SpiedFunction<(event: 'Single' | 'Double' | 'Long' | 'Press' | 'Release', log?: import("node-ansi-logger").AnsiLogger) => Promise<boolean>>;
2
+ export declare const setClusterMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.setCluster>;
3
+ export declare const setAttributeMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.setAttribute>;
4
+ export declare const updateAttributeMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.updateAttribute>;
5
+ export declare const subscribeAttributeMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.subscribeAttribute>;
6
+ export declare const triggerEventMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.triggerEvent>;
7
+ export declare const triggerSwitchEventMatterbridgeEndpointSpy: jest.SpiedFunction<typeof MatterbridgeEndpoint.prototype.triggerSwitchEvent>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const setClusterMatterbridgeEndpointSpy = jest.spyOn(MatterbridgeEndpoint.prototype, 'setCluster');
4
4
  export const setAttributeMatterbridgeEndpointSpy = jest.spyOn(MatterbridgeEndpoint.prototype, 'setAttribute');
5
5
  export const updateAttributeMatterbridgeEndpointSpy = jest.spyOn(MatterbridgeEndpoint.prototype, 'updateAttribute');
@@ -1,60 +1,43 @@
1
- export declare const destroyMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig>;
2
- export declare const onStartMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(reason?: string) => Promise<void>>;
3
- export declare const onConfigureMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => Promise<void>>;
4
- export declare const onShutdownMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(reason?: string) => Promise<void>>;
5
- export declare const onChangeLoggerLevelMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(logLevel: import("node-ansi-logger").LogLevel) => Promise<void>>;
6
- export declare const onActionMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(action: string, value?: string, id?: string, formData?: import("../matterbridgePlatform.js").PlatformConfig) => Promise<void>>;
7
- export declare const onConfigChangedMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(config: import("../matterbridgePlatform.js").PlatformConfig) => Promise<void>>;
8
- export declare const saveConfigMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(config: import("../matterbridgePlatform.js").PlatformConfig) => void>;
9
- export declare const getSchemaMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => Promise<import("../matterbridgePlatform.js").PlatformSchema | undefined>>;
10
- export declare const setSchemaMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(schema: import("../matterbridgePlatform.js").PlatformSchema) => void>;
11
- export declare const wssSendRestartRequiredMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(snackbar?: boolean, fixed?: boolean) => void>;
12
- export declare const wssSendSnackbarMessageMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(message: string, timeout?: number, severity?: 'error' | 'success' | 'info' | 'warning') => void>;
13
- export declare const sizeMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => number>;
14
- export declare const getDevicesMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint[]>;
15
- export declare const getDeviceByNameMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(deviceName: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
16
- export declare const getDeviceByUniqueIdMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(uniqueId: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
17
- export declare const getDeviceBySerialNumberMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serialNumber: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
18
- export declare const getDeviceByIdMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(id: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
19
- export declare const getDeviceByOriginalIdMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(originalId: string) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
20
- export declare const getDeviceByNumberMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(number: import("@matter/types").EndpointNumber | number) => import("../matterbridgeEndpoint.js").MatterbridgeEndpoint | undefined>;
21
- export declare const hasDeviceNameMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(deviceName: string) => boolean>;
22
- export declare const hasDeviceUniqueIdMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(deviceUniqueId: string) => boolean>;
23
- export declare const registerVirtualDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(name: string, type: 'light' | 'outlet' | 'switch' | 'mounted_switch', callback: () => Promise<void>) => Promise<boolean>>;
24
- export declare const registerDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
25
- export declare const unregisterDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
26
- export declare const unregisterAllDevicesMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(delay?: number) => Promise<void>>;
27
- export declare const saveSelectsMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig>;
28
- export declare const clearSelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => Promise<void>>;
29
- export declare const clearDeviceSelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serial: string) => Promise<void>>;
30
- export declare const clearEntitySelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(name: string) => Promise<void>>;
31
- export declare const setSelectDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serial: string, name: string, configUrl?: string, icon?: string, entities?: {
32
- name: string;
33
- description: string;
34
- icon?: string;
35
- }[]) => void>;
36
- export declare const getSelectDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serial: string) => {
37
- serial: string;
38
- name: string;
39
- configUrl?: string;
40
- icon?: string;
41
- entities?: {
42
- name: string;
43
- description: string;
44
- icon?: string;
45
- }[];
46
- } | undefined>;
47
- export declare const setSelectDeviceEntityMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serial: string, entityName: string, entityDescription: string, entityIcon?: string) => void>;
48
- export declare const getSelectDevicesMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => import("@matterbridge/types").ApiSelectDevice[]>;
49
- export declare const setSelectEntityMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(name: string, description: string, icon?: string) => void>;
50
- export declare const getSelectEntityMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(name: string) => {
51
- name: string;
52
- description: string;
53
- icon?: string | undefined;
54
- } | undefined>;
55
- export declare const getSelectEntitiesMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => import("@matterbridge/types").ApiSelectEntity[]>;
56
- export declare const verifyMatterbridgeVersionMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(requiredVersion: string, destroy?: boolean) => boolean>;
57
- export declare const validateDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: string | string[], log?: boolean) => boolean>;
58
- export declare const validateEntityMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: string, entity: string, log?: boolean) => boolean>;
59
- export declare const clearEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig>;
60
- export declare const checkEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("node-persist-manager").NodeStorage | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig>;
1
+ import { MatterbridgePlatform } from '../matterbridgePlatform.js';
2
+ export declare const destroyMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.destroy>;
3
+ export declare const onStartMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onStart>;
4
+ export declare const onConfigureMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onConfigure>;
5
+ export declare const onShutdownMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onShutdown>;
6
+ export declare const onChangeLoggerLevelMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onChangeLoggerLevel>;
7
+ export declare const onActionMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onAction>;
8
+ export declare const onConfigChangedMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.onConfigChanged>;
9
+ export declare const saveConfigMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.saveConfig>;
10
+ export declare const getSchemaMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getSchema>;
11
+ export declare const setSchemaMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.setSchema>;
12
+ export declare const wssSendRestartRequiredMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.wssSendRestartRequired>;
13
+ export declare const wssSendSnackbarMessageMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.wssSendSnackbarMessage>;
14
+ export declare const sizeMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.size>;
15
+ export declare const getDevicesMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDevices>;
16
+ export declare const getDeviceByNameMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceByName>;
17
+ export declare const getDeviceByUniqueIdMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceByUniqueId>;
18
+ export declare const getDeviceBySerialNumberMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceBySerialNumber>;
19
+ export declare const getDeviceByIdMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceById>;
20
+ export declare const getDeviceByOriginalIdMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceByOriginalId>;
21
+ export declare const getDeviceByNumberMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getDeviceByNumber>;
22
+ export declare const hasDeviceNameMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.hasDeviceName>;
23
+ export declare const hasDeviceUniqueIdMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.hasDeviceUniqueId>;
24
+ export declare const registerVirtualDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.registerVirtualDevice>;
25
+ export declare const registerDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.registerDevice>;
26
+ export declare const unregisterDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.unregisterDevice>;
27
+ export declare const unregisterAllDevicesMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.unregisterAllDevices>;
28
+ export declare const saveSelectsMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.saveSelects>;
29
+ export declare const clearSelectMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.clearSelect>;
30
+ export declare const clearDeviceSelectMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.clearDeviceSelect>;
31
+ export declare const clearEntitySelectMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.clearEntitySelect>;
32
+ export declare const setSelectDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.setSelectDevice>;
33
+ export declare const getSelectDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getSelectDevice>;
34
+ export declare const setSelectDeviceEntityMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.setSelectDeviceEntity>;
35
+ export declare const getSelectDevicesMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getSelectDevices>;
36
+ export declare const setSelectEntityMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.setSelectEntity>;
37
+ export declare const getSelectEntityMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getSelectEntity>;
38
+ export declare const getSelectEntitiesMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.getSelectEntities>;
39
+ export declare const verifyMatterbridgeVersionMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.verifyMatterbridgeVersion>;
40
+ export declare const validateDeviceMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.validateDevice>;
41
+ export declare const validateEntityMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.validateEntity>;
42
+ export declare const clearEndpointNumbersMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.clearEndpointNumbers>;
43
+ export declare const checkEndpointNumbersMatterbridgePlatformSpy: jest.SpiedFunction<typeof MatterbridgePlatform.prototype.checkEndpointNumbers>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { MatterbridgePlatform } from '../matterbridgePlatform.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const destroyMatterbridgePlatformSpy = jest.spyOn(MatterbridgePlatform.prototype, 'destroy');
4
4
  export const onStartMatterbridgePlatformSpy = jest.spyOn(MatterbridgePlatform.prototype, 'onStart');
5
5
  export const onConfigureMatterbridgePlatformSpy = jest.spyOn(MatterbridgePlatform.prototype, 'onConfigure');
@@ -1,4 +1,5 @@
1
- export declare const addBridgedEndpointMatterbridgeSpy: import("jest-mock").SpiedFunction<(pluginName: string, device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
2
- export declare const removeBridgedEndpointMatterbridgeSpy: import("jest-mock").SpiedFunction<(pluginName: string, device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
3
- export declare const removeAllBridgedEndpointsMatterbridgeSpy: import("jest-mock").SpiedFunction<(pluginName: string, delay?: number) => Promise<void>>;
4
- export declare const addVirtualEndpointMatterbridgeSpy: import("jest-mock").SpiedFunction<(pluginName: string, name: string, type: 'light' | 'outlet' | 'switch' | 'mounted_switch', callback: () => Promise<void>) => Promise<boolean>>;
1
+ import { Matterbridge } from '../matterbridge.js';
2
+ export declare const addBridgedEndpointMatterbridgeSpy: jest.SpiedFunction<typeof Matterbridge.prototype.addBridgedEndpoint>;
3
+ export declare const removeBridgedEndpointMatterbridgeSpy: jest.SpiedFunction<typeof Matterbridge.prototype.removeBridgedEndpoint>;
4
+ export declare const removeAllBridgedEndpointsMatterbridgeSpy: jest.SpiedFunction<typeof Matterbridge.prototype.removeAllBridgedEndpoints>;
5
+ export declare const addVirtualEndpointMatterbridgeSpy: jest.SpiedFunction<typeof Matterbridge.prototype.addVirtualEndpoint>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { Matterbridge } from '../matterbridge.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const addBridgedEndpointMatterbridgeSpy = jest.spyOn(Matterbridge.prototype, 'addBridgedEndpoint');
4
4
  export const removeBridgedEndpointMatterbridgeSpy = jest.spyOn(Matterbridge.prototype, 'removeBridgedEndpoint');
5
5
  export const removeAllBridgedEndpointsMatterbridgeSpy = jest.spyOn(Matterbridge.prototype, 'removeAllBridgedEndpoints');
@@ -1,47 +1,40 @@
1
- export declare const destroyPluginSpy: import("jest-mock").SpiedFunction<() => void>;
2
- export declare const checkDependenciesPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, unknown> & {
3
- name?: string;
4
- dependencies?: string[] | Record<string, string>;
5
- devDependencies?: string[] | Record<string, string>;
6
- peerDependencies?: string[] | Record<string, string>;
7
- optionalDependencies?: string[] | Record<string, string>;
8
- bundledDependencies?: string[] | Record<string, string>;
9
- bundleDependencies?: string[] | Record<string, string>;
10
- }) => boolean>;
11
- export declare const lengthPluginSpy: import("jest-mock").SpiedGetter<number>;
12
- export declare const sizePluginSpy: import("jest-mock").SpiedGetter<number>;
13
- export declare const hasPluginSpy: import("jest-mock").SpiedFunction<(name: string) => boolean>;
14
- export declare const getPluginSpy: import("jest-mock").SpiedFunction<(name: string) => import("../pluginManager.js").Plugin | undefined>;
15
- export declare const setPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin) => import("../pluginManager.js").Plugin>;
16
- export declare const clearPluginSpy: import("jest-mock").SpiedFunction<() => void>;
17
- export declare const arrayPluginSpy: import("jest-mock").SpiedFunction<() => import("../pluginManager.js").Plugin[]>;
18
- export declare const storagePluginArraySpy: import("jest-mock").SpiedFunction<() => import("@matterbridge/types").StoragePlugin[]>;
19
- export declare const apiPluginArraySpy: import("jest-mock").SpiedFunction<() => import("@matterbridge/types").ApiPlugin[]>;
20
- export declare const iteratorPluginSpy: import("jest-mock").SpiedFunction<() => MapIterator<import("../pluginManager.js").Plugin>>;
21
- export declare const forEachPluginSpy: import("jest-mock").SpiedFunction<(callback: (plugin: import("../pluginManager.js").Plugin) => Promise<void>) => Promise<void>>;
22
- export declare const logLevelPluginSpy: import("jest-mock").SpiedSetter<import("node-ansi-logger").LogLevel>;
23
- export declare const loadFromStoragePluginSpy: import("jest-mock").SpiedFunction<() => Promise<import("@matterbridge/types").StoragePlugin[]>>;
24
- export declare const saveToStoragePluginSpy: import("jest-mock").SpiedFunction<() => Promise<number>>;
25
- export declare const resolvePluginSpy: import("jest-mock").SpiedFunction<(nameOrPath: string) => Promise<string | null>>;
26
- export declare const installPluginSpy: import("jest-mock").SpiedFunction<(packageName: string) => void>;
27
- export declare const uninstallPluginSpy: import("jest-mock").SpiedFunction<(packageName: string) => void>;
28
- export declare const getAuthorPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, string | number | Record<string, string | number | object>>) => string>;
29
- export declare const getDescriptionPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, string | number | Record<string, string | number | object>>) => string>;
30
- export declare const getHomepagePluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, string | number | Record<string, string | number | object>>) => string | undefined>;
31
- export declare const getHelpPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, string | number | Record<string, string | number | object>>) => string | undefined>;
32
- export declare const getChangelogPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, string | number | Record<string, string | number | object>>) => string | undefined>;
33
- export declare const getFundingPluginSpy: import("jest-mock").SpiedFunction<(packageJson: Record<string, any>) => string | undefined>;
34
- export declare const parsePluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin | import("@matterbridge/types").PluginName) => Promise<Record<string, string | number | object> | null>>;
35
- export declare const addPluginSpy: import("jest-mock").SpiedFunction<(nameOrPath: string) => Promise<import("../pluginManager.js").Plugin | null>>;
36
- export declare const enablePluginSpy: import("jest-mock").SpiedFunction<(nameOrPath: string) => Promise<import("../pluginManager.js").Plugin | null>>;
37
- export declare const disablePluginSpy: import("jest-mock").SpiedFunction<(nameOrPath: string) => Promise<import("../pluginManager.js").Plugin | null>>;
38
- export declare const removePluginSpy: import("jest-mock").SpiedFunction<(nameOrPath: string) => Promise<import("../pluginManager.js").Plugin | null>>;
39
- export declare const loadPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin | import("@matterbridge/types").PluginName, start?: boolean, message?: string, configure?: boolean) => Promise<import("../matterbridgePlatform.js").MatterbridgePlatform | undefined>>;
40
- export declare const startPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin | import("@matterbridge/types").PluginName, message?: string, configure?: boolean) => Promise<import("../pluginManager.js").Plugin | undefined>>;
41
- export declare const configurePluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin | import("@matterbridge/types").PluginName) => Promise<import("../pluginManager.js").Plugin | undefined>>;
42
- export declare const shutdownPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin | import("@matterbridge/types").PluginName, reason?: string, removeAllDevices?: boolean, force?: boolean) => Promise<import("../pluginManager.js").Plugin | undefined>>;
43
- export declare const loadConfigPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin) => Promise<import("@matterbridge/types").PlatformConfig>>;
44
- export declare const saveConfigFromPluginPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin, restartRequired?: boolean) => Promise<void>>;
45
- export declare const saveConfigFromJsonPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin, config: import("@matterbridge/types").PlatformConfig, restartRequired?: boolean) => Promise<void>>;
46
- export declare const loadSchemaPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin) => Promise<import("@matterbridge/types").PlatformSchema>>;
47
- export declare const getDefaultSchemaPluginSpy: import("jest-mock").SpiedFunction<(plugin: import("../pluginManager.js").Plugin) => import("@matterbridge/types").PlatformSchema>;
1
+ import { PluginManager } from '../pluginManager.js';
2
+ export declare const destroyPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.destroy>;
3
+ export declare const checkDependenciesPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.checkDependencies>;
4
+ export declare const lengthPluginSpy: jest.SpiedGetter<typeof PluginManager.prototype.length>;
5
+ export declare const sizePluginSpy: jest.SpiedGetter<typeof PluginManager.prototype.size>;
6
+ export declare const hasPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.has>;
7
+ export declare const getPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.get>;
8
+ export declare const setPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.set>;
9
+ export declare const clearPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.clear>;
10
+ export declare const arrayPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.array>;
11
+ export declare const storagePluginArraySpy: jest.SpiedFunction<typeof PluginManager.prototype.storagePluginArray>;
12
+ export declare const apiPluginArraySpy: jest.SpiedFunction<typeof PluginManager.prototype.apiPluginArray>;
13
+ export declare const iteratorPluginSpy: jest.SpiedFunction<(typeof PluginManager.prototype)[typeof Symbol.iterator]>;
14
+ export declare const forEachPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.forEach>;
15
+ export declare const logLevelPluginSpy: jest.SpiedSetter<typeof PluginManager.prototype.logLevel>;
16
+ export declare const loadFromStoragePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.loadFromStorage>;
17
+ export declare const saveToStoragePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.saveToStorage>;
18
+ export declare const resolvePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.resolve>;
19
+ export declare const installPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.install>;
20
+ export declare const uninstallPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.uninstall>;
21
+ export declare const getAuthorPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getAuthor>;
22
+ export declare const getDescriptionPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getDescription>;
23
+ export declare const getHomepagePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getHomepage>;
24
+ export declare const getHelpPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getHelp>;
25
+ export declare const getChangelogPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getChangelog>;
26
+ export declare const getFundingPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getFunding>;
27
+ export declare const parsePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.parse>;
28
+ export declare const addPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.add>;
29
+ export declare const enablePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.enable>;
30
+ export declare const disablePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.disable>;
31
+ export declare const removePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.remove>;
32
+ export declare const loadPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.load>;
33
+ export declare const startPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.start>;
34
+ export declare const configurePluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.configure>;
35
+ export declare const shutdownPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.shutdown>;
36
+ export declare const loadConfigPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.loadConfig>;
37
+ export declare const saveConfigFromPluginPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.saveConfigFromPlugin>;
38
+ export declare const saveConfigFromJsonPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.saveConfigFromJson>;
39
+ export declare const loadSchemaPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.loadSchema>;
40
+ export declare const getDefaultSchemaPluginSpy: jest.SpiedFunction<typeof PluginManager.prototype.getDefaultSchema>;
@@ -1,5 +1,5 @@
1
- import { jest } from '@jest/globals';
2
1
  import { PluginManager } from '../pluginManager.js';
2
+ const { jest } = await import('@jest/globals');
3
3
  export const destroyPluginSpy = jest.spyOn(PluginManager.prototype, 'destroy');
4
4
  export const checkDependenciesPluginSpy = jest.spyOn(PluginManager.prototype, 'checkDependencies');
5
5
  export const lengthPluginSpy = jest.spyOn(PluginManager.prototype, 'length', 'get');
@@ -1,4 +1,3 @@
1
- import type { jest } from '@jest/globals';
2
1
  import { AnsiLogger } from 'node-ansi-logger';
3
2
  export declare const originalProcessArgv: readonly string[];
4
3
  export declare const originalProcessEnv: Readonly<Record<string, string | undefined>>;
@@ -62,67 +62,67 @@ export declare function setCluster(endpoint: MatterbridgeEndpoint, cluster: Beha
62
62
  export declare function getCluster(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, log?: AnsiLogger): Record<string, boolean | number | bigint | string | object | undefined | null> | undefined;
63
63
  export declare function triggerEvent(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, event: string, payload: Record<string, boolean | number | bigint | string | object | undefined | null>, log?: AnsiLogger): Promise<boolean>;
64
64
  export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType?: PowerSource.WiredCurrentType): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<PowerSource, {
65
+ wired: true;
65
66
  battery: false;
66
67
  rechargeable: false;
67
68
  replaceable: false;
68
- wired: true;
69
69
  }>, typeof MatterbridgePowerSourceServer>>;
70
70
  export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRemaining?: null | number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: null | number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<PowerSource, {
71
+ wired: false;
71
72
  battery: true;
72
73
  rechargeable: false;
73
74
  replaceable: false;
74
- wired: false;
75
75
  }>, typeof MatterbridgePowerSourceServer>>;
76
76
  export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(batPercentRemaining?: number | null, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number | null, batReplacementDescription?: string, batQuantity?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<PowerSource, {
77
+ wired: false;
77
78
  battery: true;
78
79
  rechargeable: false;
79
80
  replaceable: true;
80
- wired: false;
81
81
  }>, typeof MatterbridgePowerSourceServer>>;
82
82
  export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(batPercentRemaining?: number | null, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number | null, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<PowerSource, {
83
+ wired: false;
83
84
  battery: true;
84
85
  rechargeable: true;
85
86
  replaceable: false;
86
- wired: false;
87
87
  }>, typeof MatterbridgePowerSourceServer>>;
88
88
  export declare function getDefaultElectricalEnergyMeasurementClusterServer(energyImported?: number | bigint | null, energyExported?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<ElectricalEnergyMeasurement, {
89
- apparentEnergy: false;
90
- cumulativeEnergy: true;
91
- exportedEnergy: true;
92
89
  importedEnergy: true;
90
+ exportedEnergy: true;
91
+ cumulativeEnergy: true;
93
92
  periodicEnergy: false;
93
+ apparentEnergy: false;
94
94
  reactiveEnergy: false;
95
95
  }>, typeof ElectricalEnergyMeasurementServer>>;
96
96
  export declare function getDefaultElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<ElectricalPowerMeasurement, {
97
- alternatingCurrent: true;
98
97
  directCurrent: false;
99
- harmonics: false;
98
+ alternatingCurrent: true;
100
99
  polyphasePower: false;
100
+ harmonics: false;
101
101
  powerQuality: false;
102
102
  }>, typeof ElectricalPowerMeasurementServer>>;
103
103
  export declare function getApparentElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, apparentCurrent?: number | bigint | null, apparentPower?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<ElectricalPowerMeasurement, {
104
- alternatingCurrent: true;
105
104
  directCurrent: false;
106
- harmonics: false;
105
+ alternatingCurrent: true;
107
106
  polyphasePower: false;
107
+ harmonics: false;
108
108
  powerQuality: false;
109
109
  }>, typeof ElectricalPowerMeasurementServer>>;
110
110
  export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?: DeviceEnergyManagement.EsaType, esaCanGenerate?: boolean, esaState?: DeviceEnergyManagement.EsaState, absMinPower?: number, absMaxPower?: number): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<ClusterType.WithSupportedFeatures<DeviceEnergyManagement, {
111
- constraintBasedAdjustment: false;
112
- forecastAdjustment: false;
113
- pausable: false;
114
111
  powerAdjustment: true;
115
112
  powerForecastReporting: true;
116
- startTimeAdjustment: false;
117
113
  stateForecastReporting: false;
118
- }>, {
119
- constraintBasedAdjustment: false;
120
- forecastAdjustment: false;
114
+ startTimeAdjustment: false;
121
115
  pausable: false;
116
+ forecastAdjustment: false;
117
+ constraintBasedAdjustment: false;
118
+ }>, {
122
119
  powerAdjustment: true;
123
120
  powerForecastReporting: true;
124
- startTimeAdjustment: false;
125
121
  stateForecastReporting: false;
122
+ startTimeAdjustment: false;
123
+ pausable: false;
124
+ forecastAdjustment: false;
125
+ constraintBasedAdjustment: false;
126
126
  }>, typeof MatterbridgeDeviceEnergyManagementServer>>;
127
127
  export declare function getDefaultDeviceEnergyManagementModeClusterServer(currentMode?: number, supportedModes?: DeviceEnergyManagementMode.ModeOption[]): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<DeviceEnergyManagementMode, {
128
128
  onOff: false;
@@ -134,13 +134,13 @@ export declare function getDefaultPressureMeasurementClusterServer(measuredValue
134
134
  export declare function getDefaultIlluminanceMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<IlluminanceMeasurement, typeof ClusterBehavior>>;
135
135
  export declare function getDefaultFlowMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<FlowMeasurement, typeof ClusterBehavior>>;
136
136
  export declare function getDefaultOccupancySensingClusterServer(occupied?: boolean, holdTime?: number, holdTimeMin?: number, holdTimeMax?: number): Partial<import("@matter/node").ClusterState.Type<ClusterType.WithSupportedFeatures<OccupancySensing, {
137
- activeInfrared: false;
138
137
  other: false;
139
138
  passiveInfrared: true;
139
+ ultrasonic: false;
140
140
  physicalContact: false;
141
+ activeInfrared: false;
141
142
  radar: false;
142
143
  rfSensing: false;
143
- ultrasonic: false;
144
144
  vision: false;
145
145
  }>, typeof OccupancySensingServer>>;
146
146
  export declare function getDefaultSoilMeasurementClusterServer(soilMoistureMeasuredValue?: number | null, soilMoistureMeasurementLimits?: MeasurementAccuracy): Partial<import("@matter/node").ClusterState.Type<SoilMeasurement, typeof ClusterBehavior>>;
@@ -203,9 +203,8 @@ export async function internalFor(endpoint, cluster) {
203
203
  return undefined;
204
204
  }
205
205
  const supportedBehavior = endpoint.behaviors.supported[lowercaseFirstLetter(behaviorId)];
206
- if (!supportedBehavior) {
206
+ if (!supportedBehavior)
207
207
  return undefined;
208
- }
209
208
  return endpoint.act(() => endpoint.behaviors.internalsOf(supportedBehavior));
210
209
  }
211
210
  export function optionsFor(type, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.9.1-dev-20260614-89d7aeb",
3
+ "version": "3.9.1-dev-20260614-18d1a2e",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -130,10 +130,10 @@
130
130
  ],
131
131
  "dependencies": {
132
132
  "@matter/main": "0.17.2",
133
- "@matterbridge/dgram": "3.9.1-dev-20260614-89d7aeb",
134
- "@matterbridge/thread": "3.9.1-dev-20260614-89d7aeb",
135
- "@matterbridge/types": "3.9.1-dev-20260614-89d7aeb",
136
- "@matterbridge/utils": "3.9.1-dev-20260614-89d7aeb",
133
+ "@matterbridge/dgram": "3.9.1-dev-20260614-18d1a2e",
134
+ "@matterbridge/thread": "3.9.1-dev-20260614-18d1a2e",
135
+ "@matterbridge/types": "3.9.1-dev-20260614-18d1a2e",
136
+ "@matterbridge/utils": "3.9.1-dev-20260614-18d1a2e",
137
137
  "escape-html": "1.0.3",
138
138
  "express": "5.2.1",
139
139
  "express-rate-limit": "8.5.2",