@camstack/addon-provider-homeassistant 1.2.602 → 1.2.604

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.
@@ -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";
@@ -5537,7 +5546,7 @@ var ZodIssueCode = {
5537
5546
  var ZodFirstPartyTypeKind;
5538
5547
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5539
5548
  //#endregion
5540
- //#region ../types/dist/sleep-BOjuyoPC.mjs
5549
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5541
5550
  /**
5542
5551
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5543
5552
  * window to float samples (D455).
@@ -13722,7 +13731,14 @@ var AlertSeveritySchema = _enum([
13722
13731
  ]);
13723
13732
  var AlertActionSchema = object({
13724
13733
  label: string(),
13725
- href: string().optional()
13734
+ href: string().optional(),
13735
+ /**
13736
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13737
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13738
+ * start) — the browser must leave the SPA with a full navigation, because
13739
+ * the SPA has no such route and would bounce to the home page.
13740
+ */
13741
+ navigation: _enum(["app", "server"]).optional()
13726
13742
  });
13727
13743
  var AlertStatusSchema = _enum([
13728
13744
  "active",
@@ -18344,7 +18360,11 @@ var deviceDiscoveryCapability = {
18344
18360
  };
18345
18361
  /**
18346
18362
  * `device-adoption` — generic discovery + adoption surface,
18347
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18363
+ * system-scoped collection (one provider per integration addon), routed
18364
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18365
+ * pin model as `connection-test`. The admin UI keeps using
18366
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18367
+ * successor to `ha-discovery`:
18348
18368
  * keyed by `integrationId` (the addon resolves integrationId → broker
18349
18369
  * internally) rather than a connection-specific `brokerId`, and it
18350
18370
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -18509,7 +18529,7 @@ var ResyncResultSchema = object({
18509
18529
  var deviceAdoptionCapability = {
18510
18530
  name: "device-adoption",
18511
18531
  scope: "system",
18512
- mode: "singleton",
18532
+ mode: "collection",
18513
18533
  status: {
18514
18534
  schema: AdoptionStatusSchema,
18515
18535
  kind: "poll"
@@ -42739,6 +42759,9 @@ var NcSystemEventKindSchema = _enum([
42739
42759
  "server-updated",
42740
42760
  "export-completed",
42741
42761
  "backup-completed",
42762
+ "alert-critical",
42763
+ "alert-error",
42764
+ "alert-critical-resolved",
42742
42765
  "camera-online",
42743
42766
  "camera-offline",
42744
42767
  "camera-disabled",
@@ -51831,7 +51854,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
51831
51854
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
51832
51855
  kind: "mutation",
51833
51856
  auth: "admin"
51834
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51857
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
51858
+ clear: boolean(),
51859
+ repointLocationId: string().optional()
51860
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
51835
51861
  kind: "mutation",
51836
51862
  auth: "admin"
51837
51863
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -56186,6 +56212,11 @@ onStatusChanged: { data: object({
56186
56212
  *
56187
56213
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
56188
56214
  * provider refreshes the slice on an interval and eagerly after commands.
56215
+ *
56216
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
56217
+ * nullable: `null` means "not known right now" (the appliance has not said,
56218
+ * the link is down, or the description does not carry it) and is never
56219
+ * rendered or exported as `false` / `0`. `availability` says why.
56189
56220
  */
56190
56221
  var DishwasherStateSchema = _enum([
56191
56222
  "idle",
@@ -56195,35 +56226,155 @@ var DishwasherStateSchema = _enum([
56195
56226
  "error",
56196
56227
  "unavailable"
56197
56228
  ]);
56229
+ /**
56230
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
56231
+ * view for compact surfaces; this is what the appliance said.
56232
+ */
56233
+ var DishwasherOperationStateSchema = _enum([
56234
+ "Inactive",
56235
+ "Ready",
56236
+ "DelayedStart",
56237
+ "Run",
56238
+ "Pause",
56239
+ "ActionRequired",
56240
+ "Finished",
56241
+ "Error",
56242
+ "Aborting"
56243
+ ]);
56244
+ /**
56245
+ * Why fields may be `null`:
56246
+ * - `available` — the link is up and the description is loaded;
56247
+ * - `offline` — the local link is down (values are unknown, not last-known);
56248
+ * - `description-missing` — the link is up but the appliance's description could not
56249
+ * be loaded, so its values cannot be decoded.
56250
+ */
56251
+ var DishwasherAvailabilitySchema = _enum([
56252
+ "available",
56253
+ "offline",
56254
+ "description-missing"
56255
+ ]);
56198
56256
  var DishwasherConsumableLevelSchema = _enum([
56199
56257
  "ok",
56200
56258
  "low",
56201
56259
  "empty"
56202
56260
  ]);
56203
56261
  var DishwasherStatusSchema = object({
56262
+ availability: DishwasherAvailabilitySchema,
56263
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
56204
56264
  state: DishwasherStateSchema,
56205
- /** Active program id/name, or null when none selected / unknown. */
56265
+ /** The appliance's operation state as reported; null when not known. */
56266
+ operationState: DishwasherOperationStateSchema.nullable(),
56267
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
56206
56268
  program: string().nullable(),
56207
- /** Program tokens the hardware accepts — drives the UI selector. */
56269
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
56270
+ selectedProgram: string().nullable(),
56271
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
56208
56272
  availablePrograms: array(string()),
56209
- /** Minutes remaining on the active cycle, or null when not running. */
56210
- remainingMinutes: number().int().nonnegative().nullable(),
56273
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
56274
+ remainingSeconds: number().int().nonnegative().nullable(),
56275
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
56276
+ delayedStartSeconds: number().int().nonnegative().nullable(),
56211
56277
  /** Cycle completion 0..100, or null when not applicable. */
56212
56278
  progressPercent: number().min(0).max(100).nullable(),
56213
- /** True when the door is reported open. */
56214
- doorOpen: boolean(),
56215
- /** True when remote start is allowed (door closed, power on, etc.). */
56216
- remoteStartAllowed: boolean(),
56217
- /** Main power / switched-on state. */
56218
- powerOn: boolean(),
56279
+ /** True when the door is reported open; null when the door state is not known. */
56280
+ doorOpen: boolean().nullable(),
56281
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
56282
+ doorLocked: boolean().nullable(),
56283
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
56284
+ remoteStartAllowed: boolean().nullable(),
56285
+ /** True when the appliance accepts remote control now; null when not known. */
56286
+ remoteControlActive: boolean().nullable(),
56287
+ /** True while somebody operates the appliance at its panel; null when not reported. */
56288
+ localControlActive: boolean().nullable(),
56289
+ /** Main power / switched-on state; null when not known. */
56290
+ powerOn: boolean().nullable(),
56291
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
56292
+ powerState: string().nullable(),
56219
56293
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
56220
56294
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56221
- halfLoad: boolean(),
56222
- hygienePlus: boolean(),
56295
+ /** Option states: null when the appliance does not expose the option or has not said. */
56296
+ halfLoad: boolean().nullable(),
56297
+ hygienePlus: boolean().nullable(),
56298
+ /** Extra dry option when the appliance exposes it. */
56299
+ extraDry: boolean().nullable(),
56300
+ /** Intensive zone (lower basket) when the appliance exposes it. */
56301
+ intensiveZone: boolean().nullable(),
56302
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56303
+ varioSpeedPlus: boolean().nullable(),
56304
+ /** Child lock (controls disabled on the appliance); null when not known. */
56305
+ childLock: boolean().nullable(),
56306
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
56307
+ activeEvents: array(string()),
56308
+ /** Numeric error code when the appliance reports one; null otherwise. */
56223
56309
  errorCode: number().nullable(),
56310
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
56224
56311
  errorLabel: string().nullable(),
56312
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
56225
56313
  lastFetchedAt: number()
56226
56314
  });
56315
+ var DeviceIdSchema = number().int().nonnegative();
56316
+ /** A value a program option or setting can take. */
56317
+ var DishwasherValueSchema = union([
56318
+ boolean(),
56319
+ string(),
56320
+ number()
56321
+ ]);
56322
+ var DishwasherAccessSchema = _enum([
56323
+ "none",
56324
+ "read",
56325
+ "readWrite",
56326
+ "writeOnly",
56327
+ "readStatic"
56328
+ ]);
56329
+ /**
56330
+ * One option or setting the appliance declares, with the constraints its description
56331
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
56332
+ */
56333
+ var DishwasherOptionDescriptorSchema = object({
56334
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
56335
+ key: string(),
56336
+ /** Last segment of the key, for display. */
56337
+ name: string(),
56338
+ type: _enum([
56339
+ "boolean",
56340
+ "number",
56341
+ "enum",
56342
+ "string"
56343
+ ]),
56344
+ access: DishwasherAccessSchema,
56345
+ /** The appliance reports this entity as currently available. */
56346
+ available: boolean(),
56347
+ /** Unit the description declares for a number; null when it declares none. */
56348
+ unit: string().nullable(),
56349
+ min: number().nullable(),
56350
+ max: number().nullable(),
56351
+ step: number().nullable(),
56352
+ /** Allowed members of an enum; null for other types. */
56353
+ enumValues: array(string()).nullable(),
56354
+ defaultValue: DishwasherValueSchema.nullable()
56355
+ });
56356
+ var DishwasherProgramSchema = object({
56357
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
56358
+ key: string(),
56359
+ name: string(),
56360
+ /** The appliance currently offers this program. */
56361
+ available: boolean(),
56362
+ /** The options this program lists, with the program-level access / availability / default. */
56363
+ options: array(DishwasherOptionDescriptorSchema)
56364
+ });
56365
+ var DishwasherOptionsSchema = object({
56366
+ availability: DishwasherAvailabilitySchema,
56367
+ /** What the appliance can be told to do, from the commands its description declares. */
56368
+ supportsStart: boolean(),
56369
+ supportsPause: boolean(),
56370
+ supportsResume: boolean(),
56371
+ supportsStop: boolean(),
56372
+ supportsPower: boolean(),
56373
+ /** Every program the description lists, with its options. */
56374
+ programs: array(DishwasherProgramSchema),
56375
+ /** Every option and setting entity the description lists (programs reference these by key). */
56376
+ options: array(DishwasherOptionDescriptorSchema)
56377
+ });
56227
56378
  var dishwasherCapability = {
56228
56379
  name: "dishwasher",
56229
56380
  scope: "device",
@@ -56231,58 +56382,102 @@ var dishwasherCapability = {
56231
56382
  mode: "singleton",
56232
56383
  deviceTypes: [DeviceType.Dishwasher],
56233
56384
  methods: {
56234
- start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56385
+ /**
56386
+ * Start a program. Without `program` the selected one starts. `options` are
56387
+ * option feature keys; each is checked against the program's constraints.
56388
+ */
56389
+ start: method(object({
56390
+ deviceId: DeviceIdSchema,
56391
+ program: string().min(1).optional(),
56392
+ options: record(string(), DishwasherValueSchema).optional()
56393
+ }), _void(), {
56235
56394
  kind: "mutation",
56236
56395
  auth: "protected"
56237
56396
  }),
56238
- pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56397
+ pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
56239
56398
  kind: "mutation",
56240
56399
  auth: "protected"
56241
56400
  }),
56242
- stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56401
+ resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
56243
56402
  kind: "mutation",
56244
56403
  auth: "protected"
56245
56404
  }),
56405
+ stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
56406
+ kind: "mutation",
56407
+ auth: "protected"
56408
+ }),
56409
+ /** Select (not start) a program; refused when the appliance does not offer it. */
56246
56410
  setProgram: method(object({
56247
- deviceId: number().int().nonnegative(),
56411
+ deviceId: DeviceIdSchema,
56248
56412
  program: string().min(1)
56249
56413
  }), _void(), {
56250
56414
  kind: "mutation",
56251
56415
  auth: "protected"
56252
56416
  }),
56253
56417
  setPower: method(object({
56254
- deviceId: number().int().nonnegative(),
56418
+ deviceId: DeviceIdSchema,
56255
56419
  on: boolean()
56256
56420
  }), _void(), {
56257
56421
  kind: "mutation",
56258
56422
  auth: "protected"
56259
56423
  }),
56260
56424
  setHalfLoad: method(object({
56261
- deviceId: number().int().nonnegative(),
56425
+ deviceId: DeviceIdSchema,
56262
56426
  on: boolean()
56263
56427
  }), _void(), {
56264
56428
  kind: "mutation",
56265
56429
  auth: "protected"
56266
56430
  }),
56267
56431
  setHygienePlus: method(object({
56268
- deviceId: number().int().nonnegative(),
56432
+ deviceId: DeviceIdSchema,
56269
56433
  on: boolean()
56270
56434
  }), _void(), {
56271
56435
  kind: "mutation",
56272
56436
  auth: "protected"
56273
56437
  }),
56438
+ setExtraDry: method(object({
56439
+ deviceId: DeviceIdSchema,
56440
+ on: boolean()
56441
+ }), _void(), {
56442
+ kind: "mutation",
56443
+ auth: "protected"
56444
+ }),
56445
+ setIntensiveZone: method(object({
56446
+ deviceId: DeviceIdSchema,
56447
+ on: boolean()
56448
+ }), _void(), {
56449
+ kind: "mutation",
56450
+ auth: "protected"
56451
+ }),
56452
+ setVarioSpeedPlus: method(object({
56453
+ deviceId: DeviceIdSchema,
56454
+ on: boolean()
56455
+ }), _void(), {
56456
+ kind: "mutation",
56457
+ auth: "protected"
56458
+ }),
56459
+ setChildLock: method(object({
56460
+ deviceId: DeviceIdSchema,
56461
+ on: boolean()
56462
+ }), _void(), {
56463
+ kind: "mutation",
56464
+ auth: "protected"
56465
+ }),
56466
+ /**
56467
+ * Write any option or setting by feature key. Refused when the description does
56468
+ * not list it, it is not writable or not available now, or the value is outside
56469
+ * its declared range / members.
56470
+ */
56274
56471
  setOption: method(object({
56275
- deviceId: number().int().nonnegative(),
56472
+ deviceId: DeviceIdSchema,
56276
56473
  key: string().min(1),
56277
- value: union([
56278
- boolean(),
56279
- string(),
56280
- number()
56281
- ])
56474
+ value: DishwasherValueSchema
56282
56475
  }), _void(), {
56283
56476
  kind: "mutation",
56284
56477
  auth: "protected"
56285
- })
56478
+ }),
56479
+ /** What this appliance can do, from its own description — the UI is derived from it. */
56480
+ getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
56286
56481
  },
