homebridge
Version:
HomeKit support for the impatient
60 lines • 3.22 kB
JavaScript
/**
* Export API const enums
*/
export { APIEvent, PluginType } from './api.js';
/**
* Export Logger const enums
*/
export { LogLevel } from './logger.js';
/**
* Matter protocol status errors for plugin handlers
*
* Prefer `api.matter.status`, which carries the same error classes. Importing
* `MatterStatus` from this package is a value import, so it resolves the
* `homebridge` package when the plugin file is loaded rather than when an
* error is thrown. On installs that keep Homebridge in a separate
* `node_modules` tree that resolution fails, and because platforms usually
* import every accessory file at startup, a single such import takes down the
* entire plugin.
*
* @example
* ```typescript
* handlers: {
* onOff: {
* on: async () => {
* if (deviceIsBusy) {
* throw new api.matter!.status.Busy('Device is processing another command')
* }
* // ... control device
* }
* }
* }
* ```
*/
export { MatterStatus } from './matter/index.js';
export { ChildMatterMessageType, MatterBridgeStatus } from './matter/sharedTypes.js';
/**
* ═══════════════════════════════════════════════════════════════════════
* Matter Protocol - UI Integration Types
* ═══════════════════════════════════════════════════════════════════════
*/
/**
* Matter device types, clusters, and cluster names
* Access via api.matter?.deviceTypes, api.matter?.clusters, api.matter?.clusterNames
*/
export { clusterNames, clusters, devices, deviceTypes, MatterAccessoryEventTypes } from './matter/types.js';
/**
* Matter error types for error handling
*/
export { MatterCommissioningError, MatterDeviceError, MatterError, MatterErrorType, MatterNetworkError, MatterStorageError, } from './matter/types.js';
/**
* Export Platform Accessory const enums
*/
export { PlatformAccessoryEvent } from './platformAccessory.js';
/**
* Export the CONST ENUMS from hap-nodejs
* These get converted to their string value at compile time
* and can be safely used directly.
*/
export { Access, AccessControlEvent, AccessLevel, AccessoryEventTypes, AdaptiveLightingControllerEvents, AdaptiveLightingControllerMode, AudioBitrate, AudioCodecTypes, AudioRecordingCodecType, AudioRecordingSamplerate, AudioSamplerate, AudioStreamingCodecType, AudioStreamingSamplerate, ButtonState, ButtonType, CameraControllerEvents, Categories, ChangeReason, CharacteristicEventTypes, DataFormatTags, DataStreamConnectionEvent, DataStreamServerEvent, DataStreamStatus, DefaultControllerType, EventTriggerOption, Formats, H264Level, H264Profile, HAPServerEventTypes, HAPStatus, HDSProtocolSpecificErrorReason, HDSStatus, MediaContainerType, PacketDataType, Perms, Protocols, RemoteControllerEvents, ResourceRequestReason, ServiceEventTypes, SiriAudioSessionEvents, SRTPCryptoSuites, StreamRequestTypes, TargetCategory, TargetUpdates, Topics, Units, } from '@homebridge/hap-nodejs';
//# sourceMappingURL=index.js.map