@matterbridge/core 3.9.0 → 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.
- package/dist/backend.js +2 -2
- package/dist/backendExpress.d.ts +1 -1
- package/dist/backendWsServer.d.ts +1 -1
- package/dist/behaviors/activatedCarbonFilterMonitoringServer.d.ts +1 -1
- package/dist/behaviors/bindingServer.d.ts +3 -3
- package/dist/behaviors/hepaFilterMonitoringServer.d.ts +1 -1
- package/dist/behaviors/identifyServer.d.ts +1 -1
- package/dist/behaviors/levelControlServer.d.ts +1 -1
- package/dist/behaviors/matterbridgeServer.d.ts +2 -2
- package/dist/behaviors/modeSelectServer.d.ts +1 -1
- package/dist/behaviors/operationalStateServer.d.ts +1 -1
- package/dist/behaviors/serviceAreaServer.d.ts +1 -1
- package/dist/behaviors/windowCoveringServer.d.ts +1 -1
- package/dist/cli.js +6 -6
- package/dist/clusters/closure-control.d.ts +3 -3
- package/dist/clusters/closure-dimension.d.ts +3 -3
- package/dist/clusters/soil-measurement.d.ts +2 -2
- package/dist/devices/basicVideoPlayer.js +3 -3
- package/dist/devices/cooktop.d.ts +1 -1
- package/dist/devices/dishwasher.d.ts +1 -1
- package/dist/devices/dishwasher.js +1 -1
- package/dist/devices/evse.d.ts +1 -1
- package/dist/devices/irrigationSystem.d.ts +1 -1
- package/dist/devices/laundryDryer.d.ts +1 -1
- package/dist/devices/laundryWasher.d.ts +1 -1
- package/dist/devices/laundryWasher.js +1 -1
- package/dist/devices/oven.d.ts +2 -2
- package/dist/devices/refrigerator.d.ts +2 -2
- package/dist/devices/roboticVacuumCleaner.d.ts +1 -1
- package/dist/devices/roboticVacuumCleaner.js +1 -1
- package/dist/devices/soilSensor.d.ts +1 -1
- package/dist/devices/solarPower.d.ts +1 -1
- package/dist/devices/temperatureControl.d.ts +1 -1
- package/dist/frontend.d.ts +1 -1
- package/dist/frontend.js +16 -17
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.js +0 -10
- package/dist/jestutils/jestBroadcastServerSpy.d.ts +13 -12
- package/dist/jestutils/jestBroadcastServerSpy.js +1 -1
- package/dist/jestutils/jestDeviceManagerSpy.d.ts +14 -13
- package/dist/jestutils/jestDeviceManagerSpy.js +1 -1
- package/dist/jestutils/jestFrontendSpy.d.ts +7 -9
- package/dist/jestutils/jestFrontendSpy.js +1 -1
- package/dist/jestutils/jestMatterTest.d.ts +5 -5
- package/dist/jestutils/jestMatterTest.js +4 -4
- package/dist/jestutils/jestMatterbridgeEndpointSpy.d.ts +6 -54
- package/dist/jestutils/jestMatterbridgeEndpointSpy.js +1 -1
- package/dist/jestutils/jestMatterbridgePlatformSpy.d.ts +43 -60
- package/dist/jestutils/jestMatterbridgePlatformSpy.js +1 -1
- package/dist/jestutils/jestMatterbridgeSpy.d.ts +5 -4
- package/dist/jestutils/jestMatterbridgeSpy.js +1 -1
- package/dist/jestutils/jestMatterbridgeTest.d.ts +3 -3
- package/dist/jestutils/jestMatterbridgeTest.js +1 -1
- package/dist/jestutils/jestPluginManagerSpy.d.ts +40 -47
- package/dist/jestutils/jestPluginManagerSpy.js +1 -1
- package/dist/jestutils/jestSetupTest.d.ts +0 -1
- package/dist/jestutils/logKeepAlives.d.ts +1 -1
- package/dist/jestutils/matterRequest.d.ts +1 -1
- package/dist/matterbridge.d.ts +6 -6
- package/dist/matterbridge.js +20 -21
- package/dist/matterbridgeAccessoryPlatform.d.ts +1 -1
- package/dist/matterbridgeDeviceTypes.d.ts +1 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +1 -1
- package/dist/matterbridgeEndpoint.d.ts +10 -10
- package/dist/matterbridgeEndpoint.js +4 -4
- package/dist/matterbridgeEndpointCommandHandler.d.ts +39 -39
- package/dist/matterbridgeEndpointHelpers.d.ts +7 -7
- package/dist/matterbridgeEndpointHelpers.js +2 -3
- package/dist/matterbridgeEndpointTypes.d.ts +2 -2
- package/dist/matterbridgeFactory.d.ts +2 -2
- package/dist/matterbridgePlatform.d.ts +4 -4
- package/dist/pluginManager.d.ts +1 -1
- package/dist/pluginManager.js +3 -3
- package/package.json +5 -5
|
@@ -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
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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');
|
|
@@ -5,7 +5,7 @@ import { AggregatorEndpoint } from '@matter/node/endpoints';
|
|
|
5
5
|
import { DeviceTypeId } from '@matter/types/datatype';
|
|
6
6
|
import { type PlatformMatterbridge } from '@matterbridge/types';
|
|
7
7
|
export declare let environment: Environment;
|
|
8
|
-
export declare let server: ServerNode
|
|
8
|
+
export declare let server: ServerNode;
|
|
9
9
|
export declare let aggregator: Endpoint<AggregatorEndpoint>;
|
|
10
10
|
export declare function createTestEnvironment(): Promise<Environment>;
|
|
11
11
|
export declare function destroyTestEnvironment(): Promise<void>;
|
|
@@ -13,9 +13,9 @@ export declare function getPlatformMatterbridge(): PlatformMatterbridge;
|
|
|
13
13
|
export declare function flushAllEndpointNumberPersistence(targetServer: ServerNode, rounds?: number, ticks?: number, microTurns?: number, pause?: number): Promise<void>;
|
|
14
14
|
export declare function assertAllEndpointNumbersPersisted(targetServer: ServerNode): Promise<number>;
|
|
15
15
|
export declare function closeServerNodeStores(targetServer?: ServerNode): Promise<void>;
|
|
16
|
-
export declare function createServerNode(port: number, deviceType?: DeviceTypeId, ticks?: number, microTurns?: number, pause?: number): Promise<[ServerNode
|
|
17
|
-
export declare function startServerNode(ticks?: number, microTurns?: number, pause?: number): Promise<[ServerNode
|
|
16
|
+
export declare function createServerNode(port: number, deviceType?: DeviceTypeId, ticks?: number, microTurns?: number, pause?: number): Promise<[ServerNode, Endpoint<AggregatorEndpoint>]>;
|
|
17
|
+
export declare function startServerNode(ticks?: number, microTurns?: number, pause?: number): Promise<[ServerNode, Endpoint<AggregatorEndpoint>]>;
|
|
18
18
|
export declare function stopServerNode(ticks?: number, microTurns?: number, pause?: number): Promise<void>;
|
|
19
19
|
export declare function flushServerNode(ticks?: number, microTurns?: number, pause?: number): Promise<void>;
|
|
20
|
-
export declare function addDevice(owner: ServerNode
|
|
21
|
-
export declare function deleteDevice(owner: ServerNode
|
|
20
|
+
export declare function addDevice(owner: ServerNode | Endpoint<AggregatorEndpoint>, device: Endpoint, rounds?: number, pause?: number): Promise<boolean>;
|
|
21
|
+
export declare function deleteDevice(owner: ServerNode | Endpoint<AggregatorEndpoint>, device: Endpoint, rounds?: number, pause?: number): Promise<boolean>;
|
|
@@ -56,10 +56,10 @@ export function getPlatformMatterbridge() {
|
|
|
56
56
|
matterbridgePluginDirectory: path.join(HOMEDIR, 'Matterbridge'),
|
|
57
57
|
matterbridgeCertDirectory: path.join(HOMEDIR, '.mattercert'),
|
|
58
58
|
globalModulesDirectory: path.join(HOMEDIR, 'node_modules'),
|
|
59
|
-
matterbridgeVersion: '3.9.
|
|
60
|
-
matterbridgeLatestVersion: '3.9.
|
|
61
|
-
matterbridgeDevVersion: '3.9.
|
|
62
|
-
frontendVersion: '3.9.
|
|
59
|
+
matterbridgeVersion: '3.9.1',
|
|
60
|
+
matterbridgeLatestVersion: '3.9.1',
|
|
61
|
+
matterbridgeDevVersion: '3.9.1',
|
|
62
|
+
frontendVersion: '3.9.1',
|
|
63
63
|
bridgeMode: '',
|
|
64
64
|
restartMode: '',
|
|
65
65
|
virtualMode: 'mounted_switch',
|
|
@@ -1,55 +1,7 @@
|
|
|
1
1
|
import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
|
|
2
|
-
export declare const setClusterMatterbridgeEndpointSpy:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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: import("@matter/node").Behavior.StateOf<T>[A], oldValue: import("@matter/node").Behavior.StateOf<T>[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
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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 | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | import("node-persist-manager").NodeStorage>;
|
|
60
|
-
export declare const checkEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | Promise<void> | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | import("node-persist-manager").NodeStorage>;
|
|
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
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { Endpoint, ServerNode } from '@matter/node';
|
|
2
|
-
import { AggregatorEndpoint } from '@matter/node/endpoints';
|
|
1
|
+
import { type Endpoint, type ServerNode } from '@matter/node';
|
|
2
|
+
import { type AggregatorEndpoint } from '@matter/node/endpoints';
|
|
3
3
|
import type { DeviceManager } from '../deviceManager.js';
|
|
4
4
|
import type { Frontend } from '../frontend.js';
|
|
5
5
|
import { Matterbridge } from '../matterbridge.js';
|
|
@@ -12,7 +12,7 @@ export declare let devices: DeviceManager;
|
|
|
12
12
|
export declare function startMatterbridge(bridgeMode?: 'bridge' | 'childbridge' | 'controller' | '', frontendPort?: number, matterPort?: number, passcode?: number, discriminator?: number, pluginSize?: number, devicesSize?: number): Promise<Matterbridge>;
|
|
13
13
|
export declare function stopMatterbridge(cleanupPause?: number, destroyPause?: number, closeMdns?: boolean, closeRuntime?: boolean): Promise<void>;
|
|
14
14
|
export declare function createMatterbridgeEnvironment(): Promise<Matterbridge>;
|
|
15
|
-
export declare function startMatterbridgeEnvironment(port?: number, createOnly?: boolean): Promise<[ServerNode
|
|
15
|
+
export declare function startMatterbridgeEnvironment(port?: number, createOnly?: boolean): Promise<[ServerNode, Endpoint<AggregatorEndpoint>]>;
|
|
16
16
|
export declare function addMatterbridgePlatform(platform: MatterbridgePlatform, name?: string): void;
|
|
17
17
|
export declare function stopMatterbridgeEnvironment(createOnly?: boolean): Promise<void>;
|
|
18
18
|
export declare function destroyMatterbridgeEnvironment(cleanupPause?: number, destroyPause?: number, closeMdns?: boolean, closeRuntime?: boolean): Promise<void>;
|
|
@@ -109,7 +109,7 @@ export async function createMatterbridgeEnvironment() {
|
|
|
109
109
|
matterbridge = await Matterbridge.loadInstance(false);
|
|
110
110
|
expect(matterbridge).toBeDefined();
|
|
111
111
|
expect(matterbridge).toBeInstanceOf(Matterbridge);
|
|
112
|
-
matterbridge.matterbridgeVersion = '3.9.
|
|
112
|
+
matterbridge.matterbridgeVersion = '3.9.1';
|
|
113
113
|
matterbridge.bridgeMode = 'bridge';
|
|
114
114
|
matterbridge.rootDirectory = path.join(HOMEDIR);
|
|
115
115
|
matterbridge.homeDirectory = path.join(HOMEDIR);
|
|
@@ -1,47 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
34
|
-
export declare const
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
38
|
-
export declare const
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { AnsiLogger } from 'node-ansi-logger';
|
|
1
|
+
import { type AnsiLogger } from 'node-ansi-logger';
|
|
2
2
|
export declare function logKeepAlives(log?: AnsiLogger): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorControl } from '@matter/types/clusters/color-control';
|
|
2
|
-
import { LevelControl } from '@matter/types/clusters/level-control';
|
|
2
|
+
import { type LevelControl } from '@matter/types/clusters/level-control';
|
|
3
3
|
export declare function getMoveToLevelRequest(level: number, transitionTime: number, executeIfOff: boolean): LevelControl.MoveToLevelRequest;
|
|
4
4
|
export declare function getMoveToColorTemperatureRequest(colorTemperatureMireds: number, transitionTime: number, executeIfOff: boolean): ColorControl.MoveToColorTemperatureRequest;
|
|
5
5
|
export declare function getMoveToHueRequest(hue: number, transitionTime: number, executeIfOff: boolean): ColorControl.MoveToHueRequest;
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@matter/nodejs';
|
|
2
2
|
import EventEmitter from 'node:events';
|
|
3
|
-
import { StorageContext, StorageManager, StorageService } from '@matter/general';
|
|
3
|
+
import { type StorageContext, type StorageManager, StorageService } from '@matter/general';
|
|
4
4
|
import { Endpoint, ServerNode } from '@matter/node';
|
|
5
5
|
import { AggregatorEndpoint } from '@matter/node/endpoints/aggregator';
|
|
6
|
-
import { DeviceCertification } from '@matter/protocol';
|
|
6
|
+
import { type DeviceCertification } from '@matter/protocol';
|
|
7
7
|
import { DeviceTypeId, VendorId } from '@matter/types/datatype';
|
|
8
8
|
import type { ApiMatter, MaybePromise, PlatformMatterbridge, SharedMatterbridge, SystemInformation } from '@matterbridge/types';
|
|
9
9
|
import { AnsiLogger, LogLevel } from 'node-ansi-logger';
|
|
10
|
-
import { NodeStorage, NodeStorageManager } from 'node-persist-manager';
|
|
10
|
+
import { type NodeStorage, NodeStorageManager } from 'node-persist-manager';
|
|
11
11
|
import { DeviceManager } from './deviceManager.js';
|
|
12
12
|
import { Frontend } from './frontend.js';
|
|
13
13
|
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
@@ -96,7 +96,7 @@ export declare class Matterbridge extends EventEmitter<MatterbridgeEvents> {
|
|
|
96
96
|
discriminator: number | undefined;
|
|
97
97
|
initialDiscriminator: number | undefined;
|
|
98
98
|
certification: DeviceCertification.Configuration | undefined;
|
|
99
|
-
serverNode: ServerNode
|
|
99
|
+
serverNode: ServerNode | undefined;
|
|
100
100
|
aggregatorNode: Endpoint<AggregatorEndpoint> | undefined;
|
|
101
101
|
aggregatorVendorId: VendorId;
|
|
102
102
|
aggregatorVendorName: string;
|
|
@@ -105,7 +105,7 @@ export declare class Matterbridge extends EventEmitter<MatterbridgeEvents> {
|
|
|
105
105
|
aggregatorDeviceType: DeviceTypeId;
|
|
106
106
|
aggregatorSerialNumber: string | undefined;
|
|
107
107
|
aggregatorUniqueId: string | undefined;
|
|
108
|
-
controllerNode: ServerNode
|
|
108
|
+
controllerNode: ServerNode | undefined;
|
|
109
109
|
controllerVendorId: VendorId;
|
|
110
110
|
controllerVendorName: string;
|
|
111
111
|
controllerProductId: number;
|
|
@@ -142,7 +142,7 @@ export declare class Matterbridge extends EventEmitter<MatterbridgeEvents> {
|
|
|
142
142
|
private stopMatterStorage;
|
|
143
143
|
private createServerNodeContext;
|
|
144
144
|
private createServerNode;
|
|
145
|
-
getServerNodeData(serverNode: ServerNode
|
|
145
|
+
getServerNodeData(serverNode: ServerNode): ApiMatter;
|
|
146
146
|
private startServerNode;
|
|
147
147
|
private stopServerNode;
|
|
148
148
|
private createAggregatorNode;
|