@camstack/system 1.2.453 → 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 (95) hide show
  1. package/dist/{agent-https-DL2cFOQv.js → agent-https-B7IjRRzT.js} +2 -2
  2. package/dist/{agent-https-XAZFJjOS.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 +1 -1
  44. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  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-DwEvAg5Z.js → composition-sources-Cukc78eu.js} +1 -1
  75. package/dist/{composition-sources-jYNpYEhS.mjs → composition-sources-bt6IQDLu.mjs} +1 -1
  76. package/dist/{constants-B3fDUnJt.js → constants-DBGG6Zu5.js} +1 -1
  77. package/dist/{constants-DGBB3tNi.mjs → constants-DQcVrhVI.mjs} +1 -1
  78. package/dist/{device-ca-njpTMpJC.js → device-ca-B3hUVfYk.js} +1 -1
  79. package/dist/{device-ca-Dpkxg7px.mjs → device-ca-Utfvsx5x.mjs} +1 -1
  80. package/dist/{dist-B9C2v4SG.mjs → dist-7ZciHCIp.mjs} +315 -44
  81. package/dist/{dist-DyjNaeIj.js → dist-Bi4Ioxop.js} +338 -43
  82. package/dist/file-host-worker.js +1 -1
  83. package/dist/file-host-worker.mjs +1 -1
  84. package/dist/{hub-mdns-ciao-DpdFaLz-.js → hub-mdns-ciao-2FzLWfbD.js} +2 -2
  85. package/dist/{hub-mdns-ciao-B4wHDMvk.mjs → hub-mdns-ciao-BRs3DUT-.mjs} +2 -2
  86. package/dist/index.js +7 -7
  87. package/dist/index.mjs +7 -7
  88. package/dist/{phase6-declare-gate-CNxKbsvm.mjs → phase6-declare-gate-D-2LMw9o.mjs} +1 -1
  89. package/dist/{phase6-declare-gate-BlTDMI3t.js → phase6-declare-gate-DwYAep7y.js} +1 -1
  90. package/dist/{restore-archive-BeGP9IYs.js → restore-archive-C0ymYQk7.js} +1 -1
  91. package/dist/{restore-archive-D7HwsszI.mjs → restore-archive-UVZv_hmr.mjs} +1 -1
  92. package/dist/{wal-maintenance-i3GRvmQW.js → wal-maintenance-Bo_lo3Dh.js} +0 -0
  93. package/dist/{wal-maintenance-HEmw2Fik.mjs → wal-maintenance-Df89xxrK.mjs} +0 -0
  94. package/package.json +1 -1
  95. 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-BegKjwUu.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",
