@camstack/addon-provider-hikvision 1.2.154 → 1.2.155

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
@@ -34,7 +34,7 @@ let node_os = require("node:os");
34
34
  let node_net = require("node:net");
35
35
  let node_http = require("node:http");
36
36
  let node_https = require("node:https");
37
- //#region ../types/dist/event-category-BvOFi6PY.mjs
37
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -113,9 +113,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
113
113
  /**
114
114
  * The node's one-shot runner boot check (D877): planned runners against the
115
115
  * process service, `degraded` when any is failed, refused or missing. The
116
- * alert centre turns it into one alert and a direct critical push.
116
+ * alert centre turns it into one critical alert.
117
117
  */
118
118
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
119
+ /**
120
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
121
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
122
+ * centre sends no notification of its own: Notification Center turns this
123
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
124
+ * system-event kinds, and reconciles from the alerts store because a bus
125
+ * event may be dropped (D8, D11).
126
+ */
127
+ EventCategory["AlertEpisode"] = "alert.episode";
119
128
  EventCategory["AddonError"] = "addon.error";
120
129
  EventCategory["AddonPageReady"] = "addon.page-ready";
121
130
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5440,7 +5449,7 @@ var ZodIssueCode = {
5440
5449
  var ZodFirstPartyTypeKind;
5441
5450
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5442
5451
  //#endregion
5443
- //#region ../types/dist/sleep-BegKjwUu.mjs
5452
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5444
5453
  /**
5445
5454
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5446
5455
  * window to float samples (D455).
@@ -13520,7 +13529,14 @@ var AlertSeveritySchema = _enum([
13520
13529
  ]);
13521
13530
  var AlertActionSchema = object({
13522
13531
  label: string(),
13523
- href: string().optional()
13532
+ href: string().optional(),
13533
+ /**
13534
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13535
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13536
+ * start) — the browser must leave the SPA with a full navigation, because
13537
+ * the SPA has no such route and would bounce to the home page.
13538
+ */
13539
+ navigation: _enum(["app", "server"]).optional()
13524
13540
  });
