@camstack/addon-export-hap 1.1.10 → 1.1.12
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/dist/export-hap.addon.js +79 -5
- package/dist/export-hap.addon.mjs +79 -5
- package/package.json +1 -1
package/dist/export-hap.addon.js
CHANGED
|
@@ -4664,7 +4664,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4664
4664
|
return inst;
|
|
4665
4665
|
}
|
|
4666
4666
|
//#endregion
|
|
4667
|
-
//#region ../types/dist/sleep-
|
|
4667
|
+
//#region ../types/dist/sleep-C2M2zF7x.mjs
|
|
4668
4668
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4669
4669
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4670
4670
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -6232,6 +6232,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
6232
6232
|
DeviceType["Switch"] = "switch";
|
|
6233
6233
|
DeviceType["Sensor"] = "sensor";
|
|
6234
6234
|
DeviceType["Thermostat"] = "thermostat";
|
|
6235
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
6236
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
6237
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
6238
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
6239
|
+
* reusable by other AC integrations. */
|
|
6240
|
+
DeviceType["Climate"] = "climate";
|
|
6235
6241
|
DeviceType["Button"] = "button";
|
|
6236
6242
|
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6237
6243
|
* event vocabulary verbatim (no normalization). Installed with the
|
|
@@ -8440,7 +8446,7 @@ object({
|
|
|
8440
8446
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
8441
8447
|
lastFetchedAt: number()
|
|
8442
8448
|
});
|
|
8443
|
-
DeviceType.Thermostat, method(object({
|
|
8449
|
+
DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
8444
8450
|
deviceId: number().int().nonnegative(),
|
|
8445
8451
|
mode: HvacModeSchema
|
|
8446
8452
|
}), _void(), {
|
|
@@ -11125,10 +11131,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
11125
11131
|
id: string(),
|
|
11126
11132
|
name: string(),
|
|
11127
11133
|
type: string()
|
|
11128
|
-
}))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
|
|
11134
|
+
}))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
11129
11135
|
kind: "mutation",
|
|
11130
11136
|
auth: "admin"
|
|
11131
|
-
}), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11137
|
+
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11132
11138
|
kind: "mutation",
|
|
11133
11139
|
auth: "admin"
|
|
11134
11140
|
}), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
|
|
@@ -12874,7 +12880,10 @@ method(object({
|
|
|
12874
12880
|
}), FieldProbeResultSchema, {
|
|
12875
12881
|
kind: "mutation",
|
|
12876
12882
|
auth: "admin"
|
|
12877
|
-
}), method(
|
|
12883
|
+
}), method(object({
|
|
12884
|
+
addonId: string(),
|
|
12885
|
+
integrationId: string()
|
|
12886
|
+
}), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
|
|
12878
12887
|
addonId: string(),
|
|
12879
12888
|
integrationId: string()
|
|
12880
12889
|
}), AdoptionStatusSchema, {
|
|
@@ -12889,7 +12898,24 @@ method(object({
|
|
|
12889
12898
|
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
12890
12899
|
kind: "mutation",
|
|
12891
12900
|
auth: "admin"
|
|
12901
|
+
}), method(object({}), object({ providers: array(object({
|
|
12902
|
+
addonId: string(),
|
|
12903
|
+
label: string()
|
|
12904
|
+
})).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
|
|
12905
|
+
addonId: string(),
|
|
12906
|
+
label: string(),
|
|
12907
|
+
candidates: array(DiscoveryCandidateSchema).readonly(),
|
|
12908
|
+
error: string().nullable()
|
|
12909
|
+
})).readonly() }), {
|
|
12910
|
+
kind: "mutation",
|
|
12911
|
+
auth: "admin"
|
|
12892
12912
|
}), method(object({
|
|
12913
|
+
addonId: string(),
|
|
12914
|
+
params: record(string(), unknown()).optional()
|
|
12915
|
+
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
12916
|
+
kind: "mutation",
|
|
12917
|
+
auth: "admin"
|
|
12918
|
+
}), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
|
|
12893
12919
|
deviceId: number(),
|
|
12894
12920
|
key: string(),
|
|
12895
12921
|
value: unknown()
|
|
@@ -18012,6 +18038,12 @@ Object.freeze({
|
|
|
18012
18038
|
addonId: null,
|
|
18013
18039
|
access: "create"
|
|
18014
18040
|
},
|
|
18041
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18042
|
+
capName: "device-manager",
|
|
18043
|
+
capScope: "system",
|
|
18044
|
+
addonId: null,
|
|
18045
|
+
access: "view"
|
|
18046
|
+
},
|
|
18015
18047
|
"deviceManager.adoptionListCandidates": {
|
|
18016
18048
|
capName: "device-manager",
|
|
18017
18049
|
capScope: "system",
|
|
@@ -18060,12 +18092,30 @@ Object.freeze({
|
|
|
18060
18092
|
addonId: null,
|
|
18061
18093
|
access: "create"
|
|
18062
18094
|
},
|
|
18095
|
+
"deviceManager.discoverAllProviders": {
|
|
18096
|
+
capName: "device-manager",
|
|
18097
|
+
capScope: "system",
|
|
18098
|
+
addonId: null,
|
|
18099
|
+
access: "create"
|
|
18100
|
+
},
|
|
18063
18101
|
"deviceManager.discoverDevices": {
|
|
18064
18102
|
capName: "device-manager",
|
|
18065
18103
|
capScope: "system",
|
|
18066
18104
|
addonId: null,
|
|
18067
18105
|
access: "create"
|
|
18068
18106
|
},
|
|
18107
|
+
"deviceManager.discoverProvider": {
|
|
18108
|
+
capName: "device-manager",
|
|
18109
|
+
capScope: "system",
|
|
18110
|
+
addonId: null,
|
|
18111
|
+
access: "create"
|
|
18112
|
+
},
|
|
18113
|
+
"deviceManager.discoveryProviders": {
|
|
18114
|
+
capName: "device-manager",
|
|
18115
|
+
capScope: "system",
|
|
18116
|
+
addonId: null,
|
|
18117
|
+
access: "view"
|
|
18118
|
+
},
|
|
18069
18119
|
"deviceManager.enable": {
|
|
18070
18120
|
capName: "device-manager",
|
|
18071
18121
|
capScope: "system",
|
|
@@ -18216,6 +18266,18 @@ Object.freeze({
|
|
|
18216
18266
|
addonId: null,
|
|
18217
18267
|
access: "create"
|
|
18218
18268
|
},
|
|
18269
|
+
"deviceManager.providerCreationType": {
|
|
18270
|
+
capName: "device-manager",
|
|
18271
|
+
capScope: "system",
|
|
18272
|
+
addonId: null,
|
|
18273
|
+
access: "view"
|
|
18274
|
+
},
|
|
18275
|
+
"deviceManager.providerDiscoveryParamsSchema": {
|
|
18276
|
+
capName: "device-manager",
|
|
18277
|
+
capScope: "system",
|
|
18278
|
+
addonId: null,
|
|
18279
|
+
access: "view"
|
|
18280
|
+
},
|
|
18219
18281
|
"deviceManager.registerDevice": {
|
|
18220
18282
|
capName: "device-manager",
|
|
18221
18283
|
capScope: "system",
|
|
@@ -18432,6 +18494,18 @@ Object.freeze({
|
|
|
18432
18494
|
addonId: null,
|
|
18433
18495
|
access: "view"
|
|
18434
18496
|
},
|
|
18497
|
+
"deviceProvider.getDiscoveryParamsSchema": {
|
|
18498
|
+
capName: "device-provider",
|
|
18499
|
+
capScope: "system",
|
|
18500
|
+
addonId: null,
|
|
18501
|
+
access: "view"
|
|
18502
|
+
},
|
|
18503
|
+
"deviceProvider.getManualCreationType": {
|
|
18504
|
+
capName: "device-provider",
|
|
18505
|
+
capScope: "system",
|
|
18506
|
+
addonId: null,
|
|
18507
|
+
access: "view"
|
|
18508
|
+
},
|
|
18435
18509
|
"deviceProvider.getStatus": {
|
|
18436
18510
|
capName: "device-provider",
|
|
18437
18511
|
capScope: "system",
|
|
@@ -4639,7 +4639,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4639
4639
|
return inst;
|
|
4640
4640
|
}
|
|
4641
4641
|
//#endregion
|
|
4642
|
-
//#region ../types/dist/sleep-
|
|
4642
|
+
//#region ../types/dist/sleep-C2M2zF7x.mjs
|
|
4643
4643
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4644
4644
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4645
4645
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -6207,6 +6207,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
6207
6207
|
DeviceType["Switch"] = "switch";
|
|
6208
6208
|
DeviceType["Sensor"] = "sensor";
|
|
6209
6209
|
DeviceType["Thermostat"] = "thermostat";
|
|
6210
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
6211
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
6212
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
6213
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
6214
|
+
* reusable by other AC integrations. */
|
|
6215
|
+
DeviceType["Climate"] = "climate";
|
|
6210
6216
|
DeviceType["Button"] = "button";
|
|
6211
6217
|
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6212
6218
|
* event vocabulary verbatim (no normalization). Installed with the
|
|
@@ -8415,7 +8421,7 @@ object({
|
|
|
8415
8421
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
8416
8422
|
lastFetchedAt: number()
|
|
8417
8423
|
});
|
|
8418
|
-
DeviceType.Thermostat, method(object({
|
|
8424
|
+
DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
8419
8425
|
deviceId: number().int().nonnegative(),
|
|
8420
8426
|
mode: HvacModeSchema
|
|
8421
8427
|
}), _void(), {
|
|
@@ -11100,10 +11106,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
11100
11106
|
id: string(),
|
|
11101
11107
|
name: string(),
|
|
11102
11108
|
type: string()
|
|
11103
|
-
}))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
|
|
11109
|
+
}))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
11104
11110
|
kind: "mutation",
|
|
11105
11111
|
auth: "admin"
|
|
11106
|
-
}), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11112
|
+
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11107
11113
|
kind: "mutation",
|
|
11108
11114
|
auth: "admin"
|
|
11109
11115
|
}), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
|
|
@@ -12849,7 +12855,10 @@ method(object({
|
|
|
12849
12855
|
}), FieldProbeResultSchema, {
|
|
12850
12856
|
kind: "mutation",
|
|
12851
12857
|
auth: "admin"
|
|
12852
|
-
}), method(
|
|
12858
|
+
}), method(object({
|
|
12859
|
+
addonId: string(),
|
|
12860
|
+
integrationId: string()
|
|
12861
|
+
}), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
|
|
12853
12862
|
addonId: string(),
|
|
12854
12863
|
integrationId: string()
|
|
12855
12864
|
}), AdoptionStatusSchema, {
|
|
@@ -12864,7 +12873,24 @@ method(object({
|
|
|
12864
12873
|
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
12865
12874
|
kind: "mutation",
|
|
12866
12875
|
auth: "admin"
|
|
12876
|
+
}), method(object({}), object({ providers: array(object({
|
|
12877
|
+
addonId: string(),
|
|
12878
|
+
label: string()
|
|
12879
|
+
})).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
|
|
12880
|
+
addonId: string(),
|
|
12881
|
+
label: string(),
|
|
12882
|
+
candidates: array(DiscoveryCandidateSchema).readonly(),
|
|
12883
|
+
error: string().nullable()
|
|
12884
|
+
})).readonly() }), {
|
|
12885
|
+
kind: "mutation",
|
|
12886
|
+
auth: "admin"
|
|
12867
12887
|
}), method(object({
|
|
12888
|
+
addonId: string(),
|
|
12889
|
+
params: record(string(), unknown()).optional()
|
|
12890
|
+
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
12891
|
+
kind: "mutation",
|
|
12892
|
+
auth: "admin"
|
|
12893
|
+
}), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
|
|
12868
12894
|
deviceId: number(),
|
|
12869
12895
|
key: string(),
|
|
12870
12896
|
value: unknown()
|
|
@@ -17987,6 +18013,12 @@ Object.freeze({
|
|
|
17987
18013
|
addonId: null,
|
|
17988
18014
|
access: "create"
|
|
17989
18015
|
},
|
|
18016
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18017
|
+
capName: "device-manager",
|
|
18018
|
+
capScope: "system",
|
|
18019
|
+
addonId: null,
|
|
18020
|
+
access: "view"
|
|
18021
|
+
},
|
|
17990
18022
|
"deviceManager.adoptionListCandidates": {
|
|
17991
18023
|
capName: "device-manager",
|
|
17992
18024
|
capScope: "system",
|
|
@@ -18035,12 +18067,30 @@ Object.freeze({
|
|
|
18035
18067
|
addonId: null,
|
|
18036
18068
|
access: "create"
|
|
18037
18069
|
},
|
|
18070
|
+
"deviceManager.discoverAllProviders": {
|
|
18071
|
+
capName: "device-manager",
|
|
18072
|
+
capScope: "system",
|
|
18073
|
+
addonId: null,
|
|
18074
|
+
access: "create"
|
|
18075
|
+
},
|
|
18038
18076
|
"deviceManager.discoverDevices": {
|
|
18039
18077
|
capName: "device-manager",
|
|
18040
18078
|
capScope: "system",
|
|
18041
18079
|
addonId: null,
|
|
18042
18080
|
access: "create"
|
|
18043
18081
|
},
|
|
18082
|
+
"deviceManager.discoverProvider": {
|
|
18083
|
+
capName: "device-manager",
|
|
18084
|
+
capScope: "system",
|
|
18085
|
+
addonId: null,
|
|
18086
|
+
access: "create"
|
|
18087
|
+
},
|
|
18088
|
+
"deviceManager.discoveryProviders": {
|
|
18089
|
+
capName: "device-manager",
|
|
18090
|
+
capScope: "system",
|
|
18091
|
+
addonId: null,
|
|
18092
|
+
access: "view"
|
|
18093
|
+
},
|
|
18044
18094
|
"deviceManager.enable": {
|
|
18045
18095
|
capName: "device-manager",
|
|
18046
18096
|
capScope: "system",
|
|
@@ -18191,6 +18241,18 @@ Object.freeze({
|
|
|
18191
18241
|
addonId: null,
|
|
18192
18242
|
access: "create"
|
|
18193
18243
|
},
|
|
18244
|
+
"deviceManager.providerCreationType": {
|
|
18245
|
+
capName: "device-manager",
|
|
18246
|
+
capScope: "system",
|
|
18247
|
+
addonId: null,
|
|
18248
|
+
access: "view"
|
|
18249
|
+
},
|
|
18250
|
+
"deviceManager.providerDiscoveryParamsSchema": {
|
|
18251
|
+
capName: "device-manager",
|
|
18252
|
+
capScope: "system",
|
|
18253
|
+
addonId: null,
|
|
18254
|
+
access: "view"
|
|
18255
|
+
},
|
|
18194
18256
|
"deviceManager.registerDevice": {
|
|
18195
18257
|
capName: "device-manager",
|
|
18196
18258
|
capScope: "system",
|
|
@@ -18407,6 +18469,18 @@ Object.freeze({
|
|
|
18407
18469
|
addonId: null,
|
|
18408
18470
|
access: "view"
|
|
18409
18471
|
},
|
|
18472
|
+
"deviceProvider.getDiscoveryParamsSchema": {
|
|
18473
|
+
capName: "device-provider",
|
|
18474
|
+
capScope: "system",
|
|
18475
|
+
addonId: null,
|
|
18476
|
+
access: "view"
|
|
18477
|
+
},
|
|
18478
|
+
"deviceProvider.getManualCreationType": {
|
|
18479
|
+
capName: "device-provider",
|
|
18480
|
+
capScope: "system",
|
|
18481
|
+
addonId: null,
|
|
18482
|
+
access: "view"
|
|
18483
|
+
},
|
|
18410
18484
|
"deviceProvider.getStatus": {
|
|
18411
18485
|
capName: "device-provider",
|
|
18412
18486
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "HomeKit (HAP) bridge exporter for CamStack devices. Publishes a bridged accessory per exposed device — MotionSensor in this MVP; Camera/Doorbell/Switch/Light follow.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|