@@ -44526,6 +44542,9 @@ var NcSystemEventKindSchema = zod.z.enum([
44526
44542
  "server-updated",
44527
44543
  "export-completed",
44528
44544
  "backup-completed",
44545
+ "alert-critical",
44546
+ "alert-error",
44547
+ "alert-critical-resolved",
44529
44548
  "camera-online",
44530
44549
  "camera-offline",
44531
44550
  "camera-disabled",
@@ -55883,6 +55902,18 @@ var storageMigrationCapability = {
55883
55902
  */
55884
55903
  movers: method(zod.z.object({}), zod.z.array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }),
55885
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
+ /**
55886
55917
  * What each class's SOURCE still holds, from the archive — never from the
55887
55918
  * resident index (D295). Only classes with something left (or something
55888
55919
  * unknown) are listed, so an empty list means there is nothing to drain and
@@ -61103,6 +61134,11 @@ onStatusChanged: { data: zod.z.object({
61103
61134
  *
61104
61135
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
61105
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.
61106
61142
  */
61107
61143
  var DishwasherStateSchema = zod.z.enum([
61108
61144
  "idle",
@@ -61112,43 +61148,155 @@ var DishwasherStateSchema = zod.z.enum([
61112
61148
  "error",
61113
61149
  "unavailable"
61114
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
+ ]);
61115
61178
  var DishwasherConsumableLevelSchema = zod.z.enum([
61116
61179
  "ok",
61117
61180
  "low",
61118
61181
  "empty"
61119
61182
  ]);
61120
61183
  var DishwasherStatusSchema = zod.z.object({
61184
+ availability: DishwasherAvailabilitySchema,
61185
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
61121
61186
  state: DishwasherStateSchema,
61122
- /** 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. */
61123
61190
  program: zod.z.string().nullable(),
61124
- /** 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. */
61125
61194
  availablePrograms: zod.z.array(zod.z.string()),
61126
- /** Minutes remaining on the active cycle, or null when not running. */
61127
- 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(),
61128
61199
  /** Cycle completion 0..100, or null when not applicable. */
61129
61200
  progressPercent: zod.z.number().min(0).max(100).nullable(),
61130
- /** True when the door is reported open. */
61131
- doorOpen: zod.z.boolean(),
61132
- /** True when remote start is allowed (door closed, power on, etc.). */
61133
- remoteStartAllowed: zod.z.boolean(),
61134
- /** Main power / switched-on state. */
61135
- 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(),
61136
61215
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
61137
61216
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
61138
- halfLoad: zod.z.boolean(),
61139
- 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(),
61140
61220
  /** Extra dry option when the appliance exposes it. */
61141
- extraDry: zod.z.boolean(),
61221
+ extraDry: zod.z.boolean().nullable(),
61142
61222
  /** Intensive zone (lower basket) when the appliance exposes it. */
61143
- intensiveZone: zod.z.boolean(),
61223
+ intensiveZone: zod.z.boolean().nullable(),
61144
61224
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
61145
- varioSpeedPlus: zod.z.boolean(),
61146
- /** Child lock (controls disabled on the appliance). */
61147
- childLock: zod.z.boolean(),
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. */
61148
61231
  errorCode: zod.z.number().nullable(),
61232
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
61149
61233
  errorLabel: zod.z.string().nullable(),
61234
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
61150
61235
  lastFetchedAt: zod.z.number()
61151
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
+ });
61152
61300
  var dishwasherCapability = {
61153
61301
  name: "dishwasher",
61154
61302
  scope: "device",
@@ -61156,86 +61304,102 @@ var dishwasherCapability = {
61156
61304
  mode: "singleton",
61157
61305
  deviceTypes: [DeviceType.Dishwasher],
61158
61306
  methods: {
61159
- 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(), {
61160
61316
  kind: "mutation",
61161
61317
  auth: "protected"
61162
61318
  }),
61163
- 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(), {
61164
61320
  kind: "mutation",
61165
61321
  auth: "protected"
61166
61322
  }),
61167
- 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(), {
61168
61328
  kind: "mutation",
61169
61329
  auth: "protected"
61170
61330
  }),
61331
+ /** Select (not start) a program; refused when the appliance does not offer it. */
61171
61332
  setProgram: method(zod.z.object({
61172
- deviceId: zod.z.number().int().nonnegative(),
61333
+ deviceId: DeviceIdSchema,
61173
61334
  program: zod.z.string().min(1)
61174
61335
  }), zod.z.void(), {
61175
61336
  kind: "mutation",
61176
61337
  auth: "protected"
61177
61338
  }),
61178
61339
  setPower: method(zod.z.object({
61179
- deviceId: zod.z.number().int().nonnegative(),
61340
+ deviceId: DeviceIdSchema,
61180
61341
  on: zod.z.boolean()
61181
61342
  }), zod.z.void(), {
61182
61343
  kind: "mutation",
61183
61344
  auth: "protected"
61184
61345
  }),
61185
61346
  setHalfLoad: method(zod.z.object({
61186
- deviceId: zod.z.number().int().nonnegative(),
61347
+ deviceId: DeviceIdSchema,
61187
61348
  on: zod.z.boolean()
61188
61349
  }), zod.z.void(), {
61189
61350
  kind: "mutation",
61190
61351
  auth: "protected"
61191
61352
  }),
61192
61353
  setHygienePlus: method(zod.z.object({
61193
- deviceId: zod.z.number().int().nonnegative(),
61354
+ deviceId: DeviceIdSchema,
61194
61355
  on: zod.z.boolean()
61195
61356
  }), zod.z.void(), {
61196
61357
  kind: "mutation",
61197
61358
  auth: "protected"
61198
61359
  }),
61199
61360
  setExtraDry: method(zod.z.object({
61200
- deviceId: zod.z.number().int().nonnegative(),
61361
+ deviceId: DeviceIdSchema,
61201
61362
  on: zod.z.boolean()
61202
61363
  }), zod.z.void(), {
61203
61364
  kind: "mutation",
61204
61365
  auth: "protected"
61205
61366
  }),
61206
61367
  setIntensiveZone: method(zod.z.object({
61207
- deviceId: zod.z.number().int().nonnegative(),
61368
+ deviceId: DeviceIdSchema,
61208
61369
  on: zod.z.boolean()
61209
61370
  }), zod.z.void(), {
61210
61371
  kind: "mutation",
61211
61372
  auth: "protected"
61212
61373
  }),
61213
61374
  setVarioSpeedPlus: method(zod.z.object({
61214
- deviceId: zod.z.number().int().nonnegative(),
61375
+ deviceId: DeviceIdSchema,
61215
61376
  on: zod.z.boolean()
61216
61377
  }), zod.z.void(), {
61217
61378
  kind: "mutation",
61218
61379
  auth: "protected"
61219
61380
  }),
61220
61381
  setChildLock: method(zod.z.object({
61221
- deviceId: zod.z.number().int().nonnegative(),
61382
+ deviceId: DeviceIdSchema,
61222
61383
  on: zod.z.boolean()
61223
61384
  }), zod.z.void(), {
61224
61385
  kind: "mutation",
61225
61386
  auth: "protected"
61226
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
+ */
61227
61393
  setOption: method(zod.z.object({
61228
- deviceId: zod.z.number().int().nonnegative(),
61394
+ deviceId: DeviceIdSchema,
61229
61395
  key: zod.z.string().min(1),
61230
- value: zod.z.union([
61231
- zod.z.boolean(),
61232
- zod.z.string(),
61233
- zod.z.number()
61234
- ])
61396
+ value: DishwasherValueSchema
61235
61397
  }), zod.z.void(), {
61236
61398
  kind: "mutation",
61237
61399
  auth: "protected"
61238
- })
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" })
61239
61403
  },
61240
61404
  status: {
61241
61405
  schema: DishwasherStatusSchema,
@@ -77092,6 +77256,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77092
77256
  addonId: null,
77093
77257
  access: "view"
77094
77258
  },
77259
+ "dishwasher.getOptions": {
77260
+ capName: "dishwasher",
77261
+ capScope: "device",
77262
+ addonId: null,
77263
+ access: "view"
77264
+ },
77095
77265
  "dishwasher.getStatus": {
77096
77266
  capName: "dishwasher",
77097
77267
  capScope: "device",
@@ -77104,6 +77274,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77104
77274
  addonId: null,
77105
77275
  access: "create"
77106
77276
  },
77277
+ "dishwasher.resume": {
77278
+ capName: "dishwasher",
77279
+ capScope: "device",
77280
+ addonId: null,
77281
+ access: "create"
77282
+ },
77107
77283
  "dishwasher.setChildLock": {
77108
77284
  capName: "dishwasher",
77109
77285
  capScope: "device",
@@ -81604,6 +81780,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
81604
81780
  addonId: null,
81605
81781
  access: "view"
81606
81782
  },
81783
+ "storageMigration.moverClearance": {
81784
+ capName: "storage-migration",
81785
+ capScope: "system",
81786
+ addonId: null,
81787
+ access: "view"
81788
+ },
81607
81789
  "storageMigration.movers": {
81608
81790
  capName: "storage-migration",
81609
81791
  capScope: "system",
@@ -84068,6 +84250,11 @@ Object.freeze({
84068
84250
  form: "single",
84069
84251
  optional: false
84070
84252
  }],
84253
+ "dishwasher.getOptions": [{
84254
+ name: "deviceId",
84255
+ form: "single",
84256
+ optional: false
84257
+ }],
84071
84258
  "dishwasher.getStatus": [{
84072
84259
  name: "deviceId",
84073
84260
  form: "single",
@@ -84078,6 +84265,11 @@ Object.freeze({
84078
84265
  form: "single",
84079
84266
  optional: false
84080
84267
  }],
84268
+ "dishwasher.resume": [{
84269
+ name: "deviceId",
84270
+ form: "single",
84271
+ optional: false
84272
+ }],
84081
84273
  "dishwasher.setChildLock": [{
84082
84274
  name: "deviceId",
84083
84275
  form: "single",
@@ -86754,6 +86946,9 @@ new Map(Object.entries({
86754
86946
  "wrapper-update-available": "system",
86755
86947
  "backup-completed": "system",
86756
86948
  "export-completed": "system",
86949
+ "alert-critical": "system",
86950
+ "alert-error": "system",
86951
+ "alert-critical-resolved": "system",
86757
86952
  "storage-location-low": "system",
86758
86953
  "storage-location-critical": "system",
86759
86954
  "storage-location-ok": "system",
@@ -86878,6 +87073,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
86878
87073
  "storage-location-ok"
86879
87074
  ]
86880
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
+ },
86881
87086
  {
86882
87087
  id: "alarm",
86883
87088
  family: "alarm",
@@ -86922,6 +87127,63 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
86922
87127
  return [[descriptor.kind, field]];
86923
87128
  })));
86924
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
+ }
86925
87187
  var RULE_BODY_ONLY = ["body"];
86926
87188
  var RULE_TEXT = ["title", "body"];
86927
87189
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -86931,6 +87193,11 @@ var TANK = [
86931
87193
  "device-tank-full",
86932
87194
  "device-tank-normal"
86933
87195
  ];
87196
+ var ALERT_EPISODE = [
87197
+ "alert-critical",
87198
+ "alert-error",
87199
+ "alert-critical-resolved"
87200
+ ];
86934
87201
  var UPDATES = [
86935
87202
  "addon-update-available",
86936
87203
  "server-update-available",
@@ -87123,14 +87390,14 @@ var STATE_SUMMARY_VARS = [
87123
87390
  ([...RULE_TEXT], [...CONSUMABLE]),
87124
87391
  ([...RULE_TEXT], [...TANK]),
87125
87392
  [...RULE_TEXT],
87126
- ([...RULE_TEXT], [...UPDATES]),
87127
- ([...RULE_TEXT], [...UPDATES]),
87128
- [...RULE_TEXT],
87393
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
87394
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
87129
87395
  [...RULE_TEXT],
87130
87396
  [...RULE_TEXT],
87131
87397
  [...RULE_TEXT],
87132
87398
  [...RULE_TEXT],
87133
87399
  [...RULE_TEXT],
87400
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
87134
87401
  [...RULE_TEXT],
87135
87402
  [...RULE_TEXT],
87136
87403
  [...RULE_TEXT],
@@ -87148,7 +87415,11 @@ var STATE_SUMMARY_VARS = [
87148
87415
  [...RULE_TEXT],
87149
87416
  [...RULE_TEXT],
87150
87417
  [...RULE_TEXT],
87151
- [...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]),
87152
87423
  [...RULE_TEXT],
87153
87424
  [...RULE_TEXT],
87154
87425
  [...RULE_TEXT],
@@ -88665,6 +88936,18 @@ Object.defineProperty(exports, "addonWidgetsCapability", {
88665
88936
  return addonWidgetsCapability;
88666
88937
  }
88667
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
+ });
88668
88951
  Object.defineProperty(exports, "alertsCapability", {
88669
88952
  enumerable: true,
88670
88953
  get: function() {
@@ -89151,6 +89434,18 @@ Object.defineProperty(exports, "interpolate", {
89151
89434
  return interpolate;
89152
89435
  }
89153
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
+ });
89154
89449
  Object.defineProperty(exports, "isAppLinkBase", {
89155
89450
  enumerable: true,
89156
89451
  get: function() {
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-i3GRvmQW.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-Bo_lo3Dh.js");
3
3
  let node_worker_threads = require("node:worker_threads");
4
4
  //#region src/builtins/sqlite-storage/file-host-worker.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-HEmw2Fik.mjs";
1
+ import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-Df89xxrK.mjs";
2
2
  import { parentPort, threadId, workerData } from "node:worker_threads";
3
3
  //#region src/builtins/sqlite-storage/file-host-worker.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-DyjNaeIj.js");
2
+ const require_dist = require("./dist-Bi4Ioxop.js");
3
3
  const require_x509_es = require("./x509.es-C4cOo48M.js");
4
- const require_agent_https = require("./agent-https-DL2cFOQv.js");
4
+ const require_agent_https = require("./agent-https-B7IjRRzT.js");
5
5
  let node_crypto = require("node:crypto");
6
6
  let _camstack_types_node = require("@camstack/types/node");
7
7
  let node_fs_promises = require("node:fs/promises");
@@ -1,7 +1,7 @@
1
1
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { fa as userError } from "./dist-B9C2v4SG.mjs";
2
+ import { ga as userError } from "./dist-7ZciHCIp.mjs";
3
3
  import { f as X509Certificate$1 } from "./x509.es-DK__ETIe.mjs";
4
- import { A as isConstrainedCa, E as reasonRequiresNewCa, M as permitsIdentity, P as readNameConstraints, T as evaluateExistingCert, _ as issueLeaf, g as generateCa, v as loadCa, y as collectCertIdentity } from "./agent-https-XAZFJjOS.mjs";
4
+ import { A as isConstrainedCa, E as reasonRequiresNewCa, M as permitsIdentity, P as readNameConstraints, T as evaluateExistingCert, _ as issueLeaf, g as generateCa, v as loadCa, y as collectCertIdentity } from "./agent-https-oXsR24R2.mjs";
5
5
  import { X509Certificate, createPrivateKey } from "node:crypto";
6
6
  import { writeOwnerOnlyFileSync } from "@camstack/types/node";
7
7
  import { mkdir, writeFile } from "node:fs/promises";