@camstack/system 1.2.452 → 1.2.454

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 (96) hide show
  1. package/dist/{agent-https-CMz4S56_.js → agent-https-B7IjRRzT.js} +2 -2
  2. package/dist/{agent-https-D6lRxHma.mjs → agent-https-oXsR24R2.mjs} +2 -2
  3. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
  8. package/dist/builtins/alerts/alerts.addon.d.ts +25 -38
  9. package/dist/builtins/alerts/alerts.addon.js +178 -423
  10. package/dist/builtins/alerts/alerts.addon.mjs +178 -423
  11. package/dist/builtins/alerts/emit-alert-policy.d.ts +3 -16
  12. package/dist/builtins/alerts/runner-alert.d.ts +0 -13
  13. package/dist/builtins/autotrack/index.js +1 -1
  14. package/dist/builtins/autotrack/index.mjs +1 -1
  15. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  16. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  17. package/dist/builtins/calendars/calendars.addon.js +1 -1
  18. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  19. package/dist/builtins/camera-grid/index.js +1 -1
  20. package/dist/builtins/camera-grid/index.mjs +1 -1
  21. package/dist/builtins/composer/composer.addon.js +2 -2
  22. package/dist/builtins/composer/composer.addon.mjs +2 -2
  23. package/dist/builtins/console-logging/index.js +1 -1
  24. package/dist/builtins/console-logging/index.mjs +1 -1
  25. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  26. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  27. package/dist/builtins/device-history/device-history.addon.js +1 -1
  28. package/dist/builtins/device-history/device-history.addon.mjs +1 -1
  29. package/dist/builtins/device-manager/device-manager.addon.js +1 -1
  30. package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  31. package/dist/builtins/hub-forwarder/index.js +1 -1
  32. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  33. package/dist/builtins/keychain/index.js +4 -4
  34. package/dist/builtins/keychain/index.mjs +4 -4
  35. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  36. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  37. package/dist/builtins/local-auth/local-auth.addon.js +3 -3
  38. package/dist/builtins/local-auth/local-auth.addon.mjs +3 -3
  39. package/dist/builtins/local-network/local-network.addon.js +2 -2
  40. package/dist/builtins/local-network/local-network.addon.mjs +2 -2
  41. package/dist/builtins/loki-logging/index.js +1 -1
  42. package/dist/builtins/loki-logging/index.mjs +1 -1
  43. package/dist/builtins/native-metrics/native-metrics.addon.js +15 -2
  44. package/dist/builtins/native-metrics/native-metrics.addon.mjs +15 -2
  45. package/dist/builtins/platform-probe/index.js +1 -1
  46. package/dist/builtins/platform-probe/index.mjs +1 -1
  47. package/dist/builtins/record-entries/index.js +22 -2
  48. package/dist/builtins/record-entries/index.mjs +22 -2
  49. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  50. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  51. package/dist/builtins/snapshot/index.js +1 -1
  52. package/dist/builtins/snapshot/index.mjs +1 -1
  53. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  54. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  55. package/dist/builtins/sqlite-storage/index.js +1 -1
  56. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  57. package/dist/builtins/sqlite-storage/records/records-engine.d.ts +13 -0
  58. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  59. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  60. package/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
  61. package/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +6 -1
  62. package/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
  63. package/dist/builtins/storage-orchestrator/location-store.d.ts +13 -2
  64. package/dist/builtins/storage-orchestrator/record-kinds.d.ts +5 -0
  65. package/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +38 -4
  66. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +8 -2
  67. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +486 -143
  68. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +486 -143
  69. package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +26 -1
  70. package/dist/builtins/system-config/system-config.addon.js +3 -3
  71. package/dist/builtins/system-config/system-config.addon.mjs +3 -3
  72. package/dist/builtins/winston-logging/index.js +1 -1
  73. package/dist/builtins/winston-logging/index.mjs +1 -1
  74. package/dist/{composition-sources-BQmhc3se.js → composition-sources-Cukc78eu.js} +1 -1
  75. package/dist/{composition-sources-DzuruDVY.mjs → composition-sources-bt6IQDLu.mjs} +1 -1
  76. package/dist/{constants-BPWA-r-Y.js → constants-DBGG6Zu5.js} +1 -1
  77. package/dist/{constants-gzGZbnwO.mjs → constants-DQcVrhVI.mjs} +1 -1
  78. package/dist/{device-ca-75rt3U_U.js → device-ca-B3hUVfYk.js} +1 -1
  79. package/dist/{device-ca-D05nqNXE.mjs → device-ca-Utfvsx5x.mjs} +1 -1
  80. package/dist/{dist-DV2ll9Hi.mjs → dist-7ZciHCIp.mjs} +394 -38
  81. package/dist/{dist-Ct88catN.js → dist-Bi4Ioxop.js} +417 -37
  82. package/dist/file-host-worker.js +1 -1
  83. package/dist/file-host-worker.mjs +1 -1
  84. package/dist/{hub-mdns-ciao-DAU1WttG.js → hub-mdns-ciao-2FzLWfbD.js} +2 -2
  85. package/dist/{hub-mdns-ciao-BPOg2iyc.mjs → hub-mdns-ciao-BRs3DUT-.mjs} +2 -2
  86. package/dist/index.js +17 -9
  87. package/dist/index.mjs +17 -9
  88. package/dist/kernel/cap-router-builder.d.ts +9 -0
  89. package/dist/{phase6-declare-gate-BJplW6tX.mjs → phase6-declare-gate-D-2LMw9o.mjs} +1 -1
  90. package/dist/{phase6-declare-gate-C6WqagkC.js → phase6-declare-gate-DwYAep7y.js} +1 -1
  91. package/dist/{restore-archive-Cprdh3P9.js → restore-archive-C0ymYQk7.js} +1 -1
  92. package/dist/{restore-archive-Jiz63mVB.mjs → restore-archive-UVZv_hmr.mjs} +1 -1
  93. package/dist/{wal-maintenance-BspX29jz.js → wal-maintenance-Bo_lo3Dh.js} +0 -0
  94. package/dist/{wal-maintenance-BNIaf3QP.mjs → wal-maintenance-Df89xxrK.mjs} +0 -0
  95. package/package.json +1 -1
  96. package/dist/builtins/alerts/critical-push.d.ts +0 -90
