@camstack/addon-provider-unraid 0.2.128 → 0.2.129

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 +264 -44
  2. package/dist/addon.mjs +264 -44
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../types/dist/event-category-BvOFi6PY.mjs
2
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -78,9 +78,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
78
78
  /**
79
79
  * The node's one-shot runner boot check (D877): planned runners against the
80
80
  * process service, `degraded` when any is failed, refused or missing. The
81
- * alert centre turns it into one alert and a direct critical push.
81
+ * alert centre turns it into one critical alert.
82
82
  */
83
83
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
84
+ /**
85
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
86
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
87
+ * centre sends no notification of its own: Notification Center turns this
88
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
89
+ * system-event kinds, and reconciles from the alerts store because a bus
90
+ * event may be dropped (D8, D11).
91
+ */
92
+ EventCategory["AlertEpisode"] = "alert.episode";
84
93
  EventCategory["AddonError"] = "addon.error";
85
94
  EventCategory["AddonPageReady"] = "addon.page-ready";
86
95
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5405,7 +5414,7 @@ var ZodIssueCode = {
5405
5414
  var ZodFirstPartyTypeKind;
5406
5415
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5407
5416
  //#endregion
5408
- //#region ../types/dist/sleep-BegKjwUu.mjs
5417
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5409
5418
  /**
5410
5419
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5411
5420
  * window to float samples (D455).
@@ -13182,7 +13191,14 @@ var AlertSeveritySchema = _enum([
13182
13191
  ]);
13183
13192
  var AlertActionSchema = object({
13184
13193
  label: string(),
13185
- href: string().optional()
13194
+ href: string().optional(),
13195
+ /**
13196
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13197
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13198
+ * start) — the browser must leave the SPA with a full navigation, because
13199
+ * the SPA has no such route and would bounce to the home page.
13200
+ */
13201
+ navigation: _enum(["app", "server"]).optional()
13186
13202
  });