13525
13541
  var AlertStatusSchema = _enum([
13526
13542
  "active",
@@ -42368,6 +42384,9 @@ var NcSystemEventKindSchema = _enum([
42368
42384
  "server-updated",
42369
42385
  "export-completed",
42370
42386
  "backup-completed",
42387
+ "alert-critical",
42388
+ "alert-error",
42389
+ "alert-critical-resolved",
42371
42390
  "camera-online",
42372
42391
  "camera-offline",
42373
42392
  "camera-disabled",
@@ -51548,7 +51567,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51548
51567
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51549
51568
  kind: "mutation",
51550
51569
  auth: "admin"
51551
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51570
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51571
+ clear: boolean(),
51572
+ repointLocationId: string().optional()
51573
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51552
51574
  kind: "mutation",
51553
51575
  auth: "admin"
51554
51576
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -56222,6 +56244,11 @@ onStatusChanged: { data: object({
56222
56244
  *
56223
56245
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
56224
56246
  * provider refreshes the slice on an interval and eagerly after commands.
56247
+ *
56248
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
56249
+ * nullable: `null` means "not known right now" (the appliance has not said,
56250
+ * the link is down, or the description does not carry it) and is never
56251
+ * rendered or exported as `false` / `0`. `availability` says why.
56225
56252
  */
56226
56253
  var DishwasherStateSchema = _enum([
56227
56254
  "idle",
@@ -56231,43 +56258,155 @@ var DishwasherStateSchema = _enum([
56231
56258
  "error",
56232
56259
  "unavailable"
56233
56260
  ]);
56261
+ /**
56262
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
56263
+ * view for compact surfaces; this is what the appliance said.
56264
+ */
56265
+ var DishwasherOperationStateSchema = _enum([
56266
+ "Inactive",
56267
+ "Ready",
56268
+ "DelayedStart",
56269
+ "Run",
56270
+ "Pause",
56271
+ "ActionRequired",
56272
+ "Finished",
56273
+ "Error",
56274
+ "Aborting"
56275
+ ]);
56276
+ /**
56277
+ * Why fields may be `null`:
56278
+ * - `available` — the link is up and the description is loaded;
56279
+ * - `offline` — the local link is down (values are unknown, not last-known);
56280
+ * - `description-missing` — the link is up but the appliance's description could not
56281
+ * be loaded, so its values cannot be decoded.
56282
+ */
56283
+ var DishwasherAvailabilitySchema = _enum([
56284
+ "available",
56285
+ "offline",
56286
+ "description-missing"
56287
+ ]);
56234
56288
  var DishwasherConsumableLevelSchema = _enum([
56235
56289
  "ok",
56236
56290
  "low",
56237
56291
  "empty"
56238
56292
  ]);
56239
56293
  var DishwasherStatusSchema = object({
56294
+ availability: DishwasherAvailabilitySchema,
56295
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
56240
56296
  state: DishwasherStateSchema,
56241
- /** Active program id/name, or null when none selected / unknown. */
56297
+ /** The appliance's operation state as reported; null when not known. */
56298
+ operationState: DishwasherOperationStateSchema.nullable(),
56299
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
56242
56300
  program: string().nullable(),
56243
- /** Program tokens the hardware accepts — drives the UI selector. */
56301
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
56302
+ selectedProgram: string().nullable(),
56303
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
56244
56304
  availablePrograms: array(string()),
56245
- /** Minutes remaining on the active cycle, or null when not running. */
56246
- remainingMinutes: number().int().nonnegative().nullable(),
56305
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
56306
+ remainingSeconds: number().int().nonnegative().nullable(),
56307
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
56308
+ delayedStartSeconds: number().int().nonnegative().nullable(),
56247
56309
  /** Cycle completion 0..100, or null when not applicable. */
56248
56310
  progressPercent: number().min(0).max(100).nullable(),
56249
- /** True when the door is reported open. */
56250
- doorOpen: boolean(),
56251
- /** True when remote start is allowed (door closed, power on, etc.). */
56252
- remoteStartAllowed: boolean(),
56253
- /** Main power / switched-on state. */
56254
- powerOn: boolean(),
56311
+ /** True when the door is reported open; null when the door state is not known. */
56312
+ doorOpen: boolean().nullable(),
56313
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
56314
+ doorLocked: boolean().nullable(),
56315
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
56316
+ remoteStartAllowed: boolean().nullable(),
56317
+ /** True when the appliance accepts remote control now; null when not known. */
56318
+ remoteControlActive: boolean().nullable(),
56319
+ /** True while somebody operates the appliance at its panel; null when not reported. */
56320
+ localControlActive: boolean().nullable(),
56321
+ /** Main power / switched-on state; null when not known. */
56322
+ powerOn: boolean().nullable(),
56323
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
56324
+ powerState: string().nullable(),
56255
56325
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
56256
56326
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56257
- halfLoad: boolean(),
56258
- hygienePlus: boolean(),
56327
+ /** Option states: null when the appliance does not expose the option or has not said. */
56328
+ halfLoad: boolean().nullable(),
56329
+ hygienePlus: boolean().nullable(),
56259
56330
  /** Extra dry option when the appliance exposes it. */
56260
- extraDry: boolean(),
56331
+ extraDry: boolean().nullable(),
56261
56332
  /** Intensive zone (lower basket) when the appliance exposes it. */
56262
- intensiveZone: boolean(),
56333
+ intensiveZone: boolean().nullable(),
56263
56334
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56264
- varioSpeedPlus: boolean(),
56265
- /** Child lock (controls disabled on the appliance). */
56266
- childLock: boolean(),
56335
+ varioSpeedPlus: boolean().nullable(),
56336
+ /** Child lock (controls disabled on the appliance); null when not known. */
56337
+ childLock: boolean().nullable(),
56338
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
56339
+ activeEvents: array(string()),
56340
+ /** Numeric error code when the appliance reports one; null otherwise. */
56267
56341
  errorCode: number().nullable(),
56342
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
56268
56343
  errorLabel: string().nullable(),
56344
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
56269
56345
  lastFetchedAt: number()
56270
56346
  });
56347
+ var DeviceIdSchema = number().int().nonnegative();
56348
+ /** A value a program option or setting can take. */
56349
+ var DishwasherValueSchema = union([
56350
+ boolean(),
56351
+ string(),
56352
+ number()
56353
+ ]);
56354
+ var DishwasherAccessSchema = _enum([
56355
+ "none",
56356
+ "read",
56357
+ "readWrite",
56358
+ "writeOnly",
56359
+ "readStatic"
56360
+ ]);
56361
+ /**
56362
+ * One option or setting the appliance declares, with the constraints its description
56363
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
56364
+ */
56365
+ var DishwasherOptionDescriptorSchema = object({
56366
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
56367
+ key: string(),
56368
+ /** Last segment of the key, for display. */
56369
+ name: string(),
56370
+ type: _enum([
56371
+ "boolean",
56372
+ "number",
56373
+ "enum",
56374
+ "string"
56375
+ ]),
56376
+ access: DishwasherAccessSchema,
56377
+ /** The appliance reports this entity as currently available. */
56378
+ available: boolean(),
56379
+ /** Unit the description declares for a number; null when it declares none. */
56380
+ unit: string().nullable(),
56381
+ min: number().nullable(),
56382
+ max: number().nullable(),
56383
+ step: number().nullable(),
56384
+ /** Allowed members of an enum; null for other types. */
56385
+ enumValues: array(string()).nullable(),
56386
+ defaultValue: DishwasherValueSchema.nullable()
56387
+ });
56388
+ var DishwasherProgramSchema = object({
56389
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
56390
+ key: string(),
56391
+ name: string(),
56392
+ /** The appliance currently offers this program. */
56393
+ available: boolean(),
56394
+ /** The options this program lists, with the program-level access / availability / default. */
56395
+ options: array(DishwasherOptionDescriptorSchema)
56396
+ });
56397
+ var DishwasherOptionsSchema = object({
56398
+ availability: DishwasherAvailabilitySchema,
56399
+ /** What the appliance can be told to do, from the commands its description declares. */
56400
+ supportsStart: boolean(),
56401
+ supportsPause: boolean(),
56402
+ supportsResume: boolean(),
56403
+ supportsStop: boolean(),
56404
+ supportsPower: boolean(),
56405
+ /** Every program the description lists, with its options. */
56406
+ programs: array(DishwasherProgramSchema),
56407
+ /** Every option and setting entity the description lists (programs reference these by key). */
56408
+ options: array(DishwasherOptionDescriptorSchema)
56409
+ });
56271
56410
  var dishwasherCapability = {
56272
56411
  name: "dishwasher",
56273
56412
  scope: "device",
@@ -56275,86 +56414,102 @@ var dishwasherCapability = {
56275
56414
  mode: "singleton",
56276
56415
  deviceTypes: [DeviceType.Dishwasher],
56277
56416
  methods: {
56278
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56417
+ /**
56418
+ * Start a program. Without `program` the selected one starts. `options` are
56419
+ * option feature keys; each is checked against the program's constraints.
56420
+ */
56421
+ start: method(object({
56422
+ deviceId: DeviceIdSchema,
56423
+ program: string().min(1).optional(),
56424
+ options: record(string(), DishwasherValueSchema).optional()
56425
+ }), _void(), {
56279
56426
  kind: "mutation",
56280
56427
  auth: "protected"
56281
56428
  }),
56282
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56429
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
56283
56430
  kind: "mutation",
56284
56431
  auth: "protected"
56285
56432
  }),
56286
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56433
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
56434
+ kind: "mutation",
56435
+ auth: "protected"
56436
+ }),
56437
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
56287
56438
  kind: "mutation",
56288
56439
  auth: "protected"
56289
56440
  }),
56441
+ /** Select (not start) a program; refused when the appliance does not offer it. */
56290
56442
  setProgram: method(object({
56291
- deviceId: number().int().nonnegative(),
56443
+ deviceId: DeviceIdSchema,
56292
56444
  program: string().min(1)
56293
56445
  }), _void(), {
56294
56446
  kind: "mutation",
56295
56447
  auth: "protected"
56296
56448
  }),
56297
56449
  setPower: method(object({
56298
- deviceId: number().int().nonnegative(),
56450
+ deviceId: DeviceIdSchema,
56299
56451
  on: boolean()
56300
56452
  }), _void(), {
56301
56453
  kind: "mutation",
56302
56454
  auth: "protected"
56303
56455
  }),
56304
56456
  setHalfLoad: method(object({
56305
- deviceId: number().int().nonnegative(),
56457
+ deviceId: DeviceIdSchema,
56306
56458
  on: boolean()
56307
56459
  }), _void(), {
56308
56460
  kind: "mutation",
56309
56461
  auth: "protected"
56310
56462
  }),
56311
56463
  setHygienePlus: method(object({
56312
- deviceId: number().int().nonnegative(),
56464
+ deviceId: DeviceIdSchema,
56313
56465
  on: boolean()
56314
56466
  }), _void(), {
56315
56467
  kind: "mutation",
56316
56468
  auth: "protected"
56317
56469
  }),
56318
56470
  setExtraDry: method(object({
56319
- deviceId: number().int().nonnegative(),
56471
+ deviceId: DeviceIdSchema,
56320
56472
  on: boolean()
56321
56473
  }), _void(), {
56322
56474
  kind: "mutation",
56323
56475
  auth: "protected"
56324
56476
  }),
56325
56477
  setIntensiveZone: method(object({
56326
- deviceId: number().int().nonnegative(),
56478
+ deviceId: DeviceIdSchema,
56327
56479
  on: boolean()
56328
56480
  }), _void(), {
56329
56481
  kind: "mutation",
56330
56482
  auth: "protected"
56331
56483
  }),
56332
56484
  setVarioSpeedPlus: method(object({
56333
- deviceId: number().int().nonnegative(),
56485
+ deviceId: DeviceIdSchema,
56334
56486
  on: boolean()
56335
56487
  }), _void(), {
56336
56488
  kind: "mutation",
56337
56489
  auth: "protected"
56338
56490
  }),
56339
56491
  setChildLock: method(object({
56340
- deviceId: number().int().nonnegative(),
56492
+ deviceId: DeviceIdSchema,
56341
56493
  on: boolean()
56342
56494
  }), _void(), {
56343
56495
  kind: "mutation",
56344
56496
  auth: "protected"
56345
56497
  }),
56498
+ /**
56499
+ * Write any option or setting by feature key. Refused when the description does
56500
+ * not list it, it is not writable or not available now, or the value is outside
56501
+ * its declared range / members.
56502
+ */
56346
56503
  setOption: method(object({
56347
- deviceId: number().int().nonnegative(),
56504
+ deviceId: DeviceIdSchema,
56348
56505
  key: string().min(1),
56349
- value: union([
56350
- boolean(),
56351
- string(),
56352
- number()
56353
- ])
56506
+ value: DishwasherValueSchema
56354
56507
  }), _void(), {
56355
56508
  kind: "mutation",
56356
56509
  auth: "protected"
56357
- })
56510
+ }),
56511
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56512
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
56358
56513
  },
56359
56514
  status: {
56360
56515
  schema: DishwasherStatusSchema,
@@ -70883,6 +71038,12 @@ Object.freeze({
70883
71038
  addonId: null,
70884
71039
  access: "view"
70885
71040
  },
71041
+ "dishwasher.getOptions": {
71042
+ capName: "dishwasher",
71043
+ capScope: "device",
71044
+ addonId: null,
71045
+ access: "view"
71046
+ },
70886
71047
  "dishwasher.getStatus": {
70887
71048
  capName: "dishwasher",
70888
71049
  capScope: "device",
@@ -70895,6 +71056,12 @@ Object.freeze({
70895
71056
  addonId: null,
70896
71057
  access: "create"
70897
71058
  },
71059
+ "dishwasher.resume": {
71060
+ capName: "dishwasher",
71061
+ capScope: "device",
71062
+ addonId: null,
71063
+ access: "create"
71064
+ },
70898
71065
  "dishwasher.setChildLock": {
70899
71066
  capName: "dishwasher",
70900
71067
  capScope: "device",
@@ -75395,6 +75562,12 @@ Object.freeze({
75395
75562
  addonId: null,
75396
75563
  access: "view"
75397
75564
  },
75565
+ "storageMigration.moverClearance": {
75566
+ capName: "storage-migration",
75567
+ capScope: "system",
75568
+ addonId: null,
75569
+ access: "view"
75570
+ },
75398
75571
  "storageMigration.movers": {
75399
75572
  capName: "storage-migration",
75400
75573
  capScope: "system",
@@ -77806,6 +77979,11 @@ Object.freeze({
77806
77979
  form: "single",
77807
77980
  optional: false
77808
77981
  }],
77982
+ "dishwasher.getOptions": [{
77983
+ name: "deviceId",
77984
+ form: "single",
77985
+ optional: false
77986
+ }],
77809
77987
  "dishwasher.getStatus": [{
77810
77988
  name: "deviceId",
77811
77989
  form: "single",
@@ -77816,6 +77994,11 @@ Object.freeze({
77816
77994
  form: "single",
77817
77995
  optional: false
77818
77996
  }],
77997
+ "dishwasher.resume": [{
77998
+ name: "deviceId",
77999
+ form: "single",
78000
+ optional: false
78001
+ }],
77819
78002
  "dishwasher.setChildLock": [{
77820
78003
  name: "deviceId",
77821
78004
  form: "single",
@@ -79902,6 +80085,9 @@ new Map(Object.entries({
79902
80085
  "wrapper-update-available": "system",
79903
80086
  "backup-completed": "system",
79904
80087
  "export-completed": "system",
80088
+ "alert-critical": "system",
80089
+ "alert-error": "system",
80090
+ "alert-critical-resolved": "system",
79905
80091
  "storage-location-low": "system",
79906
80092
  "storage-location-critical": "system",
79907
80093
  "storage-location-ok": "system",
@@ -80026,6 +80212,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
80026
80212
  "storage-location-ok"
80027
80213
  ]
80028
80214
  },
80215
+ {
80216
+ id: "alerts",
80217
+ family: "system",
80218
+ label: "Alerts",
80219
+ kinds: [
80220
+ "alert-critical",
80221
+ "alert-error",
80222
+ "alert-critical-resolved"
80223
+ ]
80224
+ },
80029
80225
  {
80030
80226
  id: "alarm",
80031
80227
  family: "alarm",
@@ -80070,6 +80266,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
80070
80266
  return [[descriptor.kind, field]];
80071
80267
  })));
80072
80268
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
80269
+ object({
80270
+ phase: _enum(["raised", "resolved"]),
80271
+ episodeId: string().min(1),
80272
+ alertId: string().min(1),
80273
+ severity: AlertSeveritySchema,
80274
+ category: string(),
80275
+ title: string(),
80276
+ message: string(),
80277
+ sourceType: string().optional(),
80278
+ sourceId: string().optional(),
80279
+ nodeId: string().optional(),
80280
+ /** The alert's own action link (where the operator acts on it), when it has one. */
80281
+ actionUrl: string().optional(),
80282
+ at: number()
80283
+ });
80073
80284
  var RULE_BODY_ONLY = ["body"];
80074
80285
  var RULE_TEXT = ["title", "body"];
80075
80286
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -80079,6 +80290,11 @@ var TANK = [
80079
80290
  "device-tank-full",
80080
80291
  "device-tank-normal"
80081
80292
  ];
80293
+ var ALERT_EPISODE = [
80294
+ "alert-critical",
80295
+ "alert-error",
80296
+ "alert-critical-resolved"
80297
+ ];
80082
80298
  var UPDATES = [
80083
80299
  "addon-update-available",
80084
80300
  "server-update-available",
@@ -80271,14 +80487,14 @@ var STATE_SUMMARY_VARS = [
80271
80487
  ([...RULE_TEXT], [...CONSUMABLE]),
80272
80488
  ([...RULE_TEXT], [...TANK]),
80273
80489
  [...RULE_TEXT],
80274
- ([...RULE_TEXT], [...UPDATES]),
80275
- ([...RULE_TEXT], [...UPDATES]),
80276
- [...RULE_TEXT],
80490
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
80491
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
80277
80492
  [...RULE_TEXT],
80278
80493
  [...RULE_TEXT],
80279
80494
  [...RULE_TEXT],
80280
80495
  [...RULE_TEXT],
80281
80496
  [...RULE_TEXT],
80497
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80282
80498
  [...RULE_TEXT],
80283
80499
  [...RULE_TEXT],
80284
80500
  [...RULE_TEXT],
@@ -80296,7 +80512,11 @@ var STATE_SUMMARY_VARS = [
80296
80512
  [...RULE_TEXT],
80297
80513
  [...RULE_TEXT],
80298
80514
  [...RULE_TEXT],
80299
- [...RULE_TEXT],
80515
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80516
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80517
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80518
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80519
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80300
80520
  [...RULE_TEXT],
80301
80521
  [...RULE_TEXT],
80302
80522
  [...RULE_TEXT],
package/dist/addon.mjs CHANGED
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
13
13
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  //#endregion
16
- //#region ../types/dist/event-category-BvOFi6PY.mjs
16
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -92,9 +92,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
92
92
  /**
93
93
  * The node's one-shot runner boot check (D877): planned runners against the
94
94
  * process service, `degraded` when any is failed, refused or missing. The
95
- * alert centre turns it into one alert and a direct critical push.
95
+ * alert centre turns it into one critical alert.
96
96
  */
97
97
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
98
+ /**
99
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
100
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
101
+ * centre sends no notification of its own: Notification Center turns this
102
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
103
+ * system-event kinds, and reconciles from the alerts store because a bus
104
+ * event may be dropped (D8, D11).
105
+ */
106
+ EventCategory["AlertEpisode"] = "alert.episode";
98
107
  EventCategory["AddonError"] = "addon.error";
99
108
  EventCategory["AddonPageReady"] = "addon.page-ready";
100
109
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5419,7 +5428,7 @@ var ZodIssueCode = {
5419
5428
  var ZodFirstPartyTypeKind;
5420
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5421
5430
  //#endregion
5422
- //#region ../types/dist/sleep-BegKjwUu.mjs
5431
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5423
5432
  /**
5424
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5425
5434
  * window to float samples (D455).
@@ -13499,7 +13508,14 @@ var AlertSeveritySchema = _enum([
13499
13508
  ]);
13500
13509
  var AlertActionSchema = object({
13501
13510
  label: string(),
13502
- href: string().optional()
13511
+ href: string().optional(),
13512
+ /**
13513
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13514
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13515
+ * start) — the browser must leave the SPA with a full navigation, because
13516
+ * the SPA has no such route and would bounce to the home page.
13517
+ */
13518
+ navigation: _enum(["app", "server"]).optional()
13503
13519
  });
13504
13520
  var AlertStatusSchema = _enum([
13505
13521
  "active",
@@ -42347,6 +42363,9 @@ var NcSystemEventKindSchema = _enum([
42347
42363
  "server-updated",
42348
42364
  "export-completed",
42349
42365
  "backup-completed",
42366
+ "alert-critical",
42367
+ "alert-error",
42368
+ "alert-critical-resolved",
42350
42369
  "camera-online",
42351
42370
  "camera-offline",
42352
42371
  "camera-disabled",
@@ -51527,7 +51546,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51527
51546
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51528
51547
  kind: "mutation",
51529
51548
  auth: "admin"
51530
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51549
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51550
+ clear: boolean(),
51551
+ repointLocationId: string().optional()
51552
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51531
51553
  kind: "mutation",
51532
51554
  auth: "admin"
51533
51555
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -56201,6 +56223,11 @@ onStatusChanged: { data: object({
56201
56223
  *
56202
56224
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
56203
56225
  * provider refreshes the slice on an interval and eagerly after commands.
56226
+ *
56227
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
56228
+ * nullable: `null` means "not known right now" (the appliance has not said,
56229
+ * the link is down, or the description does not carry it) and is never
56230
+ * rendered or exported as `false` / `0`. `availability` says why.
56204
56231
  */
56205
56232
  var DishwasherStateSchema = _enum([
56206
56233
  "idle",
@@ -56210,43 +56237,155 @@ var DishwasherStateSchema = _enum([
56210
56237
  "error",
56211
56238
  "unavailable"
56212
56239
  ]);
56240
+ /**
56241
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
56242
+ * view for compact surfaces; this is what the appliance said.
56243
+ */
56244
+ var DishwasherOperationStateSchema = _enum([
56245
+ "Inactive",
56246
+ "Ready",
56247
+ "DelayedStart",
56248
+ "Run",
56249
+ "Pause",
56250
+ "ActionRequired",
56251
+ "Finished",
56252
+ "Error",
56253
+ "Aborting"
56254
+ ]);
56255
+ /**
56256
+ * Why fields may be `null`:
56257
+ * - `available` — the link is up and the description is loaded;
56258
+ * - `offline` — the local link is down (values are unknown, not last-known);
56259
+ * - `description-missing` — the link is up but the appliance's description could not
56260
+ * be loaded, so its values cannot be decoded.
56261
+ */
56262
+ var DishwasherAvailabilitySchema = _enum([
56263
+ "available",
56264
+ "offline",
56265
+ "description-missing"
56266
+ ]);
56213
56267
  var DishwasherConsumableLevelSchema = _enum([
56214
56268
  "ok",
56215
56269
  "low",
56216
56270
  "empty"
56217
56271
  ]);
56218
56272
  var DishwasherStatusSchema = object({
56273
+ availability: DishwasherAvailabilitySchema,
56274
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
56219
56275
  state: DishwasherStateSchema,
56220
- /** Active program id/name, or null when none selected / unknown. */
56276
+ /** The appliance's operation state as reported; null when not known. */
56277
+ operationState: DishwasherOperationStateSchema.nullable(),
56278
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
56221
56279
  program: string().nullable(),
56222
- /** Program tokens the hardware accepts — drives the UI selector. */
56280
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
56281
+ selectedProgram: string().nullable(),
56282
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
56223
56283
  availablePrograms: array(string()),
56224
- /** Minutes remaining on the active cycle, or null when not running. */
56225
- remainingMinutes: number().int().nonnegative().nullable(),
56284
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
56285
+ remainingSeconds: number().int().nonnegative().nullable(),
56286
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
56287
+ delayedStartSeconds: number().int().nonnegative().nullable(),
56226
56288
  /** Cycle completion 0..100, or null when not applicable. */
56227
56289
  progressPercent: number().min(0).max(100).nullable(),
56228
- /** True when the door is reported open. */
56229
- doorOpen: boolean(),
56230
- /** True when remote start is allowed (door closed, power on, etc.). */
56231
- remoteStartAllowed: boolean(),
56232
- /** Main power / switched-on state. */
56233
- powerOn: boolean(),
56290
+ /** True when the door is reported open; null when the door state is not known. */
56291
+ doorOpen: boolean().nullable(),
56292
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
56293
+ doorLocked: boolean().nullable(),
56294
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
56295
+ remoteStartAllowed: boolean().nullable(),
56296
+ /** True when the appliance accepts remote control now; null when not known. */
56297
+ remoteControlActive: boolean().nullable(),
56298
+ /** True while somebody operates the appliance at its panel; null when not reported. */
56299
+ localControlActive: boolean().nullable(),
56300
+ /** Main power / switched-on state; null when not known. */
56301
+ powerOn: boolean().nullable(),
56302
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
56303
+ powerState: string().nullable(),
56234
56304
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
56235
56305
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56236
- halfLoad: boolean(),
56237
- hygienePlus: boolean(),
56306
+ /** Option states: null when the appliance does not expose the option or has not said. */
56307
+ halfLoad: boolean().nullable(),
56308
+ hygienePlus: boolean().nullable(),
56238
56309
  /** Extra dry option when the appliance exposes it. */
56239
- extraDry: boolean(),
56310
+ extraDry: boolean().nullable(),
56240
56311
  /** Intensive zone (lower basket) when the appliance exposes it. */
56241
- intensiveZone: boolean(),
56312
+ intensiveZone: boolean().nullable(),
56242
56313
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56243
- varioSpeedPlus: boolean(),
56244
- /** Child lock (controls disabled on the appliance). */
56245
- childLock: boolean(),
56314
+ varioSpeedPlus: boolean().nullable(),
56315
+ /** Child lock (controls disabled on the appliance); null when not known. */
56316
+ childLock: boolean().nullable(),
56317
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
56318
+ activeEvents: array(string()),
56319
+ /** Numeric error code when the appliance reports one; null otherwise. */
56246
56320
  errorCode: number().nullable(),
56321
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
56247
56322
  errorLabel: string().nullable(),
56323
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
56248
56324
  lastFetchedAt: number()
56249
56325
  });
56326
+ var DeviceIdSchema = number().int().nonnegative();
56327
+ /** A value a program option or setting can take. */
56328
+ var DishwasherValueSchema = union([
56329
+ boolean(),
56330
+ string(),
56331
+ number()
56332
+ ]);
56333
+ var DishwasherAccessSchema = _enum([
56334
+ "none",
56335
+ "read",
56336
+ "readWrite",
56337
+ "writeOnly",
56338
+ "readStatic"
56339
+ ]);
56340
+ /**
56341
+ * One option or setting the appliance declares, with the constraints its description
56342
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
56343
+ */
56344
+ var DishwasherOptionDescriptorSchema = object({
56345
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
56346
+ key: string(),
56347
+ /** Last segment of the key, for display. */
56348
+ name: string(),
56349
+ type: _enum([
56350
+ "boolean",
56351
+ "number",
56352
+ "enum",
56353
+ "string"
56354
+ ]),
56355
+ access: DishwasherAccessSchema,
56356
+ /** The appliance reports this entity as currently available. */
56357
+ available: boolean(),
56358
+ /** Unit the description declares for a number; null when it declares none. */
56359
+ unit: string().nullable(),
56360
+ min: number().nullable(),
56361
+ max: number().nullable(),
56362
+ step: number().nullable(),
56363
+ /** Allowed members of an enum; null for other types. */
56364
+ enumValues: array(string()).nullable(),
56365
+ defaultValue: DishwasherValueSchema.nullable()
56366
+ });
56367
+ var DishwasherProgramSchema = object({
56368
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
56369
+ key: string(),
56370
+ name: string(),
56371
+ /** The appliance currently offers this program. */
56372
+ available: boolean(),
56373
+ /** The options this program lists, with the program-level access / availability / default. */
56374
+ options: array(DishwasherOptionDescriptorSchema)
56375
+ });
56376
+ var DishwasherOptionsSchema = object({
56377
+ availability: DishwasherAvailabilitySchema,
56378
+ /** What the appliance can be told to do, from the commands its description declares. */
56379
+ supportsStart: boolean(),
56380
+ supportsPause: boolean(),
56381
+ supportsResume: boolean(),
56382
+ supportsStop: boolean(),
56383
+ supportsPower: boolean(),
56384
+ /** Every program the description lists, with its options. */
56385
+ programs: array(DishwasherProgramSchema),
56386
+ /** Every option and setting entity the description lists (programs reference these by key). */
56387
+ options: array(DishwasherOptionDescriptorSchema)
56388
+ });
56250
56389
  var dishwasherCapability = {
56251
56390
  name: "dishwasher",
56252
56391
  scope: "device",
@@ -56254,86 +56393,102 @@ var dishwasherCapability = {
56254
56393
  mode: "singleton",
56255
56394
  deviceTypes: [DeviceType.Dishwasher],
56256
56395
  methods: {
56257
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56396
+ /**
56397
+ * Start a program. Without `program` the selected one starts. `options` are
56398
+ * option feature keys; each is checked against the program's constraints.
56399
+ */
56400
+ start: method(object({
56401
+ deviceId: DeviceIdSchema,
56402
+ program: string().min(1).optional(),
56403
+ options: record(string(), DishwasherValueSchema).optional()
56404
+ }), _void(), {
56258
56405
  kind: "mutation",
56259
56406
  auth: "protected"
56260
56407
  }),
56261
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56408
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
56262
56409
  kind: "mutation",
56263
56410
  auth: "protected"
56264
56411
  }),
56265
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56412
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
56413
+ kind: "mutation",
56414
+ auth: "protected"
56415
+ }),
56416
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
56266
56417
  kind: "mutation",
56267
56418
  auth: "protected"
56268
56419
  }),
56420
+ /** Select (not start) a program; refused when the appliance does not offer it. */
56269
56421
  setProgram: method(object({
56270
- deviceId: number().int().nonnegative(),
56422
+ deviceId: DeviceIdSchema,
56271
56423
  program: string().min(1)
56272
56424
  }), _void(), {
56273
56425
  kind: "mutation",
56274
56426
  auth: "protected"
56275
56427
  }),
56276
56428
  setPower: method(object({
56277
- deviceId: number().int().nonnegative(),
56429
+ deviceId: DeviceIdSchema,
56278
56430
  on: boolean()
56279
56431
  }), _void(), {
56280
56432
  kind: "mutation",
56281
56433
  auth: "protected"
56282
56434
  }),
56283
56435
  setHalfLoad: method(object({
56284
- deviceId: number().int().nonnegative(),
56436
+ deviceId: DeviceIdSchema,
56285
56437
  on: boolean()
56286
56438
  }), _void(), {
56287
56439
  kind: "mutation",
56288
56440
  auth: "protected"
56289
56441
  }),
56290
56442
  setHygienePlus: method(object({
56291
- deviceId: number().int().nonnegative(),
56443
+ deviceId: DeviceIdSchema,
56292
56444
  on: boolean()
56293
56445
  }), _void(), {
56294
56446
  kind: "mutation",
56295
56447
  auth: "protected"
56296
56448
  }),
56297
56449
  setExtraDry: method(object({
56298
- deviceId: number().int().nonnegative(),
56450
+ deviceId: DeviceIdSchema,
56299
56451
  on: boolean()
56300
56452
  }), _void(), {
56301
56453
  kind: "mutation",
56302
56454
  auth: "protected"
56303
56455
  }),
56304
56456
  setIntensiveZone: method(object({
56305
- deviceId: number().int().nonnegative(),
56457
+ deviceId: DeviceIdSchema,
56306
56458
  on: boolean()
56307
56459
  }), _void(), {
56308
56460
  kind: "mutation",
56309
56461
  auth: "protected"
56310
56462
  }),
56311
56463
  setVarioSpeedPlus: method(object({
56312
- deviceId: number().int().nonnegative(),
56464
+ deviceId: DeviceIdSchema,
56313
56465
  on: boolean()
56314
56466
  }), _void(), {
56315
56467
  kind: "mutation",
56316
56468
  auth: "protected"
56317
56469
  }),
56318
56470
  setChildLock: method(object({
56319
- deviceId: number().int().nonnegative(),
56471
+ deviceId: DeviceIdSchema,
56320
56472
  on: boolean()
56321
56473
  }), _void(), {
56322
56474
  kind: "mutation",
56323
56475
  auth: "protected"
56324
56476
  }),
56477
+ /**
56478
+ * Write any option or setting by feature key. Refused when the description does
56479
+ * not list it, it is not writable or not available now, or the value is outside
56480
+ * its declared range / members.
56481
+ */
56325
56482
  setOption: method(object({
56326
- deviceId: number().int().nonnegative(),
56483
+ deviceId: DeviceIdSchema,
56327
56484
  key: string().min(1),
56328
- value: union([
56329
- boolean(),
56330
- string(),
56331
- number()
56332
- ])
56485
+ value: DishwasherValueSchema
56333
56486
  }), _void(), {
56334
56487
  kind: "mutation",
56335
56488
  auth: "protected"
56336
- })
56489
+ }),
56490
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56491
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
56337
56492
  },
56338
56493
  status: {
56339
56494
  schema: DishwasherStatusSchema,
@@ -70862,6 +71017,12 @@ Object.freeze({
70862
71017
  addonId: null,
70863
71018
  access: "view"
70864
71019
  },
71020
+ "dishwasher.getOptions": {
71021
+ capName: "dishwasher",
71022
+ capScope: "device",
71023
+ addonId: null,
71024
+ access: "view"
71025
+ },
70865
71026
  "dishwasher.getStatus": {
70866
71027
  capName: "dishwasher",
70867
71028
  capScope: "device",
@@ -70874,6 +71035,12 @@ Object.freeze({
70874
71035
  addonId: null,
70875
71036
  access: "create"
70876
71037
  },
71038
+ "dishwasher.resume": {
71039
+ capName: "dishwasher",
71040
+ capScope: "device",
71041
+ addonId: null,
71042
+ access: "create"
71043
+ },
70877
71044
  "dishwasher.setChildLock": {
70878
71045
  capName: "dishwasher",
70879
71046
  capScope: "device",
@@ -75374,6 +75541,12 @@ Object.freeze({
75374
75541
  addonId: null,
75375
75542
  access: "view"
75376
75543
  },
75544
+ "storageMigration.moverClearance": {
75545
+ capName: "storage-migration",
75546
+ capScope: "system",
75547
+ addonId: null,
75548
+ access: "view"
75549
+ },
75377
75550
  "storageMigration.movers": {
75378
75551
  capName: "storage-migration",
75379
75552
  capScope: "system",
@@ -77785,6 +77958,11 @@ Object.freeze({
77785
77958
  form: "single",
77786
77959
  optional: false
77787
77960
  }],
77961
+ "dishwasher.getOptions": [{
77962
+ name: "deviceId",
77963
+ form: "single",
77964
+ optional: false
77965
+ }],
77788
77966
  "dishwasher.getStatus": [{
77789
77967
  name: "deviceId",
77790
77968
  form: "single",
@@ -77795,6 +77973,11 @@ Object.freeze({
77795
77973
  form: "single",
77796
77974
  optional: false
77797
77975
  }],
77976
+ "dishwasher.resume": [{
77977
+ name: "deviceId",
77978
+ form: "single",
77979
+ optional: false
77980
+ }],
77798
77981
  "dishwasher.setChildLock": [{
77799
77982
  name: "deviceId",
77800
77983
  form: "single",
@@ -79881,6 +80064,9 @@ new Map(Object.entries({
79881
80064
  "wrapper-update-available": "system",
79882
80065
  "backup-completed": "system",
79883
80066
  "export-completed": "system",
80067
+ "alert-critical": "system",
80068
+ "alert-error": "system",
80069
+ "alert-critical-resolved": "system",
79884
80070
  "storage-location-low": "system",
79885
80071
  "storage-location-critical": "system",
79886
80072
  "storage-location-ok": "system",
@@ -80005,6 +80191,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
80005
80191
  "storage-location-ok"
80006
80192
  ]
80007
80193
  },
80194
+ {
80195
+ id: "alerts",
80196
+ family: "system",
80197
+ label: "Alerts",
80198
+ kinds: [
80199
+ "alert-critical",
80200
+ "alert-error",
80201
+ "alert-critical-resolved"
80202
+ ]
80203
+ },
80008
80204
  {
80009
80205
  id: "alarm",
80010
80206
  family: "alarm",
@@ -80049,6 +80245,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
80049
80245
  return [[descriptor.kind, field]];
80050
80246
  })));
80051
80247
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
80248
+ object({
80249
+ phase: _enum(["raised", "resolved"]),
80250
+ episodeId: string().min(1),
80251
+ alertId: string().min(1),
80252
+ severity: AlertSeveritySchema,
80253
+ category: string(),
80254
+ title: string(),
80255
+ message: string(),
80256
+ sourceType: string().optional(),
80257
+ sourceId: string().optional(),
80258
+ nodeId: string().optional(),
80259
+ /** The alert's own action link (where the operator acts on it), when it has one. */
80260
+ actionUrl: string().optional(),
80261
+ at: number()
80262
+ });
80052
80263
  var RULE_BODY_ONLY = ["body"];
80053
80264
  var RULE_TEXT = ["title", "body"];
80054
80265
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -80058,6 +80269,11 @@ var TANK = [
80058
80269
  "device-tank-full",
80059
80270
  "device-tank-normal"
80060
80271
  ];
80272
+ var ALERT_EPISODE = [
80273
+ "alert-critical",
80274
+ "alert-error",
80275
+ "alert-critical-resolved"
80276
+ ];
80061
80277
  var UPDATES = [
80062
80278
  "addon-update-available",
80063
80279
  "server-update-available",
@@ -80250,14 +80466,14 @@ var STATE_SUMMARY_VARS = [
80250
80466
  ([...RULE_TEXT], [...CONSUMABLE]),
80251
80467
  ([...RULE_TEXT], [...TANK]),
80252
80468
  [...RULE_TEXT],
80253
- ([...RULE_TEXT], [...UPDATES]),
80254
- ([...RULE_TEXT], [...UPDATES]),
80255
- [...RULE_TEXT],
80469
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
80470
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
80256
80471
  [...RULE_TEXT],
80257
80472
  [...RULE_TEXT],
80258
80473
  [...RULE_TEXT],
80259
80474
  [...RULE_TEXT],
80260
80475
  [...RULE_TEXT],
80476
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80261
80477
  [...RULE_TEXT],
80262
80478
  [...RULE_TEXT],
80263
80479
  [...RULE_TEXT],
@@ -80275,7 +80491,11 @@ var STATE_SUMMARY_VARS = [
80275
80491
  [...RULE_TEXT],
80276
80492
  [...RULE_TEXT],
80277
80493
  [...RULE_TEXT],
80278
- [...RULE_TEXT],
80494
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80495
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80496
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80497
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80498
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
80279
80499
  [...RULE_TEXT],
80280
80500
  [...RULE_TEXT],
80281
80501
  [...RULE_TEXT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.154",
3
+ "version": "1.2.155",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",