@camstack/addon-pipeline 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.
Files changed (35) hide show
  1. package/dist/audio-analyzer/index.js +3 -3
  2. package/dist/audio-analyzer/index.mjs +3 -3
  3. package/dist/{custom-model-catalog--ms2wSDI.mjs → custom-model-catalog-BWxCwQ1L.mjs} +2 -2
  4. package/dist/{custom-model-catalog-CVvdKnH2.js → custom-model-catalog-BmQ6g825.js} +2 -2
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-BmSyTuy4.mjs → dist-BZ34hSbo.mjs} +516 -241
  8. package/dist/{dist-B4HyxJe1.js → dist-DGzDqaBO.js} +521 -240
  9. package/dist/{model-catalogs-Bj0f2Obs.js → model-catalogs-BZ7wE3tk.js} +1 -1
  10. package/dist/{model-catalogs-OnXVUgQY.mjs → model-catalogs-EjFqjUfh.mjs} +1 -1
  11. package/dist/motion-wasm/index.js +1 -1
  12. package/dist/motion-wasm/index.mjs +1 -1
  13. package/dist/{node--4HtlkFo.mjs → node-CJPdIMAm.mjs} +1 -1
  14. package/dist/{node-DfuKhWUZ.js → node-CVbPzQN2.js} +1 -1
  15. package/dist/pipeline-runner/index.js +3 -3
  16. package/dist/pipeline-runner/index.mjs +3 -3
  17. package/dist/{process-memory-uf7ZfkSz.mjs → process-memory-BPqkGyDA.mjs} +1 -1
  18. package/dist/{process-memory-BZ1_q3g3.js → process-memory-C8-aiceH.js} +1 -1
  19. package/dist/recorder/index.js +240 -40
  20. package/dist/recorder/index.mjs +240 -40
  21. package/dist/{segment-demux-js-CURD3CEv.mjs → segment-demux-js-CxA4wyuM.mjs} +1 -1
  22. package/dist/{segment-demux-js-C7fMqBGZ.js → segment-demux-js-z3asNjJ8.js} +1 -1
  23. package/dist/stream-broker/_stub.js +2 -2
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cd6rjANN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-D28YdqZf.mjs} +3 -3
  25. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DdrO8p3-.mjs +26 -0
  26. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-RrTYeVaZ.mjs +26 -0
  27. package/dist/stream-broker/demux-worker-child.js +1 -1
  28. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  29. package/dist/stream-broker/{hostInit-CV-FMXnr.mjs → hostInit-CT3_w1iD.mjs} +3 -3
  30. package/dist/stream-broker/index.js +3 -3
  31. package/dist/stream-broker/index.mjs +3 -3
  32. package/dist/stream-broker/remoteEntry.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DUPQbxcH.mjs +0 -26
  35. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CGcD3ujP.mjs +0 -26
