@camstack/addon-advanced-notifier 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.
package/dist/addon.js CHANGED
@@ -4632,7 +4632,7 @@ function _instanceof(cls, params = {}) {
4632
4632
  return inst;
4633
4633
  }
4634
4634
  //#endregion
4635
- //#region ../types/dist/sleep-B3AOslwX.mjs
4635
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4636
4636
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4637
4637
  EventCategory["SystemBoot"] = "system.boot";
4638
4638
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6200,6 +6200,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6200
6200
  DeviceType["Switch"] = "switch";
6201
6201
  DeviceType["Sensor"] = "sensor";
6202
6202
  DeviceType["Thermostat"] = "thermostat";
6203
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6204
+ * `climate-control` cap surface with `Thermostat` but renders a
6205
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6206
+ * independent vertical/horizontal swing). Sources: native Gree, and
6207
+ * reusable by other AC integrations. */
6208
+ DeviceType["Climate"] = "climate";
6203
6209
  DeviceType["Button"] = "button";
6204
6210
  /** Generic stateless event emitter — carries a device's EXACT declared
6205
6211
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8368,7 +8374,7 @@ object({
8368
8374
  /** Ms epoch when the slice was last updated (push or command). */
8369
8375
  lastFetchedAt: number()
8370
8376
  });
