diff --git a/packages/cc/src/cc/AlarmSensorCC.ts b/packages/cc/src/cc/AlarmSensorCC.ts index 0a19266e565e..9fa11bececc4 100644 --- a/packages/cc/src/cc/AlarmSensorCC.ts +++ b/packages/cc/src/cc/AlarmSensorCC.ts @@ -386,7 +386,8 @@ function testResponseForAlarmSensorGet( ); } -interface AlarmSensorCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface AlarmSensorCCGetOptions extends CCCommandOptions { sensorType?: AlarmSensorType; } diff --git a/packages/cc/src/cc/AssociationCC.ts b/packages/cc/src/cc/AssociationCC.ts index 913154c08ee6..1553b86ce627 100644 --- a/packages/cc/src/cc/AssociationCC.ts +++ b/packages/cc/src/cc/AssociationCC.ts @@ -430,7 +430,8 @@ currently assigned nodes: ${group.nodeIds.map(String).join(", ")}`; } } -interface AssociationCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface AssociationCCSetOptions extends CCCommandOptions { groupId: number; nodeIds: number[]; } @@ -487,7 +488,8 @@ export class AssociationCCSet extends AssociationCC { } } -interface AssociationCCRemoveOptions { +// @publicAPI +export interface AssociationCCRemoveOptions { /** The group from which to remove the nodes. If none is specified, the nodes will be removed from all nodes. */ groupId?: number; /** The nodes to remove. If none are specified, ALL nodes will be removed. */ @@ -559,6 +561,7 @@ export class AssociationCCRemove extends AssociationCC { } } +// @publicAPI export interface AssociationCCReportSpecificOptions { groupId: number; maxNodes: number; @@ -648,7 +651,8 @@ export class AssociationCCReport extends AssociationCC { } } -interface AssociationCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface AssociationCCGetOptions extends CCCommandOptions { groupId: number; } @@ -689,6 +693,7 @@ export class AssociationCCGet extends AssociationCC { } } +// @publicAPI export interface AssociationCCSupportedGroupingsReportOptions extends CCCommandOptions { diff --git a/packages/cc/src/cc/AssociationGroupInfoCC.ts b/packages/cc/src/cc/AssociationGroupInfoCC.ts index f542f80438a3..2ad46bf22883 100644 --- a/packages/cc/src/cc/AssociationGroupInfoCC.ts +++ b/packages/cc/src/cc/AssociationGroupInfoCC.ts @@ -452,6 +452,7 @@ profile: ${ } } +// @publicAPI export interface AssociationGroupInfoCCNameReportOptions extends CCCommandOptions { @@ -521,7 +522,8 @@ export class AssociationGroupInfoCCNameReport extends AssociationGroupInfoCC { } } -interface AssociationGroupInfoCCNameGetOptions extends CCCommandOptions { +// @publicAPI +export interface AssociationGroupInfoCCNameGetOptions extends CCCommandOptions { groupId: number; } @@ -565,6 +567,7 @@ export interface AssociationGroupInfo { eventCode: number; } +// @publicAPI export interface AssociationGroupInfoCCInfoReportSpecificOptions { isListMode: boolean; hasDynamicInfo: boolean; @@ -675,7 +678,8 @@ export class AssociationGroupInfoCCInfoReport extends AssociationGroupInfoCC { } } -type AssociationGroupInfoCCInfoGetOptions = +// @publicAPI +export type AssociationGroupInfoCCInfoGetOptions = & CCCommandOptions & { refreshCache: boolean; @@ -745,6 +749,7 @@ export class AssociationGroupInfoCCInfoGet extends AssociationGroupInfoCC { } } +// @publicAPI export interface AssociationGroupInfoCCCommandListReportOptions extends CCCommandOptions { @@ -836,7 +841,10 @@ export class AssociationGroupInfoCCCommandListReport } } -interface AssociationGroupInfoCCCommandListGetOptions extends CCCommandOptions { +// @publicAPI +export interface AssociationGroupInfoCCCommandListGetOptions + extends CCCommandOptions +{ allowCache: boolean; groupId: number; } diff --git a/packages/cc/src/cc/BarrierOperatorCC.ts b/packages/cc/src/cc/BarrierOperatorCC.ts index 634fc2c14fdd..88f084149722 100644 --- a/packages/cc/src/cc/BarrierOperatorCC.ts +++ b/packages/cc/src/cc/BarrierOperatorCC.ts @@ -509,7 +509,8 @@ export class BarrierOperatorCC extends CommandClass { } } -interface BarrierOperatorCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface BarrierOperatorCCSetOptions extends CCCommandOptions { targetState: BarrierState.Open | BarrierState.Closed; } @@ -646,7 +647,10 @@ export class BarrierOperatorCCSignalingCapabilitiesGet extends BarrierOperatorCC {} -interface BarrierOperatorCCEventSignalingSetOptions extends CCCommandOptions { +// @publicAPI +export interface BarrierOperatorCCEventSignalingSetOptions + extends CCCommandOptions +{ subsystemType: SubsystemType; subsystemState: SubsystemState; } @@ -743,7 +747,10 @@ export class BarrierOperatorCCEventSignalingReport extends BarrierOperatorCC { } } -interface BarrierOperatorCCEventSignalingGetOptions extends CCCommandOptions { +// @publicAPI +export interface BarrierOperatorCCEventSignalingGetOptions + extends CCCommandOptions +{ subsystemType: SubsystemType; } diff --git a/packages/cc/src/cc/BasicCC.ts b/packages/cc/src/cc/BasicCC.ts index 7decdec552fc..fc037cd047a1 100644 --- a/packages/cc/src/cc/BasicCC.ts +++ b/packages/cc/src/cc/BasicCC.ts @@ -319,7 +319,8 @@ remaining duration: ${basicResponse.duration?.toString() ?? "undefined"}`; } } -interface BasicCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface BasicCCSetOptions extends CCCommandOptions { targetValue: number; } @@ -354,7 +355,8 @@ export class BasicCCSet extends BasicCC { } } -type BasicCCReportOptions = +// @publicAPI +export type BasicCCReportOptions = & CCCommandOptions & { currentValue: number; diff --git a/packages/cc/src/cc/BatteryCC.ts b/packages/cc/src/cc/BatteryCC.ts index 3bd74d856762..268ffa90199b 100644 --- a/packages/cc/src/cc/BatteryCC.ts +++ b/packages/cc/src/cc/BatteryCC.ts @@ -375,6 +375,7 @@ temperature: ${batteryHealth.temperature} °C`; } } +// @publicAPI export type BatteryCCReportOptions = & CCCommandOptions & ( diff --git a/packages/cc/src/cc/BinarySensorCC.ts b/packages/cc/src/cc/BinarySensorCC.ts index c06a60f85882..1ed5fbab8407 100644 --- a/packages/cc/src/cc/BinarySensorCC.ts +++ b/packages/cc/src/cc/BinarySensorCC.ts @@ -287,6 +287,7 @@ export class BinarySensorCC extends CommandClass { } } +// @publicAPI export interface BinarySensorCCReportOptions extends CCCommandOptions { type?: BinarySensorType; value: boolean; @@ -356,7 +357,8 @@ function testResponseForBinarySensorGet( ); } -interface BinarySensorCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface BinarySensorCCGetOptions extends CCCommandOptions { sensorType?: BinarySensorType; } diff --git a/packages/cc/src/cc/BinarySwitchCC.ts b/packages/cc/src/cc/BinarySwitchCC.ts index 498ee8958cb6..4bffb097e01e 100644 --- a/packages/cc/src/cc/BinarySwitchCC.ts +++ b/packages/cc/src/cc/BinarySwitchCC.ts @@ -294,7 +294,8 @@ remaining duration: ${resp.duration?.toString() ?? "undefined"}`; } } -interface BinarySwitchCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface BinarySwitchCCSetOptions extends CCCommandOptions { targetValue: boolean; duration?: Duration | string; } @@ -345,6 +346,7 @@ export class BinarySwitchCCSet extends BinarySwitchCC { } } +// @publicAPI export type BinarySwitchCCReportOptions = & CCCommandOptions & { diff --git a/packages/cc/src/cc/CRC16CC.ts b/packages/cc/src/cc/CRC16CC.ts index 545da3fec61d..ed6630be4056 100644 --- a/packages/cc/src/cc/CRC16CC.ts +++ b/packages/cc/src/cc/CRC16CC.ts @@ -87,7 +87,8 @@ export class CRC16CC extends CommandClass { } } -interface CRC16CCCommandEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface CRC16CCCommandEncapsulationOptions extends CCCommandOptions { encapsulated: CommandClass; } diff --git a/packages/cc/src/cc/CentralSceneCC.ts b/packages/cc/src/cc/CentralSceneCC.ts index 5046d31269ca..797585a6c30b 100644 --- a/packages/cc/src/cc/CentralSceneCC.ts +++ b/packages/cc/src/cc/CentralSceneCC.ts @@ -479,7 +479,10 @@ export class CentralSceneCCConfigurationReport extends CentralSceneCC { @expectedCCResponse(CentralSceneCCConfigurationReport) export class CentralSceneCCConfigurationGet extends CentralSceneCC {} -interface CentralSceneCCConfigurationSetOptions extends CCCommandOptions { +// @publicAPI +export interface CentralSceneCCConfigurationSetOptions + extends CCCommandOptions +{ slowRefresh: boolean; } diff --git a/packages/cc/src/cc/ClimateControlScheduleCC.ts b/packages/cc/src/cc/ClimateControlScheduleCC.ts index 094575e42b77..e7359b88dcfe 100644 --- a/packages/cc/src/cc/ClimateControlScheduleCC.ts +++ b/packages/cc/src/cc/ClimateControlScheduleCC.ts @@ -213,7 +213,8 @@ export class ClimateControlScheduleCC extends CommandClass { declare ccCommand: ClimateControlScheduleCommand; } -interface ClimateControlScheduleCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface ClimateControlScheduleCCSetOptions extends CCCommandOptions { weekday: Weekday; switchPoints: Switchpoint[]; } @@ -334,7 +335,8 @@ export class ClimateControlScheduleCCReport extends ClimateControlScheduleCC { } } -interface ClimateControlScheduleCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface ClimateControlScheduleCCGetOptions extends CCCommandOptions { weekday: Weekday; } @@ -445,7 +447,10 @@ export class ClimateControlScheduleCCOverrideGet extends ClimateControlScheduleCC {} -interface ClimateControlScheduleCCOverrideSetOptions extends CCCommandOptions { +// @publicAPI +export interface ClimateControlScheduleCCOverrideSetOptions + extends CCCommandOptions +{ overrideType: ScheduleOverrideType; overrideState: SetbackState; } diff --git a/packages/cc/src/cc/ClockCC.ts b/packages/cc/src/cc/ClockCC.ts index 78d766df0f68..2fdada14a799 100644 --- a/packages/cc/src/cc/ClockCC.ts +++ b/packages/cc/src/cc/ClockCC.ts @@ -133,7 +133,8 @@ export class ClockCC extends CommandClass { } } -interface ClockCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface ClockCCSetOptions extends CCCommandOptions { weekday: Weekday; hour: number; minute: number; diff --git a/packages/cc/src/cc/ColorSwitchCC.ts b/packages/cc/src/cc/ColorSwitchCC.ts index 79c35870db94..cbaa44f89b42 100644 --- a/packages/cc/src/cc/ColorSwitchCC.ts +++ b/packages/cc/src/cc/ColorSwitchCC.ts @@ -820,7 +820,8 @@ export class ColorSwitchCCReport extends ColorSwitchCC { } } -interface ColorSwitchCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface ColorSwitchCCGetOptions extends CCCommandOptions { colorComponent: ColorComponent; } @@ -882,6 +883,7 @@ export class ColorSwitchCCGet extends ColorSwitchCC { } } +// @publicAPI export type ColorSwitchCCSetOptions = (ColorTable | { hexColor: string }) & { duration?: Duration | string; }; @@ -966,7 +968,8 @@ export class ColorSwitchCCSet extends ColorSwitchCC { } } -type ColorSwitchCCStartLevelChangeOptions = +// @publicAPI +export type ColorSwitchCCStartLevelChangeOptions = & { colorComponent: ColorComponent; direction: keyof typeof LevelChangeDirection; @@ -1050,6 +1053,7 @@ export class ColorSwitchCCStartLevelChange extends ColorSwitchCC { } } +// @publicAPI export interface ColorSwitchCCStopLevelChangeOptions extends CCCommandOptions { colorComponent: ColorComponent; } diff --git a/packages/cc/src/cc/ConfigurationCC.ts b/packages/cc/src/cc/ConfigurationCC.ts index 9b8199a16ea4..6e3233ed9ad8 100644 --- a/packages/cc/src/cc/ConfigurationCC.ts +++ b/packages/cc/src/cc/ConfigurationCC.ts @@ -1761,7 +1761,8 @@ function testResponseForConfigurationGet( ); } -interface ConfigurationCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface ConfigurationCCGetOptions extends CCCommandOptions { parameter: number; /** * If this is `true`, responses with different parameters than expected are accepted @@ -1805,7 +1806,8 @@ export class ConfigurationCCGet extends ConfigurationCC { } } -type ConfigurationCCSetOptions = +// @publicAPI +export type ConfigurationCCSetOptions = & CCCommandOptions & ( | { @@ -1944,7 +1946,8 @@ export class ConfigurationCCSet extends ConfigurationCC { } } -type ConfigurationCCBulkSetOptions = +// @publicAPI +export type ConfigurationCCBulkSetOptions = & CCCommandOptions & { parameters: number[]; @@ -2233,7 +2236,8 @@ export class ConfigurationCCBulkReport extends ConfigurationCC { } } -interface ConfigurationCCBulkGetOptions extends CCCommandOptions { +// @publicAPI +export interface ConfigurationCCBulkGetOptions extends CCCommandOptions { parameters: number[]; } diff --git a/packages/cc/src/cc/DoorLockCC.ts b/packages/cc/src/cc/DoorLockCC.ts index 84d5fe64ab6f..f4c98e2326ab 100644 --- a/packages/cc/src/cc/DoorLockCC.ts +++ b/packages/cc/src/cc/DoorLockCC.ts @@ -810,7 +810,8 @@ latch status: ${status.latchStatus}`; } } -interface DoorLockCCOperationSetOptions extends CCCommandOptions { +// @publicAPI +export interface DoorLockCCOperationSetOptions extends CCCommandOptions { mode: DoorLockMode; } @@ -1153,7 +1154,8 @@ export class DoorLockCCConfigurationReport extends DoorLockCC { @expectedCCResponse(DoorLockCCConfigurationReport) export class DoorLockCCConfigurationGet extends DoorLockCC {} -type DoorLockCCConfigurationSetOptions = +// @publicAPI +export type DoorLockCCConfigurationSetOptions = & ( | { operationType: DoorLockOperationType.Timed; diff --git a/packages/cc/src/cc/DoorLockLoggingCC.ts b/packages/cc/src/cc/DoorLockLoggingCC.ts index 7d96abd2f7a4..4f0144f637e0 100644 --- a/packages/cc/src/cc/DoorLockLoggingCC.ts +++ b/packages/cc/src/cc/DoorLockLoggingCC.ts @@ -340,7 +340,8 @@ export class DoorLockLoggingCCRecordReport extends DoorLockLoggingCC { } } -interface DoorLockLoggingCCRecordGetOptions extends CCCommandOptions { +// @publicAPI +export interface DoorLockLoggingCCRecordGetOptions extends CCCommandOptions { recordNumber: number; } diff --git a/packages/cc/src/cc/EnergyProductionCC.ts b/packages/cc/src/cc/EnergyProductionCC.ts index abaa74e0e35c..53ab529a1250 100644 --- a/packages/cc/src/cc/EnergyProductionCC.ts +++ b/packages/cc/src/cc/EnergyProductionCC.ts @@ -179,6 +179,7 @@ export class EnergyProductionCC extends CommandClass { } } +// @publicAPI export interface EnergyProductionCCReportOptions extends CCCommandOptions { parameter: EnergyProductionParameter; scale: EnergyProductionScale; @@ -253,7 +254,8 @@ export class EnergyProductionCCReport extends EnergyProductionCC { } } -interface EnergyProductionCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface EnergyProductionCCGetOptions extends CCCommandOptions { parameter: EnergyProductionParameter; } diff --git a/packages/cc/src/cc/EntryControlCC.ts b/packages/cc/src/cc/EntryControlCC.ts index 372fc03c30c9..80f5c21cc29a 100644 --- a/packages/cc/src/cc/EntryControlCC.ts +++ b/packages/cc/src/cc/EntryControlCC.ts @@ -653,7 +653,10 @@ export class EntryControlCCConfigurationReport extends EntryControlCC { @expectedCCResponse(EntryControlCCConfigurationReport) export class EntryControlCCConfigurationGet extends EntryControlCC {} -interface EntryControlCCConfigurationSetOptions extends CCCommandOptions { +// @publicAPI +export interface EntryControlCCConfigurationSetOptions + extends CCCommandOptions +{ keyCacheSize: number; keyCacheTimeout: number; } diff --git a/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts b/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts index 10f264b52b02..25153254650a 100644 --- a/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts +++ b/packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts @@ -410,7 +410,8 @@ export class FirmwareUpdateMetaDataCCRequestReport } } -type FirmwareUpdateMetaDataCCRequestGetOptions = +// @publicAPI +export type FirmwareUpdateMetaDataCCRequestGetOptions = & { manufacturerId: number; firmwareId: number; @@ -545,7 +546,10 @@ export class FirmwareUpdateMetaDataCCGet extends FirmwareUpdateMetaDataCC { } } -interface FirmwareUpdateMetaDataCCReportOptions extends CCCommandOptions { +// @publicAPI +export interface FirmwareUpdateMetaDataCCReportOptions + extends CCCommandOptions +{ isLast: boolean; reportNumber: number; firmwareData: Buffer; @@ -698,7 +702,8 @@ export class FirmwareUpdateMetaDataCCActivationReport } } -interface FirmwareUpdateMetaDataCCActivationSetOptions { +// @publicAPI +export interface FirmwareUpdateMetaDataCCActivationSetOptions { manufacturerId: number; firmwareId: number; checksum: number; @@ -798,7 +803,10 @@ export class FirmwareUpdateMetaDataCCPrepareReport } } -interface FirmwareUpdateMetaDataCCPrepareGetOptions extends CCCommandOptions { +// @publicAPI +export interface FirmwareUpdateMetaDataCCPrepareGetOptions + extends CCCommandOptions +{ manufacturerId: number; firmwareId: number; firmwareTarget: number; diff --git a/packages/cc/src/cc/HumidityControlModeCC.ts b/packages/cc/src/cc/HumidityControlModeCC.ts index a0c22bfd899c..8da7282d3346 100644 --- a/packages/cc/src/cc/HumidityControlModeCC.ts +++ b/packages/cc/src/cc/HumidityControlModeCC.ts @@ -267,7 +267,8 @@ export class HumidityControlModeCC extends CommandClass { } } -interface HumidityControlModeCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface HumidityControlModeCCSetOptions extends CCCommandOptions { mode: HumidityControlMode; } diff --git a/packages/cc/src/cc/HumidityControlSetpointCC.ts b/packages/cc/src/cc/HumidityControlSetpointCC.ts index 7d57a43da22d..683a8abf11f9 100644 --- a/packages/cc/src/cc/HumidityControlSetpointCC.ts +++ b/packages/cc/src/cc/HumidityControlSetpointCC.ts @@ -513,7 +513,8 @@ maximum value: ${setpointCaps.maxValue} ${maxValueUnit}`; } } -interface HumidityControlSetpointCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface HumidityControlSetpointCCSetOptions extends CCCommandOptions { setpointType: HumidityControlSetpointType; value: number; scale: number; @@ -659,7 +660,8 @@ function testResponseForHumidityControlSetpointGet( return received.type === sent.setpointType; } -interface HumidityControlSetpointCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface HumidityControlSetpointCCGetOptions extends CCCommandOptions { setpointType: HumidityControlSetpointType; } @@ -789,7 +791,8 @@ export class HumidityControlSetpointCCScaleSupportedReport } } -interface HumidityControlSetpointCCScaleSupportedGetOptions +// @publicAPI +export interface HumidityControlSetpointCCScaleSupportedGetOptions extends CCCommandOptions { setpointType: HumidityControlSetpointType; @@ -927,7 +930,8 @@ export class HumidityControlSetpointCCCapabilitiesReport } } -interface HumidityControlSetpointCCCapabilitiesGetOptions +// @publicAPI +export interface HumidityControlSetpointCCCapabilitiesGetOptions extends CCCommandOptions { setpointType: HumidityControlSetpointType; diff --git a/packages/cc/src/cc/InclusionControllerCC.ts b/packages/cc/src/cc/InclusionControllerCC.ts index d322f44923c5..201426ce99c5 100644 --- a/packages/cc/src/cc/InclusionControllerCC.ts +++ b/packages/cc/src/cc/InclusionControllerCC.ts @@ -86,7 +86,8 @@ export class InclusionControllerCCAPI extends CCAPI { } } -interface InclusionControllerCCCompleteOptions extends CCCommandOptions { +// @publicAPI +export interface InclusionControllerCCCompleteOptions extends CCCommandOptions { step: InclusionControllerStep; status: InclusionControllerStatus; } @@ -135,7 +136,8 @@ export class InclusionControllerCCComplete extends InclusionControllerCC { } } -interface InclusionControllerCCInitiateOptions extends CCCommandOptions { +// @publicAPI +export interface InclusionControllerCCInitiateOptions extends CCCommandOptions { includedNodeId: number; step: InclusionControllerStep; } diff --git a/packages/cc/src/cc/IndicatorCC.ts b/packages/cc/src/cc/IndicatorCC.ts index 8013a6a41b07..4cf3979981d6 100644 --- a/packages/cc/src/cc/IndicatorCC.ts +++ b/packages/cc/src/cc/IndicatorCC.ts @@ -826,6 +826,7 @@ export interface IndicatorObject { value: number | boolean; } +// @publicAPI export type IndicatorCCSetOptions = | { value: number; @@ -943,6 +944,7 @@ export class IndicatorCCSet extends IndicatorCC { } } +// @publicAPI export type IndicatorCCReportSpecificOptions = | { value: number; @@ -1156,7 +1158,8 @@ export class IndicatorCCReport extends IndicatorCC { } } -interface IndicatorCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface IndicatorCCGetOptions extends CCCommandOptions { indicatorId?: number; } @@ -1199,6 +1202,7 @@ export class IndicatorCCGet extends IndicatorCC { } } +// @publicAPI export interface IndicatorCCSupportedReportOptions extends CCCommandOptions { indicatorId: number; nextIndicatorId: number; @@ -1297,7 +1301,8 @@ export class IndicatorCCSupportedReport extends IndicatorCC { } } -interface IndicatorCCSupportedGetOptions extends CCCommandOptions { +// @publicAPI +export interface IndicatorCCSupportedGetOptions extends CCCommandOptions { indicatorId: number; } @@ -1394,7 +1399,8 @@ export class IndicatorCCDescriptionReport extends IndicatorCC { } } -interface IndicatorCCDescriptionGetOptions extends CCCommandOptions { +// @publicAPI +export interface IndicatorCCDescriptionGetOptions extends CCCommandOptions { indicatorId: number; } diff --git a/packages/cc/src/cc/IrrigationCC.ts b/packages/cc/src/cc/IrrigationCC.ts index f3f627ef23db..ef8c8b73b7d7 100644 --- a/packages/cc/src/cc/IrrigationCC.ts +++ b/packages/cc/src/cc/IrrigationCC.ts @@ -1815,6 +1815,7 @@ export class IrrigationCCValveInfoReport extends IrrigationCC { } } +// @publicAPI export interface IrrigationCCValveInfoGetOptions extends CCCommandOptions { valveId: ValveId; } @@ -2096,7 +2097,8 @@ export class IrrigationCCValveConfigReport extends IrrigationCC { } } -interface IrrigationCCValveConfigGetOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCValveConfigGetOptions extends CCCommandOptions { valveId: ValveId; } @@ -2144,7 +2146,8 @@ export class IrrigationCCValveConfigGet extends IrrigationCC { } } -interface IrrigationCCValveRunOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCValveRunOptions extends CCCommandOptions { valveId: ValveId; duration: number; } @@ -2201,7 +2204,8 @@ export class IrrigationCCValveRun extends IrrigationCC { } } -interface IrrigationCCValveTableSetOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCValveTableSetOptions extends CCCommandOptions { tableId: number; entries: ValveTableEntry[]; } @@ -2304,7 +2308,8 @@ export class IrrigationCCValveTableReport extends IrrigationCC { } } -interface IrrigationCCValveTableGetOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCValveTableGetOptions extends CCCommandOptions { tableId: number; } @@ -2356,7 +2361,8 @@ export class IrrigationCCValveTableGet extends IrrigationCC { } } -interface IrrigationCCValveTableRunOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCValveTableRunOptions extends CCCommandOptions { tableIDs: number[]; } @@ -2406,7 +2412,8 @@ export class IrrigationCCValveTableRun extends IrrigationCC { } } -interface IrrigationCCSystemShutoffOptions extends CCCommandOptions { +// @publicAPI +export interface IrrigationCCSystemShutoffOptions extends CCCommandOptions { /** * The duration in minutes the system must stay off. * 255 or `undefined` will prevent schedules from running. diff --git a/packages/cc/src/cc/LanguageCC.ts b/packages/cc/src/cc/LanguageCC.ts index 1ce12bb3530e..707225a601ec 100644 --- a/packages/cc/src/cc/LanguageCC.ts +++ b/packages/cc/src/cc/LanguageCC.ts @@ -153,7 +153,8 @@ export class LanguageCC extends CommandClass { } } -interface LanguageCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface LanguageCCSetOptions extends CCCommandOptions { language: string; country?: string; } diff --git a/packages/cc/src/cc/LockCC.ts b/packages/cc/src/cc/LockCC.ts index 125e9566225e..77ffa84886dd 100644 --- a/packages/cc/src/cc/LockCC.ts +++ b/packages/cc/src/cc/LockCC.ts @@ -172,7 +172,8 @@ export class LockCC extends CommandClass { } } -interface LockCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface LockCCSetOptions extends CCCommandOptions { locked: boolean; } diff --git a/packages/cc/src/cc/ManufacturerProprietaryCC.ts b/packages/cc/src/cc/ManufacturerProprietaryCC.ts index 9bf42e0bdb62..1be1176f08fe 100644 --- a/packages/cc/src/cc/ManufacturerProprietaryCC.ts +++ b/packages/cc/src/cc/ManufacturerProprietaryCC.ts @@ -104,6 +104,7 @@ export class ManufacturerProprietaryCCAPI extends CCAPI { } } +// @publicAPI export interface ManufacturerProprietaryCCOptions extends CCCommandOptions { manufacturerId?: number; unspecifiedExpectsResponse?: boolean; diff --git a/packages/cc/src/cc/ManufacturerSpecificCC.ts b/packages/cc/src/cc/ManufacturerSpecificCC.ts index 56cd625188fd..8923b83d2c13 100644 --- a/packages/cc/src/cc/ManufacturerSpecificCC.ts +++ b/packages/cc/src/cc/ManufacturerSpecificCC.ts @@ -201,6 +201,7 @@ export class ManufacturerSpecificCC extends CommandClass { } } +// @publicAPI export interface ManufacturerSpecificCCReportOptions extends CCCommandOptions { manufacturerId: number; productType: number; @@ -304,7 +305,8 @@ export class ManufacturerSpecificCCDeviceSpecificReport } } -interface ManufacturerSpecificCCDeviceSpecificGetOptions +// @publicAPI +export interface ManufacturerSpecificCCDeviceSpecificGetOptions extends CCCommandOptions { deviceIdType: DeviceIdType; diff --git a/packages/cc/src/cc/MeterCC.ts b/packages/cc/src/cc/MeterCC.ts index 29c6d4e923b4..70599e9d15bd 100644 --- a/packages/cc/src/cc/MeterCC.ts +++ b/packages/cc/src/cc/MeterCC.ts @@ -606,6 +606,7 @@ supports reset: ${suppResp.supportsReset}`; } } +// @publicAPI export interface MeterCCReportOptions extends CCCommandOptions { type: number; scale: number; @@ -852,7 +853,8 @@ function testResponseForMeterGet(sent: MeterCCGet, received: MeterCCReport) { ); } -interface MeterCCGetOptions { +// @publicAPI +export interface MeterCCGetOptions { scale?: number; rateType?: RateType; } @@ -1041,7 +1043,8 @@ export class MeterCCSupportedReport extends MeterCC { @expectedCCResponse(MeterCCSupportedReport) export class MeterCCSupportedGet extends MeterCC {} -type MeterCCResetOptions = +// @publicAPI +export type MeterCCResetOptions = | { type?: undefined; targetValue?: undefined; diff --git a/packages/cc/src/cc/MultiChannelAssociationCC.ts b/packages/cc/src/cc/MultiChannelAssociationCC.ts index d6523bd6054e..67179b0a1721 100644 --- a/packages/cc/src/cc/MultiChannelAssociationCC.ts +++ b/packages/cc/src/cc/MultiChannelAssociationCC.ts @@ -566,7 +566,8 @@ currently assigned nodes: ${group.nodeIds.map(String).join(", ")}`; } } -type MultiChannelAssociationCCSetOptions = +// @publicAPI +export type MultiChannelAssociationCCSetOptions = & { groupId: number; } @@ -639,7 +640,8 @@ export class MultiChannelAssociationCCSet extends MultiChannelAssociationCC { } } -interface MultiChannelAssociationCCRemoveOptions { +// @publicAPI +export interface MultiChannelAssociationCCRemoveOptions { /** The group from which to remove the nodes. If none is specified, the nodes will be removed from all groups. */ groupId?: number; /** The nodes to remove. If no nodeIds and no endpoint addresses are specified, ALL nodes will be removed. */ @@ -803,7 +805,8 @@ export class MultiChannelAssociationCCReport extends MultiChannelAssociationCC { } } -interface MultiChannelAssociationCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelAssociationCCGetOptions extends CCCommandOptions { groupId: number; } diff --git a/packages/cc/src/cc/MultiChannelCC.ts b/packages/cc/src/cc/MultiChannelCC.ts index c83c75174e65..43e44eb9ba7e 100644 --- a/packages/cc/src/cc/MultiChannelCC.ts +++ b/packages/cc/src/cc/MultiChannelCC.ts @@ -815,6 +815,7 @@ supported CCs:`; } } +// @publicAPI export interface MultiChannelCCEndPointReportOptions extends CCCommandOptions { countIsDynamic: boolean; identicalCapabilities: boolean; @@ -891,6 +892,7 @@ export class MultiChannelCCEndPointReport extends MultiChannelCC { @expectedCCResponse(MultiChannelCCEndPointReport) export class MultiChannelCCEndPointGet extends MultiChannelCC {} +// @publicAPI export interface MultiChannelCCCapabilityReportOptions extends CCCommandOptions { @@ -1002,7 +1004,8 @@ export class MultiChannelCCCapabilityReport extends MultiChannelCC } } -interface MultiChannelCCCapabilityGetOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCCapabilityGetOptions extends CCCommandOptions { requestedEndpoint: number; } @@ -1049,6 +1052,7 @@ export class MultiChannelCCCapabilityGet extends MultiChannelCC { } } +// @publicAPI export interface MultiChannelCCEndPointFindReportOptions extends CCCommandOptions { @@ -1146,7 +1150,8 @@ export class MultiChannelCCEndPointFindReport extends MultiChannelCC { } } -interface MultiChannelCCEndPointFindOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCEndPointFindOptions extends CCCommandOptions { genericClass: number; specificClass: number; } @@ -1233,7 +1238,10 @@ export class MultiChannelCCAggregatedMembersReport extends MultiChannelCC { } } -interface MultiChannelCCAggregatedMembersGetOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCAggregatedMembersGetOptions + extends CCCommandOptions +{ requestedEndpoint: number; } @@ -1275,7 +1283,10 @@ export class MultiChannelCCAggregatedMembersGet extends MultiChannelCC { type MultiChannelCCDestination = number | (1 | 2 | 3 | 4 | 5 | 6 | 7)[]; -interface MultiChannelCCCommandEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCCommandEncapsulationOptions + extends CCCommandOptions +{ encapsulated: CommandClass; destination: MultiChannelCCDestination; } @@ -1446,7 +1457,8 @@ function testResponseForMultiChannelV1Get( return sent.requestedCC === received.requestedCC; } -interface MultiChannelCCV1GetOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCV1GetOptions extends CCCommandOptions { requestedCC: CommandClasses; } @@ -1504,7 +1516,10 @@ function testResponseForV1CommandEncapsulation( return false; } -interface MultiChannelCCV1CommandEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface MultiChannelCCV1CommandEncapsulationOptions + extends CCCommandOptions +{ encapsulated: CommandClass; } diff --git a/packages/cc/src/cc/MultiCommandCC.ts b/packages/cc/src/cc/MultiCommandCC.ts index f23188acad74..6a4de1dca2a1 100644 --- a/packages/cc/src/cc/MultiCommandCC.ts +++ b/packages/cc/src/cc/MultiCommandCC.ts @@ -94,7 +94,10 @@ export class MultiCommandCC extends CommandClass { } } -interface MultiCommandCCCommandEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface MultiCommandCCCommandEncapsulationOptions + extends CCCommandOptions +{ encapsulated: CommandClass[]; } diff --git a/packages/cc/src/cc/MultilevelSensorCC.ts b/packages/cc/src/cc/MultilevelSensorCC.ts index 4040fe74466d..9b26fc5028b2 100644 --- a/packages/cc/src/cc/MultilevelSensorCC.ts +++ b/packages/cc/src/cc/MultilevelSensorCC.ts @@ -757,7 +757,8 @@ interface MultilevelSensorCCGetSpecificOptions { sensorType: number; scale: number; } -type MultilevelSensorCCGetOptions = +// @publicAPI +export type MultilevelSensorCCGetOptions = | CCCommandOptions | (CCCommandOptions & MultilevelSensorCCGetSpecificOptions); @@ -916,7 +917,10 @@ export class MultilevelSensorCCSupportedScaleReport extends MultilevelSensorCC { } } -interface MultilevelSensorCCGetSupportedScaleOptions extends CCCommandOptions { +// @publicAPI +export interface MultilevelSensorCCGetSupportedScaleOptions + extends CCCommandOptions +{ sensorType: number; } diff --git a/packages/cc/src/cc/MultilevelSwitchCC.ts b/packages/cc/src/cc/MultilevelSwitchCC.ts index 43b6ca4224f4..4497c14c2818 100644 --- a/packages/cc/src/cc/MultilevelSwitchCC.ts +++ b/packages/cc/src/cc/MultilevelSwitchCC.ts @@ -606,7 +606,8 @@ export class MultilevelSwitchCC extends CommandClass { } } -interface MultilevelSwitchCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface MultilevelSwitchCCSetOptions extends CCCommandOptions { targetValue: number; // Version >= 2: duration?: Duration | string; @@ -661,7 +662,8 @@ export class MultilevelSwitchCCSet extends MultilevelSwitchCC { } } -interface MultilevelSwitchCCReportOptions extends CCCommandOptions { +// @publicAPI +export interface MultilevelSwitchCCReportOptions extends CCCommandOptions { currentValue: number; targetValue: number; duration?: Duration | string; @@ -739,7 +741,8 @@ export class MultilevelSwitchCCReport extends MultilevelSwitchCC { @expectedCCResponse(MultilevelSwitchCCReport) export class MultilevelSwitchCCGet extends MultilevelSwitchCC {} -type MultilevelSwitchCCStartLevelChangeOptions = +// @publicAPI +export type MultilevelSwitchCCStartLevelChangeOptions = & { direction: keyof typeof LevelChangeDirection; } diff --git a/packages/cc/src/cc/NodeNamingCC.ts b/packages/cc/src/cc/NodeNamingCC.ts index fd49e15328ff..b58783bf92cb 100644 --- a/packages/cc/src/cc/NodeNamingCC.ts +++ b/packages/cc/src/cc/NodeNamingCC.ts @@ -257,7 +257,10 @@ export class NodeNamingAndLocationCC extends CommandClass { } } -interface NodeNamingAndLocationCCNameSetOptions extends CCCommandOptions { +// @publicAPI +export interface NodeNamingAndLocationCCNameSetOptions + extends CCCommandOptions +{ name: string; } @@ -345,7 +348,10 @@ export class NodeNamingAndLocationCCNameReport extends NodeNamingAndLocationCC { @expectedCCResponse(NodeNamingAndLocationCCNameReport) export class NodeNamingAndLocationCCNameGet extends NodeNamingAndLocationCC {} -interface NodeNamingAndLocationCCLocationSetOptions extends CCCommandOptions { +// @publicAPI +export interface NodeNamingAndLocationCCLocationSetOptions + extends CCCommandOptions +{ location: string; } diff --git a/packages/cc/src/cc/NotificationCC.ts b/packages/cc/src/cc/NotificationCC.ts index 9b0077ea364f..a4a0214e5173 100644 --- a/packages/cc/src/cc/NotificationCC.ts +++ b/packages/cc/src/cc/NotificationCC.ts @@ -863,7 +863,8 @@ export class NotificationCC extends CommandClass { } } -interface NotificationCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface NotificationCCSetOptions extends CCCommandOptions { notificationType: number; notificationStatus: boolean; } @@ -909,6 +910,7 @@ export class NotificationCCSet extends NotificationCC { } } +// @publicAPI export type NotificationCCReportOptions = | { alarmType: number; @@ -1378,7 +1380,8 @@ type NotificationCCGetSpecificOptions = notificationType: number; notificationEvent?: number; }; -type NotificationCCGetOptions = +// @publicAPI +export type NotificationCCGetOptions = & CCCommandOptions & NotificationCCGetSpecificOptions; @@ -1455,6 +1458,7 @@ export class NotificationCCGet extends NotificationCC { } } +// @publicAPI export interface NotificationCCSupportedReportOptions extends CCCommandOptions { supportsV1Alarm: boolean; supportedNotificationTypes: number[]; @@ -1539,6 +1543,7 @@ export class NotificationCCSupportedReport extends NotificationCC { @expectedCCResponse(NotificationCCSupportedReport) export class NotificationCCSupportedGet extends NotificationCC {} +// @publicAPI export interface NotificationCCEventSupportedReportOptions extends CCCommandOptions { @@ -1678,7 +1683,10 @@ export class NotificationCCEventSupportedReport extends NotificationCC { } } -interface NotificationCCEventSupportedGetOptions extends CCCommandOptions { +// @publicAPI +export interface NotificationCCEventSupportedGetOptions + extends CCCommandOptions +{ notificationType: number; } diff --git a/packages/cc/src/cc/PowerlevelCC.ts b/packages/cc/src/cc/PowerlevelCC.ts index dcdcd674484a..7268e3abd4ea 100644 --- a/packages/cc/src/cc/PowerlevelCC.ts +++ b/packages/cc/src/cc/PowerlevelCC.ts @@ -172,7 +172,8 @@ export class PowerlevelCC extends CommandClass { declare ccCommand: PowerlevelCommand; } -type PowerlevelCCSetOptions = +// @publicAPI +export type PowerlevelCCSetOptions = & CCCommandOptions & ( | { @@ -270,7 +271,8 @@ export class PowerlevelCCReport extends PowerlevelCC { @expectedCCResponse(PowerlevelCCReport) export class PowerlevelCCGet extends PowerlevelCC {} -interface PowerlevelCCTestNodeSetOptions extends CCCommandOptions { +// @publicAPI +export interface PowerlevelCCTestNodeSetOptions extends CCCommandOptions { testNodeId: number; powerlevel: Powerlevel; testFrameCount: number; diff --git a/packages/cc/src/cc/ProtectionCC.ts b/packages/cc/src/cc/ProtectionCC.ts index acc49feead8e..b729be302b36 100644 --- a/packages/cc/src/cc/ProtectionCC.ts +++ b/packages/cc/src/cc/ProtectionCC.ts @@ -487,7 +487,8 @@ rf ${getEnumMemberName(RFProtectionState, protectionResp.rf)}`; } } -interface ProtectionCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface ProtectionCCSetOptions extends CCCommandOptions { local: LocalProtectionState; rf?: RFProtectionState; } @@ -686,7 +687,10 @@ export class ProtectionCCExclusiveControlReport extends ProtectionCC { @expectedCCResponse(ProtectionCCExclusiveControlReport) export class ProtectionCCExclusiveControlGet extends ProtectionCC {} -interface ProtectionCCExclusiveControlSetOptions extends CCCommandOptions { +// @publicAPI +export interface ProtectionCCExclusiveControlSetOptions + extends CCCommandOptions +{ exclusiveControlNodeId: number; } @@ -755,7 +759,8 @@ export class ProtectionCCTimeoutReport extends ProtectionCC { @expectedCCResponse(ProtectionCCTimeoutReport) export class ProtectionCCTimeoutGet extends ProtectionCC {} -interface ProtectionCCTimeoutSetOptions extends CCCommandOptions { +// @publicAPI +export interface ProtectionCCTimeoutSetOptions extends CCCommandOptions { timeout: Timeout; } diff --git a/packages/cc/src/cc/SceneActivationCC.ts b/packages/cc/src/cc/SceneActivationCC.ts index cdcf6c05a2a2..8a48bd4322a7 100644 --- a/packages/cc/src/cc/SceneActivationCC.ts +++ b/packages/cc/src/cc/SceneActivationCC.ts @@ -125,7 +125,8 @@ export class SceneActivationCC extends CommandClass { declare ccCommand: SceneActivationCommand; } -interface SceneActivationCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface SceneActivationCCSetOptions extends CCCommandOptions { sceneId: number; dimmingDuration?: Duration | string; } diff --git a/packages/cc/src/cc/SceneActuatorConfigurationCC.ts b/packages/cc/src/cc/SceneActuatorConfigurationCC.ts index 8a4bc63fa4de..3134bf7fe64c 100644 --- a/packages/cc/src/cc/SceneActuatorConfigurationCC.ts +++ b/packages/cc/src/cc/SceneActuatorConfigurationCC.ts @@ -337,7 +337,10 @@ export class SceneActuatorConfigurationCC extends CommandClass { // } } -interface SceneActuatorConfigurationCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface SceneActuatorConfigurationCCSetOptions + extends CCCommandOptions +{ sceneId: number; dimmingDuration: Duration; level?: number; @@ -481,7 +484,10 @@ function testResponseForSceneActuatorConfigurationGet( return sent.sceneId === 0 || received.sceneId === sent.sceneId; } -interface SceneActuatorConfigurationCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface SceneActuatorConfigurationCCGetOptions + extends CCCommandOptions +{ sceneId: number; } diff --git a/packages/cc/src/cc/SceneControllerConfigurationCC.ts b/packages/cc/src/cc/SceneControllerConfigurationCC.ts index 64e683a46e3a..3bee3847e529 100644 --- a/packages/cc/src/cc/SceneControllerConfigurationCC.ts +++ b/packages/cc/src/cc/SceneControllerConfigurationCC.ts @@ -472,7 +472,10 @@ dimming duration: ${group.dimmingDuration.toString()}`; } } -interface SceneControllerConfigurationCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface SceneControllerConfigurationCCSetOptions + extends CCCommandOptions +{ groupId: number; sceneId: number; dimmingDuration?: Duration | string; @@ -591,7 +594,10 @@ function testResponseForSceneControllerConfigurationGet( return sent.groupId === 0 || received.groupId === sent.groupId; } -interface SceneControllerConfigurationCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface SceneControllerConfigurationCCGetOptions + extends CCCommandOptions +{ groupId: number; } diff --git a/packages/cc/src/cc/ScheduleEntryLockCC.ts b/packages/cc/src/cc/ScheduleEntryLockCC.ts index b32f2bc4c820..5561d820c6d2 100644 --- a/packages/cc/src/cc/ScheduleEntryLockCC.ts +++ b/packages/cc/src/cc/ScheduleEntryLockCC.ts @@ -927,7 +927,8 @@ daily repeating: ${slotsResp.numDailyRepeatingSlots}`; } } -interface ScheduleEntryLockCCEnableSetOptions extends CCCommandOptions { +// @publicAPI +export interface ScheduleEntryLockCCEnableSetOptions extends CCCommandOptions { userId: number; enabled: boolean; } @@ -971,7 +972,10 @@ export class ScheduleEntryLockCCEnableSet extends ScheduleEntryLockCC { } } -interface ScheduleEntryLockCCEnableAllSetOptions extends CCCommandOptions { +// @publicAPI +export interface ScheduleEntryLockCCEnableAllSetOptions + extends CCCommandOptions +{ enabled: boolean; } @@ -1010,7 +1014,10 @@ export class ScheduleEntryLockCCEnableAllSet extends ScheduleEntryLockCC { } } -interface ScheduleEntryLockCCSupportedReportOptions extends CCCommandOptions { +// @publicAPI +export interface ScheduleEntryLockCCSupportedReportOptions + extends CCCommandOptions +{ numWeekDaySlots: number; numYearDaySlots: number; numDailyRepeatingSlots?: number; @@ -1196,7 +1203,8 @@ export class ScheduleEntryLockCCWeekDayScheduleSet extends ScheduleEntryLockCC { } } -type ScheduleEntryLockCCWeekDayScheduleReportOptions = +// @publicAPI +export type ScheduleEntryLockCCWeekDayScheduleReportOptions = & CCCommandOptions & ScheduleEntryLockSlotId & AllOrNone; @@ -1321,7 +1329,8 @@ export class ScheduleEntryLockCCWeekDayScheduleReport } } -type ScheduleEntryLockCCWeekDayScheduleGetOptions = +// @publicAPI +export type ScheduleEntryLockCCWeekDayScheduleGetOptions = & CCCommandOptions & ScheduleEntryLockSlotId; @@ -1502,7 +1511,8 @@ export class ScheduleEntryLockCCYearDayScheduleSet extends ScheduleEntryLockCC { } } -type ScheduleEntryLockCCYearDayScheduleReportOptions = +// @publicAPI +export type ScheduleEntryLockCCYearDayScheduleReportOptions = & CCCommandOptions & ScheduleEntryLockSlotId & AllOrNone; @@ -1665,7 +1675,8 @@ export class ScheduleEntryLockCCYearDayScheduleReport } } -type ScheduleEntryLockCCYearDayScheduleGetOptions = +// @publicAPI +export type ScheduleEntryLockCCYearDayScheduleGetOptions = & CCCommandOptions & ScheduleEntryLockSlotId; @@ -1708,7 +1719,10 @@ export class ScheduleEntryLockCCYearDayScheduleGet extends ScheduleEntryLockCC { } } -interface ScheduleEntryLockCCTimeOffsetSetOptions extends CCCommandOptions { +// @publicAPI +export interface ScheduleEntryLockCCTimeOffsetSetOptions + extends CCCommandOptions +{ standardOffset: number; dstOffset: number; } @@ -1755,7 +1769,10 @@ export class ScheduleEntryLockCCTimeOffsetSet extends ScheduleEntryLockCC { } } -interface ScheduleEntryLockCCTimeOffsetReportOptions extends CCCommandOptions { +// @publicAPI +export interface ScheduleEntryLockCCTimeOffsetReportOptions + extends CCCommandOptions +{ standardOffset: number; dstOffset: number; } @@ -1933,7 +1950,8 @@ export class ScheduleEntryLockCCDailyRepeatingScheduleSet } } -type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions = +// @publicAPI +export type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions = & ScheduleEntryLockSlotId & AllOrNone; @@ -2067,7 +2085,8 @@ export class ScheduleEntryLockCCDailyRepeatingScheduleReport } } -type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions = +// @publicAPI +export type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions = & CCCommandOptions & ScheduleEntryLockSlotId; diff --git a/packages/cc/src/cc/Security2CC.ts b/packages/cc/src/cc/Security2CC.ts index 6042efa698c1..a4caeb6536cc 100644 --- a/packages/cc/src/cc/Security2CC.ts +++ b/packages/cc/src/cc/Security2CC.ts @@ -141,7 +141,8 @@ function assertSecurity(this: Security2CC, options: CommandClassOptions): void { const DECRYPT_ATTEMPTS = 5; -interface DecryptionResult { +// @publicAPI +export interface DecryptionResult { plaintext: Buffer; authOK: boolean; key?: Buffer; @@ -811,7 +812,10 @@ export class Security2CC extends CommandClass { } } -interface Security2CCMessageEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCMessageEncapsulationOptions + extends CCCommandOptions +{ /** Can be used to override the default security class for the command */ securityClass?: S2SecurityClass; extensions?: Security2Extension[]; @@ -850,7 +854,8 @@ function failNoMPAN(): never { throw validatePayload.fail(ZWaveErrorCodes.Security2CC_NoMPAN); } -type MulticastContext = +// @publicAPI +export type MulticastContext = | { isMulticast: true; groupId: number; @@ -1672,6 +1677,7 @@ export class Security2CCMessageEncapsulation extends Security2CC { } } +// @publicAPI export type Security2CCNonceReportOptions = | { MOS: boolean; @@ -1838,7 +1844,8 @@ export class Security2CCNonceGet extends Security2CC { } } -interface Security2CCKEXReportOptions { +// @publicAPI +export interface Security2CCKEXReportOptions { requestCSA: boolean; echo: boolean; _reserved?: number; @@ -1939,7 +1946,8 @@ export class Security2CCKEXReport extends Security2CC { @expectedCCResponse(Security2CCKEXReport) export class Security2CCKEXGet extends Security2CC {} -interface Security2CCKEXSetOptions { +// @publicAPI +export interface Security2CCKEXSetOptions { permitCSA: boolean; echo: boolean; selectedKEXScheme: KEXSchemes; @@ -2035,7 +2043,8 @@ export class Security2CCKEXSet extends Security2CC { } } -interface Security2CCKEXFailOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCKEXFailOptions extends CCCommandOptions { failType: KEXFailType; } @@ -2069,7 +2078,8 @@ export class Security2CCKEXFail extends Security2CC { } } -interface Security2CCPublicKeyReportOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCPublicKeyReportOptions extends CCCommandOptions { includingNode: boolean; publicKey: Buffer; } @@ -2115,7 +2125,8 @@ export class Security2CCPublicKeyReport extends Security2CC { } } -interface Security2CCNetworkKeyReportOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCNetworkKeyReportOptions extends CCCommandOptions { grantedKey: SecurityClass; networkKey: Buffer; } @@ -2167,7 +2178,8 @@ export class Security2CCNetworkKeyReport extends Security2CC { } } -interface Security2CCNetworkKeyGetOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCNetworkKeyGetOptions extends CCCommandOptions { requestedKey: SecurityClass; } @@ -2212,7 +2224,8 @@ export class Security2CCNetworkKeyGet extends Security2CC { @CCCommand(Security2Command.NetworkKeyVerify) export class Security2CCNetworkKeyVerify extends Security2CC {} -interface Security2CCTransferEndOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCTransferEndOptions extends CCCommandOptions { keyVerified: boolean; keyRequestComplete: boolean; } @@ -2257,7 +2270,10 @@ export class Security2CCTransferEnd extends Security2CC { } } -interface Security2CCCommandsSupportedReportOptions extends CCCommandOptions { +// @publicAPI +export interface Security2CCCommandsSupportedReportOptions + extends CCCommandOptions +{ supportedCCs: CommandClasses[]; } diff --git a/packages/cc/src/cc/SecurityCC.ts b/packages/cc/src/cc/SecurityCC.ts index cb731aefb493..70f5a1886f11 100644 --- a/packages/cc/src/cc/SecurityCC.ts +++ b/packages/cc/src/cc/SecurityCC.ts @@ -503,7 +503,10 @@ export class SecurityCCNonceReport extends SecurityCC { @expectedCCResponse(SecurityCCNonceReport) export class SecurityCCNonceGet extends SecurityCC {} -interface SecurityCCCommandEncapsulationOptions extends CCCommandOptions { +// @publicAPI +export interface SecurityCCCommandEncapsulationOptions + extends CCCommandOptions +{ encapsulated: CommandClass; alternativeNetworkKey?: Buffer; } @@ -800,7 +803,8 @@ export class SecurityCCSchemeInherit extends SecurityCC { @CCCommand(SecurityCommand.NetworkKeyVerify) export class SecurityCCNetworkKeyVerify extends SecurityCC {} -interface SecurityCCNetworkKeySetOptions extends CCCommandOptions { +// @publicAPI +export interface SecurityCCNetworkKeySetOptions extends CCCommandOptions { networkKey: Buffer; } @@ -841,7 +845,10 @@ export class SecurityCCNetworkKeySet extends SecurityCC { // @noLogEntry - The network key shouldn't be logged, so users can safely post their logs online } -interface SecurityCCCommandsSupportedReportOptions extends CCCommandOptions { +// @publicAPI +export interface SecurityCCCommandsSupportedReportOptions + extends CCCommandOptions +{ supportedCCs: CommandClasses[]; controlledCCs: CommandClasses[]; } diff --git a/packages/cc/src/cc/SoundSwitchCC.ts b/packages/cc/src/cc/SoundSwitchCC.ts index 1121a7070637..5a3c92bdbc85 100644 --- a/packages/cc/src/cc/SoundSwitchCC.ts +++ b/packages/cc/src/cc/SoundSwitchCC.ts @@ -436,7 +436,10 @@ duration: ${info.duration} seconds`; } } -interface SoundSwitchCCTonesNumberReportOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCTonesNumberReportOptions + extends CCCommandOptions +{ toneCount: number; } @@ -476,7 +479,8 @@ export class SoundSwitchCCTonesNumberReport extends SoundSwitchCC { @expectedCCResponse(SoundSwitchCCTonesNumberReport) export class SoundSwitchCCTonesNumberGet extends SoundSwitchCC {} -interface SoundSwitchCCToneInfoReportOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCToneInfoReportOptions extends CCCommandOptions { toneId: number; duration: number; name: string; @@ -539,7 +543,8 @@ const testResponseForSoundSwitchToneInfoGet: CCResponsePredicate< return received.toneId === sent.toneId; }; -interface SoundSwitchCCToneInfoGetOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCToneInfoGetOptions extends CCCommandOptions { toneId: number; } @@ -579,7 +584,8 @@ export class SoundSwitchCCToneInfoGet extends SoundSwitchCC { } } -interface SoundSwitchCCConfigurationSetOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCConfigurationSetOptions extends CCCommandOptions { defaultVolume: number; defaultToneId: number; } @@ -625,7 +631,10 @@ export class SoundSwitchCCConfigurationSet extends SoundSwitchCC { } } -interface SoundSwitchCCConfigurationReportOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCConfigurationReportOptions + extends CCCommandOptions +{ defaultVolume: number; defaultToneId: number; } @@ -675,7 +684,8 @@ export class SoundSwitchCCConfigurationReport extends SoundSwitchCC { @expectedCCResponse(SoundSwitchCCConfigurationReport) export class SoundSwitchCCConfigurationGet extends SoundSwitchCC {} -interface SoundSwitchCCTonePlaySetOptions extends CCCommandOptions { +// @publicAPI +export interface SoundSwitchCCTonePlaySetOptions extends CCCommandOptions { toneId: ToneId | number; // V2+ volume?: number; diff --git a/packages/cc/src/cc/SupervisionCC.ts b/packages/cc/src/cc/SupervisionCC.ts index 98d262ef17ef..903c424eb547 100644 --- a/packages/cc/src/cc/SupervisionCC.ts +++ b/packages/cc/src/cc/SupervisionCC.ts @@ -256,6 +256,7 @@ export class SupervisionCC extends CommandClass { } } +// @publicAPI export type SupervisionCCReportOptions = & { moreUpdatesFollow: boolean; @@ -359,7 +360,8 @@ export class SupervisionCCReport extends SupervisionCC { } } -interface SupervisionCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface SupervisionCCGetOptions extends CCCommandOptions { requestStatusUpdates: boolean; encapsulated: CommandClass; } diff --git a/packages/cc/src/cc/ThermostatFanModeCC.ts b/packages/cc/src/cc/ThermostatFanModeCC.ts index 6cecd995af08..4895c0d16349 100644 --- a/packages/cc/src/cc/ThermostatFanModeCC.ts +++ b/packages/cc/src/cc/ThermostatFanModeCC.ts @@ -324,7 +324,8 @@ export class ThermostatFanModeCC extends CommandClass { } } -type ThermostatFanModeCCSetOptions = CCCommandOptions & { +// @publicAPI +export type ThermostatFanModeCCSetOptions = CCCommandOptions & { mode: ThermostatFanMode; off?: boolean; }; diff --git a/packages/cc/src/cc/ThermostatModeCC.ts b/packages/cc/src/cc/ThermostatModeCC.ts index d3cfe2252d2c..55bc35a3190d 100644 --- a/packages/cc/src/cc/ThermostatModeCC.ts +++ b/packages/cc/src/cc/ThermostatModeCC.ts @@ -297,6 +297,7 @@ export class ThermostatModeCC extends CommandClass { } } +// @publicAPI export type ThermostatModeCCSetOptions = & CCCommandOptions & ( @@ -376,6 +377,7 @@ export class ThermostatModeCCSet extends ThermostatModeCC { } } +// @publicAPI export type ThermostatModeCCReportOptions = & CCCommandOptions & ( @@ -501,6 +503,7 @@ export class ThermostatModeCCReport extends ThermostatModeCC { @expectedCCResponse(ThermostatModeCCReport) export class ThermostatModeCCGet extends ThermostatModeCC {} +// @publicAPI export interface ThermostatModeCCSupportedReportOptions extends CCCommandOptions { diff --git a/packages/cc/src/cc/ThermostatSetbackCC.ts b/packages/cc/src/cc/ThermostatSetbackCC.ts index 873c7f06b355..9d348e2ce9db 100644 --- a/packages/cc/src/cc/ThermostatSetbackCC.ts +++ b/packages/cc/src/cc/ThermostatSetbackCC.ts @@ -191,7 +191,8 @@ setback state: ${setbackResp.setbackState}`; } } -interface ThermostatSetbackCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface ThermostatSetbackCCSetOptions extends CCCommandOptions { setbackType: SetbackType; setbackState: SetbackState; } diff --git a/packages/cc/src/cc/ThermostatSetpointCC.ts b/packages/cc/src/cc/ThermostatSetpointCC.ts index 4956fa39db5c..05b339a8cac4 100644 --- a/packages/cc/src/cc/ThermostatSetpointCC.ts +++ b/packages/cc/src/cc/ThermostatSetpointCC.ts @@ -603,7 +603,8 @@ maximum value: ${setpointCaps.maxValue} ${maxValueUnit}`; } } -interface ThermostatSetpointCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface ThermostatSetpointCCSetOptions extends CCCommandOptions { setpointType: ThermostatSetpointType; value: number; scale: number; @@ -665,6 +666,7 @@ export class ThermostatSetpointCCSet extends ThermostatSetpointCC { } } +// @publicAPI export interface ThermostatSetpointCCReportOptions extends CCCommandOptions { type: ThermostatSetpointType; value: number; @@ -768,7 +770,8 @@ function testResponseForThermostatSetpointGet( return received.type === sent.setpointType; } -interface ThermostatSetpointCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface ThermostatSetpointCCGetOptions extends CCCommandOptions { setpointType: ThermostatSetpointType; } @@ -813,6 +816,7 @@ export class ThermostatSetpointCCGet extends ThermostatSetpointCC { } } +// @publicAPI export interface ThermostatSetpointCCCapabilitiesReportOptions extends CCCommandOptions { @@ -908,7 +912,10 @@ export class ThermostatSetpointCCCapabilitiesReport } } -interface ThermostatSetpointCCCapabilitiesGetOptions extends CCCommandOptions { +// @publicAPI +export interface ThermostatSetpointCCCapabilitiesGetOptions + extends CCCommandOptions +{ setpointType: ThermostatSetpointType; } @@ -950,6 +957,7 @@ export class ThermostatSetpointCCCapabilitiesGet extends ThermostatSetpointCC { } } +// @publicAPI export interface ThermostatSetpointCCSupportedReportOptions extends CCCommandOptions { diff --git a/packages/cc/src/cc/TimeCC.ts b/packages/cc/src/cc/TimeCC.ts index 37d6164441f8..f3756bf9ce6d 100644 --- a/packages/cc/src/cc/TimeCC.ts +++ b/packages/cc/src/cc/TimeCC.ts @@ -221,7 +221,8 @@ export class TimeCC extends CommandClass { } } -interface TimeCCTimeReportOptions extends CCCommandOptions { +// @publicAPI +export interface TimeCCTimeReportOptions extends CCCommandOptions { hour: number; minute: number; second: number; @@ -282,7 +283,8 @@ export class TimeCCTimeReport extends TimeCC { @expectedCCResponse(TimeCCTimeReport) export class TimeCCTimeGet extends TimeCC {} -interface TimeCCDateReportOptions extends CCCommandOptions { +// @publicAPI +export interface TimeCCDateReportOptions extends CCCommandOptions { year: number; month: number; day: number; @@ -343,7 +345,8 @@ export class TimeCCDateReport extends TimeCC { @expectedCCResponse(TimeCCDateReport) export class TimeCCDateGet extends TimeCC {} -interface TimeCCTimeOffsetSetOptions extends CCCommandOptions { +// @publicAPI +export interface TimeCCTimeOffsetSetOptions extends CCCommandOptions { standardOffset: number; dstOffset: number; dstStart: Date; @@ -410,7 +413,8 @@ export class TimeCCTimeOffsetSet extends TimeCC { } } -interface TimeCCTimeOffsetReportOptions extends CCCommandOptions { +// @publicAPI +export interface TimeCCTimeOffsetReportOptions extends CCCommandOptions { standardOffset: number; dstOffset: number; dstStart: Date; diff --git a/packages/cc/src/cc/TimeParametersCC.ts b/packages/cc/src/cc/TimeParametersCC.ts index 8e8258e96573..61bcd740ba17 100644 --- a/packages/cc/src/cc/TimeParametersCC.ts +++ b/packages/cc/src/cc/TimeParametersCC.ts @@ -301,7 +301,8 @@ export class TimeParametersCCReport extends TimeParametersCC { @expectedCCResponse(TimeParametersCCReport) export class TimeParametersCCGet extends TimeParametersCC {} -interface TimeParametersCCSetOptions extends CCCommandOptions { +// @publicAPI +export interface TimeParametersCCSetOptions extends CCCommandOptions { dateAndTime: Date; useLocalTime?: boolean; } diff --git a/packages/cc/src/cc/TransportServiceCC.ts b/packages/cc/src/cc/TransportServiceCC.ts index cf589980a29a..48f8f00e59eb 100644 --- a/packages/cc/src/cc/TransportServiceCC.ts +++ b/packages/cc/src/cc/TransportServiceCC.ts @@ -84,7 +84,10 @@ export class TransportServiceCC extends CommandClass } } -interface TransportServiceCCFirstSegmentOptions extends CCCommandOptions { +// @publicAPI +export interface TransportServiceCCFirstSegmentOptions + extends CCCommandOptions +{ datagramSize: number; sessionId: number; headerExtension?: Buffer | undefined; @@ -231,7 +234,8 @@ export class TransportServiceCCFirstSegment extends TransportServiceCC { } } -interface TransportServiceCCSubsequentSegmentOptions +// @publicAPI +export interface TransportServiceCCSubsequentSegmentOptions extends TransportServiceCCFirstSegmentOptions { datagramOffset: number; @@ -432,7 +436,10 @@ export class TransportServiceCCSubsequentSegment extends TransportServiceCC { } } -interface TransportServiceCCSegmentRequestOptions extends CCCommandOptions { +// @publicAPI +export interface TransportServiceCCSegmentRequestOptions + extends CCCommandOptions +{ sessionId: number; datagramOffset: number; } @@ -496,7 +503,10 @@ export class TransportServiceCCSegmentRequest extends TransportServiceCC { } } -interface TransportServiceCCSegmentCompleteOptions extends CCCommandOptions { +// @publicAPI +export interface TransportServiceCCSegmentCompleteOptions + extends CCCommandOptions +{ sessionId: number; } @@ -532,7 +542,8 @@ export class TransportServiceCCSegmentComplete extends TransportServiceCC { } } -interface TransportServiceCCSegmentWaitOptions extends CCCommandOptions { +// @publicAPI +export interface TransportServiceCCSegmentWaitOptions extends CCCommandOptions { pendingSegments: number; } diff --git a/packages/cc/src/cc/UserCodeCC.ts b/packages/cc/src/cc/UserCodeCC.ts index de5709e7e258..522a37debe3e 100644 --- a/packages/cc/src/cc/UserCodeCC.ts +++ b/packages/cc/src/cc/UserCodeCC.ts @@ -1146,7 +1146,8 @@ export class UserCodeCC extends CommandClass { } } -type UserCodeCCSetOptions = +// @publicAPI +export type UserCodeCCSetOptions = | { userId: 0; userIdStatus: UserIDStatus.Available; @@ -1251,6 +1252,7 @@ export class UserCodeCCSet extends UserCodeCC { } } +// @publicAPI export interface UserCodeCCReportOptions extends CCCommandOptions { userId: number; userIdStatus: UserIDStatus; @@ -1359,7 +1361,8 @@ export class UserCodeCCReport extends UserCodeCC } } -interface UserCodeCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface UserCodeCCGetOptions extends CCCommandOptions { userId: number; } @@ -1394,6 +1397,7 @@ export class UserCodeCCGet extends UserCodeCC { } } +// @publicAPI export interface UserCodeCCUsersNumberReportOptions extends CCCommandOptions { supportedUsers: number; } @@ -1445,6 +1449,7 @@ export class UserCodeCCUsersNumberReport extends UserCodeCC { @expectedCCResponse(UserCodeCCUsersNumberReport) export class UserCodeCCUsersNumberGet extends UserCodeCC {} +// @publicAPI export interface UserCodeCCCapabilitiesReportOptions extends CCCommandOptions { supportsMasterCode: boolean; supportsMasterCodeDeactivation: boolean; @@ -1627,7 +1632,8 @@ export class UserCodeCCCapabilitiesReport extends UserCodeCC { @expectedCCResponse(UserCodeCCCapabilitiesReport) export class UserCodeCCCapabilitiesGet extends UserCodeCC {} -interface UserCodeCCKeypadModeSetOptions extends CCCommandOptions { +// @publicAPI +export interface UserCodeCCKeypadModeSetOptions extends CCCommandOptions { keypadMode: KeypadMode; } @@ -1664,6 +1670,7 @@ export class UserCodeCCKeypadModeSet extends UserCodeCC { } } +// @publicAPI export interface UserCodeCCKeypadModeReportOptions extends CCCommandOptions { keypadMode: KeypadMode; } @@ -1728,6 +1735,7 @@ export class UserCodeCCKeypadModeReport extends UserCodeCC { @expectedCCResponse(UserCodeCCKeypadModeReport) export class UserCodeCCKeypadModeGet extends UserCodeCC {} +// @publicAPI export interface UserCodeCCMasterCodeSetOptions extends CCCommandOptions { masterCode: string; } @@ -1772,6 +1780,7 @@ export class UserCodeCCMasterCodeSet extends UserCodeCC { } } +// @publicAPI export interface UserCodeCCMasterCodeReportOptions extends CCCommandOptions { masterCode: string; } @@ -1820,6 +1829,7 @@ export class UserCodeCCMasterCodeReport extends UserCodeCC { @expectedCCResponse(UserCodeCCMasterCodeReport) export class UserCodeCCMasterCodeGet extends UserCodeCC {} +// @publicAPI export interface UserCodeCCUserCodeChecksumReportOptions extends CCCommandOptions { @@ -1864,6 +1874,7 @@ export class UserCodeCCUserCodeChecksumReport extends UserCodeCC { @expectedCCResponse(UserCodeCCUserCodeChecksumReport) export class UserCodeCCUserCodeChecksumGet extends UserCodeCC {} +// @publicAPI export interface UserCodeCCExtendedUserCodeSetOptions extends CCCommandOptions { userCodes: UserCodeCCSetOptions[]; } @@ -1996,7 +2007,8 @@ export class UserCodeCCExtendedUserCodeReport extends UserCodeCC { } } -interface UserCodeCCExtendedUserCodeGetOptions extends CCCommandOptions { +// @publicAPI +export interface UserCodeCCExtendedUserCodeGetOptions extends CCCommandOptions { userId: number; reportMore?: boolean; } diff --git a/packages/cc/src/cc/VersionCC.ts b/packages/cc/src/cc/VersionCC.ts index fda2b6758b2f..d96ac2f276da 100644 --- a/packages/cc/src/cc/VersionCC.ts +++ b/packages/cc/src/cc/VersionCC.ts @@ -591,6 +591,7 @@ export class VersionCC extends CommandClass { } } +// @publicAPI export interface VersionCCReportOptions { libraryType: ZWaveLibraryTypes; protocolVersion: string; @@ -726,7 +727,8 @@ export class VersionCCReport extends VersionCC { @expectedCCResponse(VersionCCReport) export class VersionCCGet extends VersionCC {} -interface VersionCCCommandClassReportOptions extends CCCommandOptions { +// @publicAPI +export interface VersionCCCommandClassReportOptions extends CCCommandOptions { requestedCC: CommandClasses; ccVersion: number; } @@ -769,7 +771,8 @@ export class VersionCCCommandClassReport extends VersionCC { } } -interface VersionCCCommandClassGetOptions extends CCCommandOptions { +// @publicAPI +export interface VersionCCCommandClassGetOptions extends CCCommandOptions { requestedCC: CommandClasses; } diff --git a/packages/cc/src/cc/WakeUpCC.ts b/packages/cc/src/cc/WakeUpCC.ts index ade61ecbdd47..9c4a17fc4da5 100644 --- a/packages/cc/src/cc/WakeUpCC.ts +++ b/packages/cc/src/cc/WakeUpCC.ts @@ -346,7 +346,8 @@ controller node: ${wakeupResp.controllerNodeId}`; } } -interface WakeUpCCIntervalSetOptions extends CCCommandOptions { +// @publicAPI +export interface WakeUpCCIntervalSetOptions extends CCCommandOptions { wakeUpInterval: number; controllerNodeId: number; } diff --git a/packages/cc/src/cc/WindowCoveringCC.ts b/packages/cc/src/cc/WindowCoveringCC.ts index 7e557fc27ae5..e77995cb822d 100644 --- a/packages/cc/src/cc/WindowCoveringCC.ts +++ b/packages/cc/src/cc/WindowCoveringCC.ts @@ -675,6 +675,7 @@ ${ } } +// @publicAPI export interface WindowCoveringCCSupportedReportOptions extends CCCommandOptions { @@ -798,7 +799,8 @@ export class WindowCoveringCCReport extends WindowCoveringCC { } } -interface WindowCoveringCCGetOptions extends CCCommandOptions { +// @publicAPI +export interface WindowCoveringCCGetOptions extends CCCommandOptions { parameter: WindowCoveringParameter; } @@ -847,6 +849,7 @@ export class WindowCoveringCCGet extends WindowCoveringCC { } } +// @publicAPI export interface WindowCoveringCCSetOptions extends CCCommandOptions { targetValues: { parameter: WindowCoveringParameter; @@ -917,6 +920,7 @@ export class WindowCoveringCCSet extends WindowCoveringCC { } } +// @publicAPI export interface WindowCoveringCCStartLevelChangeOptions extends CCCommandOptions { @@ -979,7 +983,10 @@ export class WindowCoveringCCStartLevelChange extends WindowCoveringCC { } } -interface WindowCoveringCCStopLevelChangeOptions extends CCCommandOptions { +// @publicAPI +export interface WindowCoveringCCStopLevelChangeOptions + extends CCCommandOptions +{ parameter: WindowCoveringParameter; } diff --git a/packages/cc/src/cc/ZWavePlusCC.ts b/packages/cc/src/cc/ZWavePlusCC.ts index e034f09c4d8d..9600c97499ba 100644 --- a/packages/cc/src/cc/ZWavePlusCC.ts +++ b/packages/cc/src/cc/ZWavePlusCC.ts @@ -160,6 +160,7 @@ user icon: ${num2hex(zwavePlusResponse.userIcon)}`; } } +// @publicAPI export interface ZWavePlusCCReportOptions { zwavePlusVersion: number; nodeType: ZWavePlusNodeType; diff --git a/packages/cc/src/cc/ZWaveProtocolCC.ts b/packages/cc/src/cc/ZWaveProtocolCC.ts index df7170df5d93..d6dd690293d9 100644 --- a/packages/cc/src/cc/ZWaveProtocolCC.ts +++ b/packages/cc/src/cc/ZWaveProtocolCC.ts @@ -67,7 +67,8 @@ export class ZWaveProtocolCC extends CommandClass { declare ccCommand: ZWaveProtocolCommand; } -interface ZWaveProtocolCCNodeInformationFrameOptions +// @publicAPI +export interface ZWaveProtocolCCNodeInformationFrameOptions extends CCCommandOptions, NodeInformationFrame {} @@ -131,7 +132,8 @@ export class ZWaveProtocolCCRequestNodeInformationFrame extends ZWaveProtocolCC {} -interface ZWaveProtocolCCAssignIDsOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCAssignIDsOptions extends CCCommandOptions { assignedNodeId: number; homeId: number; } @@ -166,7 +168,10 @@ export class ZWaveProtocolCCAssignIDs extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCFindNodesInRangeOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCFindNodesInRangeOptions + extends CCCommandOptions +{ candidateNodeIds: number[]; wakeUpTime: WakeUpTime; dataRate?: ZWaveDataRate; @@ -233,7 +238,8 @@ export class ZWaveProtocolCCFindNodesInRange extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCRangeInfoOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCRangeInfoOptions extends CCCommandOptions { neighborNodeIds: number[]; wakeUpTime?: WakeUpTime; } @@ -286,7 +292,10 @@ export class ZWaveProtocolCCRangeInfo extends ZWaveProtocolCC { @expectedCCResponse(ZWaveProtocolCCRangeInfo) export class ZWaveProtocolCCGetNodesInRange extends ZWaveProtocolCC {} -interface ZWaveProtocolCCCommandCompleteOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCCommandCompleteOptions + extends CCCommandOptions +{ sequenceNumber: number; } @@ -315,7 +324,10 @@ export class ZWaveProtocolCCCommandComplete extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCTransferPresentationOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCTransferPresentationOptions + extends CCCommandOptions +{ supportsNWI: boolean; includeNode: boolean; excludeNode: boolean; @@ -363,7 +375,8 @@ export class ZWaveProtocolCCTransferPresentation extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCTransferNodeInformationOptions +// @publicAPI +export interface ZWaveProtocolCCTransferNodeInformationOptions extends CCCommandOptions, NodeProtocolInfoAndDeviceClass { sequenceNumber: number; @@ -434,7 +447,8 @@ export class ZWaveProtocolCCTransferNodeInformation extends ZWaveProtocolCC } } -interface ZWaveProtocolCCTransferRangeInformationOptions +// @publicAPI +export interface ZWaveProtocolCCTransferRangeInformationOptions extends CCCommandOptions { sequenceNumber: number; @@ -485,7 +499,8 @@ export class ZWaveProtocolCCTransferRangeInformation extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCTransferEndOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCTransferEndOptions extends CCCommandOptions { status: NetworkTransferStatus; } @@ -514,7 +529,10 @@ export class ZWaveProtocolCCTransferEnd extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCAssignReturnRouteOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCAssignReturnRouteOptions + extends CCCommandOptions +{ destinationNodeId: number; routeIndex: number; repeaters: number[]; @@ -578,7 +596,8 @@ export class ZWaveProtocolCCAssignReturnRoute extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCNewNodeRegisteredOptions +// @publicAPI +export interface ZWaveProtocolCCNewNodeRegisteredOptions extends CCCommandOptions, NodeInformationFrame { newNodeId: number; @@ -645,7 +664,10 @@ export class ZWaveProtocolCCNewNodeRegistered extends ZWaveProtocolCC } } -interface ZWaveProtocolCCNewRangeRegisteredOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCNewRangeRegisteredOptions + extends CCCommandOptions +{ testedNodeId: number; neighborNodeIds: number[]; } @@ -685,7 +707,8 @@ export class ZWaveProtocolCCNewRangeRegistered extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCTransferNewPrimaryControllerCompleteOptions +// @publicAPI +export interface ZWaveProtocolCCTransferNewPrimaryControllerCompleteOptions extends CCCommandOptions { genericDeviceClass: number; @@ -723,7 +746,8 @@ export class ZWaveProtocolCCAutomaticControllerUpdateStart extends ZWaveProtocolCC {} -interface ZWaveProtocolCCSUCNodeIDOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCSUCNodeIDOptions extends CCCommandOptions { sucNodeId: number; isSIS: boolean; } @@ -757,7 +781,8 @@ export class ZWaveProtocolCCSUCNodeID extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCSetSUCOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCSetSUCOptions extends CCCommandOptions { enableSIS: boolean; } @@ -788,7 +813,8 @@ export class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCSetSUCAckOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCSetSUCAckOptions extends CCCommandOptions { accepted: boolean; isSIS: boolean; } @@ -830,7 +856,10 @@ export class ZWaveProtocolCCAssignSUCReturnRoute extends ZWaveProtocolCCAssignReturnRoute {} -interface ZWaveProtocolCCStaticRouteRequestOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCStaticRouteRequestOptions + extends CCCommandOptions +{ nodeIds: number[]; } @@ -870,7 +899,8 @@ export class ZWaveProtocolCCStaticRouteRequest extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCLostOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCLostOptions extends CCCommandOptions { lostNodeId: number; } @@ -899,7 +929,8 @@ export class ZWaveProtocolCCLost extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCAcceptLostOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCAcceptLostOptions extends CCCommandOptions { accepted: boolean; } @@ -931,7 +962,8 @@ export class ZWaveProtocolCCAcceptLost extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCNOPPowerOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCNOPPowerOptions extends CCCommandOptions { powerDampening: number; } @@ -990,7 +1022,8 @@ export class ZWaveProtocolCCNOPPower extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCReservedIDsOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCReservedIDsOptions extends CCCommandOptions { reservedNodeIDs: number[]; } @@ -1026,7 +1059,8 @@ export class ZWaveProtocolCCReservedIDs extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCReserveNodeIDsOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCReserveNodeIDsOptions extends CCCommandOptions { numNodeIDs: number; } @@ -1056,7 +1090,10 @@ export class ZWaveProtocolCCReserveNodeIDs extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCNodesExistReplyOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCNodesExistReplyOptions + extends CCCommandOptions +{ nodeMaskType: number; nodeListUpdated: boolean; } @@ -1099,7 +1136,8 @@ function testResponseForZWaveProtocolNodesExist( return received.nodeMaskType === sent.nodeMaskType; } -interface ZWaveProtocolCCNodesExistOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCNodesExistOptions extends CCCommandOptions { nodeMaskType: number; nodeIDs: number[]; } @@ -1142,7 +1180,8 @@ export class ZWaveProtocolCCNodesExist extends ZWaveProtocolCC { } } -interface ZWaveProtocolCCSetNWIModeOptions extends CCCommandOptions { +// @publicAPI +export interface ZWaveProtocolCCSetNWIModeOptions extends CCCommandOptions { enabled: boolean; timeoutMinutes?: number; } @@ -1183,7 +1222,8 @@ export class ZWaveProtocolCCExcludeRequest extends ZWaveProtocolCCNodeInformationFrame {} -interface ZWaveProtocolCCAssignReturnRoutePriorityOptions +// @publicAPI +export interface ZWaveProtocolCCAssignReturnRoutePriorityOptions extends CCCommandOptions { targetNodeId: number; @@ -1223,7 +1263,8 @@ export class ZWaveProtocolCCAssignSUCReturnRoutePriority extends ZWaveProtocolCCAssignReturnRoutePriority {} -interface ZWaveProtocolCCSmartStartIncludedNodeInformationOptions +// @publicAPI +export interface ZWaveProtocolCCSmartStartIncludedNodeInformationOptions extends CCCommandOptions { nwiHomeId: Buffer; diff --git a/packages/cc/src/cc/index.ts b/packages/cc/src/cc/index.ts index 4385a22ae68d..709b3f9fce7c 100644 --- a/packages/cc/src/cc/index.ts +++ b/packages/cc/src/cc/index.ts @@ -1,6 +1,7 @@ // This file is auto-generated by maintenance/generateCCExports.ts // Do not edit it by hand or your changes will be lost! +export type { AlarmSensorCCGetOptions } from "./AlarmSensorCC"; export { AlarmSensorCC, AlarmSensorCCGet, @@ -9,6 +10,13 @@ export { AlarmSensorCCSupportedReport, AlarmSensorCCValues, } from "./AlarmSensorCC"; +export type { + AssociationCCGetOptions, + AssociationCCRemoveOptions, + AssociationCCReportSpecificOptions, + AssociationCCSetOptions, + AssociationCCSupportedGroupingsReportOptions, +} from "./AssociationCC"; export { AssociationCC, AssociationCCGet, @@ -19,6 +27,14 @@ export { AssociationCCSupportedGroupingsReport, AssociationCCValues, } from "./AssociationCC"; +export type { + AssociationGroupInfoCCCommandListGetOptions, + AssociationGroupInfoCCCommandListReportOptions, + AssociationGroupInfoCCInfoGetOptions, + AssociationGroupInfoCCInfoReportSpecificOptions, + AssociationGroupInfoCCNameGetOptions, + AssociationGroupInfoCCNameReportOptions, +} from "./AssociationGroupInfoCC"; export { AssociationGroupInfoCC, AssociationGroupInfoCCCommandListGet, @@ -29,6 +45,11 @@ export { AssociationGroupInfoCCNameReport, AssociationGroupInfoCCValues, } from "./AssociationGroupInfoCC"; +export type { + BarrierOperatorCCEventSignalingGetOptions, + BarrierOperatorCCEventSignalingSetOptions, + BarrierOperatorCCSetOptions, +} from "./BarrierOperatorCC"; export { BarrierOperatorCC, BarrierOperatorCCEventSignalingGet, @@ -41,6 +62,7 @@ export { BarrierOperatorCCSignalingCapabilitiesReport, BarrierOperatorCCValues, } from "./BarrierOperatorCC"; +export type { BasicCCReportOptions, BasicCCSetOptions } from "./BasicCC"; export { BasicCC, BasicCCGet, @@ -48,6 +70,7 @@ export { BasicCCSet, BasicCCValues, } from "./BasicCC"; +export type { BatteryCCReportOptions } from "./BatteryCC"; export { BatteryCC, BatteryCCGet, @@ -56,6 +79,10 @@ export { BatteryCCReport, BatteryCCValues, } from "./BatteryCC"; +export type { + BinarySensorCCGetOptions, + BinarySensorCCReportOptions, +} from "./BinarySensorCC"; export { BinarySensorCC, BinarySensorCCGet, @@ -64,6 +91,10 @@ export { BinarySensorCCSupportedReport, BinarySensorCCValues, } from "./BinarySensorCC"; +export type { + BinarySwitchCCReportOptions, + BinarySwitchCCSetOptions, +} from "./BinarySwitchCC"; export { BinarySwitchCC, BinarySwitchCCGet, @@ -71,7 +102,9 @@ export { BinarySwitchCCSet, BinarySwitchCCValues, } from "./BinarySwitchCC"; +export type { CRC16CCCommandEncapsulationOptions } from "./CRC16CC"; export { CRC16CC, CRC16CCCommandEncapsulation } from "./CRC16CC"; +export type { CentralSceneCCConfigurationSetOptions } from "./CentralSceneCC"; export { CentralSceneCC, CentralSceneCCConfigurationGet, @@ -82,6 +115,11 @@ export { CentralSceneCCSupportedReport, CentralSceneCCValues, } from "./CentralSceneCC"; +export type { + ClimateControlScheduleCCGetOptions, + ClimateControlScheduleCCOverrideSetOptions, + ClimateControlScheduleCCSetOptions, +} from "./ClimateControlScheduleCC"; export { ClimateControlScheduleCC, ClimateControlScheduleCCChangedGet, @@ -94,7 +132,14 @@ export { ClimateControlScheduleCCSet, ClimateControlScheduleCCValues, } from "./ClimateControlScheduleCC"; +export type { ClockCCSetOptions } from "./ClockCC"; export { ClockCC, ClockCCGet, ClockCCReport, ClockCCSet } from "./ClockCC"; +export type { + ColorSwitchCCGetOptions, + ColorSwitchCCSetOptions, + ColorSwitchCCStartLevelChangeOptions, + ColorSwitchCCStopLevelChangeOptions, +} from "./ColorSwitchCC"; export { ColorSwitchCC, ColorSwitchCCGet, @@ -108,10 +153,14 @@ export { } from "./ColorSwitchCC"; export type { ConfigurationCCAPISetOptions, + ConfigurationCCBulkGetOptions, + ConfigurationCCBulkSetOptions, + ConfigurationCCGetOptions, ConfigurationCCInfoReportOptions, ConfigurationCCNameReportOptions, ConfigurationCCPropertiesReportOptions, ConfigurationCCReportOptions, + ConfigurationCCSetOptions, } from "./ConfigurationCC"; export { ConfigurationCC, @@ -134,6 +183,10 @@ export { DeviceResetLocallyCC, DeviceResetLocallyCCNotification, } from "./DeviceResetLocallyCC"; +export type { + DoorLockCCConfigurationSetOptions, + DoorLockCCOperationSetOptions, +} from "./DoorLockCC"; export { DoorLockCC, DoorLockCCCapabilitiesGet, @@ -146,6 +199,7 @@ export { DoorLockCCOperationSet, DoorLockCCValues, } from "./DoorLockCC"; +export type { DoorLockLoggingCCRecordGetOptions } from "./DoorLockLoggingCC"; export { DoorLockLoggingCC, DoorLockLoggingCCRecordGet, @@ -154,12 +208,17 @@ export { DoorLockLoggingCCRecordsSupportedReport, DoorLockLoggingCCValues, } from "./DoorLockLoggingCC"; +export type { + EnergyProductionCCGetOptions, + EnergyProductionCCReportOptions, +} from "./EnergyProductionCC"; export { EnergyProductionCC, EnergyProductionCCGet, EnergyProductionCCReport, EnergyProductionCCValues, } from "./EnergyProductionCC"; +export type { EntryControlCCConfigurationSetOptions } from "./EntryControlCC"; export { EntryControlCC, EntryControlCCConfigurationGet, @@ -172,6 +231,12 @@ export { EntryControlCCNotification, EntryControlCCValues, } from "./EntryControlCC"; +export type { + FirmwareUpdateMetaDataCCActivationSetOptions, + FirmwareUpdateMetaDataCCPrepareGetOptions, + FirmwareUpdateMetaDataCCReportOptions, + FirmwareUpdateMetaDataCCRequestGetOptions, +} from "./FirmwareUpdateMetaDataCC"; export { FirmwareUpdateMetaDataCC, FirmwareUpdateMetaDataCCActivationReport, @@ -188,6 +253,7 @@ export { FirmwareUpdateMetaDataCCValues, } from "./FirmwareUpdateMetaDataCC"; export { HailCC } from "./HailCC"; +export type { HumidityControlModeCCSetOptions } from "./HumidityControlModeCC"; export { HumidityControlModeCC, HumidityControlModeCCGet, @@ -203,6 +269,12 @@ export { HumidityControlOperatingStateCCReport, HumidityControlOperatingStateCCValues, } from "./HumidityControlOperatingStateCC"; +export type { + HumidityControlSetpointCCCapabilitiesGetOptions, + HumidityControlSetpointCCGetOptions, + HumidityControlSetpointCCScaleSupportedGetOptions, + HumidityControlSetpointCCSetOptions, +} from "./HumidityControlSetpointCC"; export { HumidityControlSetpointCC, HumidityControlSetpointCCCapabilitiesGet, @@ -216,11 +288,23 @@ export { HumidityControlSetpointCCSupportedReport, HumidityControlSetpointCCValues, } from "./HumidityControlSetpointCC"; +export type { + InclusionControllerCCCompleteOptions, + InclusionControllerCCInitiateOptions, +} from "./InclusionControllerCC"; export { InclusionControllerCC, InclusionControllerCCComplete, InclusionControllerCCInitiate, } from "./InclusionControllerCC"; +export type { + IndicatorCCDescriptionGetOptions, + IndicatorCCGetOptions, + IndicatorCCReportSpecificOptions, + IndicatorCCSetOptions, + IndicatorCCSupportedGetOptions, + IndicatorCCSupportedReportOptions, +} from "./IndicatorCC"; export { IndicatorCC, IndicatorCCDescriptionGet, @@ -234,7 +318,14 @@ export { } from "./IndicatorCC"; export type { IrrigationCCSystemConfigSetOptions, + IrrigationCCSystemShutoffOptions, + IrrigationCCValveConfigGetOptions, IrrigationCCValveConfigSetOptions, + IrrigationCCValveInfoGetOptions, + IrrigationCCValveRunOptions, + IrrigationCCValveTableGetOptions, + IrrigationCCValveTableRunOptions, + IrrigationCCValveTableSetOptions, } from "./IrrigationCC"; export { IrrigationCC, @@ -258,6 +349,7 @@ export { IrrigationCCValveTableRun, IrrigationCCValveTableSet, } from "./IrrigationCC"; +export type { LanguageCCSetOptions } from "./LanguageCC"; export { LanguageCC, LanguageCCGet, @@ -265,6 +357,7 @@ export { LanguageCCSet, LanguageCCValues, } from "./LanguageCC"; +export type { LockCCSetOptions } from "./LockCC"; export { LockCC, LockCCGet, @@ -272,7 +365,12 @@ export { LockCCSet, LockCCValues, } from "./LockCC"; +export type { ManufacturerProprietaryCCOptions } from "./ManufacturerProprietaryCC"; export { ManufacturerProprietaryCC } from "./ManufacturerProprietaryCC"; +export type { + ManufacturerSpecificCCDeviceSpecificGetOptions, + ManufacturerSpecificCCReportOptions, +} from "./ManufacturerSpecificCC"; export { ManufacturerSpecificCC, ManufacturerSpecificCCDeviceSpecificGet, @@ -281,6 +379,11 @@ export { ManufacturerSpecificCCReport, ManufacturerSpecificCCValues, } from "./ManufacturerSpecificCC"; +export type { + MeterCCGetOptions, + MeterCCReportOptions, + MeterCCResetOptions, +} from "./MeterCC"; export { MeterCC, MeterCCGet, @@ -290,6 +393,11 @@ export { MeterCCSupportedReport, MeterCCValues, } from "./MeterCC"; +export type { + MultiChannelAssociationCCGetOptions, + MultiChannelAssociationCCRemoveOptions, + MultiChannelAssociationCCSetOptions, +} from "./MultiChannelAssociationCC"; export { MultiChannelAssociationCC, MultiChannelAssociationCCGet, @@ -300,6 +408,17 @@ export { MultiChannelAssociationCCSupportedGroupingsReport, MultiChannelAssociationCCValues, } from "./MultiChannelAssociationCC"; +export type { + MultiChannelCCAggregatedMembersGetOptions, + MultiChannelCCCapabilityGetOptions, + MultiChannelCCCapabilityReportOptions, + MultiChannelCCCommandEncapsulationOptions, + MultiChannelCCEndPointFindOptions, + MultiChannelCCEndPointFindReportOptions, + MultiChannelCCEndPointReportOptions, + MultiChannelCCV1CommandEncapsulationOptions, + MultiChannelCCV1GetOptions, +} from "./MultiChannelCC"; export { MultiChannelCC, MultiChannelCCAggregatedMembersGet, @@ -316,11 +435,16 @@ export { MultiChannelCCV1Report, MultiChannelCCValues, } from "./MultiChannelCC"; +export type { MultiCommandCCCommandEncapsulationOptions } from "./MultiCommandCC"; export { MultiCommandCC, MultiCommandCCCommandEncapsulation, } from "./MultiCommandCC"; -export type { MultilevelSensorCCReportOptions } from "./MultilevelSensorCC"; +export type { + MultilevelSensorCCGetOptions, + MultilevelSensorCCGetSupportedScaleOptions, + MultilevelSensorCCReportOptions, +} from "./MultilevelSensorCC"; export { MultilevelSensorCC, MultilevelSensorCCGet, @@ -331,6 +455,11 @@ export { MultilevelSensorCCSupportedSensorReport, MultilevelSensorCCValues, } from "./MultilevelSensorCC"; +export type { + MultilevelSwitchCCReportOptions, + MultilevelSwitchCCSetOptions, + MultilevelSwitchCCStartLevelChangeOptions, +} from "./MultilevelSwitchCC"; export { MultilevelSwitchCC, MultilevelSwitchCCGet, @@ -343,6 +472,10 @@ export { MultilevelSwitchCCValues, } from "./MultilevelSwitchCC"; export { NoOperationCC, messageIsPing } from "./NoOperationCC"; +export type { + NodeNamingAndLocationCCLocationSetOptions, + NodeNamingAndLocationCCNameSetOptions, +} from "./NodeNamingCC"; export { NodeNamingAndLocationCC, NodeNamingAndLocationCCLocationGet, @@ -353,6 +486,14 @@ export { NodeNamingAndLocationCCNameSet, NodeNamingAndLocationCCValues, } from "./NodeNamingCC"; +export type { + NotificationCCEventSupportedGetOptions, + NotificationCCEventSupportedReportOptions, + NotificationCCGetOptions, + NotificationCCReportOptions, + NotificationCCSetOptions, + NotificationCCSupportedReportOptions, +} from "./NotificationCC"; export { NotificationCC, NotificationCCEventSupportedGet, @@ -364,6 +505,10 @@ export { NotificationCCSupportedReport, NotificationCCValues, } from "./NotificationCC"; +export type { + PowerlevelCCSetOptions, + PowerlevelCCTestNodeSetOptions, +} from "./PowerlevelCC"; export { PowerlevelCC, PowerlevelCCGet, @@ -373,6 +518,11 @@ export { PowerlevelCCTestNodeReport, PowerlevelCCTestNodeSet, } from "./PowerlevelCC"; +export type { + ProtectionCCExclusiveControlSetOptions, + ProtectionCCSetOptions, + ProtectionCCTimeoutSetOptions, +} from "./ProtectionCC"; export { ProtectionCC, ProtectionCCExclusiveControlGet, @@ -388,11 +538,16 @@ export { ProtectionCCTimeoutSet, ProtectionCCValues, } from "./ProtectionCC"; +export type { SceneActivationCCSetOptions } from "./SceneActivationCC"; export { SceneActivationCC, SceneActivationCCSet, SceneActivationCCValues, } from "./SceneActivationCC"; +export type { + SceneActuatorConfigurationCCGetOptions, + SceneActuatorConfigurationCCSetOptions, +} from "./SceneActuatorConfigurationCC"; export { SceneActuatorConfigurationCC, SceneActuatorConfigurationCCGet, @@ -400,6 +555,10 @@ export { SceneActuatorConfigurationCCSet, SceneActuatorConfigurationCCValues, } from "./SceneActuatorConfigurationCC"; +export type { + SceneControllerConfigurationCCGetOptions, + SceneControllerConfigurationCCSetOptions, +} from "./SceneControllerConfigurationCC"; export { SceneControllerConfigurationCC, SceneControllerConfigurationCCGet, @@ -408,8 +567,19 @@ export { SceneControllerConfigurationCCValues, } from "./SceneControllerConfigurationCC"; export type { + ScheduleEntryLockCCDailyRepeatingScheduleGetOptions, + ScheduleEntryLockCCDailyRepeatingScheduleReportOptions, ScheduleEntryLockCCDailyRepeatingScheduleSetOptions, + ScheduleEntryLockCCEnableAllSetOptions, + ScheduleEntryLockCCEnableSetOptions, + ScheduleEntryLockCCSupportedReportOptions, + ScheduleEntryLockCCTimeOffsetReportOptions, + ScheduleEntryLockCCTimeOffsetSetOptions, + ScheduleEntryLockCCWeekDayScheduleGetOptions, + ScheduleEntryLockCCWeekDayScheduleReportOptions, ScheduleEntryLockCCWeekDayScheduleSetOptions, + ScheduleEntryLockCCYearDayScheduleGetOptions, + ScheduleEntryLockCCYearDayScheduleReportOptions, ScheduleEntryLockCCYearDayScheduleSetOptions, } from "./ScheduleEntryLockCC"; export { @@ -432,6 +602,20 @@ export { ScheduleEntryLockCCYearDayScheduleReport, ScheduleEntryLockCCYearDayScheduleSet, } from "./ScheduleEntryLockCC"; +export type { + DecryptionResult, + MulticastContext, + Security2CCCommandsSupportedReportOptions, + Security2CCKEXFailOptions, + Security2CCKEXReportOptions, + Security2CCKEXSetOptions, + Security2CCMessageEncapsulationOptions, + Security2CCNetworkKeyGetOptions, + Security2CCNetworkKeyReportOptions, + Security2CCNonceReportOptions, + Security2CCPublicKeyReportOptions, + Security2CCTransferEndOptions, +} from "./Security2CC"; export { Security2CC, Security2CCCommandsSupportedGet, @@ -449,6 +633,11 @@ export { Security2CCPublicKeyReport, Security2CCTransferEnd, } from "./Security2CC"; +export type { + SecurityCCCommandEncapsulationOptions, + SecurityCCCommandsSupportedReportOptions, + SecurityCCNetworkKeySetOptions, +} from "./SecurityCC"; export { SecurityCC, SecurityCCCommandEncapsulation, @@ -463,6 +652,14 @@ export { SecurityCCSchemeInherit, SecurityCCSchemeReport, } from "./SecurityCC"; +export type { + SoundSwitchCCConfigurationReportOptions, + SoundSwitchCCConfigurationSetOptions, + SoundSwitchCCToneInfoGetOptions, + SoundSwitchCCToneInfoReportOptions, + SoundSwitchCCTonePlaySetOptions, + SoundSwitchCCTonesNumberReportOptions, +} from "./SoundSwitchCC"; export { SoundSwitchCC, SoundSwitchCCConfigurationGet, @@ -477,12 +674,17 @@ export { SoundSwitchCCTonesNumberReport, SoundSwitchCCValues, } from "./SoundSwitchCC"; +export type { + SupervisionCCGetOptions, + SupervisionCCReportOptions, +} from "./SupervisionCC"; export { SupervisionCC, SupervisionCCGet, SupervisionCCReport, SupervisionCCValues, } from "./SupervisionCC"; +export type { ThermostatFanModeCCSetOptions } from "./ThermostatFanModeCC"; export { ThermostatFanModeCC, ThermostatFanModeCCGet, @@ -498,6 +700,11 @@ export { ThermostatFanStateCCReport, ThermostatFanStateCCValues, } from "./ThermostatFanStateCC"; +export type { + ThermostatModeCCReportOptions, + ThermostatModeCCSetOptions, + ThermostatModeCCSupportedReportOptions, +} from "./ThermostatModeCC"; export { ThermostatModeCC, ThermostatModeCCGet, @@ -513,6 +720,7 @@ export { ThermostatOperatingStateCCReport, ThermostatOperatingStateCCValues, } from "./ThermostatOperatingStateCC"; +export type { ThermostatSetbackCCSetOptions } from "./ThermostatSetbackCC"; export { ThermostatSetbackCC, ThermostatSetbackCCGet, @@ -520,6 +728,14 @@ export { ThermostatSetbackCCSet, ThermostatSetbackCCValues, } from "./ThermostatSetbackCC"; +export type { + ThermostatSetpointCCCapabilitiesGetOptions, + ThermostatSetpointCCCapabilitiesReportOptions, + ThermostatSetpointCCGetOptions, + ThermostatSetpointCCReportOptions, + ThermostatSetpointCCSetOptions, + ThermostatSetpointCCSupportedReportOptions, +} from "./ThermostatSetpointCC"; export { ThermostatSetpointCC, ThermostatSetpointCCCapabilitiesGet, @@ -531,6 +747,12 @@ export { ThermostatSetpointCCSupportedReport, ThermostatSetpointCCValues, } from "./ThermostatSetpointCC"; +export type { + TimeCCDateReportOptions, + TimeCCTimeOffsetReportOptions, + TimeCCTimeOffsetSetOptions, + TimeCCTimeReportOptions, +} from "./TimeCC"; export { TimeCC, TimeCCDateGet, @@ -541,6 +763,7 @@ export { TimeCCTimeOffsetSet, TimeCCTimeReport, } from "./TimeCC"; +export type { TimeParametersCCSetOptions } from "./TimeParametersCC"; export { TimeParametersCC, TimeParametersCCGet, @@ -548,6 +771,13 @@ export { TimeParametersCCSet, TimeParametersCCValues, } from "./TimeParametersCC"; +export type { + TransportServiceCCFirstSegmentOptions, + TransportServiceCCSegmentCompleteOptions, + TransportServiceCCSegmentRequestOptions, + TransportServiceCCSegmentWaitOptions, + TransportServiceCCSubsequentSegmentOptions, +} from "./TransportServiceCC"; export { TransportServiceCC, TransportServiceCCFirstSegment, @@ -558,6 +788,20 @@ export { TransportServiceTimeouts, isTransportServiceEncapsulation, } from "./TransportServiceCC"; +export type { + UserCodeCCCapabilitiesReportOptions, + UserCodeCCExtendedUserCodeGetOptions, + UserCodeCCExtendedUserCodeSetOptions, + UserCodeCCGetOptions, + UserCodeCCKeypadModeReportOptions, + UserCodeCCKeypadModeSetOptions, + UserCodeCCMasterCodeReportOptions, + UserCodeCCMasterCodeSetOptions, + UserCodeCCReportOptions, + UserCodeCCSetOptions, + UserCodeCCUserCodeChecksumReportOptions, + UserCodeCCUsersNumberReportOptions, +} from "./UserCodeCC"; export { UserCodeCC, UserCodeCCCapabilitiesGet, @@ -580,6 +824,11 @@ export { UserCodeCCUsersNumberReport, UserCodeCCValues, } from "./UserCodeCC"; +export type { + VersionCCCommandClassGetOptions, + VersionCCCommandClassReportOptions, + VersionCCReportOptions, +} from "./VersionCC"; export { VersionCC, VersionCCCapabilitiesGet, @@ -592,6 +841,7 @@ export { VersionCCZWaveSoftwareGet, VersionCCZWaveSoftwareReport, } from "./VersionCC"; +export type { WakeUpCCIntervalSetOptions } from "./WakeUpCC"; export { WakeUpCC, WakeUpCCIntervalCapabilitiesGet, @@ -603,6 +853,13 @@ export { WakeUpCCValues, WakeUpCCWakeUpNotification, } from "./WakeUpCC"; +export type { + WindowCoveringCCGetOptions, + WindowCoveringCCSetOptions, + WindowCoveringCCStartLevelChangeOptions, + WindowCoveringCCStopLevelChangeOptions, + WindowCoveringCCSupportedReportOptions, +} from "./WindowCoveringCC"; export { WindowCoveringCC, WindowCoveringCCGet, @@ -614,12 +871,42 @@ export { WindowCoveringCCSupportedReport, WindowCoveringCCValues, } from "./WindowCoveringCC"; +export type { ZWavePlusCCReportOptions } from "./ZWavePlusCC"; export { ZWavePlusCC, ZWavePlusCCGet, ZWavePlusCCReport, ZWavePlusCCValues, } from "./ZWavePlusCC"; +export type { + ZWaveProtocolCCAcceptLostOptions, + ZWaveProtocolCCAssignIDsOptions, + ZWaveProtocolCCAssignReturnRouteOptions, + ZWaveProtocolCCAssignReturnRoutePriorityOptions, + ZWaveProtocolCCCommandCompleteOptions, + ZWaveProtocolCCFindNodesInRangeOptions, + ZWaveProtocolCCLostOptions, + ZWaveProtocolCCNOPPowerOptions, + ZWaveProtocolCCNewNodeRegisteredOptions, + ZWaveProtocolCCNewRangeRegisteredOptions, + ZWaveProtocolCCNodeInformationFrameOptions, + ZWaveProtocolCCNodesExistOptions, + ZWaveProtocolCCNodesExistReplyOptions, + ZWaveProtocolCCRangeInfoOptions, + ZWaveProtocolCCReserveNodeIDsOptions, + ZWaveProtocolCCReservedIDsOptions, + ZWaveProtocolCCSUCNodeIDOptions, + ZWaveProtocolCCSetNWIModeOptions, + ZWaveProtocolCCSetSUCAckOptions, + ZWaveProtocolCCSetSUCOptions, + ZWaveProtocolCCSmartStartIncludedNodeInformationOptions, + ZWaveProtocolCCStaticRouteRequestOptions, + ZWaveProtocolCCTransferEndOptions, + ZWaveProtocolCCTransferNewPrimaryControllerCompleteOptions, + ZWaveProtocolCCTransferNodeInformationOptions, + ZWaveProtocolCCTransferPresentationOptions, + ZWaveProtocolCCTransferRangeInformationOptions, +} from "./ZWaveProtocolCC"; export { ZWaveProtocolCC, ZWaveProtocolCCAcceptLost, @@ -672,6 +959,7 @@ export { manufacturerId, manufacturerProprietaryAPI, } from "./manufacturerProprietary/Decorators"; +export type { FibaroVenetianBlindCCSetOptions } from "./manufacturerProprietary/FibaroCC"; export { FibaroCC, FibaroVenetianBlindCC, diff --git a/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts b/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts index d107db9d04bc..953dc4b74afc 100644 --- a/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts +++ b/packages/cc/src/cc/manufacturerProprietary/FibaroCC.ts @@ -360,6 +360,7 @@ tilt: ${resp.tilt}`; } } +// @publicAPI export type FibaroVenetianBlindCCSetOptions = & CCCommandOptions & (