@@ -1,5 +1,5 @@
1
1
  let node_crypto = require("node:crypto");
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";
@@ -5538,7 +5547,7 @@ var ZodIssueCode = {
5538
5547
  var ZodFirstPartyTypeKind;
5539
5548
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5540
5549
  //#endregion
5541
- //#region ../types/dist/sleep-BegKjwUu.mjs
5550
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5542
5551
  /**
5543
5552
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5544
5553
  * window to float samples (D455).
@@ -7968,6 +7977,12 @@ function normalizeAddonInitResult(result) {
7968
7977
  if (Array.isArray(result)) return { providers: result };
7969
7978
  return result;
7970
7979
  }
7980
+ /**
7981
+ * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7982
+ * and validates them (`share-token.service.ts` builds its enum from this
7983
+ * list); a data plane names the kinds it ACCEPTS in `share`.
7984
+ */
7985
+ var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7971
7986
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
7972
7987
  var PeerBytesTicketSchema = object({
7973
7988
  /** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
@@ -13630,6 +13645,41 @@ var StorageCleanupJobSchema = object({
13630
13645
  });
13631
13646
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
13632
13647
  /**
13648
+ * Start a mover only when no single-location repoint holds an overlapping
13649
+ * physical root. Asks BEFORE (cheap refusal, no job) and AFTER registering the
13650
+ * job: the repoint announces its claim and then lists movers, so a mover that
13651
+ * registers first is seen by it and one that registers second sees the claim —
13652
+ * neither side can miss the other (2026-10-20: a repoint and a relocate job
13653
+ * moved and deleted the same event media with no lock between them).
13654
+ *
13655
+ * Fail CLOSED: a clearance that cannot be asked refuses the start.
13656
+ */
13657
+ async function startMoverUnderClearance(deps) {
13658
+ const refuse = (detail) => {
13659
+ throw new Error(`mover refused: ${detail}`);
13660
+ };
13661
+ const ask = async () => {
13662
+ try {
13663
+ return await deps.clearance(deps.locationIds);
13664
+ } catch (err) {
13665
+ return refuse(`the storage orchestrator could not be asked (${err instanceof Error ? err.message : String(err)})`);
13666
+ }
13667
+ };
13668
+ const blocked = (answer) => `a re-point of "${answer.repointLocationId ?? "a location"}" holds an overlapping storage root`;
13669
+ const before = await ask();
13670
+ if (!before.clear) return refuse(blocked(before));
13671
+ const jobId = deps.start();
13672
+ const after = await ask().catch((err) => {
13673
+ deps.cancel(jobId);
13674
+ throw err;
13675
+ });
13676
+ if (!after.clear) {
13677
+ deps.cancel(jobId);
13678
+ return refuse(blocked(after));
13679
+ }
13680
+ return jobId;
13681
+ }
13682
+ /**
13633
13683
  * The storage-location STATE MODEL (D385) — one typed state, one policy module.
13634
13684
  *
13635
13685
  * A location's state used to be split across two authorities: the typed
@@ -15234,6 +15284,229 @@ var ConvertResultSchema = object({
15234
15284
  files: array(string()).readonly()
15235
15285
  })).readonly()
15236
15286
  });
15287
+ /**
15288
+ * Zod schemas for persisted record types.
15289
+ *
15290
+ * These schemas serve as the single source of truth for types that are
15291
+ * stored in the settings-store backend and retrieved via tRPC. They
15292
+ * replace the manual TypeScript interfaces with schema-derived types,
15293
+ * enabling runtime validation when reading from the backend.
15294
+ *
15295
+ * Convention: each schema is named `<Type>Schema`, the inferred TS type
15296
+ * keeps the original name for backward compatibility.
15297
+ */
15298
+ /**
15299
+ * Auth model (v2 — 2026-05-12 caps-only):
15300
+ *
15301
+ * Two principals:
15302
+ * - `isAdmin: true` — full bypass. Admin scope set is ignored.
15303
+ * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
15304
+ *
15305
+ * No role enum. There used to be `viewer / agent / scoped` and earlier
15306
+ * `super_admin` — collapsed onto the single boolean because every
15307
+ * non-admin caller is governed by the same scope-check rules; the
15308
+ * distinction was only ever used to route role-specific procedures
15309
+ * which we no longer have. CLI / webhook integrations are `cst_*` tokens
15310
+ * with `isAdmin: false` + an explicit scope list.
15311
+ */
15312
+ /** Per-method access flavour. Materialised on every cap method via codegen. */
15313
+ var MethodAccessSchema = _enum([
15314
+ "view",
15315
+ "create",
15316
+ "delete"
15317
+ ]);
15318
+ /**
15319
+ * A single scope grant. Three forms — checked in matcher with OR
15320
+ * semantics; the first match decides whether the call passes:
15321
+ *
15322
+ * - `category` — broadest. `target: 'device' | 'system'` selects every
15323
+ * cap with the matching `scope` declaration. New caps inherit grants
15324
+ * automatically — adding a device cap to the codebase makes it
15325
+ * reachable to every user with `category:device [...]` without a
15326
+ * re-grant. Use this for "family viewer" / "operator" tiers.
15327
+ *
15328
+ * - `addon` — every cap that ships inside a given addon id. Niche;
15329
+ * useful when an integration needs to interact with one specific
15330
+ * addon's surface regardless of how many caps it exports.
15331
+ *
15332
+ * - `capability` — the most precise form. Single cap name. Use for
15333
+ * integration tokens where you want to grant `addons.installPackage`
15334
+ * and nothing else.
15335
+ *
15336
+ * `access` is REQUIRED with min 1 element. `admin` bypass is the
15337
+ * "give me everything" escape; there is no wildcard scope.
15338
+ */
15339
+ var AllowedProviderSchema = union([literal("*"), array(string())]);
15340
+ var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15341
+ var CapScopeSchema = _enum(["device", "system"]);
15342
+ /**
15343
+ * DeviceSelector (scope model v3 — 2026-08-12).
15344
+ *
15345
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15346
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15347
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15348
+ * AFTER the grant was minted — no re-grant, no re-login.
15349
+ *
15350
+ * - `all` — every device in the deployment. The broad viewer/operator
15351
+ * lever without a `category` grant (a `category` grant also covers device
15352
+ * caps that carry no deviceId; `all` is specifically the device set).
15353
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15354
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15355
+ * is NOT covered until the grant is edited.
15356
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15357
+ * DYNAMIC. A device that changes type, or a new device of the type,
15358
+ * re-resolves on the next request.
15359
+ * - `locations` — every device whose operator-assigned `location` label is
15360
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15361
+ * null/unset location matches NO `locations` selector.
15362
+ */
15363
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15364
+ object({ kind: literal("all") }),
15365
+ object({
15366
+ kind: literal("ids"),
15367
+ ids: array(number().int()).min(1)
15368
+ }),
15369
+ object({
15370
+ kind: literal("types"),
15371
+ types: array(_enum(DeviceType)).min(1)
15372
+ }),
15373
+ object({
15374
+ kind: literal("locations"),
15375
+ locations: array(string().min(1)).min(1)
15376
+ })
15377
+ ]);
15378
+ var DeviceTokenScopeSchema = object({
15379
+ type: literal("device"),
15380
+ /** The device SET this grant covers — resolved against the live fleet. */
15381
+ selector: DeviceSelectorSchema,
15382
+ access: array(MethodAccessSchema).min(1),
15383
+ /**
15384
+ * Whether a grant on a PARENT device transparently covers its accessory
15385
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15386
+ * Direction is parent → children ONLY.
15387
+ *
15388
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15389
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15390
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15391
+ * operator must grant on the child, not inherit from the parent). Set it
15392
+ * explicitly to override that default per grant.
15393
+ */
15394
+ includeLinked: boolean().optional()
15395
+ });
15396
+ /**
15397
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15398
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15399
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15400
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15401
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15402
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15403
+ * migration cannot reach a JWT already in a client's hands; parse-time
15404
+ * migration covers both without a flag day. No cast — the raw object is read
15405
+ * through `Reflect.get` (its static type is `unknown`).
15406
+ */
15407
+ function migrateLegacyTokenScope(raw) {
15408
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15409
+ if (Reflect.get(raw, "type") !== "device") return raw;
15410
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15411
+ const targets = Reflect.get(raw, "targets");
15412
+ if (!Array.isArray(targets)) return raw;
15413
+ return {
15414
+ type: "device",
15415
+ selector: {
15416
+ kind: "ids",
15417
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15418
+ },
15419
+ access: Reflect.get(raw, "access")
15420
+ };
15421
+ }
15422
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15423
+ object({
15424
+ type: literal("category"),
15425
+ target: CapScopeSchema,
15426
+ access: array(MethodAccessSchema).min(1)
15427
+ }),
15428
+ object({
15429
+ type: literal("capability"),
15430
+ target: string(),
15431
+ access: array(MethodAccessSchema).min(1)
15432
+ }),
15433
+ object({
15434
+ type: literal("addon"),
15435
+ target: string(),
15436
+ access: array(MethodAccessSchema).min(1)
15437
+ }),
15438
+ DeviceTokenScopeSchema
15439
+ ]));
15440
+ object({
15441
+ id: string(),
15442
+ username: string(),
15443
+ passwordHash: string(),
15444
+ /**
15445
+ * Admin bypass. When true, the middleware skips the scope-access
15446
+ * check entirely. There is no other axis of privilege; the legacy
15447
+ * role enum collapsed onto this boolean in v2.
15448
+ */
15449
+ isAdmin: boolean().default(false),
15450
+ allowedProviders: AllowedProviderSchema,
15451
+ allowedDevices: AllowedDevicesSchema,
15452
+ /**
15453
+ * Scopes granted to this user. Admins bypass; their `scopes` is
15454
+ * ignored. Non-admins without scopes are locked out of every
15455
+ * protected call.
15456
+ */
15457
+ scopes: array(TokenScopeSchema).default([]),
15458
+ createdAt: number(),
15459
+ updatedAt: number()
15460
+ });
15461
+ object({
15462
+ id: string(),
15463
+ label: string(),
15464
+ isAdmin: boolean().default(false),
15465
+ allowedProviders: AllowedProviderSchema,
15466
+ allowedDevices: AllowedDevicesSchema,
15467
+ tokenHash: string(),
15468
+ tokenPrefix: string(),
15469
+ createdAt: number(),
15470
+ lastUsedAt: number().optional()
15471
+ });
15472
+ object({
15473
+ id: string(),
15474
+ userId: string(),
15475
+ name: string(),
15476
+ tokenHash: string(),
15477
+ tokenPrefix: string(),
15478
+ scopes: array(TokenScopeSchema),
15479
+ expiresAt: number().nullish(),
15480
+ lastUsedAt: number().nullish(),
15481
+ createdAt: number()
15482
+ });
15483
+ /** What a share-view grant lets its holder see. */
15484
+ var ShareViewGrantSchema = object({
15485
+ kind: _enum(SHARE_VIEW_KINDS),
15486
+ deviceIds: array(number().int().nonnegative()).min(1).max(64),
15487
+ /** Talk-back, opt-in at mint time; absent means off. */
15488
+ talk: boolean().optional()
15489
+ });
15490
+ var ShareViewScopeSchema = object({
15491
+ type: literal("share-view"),
15492
+ grant: ShareViewGrantSchema
15493
+ });
15494
+ var AddonRoutesScopeSchema = object({
15495
+ type: literal("addon-routes"),
15496
+ access: array(MethodAccessSchema).min(1)
15497
+ });
15498
+ var CredentialScopeSchema = union([
15499
+ literal("*"),
15500
+ ShareViewScopeSchema,
15501
+ AddonRoutesScopeSchema,
15502
+ TokenScopeSchema
15503
+ ]);
15504
+ object({
15505
+ kind: literal("credential"),
15506
+ sub: string().min(1),
15507
+ jti: string().min(16),
15508
+ scopes: array(CredentialScopeSchema).min(1)
15509
+ });
15237
15510
  _enum(["new-session", "step-up"]);