13187
13203
  var AlertStatusSchema = _enum([
13188
13204
  "active",
@@ -42011,6 +42027,9 @@ var NcSystemEventKindSchema = _enum([
42011
42027
  "server-updated",
42012
42028
  "export-completed",
42013
42029
  "backup-completed",
42030
+ "alert-critical",
42031
+ "alert-error",
42032
+ "alert-critical-resolved",
42014
42033
  "camera-online",
42015
42034
  "camera-offline",
42016
42035
  "camera-disabled",
@@ -51087,7 +51106,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51087
51106
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51088
51107
  kind: "mutation",
51089
51108
  auth: "admin"
51090
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51109
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51110
+ clear: boolean(),
51111
+ repointLocationId: string().optional()
51112
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51091
51113
  kind: "mutation",
51092
51114
  auth: "admin"
51093
51115
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55360,6 +55382,11 @@ onStatusChanged: { data: object({
55360
55382
  *
55361
55383
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55362
55384
  * provider refreshes the slice on an interval and eagerly after commands.
55385
+ *
55386
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55387
+ * nullable: `null` means "not known right now" (the appliance has not said,
55388
+ * the link is down, or the description does not carry it) and is never
55389
+ * rendered or exported as `false` / `0`. `availability` says why.
55363
55390
  */
55364
55391
  var DishwasherStateSchema = _enum([
55365
55392
  "idle",
@@ -55369,43 +55396,155 @@ var DishwasherStateSchema = _enum([
55369
55396
  "error",
55370
55397
  "unavailable"
55371
55398
  ]);
55399
+ /**
55400
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55401
+ * view for compact surfaces; this is what the appliance said.
55402
+ */
55403
+ var DishwasherOperationStateSchema = _enum([
55404
+ "Inactive",
55405
+ "Ready",
55406
+ "DelayedStart",
55407
+ "Run",
55408
+ "Pause",
55409
+ "ActionRequired",
55410
+ "Finished",
55411
+ "Error",
55412
+ "Aborting"
55413
+ ]);
55414
+ /**
55415
+ * Why fields may be `null`:
55416
+ * - `available` — the link is up and the description is loaded;
55417
+ * - `offline` — the local link is down (values are unknown, not last-known);
55418
+ * - `description-missing` — the link is up but the appliance's description could not
55419
+ * be loaded, so its values cannot be decoded.
55420
+ */
55421
+ var DishwasherAvailabilitySchema = _enum([
55422
+ "available",
55423
+ "offline",
55424
+ "description-missing"
55425
+ ]);
55372
55426
  var DishwasherConsumableLevelSchema = _enum([
55373
55427
  "ok",
55374
55428
  "low",
55375
55429
  "empty"
55376
55430
  ]);
55377
55431
  var DishwasherStatusSchema = object({
55432
+ availability: DishwasherAvailabilitySchema,
55433
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55378
55434
  state: DishwasherStateSchema,
55379
- /** Active program id/name, or null when none selected / unknown. */
55435
+ /** The appliance's operation state as reported; null when not known. */
55436
+ operationState: DishwasherOperationStateSchema.nullable(),
55437
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55380
55438
  program: string().nullable(),
55381
- /** Program tokens the hardware accepts — drives the UI selector. */
55439
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55440
+ selectedProgram: string().nullable(),
55441
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55382
55442
  availablePrograms: array(string()),
55383
- /** Minutes remaining on the active cycle, or null when not running. */
55384
- remainingMinutes: number().int().nonnegative().nullable(),
55443
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55444
+ remainingSeconds: number().int().nonnegative().nullable(),
55445
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55446
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55385
55447
  /** Cycle completion 0..100, or null when not applicable. */
55386
55448
  progressPercent: number().min(0).max(100).nullable(),
55387
- /** True when the door is reported open. */
55388
- doorOpen: boolean(),
55389
- /** True when remote start is allowed (door closed, power on, etc.). */
55390
- remoteStartAllowed: boolean(),
55391
- /** Main power / switched-on state. */
55392
- powerOn: boolean(),
55449
+ /** True when the door is reported open; null when the door state is not known. */
55450
+ doorOpen: boolean().nullable(),
55451
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55452
+ doorLocked: boolean().nullable(),
55453
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55454
+ remoteStartAllowed: boolean().nullable(),
55455
+ /** True when the appliance accepts remote control now; null when not known. */
55456
+ remoteControlActive: boolean().nullable(),
55457
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55458
+ localControlActive: boolean().nullable(),
55459
+ /** Main power / switched-on state; null when not known. */
55460
+ powerOn: boolean().nullable(),
55461
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55462
+ powerState: string().nullable(),
55393
55463
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55394
55464
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55395
- halfLoad: boolean(),
55396
- hygienePlus: boolean(),
55465
+ /** Option states: null when the appliance does not expose the option or has not said. */
55466
+ halfLoad: boolean().nullable(),
55467
+ hygienePlus: boolean().nullable(),
55397
55468
  /** Extra dry option when the appliance exposes it. */
55398
- extraDry: boolean(),
55469
+ extraDry: boolean().nullable(),
55399
55470
  /** Intensive zone (lower basket) when the appliance exposes it. */
55400
- intensiveZone: boolean(),
55471
+ intensiveZone: boolean().nullable(),
55401
55472
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55402
- varioSpeedPlus: boolean(),
55403
- /** Child lock (controls disabled on the appliance). */
55404
- childLock: boolean(),
55473
+ varioSpeedPlus: boolean().nullable(),
55474
+ /** Child lock (controls disabled on the appliance); null when not known. */
55475
+ childLock: boolean().nullable(),
55476
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55477
+ activeEvents: array(string()),
55478
+ /** Numeric error code when the appliance reports one; null otherwise. */
55405
55479
  errorCode: number().nullable(),
55480
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55406
55481
  errorLabel: string().nullable(),
55482
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55407
55483
  lastFetchedAt: number()
55408
55484
  });
55485
+ var DeviceIdSchema = number().int().nonnegative();
55486
+ /** A value a program option or setting can take. */
55487
+ var DishwasherValueSchema = union([
55488
+ boolean(),
55489
+ string(),
55490
+ number()
55491
+ ]);
55492
+ var DishwasherAccessSchema = _enum([
55493
+ "none",
55494
+ "read",
55495
+ "readWrite",
55496
+ "writeOnly",
55497
+ "readStatic"
55498
+ ]);
55499
+ /**
55500
+ * One option or setting the appliance declares, with the constraints its description
55501
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55502
+ */
55503
+ var DishwasherOptionDescriptorSchema = object({
55504
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55505
+ key: string(),
55506
+ /** Last segment of the key, for display. */
55507
+ name: string(),
55508
+ type: _enum([
55509
+ "boolean",
55510
+ "number",
55511
+ "enum",
55512
+ "string"
55513
+ ]),
55514
+ access: DishwasherAccessSchema,
55515
+ /** The appliance reports this entity as currently available. */
55516
+ available: boolean(),
55517
+ /** Unit the description declares for a number; null when it declares none. */
55518
+ unit: string().nullable(),
55519
+ min: number().nullable(),
55520
+ max: number().nullable(),
55521
+ step: number().nullable(),
55522
+ /** Allowed members of an enum; null for other types. */
55523
+ enumValues: array(string()).nullable(),
55524
+ defaultValue: DishwasherValueSchema.nullable()
55525
+ });
55526
+ var DishwasherProgramSchema = object({
55527
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55528
+ key: string(),
55529
+ name: string(),
55530
+ /** The appliance currently offers this program. */
55531
+ available: boolean(),
55532
+ /** The options this program lists, with the program-level access / availability / default. */
55533
+ options: array(DishwasherOptionDescriptorSchema)
55534
+ });
55535
+ var DishwasherOptionsSchema = object({
55536
+ availability: DishwasherAvailabilitySchema,
55537
+ /** What the appliance can be told to do, from the commands its description declares. */
55538
+ supportsStart: boolean(),
55539
+ supportsPause: boolean(),
55540
+ supportsResume: boolean(),
55541
+ supportsStop: boolean(),
55542
+ supportsPower: boolean(),
55543
+ /** Every program the description lists, with its options. */
55544
+ programs: array(DishwasherProgramSchema),
55545
+ /** Every option and setting entity the description lists (programs reference these by key). */
55546
+ options: array(DishwasherOptionDescriptorSchema)
55547
+ });
55409
55548
  var dishwasherCapability = {
55410
55549
  name: "dishwasher",
55411
55550
  scope: "device",
@@ -55413,86 +55552,102 @@ var dishwasherCapability = {
55413
55552
  mode: "singleton",
55414
55553
  deviceTypes: [DeviceType.Dishwasher],
55415
55554
  methods: {
55416
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55555
+ /**
55556
+ * Start a program. Without `program` the selected one starts. `options` are
55557
+ * option feature keys; each is checked against the program's constraints.
55558
+ */
55559
+ start: method(object({
55560
+ deviceId: DeviceIdSchema,
55561
+ program: string().min(1).optional(),
55562
+ options: record(string(), DishwasherValueSchema).optional()
55563
+ }), _void(), {
55417
55564
  kind: "mutation",
55418
55565
  auth: "protected"
55419
55566
  }),
55420
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55567
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55421
55568
  kind: "mutation",
55422
55569
  auth: "protected"
55423
55570
  }),
55424
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55571
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55572
+ kind: "mutation",
55573
+ auth: "protected"
55574
+ }),
55575
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55425
55576
  kind: "mutation",
55426
55577
  auth: "protected"
55427
55578
  }),
55579
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55428
55580
  setProgram: method(object({
55429
- deviceId: number().int().nonnegative(),
55581
+ deviceId: DeviceIdSchema,
55430
55582
  program: string().min(1)
55431
55583
  }), _void(), {
55432
55584
  kind: "mutation",
55433
55585
  auth: "protected"
55434
55586
  }),
55435
55587
  setPower: method(object({
55436
- deviceId: number().int().nonnegative(),
55588
+ deviceId: DeviceIdSchema,
55437
55589
  on: boolean()
55438
55590
  }), _void(), {
55439
55591
  kind: "mutation",
55440
55592
  auth: "protected"
55441
55593
  }),
55442
55594
  setHalfLoad: method(object({
55443
- deviceId: number().int().nonnegative(),
55595
+ deviceId: DeviceIdSchema,
55444
55596
  on: boolean()
55445
55597
  }), _void(), {
55446
55598
  kind: "mutation",
55447
55599
  auth: "protected"
55448
55600
  }),
55449
55601
  setHygienePlus: method(object({
55450
- deviceId: number().int().nonnegative(),
55602
+ deviceId: DeviceIdSchema,
55451
55603
  on: boolean()
55452
55604
  }), _void(), {
55453
55605
  kind: "mutation",
55454
55606
  auth: "protected"
55455
55607
  }),
55456
55608
  setExtraDry: method(object({
55457
- deviceId: number().int().nonnegative(),
55609
+ deviceId: DeviceIdSchema,
55458
55610
  on: boolean()
55459
55611
  }), _void(), {
55460
55612
  kind: "mutation",
55461
55613
  auth: "protected"
55462
55614
  }),
55463
55615
  setIntensiveZone: method(object({
55464
- deviceId: number().int().nonnegative(),
55616
+ deviceId: DeviceIdSchema,
55465
55617
  on: boolean()
55466
55618
  }), _void(), {
55467
55619
  kind: "mutation",
55468
55620
  auth: "protected"
55469
55621
  }),
55470
55622
  setVarioSpeedPlus: method(object({
55471
- deviceId: number().int().nonnegative(),
55623
+ deviceId: DeviceIdSchema,
55472
55624
  on: boolean()
55473
55625
  }), _void(), {
55474
55626
  kind: "mutation",
55475
55627
  auth: "protected"
55476
55628
  }),
55477
55629
  setChildLock: method(object({
55478
- deviceId: number().int().nonnegative(),
55630
+ deviceId: DeviceIdSchema,
55479
55631
  on: boolean()
55480
55632
  }), _void(), {
55481
55633
  kind: "mutation",
55482
55634
  auth: "protected"
55483
55635
  }),
55636
+ /**
55637
+ * Write any option or setting by feature key. Refused when the description does
55638
+ * not list it, it is not writable or not available now, or the value is outside
55639
+ * its declared range / members.
55640
+ */
55484
55641
  setOption: method(object({
55485
- deviceId: number().int().nonnegative(),
55642
+ deviceId: DeviceIdSchema,
55486
55643
  key: string().min(1),
55487
- value: union([
55488
- boolean(),
55489
- string(),
55490
- number()
55491
- ])
55644
+ value: DishwasherValueSchema
55492
55645
  }), _void(), {
55493
55646
  kind: "mutation",
55494
55647
  auth: "protected"
55495
- })
55648
+ }),
55649
+ /** What this appliance can do, from its own description — the UI is derived from it. */
55650
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55496
55651
  },
55497
55652
  status: {
55498
55653
  schema: DishwasherStatusSchema,
@@ -69441,6 +69596,12 @@ Object.freeze({
69441
69596
  addonId: null,
69442
69597
  access: "view"
69443
69598
  },
69599
+ "dishwasher.getOptions": {
69600
+ capName: "dishwasher",
69601
+ capScope: "device",
69602
+ addonId: null,
69603
+ access: "view"
69604
+ },
69444
69605
  "dishwasher.getStatus": {
69445
69606
  capName: "dishwasher",
69446
69607
  capScope: "device",
@@ -69453,6 +69614,12 @@ Object.freeze({
69453
69614
  addonId: null,
69454
69615
  access: "create"
69455
69616
  },
69617
+ "dishwasher.resume": {
69618
+ capName: "dishwasher",
69619
+ capScope: "device",
69620
+ addonId: null,
69621
+ access: "create"
69622
+ },
69456
69623
  "dishwasher.setChildLock": {
69457
69624
  capName: "dishwasher",
69458
69625
  capScope: "device",
@@ -73953,6 +74120,12 @@ Object.freeze({
73953
74120
  addonId: null,
73954
74121
  access: "view"
73955
74122
  },
74123
+ "storageMigration.moverClearance": {
74124
+ capName: "storage-migration",
74125
+ capScope: "system",
74126
+ addonId: null,
74127
+ access: "view"
74128
+ },
73956
74129
  "storageMigration.movers": {
73957
74130
  capName: "storage-migration",
73958
74131
  capScope: "system",
@@ -76146,6 +76319,11 @@ Object.freeze({
76146
76319
  form: "single",
76147
76320
  optional: false
76148
76321
  }],
76322
+ "dishwasher.getOptions": [{
76323
+ name: "deviceId",
76324
+ form: "single",
76325
+ optional: false
76326
+ }],
76149
76327
  "dishwasher.getStatus": [{
76150
76328
  name: "deviceId",
76151
76329
  form: "single",
@@ -76156,6 +76334,11 @@ Object.freeze({
76156
76334
  form: "single",
76157
76335
  optional: false
76158
76336
  }],
76337
+ "dishwasher.resume": [{
76338
+ name: "deviceId",
76339
+ form: "single",
76340
+ optional: false
76341
+ }],
76159
76342
  "dishwasher.setChildLock": [{
76160
76343
  name: "deviceId",
76161
76344
  form: "single",
@@ -78242,6 +78425,9 @@ new Map(Object.entries({
78242
78425
  "wrapper-update-available": "system",
78243
78426
  "backup-completed": "system",
78244
78427
  "export-completed": "system",
78428
+ "alert-critical": "system",
78429
+ "alert-error": "system",
78430
+ "alert-critical-resolved": "system",
78245
78431
  "storage-location-low": "system",
78246
78432
  "storage-location-critical": "system",
78247
78433
  "storage-location-ok": "system",
@@ -78366,6 +78552,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78366
78552
  "storage-location-ok"
78367
78553
  ]
78368
78554
  },
78555
+ {
78556
+ id: "alerts",
78557
+ family: "system",
78558
+ label: "Alerts",
78559
+ kinds: [
78560
+ "alert-critical",
78561
+ "alert-error",
78562
+ "alert-critical-resolved"
78563
+ ]
78564
+ },
78369
78565
  {
78370
78566
  id: "alarm",
78371
78567
  family: "alarm",
@@ -78410,6 +78606,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78410
78606
  return [[descriptor.kind, field]];
78411
78607
  })));
78412
78608
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78609
+ object({
78610
+ phase: _enum(["raised", "resolved"]),
78611
+ episodeId: string().min(1),
78612
+ alertId: string().min(1),
78613
+ severity: AlertSeveritySchema,
78614
+ category: string(),
78615
+ title: string(),
78616
+ message: string(),
78617
+ sourceType: string().optional(),
78618
+ sourceId: string().optional(),
78619
+ nodeId: string().optional(),
78620
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78621
+ actionUrl: string().optional(),
78622
+ at: number()
78623
+ });
78413
78624
  var RULE_BODY_ONLY = ["body"];
78414
78625
  var RULE_TEXT = ["title", "body"];
78415
78626
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78419,6 +78630,11 @@ var TANK = [
78419
78630
  "device-tank-full",
78420
78631
  "device-tank-normal"
78421
78632
  ];
78633
+ var ALERT_EPISODE = [
78634
+ "alert-critical",
78635
+ "alert-error",
78636
+ "alert-critical-resolved"
78637
+ ];
78422
78638
  var UPDATES = [
78423
78639
  "addon-update-available",
78424
78640
  "server-update-available",
@@ -78611,14 +78827,14 @@ var STATE_SUMMARY_VARS = [
78611
78827
  ([...RULE_TEXT], [...CONSUMABLE]),
78612
78828
  ([...RULE_TEXT], [...TANK]),
78613
78829
  [...RULE_TEXT],
78614
- ([...RULE_TEXT], [...UPDATES]),
78615
- ([...RULE_TEXT], [...UPDATES]),
78616
- [...RULE_TEXT],
78830
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78831
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78617
78832
  [...RULE_TEXT],
78618
78833
  [...RULE_TEXT],
78619
78834
  [...RULE_TEXT],
78620
78835
  [...RULE_TEXT],
78621
78836
  [...RULE_TEXT],
78837
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78622
78838
  [...RULE_TEXT],
78623
78839
  [...RULE_TEXT],
78624
78840
  [...RULE_TEXT],
@@ -78636,7 +78852,11 @@ var STATE_SUMMARY_VARS = [
78636
78852
  [...RULE_TEXT],
78637
78853
  [...RULE_TEXT],
78638
78854
  [...RULE_TEXT],
78639
- [...RULE_TEXT],
78855
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78856
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78857
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78858
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78859
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78640
78860
  [...RULE_TEXT],
78641
78861
  [...RULE_TEXT],
78642
78862
  [...RULE_TEXT],
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-BvOFi6PY.mjs
1
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -77,9 +77,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
77
77
  /**
78
78
  * The node's one-shot runner boot check (D877): planned runners against the
79
79
  * process service, `degraded` when any is failed, refused or missing. The
80
- * alert centre turns it into one alert and a direct critical push.
80
+ * alert centre turns it into one critical alert.
81
81
  */
82
82
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
83
+ /**
84
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
85
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
86
+ * centre sends no notification of its own: Notification Center turns this
87
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
88
+ * system-event kinds, and reconciles from the alerts store because a bus
89
+ * event may be dropped (D8, D11).
90
+ */
91
+ EventCategory["AlertEpisode"] = "alert.episode";
83
92
  EventCategory["AddonError"] = "addon.error";
84
93
  EventCategory["AddonPageReady"] = "addon.page-ready";
85
94
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5404,7 +5413,7 @@ var ZodIssueCode = {
5404
5413
  var ZodFirstPartyTypeKind;
5405
5414
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5406
5415
  //#endregion
5407
- //#region ../types/dist/sleep-BegKjwUu.mjs
5416
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5408
5417
  /**
5409
5418
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5410
5419
  * window to float samples (D455).
@@ -13181,7 +13190,14 @@ var AlertSeveritySchema = _enum([
13181
13190
  ]);
13182
13191
  var AlertActionSchema = object({
13183
13192
  label: string(),
13184
- href: string().optional()
13193
+ href: string().optional(),
13194
+ /**
13195
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13196
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13197
+ * start) — the browser must leave the SPA with a full navigation, because
13198
+ * the SPA has no such route and would bounce to the home page.
13199
+ */
13200
+ navigation: _enum(["app", "server"]).optional()
13185
13201
  });
13186
13202
  var AlertStatusSchema = _enum([
13187
13203
  "active",
@@ -42010,6 +42026,9 @@ var NcSystemEventKindSchema = _enum([
42010
42026
  "server-updated",
42011
42027
  "export-completed",
42012
42028
  "backup-completed",
42029
+ "alert-critical",
42030
+ "alert-error",
42031
+ "alert-critical-resolved",
42013
42032
  "camera-online",
42014
42033
  "camera-offline",
42015
42034
  "camera-disabled",
@@ -51086,7 +51105,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51086
51105
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51087
51106
  kind: "mutation",
51088
51107
  auth: "admin"
51089
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51108
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51109
+ clear: boolean(),
51110
+ repointLocationId: string().optional()
51111
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51090
51112
  kind: "mutation",
51091
51113
  auth: "admin"
51092
51114
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -55359,6 +55381,11 @@ onStatusChanged: { data: object({
55359
55381
  *
55360
55382
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
55361
55383
  * provider refreshes the slice on an interval and eagerly after commands.
55384
+ *
55385
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
55386
+ * nullable: `null` means "not known right now" (the appliance has not said,
55387
+ * the link is down, or the description does not carry it) and is never
55388
+ * rendered or exported as `false` / `0`. `availability` says why.
55362
55389
  */
55363
55390
  var DishwasherStateSchema = _enum([
55364
55391
  "idle",
@@ -55368,43 +55395,155 @@ var DishwasherStateSchema = _enum([
55368
55395
  "error",
55369
55396
  "unavailable"
55370
55397
  ]);
55398
+ /**
55399
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
55400
+ * view for compact surfaces; this is what the appliance said.
55401
+ */
55402
+ var DishwasherOperationStateSchema = _enum([
55403
+ "Inactive",
55404
+ "Ready",
55405
+ "DelayedStart",
55406
+ "Run",
55407
+ "Pause",
55408
+ "ActionRequired",
55409
+ "Finished",
55410
+ "Error",
55411
+ "Aborting"
55412
+ ]);
55413
+ /**
55414
+ * Why fields may be `null`:
55415
+ * - `available` — the link is up and the description is loaded;
55416
+ * - `offline` — the local link is down (values are unknown, not last-known);
55417
+ * - `description-missing` — the link is up but the appliance's description could not
55418
+ * be loaded, so its values cannot be decoded.
55419
+ */
55420
+ var DishwasherAvailabilitySchema = _enum([
55421
+ "available",
55422
+ "offline",
55423
+ "description-missing"
55424
+ ]);
55371
55425
  var DishwasherConsumableLevelSchema = _enum([
55372
55426
  "ok",
55373
55427
  "low",
55374
55428
  "empty"
55375
55429
  ]);
55376
55430
  var DishwasherStatusSchema = object({
55431
+ availability: DishwasherAvailabilitySchema,
55432
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
55377
55433
  state: DishwasherStateSchema,
55378
- /** Active program id/name, or null when none selected / unknown. */
55434
+ /** The appliance's operation state as reported; null when not known. */
55435
+ operationState: DishwasherOperationStateSchema.nullable(),
55436
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
55379
55437
  program: string().nullable(),
55380
- /** Program tokens the hardware accepts — drives the UI selector. */
55438
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
55439
+ selectedProgram: string().nullable(),
55440
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
55381
55441
  availablePrograms: array(string()),
55382
- /** Minutes remaining on the active cycle, or null when not running. */
55383
- remainingMinutes: number().int().nonnegative().nullable(),
55442
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
55443
+ remainingSeconds: number().int().nonnegative().nullable(),
55444
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
55445
+ delayedStartSeconds: number().int().nonnegative().nullable(),
55384
55446
  /** Cycle completion 0..100, or null when not applicable. */
55385
55447
  progressPercent: number().min(0).max(100).nullable(),
55386
- /** True when the door is reported open. */
55387
- doorOpen: boolean(),
55388
- /** True when remote start is allowed (door closed, power on, etc.). */
55389
- remoteStartAllowed: boolean(),
55390
- /** Main power / switched-on state. */
55391
- powerOn: boolean(),
55448
+ /** True when the door is reported open; null when the door state is not known. */
55449
+ doorOpen: boolean().nullable(),
55450
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
55451
+ doorLocked: boolean().nullable(),
55452
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
55453
+ remoteStartAllowed: boolean().nullable(),
55454
+ /** True when the appliance accepts remote control now; null when not known. */
55455
+ remoteControlActive: boolean().nullable(),
55456
+ /** True while somebody operates the appliance at its panel; null when not reported. */
55457
+ localControlActive: boolean().nullable(),
55458
+ /** Main power / switched-on state; null when not known. */
55459
+ powerOn: boolean().nullable(),
55460
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55461
+ powerState: string().nullable(),
55392
55462
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55393
55463
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55394
- halfLoad: boolean(),
55395
- hygienePlus: boolean(),
55464
+ /** Option states: null when the appliance does not expose the option or has not said. */
55465
+ halfLoad: boolean().nullable(),
55466
+ hygienePlus: boolean().nullable(),
55396
55467
  /** Extra dry option when the appliance exposes it. */
55397
- extraDry: boolean(),
55468
+ extraDry: boolean().nullable(),
55398
55469
  /** Intensive zone (lower basket) when the appliance exposes it. */
55399
- intensiveZone: boolean(),
55470
+ intensiveZone: boolean().nullable(),
55400
55471
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
55401
- varioSpeedPlus: boolean(),
55402
- /** Child lock (controls disabled on the appliance). */
55403
- childLock: boolean(),
55472
+ varioSpeedPlus: boolean().nullable(),
55473
+ /** Child lock (controls disabled on the appliance); null when not known. */
55474
+ childLock: boolean().nullable(),
55475
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
55476
+ activeEvents: array(string()),
55477
+ /** Numeric error code when the appliance reports one; null otherwise. */
55404
55478
  errorCode: number().nullable(),
55479
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
55405
55480
  errorLabel: string().nullable(),
55481
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
55406
55482
  lastFetchedAt: number()
55407
55483
  });
55484
+ var DeviceIdSchema = number().int().nonnegative();
55485
+ /** A value a program option or setting can take. */
55486
+ var DishwasherValueSchema = union([
55487
+ boolean(),
55488
+ string(),
55489
+ number()
55490
+ ]);
55491
+ var DishwasherAccessSchema = _enum([
55492
+ "none",
55493
+ "read",
55494
+ "readWrite",
55495
+ "writeOnly",
55496
+ "readStatic"
55497
+ ]);
55498
+ /**
55499
+ * One option or setting the appliance declares, with the constraints its description
55500
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
55501
+ */
55502
+ var DishwasherOptionDescriptorSchema = object({
55503
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
55504
+ key: string(),
55505
+ /** Last segment of the key, for display. */
55506
+ name: string(),
55507
+ type: _enum([
55508
+ "boolean",
55509
+ "number",
55510
+ "enum",
55511
+ "string"
55512
+ ]),
55513
+ access: DishwasherAccessSchema,
55514
+ /** The appliance reports this entity as currently available. */
55515
+ available: boolean(),
55516
+ /** Unit the description declares for a number; null when it declares none. */
55517
+ unit: string().nullable(),
55518
+ min: number().nullable(),
55519
+ max: number().nullable(),
55520
+ step: number().nullable(),
55521
+ /** Allowed members of an enum; null for other types. */
55522
+ enumValues: array(string()).nullable(),
55523
+ defaultValue: DishwasherValueSchema.nullable()
55524
+ });
55525
+ var DishwasherProgramSchema = object({
55526
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
55527
+ key: string(),
55528
+ name: string(),
55529
+ /** The appliance currently offers this program. */
55530
+ available: boolean(),
55531
+ /** The options this program lists, with the program-level access / availability / default. */
55532
+ options: array(DishwasherOptionDescriptorSchema)
55533
+ });
55534
+ var DishwasherOptionsSchema = object({
55535
+ availability: DishwasherAvailabilitySchema,
55536
+ /** What the appliance can be told to do, from the commands its description declares. */
55537
+ supportsStart: boolean(),
55538
+ supportsPause: boolean(),
55539
+ supportsResume: boolean(),
55540
+ supportsStop: boolean(),
55541
+ supportsPower: boolean(),
55542
+ /** Every program the description lists, with its options. */
55543
+ programs: array(DishwasherProgramSchema),
55544
+ /** Every option and setting entity the description lists (programs reference these by key). */
55545
+ options: array(DishwasherOptionDescriptorSchema)
55546
+ });
55408
55547
  var dishwasherCapability = {
55409
55548
  name: "dishwasher",
55410
55549
  scope: "device",
@@ -55412,86 +55551,102 @@ var dishwasherCapability = {
55412
55551
  mode: "singleton",
55413
55552
  deviceTypes: [DeviceType.Dishwasher],
55414
55553
  methods: {
55415
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55554
+ /**
55555
+ * Start a program. Without `program` the selected one starts. `options` are
55556
+ * option feature keys; each is checked against the program's constraints.
55557
+ */
55558
+ start: method(object({
55559
+ deviceId: DeviceIdSchema,
55560
+ program: string().min(1).optional(),
55561
+ options: record(string(), DishwasherValueSchema).optional()
55562
+ }), _void(), {
55416
55563
  kind: "mutation",
55417
55564
  auth: "protected"
55418
55565
  }),
55419
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55566
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
55420
55567
  kind: "mutation",
55421
55568
  auth: "protected"
55422
55569
  }),
55423
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
55570
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
55571
+ kind: "mutation",
55572
+ auth: "protected"
55573
+ }),
55574
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
55424
55575
  kind: "mutation",
55425
55576
  auth: "protected"
55426
55577
  }),
55578
+ /** Select (not start) a program; refused when the appliance does not offer it. */
55427
55579
  setProgram: method(object({
55428
- deviceId: number().int().nonnegative(),
55580
+ deviceId: DeviceIdSchema,
55429
55581
  program: string().min(1)
55430
55582
  }), _void(), {
55431
55583
  kind: "mutation",
55432
55584
  auth: "protected"
55433
55585
  }),
55434
55586
  setPower: method(object({
55435
- deviceId: number().int().nonnegative(),
55587
+ deviceId: DeviceIdSchema,
55436
55588
  on: boolean()
55437
55589
  }), _void(), {
55438
55590
  kind: "mutation",
55439
55591
  auth: "protected"
55440
55592
  }),
55441
55593
  setHalfLoad: method(object({
55442
- deviceId: number().int().nonnegative(),
55594
+ deviceId: DeviceIdSchema,
55443
55595
  on: boolean()
55444
55596
  }), _void(), {
55445
55597
  kind: "mutation",
55446
55598
  auth: "protected"
55447
55599
  }),
55448
55600
  setHygienePlus: method(object({
55449
- deviceId: number().int().nonnegative(),
55601
+ deviceId: DeviceIdSchema,
55450
55602
  on: boolean()
55451
55603
  }), _void(), {
55452
55604
  kind: "mutation",
55453
55605
  auth: "protected"
55454
55606
  }),
55455
55607
  setExtraDry: method(object({
55456
- deviceId: number().int().nonnegative(),
55608
+ deviceId: DeviceIdSchema,
55457
55609
  on: boolean()
55458
55610
  }), _void(), {
55459
55611
  kind: "mutation",
55460
55612
  auth: "protected"
55461
55613
  }),
55462
55614
  setIntensiveZone: method(object({
55463
- deviceId: number().int().nonnegative(),
55615
+ deviceId: DeviceIdSchema,
55464
55616
  on: boolean()
55465
55617
  }), _void(), {
55466
55618
  kind: "mutation",
55467
55619
  auth: "protected"
55468
55620
  }),
55469
55621
  setVarioSpeedPlus: method(object({
55470
- deviceId: number().int().nonnegative(),
55622
+ deviceId: DeviceIdSchema,
55471
55623
  on: boolean()
55472
55624
  }), _void(), {
55473
55625
  kind: "mutation",
55474
55626
  auth: "protected"
55475
55627
  }),
55476
55628
  setChildLock: method(object({
55477
- deviceId: number().int().nonnegative(),
55629
+ deviceId: DeviceIdSchema,
55478
55630
  on: boolean()
55479
55631
  }), _void(), {
55480
55632
  kind: "mutation",
55481
55633
  auth: "protected"
55482
55634
  }),
55635
+ /**
55636
+ * Write any option or setting by feature key. Refused when the description does
55637
+ * not list it, it is not writable or not available now, or the value is outside
55638
+ * its declared range / members.
55639
+ */
55483
55640
  setOption: method(object({
55484
- deviceId: number().int().nonnegative(),
55641
+ deviceId: DeviceIdSchema,
55485
55642
  key: string().min(1),
55486
- value: union([
55487
- boolean(),
55488
- string(),
55489
- number()
55490
- ])
55643
+ value: DishwasherValueSchema
55491
55644
  }), _void(), {
55492
55645
  kind: "mutation",
55493
55646
  auth: "protected"
55494
- })
55647
+ }),
55648
+ /** What this appliance can do, from its own description — the UI is derived from it. */
55649
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
55495
55650
  },
55496
55651
  status: {
55497
55652
  schema: DishwasherStatusSchema,
@@ -69440,6 +69595,12 @@ Object.freeze({
69440
69595
  addonId: null,
69441
69596
  access: "view"
69442
69597
  },
69598
+ "dishwasher.getOptions": {
69599
+ capName: "dishwasher",
69600
+ capScope: "device",
69601
+ addonId: null,
69602
+ access: "view"
69603
+ },
69443
69604
  "dishwasher.getStatus": {
69444
69605
  capName: "dishwasher",
69445
69606
  capScope: "device",
@@ -69452,6 +69613,12 @@ Object.freeze({
69452
69613
  addonId: null,
69453
69614
  access: "create"
69454
69615
  },
69616
+ "dishwasher.resume": {
69617
+ capName: "dishwasher",
69618
+ capScope: "device",
69619
+ addonId: null,
69620
+ access: "create"
69621
+ },
69455
69622
  "dishwasher.setChildLock": {
69456
69623
  capName: "dishwasher",
69457
69624
  capScope: "device",
@@ -73952,6 +74119,12 @@ Object.freeze({
73952
74119
  addonId: null,
73953
74120
  access: "view"
73954
74121
  },
74122
+ "storageMigration.moverClearance": {
74123
+ capName: "storage-migration",
74124
+ capScope: "system",
74125
+ addonId: null,
74126
+ access: "view"
74127
+ },
73955
74128
  "storageMigration.movers": {
73956
74129
  capName: "storage-migration",
73957
74130
  capScope: "system",
@@ -76145,6 +76318,11 @@ Object.freeze({
76145
76318
  form: "single",
76146
76319
  optional: false
76147
76320
  }],
76321
+ "dishwasher.getOptions": [{
76322
+ name: "deviceId",
76323
+ form: "single",
76324
+ optional: false
76325
+ }],
76148
76326
  "dishwasher.getStatus": [{
76149
76327
  name: "deviceId",
76150
76328
  form: "single",
@@ -76155,6 +76333,11 @@ Object.freeze({
76155
76333
  form: "single",
76156
76334
  optional: false
76157
76335
  }],
76336
+ "dishwasher.resume": [{
76337
+ name: "deviceId",
76338
+ form: "single",
76339
+ optional: false
76340
+ }],
76158
76341
  "dishwasher.setChildLock": [{
76159
76342
  name: "deviceId",
76160
76343
  form: "single",
@@ -78241,6 +78424,9 @@ new Map(Object.entries({
78241
78424
  "wrapper-update-available": "system",
78242
78425
  "backup-completed": "system",
78243
78426
  "export-completed": "system",
78427
+ "alert-critical": "system",
78428
+ "alert-error": "system",
78429
+ "alert-critical-resolved": "system",
78244
78430
  "storage-location-low": "system",
78245
78431
  "storage-location-critical": "system",
78246
78432
  "storage-location-ok": "system",
@@ -78365,6 +78551,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78365
78551
  "storage-location-ok"
78366
78552
  ]
78367
78553
  },
78554
+ {
78555
+ id: "alerts",
78556
+ family: "system",
78557
+ label: "Alerts",
78558
+ kinds: [
78559
+ "alert-critical",
78560
+ "alert-error",
78561
+ "alert-critical-resolved"
78562
+ ]
78563
+ },
78368
78564
  {
78369
78565
  id: "alarm",
78370
78566
  family: "alarm",
@@ -78409,6 +78605,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78409
78605
  return [[descriptor.kind, field]];
78410
78606
  })));
78411
78607
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78608
+ object({
78609
+ phase: _enum(["raised", "resolved"]),
78610
+ episodeId: string().min(1),
78611
+ alertId: string().min(1),
78612
+ severity: AlertSeveritySchema,
78613
+ category: string(),
78614
+ title: string(),
78615
+ message: string(),
78616
+ sourceType: string().optional(),
78617
+ sourceId: string().optional(),
78618
+ nodeId: string().optional(),
78619
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78620
+ actionUrl: string().optional(),
78621
+ at: number()
78622
+ });
78412
78623
  var RULE_BODY_ONLY = ["body"];
78413
78624
  var RULE_TEXT = ["title", "body"];
78414
78625
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78418,6 +78629,11 @@ var TANK = [
78418
78629
  "device-tank-full",
78419
78630
  "device-tank-normal"
78420
78631
  ];
78632
+ var ALERT_EPISODE = [
78633
+ "alert-critical",
78634
+ "alert-error",
78635
+ "alert-critical-resolved"
78636
+ ];
78421
78637
  var UPDATES = [
78422
78638
  "addon-update-available",
78423
78639
  "server-update-available",
@@ -78610,14 +78826,14 @@ var STATE_SUMMARY_VARS = [
78610
78826
  ([...RULE_TEXT], [...CONSUMABLE]),
78611
78827
  ([...RULE_TEXT], [...TANK]),
78612
78828
  [...RULE_TEXT],
78613
- ([...RULE_TEXT], [...UPDATES]),
78614
- ([...RULE_TEXT], [...UPDATES]),
78615
- [...RULE_TEXT],
78829
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78830
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78616
78831
  [...RULE_TEXT],
78617
78832
  [...RULE_TEXT],
78618
78833
  [...RULE_TEXT],
78619
78834
  [...RULE_TEXT],
78620
78835
  [...RULE_TEXT],
78836
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78621
78837
  [...RULE_TEXT],
78622
78838
  [...RULE_TEXT],
78623
78839
  [...RULE_TEXT],
@@ -78635,7 +78851,11 @@ var STATE_SUMMARY_VARS = [
78635
78851
  [...RULE_TEXT],
78636
78852
  [...RULE_TEXT],
78637
78853
  [...RULE_TEXT],
78638
- [...RULE_TEXT],
78854
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78855
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78856
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78857
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78858
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78639
78859
  [...RULE_TEXT],
78640
78860
  [...RULE_TEXT],
78641
78861
  [...RULE_TEXT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unraid",
3
- "version": "0.2.128",
3
+ "version": "0.2.129",
4
4
  "description": "Unraid device-provider addon for CamStack — one Container per Unraid instance fanning out array, disk, docker and notification entities",
5
5
  "keywords": [
6
6
  "camstack",