hap-nodejs 0.9.4-beta.4 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/BridgedCore.js +3 -3
- package/dist/BridgedCore.js.map +1 -1
- package/dist/Core.js +3 -3
- package/dist/Core.js.map +1 -1
- package/dist/accessories/AppleTVRemote_accessory.js +8 -8
- package/dist/accessories/AppleTVRemote_accessory.js.map +1 -1
- package/dist/accessories/Camera_accessory.js +2 -2
- package/dist/accessories/Camera_accessory.js.map +1 -1
- package/dist/accessories/Fan_accessory.js +4 -4
- package/dist/accessories/gstreamer-audioProducer.js +7 -7
- package/dist/accessories/gstreamer-audioProducer.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/dist/lib/Accessory.d.ts +20 -3
- package/dist/lib/Accessory.d.ts.map +1 -1
- package/dist/lib/Accessory.js +114 -81
- package/dist/lib/Accessory.js.map +1 -1
- package/dist/lib/AccessoryLoader.js +5 -5
- package/dist/lib/AccessoryLoader.js.map +1 -1
- package/dist/lib/Advertiser.d.ts +2 -2
- package/dist/lib/Advertiser.d.ts.map +1 -1
- package/dist/lib/Advertiser.js +32 -24
- package/dist/lib/Advertiser.js.map +1 -1
- package/dist/lib/Bridge.js +1 -1
- package/dist/lib/Bridge.js.map +1 -1
- package/dist/lib/Characteristic.d.ts +19 -1
- package/dist/lib/Characteristic.d.ts.map +1 -1
- package/dist/lib/Characteristic.js +48 -48
- package/dist/lib/Characteristic.js.map +1 -1
- package/dist/lib/HAPServer.js +26 -26
- package/dist/lib/HAPServer.js.map +1 -1
- package/dist/lib/Service.d.ts +7 -1
- package/dist/lib/Service.d.ts.map +1 -1
- package/dist/lib/Service.js +29 -25
- package/dist/lib/Service.js.map +1 -1
- package/dist/lib/camera/RTPProxy.js +1 -1
- package/dist/lib/camera/RTPProxy.js.map +1 -1
- package/dist/lib/camera/RTPStreamManagement.d.ts +2 -2
- package/dist/lib/camera/RTPStreamManagement.d.ts.map +1 -1
- package/dist/lib/camera/RTPStreamManagement.js +16 -15
- package/dist/lib/camera/RTPStreamManagement.js.map +1 -1
- package/dist/lib/camera/index.js +3 -3
- package/dist/lib/camera/index.js.map +1 -1
- package/dist/lib/controller/AdaptiveLightingController.js +12 -12
- package/dist/lib/controller/AdaptiveLightingController.js.map +1 -1
- package/dist/lib/controller/CameraController.js +5 -5
- package/dist/lib/controller/CameraController.js.map +1 -1
- package/dist/lib/controller/DoorbellController.js +1 -1
- package/dist/lib/controller/DoorbellController.js.map +1 -1
- package/dist/lib/controller/RemoteController.js +20 -20
- package/dist/lib/controller/RemoteController.js.map +1 -1
- package/dist/lib/controller/index.js +5 -5
- package/dist/lib/controller/index.js.map +1 -1
- package/dist/lib/datastream/DataStreamManagement.js +3 -3
- package/dist/lib/datastream/DataStreamManagement.js.map +1 -1
- package/dist/lib/datastream/DataStreamParser.js +15 -15
- package/dist/lib/datastream/DataStreamParser.js.map +1 -1
- package/dist/lib/datastream/DataStreamServer.js +10 -10
- package/dist/lib/datastream/DataStreamServer.js.map +1 -1
- package/dist/lib/datastream/index.js +3 -3
- package/dist/lib/datastream/index.js.map +1 -1
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts +132 -0
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts.map +1 -1
- package/dist/lib/definitions/CharacteristicDefinitions.js +579 -237
- package/dist/lib/definitions/CharacteristicDefinitions.js.map +1 -1
- package/dist/lib/definitions/ServiceDefinitions.d.ts +44 -0
- package/dist/lib/definitions/ServiceDefinitions.d.ts.map +1 -1
- package/dist/lib/definitions/ServiceDefinitions.js +196 -73
- package/dist/lib/definitions/ServiceDefinitions.js.map +1 -1
- package/dist/lib/definitions/generate-definitions.d.ts +1 -0
- package/dist/lib/definitions/generate-definitions.d.ts.map +1 -1
- package/dist/lib/definitions/generate-definitions.js +62 -59
- package/dist/lib/definitions/generate-definitions.js.map +1 -1
- package/dist/lib/definitions/generator-configuration.d.ts.map +1 -1
- package/dist/lib/definitions/generator-configuration.js +19 -4
- package/dist/lib/definitions/generator-configuration.js.map +1 -1
- package/dist/lib/definitions/index.js +2 -2
- package/dist/lib/definitions/index.js.map +1 -1
- package/dist/lib/model/AccessoryInfo.js +9 -9
- package/dist/lib/model/AccessoryInfo.js.map +1 -1
- package/dist/lib/model/ControllerStorage.js +6 -6
- package/dist/lib/model/ControllerStorage.js.map +1 -1
- package/dist/lib/model/HAPStorage.js +1 -1
- package/dist/lib/model/HAPStorage.js.map +1 -1
- package/dist/lib/model/IdentifierCache.js +2 -2
- package/dist/lib/model/IdentifierCache.js.map +1 -1
- package/dist/lib/tv/AccessControlManagement.js +2 -2
- package/dist/lib/tv/AccessControlManagement.js.map +1 -1
- package/dist/lib/util/clone.js +4 -4
- package/dist/lib/util/clone.js.map +1 -1
- package/dist/lib/util/color-utils.js +2 -2
- package/dist/lib/util/color-utils.js.map +1 -1
- package/dist/lib/util/eventedhttp.js +32 -32
- package/dist/lib/util/eventedhttp.js.map +1 -1
- package/dist/lib/util/hapCrypto.js +7 -7
- package/dist/lib/util/hapCrypto.js.map +1 -1
- package/dist/lib/util/hapStatusError.js +2 -2
- package/dist/lib/util/hapStatusError.js.map +1 -1
- package/dist/lib/util/net-utils.js +6 -6
- package/dist/lib/util/net-utils.js.map +1 -1
- package/dist/lib/util/once.js +1 -1
- package/dist/lib/util/once.js.map +1 -1
- package/dist/lib/util/promise-utils.d.ts +2 -0
- package/dist/lib/util/promise-utils.d.ts.map +1 -0
- package/dist/lib/util/promise-utils.js +10 -0
- package/dist/lib/util/promise-utils.js.map +1 -0
- package/dist/lib/util/time.js +3 -3
- package/dist/lib/util/time.js.map +1 -1
- package/dist/lib/util/tlv.js +6 -6
- package/dist/lib/util/tlv.js.map +1 -1
- package/dist/lib/util/uuid.js +1 -1
- package/dist/lib/util/uuid.js.map +1 -1
- package/package.json +20 -21
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// THIS FILE IS AUTO-GENERATED - DO NOT MODIFY
|
|
3
|
-
// V=
|
|
3
|
+
// V=880
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
exports.WindowCovering = exports.Window = exports.WiFiTransport = exports.WiFiSatellite = exports.WiFiRouter = exports.Valve = exports.Tunnel = exports.TransferTransportManagement = exports.TimeInformation = exports.ThreadTransport = exports.Thermostat = exports.TemperatureSensor = exports.TelevisionSpeaker = exports.Television = exports.TargetControlManagement = exports.TargetControl = exports.Switch = exports.StatelessProgrammableSwitch = exports.StatefulProgrammableSwitch = void 0;
|
|
5
|
+
exports.ServiceLabel = exports.SecuritySystem = exports.ProtocolInformation = exports.PowerManagement = exports.Pairing = exports.Outlet = exports.OccupancySensor = exports.NFCAccess = exports.MotionSensor = exports.Microphone = exports.LockMechanism = exports.LockManagement = exports.LightSensor = exports.Lightbulb = exports.LeakSensor = exports.IrrigationSystem = exports.InputSource = exports.HumiditySensor = exports.HumidifierDehumidifier = exports.HeaterCooler = exports.GarageDoorOpener = exports.FilterMaintenance = exports.Faucet = exports.Fanv2 = exports.Fan = exports.Doorbell = exports.Door = exports.Diagnostics = exports.DataStreamTransportManagement = exports.ContactSensor = exports.CloudRelay = exports.CarbonMonoxideSensor = exports.CarbonDioxideSensor = exports.CameraRTPStreamManagement = exports.CameraRecordingManagement = exports.CameraOperatingMode = exports.CameraControl = exports.BridgingState = exports.BridgeConfiguration = exports.Battery = exports.AudioStreamManagement = exports.Assistant = exports.AssetUpdate = exports.AirQualitySensor = exports.AirPurifier = exports.AccessoryRuntimeInformation = exports.AccessoryMetrics = exports.AccessoryInformation = exports.AccessControl = exports.AccessCode = void 0;
|
|
6
|
+
exports.WindowCovering = exports.Window = exports.WiFiTransport = exports.WiFiSatellite = exports.WiFiRouter = exports.Valve = exports.Tunnel = exports.TransferTransportManagement = exports.TimeInformation = exports.ThreadTransport = exports.Thermostat = exports.TemperatureSensor = exports.TelevisionSpeaker = exports.Television = exports.TargetControlManagement = exports.TargetControl = exports.Switch = exports.StatelessProgrammableSwitch = exports.StatefulProgrammableSwitch = exports.Speaker = exports.SmokeSensor = exports.SmartSpeaker = exports.Slats = exports.SiriEndpoint = exports.Siri = void 0;
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
8
|
var Characteristic_1 = require("../Characteristic");
|
|
9
9
|
var Service_1 = require("../Service");
|
|
10
|
+
/**
|
|
11
|
+
* Service "Access Code"
|
|
12
|
+
* @since iOS 15
|
|
13
|
+
*/
|
|
14
|
+
var AccessCode = /** @class */ (function (_super) {
|
|
15
|
+
(0, tslib_1.__extends)(AccessCode, _super);
|
|
16
|
+
function AccessCode(displayName, subtype) {
|
|
17
|
+
var _this = _super.call(this, displayName, AccessCode.UUID, subtype) || this;
|
|
18
|
+
// Required Characteristics
|
|
19
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.AccessCodeControlPoint);
|
|
20
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.AccessCodeSupportedConfiguration);
|
|
21
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.ConfigurationState);
|
|
22
|
+
return _this;
|
|
23
|
+
}
|
|
24
|
+
AccessCode.UUID = "00000260-0000-1000-8000-0026BB765291";
|
|
25
|
+
return AccessCode;
|
|
26
|
+
}(Service_1.Service));
|
|
27
|
+
exports.AccessCode = AccessCode;
|
|
28
|
+
Service_1.Service.AccessCode = AccessCode;
|
|
10
29
|
/**
|
|
11
30
|
* Service "Access Control"
|
|
12
31
|
*/
|
|
13
32
|
var AccessControl = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(AccessControl, _super);
|
|
33
|
+
(0, tslib_1.__extends)(AccessControl, _super);
|
|
15
34
|
function AccessControl(displayName, subtype) {
|
|
16
35
|
var _this = _super.call(this, displayName, AccessControl.UUID, subtype) || this;
|
|
17
36
|
// Required Characteristics
|
|
@@ -29,7 +48,7 @@ Service_1.Service.AccessControl = AccessControl;
|
|
|
29
48
|
* Service "Accessory Information"
|
|
30
49
|
*/
|
|
31
50
|
var AccessoryInformation = /** @class */ (function (_super) {
|
|
32
|
-
tslib_1.__extends(AccessoryInformation, _super);
|
|
51
|
+
(0, tslib_1.__extends)(AccessoryInformation, _super);
|
|
33
52
|
function AccessoryInformation(displayName, subtype) {
|
|
34
53
|
var _this = _super.call(this, displayName, AccessoryInformation.UUID, subtype) || this;
|
|
35
54
|
// Required Characteristics
|
|
@@ -45,9 +64,10 @@ var AccessoryInformation = /** @class */ (function (_super) {
|
|
|
45
64
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.AccessoryFlags);
|
|
46
65
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.AppMatchingIdentifier);
|
|
47
66
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.ConfiguredName);
|
|
67
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.HardwareFinish);
|
|
48
68
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.HardwareRevision);
|
|
49
|
-
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SoftwareRevision);
|
|
50
69
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.ProductData);
|
|
70
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SoftwareRevision);
|
|
51
71
|
return _this;
|
|
52
72
|
}
|
|
53
73
|
AccessoryInformation.UUID = "0000003E-0000-1000-8000-0026BB765291";
|
|
@@ -55,11 +75,27 @@ var AccessoryInformation = /** @class */ (function (_super) {
|
|
|
55
75
|
}(Service_1.Service));
|
|
56
76
|
exports.AccessoryInformation = AccessoryInformation;
|
|
57
77
|
Service_1.Service.AccessoryInformation = AccessoryInformation;
|
|
78
|
+
/**
|
|
79
|
+
* Service "Accessory Metrics"
|
|
80
|
+
*/
|
|
81
|
+
var AccessoryMetrics = /** @class */ (function (_super) {
|
|
82
|
+
(0, tslib_1.__extends)(AccessoryMetrics, _super);
|
|
83
|
+
function AccessoryMetrics(displayName, subtype) {
|
|
84
|
+
var _this = _super.call(this, displayName, AccessoryMetrics.UUID, subtype) || this;
|
|
85
|
+
// Required Characteristics
|
|
86
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.Active);
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
AccessoryMetrics.UUID = "00000270-0000-1000-8000-0026BB765291";
|
|
90
|
+
return AccessoryMetrics;
|
|
91
|
+
}(Service_1.Service));
|
|
92
|
+
exports.AccessoryMetrics = AccessoryMetrics;
|
|
93
|
+
Service_1.Service.AccessoryMetrics = AccessoryMetrics;
|
|
58
94
|
/**
|
|
59
95
|
* Service "Accessory Runtime Information"
|
|
60
96
|
*/
|
|
61
97
|
var AccessoryRuntimeInformation = /** @class */ (function (_super) {
|
|
62
|
-
tslib_1.__extends(AccessoryRuntimeInformation, _super);
|
|
98
|
+
(0, tslib_1.__extends)(AccessoryRuntimeInformation, _super);
|
|
63
99
|
function AccessoryRuntimeInformation(displayName, subtype) {
|
|
64
100
|
var _this = _super.call(this, displayName, AccessoryRuntimeInformation.UUID, subtype) || this;
|
|
65
101
|
// Required Characteristics
|
|
@@ -79,7 +115,7 @@ Service_1.Service.AccessoryRuntimeInformation = AccessoryRuntimeInformation;
|
|
|
79
115
|
* Service "Air Purifier"
|
|
80
116
|
*/
|
|
81
117
|
var AirPurifier = /** @class */ (function (_super) {
|
|
82
|
-
tslib_1.__extends(AirPurifier, _super);
|
|
118
|
+
(0, tslib_1.__extends)(AirPurifier, _super);
|
|
83
119
|
function AirPurifier(displayName, subtype) {
|
|
84
120
|
var _this = _super.call(this, displayName, AirPurifier.UUID, subtype) || this;
|
|
85
121
|
// Required Characteristics
|
|
@@ -102,7 +138,7 @@ Service_1.Service.AirPurifier = AirPurifier;
|
|
|
102
138
|
* Service "Air Quality Sensor"
|
|
103
139
|
*/
|
|
104
140
|
var AirQualitySensor = /** @class */ (function (_super) {
|
|
105
|
-
tslib_1.__extends(AirQualitySensor, _super);
|
|
141
|
+
(0, tslib_1.__extends)(AirQualitySensor, _super);
|
|
106
142
|
function AirQualitySensor(displayName, subtype) {
|
|
107
143
|
var _this = _super.call(this, displayName, AirQualitySensor.UUID, subtype) || this;
|
|
108
144
|
// Required Characteristics
|
|
@@ -126,11 +162,48 @@ var AirQualitySensor = /** @class */ (function (_super) {
|
|
|
126
162
|
}(Service_1.Service));
|
|
127
163
|
exports.AirQualitySensor = AirQualitySensor;
|
|
128
164
|
Service_1.Service.AirQualitySensor = AirQualitySensor;
|
|
165
|
+
/**
|
|
166
|
+
* Service "Asset Update"
|
|
167
|
+
*/
|
|
168
|
+
var AssetUpdate = /** @class */ (function (_super) {
|
|
169
|
+
(0, tslib_1.__extends)(AssetUpdate, _super);
|
|
170
|
+
function AssetUpdate(displayName, subtype) {
|
|
171
|
+
var _this = _super.call(this, displayName, AssetUpdate.UUID, subtype) || this;
|
|
172
|
+
// Required Characteristics
|
|
173
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.AssetUpdateReadiness);
|
|
174
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.SupportedAssetTypes);
|
|
175
|
+
return _this;
|
|
176
|
+
}
|
|
177
|
+
AssetUpdate.UUID = "00000267-0000-1000-8000-0026BB765291";
|
|
178
|
+
return AssetUpdate;
|
|
179
|
+
}(Service_1.Service));
|
|
180
|
+
exports.AssetUpdate = AssetUpdate;
|
|
181
|
+
Service_1.Service.AssetUpdate = AssetUpdate;
|
|
182
|
+
/**
|
|
183
|
+
* Service "Assistant"
|
|
184
|
+
*/
|
|
185
|
+
var Assistant = /** @class */ (function (_super) {
|
|
186
|
+
(0, tslib_1.__extends)(Assistant, _super);
|
|
187
|
+
function Assistant(displayName, subtype) {
|
|
188
|
+
var _this = _super.call(this, displayName, Assistant.UUID, subtype) || this;
|
|
189
|
+
// Required Characteristics
|
|
190
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.Active);
|
|
191
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.Identifier);
|
|
192
|
+
if (!_this.testCharacteristic(Characteristic_1.Characteristic.Name)) { // workaround for Name characteristic collision in constructor
|
|
193
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.Name).updateValue("Unnamed Service");
|
|
194
|
+
}
|
|
195
|
+
return _this;
|
|
196
|
+
}
|
|
197
|
+
Assistant.UUID = "0000026A-0000-1000-8000-0026BB765291";
|
|
198
|
+
return Assistant;
|
|
199
|
+
}(Service_1.Service));
|
|
200
|
+
exports.Assistant = Assistant;
|
|
201
|
+
Service_1.Service.Assistant = Assistant;
|
|
129
202
|
/**
|
|
130
203
|
* Service "Audio Stream Management"
|
|
131
204
|
*/
|
|
132
205
|
var AudioStreamManagement = /** @class */ (function (_super) {
|
|
133
|
-
tslib_1.__extends(AudioStreamManagement, _super);
|
|
206
|
+
(0, tslib_1.__extends)(AudioStreamManagement, _super);
|
|
134
207
|
function AudioStreamManagement(displayName, subtype) {
|
|
135
208
|
var _this = _super.call(this, displayName, AudioStreamManagement.UUID, subtype) || this;
|
|
136
209
|
// Required Characteristics
|
|
@@ -147,7 +220,7 @@ Service_1.Service.AudioStreamManagement = AudioStreamManagement;
|
|
|
147
220
|
* Service "Battery"
|
|
148
221
|
*/
|
|
149
222
|
var Battery = /** @class */ (function (_super) {
|
|
150
|
-
tslib_1.__extends(Battery, _super);
|
|
223
|
+
(0, tslib_1.__extends)(Battery, _super);
|
|
151
224
|
function Battery(displayName, subtype) {
|
|
152
225
|
var _this = _super.call(this, displayName, Battery.UUID, subtype) || this;
|
|
153
226
|
// Required Characteristics
|
|
@@ -170,7 +243,7 @@ Service_1.Service.Battery = Battery;
|
|
|
170
243
|
* @deprecated Removed and not used anymore
|
|
171
244
|
*/
|
|
172
245
|
var BridgeConfiguration = /** @class */ (function (_super) {
|
|
173
|
-
tslib_1.__extends(BridgeConfiguration, _super);
|
|
246
|
+
(0, tslib_1.__extends)(BridgeConfiguration, _super);
|
|
174
247
|
function BridgeConfiguration(displayName, subtype) {
|
|
175
248
|
var _this = _super.call(this, displayName, BridgeConfiguration.UUID, subtype) || this;
|
|
176
249
|
// Required Characteristics
|
|
@@ -193,7 +266,7 @@ Service_1.Service.BridgeConfiguration = BridgeConfiguration;
|
|
|
193
266
|
* @deprecated Removed and not used anymore
|
|
194
267
|
*/
|
|
195
268
|
var BridgingState = /** @class */ (function (_super) {
|
|
196
|
-
tslib_1.__extends(BridgingState, _super);
|
|
269
|
+
(0, tslib_1.__extends)(BridgingState, _super);
|
|
197
270
|
function BridgingState(displayName, subtype) {
|
|
198
271
|
var _this = _super.call(this, displayName, BridgingState.UUID, subtype) || this;
|
|
199
272
|
// Required Characteristics
|
|
@@ -216,7 +289,7 @@ Service_1.Service.BridgingState = BridgingState;
|
|
|
216
289
|
* @deprecated This service has no usage anymore and will be ignored by iOS
|
|
217
290
|
*/
|
|
218
291
|
var CameraControl = /** @class */ (function (_super) {
|
|
219
|
-
tslib_1.__extends(CameraControl, _super);
|
|
292
|
+
(0, tslib_1.__extends)(CameraControl, _super);
|
|
220
293
|
function CameraControl(displayName, subtype) {
|
|
221
294
|
var _this = _super.call(this, displayName, CameraControl.UUID, subtype) || this;
|
|
222
295
|
// Required Characteristics
|
|
@@ -244,7 +317,7 @@ Service_1.Service.CameraControl = CameraControl;
|
|
|
244
317
|
* Service "Camera Operating Mode"
|
|
245
318
|
*/
|
|
246
319
|
var CameraOperatingMode = /** @class */ (function (_super) {
|
|
247
|
-
tslib_1.__extends(CameraOperatingMode, _super);
|
|
320
|
+
(0, tslib_1.__extends)(CameraOperatingMode, _super);
|
|
248
321
|
function CameraOperatingMode(displayName, subtype) {
|
|
249
322
|
var _this = _super.call(this, displayName, CameraOperatingMode.UUID, subtype) || this;
|
|
250
323
|
// Required Characteristics
|
|
@@ -268,7 +341,7 @@ Service_1.Service.CameraOperatingMode = CameraOperatingMode;
|
|
|
268
341
|
* Service "Camera Recording Management"
|
|
269
342
|
*/
|
|
270
343
|
var CameraRecordingManagement = /** @class */ (function (_super) {
|
|
271
|
-
tslib_1.__extends(CameraRecordingManagement, _super);
|
|
344
|
+
(0, tslib_1.__extends)(CameraRecordingManagement, _super);
|
|
272
345
|
function CameraRecordingManagement(displayName, subtype) {
|
|
273
346
|
var _this = _super.call(this, displayName, CameraRecordingManagement.UUID, subtype) || this;
|
|
274
347
|
// Required Characteristics
|
|
@@ -292,7 +365,7 @@ Service_1.Service.CameraRecordingManagement = CameraRecordingManagement;
|
|
|
292
365
|
* Service "Camera RTP Stream Management"
|
|
293
366
|
*/
|
|
294
367
|
var CameraRTPStreamManagement = /** @class */ (function (_super) {
|
|
295
|
-
tslib_1.__extends(CameraRTPStreamManagement, _super);
|
|
368
|
+
(0, tslib_1.__extends)(CameraRTPStreamManagement, _super);
|
|
296
369
|
function CameraRTPStreamManagement(displayName, subtype) {
|
|
297
370
|
var _this = _super.call(this, displayName, CameraRTPStreamManagement.UUID, subtype) || this;
|
|
298
371
|
// Required Characteristics
|
|
@@ -315,7 +388,7 @@ Service_1.Service.CameraRTPStreamManagement = CameraRTPStreamManagement;
|
|
|
315
388
|
* Service "Carbon Dioxide Sensor"
|
|
316
389
|
*/
|
|
317
390
|
var CarbonDioxideSensor = /** @class */ (function (_super) {
|
|
318
|
-
tslib_1.__extends(CarbonDioxideSensor, _super);
|
|
391
|
+
(0, tslib_1.__extends)(CarbonDioxideSensor, _super);
|
|
319
392
|
function CarbonDioxideSensor(displayName, subtype) {
|
|
320
393
|
var _this = _super.call(this, displayName, CarbonDioxideSensor.UUID, subtype) || this;
|
|
321
394
|
// Required Characteristics
|
|
@@ -339,7 +412,7 @@ Service_1.Service.CarbonDioxideSensor = CarbonDioxideSensor;
|
|
|
339
412
|
* Service "Carbon Monoxide Sensor"
|
|
340
413
|
*/
|
|
341
414
|
var CarbonMonoxideSensor = /** @class */ (function (_super) {
|
|
342
|
-
tslib_1.__extends(CarbonMonoxideSensor, _super);
|
|
415
|
+
(0, tslib_1.__extends)(CarbonMonoxideSensor, _super);
|
|
343
416
|
function CarbonMonoxideSensor(displayName, subtype) {
|
|
344
417
|
var _this = _super.call(this, displayName, CarbonMonoxideSensor.UUID, subtype) || this;
|
|
345
418
|
// Required Characteristics
|
|
@@ -363,7 +436,7 @@ Service_1.Service.CarbonMonoxideSensor = CarbonMonoxideSensor;
|
|
|
363
436
|
* Service "Cloud Relay"
|
|
364
437
|
*/
|
|
365
438
|
var CloudRelay = /** @class */ (function (_super) {
|
|
366
|
-
tslib_1.__extends(CloudRelay, _super);
|
|
439
|
+
(0, tslib_1.__extends)(CloudRelay, _super);
|
|
367
440
|
function CloudRelay(displayName, subtype) {
|
|
368
441
|
var _this = _super.call(this, displayName, CloudRelay.UUID, subtype) || this;
|
|
369
442
|
// Required Characteristics
|
|
@@ -383,7 +456,7 @@ Service_1.Service.CloudRelay = CloudRelay;
|
|
|
383
456
|
* Service "Contact Sensor"
|
|
384
457
|
*/
|
|
385
458
|
var ContactSensor = /** @class */ (function (_super) {
|
|
386
|
-
tslib_1.__extends(ContactSensor, _super);
|
|
459
|
+
(0, tslib_1.__extends)(ContactSensor, _super);
|
|
387
460
|
function ContactSensor(displayName, subtype) {
|
|
388
461
|
var _this = _super.call(this, displayName, ContactSensor.UUID, subtype) || this;
|
|
389
462
|
// Required Characteristics
|
|
@@ -405,7 +478,7 @@ Service_1.Service.ContactSensor = ContactSensor;
|
|
|
405
478
|
* Service "Data Stream Transport Management"
|
|
406
479
|
*/
|
|
407
480
|
var DataStreamTransportManagement = /** @class */ (function (_super) {
|
|
408
|
-
tslib_1.__extends(DataStreamTransportManagement, _super);
|
|
481
|
+
(0, tslib_1.__extends)(DataStreamTransportManagement, _super);
|
|
409
482
|
function DataStreamTransportManagement(displayName, subtype) {
|
|
410
483
|
var _this = _super.call(this, displayName, DataStreamTransportManagement.UUID, subtype) || this;
|
|
411
484
|
// Required Characteristics
|
|
@@ -423,11 +496,14 @@ Service_1.Service.DataStreamTransportManagement = DataStreamTransportManagement;
|
|
|
423
496
|
* Service "Diagnostics"
|
|
424
497
|
*/
|
|
425
498
|
var Diagnostics = /** @class */ (function (_super) {
|
|
426
|
-
tslib_1.__extends(Diagnostics, _super);
|
|
499
|
+
(0, tslib_1.__extends)(Diagnostics, _super);
|
|
427
500
|
function Diagnostics(displayName, subtype) {
|
|
428
501
|
var _this = _super.call(this, displayName, Diagnostics.UUID, subtype) || this;
|
|
429
502
|
// Required Characteristics
|
|
430
503
|
_this.addCharacteristic(Characteristic_1.Characteristic.SupportedDiagnosticsSnapshot);
|
|
504
|
+
// Optional Characteristics
|
|
505
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SelectedDiagnosticsModes);
|
|
506
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SupportedDiagnosticsModes);
|
|
431
507
|
return _this;
|
|
432
508
|
}
|
|
433
509
|
Diagnostics.UUID = "00000237-0000-1000-8000-0026BB765291";
|
|
@@ -439,7 +515,7 @@ Service_1.Service.Diagnostics = Diagnostics;
|
|
|
439
515
|
* Service "Door"
|
|
440
516
|
*/
|
|
441
517
|
var Door = /** @class */ (function (_super) {
|
|
442
|
-
tslib_1.__extends(Door, _super);
|
|
518
|
+
(0, tslib_1.__extends)(Door, _super);
|
|
443
519
|
function Door(displayName, subtype) {
|
|
444
520
|
var _this = _super.call(this, displayName, Door.UUID, subtype) || this;
|
|
445
521
|
// Required Characteristics
|
|
@@ -461,7 +537,7 @@ Service_1.Service.Door = Door;
|
|
|
461
537
|
* Service "Doorbell"
|
|
462
538
|
*/
|
|
463
539
|
var Doorbell = /** @class */ (function (_super) {
|
|
464
|
-
tslib_1.__extends(Doorbell, _super);
|
|
540
|
+
(0, tslib_1.__extends)(Doorbell, _super);
|
|
465
541
|
function Doorbell(displayName, subtype) {
|
|
466
542
|
var _this = _super.call(this, displayName, Doorbell.UUID, subtype) || this;
|
|
467
543
|
// Required Characteristics
|
|
@@ -483,7 +559,7 @@ Service_1.Service.Doorbell = Doorbell;
|
|
|
483
559
|
* Service "Fan"
|
|
484
560
|
*/
|
|
485
561
|
var Fan = /** @class */ (function (_super) {
|
|
486
|
-
tslib_1.__extends(Fan, _super);
|
|
562
|
+
(0, tslib_1.__extends)(Fan, _super);
|
|
487
563
|
function Fan(displayName, subtype) {
|
|
488
564
|
var _this = _super.call(this, displayName, Fan.UUID, subtype) || this;
|
|
489
565
|
// Required Characteristics
|
|
@@ -503,7 +579,7 @@ Service_1.Service.Fan = Fan;
|
|
|
503
579
|
* Service "Fanv2"
|
|
504
580
|
*/
|
|
505
581
|
var Fanv2 = /** @class */ (function (_super) {
|
|
506
|
-
tslib_1.__extends(Fanv2, _super);
|
|
582
|
+
(0, tslib_1.__extends)(Fanv2, _super);
|
|
507
583
|
function Fanv2(displayName, subtype) {
|
|
508
584
|
var _this = _super.call(this, displayName, Fanv2.UUID, subtype) || this;
|
|
509
585
|
// Required Characteristics
|
|
@@ -527,7 +603,7 @@ Service_1.Service.Fanv2 = Fanv2;
|
|
|
527
603
|
* Service "Faucet"
|
|
528
604
|
*/
|
|
529
605
|
var Faucet = /** @class */ (function (_super) {
|
|
530
|
-
tslib_1.__extends(Faucet, _super);
|
|
606
|
+
(0, tslib_1.__extends)(Faucet, _super);
|
|
531
607
|
function Faucet(displayName, subtype) {
|
|
532
608
|
var _this = _super.call(this, displayName, Faucet.UUID, subtype) || this;
|
|
533
609
|
// Required Characteristics
|
|
@@ -546,7 +622,7 @@ Service_1.Service.Faucet = Faucet;
|
|
|
546
622
|
* Service "Filter Maintenance"
|
|
547
623
|
*/
|
|
548
624
|
var FilterMaintenance = /** @class */ (function (_super) {
|
|
549
|
-
tslib_1.__extends(FilterMaintenance, _super);
|
|
625
|
+
(0, tslib_1.__extends)(FilterMaintenance, _super);
|
|
550
626
|
function FilterMaintenance(displayName, subtype) {
|
|
551
627
|
var _this = _super.call(this, displayName, FilterMaintenance.UUID, subtype) || this;
|
|
552
628
|
// Required Characteristics
|
|
@@ -566,7 +642,7 @@ Service_1.Service.FilterMaintenance = FilterMaintenance;
|
|
|
566
642
|
* Service "Garage Door Opener"
|
|
567
643
|
*/
|
|
568
644
|
var GarageDoorOpener = /** @class */ (function (_super) {
|
|
569
|
-
tslib_1.__extends(GarageDoorOpener, _super);
|
|
645
|
+
(0, tslib_1.__extends)(GarageDoorOpener, _super);
|
|
570
646
|
function GarageDoorOpener(displayName, subtype) {
|
|
571
647
|
var _this = _super.call(this, displayName, GarageDoorOpener.UUID, subtype) || this;
|
|
572
648
|
// Required Characteristics
|
|
@@ -588,7 +664,7 @@ Service_1.Service.GarageDoorOpener = GarageDoorOpener;
|
|
|
588
664
|
* Service "Heater-Cooler"
|
|
589
665
|
*/
|
|
590
666
|
var HeaterCooler = /** @class */ (function (_super) {
|
|
591
|
-
tslib_1.__extends(HeaterCooler, _super);
|
|
667
|
+
(0, tslib_1.__extends)(HeaterCooler, _super);
|
|
592
668
|
function HeaterCooler(displayName, subtype) {
|
|
593
669
|
var _this = _super.call(this, displayName, HeaterCooler.UUID, subtype) || this;
|
|
594
670
|
// Required Characteristics
|
|
@@ -615,7 +691,7 @@ Service_1.Service.HeaterCooler = HeaterCooler;
|
|
|
615
691
|
* Service "Humidifier-Dehumidifier"
|
|
616
692
|
*/
|
|
617
693
|
var HumidifierDehumidifier = /** @class */ (function (_super) {
|
|
618
|
-
tslib_1.__extends(HumidifierDehumidifier, _super);
|
|
694
|
+
(0, tslib_1.__extends)(HumidifierDehumidifier, _super);
|
|
619
695
|
function HumidifierDehumidifier(displayName, subtype) {
|
|
620
696
|
var _this = _super.call(this, displayName, HumidifierDehumidifier.UUID, subtype) || this;
|
|
621
697
|
// Required Characteristics
|
|
@@ -642,7 +718,7 @@ Service_1.Service.HumidifierDehumidifier = HumidifierDehumidifier;
|
|
|
642
718
|
* Service "Humidity Sensor"
|
|
643
719
|
*/
|
|
644
720
|
var HumiditySensor = /** @class */ (function (_super) {
|
|
645
|
-
tslib_1.__extends(HumiditySensor, _super);
|
|
721
|
+
(0, tslib_1.__extends)(HumiditySensor, _super);
|
|
646
722
|
function HumiditySensor(displayName, subtype) {
|
|
647
723
|
var _this = _super.call(this, displayName, HumiditySensor.UUID, subtype) || this;
|
|
648
724
|
// Required Characteristics
|
|
@@ -664,7 +740,7 @@ Service_1.Service.HumiditySensor = HumiditySensor;
|
|
|
664
740
|
* Service "Input Source"
|
|
665
741
|
*/
|
|
666
742
|
var InputSource = /** @class */ (function (_super) {
|
|
667
|
-
tslib_1.__extends(InputSource, _super);
|
|
743
|
+
(0, tslib_1.__extends)(InputSource, _super);
|
|
668
744
|
function InputSource(displayName, subtype) {
|
|
669
745
|
var _this = _super.call(this, displayName, InputSource.UUID, subtype) || this;
|
|
670
746
|
// Required Characteristics
|
|
@@ -690,7 +766,7 @@ Service_1.Service.InputSource = InputSource;
|
|
|
690
766
|
* Service "Irrigation-System"
|
|
691
767
|
*/
|
|
692
768
|
var IrrigationSystem = /** @class */ (function (_super) {
|
|
693
|
-
tslib_1.__extends(IrrigationSystem, _super);
|
|
769
|
+
(0, tslib_1.__extends)(IrrigationSystem, _super);
|
|
694
770
|
function IrrigationSystem(displayName, subtype) {
|
|
695
771
|
var _this = _super.call(this, displayName, IrrigationSystem.UUID, subtype) || this;
|
|
696
772
|
// Required Characteristics
|
|
@@ -712,7 +788,7 @@ Service_1.Service.IrrigationSystem = IrrigationSystem;
|
|
|
712
788
|
* Service "Leak Sensor"
|
|
713
789
|
*/
|
|
714
790
|
var LeakSensor = /** @class */ (function (_super) {
|
|
715
|
-
tslib_1.__extends(LeakSensor, _super);
|
|
791
|
+
(0, tslib_1.__extends)(LeakSensor, _super);
|
|
716
792
|
function LeakSensor(displayName, subtype) {
|
|
717
793
|
var _this = _super.call(this, displayName, LeakSensor.UUID, subtype) || this;
|
|
718
794
|
// Required Characteristics
|
|
@@ -734,7 +810,7 @@ Service_1.Service.LeakSensor = LeakSensor;
|
|
|
734
810
|
* Service "Lightbulb"
|
|
735
811
|
*/
|
|
736
812
|
var Lightbulb = /** @class */ (function (_super) {
|
|
737
|
-
tslib_1.__extends(Lightbulb, _super);
|
|
813
|
+
(0, tslib_1.__extends)(Lightbulb, _super);
|
|
738
814
|
function Lightbulb(displayName, subtype) {
|
|
739
815
|
var _this = _super.call(this, displayName, Lightbulb.UUID, subtype) || this;
|
|
740
816
|
// Required Characteristics
|
|
@@ -759,7 +835,7 @@ Service_1.Service.Lightbulb = Lightbulb;
|
|
|
759
835
|
* Service "Light Sensor"
|
|
760
836
|
*/
|
|
761
837
|
var LightSensor = /** @class */ (function (_super) {
|
|
762
|
-
tslib_1.__extends(LightSensor, _super);
|
|
838
|
+
(0, tslib_1.__extends)(LightSensor, _super);
|
|
763
839
|
function LightSensor(displayName, subtype) {
|
|
764
840
|
var _this = _super.call(this, displayName, LightSensor.UUID, subtype) || this;
|
|
765
841
|
// Required Characteristics
|
|
@@ -781,7 +857,7 @@ Service_1.Service.LightSensor = LightSensor;
|
|
|
781
857
|
* Service "Lock Management"
|
|
782
858
|
*/
|
|
783
859
|
var LockManagement = /** @class */ (function (_super) {
|
|
784
|
-
tslib_1.__extends(LockManagement, _super);
|
|
860
|
+
(0, tslib_1.__extends)(LockManagement, _super);
|
|
785
861
|
function LockManagement(displayName, subtype) {
|
|
786
862
|
var _this = _super.call(this, displayName, LockManagement.UUID, subtype) || this;
|
|
787
863
|
// Required Characteristics
|
|
@@ -806,7 +882,7 @@ Service_1.Service.LockManagement = LockManagement;
|
|
|
806
882
|
* Service "Lock Mechanism"
|
|
807
883
|
*/
|
|
808
884
|
var LockMechanism = /** @class */ (function (_super) {
|
|
809
|
-
tslib_1.__extends(LockMechanism, _super);
|
|
885
|
+
(0, tslib_1.__extends)(LockMechanism, _super);
|
|
810
886
|
function LockMechanism(displayName, subtype) {
|
|
811
887
|
var _this = _super.call(this, displayName, LockMechanism.UUID, subtype) || this;
|
|
812
888
|
// Required Characteristics
|
|
@@ -825,7 +901,7 @@ Service_1.Service.LockMechanism = LockMechanism;
|
|
|
825
901
|
* Service "Microphone"
|
|
826
902
|
*/
|
|
827
903
|
var Microphone = /** @class */ (function (_super) {
|
|
828
|
-
tslib_1.__extends(Microphone, _super);
|
|
904
|
+
(0, tslib_1.__extends)(Microphone, _super);
|
|
829
905
|
function Microphone(displayName, subtype) {
|
|
830
906
|
var _this = _super.call(this, displayName, Microphone.UUID, subtype) || this;
|
|
831
907
|
// Required Characteristics
|
|
@@ -843,7 +919,7 @@ Service_1.Service.Microphone = Microphone;
|
|
|
843
919
|
* Service "Motion Sensor"
|
|
844
920
|
*/
|
|
845
921
|
var MotionSensor = /** @class */ (function (_super) {
|
|
846
|
-
tslib_1.__extends(MotionSensor, _super);
|
|
922
|
+
(0, tslib_1.__extends)(MotionSensor, _super);
|
|
847
923
|
function MotionSensor(displayName, subtype) {
|
|
848
924
|
var _this = _super.call(this, displayName, MotionSensor.UUID, subtype) || this;
|
|
849
925
|
// Required Characteristics
|
|
@@ -861,11 +937,30 @@ var MotionSensor = /** @class */ (function (_super) {
|
|
|
861
937
|
}(Service_1.Service));
|
|
862
938
|
exports.MotionSensor = MotionSensor;
|
|
863
939
|
Service_1.Service.MotionSensor = MotionSensor;
|
|
940
|
+
/**
|
|
941
|
+
* Service "NFC Access"
|
|
942
|
+
* @since iOS 15
|
|
943
|
+
*/
|
|
944
|
+
var NFCAccess = /** @class */ (function (_super) {
|
|
945
|
+
(0, tslib_1.__extends)(NFCAccess, _super);
|
|
946
|
+
function NFCAccess(displayName, subtype) {
|
|
947
|
+
var _this = _super.call(this, displayName, NFCAccess.UUID, subtype) || this;
|
|
948
|
+
// Required Characteristics
|
|
949
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.ConfigurationState);
|
|
950
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.NFCAccessControlPoint);
|
|
951
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.NFCAccessSupportedConfiguration);
|
|
952
|
+
return _this;
|
|
953
|
+
}
|
|
954
|
+
NFCAccess.UUID = "00000266-0000-1000-8000-0026BB765291";
|
|
955
|
+
return NFCAccess;
|
|
956
|
+
}(Service_1.Service));
|
|
957
|
+
exports.NFCAccess = NFCAccess;
|
|
958
|
+
Service_1.Service.NFCAccess = NFCAccess;
|
|
864
959
|
/**
|
|
865
960
|
* Service "Occupancy Sensor"
|
|
866
961
|
*/
|
|
867
962
|
var OccupancySensor = /** @class */ (function (_super) {
|
|
868
|
-
tslib_1.__extends(OccupancySensor, _super);
|
|
963
|
+
(0, tslib_1.__extends)(OccupancySensor, _super);
|
|
869
964
|
function OccupancySensor(displayName, subtype) {
|
|
870
965
|
var _this = _super.call(this, displayName, OccupancySensor.UUID, subtype) || this;
|
|
871
966
|
// Required Characteristics
|
|
@@ -888,7 +983,7 @@ Service_1.Service.OccupancySensor = OccupancySensor;
|
|
|
888
983
|
* @since iOS 13
|
|
889
984
|
*/
|
|
890
985
|
var Outlet = /** @class */ (function (_super) {
|
|
891
|
-
tslib_1.__extends(Outlet, _super);
|
|
986
|
+
(0, tslib_1.__extends)(Outlet, _super);
|
|
892
987
|
function Outlet(displayName, subtype) {
|
|
893
988
|
var _this = _super.call(this, displayName, Outlet.UUID, subtype) || this;
|
|
894
989
|
// Required Characteristics
|
|
@@ -907,7 +1002,7 @@ Service_1.Service.Outlet = Outlet;
|
|
|
907
1002
|
* Service "Pairing"
|
|
908
1003
|
*/
|
|
909
1004
|
var Pairing = /** @class */ (function (_super) {
|
|
910
|
-
tslib_1.__extends(Pairing, _super);
|
|
1005
|
+
(0, tslib_1.__extends)(Pairing, _super);
|
|
911
1006
|
function Pairing(displayName, subtype) {
|
|
912
1007
|
var _this = _super.call(this, displayName, Pairing.UUID, subtype) || this;
|
|
913
1008
|
// Required Characteristics
|
|
@@ -926,7 +1021,7 @@ Service_1.Service.Pairing = Pairing;
|
|
|
926
1021
|
* Service "Power Management"
|
|
927
1022
|
*/
|
|
928
1023
|
var PowerManagement = /** @class */ (function (_super) {
|
|
929
|
-
tslib_1.__extends(PowerManagement, _super);
|
|
1024
|
+
(0, tslib_1.__extends)(PowerManagement, _super);
|
|
930
1025
|
function PowerManagement(displayName, subtype) {
|
|
931
1026
|
var _this = _super.call(this, displayName, PowerManagement.UUID, subtype) || this;
|
|
932
1027
|
// Required Characteristics
|
|
@@ -942,7 +1037,7 @@ Service_1.Service.PowerManagement = PowerManagement;
|
|
|
942
1037
|
* Service "Protocol Information"
|
|
943
1038
|
*/
|
|
944
1039
|
var ProtocolInformation = /** @class */ (function (_super) {
|
|
945
|
-
tslib_1.__extends(ProtocolInformation, _super);
|
|
1040
|
+
(0, tslib_1.__extends)(ProtocolInformation, _super);
|
|
946
1041
|
function ProtocolInformation(displayName, subtype) {
|
|
947
1042
|
var _this = _super.call(this, displayName, ProtocolInformation.UUID, subtype) || this;
|
|
948
1043
|
// Required Characteristics
|
|
@@ -958,7 +1053,7 @@ Service_1.Service.ProtocolInformation = ProtocolInformation;
|
|
|
958
1053
|
* Service "Security System"
|
|
959
1054
|
*/
|
|
960
1055
|
var SecuritySystem = /** @class */ (function (_super) {
|
|
961
|
-
tslib_1.__extends(SecuritySystem, _super);
|
|
1056
|
+
(0, tslib_1.__extends)(SecuritySystem, _super);
|
|
962
1057
|
function SecuritySystem(displayName, subtype) {
|
|
963
1058
|
var _this = _super.call(this, displayName, SecuritySystem.UUID, subtype) || this;
|
|
964
1059
|
// Required Characteristics
|
|
@@ -980,7 +1075,7 @@ Service_1.Service.SecuritySystem = SecuritySystem;
|
|
|
980
1075
|
* Service "Service Label"
|
|
981
1076
|
*/
|
|
982
1077
|
var ServiceLabel = /** @class */ (function (_super) {
|
|
983
|
-
tslib_1.__extends(ServiceLabel, _super);
|
|
1078
|
+
(0, tslib_1.__extends)(ServiceLabel, _super);
|
|
984
1079
|
function ServiceLabel(displayName, subtype) {
|
|
985
1080
|
var _this = _super.call(this, displayName, ServiceLabel.UUID, subtype) || this;
|
|
986
1081
|
// Required Characteristics
|
|
@@ -996,11 +1091,18 @@ Service_1.Service.ServiceLabel = ServiceLabel;
|
|
|
996
1091
|
* Service "Siri"
|
|
997
1092
|
*/
|
|
998
1093
|
var Siri = /** @class */ (function (_super) {
|
|
999
|
-
tslib_1.__extends(Siri, _super);
|
|
1094
|
+
(0, tslib_1.__extends)(Siri, _super);
|
|
1000
1095
|
function Siri(displayName, subtype) {
|
|
1001
1096
|
var _this = _super.call(this, displayName, Siri.UUID, subtype) || this;
|
|
1002
1097
|
// Required Characteristics
|
|
1003
1098
|
_this.addCharacteristic(Characteristic_1.Characteristic.SiriInputType);
|
|
1099
|
+
// Optional Characteristics
|
|
1100
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.MultifunctionButton);
|
|
1101
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SiriEnable);
|
|
1102
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SiriEngineVersion);
|
|
1103
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SiriLightOnUse);
|
|
1104
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SiriListening);
|
|
1105
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.SiriTouchToUse);
|
|
1004
1106
|
return _this;
|
|
1005
1107
|
}
|
|
1006
1108
|
Siri.UUID = "00000133-0000-1000-8000-0026BB765291";
|
|
@@ -1008,11 +1110,31 @@ var Siri = /** @class */ (function (_super) {
|
|
|
1008
1110
|
}(Service_1.Service));
|
|
1009
1111
|
exports.Siri = Siri;
|
|
1010
1112
|
Service_1.Service.Siri = Siri;
|
|
1113
|
+
/**
|
|
1114
|
+
* Service "Siri Endpoint"
|
|
1115
|
+
*/
|
|
1116
|
+
var SiriEndpoint = /** @class */ (function (_super) {
|
|
1117
|
+
(0, tslib_1.__extends)(SiriEndpoint, _super);
|
|
1118
|
+
function SiriEndpoint(displayName, subtype) {
|
|
1119
|
+
var _this = _super.call(this, displayName, SiriEndpoint.UUID, subtype) || this;
|
|
1120
|
+
// Required Characteristics
|
|
1121
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.SiriEndpointSessionStatus);
|
|
1122
|
+
_this.addCharacteristic(Characteristic_1.Characteristic.Version);
|
|
1123
|
+
// Optional Characteristics
|
|
1124
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.ActiveIdentifier);
|
|
1125
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.ManuallyDisabled);
|
|
1126
|
+
return _this;
|
|
1127
|
+
}
|
|
1128
|
+
SiriEndpoint.UUID = "00000253-0000-1000-8000-0026BB765291";
|
|
1129
|
+
return SiriEndpoint;
|
|
1130
|
+
}(Service_1.Service));
|
|
1131
|
+
exports.SiriEndpoint = SiriEndpoint;
|
|
1132
|
+
Service_1.Service.SiriEndpoint = SiriEndpoint;
|
|
1011
1133
|
/**
|
|
1012
1134
|
* Service "Slats"
|
|
1013
1135
|
*/
|
|
1014
1136
|
var Slats = /** @class */ (function (_super) {
|
|
1015
|
-
tslib_1.__extends(Slats, _super);
|
|
1137
|
+
(0, tslib_1.__extends)(Slats, _super);
|
|
1016
1138
|
function Slats(displayName, subtype) {
|
|
1017
1139
|
var _this = _super.call(this, displayName, Slats.UUID, subtype) || this;
|
|
1018
1140
|
// Required Characteristics
|
|
@@ -1036,13 +1158,14 @@ Service_1.Service.Slats = Slats;
|
|
|
1036
1158
|
* Service "Smart Speaker"
|
|
1037
1159
|
*/
|
|
1038
1160
|
var SmartSpeaker = /** @class */ (function (_super) {
|
|
1039
|
-
tslib_1.__extends(SmartSpeaker, _super);
|
|
1161
|
+
(0, tslib_1.__extends)(SmartSpeaker, _super);
|
|
1040
1162
|
function SmartSpeaker(displayName, subtype) {
|
|
1041
1163
|
var _this = _super.call(this, displayName, SmartSpeaker.UUID, subtype) || this;
|
|
1042
1164
|
// Required Characteristics
|
|
1043
1165
|
_this.addCharacteristic(Characteristic_1.Characteristic.CurrentMediaState);
|
|
1044
1166
|
_this.addCharacteristic(Characteristic_1.Characteristic.TargetMediaState);
|
|
1045
1167
|
// Optional Characteristics
|
|
1168
|
+
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.AirPlayEnable);
|
|
1046
1169
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.ConfiguredName);
|
|
1047
1170
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.Mute);
|
|
1048
1171
|
_this.addOptionalCharacteristic(Characteristic_1.Characteristic.Name);
|
|
@@ -1058,7 +1181,7 @@ Service_1.Service.SmartSpeaker = SmartSpeaker;
|
|
|
1058
1181
|
* Service "Smoke Sensor"
|
|
1059
1182
|
*/
|
|
1060
1183
|
var SmokeSensor = /** @class */ (function (_super) {
|
|
1061
|
-
tslib_1.__extends(SmokeSensor, _super);
|
|
1184
|
+
(0, tslib_1.__extends)(SmokeSensor, _super);
|
|
1062
1185
|
function SmokeSensor(displayName, subtype) {
|
|
1063
1186
|
var _this = _super.call(this, displayName, SmokeSensor.UUID, subtype) || this;
|
|
1064
1187
|
// Required Characteristics
|
|
@@ -1081,7 +1204,7 @@ Service_1.Service.SmokeSensor = SmokeSensor;
|
|
|
1081
1204
|
* @since iOS 10
|
|
1082
1205
|
*/
|
|
1083
1206
|
var Speaker = /** @class */ (function (_super) {
|
|
1084
|
-
tslib_1.__extends(Speaker, _super);
|
|
1207
|
+
(0, tslib_1.__extends)(Speaker, _super);
|
|
1085
1208
|
function Speaker(displayName, subtype) {
|
|
1086
1209
|
var _this = _super.call(this, displayName, Speaker.UUID, subtype) || this;
|
|
1087
1210
|
// Required Characteristics
|
|
@@ -1100,7 +1223,7 @@ Service_1.Service.Speaker = Speaker;
|
|
|
1100
1223
|
* Service "Stateful Programmable Switch"
|
|
1101
1224
|
*/
|
|
1102
1225
|
var StatefulProgrammableSwitch = /** @class */ (function (_super) {
|
|
1103
|
-
tslib_1.__extends(StatefulProgrammableSwitch, _super);
|
|
1226
|
+
(0, tslib_1.__extends)(StatefulProgrammableSwitch, _super);
|
|
1104
1227
|
function StatefulProgrammableSwitch(displayName, subtype) {
|
|
1105
1228
|
var _this = _super.call(this, displayName, StatefulProgrammableSwitch.UUID, subtype) || this;
|
|
1106
1229
|
// Required Characteristics
|
|
@@ -1119,7 +1242,7 @@ Service_1.Service.StatefulProgrammableSwitch = StatefulProgrammableSwitch;
|
|
|
1119
1242
|
* Service "Stateless Programmable Switch"
|
|
1120
1243
|
*/
|
|
1121
1244
|
var StatelessProgrammableSwitch = /** @class */ (function (_super) {
|
|
1122
|
-
tslib_1.__extends(StatelessProgrammableSwitch, _super);
|
|
1245
|
+
(0, tslib_1.__extends)(StatelessProgrammableSwitch, _super);
|
|
1123
1246
|
function StatelessProgrammableSwitch(displayName, subtype) {
|
|
1124
1247
|
var _this = _super.call(this, displayName, StatelessProgrammableSwitch.UUID, subtype) || this;
|
|
1125
1248
|
// Required Characteristics
|
|
@@ -1138,7 +1261,7 @@ Service_1.Service.StatelessProgrammableSwitch = StatelessProgrammableSwitch;
|
|
|
1138
1261
|
* Service "Switch"
|
|
1139
1262
|
*/
|
|
1140
1263
|
var Switch = /** @class */ (function (_super) {
|
|
1141
|
-
tslib_1.__extends(Switch, _super);
|
|
1264
|
+
(0, tslib_1.__extends)(Switch, _super);
|
|
1142
1265
|
function Switch(displayName, subtype) {
|
|
1143
1266
|
var _this = _super.call(this, displayName, Switch.UUID, subtype) || this;
|
|
1144
1267
|
// Required Characteristics
|
|
@@ -1156,7 +1279,7 @@ Service_1.Service.Switch = Switch;
|
|
|
1156
1279
|
* Service "Target Control"
|
|
1157
1280
|
*/
|
|
1158
1281
|
var TargetControl = /** @class */ (function (_super) {
|
|
1159
|
-
tslib_1.__extends(TargetControl, _super);
|
|
1282
|
+
(0, tslib_1.__extends)(TargetControl, _super);
|
|
1160
1283
|
function TargetControl(displayName, subtype) {
|
|
1161
1284
|
var _this = _super.call(this, displayName, TargetControl.UUID, subtype) || this;
|
|
1162
1285
|
// Required Characteristics
|
|
@@ -1176,7 +1299,7 @@ Service_1.Service.TargetControl = TargetControl;
|
|
|
1176
1299
|
* Service "Target Control Management"
|
|
1177
1300
|
*/
|
|
1178
1301
|
var TargetControlManagement = /** @class */ (function (_super) {
|
|
1179
|
-
tslib_1.__extends(TargetControlManagement, _super);
|
|
1302
|
+
(0, tslib_1.__extends)(TargetControlManagement, _super);
|
|
1180
1303
|
function TargetControlManagement(displayName, subtype) {
|
|
1181
1304
|
var _this = _super.call(this, displayName, TargetControlManagement.UUID, subtype) || this;
|
|
1182
1305
|
// Required Characteristics
|
|
@@ -1193,7 +1316,7 @@ Service_1.Service.TargetControlManagement = TargetControlManagement;
|
|
|
1193
1316
|
* Service "Television"
|
|
1194
1317
|
*/
|
|
1195
1318
|
var Television = /** @class */ (function (_super) {
|
|
1196
|
-
tslib_1.__extends(Television, _super);
|
|
1319
|
+
(0, tslib_1.__extends)(Television, _super);
|
|
1197
1320
|
function Television(displayName, subtype) {
|
|
1198
1321
|
var _this = _super.call(this, displayName, Television.UUID, subtype) || this;
|
|
1199
1322
|
// Required Characteristics
|
|
@@ -1222,7 +1345,7 @@ Service_1.Service.Television = Television;
|
|
|
1222
1345
|
* Service "Television Speaker"
|
|
1223
1346
|
*/
|
|
1224
1347
|
var TelevisionSpeaker = /** @class */ (function (_super) {
|
|
1225
|
-
tslib_1.__extends(TelevisionSpeaker, _super);
|
|
1348
|
+
(0, tslib_1.__extends)(TelevisionSpeaker, _super);
|
|
1226
1349
|
function TelevisionSpeaker(displayName, subtype) {
|
|
1227
1350
|
var _this = _super.call(this, displayName, TelevisionSpeaker.UUID, subtype) || this;
|
|
1228
1351
|
// Required Characteristics
|
|
@@ -1243,7 +1366,7 @@ Service_1.Service.TelevisionSpeaker = TelevisionSpeaker;
|
|
|
1243
1366
|
* Service "Temperature Sensor"
|
|
1244
1367
|
*/
|
|
1245
1368
|
var TemperatureSensor = /** @class */ (function (_super) {
|
|
1246
|
-
tslib_1.__extends(TemperatureSensor, _super);
|
|
1369
|
+
(0, tslib_1.__extends)(TemperatureSensor, _super);
|
|
1247
1370
|
function TemperatureSensor(displayName, subtype) {
|
|
1248
1371
|
var _this = _super.call(this, displayName, TemperatureSensor.UUID, subtype) || this;
|
|
1249
1372
|
// Required Characteristics
|
|
@@ -1265,7 +1388,7 @@ Service_1.Service.TemperatureSensor = TemperatureSensor;
|
|
|
1265
1388
|
* Service "Thermostat"
|
|
1266
1389
|
*/
|
|
1267
1390
|
var Thermostat = /** @class */ (function (_super) {
|
|
1268
|
-
tslib_1.__extends(Thermostat, _super);
|
|
1391
|
+
(0, tslib_1.__extends)(Thermostat, _super);
|
|
1269
1392
|
function Thermostat(displayName, subtype) {
|
|
1270
1393
|
var _this = _super.call(this, displayName, Thermostat.UUID, subtype) || this;
|
|
1271
1394
|
// Required Characteristics
|
|
@@ -1291,7 +1414,7 @@ Service_1.Service.Thermostat = Thermostat;
|
|
|
1291
1414
|
* Service "Thread Transport"
|
|
1292
1415
|
*/
|
|
1293
1416
|
var ThreadTransport = /** @class */ (function (_super) {
|
|
1294
|
-
tslib_1.__extends(ThreadTransport, _super);
|
|
1417
|
+
(0, tslib_1.__extends)(ThreadTransport, _super);
|
|
1295
1418
|
function ThreadTransport(displayName, subtype) {
|
|
1296
1419
|
var _this = _super.call(this, displayName, ThreadTransport.UUID, subtype) || this;
|
|
1297
1420
|
// Required Characteristics
|
|
@@ -1324,7 +1447,7 @@ Service_1.Service.ThreadTransport = ThreadTransport;
|
|
|
1324
1447
|
* @deprecated Removed and not used anymore
|
|
1325
1448
|
*/
|
|
1326
1449
|
var TimeInformation = /** @class */ (function (_super) {
|
|
1327
|
-
tslib_1.__extends(TimeInformation, _super);
|
|
1450
|
+
(0, tslib_1.__extends)(TimeInformation, _super);
|
|
1328
1451
|
function TimeInformation(displayName, subtype) {
|
|
1329
1452
|
var _this = _super.call(this, displayName, TimeInformation.UUID, subtype) || this;
|
|
1330
1453
|
// Required Characteristics
|
|
@@ -1345,7 +1468,7 @@ Service_1.Service.TimeInformation = TimeInformation;
|
|
|
1345
1468
|
* Service "Transfer Transport Management"
|
|
1346
1469
|
*/
|
|
1347
1470
|
var TransferTransportManagement = /** @class */ (function (_super) {
|
|
1348
|
-
tslib_1.__extends(TransferTransportManagement, _super);
|
|
1471
|
+
(0, tslib_1.__extends)(TransferTransportManagement, _super);
|
|
1349
1472
|
function TransferTransportManagement(displayName, subtype) {
|
|
1350
1473
|
var _this = _super.call(this, displayName, TransferTransportManagement.UUID, subtype) || this;
|
|
1351
1474
|
// Required Characteristics
|
|
@@ -1362,7 +1485,7 @@ Service_1.Service.TransferTransportManagement = TransferTransportManagement;
|
|
|
1362
1485
|
* Service "Tunnel"
|
|
1363
1486
|
*/
|
|
1364
1487
|
var Tunnel = /** @class */ (function (_super) {
|
|
1365
|
-
tslib_1.__extends(Tunnel, _super);
|
|
1488
|
+
(0, tslib_1.__extends)(Tunnel, _super);
|
|
1366
1489
|
function Tunnel(displayName, subtype) {
|
|
1367
1490
|
var _this = _super.call(this, displayName, Tunnel.UUID, subtype) || this;
|
|
1368
1491
|
// Required Characteristics
|
|
@@ -1384,7 +1507,7 @@ Service_1.Service.Tunnel = Tunnel;
|
|
|
1384
1507
|
* Service "Valve"
|
|
1385
1508
|
*/
|
|
1386
1509
|
var Valve = /** @class */ (function (_super) {
|
|
1387
|
-
tslib_1.__extends(Valve, _super);
|
|
1510
|
+
(0, tslib_1.__extends)(Valve, _super);
|
|
1388
1511
|
function Valve(displayName, subtype) {
|
|
1389
1512
|
var _this = _super.call(this, displayName, Valve.UUID, subtype) || this;
|
|
1390
1513
|
// Required Characteristics
|
|
@@ -1409,7 +1532,7 @@ Service_1.Service.Valve = Valve;
|
|
|
1409
1532
|
* Service "Wi-Fi Router"
|
|
1410
1533
|
*/
|
|
1411
1534
|
var WiFiRouter = /** @class */ (function (_super) {
|
|
1412
|
-
tslib_1.__extends(WiFiRouter, _super);
|
|
1535
|
+
(0, tslib_1.__extends)(WiFiRouter, _super);
|
|
1413
1536
|
function WiFiRouter(displayName, subtype) {
|
|
1414
1537
|
var _this = _super.call(this, displayName, WiFiRouter.UUID, subtype) || this;
|
|
1415
1538
|
// Required Characteristics
|
|
@@ -1433,7 +1556,7 @@ Service_1.Service.WiFiRouter = WiFiRouter;
|
|
|
1433
1556
|
* Service "Wi-Fi Satellite"
|
|
1434
1557
|
*/
|
|
1435
1558
|
var WiFiSatellite = /** @class */ (function (_super) {
|
|
1436
|
-
tslib_1.__extends(WiFiSatellite, _super);
|
|
1559
|
+
(0, tslib_1.__extends)(WiFiSatellite, _super);
|
|
1437
1560
|
function WiFiSatellite(displayName, subtype) {
|
|
1438
1561
|
var _this = _super.call(this, displayName, WiFiSatellite.UUID, subtype) || this;
|
|
1439
1562
|
// Required Characteristics
|
|
@@ -1449,7 +1572,7 @@ Service_1.Service.WiFiSatellite = WiFiSatellite;
|
|
|
1449
1572
|
* Service "Wi-Fi Transport"
|
|
1450
1573
|
*/
|
|
1451
1574
|
var WiFiTransport = /** @class */ (function (_super) {
|
|
1452
|
-
tslib_1.__extends(WiFiTransport, _super);
|
|
1575
|
+
(0, tslib_1.__extends)(WiFiTransport, _super);
|
|
1453
1576
|
function WiFiTransport(displayName, subtype) {
|
|
1454
1577
|
var _this = _super.call(this, displayName, WiFiTransport.UUID, subtype) || this;
|
|
1455
1578
|
// Required Characteristics
|
|
@@ -1468,7 +1591,7 @@ Service_1.Service.WiFiTransport = WiFiTransport;
|
|
|
1468
1591
|
* Service "Window"
|
|
1469
1592
|
*/
|
|
1470
1593
|
var Window = /** @class */ (function (_super) {
|
|
1471
|
-
tslib_1.__extends(Window, _super);
|
|
1594
|
+
(0, tslib_1.__extends)(Window, _super);
|
|
1472
1595
|
function Window(displayName, subtype) {
|
|
1473
1596
|
var _this = _super.call(this, displayName, Window.UUID, subtype) || this;
|
|
1474
1597
|
// Required Characteristics
|
|
@@ -1490,7 +1613,7 @@ Service_1.Service.Window = Window;
|
|
|
1490
1613
|
* Service "Window Covering"
|
|
1491
1614
|
*/
|
|
1492
1615
|
var WindowCovering = /** @class */ (function (_super) {
|
|
1493
|
-
tslib_1.__extends(WindowCovering, _super);
|
|
1616
|
+
(0, tslib_1.__extends)(WindowCovering, _super);
|
|
1494
1617
|
function WindowCovering(displayName, subtype) {
|
|
1495
1618
|
var _this = _super.call(this, displayName, WindowCovering.UUID, subtype) || this;
|
|
1496
1619
|
// Required Characteristics
|