15238
15511
  /** The languages the hub's app landing pages are written in (D858). */
15239
15512
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -15969,7 +16242,14 @@ var AlertSeveritySchema = _enum([
15969
16242
  ]);
15970
16243
  var AlertActionSchema = object({
15971
16244
  label: string(),
15972
- href: string().optional()
16245
+ href: string().optional(),
16246
+ /**
16247
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
16248
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
16249
+ * start) — the browser must leave the SPA with a full navigation, because
16250
+ * the SPA has no such route and would bounce to the home page.
16251
+ */
16252
+ navigation: _enum(["app", "server"]).optional()
15973
16253
  });
15974
16254
  var AlertStatusSchema = _enum([
15975
16255
  "active",
@@ -45243,6 +45523,9 @@ var NcSystemEventKindSchema = _enum([
45243
45523
  "server-updated",
45244
45524
  "export-completed",
45245
45525
  "backup-completed",
45526
+ "alert-critical",
45527
+ "alert-error",
45528
+ "alert-critical-resolved",
45246
45529
  "camera-online",
45247
45530
  "camera-offline",
45248
45531
  "camera-disabled",
@@ -47278,202 +47561,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
47278
47561
  auth: "admin"
47279
47562
  }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
47280
47563
  /**
47281
- * Zod schemas for persisted record types.
47282
- *
47283
- * These schemas serve as the single source of truth for types that are
47284
- * stored in the settings-store backend and retrieved via tRPC. They
47285
- * replace the manual TypeScript interfaces with schema-derived types,
47286
- * enabling runtime validation when reading from the backend.
47287
- *
47288
- * Convention: each schema is named `<Type>Schema`, the inferred TS type
47289
- * keeps the original name for backward compatibility.
47290
- */
47291
- /**
47292
- * Auth model (v2 — 2026-05-12 caps-only):
47293
- *
47294
- * Two principals:
47295
- * - `isAdmin: true` — full bypass. Admin scope set is ignored.
47296
- * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
47297
- *
47298
- * No role enum. There used to be `viewer / agent / scoped` and earlier
47299
- * `super_admin` — collapsed onto the single boolean because every
47300
- * non-admin caller is governed by the same scope-check rules; the
47301
- * distinction was only ever used to route role-specific procedures
47302
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
47303
- * with `isAdmin: false` + an explicit scope list.
47304
- */
47305
- /** Per-method access flavour. Materialised on every cap method via codegen. */
47306
- var MethodAccessSchema = _enum([
47307
- "view",
47308
- "create",
47309
- "delete"
47310
- ]);
47311
- /**
47312
- * A single scope grant. Three forms — checked in matcher with OR
47313
- * semantics; the first match decides whether the call passes:
47314
- *
47315
- * - `category` — broadest. `target: 'device' | 'system'` selects every
47316
- * cap with the matching `scope` declaration. New caps inherit grants
47317
- * automatically — adding a device cap to the codebase makes it
47318
- * reachable to every user with `category:device [...]` without a
47319
- * re-grant. Use this for "family viewer" / "operator" tiers.
47320
- *
47321
- * - `addon` — every cap that ships inside a given addon id. Niche;
47322
- * useful when an integration needs to interact with one specific
47323
- * addon's surface regardless of how many caps it exports.
47324
- *
47325
- * - `capability` — the most precise form. Single cap name. Use for
47326
- * integration tokens where you want to grant `addons.installPackage`
47327
- * and nothing else.
47328
- *
47329
- * `access` is REQUIRED with min 1 element. `admin` bypass is the
47330
- * "give me everything" escape; there is no wildcard scope.
47331
- */
47332
- var AllowedProviderSchema = union([literal("*"), array(string())]);
47333
- var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
47334
- var CapScopeSchema = _enum(["device", "system"]);
47335
- /**
47336
- * DeviceSelector (scope model v3 — 2026-08-12).
47337
- *
47338
- * A `device` grant no longer carries a frozen list of deviceIds. It carries
47339
- * a SELECTOR the matcher resolves against the live fleet, so the grant can be
47340
- * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
47341
- * AFTER the grant was minted — no re-grant, no re-login.
47342
- *
47343
- * - `all` — every device in the deployment. The broad viewer/operator
47344
- * lever without a `category` grant (a `category` grant also covers device
47345
- * caps that carry no deviceId; `all` is specifically the device set).
47346
- * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
47347
- * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
47348
- * is NOT covered until the grant is edited.
47349
- * - `types` — every device of a `DeviceType` (e.g. every `camera`).
47350
- * DYNAMIC. A device that changes type, or a new device of the type,
47351
- * re-resolves on the next request.
47352
- * - `locations` — every device whose operator-assigned `location` label is
47353
- * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
47354
- * null/unset location matches NO `locations` selector.
47355
- */
47356
- var DeviceSelectorSchema = discriminatedUnion("kind", [
47357
- object({ kind: literal("all") }),
47358
- object({
47359
- kind: literal("ids"),
47360
- ids: array(number().int()).min(1)
47361
- }),
47362
- object({
47363
- kind: literal("types"),
47364
- types: array(_enum(DeviceType)).min(1)
47365
- }),
47366
- object({
47367
- kind: literal("locations"),
47368
- locations: array(string().min(1)).min(1)
47369
- })
47370
- ]);
47371
- var DeviceTokenScopeSchema = object({
47372
- type: literal("device"),
47373
- /** The device SET this grant covers — resolved against the live fleet. */
47374
- selector: DeviceSelectorSchema,
47375
- access: array(MethodAccessSchema).min(1),
47376
- /**
47377
- * Whether a grant on a PARENT device transparently covers its accessory
47378
- * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
47379
- * Direction is parent → children ONLY.
47380
- *
47381
- * Absent → the matcher DERIVES it from the access flavour: `view`
47382
- * inherits (a camera viewer sees the camera's accessories), `create` /
47383
- * `delete` do NOT (actuating/removing a child is an explicit act the
47384
- * operator must grant on the child, not inherit from the parent). Set it
47385
- * explicitly to override that default per grant.
47386
- */
47387
- includeLinked: boolean().optional()
47388
- });
47389
- /**
47390
- * v2 → v3 lazy migration. A pre-v3 `device` grant carried
47391
- * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
47392
- * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
47393
- * EVERY parse path — stored records AND the JWT-carried scope arrays
47394
- * normalised at the request boundary ({@link normalizeTokenScopes} in
47395
- * `device-selector.ts`). Chosen over a one-time DB migration because a
47396
- * migration cannot reach a JWT already in a client's hands; parse-time
47397
- * migration covers both without a flag day. No cast — the raw object is read
47398
- * through `Reflect.get` (its static type is `unknown`).
47399
- */
47400
- function migrateLegacyTokenScope(raw) {
47401
- if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
47402
- if (Reflect.get(raw, "type") !== "device") return raw;
47403
- if (Reflect.get(raw, "selector") !== void 0) return raw;
47404
- const targets = Reflect.get(raw, "targets");
47405
- if (!Array.isArray(targets)) return raw;
47406
- return {
47407
- type: "device",
47408
- selector: {
47409
- kind: "ids",
47410
- ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
47411
- },
47412
- access: Reflect.get(raw, "access")
47413
- };
47414
- }
47415
- var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
47416
- object({
47417
- type: literal("category"),
47418
- target: CapScopeSchema,
47419
- access: array(MethodAccessSchema).min(1)
47420
- }),
47421
- object({
47422
- type: literal("capability"),
47423
- target: string(),
47424
- access: array(MethodAccessSchema).min(1)
47425
- }),
47426
- object({
47427
- type: literal("addon"),
47428
- target: string(),
47429
- access: array(MethodAccessSchema).min(1)
47430
- }),
47431
- DeviceTokenScopeSchema
47432
- ]));
47433
- object({
47434
- id: string(),
47435
- username: string(),
47436
- passwordHash: string(),
47437
- /**
47438
- * Admin bypass. When true, the middleware skips the scope-access
47439
- * check entirely. There is no other axis of privilege; the legacy
47440
- * role enum collapsed onto this boolean in v2.
47441
- */
47442
- isAdmin: boolean().default(false),
47443
- allowedProviders: AllowedProviderSchema,
47444
- allowedDevices: AllowedDevicesSchema,
47445
- /**
47446
- * Scopes granted to this user. Admins bypass; their `scopes` is
47447
- * ignored. Non-admins without scopes are locked out of every
47448
- * protected call.
47449
- */
47450
- scopes: array(TokenScopeSchema).default([]),
47451
- createdAt: number(),
47452
- updatedAt: number()
47453
- });
47454
- object({
47455
- id: string(),
47456
- label: string(),
47457
- isAdmin: boolean().default(false),
47458
- allowedProviders: AllowedProviderSchema,
47459
- allowedDevices: AllowedDevicesSchema,
47460
- tokenHash: string(),
47461
- tokenPrefix: string(),
47462
- createdAt: number(),
47463
- lastUsedAt: number().optional()
47464
- });
47465
- object({
47466
- id: string(),
47467
- userId: string(),
47468
- name: string(),
47469
- tokenHash: string(),
47470
- tokenPrefix: string(),
47471
- scopes: array(TokenScopeSchema),
47472
- expiresAt: number().nullish(),
47473
- lastUsedAt: number().nullish(),
47474
- createdAt: number()
47475
- });
47476
- /**
47477
47564
  * `oauth-integration` — a collection cap by which an addon declares
47478
47565
  * itself a linkable OAuth client of the hub's core `/oauth2/*` server.
47479
47566
  * Each provider returns a static descriptor; the core enumerates them
@@ -54752,7 +54839,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
54752
54839
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
54753
54840
  kind: "mutation",
54754
54841
  auth: "admin"
54755
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
54842
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
54843
+ clear: boolean(),
54844
+ repointLocationId: string().optional()
54845
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
54756
54846
  kind: "mutation",
54757
54847
  auth: "admin"
54758
54848
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -58669,6 +58759,11 @@ object({
58669
58759
  *
58670
58760
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
58671
58761
  * provider refreshes the slice on an interval and eagerly after commands.
58762
+ *
58763
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
58764
+ * nullable: `null` means "not known right now" (the appliance has not said,
58765
+ * the link is down, or the description does not carry it) and is never
58766
+ * rendered or exported as `false` / `0`. `availability` says why.
58672
58767
  */