@@ -1,6 +1,6 @@
1
1
  let zod = require("zod");
2
2
  require("node:crypto");
3
- //#region ../types/dist/event-category-BvOFi6PY.mjs
3
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -79,9 +79,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
79
79
  /**
80
80
  * The node's one-shot runner boot check (D877): planned runners against the
81
81
  * process service, `degraded` when any is failed, refused or missing. The
82
- * alert centre turns it into one alert and a direct critical push.
82
+ * alert centre turns it into one critical alert.
83
83
  */
84
84
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
85
+ /**
86
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
87
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
88
+ * centre sends no notification of its own: Notification Center turns this
89
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
90
+ * system-event kinds, and reconciles from the alerts store because a bus
91
+ * event may be dropped (D8, D11).
92
+ */
93
+ EventCategory["AlertEpisode"] = "alert.episode";
85
94
  EventCategory["AddonError"] = "addon.error";
86
95
  EventCategory["AddonPageReady"] = "addon.page-ready";
87
96
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -736,7 +745,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
736
745
  return EventCategory;
737
746
  }({});
738
747
  //#endregion
739
- //#region ../types/dist/sleep-BOjuyoPC.mjs
748
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
740
749
  /**
741
750
  * The audio chunk plane's byte format, and the ONE expansion from a coded
742
751
  * window to float samples (D455).
@@ -11267,7 +11276,14 @@ var AlertSeveritySchema = zod.z.enum([
11267
11276
  ]);
11268
11277
  var AlertActionSchema = zod.z.object({
11269
11278
  label: zod.z.string(),
11270
- href: zod.z.string().optional()
11279
+ href: zod.z.string().optional(),
11280
+ /**
11281
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
11282
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
11283
+ * start) — the browser must leave the SPA with a full navigation, because
11284
+ * the SPA has no such route and would bounce to the home page.
11285
+ */
11286
+ navigation: zod.z.enum(["app", "server"]).optional()
11271
11287
  });
