@camstack/addon-export-hap 1.1.9 → 1.1.11

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.
@@ -4664,7 +4664,7 @@ function _instanceof(cls, params = {}) {
4664
4664
  return inst;
4665
4665
  }
4666
4666
  //#endregion
4667
- //#region ../types/dist/sleep-B3AOslwX.mjs
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(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
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()
@@ -15541,6 +15567,17 @@ var AvailableIntegrationTypeSchema = object({
15541
15567
  iconUrl: string().nullable(),
15542
15568
  color: string(),
15543
15569
  instanceMode: string(),
15570
+ /**
15571
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15572
+ * immediately then add devices, no config step/button), `account` (config
15573
+ * step), or `broker` (broker step). Derived server-side by
15574
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15575
+ */
15576
+ mode: _enum([
15577
+ "standalone",
15578
+ "account",
15579
+ "broker"
15580
+ ]),
15544
15581
  discoveryMode: string(),
15545
15582
  /**
15546
15583
  * Which integration-marker cap the addon declared, so the wizard can
@@ -18001,6 +18038,12 @@ Object.freeze({
18001
18038
  addonId: null,
18002
18039
  access: "create"
18003
18040
  },
18041
+ "deviceManager.adoptionListCandidateFilters": {
18042
+ capName: "device-manager",
18043
+ capScope: "system",
18044
+ addonId: null,
18045
+ access: "view"
18046
+ },
18004
18047
  "deviceManager.adoptionListCandidates": {
18005
18048
  capName: "device-manager",
18006
18049
  capScope: "system",
@@ -18049,12 +18092,30 @@ Object.freeze({
18049
18092
  addonId: null,
18050
18093
  access: "create"
18051
18094
  },
18095
+ "deviceManager.discoverAllProviders": {
18096
+ capName: "device-manager",
18097
+ capScope: "system",
18098
+ addonId: null,
18099
+ access: "create"
18100
+ },
18052
18101
  "deviceManager.discoverDevices": {
18053
18102
  capName: "device-manager",
18054
18103
  capScope: "system",
18055
18104
  addonId: null,
18056
18105
  access: "create"
18057
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
+ },
18058
18119
  "deviceManager.enable": {
18059
18120
  capName: "device-manager",
18060
18121
  capScope: "system",
@@ -18205,6 +18266,18 @@ Object.freeze({
18205
18266
  addonId: null,
18206
18267
  access: "create"
18207
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
+ },
18208
18281
  "deviceManager.registerDevice": {
18209
18282
  capName: "device-manager",
18210
18283
  capScope: "system",
@@ -18421,6 +18494,18 @@ Object.freeze({
18421
18494
  addonId: null,
18422
18495
  access: "view"
18423
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
+ },
18424
18509
  "deviceProvider.getStatus": {
18425
18510
  capName: "device-provider",
18426
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-B3AOslwX.mjs
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(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
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()
@@ -15516,6 +15542,17 @@ var AvailableIntegrationTypeSchema = object({
15516
15542
  iconUrl: string().nullable(),
15517
15543
  color: string(),
15518
15544
  instanceMode: string(),
15545
+ /**
15546
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15547
+ * immediately then add devices, no config step/button), `account` (config
15548
+ * step), or `broker` (broker step). Derived server-side by
15549
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15550
+ */
15551
+ mode: _enum([
15552
+ "standalone",
15553
+ "account",
15554
+ "broker"
15555
+ ]),
15519
15556
  discoveryMode: string(),
15520
15557
  /**
15521
15558
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17976,6 +18013,12 @@ Object.freeze({
17976
18013
  addonId: null,
17977
18014
  access: "create"
17978
18015
  },
18016
+ "deviceManager.adoptionListCandidateFilters": {
18017
+ capName: "device-manager",
18018
+ capScope: "system",
18019
+ addonId: null,
18020
+ access: "view"
18021
+ },
17979
18022
  "deviceManager.adoptionListCandidates": {
17980
18023
  capName: "device-manager",
17981
18024
  capScope: "system",
@@ -18024,12 +18067,30 @@ Object.freeze({
18024
18067
  addonId: null,
18025
18068
  access: "create"
18026
18069
  },
18070
+ "deviceManager.discoverAllProviders": {
18071
+ capName: "device-manager",
18072
+ capScope: "system",
18073
+ addonId: null,
18074
+ access: "create"
18075
+ },
18027
18076
  "deviceManager.discoverDevices": {
18028
18077
  capName: "device-manager",
18029
18078
  capScope: "system",
18030
18079
  addonId: null,
18031
18080
  access: "create"
18032
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
+ },
18033
18094
  "deviceManager.enable": {
18034
18095
  capName: "device-manager",
18035
18096
  capScope: "system",
@@ -18180,6 +18241,18 @@ Object.freeze({
18180
18241
  addonId: null,
18181
18242
  access: "create"
18182
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
+ },
18183
18256
  "deviceManager.registerDevice": {
18184
18257
  capName: "device-manager",
18185
18258
  capScope: "system",
@@ -18396,6 +18469,18 @@ Object.freeze({
18396
18469
  addonId: null,
18397
18470
  access: "view"
18398
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
+ },
18399
18484
  "deviceProvider.getStatus": {
18400
18485
  capName: "device-provider",
18401
18486
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
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",