56287
56482
  status: {
56288
56483
  schema: DishwasherStatusSchema,
@@ -70231,6 +70426,12 @@ Object.freeze({
70231
70426
  addonId: null,
70232
70427
  access: "view"
70233
70428
  },
70429
+ "dishwasher.getOptions": {
70430
+ capName: "dishwasher",
70431
+ capScope: "device",
70432
+ addonId: null,
70433
+ access: "view"
70434
+ },
70234
70435
  "dishwasher.getStatus": {
70235
70436
  capName: "dishwasher",
70236
70437
  capScope: "device",
@@ -70243,6 +70444,24 @@ Object.freeze({
70243
70444
  addonId: null,
70244
70445
  access: "create"
70245
70446
  },
70447
+ "dishwasher.resume": {
70448
+ capName: "dishwasher",
70449
+ capScope: "device",
70450
+ addonId: null,
70451
+ access: "create"
70452
+ },
70453
+ "dishwasher.setChildLock": {
70454
+ capName: "dishwasher",
70455
+ capScope: "device",
70456
+ addonId: null,
70457
+ access: "create"
70458
+ },
70459
+ "dishwasher.setExtraDry": {
70460
+ capName: "dishwasher",
70461
+ capScope: "device",
70462
+ addonId: null,
70463
+ access: "create"
70464
+ },
70246
70465
  "dishwasher.setHalfLoad": {
70247
70466
  capName: "dishwasher",
70248
70467
  capScope: "device",
@@ -70255,6 +70474,12 @@ Object.freeze({
70255
70474
  addonId: null,
70256
70475
  access: "create"
70257
70476
  },
70477
+ "dishwasher.setIntensiveZone": {
70478
+ capName: "dishwasher",
70479
+ capScope: "device",
70480
+ addonId: null,
70481
+ access: "create"
70482
+ },
70258
70483
  "dishwasher.setOption": {
70259
70484
  capName: "dishwasher",
70260
70485
  capScope: "device",
@@ -70273,6 +70498,12 @@ Object.freeze({
70273
70498
  addonId: null,
70274
70499
  access: "create"
70275
70500
  },
70501
+ "dishwasher.setVarioSpeedPlus": {
70502
+ capName: "dishwasher",
70503
+ capScope: "device",
70504
+ addonId: null,
70505
+ access: "create"
70506
+ },
70276
70507
  "dishwasher.start": {
70277
70508
  capName: "dishwasher",
70278
70509
  capScope: "device",
@@ -74719,6 +74950,12 @@ Object.freeze({
74719
74950
  addonId: null,
74720
74951
  access: "view"
74721
74952
  },
74953
+ "storageMigration.moverClearance": {
74954
+ capName: "storage-migration",
74955
+ capScope: "system",
74956
+ addonId: null,
74957
+ access: "view"
74958
+ },
74722
74959
  "storageMigration.movers": {
74723
74960
  capName: "storage-migration",
74724
74961
  capScope: "system",
@@ -76912,6 +77149,11 @@ Object.freeze({
76912
77149
  form: "single",
76913
77150
  optional: false
76914
77151
  }],
77152
+ "dishwasher.getOptions": [{
77153
+ name: "deviceId",
77154
+ form: "single",
77155
+ optional: false
77156
+ }],
76915
77157
  "dishwasher.getStatus": [{
76916
77158
  name: "deviceId",
76917
77159
  form: "single",
@@ -76922,6 +77164,21 @@ Object.freeze({
76922
77164
  form: "single",
76923
77165
  optional: false
76924
77166
  }],
77167
+ "dishwasher.resume": [{
77168
+ name: "deviceId",
77169
+ form: "single",
77170
+ optional: false
77171
+ }],
77172
+ "dishwasher.setChildLock": [{
77173
+ name: "deviceId",
77174
+ form: "single",
77175
+ optional: false
77176
+ }],
77177
+ "dishwasher.setExtraDry": [{
77178
+ name: "deviceId",
77179
+ form: "single",
77180
+ optional: false
77181
+ }],
76925
77182
  "dishwasher.setHalfLoad": [{
76926
77183
  name: "deviceId",
76927
77184
  form: "single",
@@ -76932,6 +77189,11 @@ Object.freeze({
76932
77189
  form: "single",
76933
77190
  optional: false
76934
77191
  }],
77192
+ "dishwasher.setIntensiveZone": [{
77193
+ name: "deviceId",
77194
+ form: "single",
77195
+ optional: false
77196
+ }],
76935
77197
  "dishwasher.setOption": [{
76936
77198
  name: "deviceId",
76937
77199
  form: "single",
@@ -76947,6 +77209,11 @@ Object.freeze({
76947
77209
  form: "single",
76948
77210
  optional: false
76949
77211
  }],
77212
+ "dishwasher.setVarioSpeedPlus": [{
77213
+ name: "deviceId",
77214
+ form: "single",
77215
+ optional: false
77216
+ }],
76950
77217
  "dishwasher.start": [{
76951
77218
  name: "deviceId",
76952
77219
  form: "single",
@@ -79195,6 +79462,9 @@ new Map(Object.entries({
79195
79462
  "wrapper-update-available": "system",
79196
79463
  "backup-completed": "system",
79197
79464
  "export-completed": "system",
79465
+ "alert-critical": "system",
79466
+ "alert-error": "system",
79467
+ "alert-critical-resolved": "system",
79198
79468
  "storage-location-low": "system",
79199
79469
  "storage-location-critical": "system",
79200
79470
  "storage-location-ok": "system",
@@ -79319,6 +79589,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79319
79589
  "storage-location-ok"
79320
79590
  ]
79321
79591
  },
79592
+ {
79593
+ id: "alerts",
79594
+ family: "system",
79595
+ label: "Alerts",
79596
+ kinds: [
79597
+ "alert-critical",
79598
+ "alert-error",
79599
+ "alert-critical-resolved"
79600
+ ]
79601
+ },
79322
79602
  {
79323
79603
  id: "alarm",
79324
79604
  family: "alarm",
@@ -79363,6 +79643,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
79363
79643
  return [[descriptor.kind, field]];
79364
79644
  })));
79365
79645
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
79646
+ object({
79647
+ phase: _enum(["raised", "resolved"]),
79648
+ episodeId: string().min(1),
79649
+ alertId: string().min(1),
79650
+ severity: AlertSeveritySchema,
79651
+ category: string(),
79652
+ title: string(),
79653
+ message: string(),
79654
+ sourceType: string().optional(),
79655
+ sourceId: string().optional(),
79656
+ nodeId: string().optional(),
79657
+ /** The alert's own action link (where the operator acts on it), when it has one. */
79658
+ actionUrl: string().optional(),
79659
+ at: number()
79660
+ });
79366
79661
  var RULE_BODY_ONLY = ["body"];
79367
79662
  var RULE_TEXT = ["title", "body"];
79368
79663
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -79372,6 +79667,11 @@ var TANK = [
79372
79667
  "device-tank-full",
79373
79668
  "device-tank-normal"
79374
79669
  ];
79670
+ var ALERT_EPISODE = [
79671
+ "alert-critical",
79672
+ "alert-error",
79673
+ "alert-critical-resolved"
79674
+ ];
79375
79675
  var UPDATES = [
79376
79676
  "addon-update-available",
79377
79677
  "server-update-available",
@@ -79564,14 +79864,14 @@ var STATE_SUMMARY_VARS = [
79564
79864
  ([...RULE_TEXT], [...CONSUMABLE]),
79565
79865
  ([...RULE_TEXT], [...TANK]),
79566
79866
  [...RULE_TEXT],
79567
- ([...RULE_TEXT], [...UPDATES]),
79568
- ([...RULE_TEXT], [...UPDATES]),
79569
- [...RULE_TEXT],
79867
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79868
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79570
79869
  [...RULE_TEXT],
79571
79870
  [...RULE_TEXT],
79572
79871
  [...RULE_TEXT],
79573
79872
  [...RULE_TEXT],
79574
79873
  [...RULE_TEXT],
79874
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79575
79875
  [...RULE_TEXT],
79576
79876
  [...RULE_TEXT],
79577
79877
  [...RULE_TEXT],
@@ -79589,7 +79889,11 @@ var STATE_SUMMARY_VARS = [
79589
79889
  [...RULE_TEXT],
79590
79890
  [...RULE_TEXT],
79591
79891
  [...RULE_TEXT],
79592
- [...RULE_TEXT],
79892
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79893
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79894
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79895
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79896
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
79593
79897
  [...RULE_TEXT],
79594
79898
  [...RULE_TEXT],
79595
79899
  [...RULE_TEXT],