@camstack/addon-import-alexa 0.2.128 → 0.2.130

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.
Files changed (3) hide show
  1. package/dist/addon.js +341 -37
  2. package/dist/addon.mjs +341 -37
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -38,7 +38,7 @@ let node_os = require("node:os");
38
38
  let node_fs = require("node:fs");
39
39
  let node_path = require("node:path");
40
40
  node_path = __toESM(node_path);
41
- //#region ../types/dist/event-category-BvOFi6PY.mjs
41
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
42
42
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
43
43
  EventCategory["SystemBoot"] = "system.boot";
44
44
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -117,9 +117,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
117
117
  /**
118
118
  * The node's one-shot runner boot check (D877): planned runners against the
119
119
  * process service, `degraded` when any is failed, refused or missing. The
120
- * alert centre turns it into one alert and a direct critical push.
120
+ * alert centre turns it into one critical alert.
121
121
  */
122
122
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
123
+ /**
124
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
125
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
126
+ * centre sends no notification of its own: Notification Center turns this
127
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
128
+ * system-event kinds, and reconciles from the alerts store because a bus
129
+ * event may be dropped (D8, D11).
130
+ */
131
+ EventCategory["AlertEpisode"] = "alert.episode";
123
132
  EventCategory["AddonError"] = "addon.error";
124
133
  EventCategory["AddonPageReady"] = "addon.page-ready";
125
134
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5577,7 +5586,7 @@ var ZodIssueCode = {
5577
5586
  var ZodFirstPartyTypeKind;
5578
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5579
5588
  //#endregion
5580
- //#region ../types/dist/sleep-BOjuyoPC.mjs
5589
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5581
5590
  /**
5582
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5583
5592
  * window to float samples (D455).
@@ -13676,7 +13685,14 @@ var AlertSeveritySchema = _enum([
13676
13685
  ]);
13677
13686
  var AlertActionSchema = object({
13678
13687
  label: string(),
13679
- href: string().optional()
13688
+ href: string().optional(),
13689
+ /**
13690
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13691
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13692
+ * start) — the browser must leave the SPA with a full navigation, because
13693
+ * the SPA has no such route and would bounce to the home page.
13694
+ */
13695
+ navigation: _enum(["app", "server"]).optional()
13680
13696
  });