8371
- DeviceType.Thermostat, method(object({
8377
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8372
8378
  deviceId: number().int().nonnegative(),
8373
8379
  mode: HvacModeSchema
8374
8380
  }), _void(), {
@@ -11053,10 +11059,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11053
11059
  id: string(),
11054
11060
  name: string(),
11055
11061
  type: string()
11056
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11062
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11057
11063
  kind: "mutation",
11058
11064
  auth: "admin"
11059
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11065
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11060
11066
  kind: "mutation",
11061
11067
  auth: "admin"
11062
11068
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12789,7 +12795,10 @@ method(object({
12789
12795
  }), FieldProbeResultSchema, {
12790
12796
  kind: "mutation",
12791
12797
  auth: "admin"
12792
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12798
+ }), method(object({
12799
+ addonId: string(),
12800
+ integrationId: string()
12801
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12793
12802
  addonId: string(),
12794
12803
  integrationId: string()
12795
12804
  }), AdoptionStatusSchema, {
@@ -12804,7 +12813,24 @@ method(object({
12804
12813
  }), method(ResyncInputSchema, ResyncResultSchema, {
12805
12814
  kind: "mutation",
12806
12815
  auth: "admin"
12816
+ }), method(object({}), object({ providers: array(object({
12817
+ addonId: string(),
12818
+ label: string()
12819
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12820
+ addonId: string(),
12821
+ label: string(),
12822
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12823
+ error: string().nullable()
12824
+ })).readonly() }), {
12825
+ kind: "mutation",
12826
+ auth: "admin"
12807
12827
  }), method(object({
12828
+ addonId: string(),
12829
+ params: record(string(), unknown()).optional()
12830
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12831
+ kind: "mutation",
12832
+ auth: "admin"
12833
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12808
12834
  deviceId: number(),
12809
12835
  key: string(),
12810
12836
  value: unknown()
@@ -15464,6 +15490,17 @@ var AvailableIntegrationTypeSchema = object({
15464
15490
  iconUrl: string().nullable(),
15465
15491
  color: string(),
15466
15492
  instanceMode: string(),
15493
+ /**
15494
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15495
+ * immediately then add devices, no config step/button), `account` (config
15496
+ * step), or `broker` (broker step). Derived server-side by
15497
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15498
+ */
15499
+ mode: _enum([
15500
+ "standalone",
15501
+ "account",
15502
+ "broker"
15503
+ ]),
15467
15504
  discoveryMode: string(),
15468
15505
  /**
15469
15506
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17924,6 +17961,12 @@ Object.freeze({
17924
17961
  addonId: null,
17925
17962
  access: "create"
17926
17963
  },
17964
+ "deviceManager.adoptionListCandidateFilters": {
17965
+ capName: "device-manager",
17966
+ capScope: "system",
17967
+ addonId: null,
17968
+ access: "view"
17969
+ },
17927
17970
  "deviceManager.adoptionListCandidates": {
17928
17971
  capName: "device-manager",
17929
17972
  capScope: "system",
@@ -17972,12 +18015,30 @@ Object.freeze({
17972
18015
  addonId: null,
17973
18016
  access: "create"
17974
18017
  },
18018
+ "deviceManager.discoverAllProviders": {
18019
+ capName: "device-manager",
18020
+ capScope: "system",
18021
+ addonId: null,
18022
+ access: "create"
18023
+ },
17975
18024
  "deviceManager.discoverDevices": {
17976
18025
  capName: "device-manager",
17977
18026
  capScope: "system",
17978
18027
  addonId: null,
17979
18028
  access: "create"
17980
18029
  },
18030
+ "deviceManager.discoverProvider": {
18031
+ capName: "device-manager",
18032
+ capScope: "system",
18033
+ addonId: null,
18034
+ access: "create"
18035
+ },
18036
+ "deviceManager.discoveryProviders": {
18037
+ capName: "device-manager",
18038
+ capScope: "system",
18039
+ addonId: null,
18040
+ access: "view"
18041
+ },
17981
18042
  "deviceManager.enable": {
17982
18043
  capName: "device-manager",
17983
18044
  capScope: "system",
@@ -18128,6 +18189,18 @@ Object.freeze({
18128
18189
  addonId: null,
18129
18190
  access: "create"
18130
18191
  },
18192
+ "deviceManager.providerCreationType": {
18193
+ capName: "device-manager",
18194
+ capScope: "system",
18195
+ addonId: null,
18196
+ access: "view"
18197
+ },
18198
+ "deviceManager.providerDiscoveryParamsSchema": {
18199
+ capName: "device-manager",
18200
+ capScope: "system",
18201
+ addonId: null,
18202
+ access: "view"
18203
+ },
18131
18204
  "deviceManager.registerDevice": {
18132
18205
  capName: "device-manager",
18133
18206
  capScope: "system",
@@ -18344,6 +18417,18 @@ Object.freeze({
18344
18417
  addonId: null,
18345
18418
  access: "view"
18346
18419
  },
18420
+ "deviceProvider.getDiscoveryParamsSchema": {
18421
+ capName: "device-provider",
18422
+ capScope: "system",
18423
+ addonId: null,
18424
+ access: "view"
18425
+ },
18426
+ "deviceProvider.getManualCreationType": {
18427
+ capName: "device-provider",
18428
+ capScope: "system",
18429
+ addonId: null,
18430
+ access: "view"
18431
+ },
18347
18432
  "deviceProvider.getStatus": {
18348
18433
  capName: "device-provider",
18349
18434
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
4628
4628
  return inst;
4629
4629
  }
4630
4630
  //#endregion
4631
- //#region ../types/dist/sleep-B3AOslwX.mjs
4631
+ //#region ../types/dist/sleep-C2M2zF7x.mjs
4632
4632
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4633
4633
  EventCategory["SystemBoot"] = "system.boot";
4634
4634
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6196,6 +6196,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
6196
6196
  DeviceType["Switch"] = "switch";
6197
6197
  DeviceType["Sensor"] = "sensor";
6198
6198
  DeviceType["Thermostat"] = "thermostat";
6199
+ /** Air-conditioner / heat-pump climate device (HVAC) — shares the
6200
+ * `climate-control` cap surface with `Thermostat` but renders a
6201
+ * dedicated AC-appropriate control UI (mode chips, fan speed,
6202
+ * independent vertical/horizontal swing). Sources: native Gree, and
6203
+ * reusable by other AC integrations. */
6204
+ DeviceType["Climate"] = "climate";
6199
6205
  DeviceType["Button"] = "button";
6200
6206
  /** Generic stateless event emitter — carries a device's EXACT declared
6201
6207
  * event vocabulary verbatim (no normalization). Installed with the
@@ -8364,7 +8370,7 @@ object({
8364
8370
  /** Ms epoch when the slice was last updated (push or command). */
8365
8371
  lastFetchedAt: number()
8366
8372
  });
8367
- DeviceType.Thermostat, method(object({
8373
+ DeviceType.Thermostat, DeviceType.Climate, method(object({
8368
8374
  deviceId: number().int().nonnegative(),
8369
8375
  mode: HvacModeSchema
8370
8376
  }), _void(), {
@@ -11049,10 +11055,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
11049
11055
  id: string(),
11050
11056
  name: string(),
11051
11057
  type: string()
11052
- }))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
11058
+ }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
11053
11059
  kind: "mutation",
11054
11060
  auth: "admin"
11055
- }), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11061
+ }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
11056
11062
  kind: "mutation",
11057
11063
  auth: "admin"
11058
11064
  }), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
@@ -12785,7 +12791,10 @@ method(object({
12785
12791
  }), FieldProbeResultSchema, {
12786
12792
  kind: "mutation",
12787
12793
  auth: "admin"
12788
- }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12794
+ }), method(object({
12795
+ addonId: string(),
12796
+ integrationId: string()
12797
+ }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
12789
12798
  addonId: string(),
12790
12799
  integrationId: string()
12791
12800
  }), AdoptionStatusSchema, {
@@ -12800,7 +12809,24 @@ method(object({
12800
12809
  }), method(ResyncInputSchema, ResyncResultSchema, {
12801
12810
  kind: "mutation",
12802
12811
  auth: "admin"
12812
+ }), method(object({}), object({ providers: array(object({
12813
+ addonId: string(),
12814
+ label: string()
12815
+ })).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
12816
+ addonId: string(),
12817
+ label: string(),
12818
+ candidates: array(DiscoveryCandidateSchema).readonly(),
12819
+ error: string().nullable()
12820
+ })).readonly() }), {
12821
+ kind: "mutation",
12822
+ auth: "admin"
12803
12823
  }), method(object({
12824
+ addonId: string(),
12825
+ params: record(string(), unknown()).optional()
12826
+ }), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
12827
+ kind: "mutation",
12828
+ auth: "admin"
12829
+ }), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
12804
12830
  deviceId: number(),
12805
12831
  key: string(),
12806
12832
  value: unknown()
@@ -15460,6 +15486,17 @@ var AvailableIntegrationTypeSchema = object({
15460
15486
  iconUrl: string().nullable(),
15461
15487
  color: string(),
15462
15488
  instanceMode: string(),
15489
+ /**
15490
+ * Integration wizard `mode` (LOCKED MODEL): `standalone` (create
15491
+ * immediately then add devices, no config step/button), `account` (config
15492
+ * step), or `broker` (broker step). Derived server-side by
15493
+ * `getAvailableTypes` when the addon manifest omits an explicit `mode`.
15494
+ */
15495
+ mode: _enum([
15496
+ "standalone",
15497
+ "account",
15498
+ "broker"
15499
+ ]),
15463
15500
  discoveryMode: string(),
15464
15501
  /**
15465
15502
  * Which integration-marker cap the addon declared, so the wizard can
@@ -17920,6 +17957,12 @@ Object.freeze({
17920
17957
  addonId: null,
17921
17958
  access: "create"
17922
17959
  },
17960
+ "deviceManager.adoptionListCandidateFilters": {
17961
+ capName: "device-manager",
17962
+ capScope: "system",
17963
+ addonId: null,
17964
+ access: "view"
17965
+ },
17923
17966
  "deviceManager.adoptionListCandidates": {
17924
17967
  capName: "device-manager",
17925
17968
  capScope: "system",
@@ -17968,12 +18011,30 @@ Object.freeze({
17968
18011
  addonId: null,
17969
18012
  access: "create"
17970
18013
  },
18014
+ "deviceManager.discoverAllProviders": {
18015
+ capName: "device-manager",
18016
+ capScope: "system",
18017
+ addonId: null,
18018
+ access: "create"
18019
+ },
17971
18020
  "deviceManager.discoverDevices": {
17972
18021
  capName: "device-manager",
17973
18022
  capScope: "system",
17974
18023
  addonId: null,
17975
18024
  access: "create"
17976
18025
  },
18026
+ "deviceManager.discoverProvider": {
18027
+ capName: "device-manager",
18028
+ capScope: "system",
18029
+ addonId: null,
18030
+ access: "create"
18031
+ },
18032
+ "deviceManager.discoveryProviders": {
18033
+ capName: "device-manager",
18034
+ capScope: "system",
18035
+ addonId: null,
18036
+ access: "view"
18037
+ },
17977
18038
  "deviceManager.enable": {
17978
18039
  capName: "device-manager",
17979
18040
  capScope: "system",
@@ -18124,6 +18185,18 @@ Object.freeze({
18124
18185
  addonId: null,
18125
18186
  access: "create"
18126
18187
  },
18188
+ "deviceManager.providerCreationType": {
18189
+ capName: "device-manager",
18190
+ capScope: "system",
18191
+ addonId: null,
18192
+ access: "view"
18193
+ },
18194
+ "deviceManager.providerDiscoveryParamsSchema": {
18195
+ capName: "device-manager",
18196
+ capScope: "system",
18197
+ addonId: null,
18198
+ access: "view"
18199
+ },
18127
18200
  "deviceManager.registerDevice": {
18128
18201
  capName: "device-manager",
18129
18202
  capScope: "system",
@@ -18340,6 +18413,18 @@ Object.freeze({
18340
18413
  addonId: null,
18341
18414
  access: "view"
18342
18415
  },
18416
+ "deviceProvider.getDiscoveryParamsSchema": {
18417
+ capName: "device-provider",
18418
+ capScope: "system",
18419
+ addonId: null,
18420
+ access: "view"
18421
+ },
18422
+ "deviceProvider.getManualCreationType": {
18423
+ capName: "device-provider",
18424
+ capScope: "system",
18425
+ addonId: null,
18426
+ access: "view"
18427
+ },
18343
18428
  "deviceProvider.getStatus": {
18344
18429
  capName: "device-provider",
18345
18430
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-advanced-notifier",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Rules-based notification engine for CamStack",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",