58673
58768
  var DishwasherStateSchema = _enum([
58674
58769
  "idle",
@@ -58678,112 +58773,227 @@ var DishwasherStateSchema = _enum([
58678
58773
  "error",
58679
58774
  "unavailable"
58680
58775
  ]);
58776
+ /**
58777
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
58778
+ * view for compact surfaces; this is what the appliance said.
58779
+ */
58780
+ var DishwasherOperationStateSchema = _enum([
58781
+ "Inactive",
58782
+ "Ready",
58783
+ "DelayedStart",
58784
+ "Run",
58785
+ "Pause",
58786
+ "ActionRequired",
58787
+ "Finished",
58788
+ "Error",
58789
+ "Aborting"
58790
+ ]);
58791
+ /**
58792
+ * Why fields may be `null`:
58793
+ * - `available` — the link is up and the description is loaded;
58794
+ * - `offline` — the local link is down (values are unknown, not last-known);
58795
+ * - `description-missing` — the link is up but the appliance's description could not
58796
+ * be loaded, so its values cannot be decoded.
58797
+ */
58798
+ var DishwasherAvailabilitySchema = _enum([
58799
+ "available",
58800
+ "offline",
58801
+ "description-missing"
58802
+ ]);
58681
58803
  var DishwasherConsumableLevelSchema = _enum([
58682
58804
  "ok",
58683
58805
  "low",
58684
58806
  "empty"
58685
58807
  ]);
58686
58808
  object({
58809
+ availability: DishwasherAvailabilitySchema,
58810
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
58687
58811
  state: DishwasherStateSchema,
58688
- /** Active program id/name, or null when none selected / unknown. */
58812
+ /** The appliance's operation state as reported; null when not known. */
58813
+ operationState: DishwasherOperationStateSchema.nullable(),
58814
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
58689
58815
  program: string().nullable(),
58690
- /** Program tokens the hardware accepts — drives the UI selector. */
58816
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
58817
+ selectedProgram: string().nullable(),
58818
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
58691
58819
  availablePrograms: array(string()),
58692
- /** Minutes remaining on the active cycle, or null when not running. */
58693
- remainingMinutes: number().int().nonnegative().nullable(),
58820
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
58821
+ remainingSeconds: number().int().nonnegative().nullable(),
58822
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
58823
+ delayedStartSeconds: number().int().nonnegative().nullable(),
58694
58824
  /** Cycle completion 0..100, or null when not applicable. */
58695
58825
  progressPercent: number().min(0).max(100).nullable(),
58696
- /** True when the door is reported open. */
58697
- doorOpen: boolean(),
58698
- /** True when remote start is allowed (door closed, power on, etc.). */
58699
- remoteStartAllowed: boolean(),
58700
- /** Main power / switched-on state. */
58701
- powerOn: boolean(),
58826
+ /** True when the door is reported open; null when the door state is not known. */
58827
+ doorOpen: boolean().nullable(),
58828
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
58829
+ doorLocked: boolean().nullable(),
58830
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
58831
+ remoteStartAllowed: boolean().nullable(),
58832
+ /** True when the appliance accepts remote control now; null when not known. */
58833
+ remoteControlActive: boolean().nullable(),
58834
+ /** True while somebody operates the appliance at its panel; null when not reported. */
58835
+ localControlActive: boolean().nullable(),
58836
+ /** Main power / switched-on state; null when not known. */
58837
+ powerOn: boolean().nullable(),
58838
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
58839
+ powerState: string().nullable(),
58702
58840
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
58703
58841
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
58704
- halfLoad: boolean(),
58705
- hygienePlus: boolean(),
58842
+ /** Option states: null when the appliance does not expose the option or has not said. */
58843
+ halfLoad: boolean().nullable(),
58844
+ hygienePlus: boolean().nullable(),
58706
58845
  /** Extra dry option when the appliance exposes it. */
58707
- extraDry: boolean(),
58846
+ extraDry: boolean().nullable(),
58708
58847
  /** Intensive zone (lower basket) when the appliance exposes it. */
58709
- intensiveZone: boolean(),
58848
+ intensiveZone: boolean().nullable(),
58710
58849
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
58711
- varioSpeedPlus: boolean(),
58712
- /** Child lock (controls disabled on the appliance). */
58713
- childLock: boolean(),
58850
+ varioSpeedPlus: boolean().nullable(),
58851
+ /** Child lock (controls disabled on the appliance); null when not known. */
58852
+ childLock: boolean().nullable(),
58853
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
58854
+ activeEvents: array(string()),
58855
+ /** Numeric error code when the appliance reports one; null otherwise. */
58714
58856
  errorCode: number().nullable(),
58857
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
58715
58858
  errorLabel: string().nullable(),
58859
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
58716
58860
  lastFetchedAt: number()
58717
58861
  });
58718
- DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
58862
+ var DeviceIdSchema = number().int().nonnegative();
58863
+ /** A value a program option or setting can take. */
58864
+ var DishwasherValueSchema = union([
58865
+ boolean(),
58866
+ string(),
58867
+ number()
58868
+ ]);
58869
+ var DishwasherAccessSchema = _enum([
58870
+ "none",
58871
+ "read",
58872
+ "readWrite",
58873
+ "writeOnly",
58874
+ "readStatic"
58875
+ ]);
58876
+ /**
58877
+ * One option or setting the appliance declares, with the constraints its description
58878
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
58879
+ */
58880
+ var DishwasherOptionDescriptorSchema = object({
58881
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
58882
+ key: string(),
58883
+ /** Last segment of the key, for display. */
58884
+ name: string(),
58885
+ type: _enum([
58886
+ "boolean",
58887
+ "number",
58888
+ "enum",
58889
+ "string"
58890
+ ]),
58891
+ access: DishwasherAccessSchema,
58892
+ /** The appliance reports this entity as currently available. */
58893
+ available: boolean(),
58894
+ /** Unit the description declares for a number; null when it declares none. */
58895
+ unit: string().nullable(),
58896
+ min: number().nullable(),
58897
+ max: number().nullable(),
58898
+ step: number().nullable(),
58899
+ /** Allowed members of an enum; null for other types. */
58900
+ enumValues: array(string()).nullable(),
58901
+ defaultValue: DishwasherValueSchema.nullable()
58902
+ });
58903
+ var DishwasherProgramSchema = object({
58904
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
58905
+ key: string(),
58906
+ name: string(),
58907
+ /** The appliance currently offers this program. */
58908
+ available: boolean(),
58909
+ /** The options this program lists, with the program-level access / availability / default. */
58910
+ options: array(DishwasherOptionDescriptorSchema)
58911
+ });
58912
+ var DishwasherOptionsSchema = object({
58913
+ availability: DishwasherAvailabilitySchema,
58914
+ /** What the appliance can be told to do, from the commands its description declares. */
58915
+ supportsStart: boolean(),
58916
+ supportsPause: boolean(),
58917
+ supportsResume: boolean(),
58918
+ supportsStop: boolean(),
58919
+ supportsPower: boolean(),
58920
+ /** Every program the description lists, with its options. */
58921
+ programs: array(DishwasherProgramSchema),
58922
+ /** Every option and setting entity the description lists (programs reference these by key). */
58923
+ options: array(DishwasherOptionDescriptorSchema)
58924
+ });
58925
+ DeviceType.Dishwasher, method(object({
58926
+ deviceId: DeviceIdSchema,
58927
+ program: string().min(1).optional(),
58928
+ options: record(string(), DishwasherValueSchema).optional()
58929
+ }), _void(), {
58719
58930
  kind: "mutation",
58720
58931
  auth: "protected"
58721
- }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
58932
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
58722
58933
  kind: "mutation",
58723
58934
  auth: "protected"
58724
- }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
58935
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
58936
+ kind: "mutation",
58937
+ auth: "protected"
58938
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
58725
58939
  kind: "mutation",
58726
58940
  auth: "protected"
58727
58941
  }), method(object({
58728
- deviceId: number().int().nonnegative(),
58942
+ deviceId: DeviceIdSchema,
58729
58943
  program: string().min(1)
58730
58944
  }), _void(), {
58731
58945
  kind: "mutation",
58732
58946
  auth: "protected"
58733
58947
  }), method(object({
58734
- deviceId: number().int().nonnegative(),
58948
+ deviceId: DeviceIdSchema,
58735
58949
  on: boolean()
58736
58950
  }), _void(), {
58737
58951
  kind: "mutation",
58738
58952
  auth: "protected"
58739
58953
  }), method(object({
58740
- deviceId: number().int().nonnegative(),
58954
+ deviceId: DeviceIdSchema,
58741
58955
  on: boolean()
58742
58956
  }), _void(), {
58743
58957
  kind: "mutation",
58744
58958
  auth: "protected"
58745
58959
  }), method(object({
58746
- deviceId: number().int().nonnegative(),
58960
+ deviceId: DeviceIdSchema,
58747
58961
  on: boolean()
58748
58962
  }), _void(), {
58749
58963
  kind: "mutation",
58750
58964
  auth: "protected"
58751
58965
  }), method(object({
58752
- deviceId: number().int().nonnegative(),
58966
+ deviceId: DeviceIdSchema,
58753
58967
  on: boolean()
58754
58968
  }), _void(), {
58755
58969
  kind: "mutation",
58756
58970
  auth: "protected"
58757
58971
  }), method(object({
58758
- deviceId: number().int().nonnegative(),
58972
+ deviceId: DeviceIdSchema,
58759
58973
  on: boolean()
58760
58974
  }), _void(), {
58761
58975
  kind: "mutation",
58762
58976
  auth: "protected"
58763
58977
  }), method(object({
58764
- deviceId: number().int().nonnegative(),
58978
+ deviceId: DeviceIdSchema,
58765
58979
  on: boolean()
58766
58980
  }), _void(), {
58767
58981
  kind: "mutation",
58768
58982
  auth: "protected"
58769
58983
  }), method(object({
58770
- deviceId: number().int().nonnegative(),
58984
+ deviceId: DeviceIdSchema,
58771
58985
  on: boolean()
58772
58986
  }), _void(), {
58773
58987
  kind: "mutation",
58774
58988
  auth: "protected"
58775
58989
  }), method(object({
58776
- deviceId: number().int().nonnegative(),
58990
+ deviceId: DeviceIdSchema,
58777
58991
  key: string().min(1),
58778
- value: union([
58779
- boolean(),
58780
- string(),
58781
- number()
58782
- ])
58992
+ value: DishwasherValueSchema
58783
58993
  }), _void(), {
58784
58994
  kind: "mutation",
58785
58995
  auth: "protected"
58786
- });
58996
+ }), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
58787
58997
  object({
58788
58998
  /** Ms epoch of the last press. null = never observed since this provider started. */
58789
58999
  lastPressedAt: number().nullable(),
@@ -69385,6 +69595,12 @@ Object.freeze({
69385
69595
  addonId: null,
69386
69596
  access: "view"
69387
69597
  },
69598
+ "dishwasher.getOptions": {
69599
+ capName: "dishwasher",
69600
+ capScope: "device",
69601
+ addonId: null,
69602
+ access: "view"
69603
+ },
69388
69604
  "dishwasher.getStatus": {
69389
69605
  capName: "dishwasher",
69390
69606
  capScope: "device",
@@ -69397,6 +69613,12 @@ Object.freeze({
69397
69613
  addonId: null,
69398
69614
  access: "create"
69399
69615
  },
69616
+ "dishwasher.resume": {
69617
+ capName: "dishwasher",
69618
+ capScope: "device",
69619
+ addonId: null,
69620
+ access: "create"
69621
+ },
69400
69622
  "dishwasher.setChildLock": {
69401
69623
  capName: "dishwasher",
69402
69624
  capScope: "device",
@@ -73897,6 +74119,12 @@ Object.freeze({
73897
74119
  addonId: null,
73898
74120
  access: "view"
73899
74121
  },
74122
+ "storageMigration.moverClearance": {
74123
+ capName: "storage-migration",
74124
+ capScope: "system",
74125
+ addonId: null,
74126
+ access: "view"
74127
+ },
73900
74128
  "storageMigration.movers": {
73901
74129
  capName: "storage-migration",
73902
74130
  capScope: "system",
@@ -76090,6 +76318,11 @@ Object.freeze({
76090
76318
  form: "single",
76091
76319
  optional: false
76092
76320
  }],
76321
+ "dishwasher.getOptions": [{
76322
+ name: "deviceId",
76323
+ form: "single",
76324
+ optional: false
76325
+ }],
76093
76326
  "dishwasher.getStatus": [{
76094
76327
  name: "deviceId",
76095
76328
  form: "single",
@@ -76100,6 +76333,11 @@ Object.freeze({
76100
76333
  form: "single",
76101
76334
  optional: false
76102
76335
  }],
76336
+ "dishwasher.resume": [{
76337
+ name: "deviceId",
76338
+ form: "single",
76339
+ optional: false
76340
+ }],
76103
76341
  "dishwasher.setChildLock": [{
76104
76342
  name: "deviceId",
76105
76343
  form: "single",
@@ -78236,6 +78474,9 @@ new Map(Object.entries({
78236
78474
  "wrapper-update-available": "system",
78237
78475
  "backup-completed": "system",
78238
78476
  "export-completed": "system",
78477
+ "alert-critical": "system",
78478
+ "alert-error": "system",
78479
+ "alert-critical-resolved": "system",
78239
78480
  "storage-location-low": "system",
78240
78481
  "storage-location-critical": "system",
78241
78482
  "storage-location-ok": "system",
@@ -78360,6 +78601,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78360
78601
  "storage-location-ok"
78361
78602
  ]
78362
78603
  },
78604
+ {
78605
+ id: "alerts",
78606
+ family: "system",
78607
+ label: "Alerts",
78608
+ kinds: [
78609
+ "alert-critical",
78610
+ "alert-error",
78611
+ "alert-critical-resolved"
78612
+ ]
78613
+ },
78363
78614
  {
78364
78615
  id: "alarm",
78365
78616
  family: "alarm",
@@ -78404,6 +78655,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
78404
78655
  return [[descriptor.kind, field]];
78405
78656
  })));
78406
78657
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
78658
+ object({
78659
+ phase: _enum(["raised", "resolved"]),
78660
+ episodeId: string().min(1),
78661
+ alertId: string().min(1),
78662
+ severity: AlertSeveritySchema,
78663
+ category: string(),
78664
+ title: string(),
78665
+ message: string(),
78666
+ sourceType: string().optional(),
78667
+ sourceId: string().optional(),
78668
+ nodeId: string().optional(),
78669
+ /** The alert's own action link (where the operator acts on it), when it has one. */
78670
+ actionUrl: string().optional(),
78671
+ at: number()
78672
+ });
78407
78673
  var RULE_BODY_ONLY = ["body"];
78408
78674
  var RULE_TEXT = ["title", "body"];
78409
78675
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -78413,6 +78679,11 @@ var TANK = [
78413
78679
  "device-tank-full",
78414
78680
  "device-tank-normal"
78415
78681
  ];
78682
+ var ALERT_EPISODE = [
78683
+ "alert-critical",
78684
+ "alert-error",
78685
+ "alert-critical-resolved"
78686
+ ];
78416
78687
  var UPDATES = [
78417
78688
  "addon-update-available",
78418
78689
  "server-update-available",
@@ -78605,14 +78876,14 @@ var STATE_SUMMARY_VARS = [
78605
78876
  ([...RULE_TEXT], [...CONSUMABLE]),
78606
78877
  ([...RULE_TEXT], [...TANK]),
78607
78878
  [...RULE_TEXT],
78608
- ([...RULE_TEXT], [...UPDATES]),
78609
- ([...RULE_TEXT], [...UPDATES]),
78610
- [...RULE_TEXT],
78879
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78880
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
78611
78881
  [...RULE_TEXT],
78612
78882
  [...RULE_TEXT],
78613
78883
  [...RULE_TEXT],
78614
78884
  [...RULE_TEXT],
78615
78885
  [...RULE_TEXT],
78886
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78616
78887
  [...RULE_TEXT],
78617
78888
  [...RULE_TEXT],
78618
78889
  [...RULE_TEXT],
@@ -78630,7 +78901,11 @@ var STATE_SUMMARY_VARS = [
78630
78901
  [...RULE_TEXT],
78631
78902
  [...RULE_TEXT],
78632
78903
  [...RULE_TEXT],
78633
- [...RULE_TEXT],
78904
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78905
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78906
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78907
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78908
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
78634
78909
  [...RULE_TEXT],
78635
78910
  [...RULE_TEXT],
78636
78911
  [...RULE_TEXT],
@@ -81376,6 +81651,12 @@ Object.defineProperty(exports, "sleep", {
81376
81651
  return sleep;
81377
81652
  }
81378
81653
  });
81654
+ Object.defineProperty(exports, "startMoverUnderClearance", {
81655
+ enumerable: true,
81656
+ get: function() {
81657
+ return startMoverUnderClearance;
81658
+ }
81659
+ });
81379
81660
  Object.defineProperty(exports, "stepModelRunsOnFormat", {
81380
81661
  enumerable: true,
81381
81662
  get: function() {