13681
13697
  var AlertStatusSchema = _enum([
13682
13698
  "active",
@@ -18106,7 +18122,11 @@ var deviceDiscoveryCapability = {
18106
18122
  };
18107
18123
  /**
18108
18124
  * `device-adoption` — generic discovery + adoption surface,
18109
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18125
+ * system-scoped collection (one provider per integration addon), routed
18126
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18127
+ * pin model as `connection-test`. The admin UI keeps using
18128
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18129
+ * successor to `ha-discovery`:
18110
18130
  * keyed by `integrationId` (the addon resolves integrationId → broker
18111
18131
  * internally) rather than a connection-specific `brokerId`, and it
18112
18132
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18271,7 +18291,7 @@ var ResyncResultSchema = object({
18271
18291
  var deviceAdoptionCapability = {
18272
18292
  name: "device-adoption",
18273
18293
  scope: "system",
18274
- mode: "singleton",
18294
+ mode: "collection",
18275
18295
  status: {
18276
18296
  schema: AdoptionStatusSchema,
18277
18297
  kind: "poll"
@@ -42454,6 +42474,9 @@ var NcSystemEventKindSchema = _enum([
42454
42474
  "server-updated",
42455
42475
  "export-completed",
42456
42476
  "backup-completed",
42477
+ "alert-critical",
42478
+ "alert-error",
42479
+ "alert-critical-resolved",
42457
42480
  "camera-online",
42458
42481
  "camera-offline",
42459
42482
  "camera-disabled",
@@ -51530,7 +51553,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51530
51553
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51531
51554
  kind: "mutation",
51532
51555
  auth: "admin"
51533
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51556
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51557
+ clear: boolean(),
51558
+ repointLocationId: string().optional()
51559
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51534
51560
  kind: "mutation",
51535
51561
  auth: "admin"
51536
51562
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55803,6 +55829,11 @@ onStatusChanged: { data: object({
55803
55829
  *
55804
55830
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55805
55831
  * provider refreshes the slice on an interval and eagerly after commands.
55832
+ *
55833
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55834
+ * nullable: `null` means "not known right now" (the appliance has not said,
55835
+ * the link is down, or the description does not carry it) and is never
55836
+ * rendered or exported as `false` / `0`. `availability` says why.
55806
55837
  */
55807
55838
  var DishwasherStateSchema = _enum([
55808
55839
  "idle",
@@ -55812,35 +55843,155 @@ var DishwasherStateSchema = _enum([
55812
55843
  "error",
55813
55844
  "unavailable"
55814
55845
  ]);
55846
+ /**
55847
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55848
+ * view for compact surfaces; this is what the appliance said.
55849
+ */
55850
+ var DishwasherOperationStateSchema = _enum([
55851
+ "Inactive",
55852
+ "Ready",
55853
+ "DelayedStart",
55854
+ "Run",
55855
+ "Pause",
55856
+ "ActionRequired",
55857
+ "Finished",
55858
+ "Error",
55859
+ "Aborting"
55860
+ ]);
55861
+ /**
55862
+ * Why fields may be `null`:
55863
+ * - `available` — the link is up and the description is loaded;
55864
+ * - `offline` — the local link is down (values are unknown, not last-known);
55865
+ * - `description-missing` — the link is up but the appliance's description could not
55866
+ * be loaded, so its values cannot be decoded.
55867
+ */
55868
+ var DishwasherAvailabilitySchema = _enum([
55869
+ "available",
55870
+ "offline",
55871
+ "description-missing"
55872
+ ]);
55815
55873
  var DishwasherConsumableLevelSchema = _enum([
55816
55874
  "ok",
55817
55875
  "low",
55818
55876
  "empty"
55819
55877
  ]);
55820
55878
  var DishwasherStatusSchema = object({
55879
+ availability: DishwasherAvailabilitySchema,
55880
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55821
55881
  state: DishwasherStateSchema,
55822
- /** Active program id/name, or null when none selected / unknown. */
55882
+ /** The appliance's operation state as reported; null when not known. */
55883
+ operationState: DishwasherOperationStateSchema.nullable(),
55884
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55823
55885
  program: string().nullable(),
55824
- /** Program tokens the hardware accepts — drives the UI selector. */
55886
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55887
+ selectedProgram: string().nullable(),
55888
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55825
55889
  availablePrograms: array(string()),
55826
- /** Minutes remaining on the active cycle, or null when not running. */
55827
- remainingMinutes: number().int().nonnegative().nullable(),
55890
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55891
+ remainingSeconds: number().int().nonnegative().nullable(),
55892
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55893
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55828
55894
  /** Cycle completion 0..100, or null when not applicable. */
55829
55895
  progressPercent: number().min(0).max(100).nullable(),
55830
- /** True when the door is reported open. */
55831
- doorOpen: boolean(),
55832
- /** True when remote start is allowed (door closed, power on, etc.). */
55833
- remoteStartAllowed: boolean(),
55834
- /** Main power / switched-on state. */
55835
- powerOn: boolean(),
55896
+ /** True when the door is reported open; null when the door state is not known. */
55897
+ doorOpen: boolean().nullable(),
55898
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55899
+ doorLocked: boolean().nullable(),
55900
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55901
+ remoteStartAllowed: boolean().nullable(),
55902
+ /** True when the appliance accepts remote control now; null when not known. */
55903
+ remoteControlActive: boolean().nullable(),
55904
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55905
+ localControlActive: boolean().nullable(),
55906
+ /** Main power / switched-on state; null when not known. */
55907
+ powerOn: boolean().nullable(),
55908
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55909
+ powerState: string().nullable(),
55836
55910
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55837
55911
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55838
- halfLoad: boolean(),
55839
- hygienePlus: boolean(),
55912
+ /** Option states: null when the appliance does not expose the option or has not said. */
55913
+ halfLoad: boolean().nullable(),
55914
+ hygienePlus: boolean().nullable(),
55915
+ /** Extra dry option when the appliance exposes it. */
55916
+ extraDry: boolean().nullable(),
55917
+ /** Intensive zone (lower basket) when the appliance exposes it. */
55918
+ intensiveZone: boolean().nullable(),
55919
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55920
+ varioSpeedPlus: boolean().nullable(),
55921
+ /** Child lock (controls disabled on the appliance); null when not known. */
55922
+ childLock: boolean().nullable(),
55923
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55924
+ activeEvents: array(string()),
55925
+ /** Numeric error code when the appliance reports one; null otherwise. */
55840
55926
  errorCode: number().nullable(),
55927
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55841
55928
  errorLabel: string().nullable(),
55929
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55842
55930
  lastFetchedAt: number()
55843
55931
  });
55932
+ var DeviceIdSchema = number().int().nonnegative();
55933
+ /** A value a program option or setting can take. */
55934
+ var DishwasherValueSchema = union([
55935
+ boolean(),
55936
+ string(),
55937
+ number()
55938
+ ]);
55939
+ var DishwasherAccessSchema = _enum([
55940
+ "none",
55941
+ "read",
55942
+ "readWrite",
55943
+ "writeOnly",
55944
+ "readStatic"
55945
+ ]);
55946
+ /**
55947
+ * One option or setting the appliance declares, with the constraints its description
55948
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55949
+ */
55950
+ var DishwasherOptionDescriptorSchema = object({
55951
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55952
+ key: string(),
55953
+ /** Last segment of the key, for display. */
55954
+ name: string(),
55955
+ type: _enum([
55956
+ "boolean",
55957
+ "number",
55958
+ "enum",
55959
+ "string"
55960
+ ]),
55961
+ access: DishwasherAccessSchema,
55962
+ /** The appliance reports this entity as currently available. */
55963
+ available: boolean(),
55964
+ /** Unit the description declares for a number; null when it declares none. */
55965
+ unit: string().nullable(),
55966
+ min: number().nullable(),
55967
+ max: number().nullable(),
55968
+ step: number().nullable(),
55969
+ /** Allowed members of an enum; null for other types. */
55970
+ enumValues: array(string()).nullable(),
55971
+ defaultValue: DishwasherValueSchema.nullable()
55972
+ });
55973
+ var DishwasherProgramSchema = object({
55974
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55975
+ key: string(),
55976
+ name: string(),
55977
+ /** The appliance currently offers this program. */
55978
+ available: boolean(),
55979
+ /** The options this program lists, with the program-level access / availability / default. */
55980
+ options: array(DishwasherOptionDescriptorSchema)
55981
+ });
55982
+ var DishwasherOptionsSchema = object({
55983
+ availability: DishwasherAvailabilitySchema,
55984
+ /** What the appliance can be told to do, from the commands its description declares. */
55985
+ supportsStart: boolean(),
55986
+ supportsPause: boolean(),
55987
+ supportsResume: boolean(),
55988
+ supportsStop: boolean(),
55989
+ supportsPower: boolean(),
55990
+ /** Every program the description lists, with its options. */
55991
+ programs: array(DishwasherProgramSchema),
55992
+ /** Every option and setting entity the description lists (programs reference these by key). */
55993
+ options: array(DishwasherOptionDescriptorSchema)
55994
+ });
55844
55995
  var dishwasherCapability = {
55845
55996
  name: "dishwasher",
55846
55997
  scope: "device",
@@ -55848,58 +55999,102 @@ var dishwasherCapability = {
55848
55999
  mode: "singleton",
55849
56000
  deviceTypes: [DeviceType.Dishwasher],
55850
56001
  methods: {
55851
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56002
+ /**
56003
+ * Start a program. Without `program` the selected one starts. `options` are
56004
+ * option feature keys; each is checked against the program's constraints.
56005
+ */
56006
+ start: method(object({
56007
+ deviceId: DeviceIdSchema,
56008
+ program: string().min(1).optional(),
56009
+ options: record(string(), DishwasherValueSchema).optional()
56010
+ }), _void(), {
55852
56011
  kind: "mutation",
55853
56012
  auth: "protected"
55854
56013
  }),
55855
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56014
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55856
56015
  kind: "mutation",
55857
56016
  auth: "protected"
55858
56017
  }),
55859
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56018
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55860
56019
  kind: "mutation",
55861
56020
  auth: "protected"
55862
56021
  }),
56022
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
56023
+ kind: "mutation",
56024
+ auth: "protected"
56025
+ }),
56026
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55863
56027
  setProgram: method(object({
55864
- deviceId: number().int().nonnegative(),
56028
+ deviceId: DeviceIdSchema,
55865
56029
  program: string().min(1)
55866
56030
  }), _void(), {
55867
56031
  kind: "mutation",
55868
56032
  auth: "protected"
55869
56033
  }),
55870
56034
  setPower: method(object({
55871
- deviceId: number().int().nonnegative(),
56035
+ deviceId: DeviceIdSchema,
55872
56036
  on: boolean()
55873
56037
  }), _void(), {
55874
56038
  kind: "mutation",
55875
56039
  auth: "protected"
55876
56040
  }),
55877
56041
  setHalfLoad: method(object({
55878
- deviceId: number().int().nonnegative(),
56042
+ deviceId: DeviceIdSchema,
55879
56043
  on: boolean()
55880
56044
  }), _void(), {
55881
56045
  kind: "mutation",
55882
56046
  auth: "protected"
55883
56047
  }),
55884
56048
  setHygienePlus: method(object({
55885
- deviceId: number().int().nonnegative(),
56049
+ deviceId: DeviceIdSchema,
55886
56050
  on: boolean()
55887
56051
  }), _void(), {
55888
56052
  kind: "mutation",
55889
56053
  auth: "protected"
55890
56054
  }),
56055
+ setExtraDry: method(object({
56056
+ deviceId: DeviceIdSchema,
56057
+ on: boolean()
56058
+ }), _void(), {
56059
+ kind: "mutation",
56060
+ auth: "protected"
56061
+ }),
56062
+ setIntensiveZone: method(object({
56063
+ deviceId: DeviceIdSchema,
56064
+ on: boolean()
56065
+ }), _void(), {
56066
+ kind: "mutation",
56067
+ auth: "protected"
56068
+ }),
56069
+ setVarioSpeedPlus: method(object({
56070
+ deviceId: DeviceIdSchema,
56071
+ on: boolean()
56072
+ }), _void(), {
56073
+ kind: "mutation",
56074
+ auth: "protected"
56075
+ }),
56076
+ setChildLock: method(object({
56077
+ deviceId: DeviceIdSchema,
56078
+ on: boolean()
56079
+ }), _void(), {
56080
+ kind: "mutation",
56081
+ auth: "protected"
56082
+ }),
56083
+ /**
56084
+ * Write any option or setting by feature key. Refused when the description does
56085
+ * not list it, it is not writable or not available now, or the value is outside
56086
+ * its declared range / members.
56087
+ */
55891
56088
  setOption: method(object({
55892
- deviceId: number().int().nonnegative(),
56089
+ deviceId: DeviceIdSchema,
55893
56090
  key: string().min(1),
55894
- value: union([
55895
- boolean(),
55896
- string(),
55897
- number()
55898
- ])
56091
+ value: DishwasherValueSchema
55899
56092
  }), _void(), {
55900
56093
  kind: "mutation",
55901
56094
  auth: "protected"
55902
- })
56095
+ }),
56096
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56097
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55903
56098
  },
