@zwave-js/cc 15.15.2 → 15.16.0
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/build/cjs/cc/BatteryCC.js +4 -0
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC.d.ts +6 -0
- package/build/cjs/cc/ConfigurationCC.js +49 -1
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +2 -2
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +4 -4
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +4 -4
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +3 -3
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/Security2CC.d.ts +14 -14
- package/build/cjs/cc/Security2CC.js.map +2 -2
- package/build/cjs/cc/SecurityCC.d.ts +10 -10
- package/build/cjs/cc/SecurityCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +6 -6
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/TransportServiceCC.d.ts +7 -7
- package/build/cjs/cc/TransportServiceCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC.d.ts +6 -6
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.js.map +2 -2
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +3 -3
- package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
- package/build/cjs/lib/CommandClass.d.ts +4 -4
- package/build/cjs/lib/CommandClass.js.map +2 -2
- package/build/cjs/lib/NotificationEventPayload.d.ts +2 -1
- package/build/cjs/lib/NotificationEventPayload.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.d.ts +12 -12
- package/build/cjs/lib/Security2/Extension.js.map +2 -2
- package/build/cjs/lib/_Types.d.ts +2 -1
- package/build/cjs/lib/_Types.js.map +2 -2
- package/build/cjs/lib/serializers.d.ts +4 -4
- package/build/cjs/lib/serializers.js.map +2 -2
- package/build/cjs/lib/traits.d.ts +5 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +3 -0
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +6 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +62 -1
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +2 -2
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +4 -4
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +4 -4
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +3 -3
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/Security2CC.d.ts +14 -14
- package/build/esm/cc/Security2CC.d.ts.map +1 -1
- package/build/esm/cc/Security2CC.js +1 -1
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.d.ts +10 -10
- package/build/esm/cc/SecurityCC.d.ts.map +1 -1
- package/build/esm/cc/SecurityCC.js +1 -1
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts +6 -6
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +1 -1
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.d.ts +7 -7
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +6 -6
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +1 -1
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.d.ts +3 -3
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/lib/CommandClass.d.ts +4 -4
- package/build/esm/lib/CommandClass.d.ts.map +1 -1
- package/build/esm/lib/CommandClass.js.map +1 -1
- package/build/esm/lib/NotificationEventPayload.d.ts +2 -1
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -1
- package/build/esm/lib/NotificationEventPayload.js.map +1 -1
- package/build/esm/lib/Security2/Extension.d.ts +12 -12
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
- package/build/esm/lib/Security2/Extension.js +1 -1
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/build/esm/lib/_Types.d.ts +2 -1
- package/build/esm/lib/_Types.d.ts.map +1 -1
- package/build/esm/lib/_Types.js.map +1 -1
- package/build/esm/lib/serializers.d.ts +4 -4
- package/build/esm/lib/serializers.d.ts.map +1 -1
- package/build/esm/lib/serializers.js.map +1 -1
- package/build/esm/lib/traits.d.ts +5 -0
- package/build/esm/lib/traits.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { CCEncodingContext, CCParsingContext } from "@zwave-js/cc";
|
|
2
2
|
import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, SecurityClass, type SecurityManagers, type WithAddress } from "@zwave-js/core";
|
|
3
|
-
import { Bytes } from "@zwave-js/shared";
|
|
3
|
+
import { Bytes, type BytesView } from "@zwave-js/shared";
|
|
4
4
|
import { CCAPI } from "../lib/API.js";
|
|
5
5
|
import { type CCRaw, CommandClass, type InterviewContext } from "../lib/CommandClass.js";
|
|
6
6
|
import { Security2Extension } from "../lib/Security2/Extension.js";
|
|
7
7
|
import { ECDHProfiles, KEXFailType, KEXSchemes } from "../lib/Security2/shared.js";
|
|
8
8
|
import { Security2Command } from "../lib/_Types.js";
|
|
9
9
|
export interface DecryptionResult {
|
|
10
|
-
plaintext:
|
|
10
|
+
plaintext: BytesView;
|
|
11
11
|
authOK: boolean;
|
|
12
|
-
key?:
|
|
13
|
-
iv?:
|
|
12
|
+
key?: BytesView;
|
|
13
|
+
iv?: BytesView;
|
|
14
14
|
securityClass: SecurityClass | undefined;
|
|
15
15
|
}
|
|
16
16
|
export declare class Security2CCAPI extends CCAPI {
|
|
@@ -23,7 +23,7 @@ export declare class Security2CCAPI extends CCAPI {
|
|
|
23
23
|
/** Notifies the target node that the MPAN state is out of sync */
|
|
24
24
|
sendMOS(): Promise<boolean>;
|
|
25
25
|
/** Sends the given MPAN to the node */
|
|
26
|
-
sendMPAN(groupId: number, innerMPANState:
|
|
26
|
+
sendMPAN(groupId: number, innerMPANState: BytesView): Promise<boolean>;
|
|
27
27
|
/**
|
|
28
28
|
* Queries the securely supported commands for the current security class
|
|
29
29
|
* @param securityClass Can be used to overwrite the security class to use. If this doesn't match the current one, new nonces will need to be exchanged.
|
|
@@ -41,9 +41,9 @@ export declare class Security2CCAPI extends CCAPI {
|
|
|
41
41
|
confirmGrantedKeys(params: Omit<Security2CCKEXSetOptions, "echo">): Promise<Security2CCKEXReport | Security2CCKEXFail | undefined>;
|
|
42
42
|
/** Notifies the other node that the ongoing key exchange was aborted */
|
|
43
43
|
abortKeyExchange(failType: KEXFailType): Promise<void>;
|
|
44
|
-
sendPublicKey(publicKey:
|
|
44
|
+
sendPublicKey(publicKey: BytesView, includingNode?: boolean): Promise<void>;
|
|
45
45
|
requestNetworkKey(securityClass: SecurityClass): Promise<void>;
|
|
46
|
-
sendNetworkKey(securityClass: SecurityClass, networkKey:
|
|
46
|
+
sendNetworkKey(securityClass: SecurityClass, networkKey: BytesView): Promise<void>;
|
|
47
47
|
verifyNetworkKey(): Promise<void>;
|
|
48
48
|
confirmKeyVerification(): Promise<void>;
|
|
49
49
|
endKeyExchange(): Promise<void>;
|
|
@@ -94,7 +94,7 @@ export declare class Security2CCMessageEncapsulation extends Security2CC {
|
|
|
94
94
|
prepareRetransmission(): void;
|
|
95
95
|
hasMOSExtension(): boolean;
|
|
96
96
|
/** Returns the Sender's Entropy Input if this command contains an SPAN extension */
|
|
97
|
-
getSenderEI():
|
|
97
|
+
getSenderEI(): BytesView | undefined;
|
|
98
98
|
/** Returns the multicast group ID if this command contains an MGRP extension */
|
|
99
99
|
getMulticastGroupId(): number | undefined;
|
|
100
100
|
private maybeAddSPANExtension;
|
|
@@ -107,7 +107,7 @@ export type Security2CCNonceReportOptions = {
|
|
|
107
107
|
} & ({
|
|
108
108
|
MOS: boolean;
|
|
109
109
|
SOS: true;
|
|
110
|
-
receiverEI:
|
|
110
|
+
receiverEI: BytesView;
|
|
111
111
|
} | {
|
|
112
112
|
MOS: true;
|
|
113
113
|
SOS: false;
|
|
@@ -120,7 +120,7 @@ export declare class Security2CCNonceReport extends Security2CC {
|
|
|
120
120
|
private ensureSequenceNumber;
|
|
121
121
|
readonly SOS: boolean;
|
|
122
122
|
readonly MOS: boolean;
|
|
123
|
-
readonly receiverEI?:
|
|
123
|
+
readonly receiverEI?: BytesView;
|
|
124
124
|
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
125
125
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
126
126
|
}
|
|
@@ -189,25 +189,25 @@ export declare class Security2CCKEXFail extends Security2CC {
|
|
|
189
189
|
}
|
|
190
190
|
export interface Security2CCPublicKeyReportOptions {
|
|
191
191
|
includingNode: boolean;
|
|
192
|
-
publicKey:
|
|
192
|
+
publicKey: BytesView;
|
|
193
193
|
}
|
|
194
194
|
export declare class Security2CCPublicKeyReport extends Security2CC {
|
|
195
195
|
constructor(options: WithAddress<Security2CCPublicKeyReportOptions>);
|
|
196
196
|
static from(raw: CCRaw, ctx: CCParsingContext): Security2CCPublicKeyReport;
|
|
197
197
|
includingNode: boolean;
|
|
198
|
-
publicKey:
|
|
198
|
+
publicKey: BytesView;
|
|
199
199
|
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
200
200
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
201
201
|
}
|
|
202
202
|
export interface Security2CCNetworkKeyReportOptions {
|
|
203
203
|
grantedKey: SecurityClass;
|
|
204
|
-
networkKey:
|
|
204
|
+
networkKey: BytesView;
|
|
205
205
|
}
|
|
206
206
|
export declare class Security2CCNetworkKeyReport extends Security2CC {
|
|
207
207
|
constructor(options: WithAddress<Security2CCNetworkKeyReportOptions>);
|
|
208
208
|
static from(raw: CCRaw, ctx: CCParsingContext): Security2CCNetworkKeyReport;
|
|
209
209
|
grantedKey: SecurityClass;
|
|
210
|
-
networkKey:
|
|
210
|
+
networkKey: BytesView;
|
|
211
211
|
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
212
212
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
213
213
|
}
|