11272
11288
  var AlertStatusSchema = zod.z.enum([
11273
11289
  "active",
@@ -18582,7 +18598,11 @@ var deviceDiscoveryCapability = {
18582
18598
  };
18583
18599
  /**
18584
18600
  * `device-adoption` — generic discovery + adoption surface,
18585
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18601
+ * system-scoped collection (one provider per integration addon), routed
18602
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18603
+ * pin model as `connection-test`. The admin UI keeps using
18604
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18605
+ * successor to `ha-discovery`:
18586
18606
  * keyed by `integrationId` (the addon resolves integrationId → broker
18587
18607
  * internally) rather than a connection-specific `brokerId`, and it
18588
18608
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18747,7 +18767,7 @@ var ResyncResultSchema = zod.z.object({
18747
18767
  var deviceAdoptionCapability = {
18748
18768
  name: "device-adoption",
18749
18769
  scope: "system",
18750
- mode: "singleton",
18770
+ mode: "collection",
18751
18771
  status: {
18752
18772
  schema: AdoptionStatusSchema,
18753
18773
  kind: "poll"
@@ -40305,7 +40325,7 @@ var deviceManagerCapability = {
40305
40325
  auth: "admin"
40306
40326
  }),
40307
40327
  /** List candidate filter chips for an integration via its device-adoption
40308
- * provider — addonId-routed so it never hits the singleton shadow. */
40328
+ * provider — addonId-routed via the collection pin. */
40309
40329
  adoptionListCandidateFilters: method(zod.z.object({
40310
40330
  addonId: zod.z.string(),
40311
40331
  integrationId: zod.z.string()
@@ -44522,6 +44542,9 @@ var NcSystemEventKindSchema = zod.z.enum([
44522
44542
  "server-updated",
44523
44543
  "export-completed",
44524
44544
  "backup-completed",
44545
+ "alert-critical",
44546
+ "alert-error",
44547
+ "alert-critical-resolved",
44525
44548
  "camera-online",
44526
44549
  "camera-offline",
44527
44550
  "camera-disabled",
@@ -55879,6 +55902,18 @@ var storageMigrationCapability = {
55879
55902
  */
55880
55903
  movers: method(zod.z.object({}), zod.z.array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }),
55881
55904
  /**
55905
+ * May a mover that touches these locations run NOW? One claim per physical
55906
+ * root is owned by the storage orchestrator: a single-location repoint holds
55907
+ * it while it carries its subtree, and a mover (`relocateMedia`,
55908
+ * `relocateFootage`, a migration move) asks here AFTER registering its job and
55909
+ * cancels itself on `clear: false`. The repoint, in turn, refuses while a
55910
+ * registered mover touches its root. Asked, never polled (D3).
55911
+ */
55912
+ moverClearance: method(zod.z.object({ locationIds: zod.z.array(zod.z.string()).readonly() }), zod.z.object({
55913
+ clear: zod.z.boolean(),
55914
+ repointLocationId: zod.z.string().optional()
55915
+ }), { auth: "admin" }),
55916
+ /**
55882
55917
  * What each class's SOURCE still holds, from the archive — never from the
55883
55918
  * resident index (D295). Only classes with something left (or something
55884
55919
  * unknown) are listed, so an empty list means there is nothing to drain and
@@ -61099,6 +61134,11 @@ onStatusChanged: { data: zod.z.object({
61099
61134
  *
61100
61135
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
61101
61136
  * provider refreshes the slice on an interval and eagerly after commands.
61137
+ *
61138
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
61139
+ * nullable: `null` means "not known right now" (the appliance has not said,
61140
+ * the link is down, or the description does not carry it) and is never
61141
+ * rendered or exported as `false` / `0`. `availability` says why.
61102
61142
  */
61103
61143
  var DishwasherStateSchema = zod.z.enum([
61104
61144
  "idle",
@@ -61108,35 +61148,155 @@ var DishwasherStateSchema = zod.z.enum([
61108
61148
  "error",
61109
61149
  "unavailable"
61110
61150
  ]);
61151
+ /**
61152
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
61153
+ * view for compact surfaces; this is what the appliance said.
61154
+ */
61155
+ var DishwasherOperationStateSchema = zod.z.enum([
61156
+ "Inactive",
61157
+ "Ready",
61158
+ "DelayedStart",
61159
+ "Run",
61160
+ "Pause",
61161
+ "ActionRequired",
61162
+ "Finished",
61163
+ "Error",
61164
+ "Aborting"
61165
+ ]);
61166
+ /**
61167
+ * Why fields may be `null`:
61168
+ * - `available` — the link is up and the description is loaded;
61169
+ * - `offline` — the local link is down (values are unknown, not last-known);
61170
+ * - `description-missing` — the link is up but the appliance's description could not
61171
+ * be loaded, so its values cannot be decoded.
61172
+ */
61173
+ var DishwasherAvailabilitySchema = zod.z.enum([
61174
+ "available",
61175
+ "offline",
61176
+ "description-missing"
61177
+ ]);
61111
61178
  var DishwasherConsumableLevelSchema = zod.z.enum([
61112
61179
  "ok",
61113
61180
  "low",
61114
61181
  "empty"
61115
61182
  ]);
61116
61183
  var DishwasherStatusSchema = zod.z.object({
61184
+ availability: DishwasherAvailabilitySchema,
61185
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
61117
61186
  state: DishwasherStateSchema,
61118
- /** Active program id/name, or null when none selected / unknown. */
61187
+ /** The appliance's operation state as reported; null when not known. */
61188
+ operationState: DishwasherOperationStateSchema.nullable(),
61189
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
61119
61190
  program: zod.z.string().nullable(),
61120
- /** Program tokens the hardware accepts — drives the UI selector. */
61191
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
61192
+ selectedProgram: zod.z.string().nullable(),
61193
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
61121
61194
  availablePrograms: zod.z.array(zod.z.string()),
61122
- /** Minutes remaining on the active cycle, or null when not running. */
61123
- remainingMinutes: zod.z.number().int().nonnegative().nullable(),
61195
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
61196
+ remainingSeconds: zod.z.number().int().nonnegative().nullable(),
61197
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
61198
+ delayedStartSeconds: zod.z.number().int().nonnegative().nullable(),
61124
61199
  /** Cycle completion 0..100, or null when not applicable. */
61125
61200
  progressPercent: zod.z.number().min(0).max(100).nullable(),
61126
- /** True when the door is reported open. */
61127
- doorOpen: zod.z.boolean(),
61128
- /** True when remote start is allowed (door closed, power on, etc.). */
61129
- remoteStartAllowed: zod.z.boolean(),
61130
- /** Main power / switched-on state. */
61131
- powerOn: zod.z.boolean(),
61201
+ /** True when the door is reported open; null when the door state is not known. */
61202
+ doorOpen: zod.z.boolean().nullable(),
61203
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
61204
+ doorLocked: zod.z.boolean().nullable(),
61205
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
61206
+ remoteStartAllowed: zod.z.boolean().nullable(),
61207
+ /** True when the appliance accepts remote control now; null when not known. */
61208
+ remoteControlActive: zod.z.boolean().nullable(),
61209
+ /** True while somebody operates the appliance at its panel; null when not reported. */
61210
+ localControlActive: zod.z.boolean().nullable(),
61211
+ /** Main power / switched-on state; null when not known. */
61212
+ powerOn: zod.z.boolean().nullable(),
61213
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
61214
+ powerState: zod.z.string().nullable(),
61132
61215
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
61133
61216
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
61134
- halfLoad: zod.z.boolean(),
61135
- hygienePlus: zod.z.boolean(),
61217
+ /** Option states: null when the appliance does not expose the option or has not said. */
61218
+ halfLoad: zod.z.boolean().nullable(),
61219
+ hygienePlus: zod.z.boolean().nullable(),
61220
+ /** Extra dry option when the appliance exposes it. */
61221
+ extraDry: zod.z.boolean().nullable(),
61222
+ /** Intensive zone (lower basket) when the appliance exposes it. */
61223
+ intensiveZone: zod.z.boolean().nullable(),
61224
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
61225
+ varioSpeedPlus: zod.z.boolean().nullable(),
61226
+ /** Child lock (controls disabled on the appliance); null when not known. */
61227
+ childLock: zod.z.boolean().nullable(),
61228
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
61229
+ activeEvents: zod.z.array(zod.z.string()),
61230
+ /** Numeric error code when the appliance reports one; null otherwise. */
61136
61231
  errorCode: zod.z.number().nullable(),
61232
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
61137
61233
  errorLabel: zod.z.string().nullable(),
61234
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
61138
61235
  lastFetchedAt: zod.z.number()
61139
61236
  });
61237
+ var DeviceIdSchema = zod.z.number().int().nonnegative();
61238
+ /** A value a program option or setting can take. */
61239
+ var DishwasherValueSchema = zod.z.union([
61240
+ zod.z.boolean(),
61241
+ zod.z.string(),
61242
+ zod.z.number()
61243
+ ]);
61244
+ var DishwasherAccessSchema = zod.z.enum([
61245
+ "none",
61246
+ "read",
61247
+ "readWrite",
61248
+ "writeOnly",
61249
+ "readStatic"
61250
+ ]);
61251
+ /**
61252
+ * One option or setting the appliance declares, with the constraints its description
61253
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
61254
+ */
61255
+ var DishwasherOptionDescriptorSchema = zod.z.object({
61256
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
61257
+ key: zod.z.string(),
61258
+ /** Last segment of the key, for display. */
61259
+ name: zod.z.string(),
61260
+ type: zod.z.enum([
61261
+ "boolean",
61262
+ "number",
61263
+ "enum",
61264
+ "string"
61265
+ ]),
61266
+ access: DishwasherAccessSchema,
61267
+ /** The appliance reports this entity as currently available. */
61268
+ available: zod.z.boolean(),
61269
+ /** Unit the description declares for a number; null when it declares none. */
61270
+ unit: zod.z.string().nullable(),
61271
+ min: zod.z.number().nullable(),
61272
+ max: zod.z.number().nullable(),
61273
+ step: zod.z.number().nullable(),
61274
+ /** Allowed members of an enum; null for other types. */
61275
+ enumValues: zod.z.array(zod.z.string()).nullable(),
61276
+ defaultValue: DishwasherValueSchema.nullable()
61277
+ });
61278
+ var DishwasherProgramSchema = zod.z.object({
61279
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
61280
+ key: zod.z.string(),
61281
+ name: zod.z.string(),
61282
+ /** The appliance currently offers this program. */
61283
+ available: zod.z.boolean(),
61284
+ /** The options this program lists, with the program-level access / availability / default. */
61285
+ options: zod.z.array(DishwasherOptionDescriptorSchema)
61286
+ });
61287
+ var DishwasherOptionsSchema = zod.z.object({
61288
+ availability: DishwasherAvailabilitySchema,
61289
+ /** What the appliance can be told to do, from the commands its description declares. */
61290
+ supportsStart: zod.z.boolean(),
61291
+ supportsPause: zod.z.boolean(),
61292
+ supportsResume: zod.z.boolean(),
61293
+ supportsStop: zod.z.boolean(),
61294
+ supportsPower: zod.z.boolean(),
61295
+ /** Every program the description lists, with its options. */
61296
+ programs: zod.z.array(DishwasherProgramSchema),
61297
+ /** Every option and setting entity the description lists (programs reference these by key). */
61298
+ options: zod.z.array(DishwasherOptionDescriptorSchema)
61299
+ });
61140
61300
  var dishwasherCapability = {
61141
61301
  name: "dishwasher",
61142
61302
  scope: "device",
@@ -61144,58 +61304,102 @@ var dishwasherCapability = {
61144
61304
  mode: "singleton",
61145
61305
  deviceTypes: [DeviceType.Dishwasher],
61146
61306
  methods: {
61147
- start: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
61307
+ /**
61308
+ * Start a program. Without `program` the selected one starts. `options` are
61309
+ * option feature keys; each is checked against the program's constraints.
61310
+ */
61311
+ start: method(zod.z.object({
61312
+ deviceId: DeviceIdSchema,
61313
+ program: zod.z.string().min(1).optional(),
61314
+ options: zod.z.record(zod.z.string(), DishwasherValueSchema).optional()
61315
+ }), zod.z.void(), {
61148
61316
  kind: "mutation",
61149
61317
  auth: "protected"
61150
61318
  }),
61151
- pause: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
61319
+ pause: method(zod.z.object({ deviceId: DeviceIdSchema }), zod.z.void(), {
61152
61320
  kind: "mutation",
61153
61321
  auth: "protected"
61154
61322
  }),
61155
- stop: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
61323
+ resume: method(zod.z.object({ deviceId: DeviceIdSchema }), zod.z.void(), {
61324
+ kind: "mutation",
61325
+ auth: "protected"
61326
+ }),
61327
+ stop: method(zod.z.object({ deviceId: DeviceIdSchema }), zod.z.void(), {
61156
61328
  kind: "mutation",
61157
61329
  auth: "protected"
61158
61330
  }),
61331
+ /** Select (not start) a program; refused when the appliance does not offer it. */
61159
61332
  setProgram: method(zod.z.object({
61160
- deviceId: zod.z.number().int().nonnegative(),
61333
+ deviceId: DeviceIdSchema,
61161
61334
  program: zod.z.string().min(1)
61162
61335
  }), zod.z.void(), {
61163
61336
  kind: "mutation",
61164
61337
  auth: "protected"
61165
61338
  }),
61166
61339
  setPower: method(zod.z.object({
61167
- deviceId: zod.z.number().int().nonnegative(),
61340
+ deviceId: DeviceIdSchema,
61168
61341
  on: zod.z.boolean()
61169
61342
  }), zod.z.void(), {
61170
61343
  kind: "mutation",
61171
61344
  auth: "protected"
61172
61345
  }),
61173
61346
  setHalfLoad: method(zod.z.object({
61174
- deviceId: zod.z.number().int().nonnegative(),
61347
+ deviceId: DeviceIdSchema,
61175
61348
  on: zod.z.boolean()
61176
61349
  }), zod.z.void(), {
61177
61350
  kind: "mutation",
61178
61351
  auth: "protected"
61179
61352
  }),
61180
61353
  setHygienePlus: method(zod.z.object({
61181
- deviceId: zod.z.number().int().nonnegative(),
61354
+ deviceId: DeviceIdSchema,
61355
+ on: zod.z.boolean()
61356
+ }), zod.z.void(), {
61357
+ kind: "mutation",
61358
+ auth: "protected"
61359
+ }),
61360
+ setExtraDry: method(zod.z.object({
61361
+ deviceId: DeviceIdSchema,
61362
+ on: zod.z.boolean()
61363
+ }), zod.z.void(), {
61364
+ kind: "mutation",
61365
+ auth: "protected"
61366
+ }),
61367
+ setIntensiveZone: method(zod.z.object({
61368
+ deviceId: DeviceIdSchema,
61369
+ on: zod.z.boolean()
61370
+ }), zod.z.void(), {
61371
+ kind: "mutation",
61372
+ auth: "protected"
61373
+ }),
61374
+ setVarioSpeedPlus: method(zod.z.object({
61375
+ deviceId: DeviceIdSchema,
61376
+ on: zod.z.boolean()
61377
+ }), zod.z.void(), {
61378
+ kind: "mutation",
61379
+ auth: "protected"
61380
+ }),
61381
+ setChildLock: method(zod.z.object({
61382
+ deviceId: DeviceIdSchema,
61182
61383
  on: zod.z.boolean()
61183
61384
  }), zod.z.void(), {
61184
61385
  kind: "mutation",
61185
61386
  auth: "protected"
61186
61387
  }),
61388
+ /**
61389
+ * Write any option or setting by feature key. Refused when the description does
61390
+ * not list it, it is not writable or not available now, or the value is outside
61391
+ * its declared range / members.
61392
+ */
61187
61393
  setOption: method(zod.z.object({
61188
- deviceId: zod.z.number().int().nonnegative(),
61394
+ deviceId: DeviceIdSchema,
61189
61395
  key: zod.z.string().min(1),
61190
- value: zod.z.union([
61191
- zod.z.boolean(),
61192
- zod.z.string(),
61193
- zod.z.number()
61194
- ])
61396
+ value: DishwasherValueSchema
61195
61397
  }), zod.z.void(), {
61196
61398
  kind: "mutation",
61197
61399
  auth: "protected"
61198
- })
61400
+ }),
61401
+ /** What this appliance can do, from its own description — the UI is derived from it. */
61402
+ getOptions: method(zod.z.object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
61199
61403
  },
61200
61404
  status: {
61201
61405
  schema: DishwasherStatusSchema,
@@ -74204,6 +74408,7 @@ var CONTAINER_CHILD_PRIORITY = [
74204
74408
  "fan",
74205
74409
  "vacuum",
74206
74410
  "lawn-mower",
74411
+ "dishwasher",
74207
74412
  "light",
74208
74413
  "switch",
74209
74414
  "siren",
@@ -77051,6 +77256,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77051
77256
  addonId: null,
77052
77257
  access: "view"
77053
77258
  },
77259
+ "dishwasher.getOptions": {
77260
+ capName: "dishwasher",
77261
+ capScope: "device",
77262
+ addonId: null,
77263
+ access: "view"
77264
+ },
77054
77265
  "dishwasher.getStatus": {
77055
77266
  capName: "dishwasher",
77056
77267
  capScope: "device",
@@ -77063,6 +77274,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
77063
77274
  addonId: null,
77064
77275
  access: "create"
77065
77276
  },
77277
+ "dishwasher.resume": {
77278
+ capName: "dishwasher",
77279
+ capScope: "device",
77280
+ addonId: null,
77281
+ access: "create"
77282
+ },
77283
+ "dishwasher.setChildLock": {
77284
+ capName: "dishwasher",
77285
+ capScope: "device",
77286
+ addonId: null,
77287
+ access: "create"
77288
+ },
77289
+ "dishwasher.setExtraDry": {
77290
+ capName: "dishwasher",
77291
+ capScope: "device",
77292
+ addonId: null,
77293
+ access: "create"
77294
+ },
77066
77295
  "dishwasher.setHalfLoad": {
77067
77296
  capName: "dishwasher",
77068
77297
  capScope: "device",
@@ -77075,6 +77304,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77075
77304
  addonId: null,
77076
77305
  access: "create"
77077
77306
  },
77307
+ "dishwasher.setIntensiveZone": {
77308
+ capName: "dishwasher",
77309
+ capScope: "device",
77310
+ addonId: null,
77311
+ access: "create"
77312
+ },
77078
77313
  "dishwasher.setOption": {
77079
77314
  capName: "dishwasher",
77080
77315
  capScope: "device",
@@ -77093,6 +77328,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77093
77328
  addonId: null,
77094
77329
  access: "create"
77095
77330
  },
77331
+ "dishwasher.setVarioSpeedPlus": {
77332
+ capName: "dishwasher",
77333
+ capScope: "device",
77334
+ addonId: null,
77335
+ access: "create"
77336
+ },
77096
77337
  "dishwasher.start": {
77097
77338
  capName: "dishwasher",
77098
77339
  capScope: "device",
@@ -81539,6 +81780,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
81539
81780
  addonId: null,
81540
81781
  access: "view"
81541
81782
  },
81783
+ "storageMigration.moverClearance": {
81784
+ capName: "storage-migration",
81785
+ capScope: "system",
81786
+ addonId: null,
81787
+ access: "view"
81788
+ },
81542
81789
  "storageMigration.movers": {
81543
81790
  capName: "storage-migration",
81544
81791
  capScope: "system",
@@ -84003,6 +84250,11 @@ Object.freeze({
84003
84250
  form: "single",
84004
84251
  optional: false
84005
84252
  }],
84253
+ "dishwasher.getOptions": [{
84254
+ name: "deviceId",
84255
+ form: "single",
84256
+ optional: false
84257
+ }],
84006
84258
  "dishwasher.getStatus": [{
84007
84259
  name: "deviceId",
84008
84260
  form: "single",
@@ -84013,6 +84265,21 @@ Object.freeze({
84013
84265
  form: "single",
84014
84266
  optional: false
84015
84267
  }],
84268
+ "dishwasher.resume": [{
84269
+ name: "deviceId",
84270
+ form: "single",
84271
+ optional: false
84272
+ }],
84273
+ "dishwasher.setChildLock": [{
84274
+ name: "deviceId",
84275
+ form: "single",
84276
+ optional: false
84277
+ }],
84278
+ "dishwasher.setExtraDry": [{
84279
+ name: "deviceId",
84280
+ form: "single",
84281
+ optional: false
84282
+ }],
84016
84283
  "dishwasher.setHalfLoad": [{
84017
84284
  name: "deviceId",
84018
84285
  form: "single",
@@ -84023,6 +84290,11 @@ Object.freeze({
84023
84290
  form: "single",
84024
84291
  optional: false
84025
84292
  }],
84293
+ "dishwasher.setIntensiveZone": [{
84294
+ name: "deviceId",
84295
+ form: "single",
84296
+ optional: false
84297
+ }],
84026
84298
  "dishwasher.setOption": [{
84027
84299
  name: "deviceId",
84028
84300
  form: "single",
@@ -84038,6 +84310,11 @@ Object.freeze({
84038
84310
  form: "single",
84039
84311
  optional: false
84040
84312
  }],
84313
+ "dishwasher.setVarioSpeedPlus": [{
84314
+ name: "deviceId",
84315
+ form: "single",
84316
+ optional: false
84317
+ }],
84041
84318
  "dishwasher.start": [{
84042
84319
  name: "deviceId",
84043
84320
  form: "single",
@@ -86669,6 +86946,9 @@ new Map(Object.entries({
86669
86946
  "wrapper-update-available": "system",
86670
86947
  "backup-completed": "system",
86671
86948
  "export-completed": "system",
86949
+ "alert-critical": "system",
86950
+ "alert-error": "system",
86951
+ "alert-critical-resolved": "system",
86672
86952
  "storage-location-low": "system",
86673
86953
  "storage-location-critical": "system",
86674
86954
  "storage-location-ok": "system",
@@ -86793,6 +87073,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
86793
87073
  "storage-location-ok"
86794
87074
  ]
86795
87075
  },
87076
+ {
87077
+ id: "alerts",
87078
+ family: "system",
87079
+ label: "Alerts",
87080
+ kinds: [
87081
+ "alert-critical",
87082
+ "alert-error",
87083
+ "alert-critical-resolved"
87084
+ ]
87085
+ },
86796
87086
  {
86797
87087
  id: "alarm",
86798
87088
  family: "alarm",
@@ -86837,6 +87127,63 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
86837
87127
  return [[descriptor.kind, field]];
86838
87128
  })));
86839
87129
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
87130
+ zod.z.object({
87131
+ phase: zod.z.enum(["raised", "resolved"]),
87132
+ episodeId: zod.z.string().min(1),
87133
+ alertId: zod.z.string().min(1),
87134
+ severity: AlertSeveritySchema,
87135
+ category: zod.z.string(),
87136
+ title: zod.z.string(),
87137
+ message: zod.z.string(),
87138
+ sourceType: zod.z.string().optional(),
87139
+ sourceId: zod.z.string().optional(),
87140
+ nodeId: zod.z.string().optional(),
87141
+ /** The alert's own action link (where the operator acts on it), when it has one. */
87142
+ actionUrl: zod.z.string().optional(),
87143
+ at: zod.z.number()
87144
+ });
87145
+ /** An episode is closed once its alert is completed or dismissed. */
87146
+ function isAlertEpisodeOpen(status) {
87147
+ return status !== "completed" && status !== "dismissed";
87148
+ }
87149
+ /** Only these severities are ever announced. */
87150
+ function isAlertEpisodeSeverity(severity) {
87151
+ return severity === "critical" || severity === "error";
87152
+ }
87153
+ function alertEpisodeId(alert) {
87154
+ const minted = alert.metadata?.["episodeId"];
87155
+ return typeof minted === "string" && minted.length > 0 ? minted : `${alert.id}@${String(alert.createdAt)}`;
87156
+ }
87157
+ /** The node an alert is about, from the places emitters put it. */
87158
+ function alertNodeId(alert) {
87159
+ const direct = alert.metadata?.["nodeId"];
87160
+ if (typeof direct === "string") return direct;
87161
+ const runner = alert.metadata?.["runner"];
87162
+ if (typeof runner === "object" && runner !== null && "nodeId" in runner) {
87163
+ const id = runner.nodeId;
87164
+ if (typeof id === "string") return id;
87165
+ }
87166
+ return alert.source?.type === "node" ? alert.source.id : void 0;
87167
+ }
87168
+ function alertEpisodePayload(alert, phase, at) {
87169
+ const nodeId = alertNodeId(alert);
87170
+ return {
87171
+ phase,
87172
+ episodeId: alertEpisodeId(alert),
87173
+ alertId: alert.id,
87174
+ severity: alert.severity,
87175
+ category: alert.category,
87176
+ title: alert.title,
87177
+ message: alert.message,
87178
+ ...alert.source !== void 0 ? {
87179
+ sourceType: alert.source.type,
87180
+ sourceId: alert.source.id
87181
+ } : {},
87182
+ ...nodeId !== void 0 ? { nodeId } : {},
87183
+ ...alert.action?.href !== void 0 ? { actionUrl: alert.action.href } : {},
87184
+ at
87185
+ };
87186
+ }
86840
87187
  var RULE_BODY_ONLY = ["body"];
86841
87188
  var RULE_TEXT = ["title", "body"];
86842
87189
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -86846,6 +87193,11 @@ var TANK = [
86846
87193
  "device-tank-full",
86847
87194
  "device-tank-normal"
86848
87195
  ];
87196
+ var ALERT_EPISODE = [
87197
+ "alert-critical",
87198
+ "alert-error",
87199
+ "alert-critical-resolved"
87200
+ ];
86849
87201
  var UPDATES = [
86850
87202
  "addon-update-available",
86851
87203
  "server-update-available",
@@ -87038,14 +87390,14 @@ var STATE_SUMMARY_VARS = [
87038
87390
  ([...RULE_TEXT], [...CONSUMABLE]),
87039
87391
  ([...RULE_TEXT], [...TANK]),
87040
87392
  [...RULE_TEXT],
87041
- ([...RULE_TEXT], [...UPDATES]),
87042
- ([...RULE_TEXT], [...UPDATES]),
87043
- [...RULE_TEXT],
87393
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
87394
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
87044
87395
  [...RULE_TEXT],
87045
87396
  [...RULE_TEXT],
87046
87397
  [...RULE_TEXT],
87047
87398
  [...RULE_TEXT],
87048
87399
  [...RULE_TEXT],
87400
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87049
87401
  [...RULE_TEXT],
87050
87402
  [...RULE_TEXT],
87051
87403
  [...RULE_TEXT],
@@ -87063,7 +87415,11 @@ var STATE_SUMMARY_VARS = [
87063
87415
  [...RULE_TEXT],
87064
87416
  [...RULE_TEXT],
87065
87417
  [...RULE_TEXT],
87066
- [...RULE_TEXT],
87418
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87419
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87420
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87421
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87422
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87067
87423
  [...RULE_TEXT],
87068
87424
  [...RULE_TEXT],
87069
87425
  [...RULE_TEXT],
@@ -88580,6 +88936,18 @@ Object.defineProperty(exports, "addonWidgetsCapability", {
88580
88936
  return addonWidgetsCapability;
88581
88937
  }
88582
88938
  });
88939
+ Object.defineProperty(exports, "alertEpisodeId", {
88940
+ enumerable: true,
88941
+ get: function() {
88942
+ return alertEpisodeId;
88943
+ }
88944
+ });
88945
+ Object.defineProperty(exports, "alertEpisodePayload", {
88946
+ enumerable: true,
88947
+ get: function() {
88948
+ return alertEpisodePayload;
88949
+ }
88950
+ });
88583
88951
  Object.defineProperty(exports, "alertsCapability", {
88584
88952
  enumerable: true,
88585
88953
  get: function() {
@@ -89066,6 +89434,18 @@ Object.defineProperty(exports, "interpolate", {
89066
89434
  return interpolate;
89067
89435
  }
89068
89436
  });
89437
+ Object.defineProperty(exports, "isAlertEpisodeOpen", {
89438
+ enumerable: true,
89439
+ get: function() {
89440
+ return isAlertEpisodeOpen;
89441
+ }
89442
+ });
89443
+ Object.defineProperty(exports, "isAlertEpisodeSeverity", {
89444
+ enumerable: true,
89445
+ get: function() {
89446
+ return isAlertEpisodeSeverity;
89447
+ }
89448
+ });
89069
89449
  Object.defineProperty(exports, "isAppLinkBase", {
89070
89450
  enumerable: true,
89071
89451
  get: function() {