55904
56099
  status: {
55905
56100
  schema: DishwasherStatusSchema,
@@ -69848,6 +70043,12 @@ Object.freeze({
69848
70043
  addonId: null,
69849
70044
  access: "view"
69850
70045
  },
70046
+ "dishwasher.getOptions": {
70047
+ capName: "dishwasher",
70048
+ capScope: "device",
70049
+ addonId: null,
70050
+ access: "view"
70051
+ },
69851
70052
  "dishwasher.getStatus": {
69852
70053
  capName: "dishwasher",
69853
70054
  capScope: "device",
@@ -69860,6 +70061,24 @@ Object.freeze({
69860
70061
  addonId: null,
69861
70062
  access: "create"
69862
70063
  },
70064
+ "dishwasher.resume": {
70065
+ capName: "dishwasher",
70066
+ capScope: "device",
70067
+ addonId: null,
70068
+ access: "create"
70069
+ },
70070
+ "dishwasher.setChildLock": {
70071
+ capName: "dishwasher",
70072
+ capScope: "device",
70073
+ addonId: null,
70074
+ access: "create"
70075
+ },
70076
+ "dishwasher.setExtraDry": {
70077
+ capName: "dishwasher",
70078
+ capScope: "device",
70079
+ addonId: null,
70080
+ access: "create"
70081
+ },
69863
70082
  "dishwasher.setHalfLoad": {
69864
70083
  capName: "dishwasher",
69865
70084
  capScope: "device",
@@ -69872,6 +70091,12 @@ Object.freeze({
69872
70091
  addonId: null,
69873
70092
  access: "create"
69874
70093
  },
70094
+ "dishwasher.setIntensiveZone": {
70095
+ capName: "dishwasher",
70096
+ capScope: "device",
70097
+ addonId: null,
70098
+ access: "create"
70099
+ },
69875
70100
  "dishwasher.setOption": {
69876
70101
  capName: "dishwasher",
69877
70102
  capScope: "device",
@@ -69890,6 +70115,12 @@ Object.freeze({
69890
70115
  addonId: null,
69891
70116
  access: "create"
69892
70117
  },
70118
+ "dishwasher.setVarioSpeedPlus": {
70119
+ capName: "dishwasher",
70120
+ capScope: "device",
70121
+ addonId: null,
70122
+ access: "create"
70123
+ },
69893
70124
  "dishwasher.start": {
69894
70125
  capName: "dishwasher",
69895
70126
  capScope: "device",
@@ -74336,6 +74567,12 @@ Object.freeze({
74336
74567
  addonId: null,
74337
74568
  access: "view"
74338
74569
  },
74570
+ "storageMigration.moverClearance": {
74571
+ capName: "storage-migration",
74572
+ capScope: "system",
74573
+ addonId: null,
74574
+ access: "view"
74575
+ },
74339
74576
  "storageMigration.movers": {
74340
74577
  capName: "storage-migration",
74341
74578
  capScope: "system",
@@ -76529,6 +76766,11 @@ Object.freeze({
76529
76766
  form: "single",
76530
76767
  optional: false
76531
76768
  }],
76769
+ "dishwasher.getOptions": [{
76770
+ name: "deviceId",
76771
+ form: "single",
76772
+ optional: false
76773
+ }],
76532
76774
  "dishwasher.getStatus": [{
76533
76775
  name: "deviceId",
76534
76776
  form: "single",
@@ -76539,6 +76781,21 @@ Object.freeze({
76539
76781
  form: "single",
76540
76782
  optional: false
76541
76783
  }],
76784
+ "dishwasher.resume": [{
76785
+ name: "deviceId",
76786
+ form: "single",
76787
+ optional: false
76788
+ }],
76789
+ "dishwasher.setChildLock": [{
76790
+ name: "deviceId",
76791
+ form: "single",
76792
+ optional: false
76793
+ }],
76794
+ "dishwasher.setExtraDry": [{
76795
+ name: "deviceId",
76796
+ form: "single",
76797
+ optional: false
76798
+ }],
76542
76799
  "dishwasher.setHalfLoad": [{
76543
76800
  name: "deviceId",
76544
76801
  form: "single",
@@ -76549,6 +76806,11 @@ Object.freeze({
76549
76806
  form: "single",
76550
76807
  optional: false
76551
76808
  }],
76809
+ "dishwasher.setIntensiveZone": [{
76810
+ name: "deviceId",
76811
+ form: "single",
76812
+ optional: false
76813
+ }],
76552
76814
  "dishwasher.setOption": [{
76553
76815
  name: "deviceId",
76554
76816
  form: "single",
@@ -76564,6 +76826,11 @@ Object.freeze({
76564
76826
  form: "single",
76565
76827
  optional: false
76566
76828
  }],
76829
+ "dishwasher.setVarioSpeedPlus": [{
76830
+ name: "deviceId",
76831
+ form: "single",
76832
+ optional: false
76833
+ }],
76567
76834
  "dishwasher.start": [{
76568
76835
  name: "deviceId",
76569
76836
  form: "single",
@@ -78605,6 +78872,9 @@ new Map(Object.entries({
78605
78872
  "wrapper-update-available": "system",
78606
78873
  "backup-completed": "system",
78607
78874
  "export-completed": "system",
78875
+ "alert-critical": "system",
78876
+ "alert-error": "system",
78877
+ "alert-critical-resolved": "system",
78608
78878
  "storage-location-low": "system",
78609
78879
  "storage-location-critical": "system",
78610
78880
  "storage-location-ok": "system",
@@ -78729,6 +78999,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78729
78999
  "storage-location-ok"
78730
79000
  ]
78731
79001
  },
79002
+ {
79003
+ id: "alerts",
79004
+ family: "system",
79005
+ label: "Alerts",
79006
+ kinds: [
79007
+ "alert-critical",
79008
+ "alert-error",
79009
+ "alert-critical-resolved"
79010
+ ]
79011
+ },
78732
79012
  {
78733
79013
  id: "alarm",
78734
79014
  family: "alarm",
@@ -78773,6 +79053,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78773
79053
  return [[descriptor.kind, field]];
78774
79054
  })));
78775
79055
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
79056
+ object({
79057
+ phase: _enum(["raised", "resolved"]),
79058
+ episodeId: string().min(1),
79059
+ alertId: string().min(1),
79060
+ severity: AlertSeveritySchema,
79061
+ category: string(),
79062
+ title: string(),
79063
+ message: string(),
79064
+ sourceType: string().optional(),
79065
+ sourceId: string().optional(),
79066
+ nodeId: string().optional(),
79067
+ /** The alert's own action link (where the operator acts on it), when it has one. */
79068
+ actionUrl: string().optional(),
79069
+ at: number()
79070
+ });
78776
79071
  var RULE_BODY_ONLY = ["body"];
78777
79072
  var RULE_TEXT = ["title", "body"];
78778
79073
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78782,6 +79077,11 @@ var TANK = [
78782
79077
  "device-tank-full",
78783
79078
  "device-tank-normal"
78784
79079
  ];
79080
+ var ALERT_EPISODE = [
79081
+ "alert-critical",
79082
+ "alert-error",
79083
+ "alert-critical-resolved"
79084
+ ];
78785
79085
  var UPDATES = [
78786
79086
  "addon-update-available",
78787
79087
  "server-update-available",
@@ -78974,14 +79274,14 @@ var STATE_SUMMARY_VARS = [
78974
79274
  ([...RULE_TEXT], [...CONSUMABLE]),
78975
79275
  ([...RULE_TEXT], [...TANK]),
78976
79276
  [...RULE_TEXT],
78977
- ([...RULE_TEXT], [...UPDATES]),
78978
- ([...RULE_TEXT], [...UPDATES]),
78979
- [...RULE_TEXT],
79277
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79278
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78980
79279
  [...RULE_TEXT],
78981
79280
  [...RULE_TEXT],
78982
79281
  [...RULE_TEXT],
78983
79282
  [...RULE_TEXT],
78984
79283
  [...RULE_TEXT],
79284
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78985
79285
  [...RULE_TEXT],
78986
79286
  [...RULE_TEXT],
78987
79287
  [...RULE_TEXT],
@@ -78999,7 +79299,11 @@ var STATE_SUMMARY_VARS = [
78999
79299
  [...RULE_TEXT],
79000
79300
  [...RULE_TEXT],
79001
79301
  [...RULE_TEXT],
79002
- [...RULE_TEXT],
79302
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79303
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79304
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79305
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79306
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79003
79307
  [...RULE_TEXT],
79004
79308
  [...RULE_TEXT],
79005
79309
  [...RULE_TEXT],
package/dist/addon.mjs CHANGED
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
39
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
40
  //#endregion
41
- //#region ../types/dist/event-category-BvOFi6PY.mjs
41
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
42
42
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
43
43
  EventCategory["SystemBoot"] = "system.boot";
44
44
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -117,9 +117,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
117
117
  /**
118
118
  * The node's one-shot runner boot check (D877): planned runners against the
119
119
  * process service, `degraded` when any is failed, refused or missing. The
120
- * alert centre turns it into one alert and a direct critical push.
120
+ * alert centre turns it into one critical alert.
121
121
  */
122
122
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
123
+ /**
124
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
125
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
126
+ * centre sends no notification of its own: Notification Center turns this
127
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
128
+ * system-event kinds, and reconciles from the alerts store because a bus
129
+ * event may be dropped (D8, D11).
130
+ */
131
+ EventCategory["AlertEpisode"] = "alert.episode";
123
132
  EventCategory["AddonError"] = "addon.error";
124
133
  EventCategory["AddonPageReady"] = "addon.page-ready";
125
134
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5577,7 +5586,7 @@ var ZodIssueCode = {
5577
5586
  var ZodFirstPartyTypeKind;
5578
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5579
5588
  //#endregion
5580
- //#region ../types/dist/sleep-BOjuyoPC.mjs
5589
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5581
5590
  /**
5582
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5583
5592
  * window to float samples (D455).
@@ -13676,7 +13685,14 @@ var AlertSeveritySchema = _enum([
13676
13685
  ]);
13677
13686
  var AlertActionSchema = object({
13678
13687
  label: string(),
13679
- href: string().optional()
13688
+ href: string().optional(),
13689
+ /**
13690
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13691
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13692
+ * start) — the browser must leave the SPA with a full navigation, because
13693
+ * the SPA has no such route and would bounce to the home page.
13694
+ */
13695
+ navigation: _enum(["app", "server"]).optional()
13680
13696
  });
13681
13697
  var AlertStatusSchema = _enum([
13682
13698
  "active",
@@ -18106,7 +18122,11 @@ var deviceDiscoveryCapability = {
18106
18122
  };
18107
18123
  /**
18108
18124
  * `device-adoption` — generic discovery + adoption surface,
18109
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18125
+ * system-scoped collection (one provider per integration addon), routed
18126
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18127
+ * pin model as `connection-test`. The admin UI keeps using
18128
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18129
+ * successor to `ha-discovery`:
18110
18130
  * keyed by `integrationId` (the addon resolves integrationId → broker
18111
18131
  * internally) rather than a connection-specific `brokerId`, and it
18112
18132
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18271,7 +18291,7 @@ var ResyncResultSchema = object({
18271
18291
  var deviceAdoptionCapability = {
18272
18292
  name: "device-adoption",
18273
18293
  scope: "system",
18274
- mode: "singleton",
18294
+ mode: "collection",
18275
18295
  status: {
18276
18296
  schema: AdoptionStatusSchema,
18277
18297
  kind: "poll"
@@ -42454,6 +42474,9 @@ var NcSystemEventKindSchema = _enum([
42454
42474
  "server-updated",
42455
42475
  "export-completed",
42456
42476
  "backup-completed",
42477
+ "alert-critical",
42478
+ "alert-error",
42479
+ "alert-critical-resolved",
42457
42480
  "camera-online",
42458
42481
  "camera-offline",
42459
42482
  "camera-disabled",
@@ -51530,7 +51553,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51530
51553
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51531
51554
  kind: "mutation",
51532
51555
  auth: "admin"
51533
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51556
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51557
+ clear: boolean(),
51558
+ repointLocationId: string().optional()
51559
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51534
51560
  kind: "mutation",
51535
51561
  auth: "admin"
51536
51562
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55803,6 +55829,11 @@ onStatusChanged: { data: object({
55803
55829
  *
55804
55830
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55805
55831
  * provider refreshes the slice on an interval and eagerly after commands.
55832
+ *
55833
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55834
+ * nullable: `null` means "not known right now" (the appliance has not said,
55835
+ * the link is down, or the description does not carry it) and is never
55836
+ * rendered or exported as `false` / `0`. `availability` says why.
55806
55837
  */
55807
55838
  var DishwasherStateSchema = _enum([
55808
55839
  "idle",
@@ -55812,35 +55843,155 @@ var DishwasherStateSchema = _enum([
55812
55843
  "error",
55813
55844
  "unavailable"
55814
55845
  ]);
55846
+ /**
55847
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55848
+ * view for compact surfaces; this is what the appliance said.
55849
+ */
55850
+ var DishwasherOperationStateSchema = _enum([
55851
+ "Inactive",
55852
+ "Ready",
55853
+ "DelayedStart",
55854
+ "Run",
55855
+ "Pause",
55856
+ "ActionRequired",
55857
+ "Finished",
55858
+ "Error",
55859
+ "Aborting"
55860
+ ]);
55861
+ /**
55862
+ * Why fields may be `null`:
55863
+ * - `available` — the link is up and the description is loaded;
55864
+ * - `offline` — the local link is down (values are unknown, not last-known);
55865
+ * - `description-missing` — the link is up but the appliance's description could not
55866
+ * be loaded, so its values cannot be decoded.
55867
+ */
55868
+ var DishwasherAvailabilitySchema = _enum([
55869
+ "available",
55870
+ "offline",
55871
+ "description-missing"
55872
+ ]);
55815
55873
  var DishwasherConsumableLevelSchema = _enum([
55816
55874
  "ok",
55817
55875
  "low",
55818
55876
  "empty"
55819
55877
  ]);
55820
55878
  var DishwasherStatusSchema = object({
55879
+ availability: DishwasherAvailabilitySchema,
55880
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55821
55881
  state: DishwasherStateSchema,
55822
- /** Active program id/name, or null when none selected / unknown. */
55882
+ /** The appliance's operation state as reported; null when not known. */
55883
+ operationState: DishwasherOperationStateSchema.nullable(),
55884
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55823
55885
  program: string().nullable(),
55824
- /** Program tokens the hardware accepts — drives the UI selector. */
55886
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55887
+ selectedProgram: string().nullable(),
55888
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55825
55889
  availablePrograms: array(string()),
55826
- /** Minutes remaining on the active cycle, or null when not running. */
55827
- remainingMinutes: number().int().nonnegative().nullable(),
55890
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55891
+ remainingSeconds: number().int().nonnegative().nullable(),
55892
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55893
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55828
55894
  /** Cycle completion 0..100, or null when not applicable. */
55829
55895
  progressPercent: number().min(0).max(100).nullable(),
55830
- /** True when the door is reported open. */
55831
- doorOpen: boolean(),
55832
- /** True when remote start is allowed (door closed, power on, etc.). */
55833
- remoteStartAllowed: boolean(),
55834
- /** Main power / switched-on state. */
55835
- powerOn: boolean(),
55896
+ /** True when the door is reported open; null when the door state is not known. */
55897
+ doorOpen: boolean().nullable(),
55898
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55899
+ doorLocked: boolean().nullable(),
55900
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55901
+ remoteStartAllowed: boolean().nullable(),
55902
+ /** True when the appliance accepts remote control now; null when not known. */
55903
+ remoteControlActive: boolean().nullable(),
55904
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55905
+ localControlActive: boolean().nullable(),
55906
+ /** Main power / switched-on state; null when not known. */
55907
+ powerOn: boolean().nullable(),
55908
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55909
+ powerState: string().nullable(),
55836
55910
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55837
55911
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55838
- halfLoad: boolean(),
55839
- hygienePlus: boolean(),
55912
+ /** Option states: null when the appliance does not expose the option or has not said. */
55913
+ halfLoad: boolean().nullable(),
55914
+ hygienePlus: boolean().nullable(),
55915
+ /** Extra dry option when the appliance exposes it. */
55916
+ extraDry: boolean().nullable(),
55917
+ /** Intensive zone (lower basket) when the appliance exposes it. */
55918
+ intensiveZone: boolean().nullable(),
55919
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55920
+ varioSpeedPlus: boolean().nullable(),
55921
+ /** Child lock (controls disabled on the appliance); null when not known. */
55922
+ childLock: boolean().nullable(),
55923
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55924
+ activeEvents: array(string()),
55925
+ /** Numeric error code when the appliance reports one; null otherwise. */
55840
55926
  errorCode: number().nullable(),
55927
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55841
55928
  errorLabel: string().nullable(),
55929
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55842
55930
  lastFetchedAt: number()
55843
55931
  });
55932
+ var DeviceIdSchema = number().int().nonnegative();
55933
+ /** A value a program option or setting can take. */
55934
+ var DishwasherValueSchema = union([
55935
+ boolean(),
55936
+ string(),
55937
+ number()
55938
+ ]);
55939
+ var DishwasherAccessSchema = _enum([
55940
+ "none",
55941
+ "read",
55942
+ "readWrite",
55943
+ "writeOnly",
55944
+ "readStatic"
55945
+ ]);
55946
+ /**
55947
+ * One option or setting the appliance declares, with the constraints its description
55948
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55949
+ */
55950
+ var DishwasherOptionDescriptorSchema = object({
55951
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55952
+ key: string(),
55953
+ /** Last segment of the key, for display. */
55954
+ name: string(),
55955
+ type: _enum([
55956
+ "boolean",
55957
+ "number",
55958
+ "enum",
55959
+ "string"
55960
+ ]),
55961
+ access: DishwasherAccessSchema,
55962
+ /** The appliance reports this entity as currently available. */
55963
+ available: boolean(),
55964
+ /** Unit the description declares for a number; null when it declares none. */
55965
+ unit: string().nullable(),
55966
+ min: number().nullable(),
55967
+ max: number().nullable(),
55968
+ step: number().nullable(),
55969
+ /** Allowed members of an enum; null for other types. */
55970
+ enumValues: array(string()).nullable(),
55971
+ defaultValue: DishwasherValueSchema.nullable()
55972
+ });
55973
+ var DishwasherProgramSchema = object({
55974
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55975
+ key: string(),
55976
+ name: string(),
55977
+ /** The appliance currently offers this program. */
55978
+ available: boolean(),
55979
+ /** The options this program lists, with the program-level access / availability / default. */
55980
+ options: array(DishwasherOptionDescriptorSchema)
55981
+ });
55982
+ var DishwasherOptionsSchema = object({
55983
+ availability: DishwasherAvailabilitySchema,
55984
+ /** What the appliance can be told to do, from the commands its description declares. */
55985
+ supportsStart: boolean(),
55986
+ supportsPause: boolean(),
55987
+ supportsResume: boolean(),
55988
+ supportsStop: boolean(),
55989
+ supportsPower: boolean(),
55990
+ /** Every program the description lists, with its options. */
55991
+ programs: array(DishwasherProgramSchema),
55992
+ /** Every option and setting entity the description lists (programs reference these by key). */
55993
+ options: array(DishwasherOptionDescriptorSchema)
55994
+ });
55844
55995
  var dishwasherCapability = {
55845
55996
  name: "dishwasher",
55846
55997
  scope: "device",
@@ -55848,58 +55999,102 @@ var dishwasherCapability = {
55848
55999
  mode: "singleton",
55849
56000
  deviceTypes: [DeviceType.Dishwasher],
55850
56001
  methods: {
55851
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56002
+ /**
56003
+ * Start a program. Without `program` the selected one starts. `options` are
56004
+ * option feature keys; each is checked against the program's constraints.
56005
+ */
56006
+ start: method(object({
56007
+ deviceId: DeviceIdSchema,
56008
+ program: string().min(1).optional(),
56009
+ options: record(string(), DishwasherValueSchema).optional()
56010
+ }), _void(), {
55852
56011
  kind: "mutation",
55853
56012
  auth: "protected"
55854
56013
  }),
55855
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56014
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55856
56015
  kind: "mutation",
55857
56016
  auth: "protected"
55858
56017
  }),
55859
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56018
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55860
56019
  kind: "mutation",
55861
56020
  auth: "protected"
55862
56021
  }),
56022
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
56023
+ kind: "mutation",
56024
+ auth: "protected"
56025
+ }),
56026
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55863
56027
  setProgram: method(object({
55864
- deviceId: number().int().nonnegative(),
56028
+ deviceId: DeviceIdSchema,
55865
56029
  program: string().min(1)
55866
56030
  }), _void(), {
55867
56031
  kind: "mutation",
55868
56032
  auth: "protected"
55869
56033
  }),
55870
56034
  setPower: method(object({
55871
- deviceId: number().int().nonnegative(),
56035
+ deviceId: DeviceIdSchema,
55872
56036
  on: boolean()
55873
56037
  }), _void(), {
55874
56038
  kind: "mutation",
55875
56039
  auth: "protected"
55876
56040
  }),
55877
56041
  setHalfLoad: method(object({
55878
- deviceId: number().int().nonnegative(),
56042
+ deviceId: DeviceIdSchema,
55879
56043
  on: boolean()
55880
56044
  }), _void(), {
55881
56045
  kind: "mutation",
55882
56046
  auth: "protected"
55883
56047
  }),
55884
56048
  setHygienePlus: method(object({
55885
- deviceId: number().int().nonnegative(),
56049
+ deviceId: DeviceIdSchema,
55886
56050
  on: boolean()
55887
56051
  }), _void(), {
55888
56052
  kind: "mutation",
55889
56053
  auth: "protected"
55890
56054
  }),
56055
+ setExtraDry: method(object({
56056
+ deviceId: DeviceIdSchema,
56057
+ on: boolean()
56058
+ }), _void(), {
56059
+ kind: "mutation",
56060
+ auth: "protected"
56061
+ }),
56062
+ setIntensiveZone: method(object({
56063
+ deviceId: DeviceIdSchema,
56064
+ on: boolean()
56065
+ }), _void(), {
56066
+ kind: "mutation",
56067
+ auth: "protected"
56068
+ }),
56069
+ setVarioSpeedPlus: method(object({
56070
+ deviceId: DeviceIdSchema,
56071
+ on: boolean()
56072
+ }), _void(), {
56073
+ kind: "mutation",
56074
+ auth: "protected"
56075
+ }),
56076
+ setChildLock: method(object({
56077
+ deviceId: DeviceIdSchema,
56078
+ on: boolean()
56079
+ }), _void(), {
56080
+ kind: "mutation",
56081
+ auth: "protected"
56082
+ }),
56083
+ /**
56084
+ * Write any option or setting by feature key. Refused when the description does
56085
+ * not list it, it is not writable or not available now, or the value is outside
56086
+ * its declared range / members.
56087
+ */
55891
56088
  setOption: method(object({
55892
- deviceId: number().int().nonnegative(),
56089
+ deviceId: DeviceIdSchema,
55893
56090
  key: string().min(1),
55894
- value: union([
55895
- boolean(),
55896
- string(),
55897
- number()
55898
- ])
56091
+ value: DishwasherValueSchema
55899
56092
  }), _void(), {
55900
56093
  kind: "mutation",
55901
56094
  auth: "protected"
55902
- })
56095
+ }),
56096
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56097
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55903
56098
  },
55904
56099
  status: {
55905
56100
  schema: DishwasherStatusSchema,
@@ -69848,6 +70043,12 @@ Object.freeze({
69848
70043
  addonId: null,
69849
70044
  access: "view"
69850
70045
  },
70046
+ "dishwasher.getOptions": {
70047
+ capName: "dishwasher",
70048
+ capScope: "device",
70049
+ addonId: null,
70050
+ access: "view"
70051
+ },
69851
70052
  "dishwasher.getStatus": {
69852
70053
  capName: "dishwasher",
69853
70054
  capScope: "device",
@@ -69860,6 +70061,24 @@ Object.freeze({
69860
70061
  addonId: null,
69861
70062
  access: "create"
69862
70063
  },
70064
+ "dishwasher.resume": {
70065
+ capName: "dishwasher",
70066
+ capScope: "device",
70067
+ addonId: null,
70068
+ access: "create"
70069
+ },
70070
+ "dishwasher.setChildLock": {
70071
+ capName: "dishwasher",
70072
+ capScope: "device",
70073
+ addonId: null,
70074
+ access: "create"
70075
+ },
70076
+ "dishwasher.setExtraDry": {
70077
+ capName: "dishwasher",
70078
+ capScope: "device",
70079
+ addonId: null,
70080
+ access: "create"
70081
+ },
69863
70082
  "dishwasher.setHalfLoad": {
69864
70083
  capName: "dishwasher",
69865
70084
  capScope: "device",
@@ -69872,6 +70091,12 @@ Object.freeze({
69872
70091
  addonId: null,
69873
70092
  access: "create"
69874
70093
  },
70094
+ "dishwasher.setIntensiveZone": {
70095
+ capName: "dishwasher",
70096
+ capScope: "device",
70097
+ addonId: null,
70098
+ access: "create"
70099
+ },
69875
70100
  "dishwasher.setOption": {
69876
70101
  capName: "dishwasher",
69877
70102
  capScope: "device",
@@ -69890,6 +70115,12 @@ Object.freeze({
69890
70115
  addonId: null,
69891
70116
  access: "create"
69892
70117
  },
70118
+ "dishwasher.setVarioSpeedPlus": {
70119
+ capName: "dishwasher",
70120
+ capScope: "device",
70121
+ addonId: null,
70122
+ access: "create"
70123
+ },
69893
70124
  "dishwasher.start": {
69894
70125
  capName: "dishwasher",
69895
70126
  capScope: "device",
@@ -74336,6 +74567,12 @@ Object.freeze({
74336
74567
  addonId: null,
74337
74568
  access: "view"
74338
74569
  },
74570
+ "storageMigration.moverClearance": {
74571
+ capName: "storage-migration",
74572
+ capScope: "system",
74573
+ addonId: null,
74574
+ access: "view"
74575
+ },
74339
74576
  "storageMigration.movers": {
74340
74577
  capName: "storage-migration",
74341
74578
  capScope: "system",
@@ -76529,6 +76766,11 @@ Object.freeze({
76529
76766
  form: "single",
76530
76767
  optional: false
76531
76768
  }],
76769
+ "dishwasher.getOptions": [{
76770
+ name: "deviceId",
76771
+ form: "single",
76772
+ optional: false
76773
+ }],
76532
76774
  "dishwasher.getStatus": [{
76533
76775
  name: "deviceId",
76534
76776
  form: "single",
@@ -76539,6 +76781,21 @@ Object.freeze({
76539
76781
  form: "single",
76540
76782
  optional: false
76541
76783
  }],
76784
+ "dishwasher.resume": [{
76785
+ name: "deviceId",
76786
+ form: "single",
76787
+ optional: false
76788
+ }],
76789
+ "dishwasher.setChildLock": [{
76790
+ name: "deviceId",
76791
+ form: "single",
76792
+ optional: false
76793
+ }],
76794
+ "dishwasher.setExtraDry": [{
76795
+ name: "deviceId",
76796
+ form: "single",
76797
+ optional: false
76798
+ }],
76542
76799
  "dishwasher.setHalfLoad": [{
76543
76800
  name: "deviceId",
76544
76801
  form: "single",
@@ -76549,6 +76806,11 @@ Object.freeze({
76549
76806
  form: "single",
76550
76807
  optional: false
76551
76808
  }],
76809
+ "dishwasher.setIntensiveZone": [{
76810
+ name: "deviceId",
76811
+ form: "single",
76812
+ optional: false
76813
+ }],
76552
76814
  "dishwasher.setOption": [{
76553
76815
  name: "deviceId",
76554
76816
  form: "single",
@@ -76564,6 +76826,11 @@ Object.freeze({
76564
76826
  form: "single",
76565
76827
  optional: false
76566
76828
  }],
76829
+ "dishwasher.setVarioSpeedPlus": [{
76830
+ name: "deviceId",
76831
+ form: "single",
76832
+ optional: false
76833
+ }],
76567
76834
  "dishwasher.start": [{
76568
76835
  name: "deviceId",
76569
76836
  form: "single",
@@ -78605,6 +78872,9 @@ new Map(Object.entries({
78605
78872
  "wrapper-update-available": "system",
78606
78873
  "backup-completed": "system",
78607
78874
  "export-completed": "system",
78875
+ "alert-critical": "system",
78876
+ "alert-error": "system",
78877
+ "alert-critical-resolved": "system",
78608
78878
  "storage-location-low": "system",
78609
78879
  "storage-location-critical": "system",
78610
78880
  "storage-location-ok": "system",
@@ -78729,6 +78999,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78729
78999
  "storage-location-ok"
78730
79000
  ]
78731
79001
  },
79002
+ {
79003
+ id: "alerts",
79004
+ family: "system",
79005
+ label: "Alerts",
79006
+ kinds: [
79007
+ "alert-critical",
79008
+ "alert-error",
79009
+ "alert-critical-resolved"
79010
+ ]
79011
+ },
78732
79012
  {
78733
79013
  id: "alarm",
78734
79014
  family: "alarm",
@@ -78773,6 +79053,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78773
79053
  return [[descriptor.kind, field]];
78774
79054
  })));
78775
79055
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
79056
+ object({
79057
+ phase: _enum(["raised", "resolved"]),
79058
+ episodeId: string().min(1),
79059
+ alertId: string().min(1),
79060
+ severity: AlertSeveritySchema,
79061
+ category: string(),
79062
+ title: string(),
79063
+ message: string(),
79064
+ sourceType: string().optional(),
79065
+ sourceId: string().optional(),
79066
+ nodeId: string().optional(),
79067
+ /** The alert's own action link (where the operator acts on it), when it has one. */
79068
+ actionUrl: string().optional(),
79069
+ at: number()
79070
+ });
78776
79071
  var RULE_BODY_ONLY = ["body"];
78777
79072
  var RULE_TEXT = ["title", "body"];
78778
79073
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78782,6 +79077,11 @@ var TANK = [
78782
79077
  "device-tank-full",
78783
79078
  "device-tank-normal"
78784
79079
  ];
79080
+ var ALERT_EPISODE = [
79081
+ "alert-critical",
79082
+ "alert-error",
79083
+ "alert-critical-resolved"
79084
+ ];
78785
79085
  var UPDATES = [
78786
79086
  "addon-update-available",
78787
79087
  "server-update-available",
@@ -78974,14 +79274,14 @@ var STATE_SUMMARY_VARS = [
78974
79274
  ([...RULE_TEXT], [...CONSUMABLE]),
78975
79275
  ([...RULE_TEXT], [...TANK]),
78976
79276
  [...RULE_TEXT],
78977
- ([...RULE_TEXT], [...UPDATES]),
78978
- ([...RULE_TEXT], [...UPDATES]),
78979
- [...RULE_TEXT],
79277
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79278
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78980
79279
  [...RULE_TEXT],
78981
79280
  [...RULE_TEXT],
78982
79281
  [...RULE_TEXT],
78983
79282
  [...RULE_TEXT],
78984
79283
  [...RULE_TEXT],
79284
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78985
79285
  [...RULE_TEXT],
78986
79286
  [...RULE_TEXT],
78987
79287
  [...RULE_TEXT],
@@ -78999,7 +79299,11 @@ var STATE_SUMMARY_VARS = [
78999
79299
  [...RULE_TEXT],
79000
79300
  [...RULE_TEXT],
79001
79301
  [...RULE_TEXT],
79002
- [...RULE_TEXT],
79302
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79303
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79304
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79305
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79306
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79003
79307
  [...RULE_TEXT],
79004
79308
  [...RULE_TEXT],
79005
79309
  [...RULE_TEXT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.128",
3
+ "version": "0.2.130",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",