Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hap-nodejs

Package Overview
Dependencies
Maintainers
10
Versions
550
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hap-nodejs - npm Package Compare versions

Comparing version 1.1.1-beta.7 to 1.1.1-beta.8

4

dist/accessories/Camera_accessory.js

@@ -373,4 +373,4 @@ "use strict";

this.childProcess = (0, child_process_1.spawn)(this.ffmpegPath, this.args, { env: process.env, stdio: this.debugMode ? "pipe" : "ignore" });
if (!this.childProcess || !this.childProcess.stdout || !this.childProcess.stderr) {
throw new Error("ChildProcess or its streams is undefined directly after the init!");
if (!this.childProcess) {
console.error("ChildProcess is undefined directly after the init!");
}

@@ -377,0 +377,0 @@ if (this.debugMode) {

@@ -112,11 +112,11 @@ "use strict";

/*
This listener seems to get called with only one opus frame most of the time.
Though it happens regularly that another or many more frames get appended.
This causes some problems as opus frames don't contain their data length in the "header".
Opus relies on the container format to specify the length of the frame.
Although sometimes multiple opus frames are squashed together the decoder seems to be able
to handle that as it just creates a not very noticeable distortion.
If we wanted to make this perfect we would need to write a nodejs c++ submodule or something
to interface directly with gstreamer api.
*/
This listener seems to get called with only one opus frame most of the time.
Though it happens regularly that another or many more frames get appended.
This causes some problems as opus frames don't contain their data length in the "header".
Opus relies on the container format to specify the length of the frame.
Although sometimes multiple opus frames are squashed together the decoder seems to be able
to handle that as it just creates a not very noticeable distortion.
If we would want to make this perfect we would need to write a nodejs c++ submodule or something
to interface directly with gstreamer api.
*/
this.frameHandler({

@@ -123,0 +123,0 @@ data: data,

@@ -453,3 +453,3 @@ import { EventEmitter } from "events";

* pincode: string;
* category: Categories;
* category: Accessory.Categories;
* }} info - Required info for publishing.

@@ -456,0 +456,0 @@ * @param {boolean} allowInsecureRequest - Will allow unencrypted and unauthenticated access to the http server

import { EventEmitter } from "events";
import { CharacteristicJsonObject, CharacteristicValue, Nullable, PartialAllowingNull, VoidCallback } from "../types";
import { CharacteristicWarningType } from "./Accessory";
import type { AccessCodeControlPoint, AccessCodeSupportedConfiguration, AccessControlLevel, AccessoryFlags, AccessoryIdentifier, Active, ActiveIdentifier, ActivityInterval, AdministratorOnlyAccess, AirParticulateDensity, AirParticulateSize, AirPlayEnable, AirQuality, AppMatchingIdentifier, AssetUpdateReadiness, AudioFeedback, BatteryLevel, Brightness, ButtonEvent, CameraOperatingModeIndicator, CarbonDioxideDetected, CarbonDioxideLevel, CarbonDioxidePeakLevel, CarbonMonoxideDetected, CarbonMonoxideLevel, CarbonMonoxidePeakLevel, CCAEnergyDetectThreshold, CCASignalDetectThreshold, CharacteristicValueActiveTransitionCount, CharacteristicValueTransitionControl, ChargingState, ClosedCaptions, ColorTemperature, ConfigurationState, ConfiguredName, ContactSensorState, CoolingThresholdTemperature, CryptoHash, CurrentAirPurifierState, CurrentAmbientLightLevel, CurrentDoorState, CurrentFanState, CurrentHeaterCoolerState, CurrentHeatingCoolingState, CurrentHorizontalTiltAngle, CurrentHumidifierDehumidifierState, CurrentMediaState, CurrentPosition, CurrentRelativeHumidity, CurrentSlatState, CurrentTemperature, CurrentTiltAngle, CurrentTransport, CurrentVerticalTiltAngle, CurrentVisibilityState, DataStreamHAPTransport, DataStreamHAPTransportInterrupt, DiagonalFieldOfView, DigitalZoom, DisplayOrder, EventRetransmissionMaximum, EventSnapshotsActive, EventTransmissionCounters, FilterChangeIndication, FilterLifeLevel, FirmwareRevision, FirmwareUpdateReadiness, FirmwareUpdateStatus, HardwareFinish, HardwareRevision, HeartBeat, HeatingThresholdTemperature, HoldPosition, HomeKitCameraActive, Hue, Identifier, Identify, ImageMirroring, ImageRotation, InputDeviceType, InputSourceType, InUse, IsConfigured, LeakDetected, ListPairings, LockControlPoint, LockCurrentState, LockLastKnownAction, LockManagementAutoSecurityTimeout, LockPhysicalControls, LockTargetState, Logs, MACRetransmissionMaximum, MACTransmissionCounters, ManagedNetworkEnable, ManuallyDisabled, Manufacturer, MatterFirmwareRevisionNumber, MatterFirmwareUpdateStatus, MaximumTransmitPower, MetricsBufferFullState, Model, MotionDetected, MultifunctionButton, Mute, Name, NetworkAccessViolationControl, NetworkClientProfileControl, NetworkClientStatusControl, NFCAccessControlPoint, NFCAccessSupportedConfiguration, NightVision, NitrogenDioxideDensity, ObstructionDetected, OccupancyDetected, On, OperatingStateResponse, OpticalZoom, OutletInUse, OzoneDensity, PairingFeatures, PairSetup, PairVerify, PasswordSetting, PeriodicSnapshotsActive, PictureMode, Ping, PM10Density, PM2_5Density, PositionState, PowerModeSelection, ProductData, ProgrammableSwitchEvent, ProgrammableSwitchOutputState, ProgramMode, ReceivedSignalStrengthIndication, ReceiverSensitivity, RecordingAudioActive, RelativeHumidityDehumidifierThreshold, RelativeHumidityHumidifierThreshold, RemainingDuration, RemoteKey, ResetFilterIndication, RotationDirection, RotationSpeed, RouterStatus, Saturation, SecuritySystemAlarmType, SecuritySystemCurrentState, SecuritySystemTargetState, SelectedAudioStreamConfiguration, SelectedCameraRecordingConfiguration, SelectedDiagnosticsModes, SelectedRTPStreamConfiguration, SelectedSleepConfiguration, SerialNumber, ServiceLabelIndex, ServiceLabelNamespace, SetDuration, SetupDataStreamTransport, SetupEndpoints, SetupTransferTransport, SignalToNoiseRatio, SiriEnable, SiriEndpointSessionStatus, SiriEngineVersion, SiriInputType, SiriLightOnUse, SiriListening, SiriTouchToUse, SlatType, SleepDiscoveryMode, SleepInterval, SmokeDetected, SoftwareRevision, StagedFirmwareVersion, StatusActive, StatusFault, StatusJammed, StatusLowBattery, StatusTampered, StreamingStatus, SulphurDioxideDensity, SupportedAssetTypes, SupportedAudioRecordingConfiguration, SupportedAudioStreamConfiguration, SupportedCameraRecordingConfiguration, SupportedCharacteristicValueTransitionConfiguration, SupportedDataStreamTransportConfiguration, SupportedDiagnosticsModes, SupportedDiagnosticsSnapshot, SupportedFirmwareUpdateConfiguration, SupportedMetrics, SupportedRouterConfiguration, SupportedRTPConfiguration, SupportedSleepConfiguration, SupportedTransferTransportConfiguration, SupportedVideoRecordingConfiguration, SupportedVideoStreamConfiguration, SwingMode, TapType, TargetAirPurifierState, TargetControlList, TargetControlSupportedConfiguration, TargetDoorState, TargetFanState, TargetHeaterCoolerState, TargetHeatingCoolingState, TargetHorizontalTiltAngle, TargetHumidifierDehumidifierState, TargetMediaState, TargetPosition, TargetRelativeHumidity, TargetTemperature, TargetTiltAngle, TargetVerticalTiltAngle, TargetVisibilityState, TemperatureDisplayUnits, ThirdPartyCameraActive, ThreadControlPoint, ThreadNodeCapabilities, ThreadOpenThreadVersion, ThreadStatus, Token, TransmitPower, ValveType, Version, VideoAnalysisActive, VOCDensity, Volume, VolumeControlType, VolumeSelector, WakeConfiguration, WANConfigurationList, WANStatusList, WaterLevel, WiFiCapabilities, WiFiConfigurationControl, WiFiSatelliteStatus } from "./definitions";
import type { AccessCodeControlPoint, AccessCodeSupportedConfiguration, AccessControlLevel, AccessoryFlags, AccessoryIdentifier, Active, ActiveIdentifier, ActivityInterval, AdministratorOnlyAccess, AirParticulateDensity, AirParticulateSize, AirPlayEnable, AirQuality, AppMatchingIdentifier, AssetUpdateReadiness, AudioFeedback, BatteryLevel, Brightness, ButtonEvent, CameraOperatingModeIndicator, CarbonDioxideDetected, CarbonDioxideLevel, CarbonDioxidePeakLevel, CarbonMonoxideDetected, CarbonMonoxideLevel, CarbonMonoxidePeakLevel, CCAEnergyDetectThreshold, CCASignalDetectThreshold, CharacteristicValueActiveTransitionCount, CharacteristicValueTransitionControl, ChargingState, ClosedCaptions, ColorTemperature, ConfigurationState, ConfiguredName, ContactSensorState, CoolingThresholdTemperature, CryptoHash, CurrentAirPurifierState, CurrentAmbientLightLevel, CurrentDoorState, CurrentFanState, CurrentHeaterCoolerState, CurrentHeatingCoolingState, CurrentHorizontalTiltAngle, CurrentHumidifierDehumidifierState, CurrentMediaState, CurrentPosition, CurrentRelativeHumidity, CurrentSlatState, CurrentTemperature, CurrentTiltAngle, CurrentTransport, CurrentVerticalTiltAngle, CurrentVisibilityState, DataStreamHAPTransport, DataStreamHAPTransportInterrupt, DiagonalFieldOfView, DigitalZoom, DisplayOrder, EventRetransmissionMaximum, EventSnapshotsActive, EventTransmissionCounters, FilterChangeIndication, FilterLifeLevel, FirmwareRevision, FirmwareUpdateReadiness, FirmwareUpdateStatus, HardwareFinish, HardwareRevision, HeartBeat, HeatingThresholdTemperature, HoldPosition, HomeKitCameraActive, Hue, Identifier, Identify, ImageMirroring, ImageRotation, InputDeviceType, InputSourceType, InUse, IsConfigured, LeakDetected, ListPairings, LockControlPoint, LockCurrentState, LockLastKnownAction, LockManagementAutoSecurityTimeout, LockPhysicalControls, LockTargetState, Logs, MACRetransmissionMaximum, MACTransmissionCounters, ManagedNetworkEnable, ManuallyDisabled, Manufacturer, MaximumTransmitPower, MetricsBufferFullState, Model, MotionDetected, MultifunctionButton, Mute, Name, NetworkAccessViolationControl, NetworkClientProfileControl, NetworkClientStatusControl, NFCAccessControlPoint, NFCAccessSupportedConfiguration, NightVision, NitrogenDioxideDensity, ObstructionDetected, OccupancyDetected, On, OperatingStateResponse, OpticalZoom, OutletInUse, OzoneDensity, PairingFeatures, PairSetup, PairVerify, PasswordSetting, PeriodicSnapshotsActive, PictureMode, Ping, PM10Density, PM2_5Density, PositionState, PowerModeSelection, ProductData, ProgrammableSwitchEvent, ProgrammableSwitchOutputState, ProgramMode, ReceivedSignalStrengthIndication, ReceiverSensitivity, RecordingAudioActive, RelativeHumidityDehumidifierThreshold, RelativeHumidityHumidifierThreshold, RelayControlPoint, RelayEnabled, RelayState, RemainingDuration, RemoteKey, ResetFilterIndication, RotationDirection, RotationSpeed, RouterStatus, Saturation, SecuritySystemAlarmType, SecuritySystemCurrentState, SecuritySystemTargetState, SelectedAudioStreamConfiguration, SelectedCameraRecordingConfiguration, SelectedDiagnosticsModes, SelectedRTPStreamConfiguration, SelectedSleepConfiguration, SerialNumber, ServiceLabelIndex, ServiceLabelNamespace, SetDuration, SetupDataStreamTransport, SetupEndpoints, SetupTransferTransport, SignalToNoiseRatio, SiriEnable, SiriEndpointSessionStatus, SiriEngineVersion, SiriInputType, SiriLightOnUse, SiriListening, SiriTouchToUse, SlatType, SleepDiscoveryMode, SleepInterval, SmokeDetected, SoftwareRevision, StagedFirmwareVersion, StatusActive, StatusFault, StatusJammed, StatusLowBattery, StatusTampered, StreamingStatus, SulphurDioxideDensity, SupportedAssetTypes, SupportedAudioRecordingConfiguration, SupportedAudioStreamConfiguration, SupportedCameraRecordingConfiguration, SupportedCharacteristicValueTransitionConfiguration, SupportedDataStreamTransportConfiguration, SupportedDiagnosticsModes, SupportedDiagnosticsSnapshot, SupportedFirmwareUpdateConfiguration, SupportedMetrics, SupportedRouterConfiguration, SupportedRTPConfiguration, SupportedSleepConfiguration, SupportedTransferTransportConfiguration, SupportedVideoRecordingConfiguration, SupportedVideoStreamConfiguration, SwingMode, TapType, TargetAirPurifierState, TargetControlList, TargetControlSupportedConfiguration, TargetDoorState, TargetFanState, TargetHeaterCoolerState, TargetHeatingCoolingState, TargetHorizontalTiltAngle, TargetHumidifierDehumidifierState, TargetMediaState, TargetPosition, TargetRelativeHumidity, TargetTemperature, TargetTiltAngle, TargetVerticalTiltAngle, TargetVisibilityState, TemperatureDisplayUnits, ThirdPartyCameraActive, ThreadControlPoint, ThreadNodeCapabilities, ThreadOpenThreadVersion, ThreadStatus, Token, TransmitPower, TunnelConnectionTimeout, TunneledAccessoryAdvertising, TunneledAccessoryConnected, TunneledAccessoryStateNumber, ValveType, Version, VideoAnalysisActive, VOCDensity, Volume, VolumeControlType, VolumeSelector, WakeConfiguration, WANConfigurationList, WANStatusList, WaterLevel, WiFiCapabilities, WiFiConfigurationControl, WiFiSatelliteStatus } from "./definitions";
import { HAPStatus } from "./HAPServer";

@@ -695,10 +695,2 @@ import { IdentifierCache } from "./model/IdentifierCache";

*/
static MatterFirmwareRevisionNumber: typeof MatterFirmwareRevisionNumber;
/**
* @group Characteristic Definitions
*/
static MatterFirmwareUpdateStatus: typeof MatterFirmwareUpdateStatus;
/**
* @group Characteristic Definitions
*/
static MaximumTransmitPower: typeof MaximumTransmitPower;

@@ -868,2 +860,14 @@ /**

*/
static RelayControlPoint: typeof RelayControlPoint;
/**
* @group Characteristic Definitions
*/
static RelayEnabled: typeof RelayEnabled;
/**
* @group Characteristic Definitions
*/
static RelayState: typeof RelayState;
/**
* @group Characteristic Definitions
*/
static RemainingDuration: typeof RemainingDuration;

@@ -1209,2 +1213,18 @@ /**

*/
static TunnelConnectionTimeout: typeof TunnelConnectionTimeout;
/**
* @group Characteristic Definitions
*/
static TunneledAccessoryAdvertising: typeof TunneledAccessoryAdvertising;
/**
* @group Characteristic Definitions
*/
static TunneledAccessoryConnected: typeof TunneledAccessoryConnected;
/**
* @group Characteristic Definitions
*/
static TunneledAccessoryStateNumber: typeof TunneledAccessoryStateNumber;
/**
* @group Characteristic Definitions
*/
static ValveType: typeof ValveType;

@@ -1211,0 +1231,0 @@ /**

@@ -32,3 +32,3 @@ import { EventTriggerOption } from "../camera";

* from one to another. Meaning a serialized CameraController can be initialized as a DoorbellController
* (on startup in {@link initWithServices}) and vice versa.
* (on startup in {@link Controller.initWithServices}) and vice versa.
*

@@ -35,0 +35,0 @@ * @group Doorbell

@@ -15,3 +15,3 @@ "use strict";

* from one to another. Meaning a serialized CameraController can be initialized as a DoorbellController
* (on startup in {@link initWithServices}) and vice versa.
* (on startup in {@link Controller.initWithServices}) and vice versa.
*

@@ -18,0 +18,0 @@ * @group Doorbell

@@ -807,16 +807,2 @@ import { Characteristic } from "../Characteristic";

/**
* Characteristic "Matter Firmware Revision Number"
*/
export declare class MatterFirmwareRevisionNumber extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Matter Firmware Update Status"
*/
export declare class MatterFirmwareUpdateStatus extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Maximum Transmit Power"

@@ -1141,2 +1127,23 @@ * @since iOS 14

/**
* Characteristic "Relay Control Point"
*/
export declare class RelayControlPoint extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Relay Enabled"
*/
export declare class RelayEnabled extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Relay State"
*/
export declare class RelayState extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Remaining Duration"

@@ -1814,2 +1821,30 @@ */

/**
* Characteristic "Tunnel Connection Timeout"
*/
export declare class TunnelConnectionTimeout extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Tunneled Accessory Advertising"
*/
export declare class TunneledAccessoryAdvertising extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Tunneled Accessory Connected"
*/
export declare class TunneledAccessoryConnected extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Tunneled Accessory State Number"
*/
export declare class TunneledAccessoryStateNumber extends Characteristic {
static readonly UUID: string;
constructor();
}
/**
* Characteristic "Valve Type"

@@ -1816,0 +1851,0 @@ */

@@ -10,3 +10,3 @@ "use strict";

const path_1 = tslib_1.__importDefault(require("path"));
const simple_plist_1 = require("simple-plist");
const simple_plist_1 = tslib_1.__importDefault(require("simple-plist"));
const Characteristic_1 = require("../Characteristic");

@@ -37,7 +37,5 @@ const uuid_1 = require("../util/uuid");

const defaultMfiPlist = path_1.default.resolve(simulator, "Contents/Frameworks/HAPAccessoryKit.framework/Resources/default_mfi.metadata.plist");
/* eslint-disable @typescript-eslint/no-explicit-any */
const plistData = (0, simple_plist_1.readFileSync)(metadataFile);
const simulatorPlistData = (0, simple_plist_1.readFileSync)(defaultPlist);
const simulatorMfiPlistData = fs_1.default.existsSync(defaultMfiPlist) ? (0, simple_plist_1.readFileSync)(defaultMfiPlist) : undefined;
/* eslint-enable @typescript-eslint/no-explicit-any */
const plistData = simple_plist_1.default.readFileSync(metadataFile);
const simulatorPlistData = simple_plist_1.default.readFileSync(defaultPlist);
const simulatorMfiPlistData = fs_1.default.existsSync(defaultMfiPlist) ? simple_plist_1.default.readFileSync(defaultMfiPlist) : undefined;
if (plistData.SchemaVersion !== 1) {

@@ -210,8 +208,3 @@ console.warn(`Detected unsupported schema version ${plistData.SchemaVersion}!`);

}
// fix a weird edge case, still present in V=886
let printName = name;
if (name === "PROGRAM_SCHEDULED_MANUAL_MODE_") {
printName = "PROGRAM_SCHEDULED_MANUAL_MODE";
}
characteristicOutput.write(` public static readonly ${printName} = ${value};\n`);
characteristicOutput.write(` public static readonly ${name} = ${value};\n`);
}

@@ -218,0 +211,0 @@ characteristicOutput.write("\n");

@@ -45,6 +45,3 @@ "use strict";

exports.CharacteristicValidValuesOverride = new Map([
["camera-operating-mode-indicator", { "0": "Disable", "1": "Enable" }],
["closed-captions", { "0": "Disabled", "1": "Enabled" }],
["event-snapshots-active", { "0": "Disable", "1": "Enable" }],
["homekit-camera-active", { "0": "Off", "1": "On" }],
["input-device-type", { "0": "Other", "1": "TV", "2": "Recording", "3": "Tuner", "4": "Playback", "5": "Audio System" }],

@@ -57,3 +54,2 @@ ["input-source-type", { "0": "Other", "1": "Home Screen", "2": "Tuner", "3": "HDMI", "4": "Composite Video", "5": "S Video",

["media-state.target", { "0": "Play", "1": "Pause", "2": "Stop" }],
["periodic-snapshots-active", { "0": "Disable", "1": "Enable" }],
["picture-mode", { "0": "Other", "1": "Standard", "2": "Calibrated", "3": "Calibrated Dark", "4": "Vivid", "5": "Game", "6": "Computer", "7": "Custom" }],

@@ -67,3 +63,2 @@ ["power-mode-selection", { "0": "Show", "1": "Hide" }],

["sleep-discovery-mode", { "0": "Not Discoverable", "1": "Always Discoverable" }],
["third-party-camera-active", { "0": "Off", "1": "On" }],
["visibility-state.current", { "0": "Shown", "1": "Hidden" }],

@@ -75,3 +70,7 @@ ["visibility-state.target", { "0": "Shown", "1": "Hidden" }],

]);
exports.CharacteristicClassAdditions = new Map([]);
exports.CharacteristicClassAdditions = new Map([
["humidifier-dehumidifier.state.target", [
"/**\n * @deprecated Removed in iOS 11. Use {@link HUMIDIFIER_OR_DEHUMIDIFIER} instead.\n */\n public static readonly AUTO = 0;",
]],
]);
exports.CharacteristicOverriding = new Map([

@@ -218,2 +217,129 @@ ["rotation.speed", generated => {

}],
["target-air-quality", {
id: "target-air-quality",
UUID: "000000AE-0000-1000-8000-0026BB765291",
name: "Target Air Quality",
className: "TargetAirQuality",
deprecatedNotice: "Removed and not used anymore",
format: "uint8",
properties: 7, // read, write, notify
minValue: 0,
maxValue: 2,
validValues: {
"0": "EXCELLENT",
"1": "GOOD",
"2": "FAIR",
},
}],
["target-slat-state", {
id: "target-slat-state",
UUID: "000000BE-0000-1000-8000-0026BB765291",
name: "Target Slat State",
className: "TargetSlatState",
deprecatedNotice: "Removed and not used anymore",
format: "uint8",
properties: 7, // read, write, notify
minValue: 0,
maxValue: 1,
validValues: {
"0": "MANUAL",
"1": "AUTO",
},
}],
["current-time", {
id: "current-time",
UUID: "0000009B-0000-1000-8000-0026BB765291",
name: "Current Time",
className: "CurrentTime",
deprecatedNotice: "Removed and not used anymore",
format: "string",
properties: 6, // read, write
}],
["day-of-the-week", {
id: "day-of-the-week",
UUID: "00000098-0000-1000-8000-0026BB765291",
name: "Day of the Week",
className: "DayoftheWeek",
deprecatedNotice: "Removed and not used anymore",
format: "uint8",
properties: 6, // read, write
minValue: 1,
maxValue: 7,
}],
["time-update", {
id: "time-update",
UUID: "0000009A-0000-1000-8000-0026BB765291",
name: "Time Update",
className: "TimeUpdate",
deprecatedNotice: "Removed and not used anymore",
format: "bool",
properties: 6, // read, write
}],
["reachable", {
id: "reachable",
UUID: "00000063-0000-1000-8000-0026BB765291",
name: "Reachable",
className: "Reachable",
deprecatedNotice: "Removed and not used anymore",
format: "bool",
properties: 6, // read, write
}],
["link-quality", {
id: "link-quality",
UUID: "0000009C-0000-1000-8000-0026BB765291",
name: "Link Quality",
className: "LinkQuality",
deprecatedNotice: "Removed and not used anymore",
format: "uint8",
properties: 3, // read, notify
minValue: 1,
maxValue: 4,
}],
["category", {
id: "category",
UUID: "000000A3-0000-1000-8000-0026BB765291",
name: "Category",
className: "Category",
deprecatedNotice: "Removed and not used anymore",
format: "uint16",
properties: 3, // read, notify
minValue: 1,
maxValue: 16,
}],
["configure-bridged-accessory-status", {
id: "configure-bridged-accessory-status",
UUID: "0000009D-0000-1000-8000-0026BB765291",
name: "Configure Bridged Accessory Status",
className: "ConfigureBridgedAccessoryStatus",
deprecatedNotice: "Removed and not used anymore",
format: "tlv8",
properties: 3, // read, notify
}],
["configure-bridged-accessory", {
id: "configure-bridged-accessory",
UUID: "000000A0-0000-1000-8000-0026BB765291",
name: "Configure Bridged Accessory",
className: "ConfigureBridgedAccessory",
deprecatedNotice: "Removed and not used anymore",
format: "tlv8",
properties: 4,
}],
["discover-bridged-accessories", {
id: "discover-bridged-accessories",
UUID: "0000009E-0000-1000-8000-0026BB765291",
name: "Discover Bridged Accessories",
className: "DiscoverBridgedAccessories",
deprecatedNotice: "Removed and not used anymore",
format: "uint8",
properties: 7, // read, write, notify
}],
["discovered-bridged-accessories", {
id: "discovered-bridged-accessories",
UUID: "0000009F-0000-1000-8000-0026BB765291",
name: "Discovered Bridged Accessories",
className: "DiscoveredBridgedAccessories",
deprecatedNotice: "Removed and not used anymore",
format: "uint16",
properties: 3, // read, notify
}],
]);

@@ -229,3 +355,9 @@ exports.ServiceNameOverrides = new Map([

]);
exports.ServiceDeprecatedNames = new Map([]);
exports.ServiceDeprecatedNames = new Map([
["battery", "Battery Service"],
["camera-recording-management", "Camera Event Recording Management"],
["cloud-relay", "Relay"],
["slats", "Slat"],
["tunnel", "Tunneled BTLE Accessory Service"],
]);
exports.ServiceCharacteristicConfigurationOverrides = new Map([

@@ -245,2 +377,54 @@ ["accessory-information", { addedRequired: ["firmware.revision"], removedOptional: ["firmware.revision"] }],

}],
["camera-control", {
id: "camera-control",
UUID: "00000111-0000-1000-8000-0026BB765291",
name: "Camera Control",
className: "CameraControl",
deprecatedNotice: "This service has no usage anymore and will be ignored by iOS",
requiredCharacteristics: ["on"],
optionalCharacteristics: [
"horizontal-tilt.current",
"vertical-tilt.current",
"horizontal-tilt.target",
"vertical-tilt.target",
"night-vision",
"optical-zoom",
"digital-zoom",
"image-rotation",
"image-mirroring",
"name",
],
}],
["time-information", {
id: "time-information",
UUID: "00000099-0000-1000-8000-0026BB765291",
name: "Time Information",
className: "TimeInformation",
deprecatedNotice: "Removed and not used anymore",
requiredCharacteristics: ["current-time", "day-of-the-week", "time-update"],
optionalCharacteristics: ["name"],
}],
["bridging-state", {
id: "bridging-state",
UUID: "00000062-0000-1000-8000-0026BB765291",
name: "Bridging State",
className: "BridgingState",
deprecatedNotice: "Removed and not used anymore",
requiredCharacteristics: ["reachable", "link-quality", "accessory.identifier", "category"],
optionalCharacteristics: ["name"],
}],
["bridge-configuration", {
id: "bridge-configuration",
UUID: "000000A1-0000-1000-8000-0026BB765291",
name: "Bridge Configuration",
className: "BridgeConfiguration",
deprecatedNotice: "Removed and not used anymore",
requiredCharacteristics: [
"configure-bridged-accessory-status",
"discover-bridged-accessories",
"discovered-bridged-accessories",
"configure-bridged-accessory",
],
optionalCharacteristics: ["name"],
}],
]);

@@ -247,0 +431,0 @@ exports.CharacteristicSinceInformation = new Map([

@@ -116,2 +116,9 @@ import { Service } from "../Service";

/**
* Service "Cloud Relay"
*/
export declare class CloudRelay extends Service {
static readonly UUID: string;
constructor(displayName?: string, subtype?: string);
}
/**
* Service "Contact Sensor"

@@ -463,2 +470,9 @@ */

/**
* Service "Tunnel"
*/
export declare class Tunnel extends Service {
static readonly UUID: string;
constructor(displayName?: string, subtype?: string);
}
/**
* Service "Valve"

@@ -465,0 +479,0 @@ */

@@ -5,3 +5,3 @@ import { EventEmitter } from "events";

import { Characteristic, CharacteristicChange, SerializedCharacteristic } from "./Characteristic";
import type { AccessCode, AccessControl, AccessoryInformation, AccessoryMetrics, AccessoryRuntimeInformation, AirPurifier, AirQualitySensor, AssetUpdate, Assistant, AudioStreamManagement, Battery, CameraOperatingMode, CameraRecordingManagement, CameraRTPStreamManagement, CarbonDioxideSensor, CarbonMonoxideSensor, ContactSensor, DataStreamTransportManagement, Diagnostics, Door, Doorbell, Fan, Fanv2, Faucet, FilterMaintenance, FirmwareUpdate, GarageDoorOpener, HeaterCooler, HumidifierDehumidifier, HumiditySensor, InputSource, IrrigationSystem, LeakSensor, Lightbulb, LightSensor, LockManagement, LockMechanism, Microphone, MotionSensor, NFCAccess, OccupancySensor, Outlet, Pairing, PowerManagement, ProtocolInformation, SecuritySystem, ServiceLabel, Siri, SiriEndpoint, Slats, SmartSpeaker, SmokeSensor, Speaker, StatefulProgrammableSwitch, StatelessProgrammableSwitch, Switch, TapManagement, TargetControl, TargetControlManagement, Television, TelevisionSpeaker, TemperatureSensor, Thermostat, ThreadTransport, TransferTransportManagement, Valve, WiFiRouter, WiFiSatellite, WiFiTransport, Window, WindowCovering } from "./definitions";
import type { AccessCode, AccessControl, AccessoryInformation, AccessoryMetrics, AccessoryRuntimeInformation, AirPurifier, AirQualitySensor, AssetUpdate, Assistant, AudioStreamManagement, Battery, CameraOperatingMode, CameraRecordingManagement, CameraRTPStreamManagement, CarbonDioxideSensor, CarbonMonoxideSensor, CloudRelay, ContactSensor, DataStreamTransportManagement, Diagnostics, Door, Doorbell, Fan, Fanv2, Faucet, FilterMaintenance, FirmwareUpdate, GarageDoorOpener, HeaterCooler, HumidifierDehumidifier, HumiditySensor, InputSource, IrrigationSystem, LeakSensor, Lightbulb, LightSensor, LockManagement, LockMechanism, Microphone, MotionSensor, NFCAccess, OccupancySensor, Outlet, Pairing, PowerManagement, ProtocolInformation, SecuritySystem, ServiceLabel, Siri, SiriEndpoint, Slats, SmartSpeaker, SmokeSensor, Speaker, StatefulProgrammableSwitch, StatelessProgrammableSwitch, Switch, TapManagement, TargetControl, TargetControlManagement, Television, TelevisionSpeaker, TemperatureSensor, Thermostat, ThreadTransport, TransferTransportManagement, Tunnel, Valve, WiFiRouter, WiFiSatellite, WiFiTransport, Window, WindowCovering } from "./definitions";
import { IdentifierCache } from "./model/IdentifierCache";

@@ -144,2 +144,6 @@ import { HAPConnection } from "./util/eventedhttp";

*/
static CloudRelay: typeof CloudRelay;
/**
* @group Service Definitions
*/
static ContactSensor: typeof ContactSensor;

@@ -341,2 +345,6 @@ /**

*/
static Tunnel: typeof Tunnel;
/**
* @group Service Definitions
*/
static Valve: typeof Valve;

@@ -343,0 +351,0 @@ /**

@@ -119,2 +119,6 @@ "use strict";

*/
static CloudRelay;
/**
* @group Service Definitions
*/
static ContactSensor;

@@ -316,2 +320,6 @@ /**

*/
static Tunnel;
/**
* @group Service Definitions
*/
static Valve;

@@ -318,0 +326,0 @@ /**

{
"name": "hap-nodejs",
"version": "1.1.1-beta.7",
"version": "1.1.1-beta.8",
"description": "HAP-NodeJS is a Node.js implementation of HomeKit Accessory Server.",

@@ -64,3 +64,3 @@ "main": "dist/index.js",

"source-map-support": "^0.5.21",
"tslib": "^2.7.0",
"tslib": "^2.8.0",
"tweetnacl": "^1.0.3"

@@ -71,11 +71,11 @@ },

"@types/escape-html": "^1.0.4",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.8.0",
"@types/plist": "^3.0.5",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"axios": "^1.7.7",
"commander": "^12.1.0",
"escape-html": "^1.0.3",
"eslint": "^8.57.1",
"eslint": "^8.57.0",
"http-parser-js": "^0.5.8",

@@ -88,5 +88,5 @@ "jest": "^29.7.0",

"ts-node": "^10.9.2",
"typedoc": "^0.26.7",
"typescript": "^5.6.2"
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc