@camstack/addon-admin-ui 1.2.439 → 1.2.441

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 (135) hide show
  1. package/dist/assets/{AddonAssetIcon-BDSwFXgm.js → AddonAssetIcon-CCzVCA49.js} +1 -1
  2. package/dist/assets/Addons-CUPFTOFz.js +4 -0
  3. package/dist/assets/{AdminPage-CgbWYJ_a.js → AdminPage--m3xHpjx.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-Cx5lBMEy.js → AdminSectionedPage-D5J86Kfp.js} +1 -1
  5. package/dist/assets/AiProfiles-CEZqx-Sw.js +3 -0
  6. package/dist/assets/{BrokerForm-vhYWxL3G.js → BrokerForm-Cd5z8Mk0.js} +1 -1
  7. package/dist/assets/{Build-DU8TYYdP.js → Build-RW9SjiCM.js} +5 -5
  8. package/dist/assets/{Calendars-nXT3Wrbf.js → Calendars-CVnE0N6y.js} +1 -1
  9. package/dist/assets/{Cluster-i581brrb.js → Cluster-DdgLAQcF.js} +1 -1
  10. package/dist/assets/{ClusterStepModel-COT7-UPr.js → ClusterStepModel-BbVbEWqh.js} +1 -1
  11. package/dist/assets/{CompositionEditor-ChpgaVIC.js → CompositionEditor-BDEQF7e9.js} +1 -1
  12. package/dist/assets/CompositionEditorPage-D3LiFLq4.js +1 -0
  13. package/dist/assets/Data-TI1fXQ8e.js +2 -0
  14. package/dist/assets/DeviceDetail-Ry7b522t.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-B1mTzp5D.js → DeviceDoActionFields-n2-NdVST.js} +1 -1
  16. package/dist/assets/Devices-BacO9x6N.js +1 -0
  17. package/dist/assets/{EmbedPlayerPage-BPwqAqDS.js → EmbedPlayerPage-DgFNOUrt.js} +1 -1
  18. package/dist/assets/Identity-BPWd0o-B.js +1 -0
  19. package/dist/assets/IntegrationDetail-CFsboI2-.js +1 -0
  20. package/dist/assets/IntegrationHub-BRMnV56J.js +1 -0
  21. package/dist/assets/Integrations-Bf2SzcCT.js +1 -0
  22. package/dist/assets/Integrations-CBqnh8t8.js +1 -0
  23. package/dist/assets/Library-yKp-qGfV.js +1 -0
  24. package/dist/assets/Locations-BCY7diBp.js +3 -0
  25. package/dist/assets/{Logs-DQzkH4DL.js → Logs-DWz6dVJo.js} +1 -1
  26. package/dist/assets/{MaskShapeCanvas-B01TLLz0.js → MaskShapeCanvas-wkrQJhyN.js} +1 -1
  27. package/dist/assets/{MotionZonesSettings-Ccp-7wRO.js → MotionZonesSettings-BZneggiu.js} +1 -1
  28. package/dist/assets/{MyAccess-d8Soqp8x.js → MyAccess-DmuNu2nC.js} +1 -1
  29. package/dist/assets/{Network-DUXIj2Zk.js → Network-CMlIm20D.js} +1 -1
  30. package/dist/assets/{NodeAddonsSettingsPanel-BfK00QUN.js → NodeAddonsSettingsPanel-BxeQZ-hu.js} +1 -1
  31. package/dist/assets/Notifications-B0nD4977.js +1 -0
  32. package/dist/assets/{PrivacyMaskSettings-BnmGNc7h.js → PrivacyMaskSettings-CN2hF3qR.js} +1 -1
  33. package/dist/assets/Recordings-CkHyBhqh.js +1 -0
  34. package/dist/assets/{ScanNetworkModal-BuYymusi.js → ScanNetworkModal-CfHHLP_k.js} +1 -1
  35. package/dist/assets/{SceneMonitorEditor-COIi86yu.js → SceneMonitorEditor-CU-Yj4Sw.js} +1 -1
  36. package/dist/assets/SessionsList-DrSkZMrj.js +2 -0
  37. package/dist/assets/{Showroom-B-HvuRyq.js → Showroom-ChGRG_dB.js} +1 -1
  38. package/dist/assets/{System-D1S9FZIN.js → System-GfppoElu.js} +1 -1
  39. package/dist/assets/{Terminal-VExSxhFn.js → Terminal-C7azorOj.js} +3 -3
  40. package/dist/assets/{Viewer-CNtlq-6t.js → Viewer-DWdf6_8H.js} +1 -1
  41. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-B5lRPMSE.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CGI8Rmb1.js} +1 -1
  42. package/dist/assets/{addon-icons-context-O3QiZWCa.js → addon-icons-context-D3LZwxs2.js} +1 -1
  43. package/dist/assets/{archive-NnMWQRLb.js → archive-BOODG6Jz.js} +1 -1
  44. package/dist/assets/{authed-media-B64j5Vsu.js → authed-media-F_SweyTm.js} +1 -1
  45. package/dist/assets/{bell-off-DR6rLD11.js → bell-off-acWBqVHX.js} +1 -1
  46. package/dist/assets/{board-model-CUEDqTvL.js → board-model-Bdetmchn.js} +1 -1
  47. package/dist/assets/{boxes-B64NRkVe.js → boxes-U2BARjlG.js} +1 -1
  48. package/dist/assets/circle-slash-90QkMLx4.js +1 -0
  49. package/dist/assets/client-yfOXPkcm.js +358 -0
  50. package/dist/assets/{cloud-upload-Ck1AcqSa.js → cloud-upload-C12rtBFh.js} +1 -1
  51. package/dist/assets/crop-BjSJZpbg.js +1 -0
  52. package/dist/assets/{device-integration-icon-CdWFmoUD.js → device-integration-icon-BeeizbXV.js} +1 -1
  53. package/dist/assets/device-picker-model-CRpYde_B.js +1 -0
  54. package/dist/assets/dist-BfR6seq4.js +358 -0
  55. package/dist/assets/dist-CQud2KJs.js +1 -0
  56. package/dist/assets/{eraser-CHm7ildU.js → eraser-BmJjK2wc.js} +1 -1
  57. package/dist/assets/{hard-drive-download-DVmQAuw3.js → hard-drive-download-DfnBSa39.js} +1 -1
  58. package/dist/assets/{history-2q2gbNuR.js → history-CNfarVY1.js} +1 -1
  59. package/dist/assets/{hostInit-BJE3f_CH.js → hostInit-Df4MAORd.js} +1 -1
  60. package/dist/assets/i18n-B1bxeya5.js +1 -0
  61. package/dist/assets/{icons-DQaWDMUW.js → icons-BLn-D-gO.js} +1 -1
  62. package/dist/assets/index-CN7xsFJi.css +2 -0
  63. package/dist/assets/index-CcAR8Rlk.js +4 -0
  64. package/dist/assets/{key-N9xPL69Y.js → key-BF4fZLz_.js} +1 -1
  65. package/dist/assets/{key-round-DetnHyGS.js → key-round-CjE9GF4T.js} +1 -1
  66. package/dist/assets/{layers-DdcQNtFW.js → layers-b-H6nVdd.js} +1 -1
  67. package/dist/assets/{linked-devices-model-Ca0JeX-b.js → linked-devices-model-BMUapBfD.js} +1 -1
  68. package/dist/assets/{list-ordered-CG0tknH1.js → list-ordered-CxtL1h3H.js} +1 -1
  69. package/dist/assets/location-owned-usage-DVh3ypCw.js +1 -0
  70. package/dist/assets/{log-in-eXylJY9j.js → log-in-D4y0eEu8.js} +1 -1
  71. package/dist/assets/{memory-stick-DASwwt0F.js → memory-stick-jw7STOQc.js} +1 -1
  72. package/dist/assets/{message-square-plus-DqkHZSG8.js → message-square-plus-EaPlmlsM.js} +1 -1
  73. package/dist/assets/{mf-entry-bootstrap-0-3bcba670.js → mf-entry-bootstrap-0-8a2679ae.js} +2 -2
  74. package/dist/assets/{mic-off-Dn3D8U5T.js → mic-off-DiEVWn3e.js} +1 -1
  75. package/dist/assets/{monitor-off-BFFE28-j.js → monitor-off-bCAhCbCp.js} +1 -1
  76. package/dist/assets/{monitor-smartphone-Df6JhoUF.js → monitor-smartphone-ASdELIYw.js} +1 -1
  77. package/dist/assets/mount-CRpYde_B.js +1 -0
  78. package/dist/assets/notification-schedule-field-BKROBLSv.js +1 -0
  79. package/dist/assets/{player-overlays-CikRdqm6.js → player-overlays-Fx6RE6kI.js} +1 -1
  80. package/dist/assets/{recycle-CeQJmMoH.js → recycle-twm2_92b.js} +1 -1
  81. package/dist/assets/remoteEntry-D-hdlf-C.js +1 -0
  82. package/dist/assets/{scan-eye-uX_isL7a.js → scan-eye-DuyDP-FQ.js} +1 -1
  83. package/dist/assets/{scissors-Bi6HP2Jp.js → scissors-BJ2tjgEs.js} +1 -1
  84. package/dist/assets/{search-x-CScyd-pU.js → search-x-C9z-zNBZ.js} +1 -1
  85. package/dist/assets/{send-D2QbbJQk.js → send-C_-A97md.js} +1 -1
  86. package/dist/assets/{settings-2-CkjM7VHr.js → settings-2-A0nya3CH.js} +1 -1
  87. package/dist/assets/{speaker-C3Z3o0NO.js → speaker-C8juqhRE.js} +1 -1
  88. package/dist/assets/src-AhVPNkCn.js +67 -0
  89. package/dist/assets/{timer-reset-C_TvCMnb.js → timer-reset-DHBRudwU.js} +1 -1
  90. package/dist/assets/{ungroup-IELE1M3H.js → ungroup-BLEMoVnk.js} +1 -1
  91. package/dist/assets/{unlink-CLHtJAsY.js → unlink-YiKNaJO_.js} +1 -1
  92. package/dist/assets/{usb-DncvObAi.js → usb-DzR5JdOt.js} +1 -1
  93. package/dist/assets/{use-scenes-feed-BgX1JX4l.js → use-scenes-feed-wz6RYR34.js} +1 -1
  94. package/dist/assets/{use-stationary-objects-BzSycd9M.js → use-stationary-objects-ByxBafUy.js} +1 -1
  95. package/dist/assets/useEventInvalidation-CRpYde_B.js +1 -0
  96. package/dist/assets/{useNodeUrlSelection-D3zWAXku.js → useNodeUrlSelection-v_RZ_Gxk.js} +1 -1
  97. package/dist/assets/user-round-CjXCVqIf.js +1 -0
  98. package/dist/assets/{user-x-B-NhZXl-.js → user-x-CY41cwk1.js} +1 -1
  99. package/dist/assets/{video-IXUGebu2.js → video-BRgeujOO.js} +1 -1
  100. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-5Br3X_S3.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BrkS3kK7.js} +2 -2
  101. package/dist/index.html +11 -11
  102. package/dist/server/addon.js +481 -241
  103. package/package.json +1 -1
  104. package/dist/assets/Addons-BNdKgh4A.js +0 -4
  105. package/dist/assets/AiProfiles-Bcw_Zupz.js +0 -3
  106. package/dist/assets/CompositionEditorPage-ChGD20-A.js +0 -1
  107. package/dist/assets/Data-NVQyqefj.js +0 -2
  108. package/dist/assets/DeviceDetail-UQPY3O77.js +0 -2
  109. package/dist/assets/Devices-DNkljEPT.js +0 -1
  110. package/dist/assets/Identity-SFG32MYD.js +0 -1
  111. package/dist/assets/IntegrationDetail-DOpZe3Ca.js +0 -1
  112. package/dist/assets/IntegrationHub-DbxSPB_Z.js +0 -1
  113. package/dist/assets/Integrations--ssC4t1F.js +0 -1
  114. package/dist/assets/Integrations-6eDOiK1G.js +0 -1
  115. package/dist/assets/Library-Bi_LuV1_.js +0 -1
  116. package/dist/assets/Locations-Cg0m1b4l.js +0 -3
  117. package/dist/assets/Notifications-M4WZNbHV.js +0 -1
  118. package/dist/assets/Recordings-DalG2LLq.js +0 -1
  119. package/dist/assets/SessionsList-CoUCGhgk.js +0 -2
  120. package/dist/assets/circle-slash-CEYz4tuU.js +0 -1
  121. package/dist/assets/client-Ca-96r9I.js +0 -358
  122. package/dist/assets/crop-C-IooyeF.js +0 -1
  123. package/dist/assets/device-picker-model-Dep-E57-.js +0 -1
  124. package/dist/assets/dist-BSOkO07t.js +0 -1
  125. package/dist/assets/dist-vJSNSRqs.js +0 -358
  126. package/dist/assets/i18n-ATfMbes1.js +0 -1
  127. package/dist/assets/index-CIQcOfrF.js +0 -4
  128. package/dist/assets/index-M0Q7O5pF.css +0 -2
  129. package/dist/assets/location-owned-usage-CPVIHMbS.js +0 -1
  130. package/dist/assets/mount-Dep-E57-.js +0 -1
  131. package/dist/assets/notification-schedule-field-DX8l1Z0c.js +0 -1
  132. package/dist/assets/remoteEntry-B_6E82lR.js +0 -1
  133. package/dist/assets/src-Bt0KiIin.js +0 -67
  134. package/dist/assets/useEventInvalidation-Dep-E57-.js +0 -1
  135. package/dist/assets/user-round-BCHxFTod.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-BvOFi6PY.mjs
3
+ //#region ../types/dist/event-category-DOl51-Ij.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -79,9 +79,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
79
79
  /**
80
80
  * The node's one-shot runner boot check (D877): planned runners against the
81
81
  * process service, `degraded` when any is failed, refused or missing. The
82
- * alert centre turns it into one alert and a direct critical push.
82
+ * alert centre turns it into one critical alert.
83
83
  */
84
84
  EventCategory["SystemRunnerCheck"] = "system.runner-check";
85
+ /**
86
+ * An alert EPISODE opened or closed, emitted by the alert centre for alerts
87
+ * of severity `critical` or `error` (`AlertEpisodePayload`). The alert
88
+ * centre sends no notification of its own: Notification Center turns this
89
+ * into the `alert-critical` / `alert-error` / `alert-critical-resolved`
90
+ * system-event kinds, and reconciles from the alerts store because a bus
91
+ * event may be dropped (D8, D11).
92
+ */
93
+ EventCategory["AlertEpisode"] = "alert.episode";
85
94
  EventCategory["AddonError"] = "addon.error";
86
95
  EventCategory["AddonPageReady"] = "addon.page-ready";
87
96
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5406,7 +5415,7 @@ var ZodIssueCode = {
5406
5415
  var ZodFirstPartyTypeKind;
5407
5416
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5408
5417
  //#endregion
5409
- //#region ../types/dist/sleep-BegKjwUu.mjs
5418
+ //#region ../types/dist/sleep-BxjU_fJM.mjs
5410
5419
  /**
5411
5420
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5412
5421
  * window to float samples (D455).
@@ -7788,6 +7797,12 @@ function normalizeAddonInitResult(result) {
7788
7797
  if (Array.isArray(result)) return { providers: result };
7789
7798
  return result;
7790
7799
  }
7800
+ /**
7801
+ * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7802
+ * and validates them (`share-token.service.ts` builds its enum from this
7803
+ * list); a data plane names the kinds it ACCEPTS in `share`.
7804
+ */
7805
+ var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7791
7806
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
7792
7807
  var PeerBytesTicketSchema = object({
7793
7808
  /** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
@@ -12390,6 +12405,229 @@ var ConvertResultSchema = object({
12390
12405
  files: array(string()).readonly()
12391
12406
  })).readonly()
12392
12407
  });
12408
+ /**
12409
+ * Zod schemas for persisted record types.
12410
+ *
12411
+ * These schemas serve as the single source of truth for types that are
12412
+ * stored in the settings-store backend and retrieved via tRPC. They
12413
+ * replace the manual TypeScript interfaces with schema-derived types,
12414
+ * enabling runtime validation when reading from the backend.
12415
+ *
12416
+ * Convention: each schema is named `<Type>Schema`, the inferred TS type
12417
+ * keeps the original name for backward compatibility.
12418
+ */
12419
+ /**
12420
+ * Auth model (v2 — 2026-05-12 caps-only):
12421
+ *
12422
+ * Two principals:
12423
+ * - `isAdmin: true` — full bypass. Admin scope set is ignored.
12424
+ * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
12425
+ *
12426
+ * No role enum. There used to be `viewer / agent / scoped` and earlier
12427
+ * `super_admin` — collapsed onto the single boolean because every
12428
+ * non-admin caller is governed by the same scope-check rules; the
12429
+ * distinction was only ever used to route role-specific procedures
12430
+ * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12431
+ * with `isAdmin: false` + an explicit scope list.
12432
+ */
12433
+ /** Per-method access flavour. Materialised on every cap method via codegen. */
12434
+ var MethodAccessSchema = _enum([
12435
+ "view",
12436
+ "create",
12437
+ "delete"
12438
+ ]);
12439
+ /**
12440
+ * A single scope grant. Three forms — checked in matcher with OR
12441
+ * semantics; the first match decides whether the call passes:
12442
+ *
12443
+ * - `category` — broadest. `target: 'device' | 'system'` selects every
12444
+ * cap with the matching `scope` declaration. New caps inherit grants
12445
+ * automatically — adding a device cap to the codebase makes it
12446
+ * reachable to every user with `category:device [...]` without a
12447
+ * re-grant. Use this for "family viewer" / "operator" tiers.
12448
+ *
12449
+ * - `addon` — every cap that ships inside a given addon id. Niche;
12450
+ * useful when an integration needs to interact with one specific
12451
+ * addon's surface regardless of how many caps it exports.
12452
+ *
12453
+ * - `capability` — the most precise form. Single cap name. Use for
12454
+ * integration tokens where you want to grant `addons.installPackage`
12455
+ * and nothing else.
12456
+ *
12457
+ * `access` is REQUIRED with min 1 element. `admin` bypass is the
12458
+ * "give me everything" escape; there is no wildcard scope.
12459
+ */
12460
+ var AllowedProviderSchema = union([literal("*"), array(string())]);
12461
+ var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
12462
+ var CapScopeSchema = _enum(["device", "system"]);
12463
+ /**
12464
+ * DeviceSelector (scope model v3 — 2026-08-12).
12465
+ *
12466
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
12467
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
12468
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
12469
+ * AFTER the grant was minted — no re-grant, no re-login.
12470
+ *
12471
+ * - `all` — every device in the deployment. The broad viewer/operator
12472
+ * lever without a `category` grant (a `category` grant also covers device
12473
+ * caps that carry no deviceId; `all` is specifically the device set).
12474
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
12475
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
12476
+ * is NOT covered until the grant is edited.
12477
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
12478
+ * DYNAMIC. A device that changes type, or a new device of the type,
12479
+ * re-resolves on the next request.
12480
+ * - `locations` — every device whose operator-assigned `location` label is
12481
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
12482
+ * null/unset location matches NO `locations` selector.
12483
+ */
12484
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
12485
+ object({ kind: literal("all") }),
12486
+ object({
12487
+ kind: literal("ids"),
12488
+ ids: array(number().int()).min(1)
12489
+ }),
12490
+ object({
12491
+ kind: literal("types"),
12492
+ types: array(_enum(DeviceType)).min(1)
12493
+ }),
12494
+ object({
12495
+ kind: literal("locations"),
12496
+ locations: array(string().min(1)).min(1)
12497
+ })
12498
+ ]);
12499
+ var DeviceTokenScopeSchema = object({
12500
+ type: literal("device"),
12501
+ /** The device SET this grant covers — resolved against the live fleet. */
12502
+ selector: DeviceSelectorSchema,
12503
+ access: array(MethodAccessSchema).min(1),
12504
+ /**
12505
+ * Whether a grant on a PARENT device transparently covers its accessory
12506
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
12507
+ * Direction is parent → children ONLY.
12508
+ *
12509
+ * Absent → the matcher DERIVES it from the access flavour: `view`
12510
+ * inherits (a camera viewer sees the camera's accessories), `create` /
12511
+ * `delete` do NOT (actuating/removing a child is an explicit act the
12512
+ * operator must grant on the child, not inherit from the parent). Set it
12513
+ * explicitly to override that default per grant.
12514
+ */
12515
+ includeLinked: boolean().optional()
12516
+ });
12517
+ /**
12518
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
12519
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
12520
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
12521
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
12522
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
12523
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
12524
+ * migration cannot reach a JWT already in a client's hands; parse-time
12525
+ * migration covers both without a flag day. No cast — the raw object is read
12526
+ * through `Reflect.get` (its static type is `unknown`).
12527
+ */
12528
+ function migrateLegacyTokenScope(raw) {
12529
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
12530
+ if (Reflect.get(raw, "type") !== "device") return raw;
12531
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
12532
+ const targets = Reflect.get(raw, "targets");
12533
+ if (!Array.isArray(targets)) return raw;
12534
+ return {
12535
+ type: "device",
12536
+ selector: {
12537
+ kind: "ids",
12538
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
12539
+ },
12540
+ access: Reflect.get(raw, "access")
12541
+ };
12542
+ }
12543
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
12544
+ object({
12545
+ type: literal("category"),
12546
+ target: CapScopeSchema,
12547
+ access: array(MethodAccessSchema).min(1)
12548
+ }),
12549
+ object({
12550
+ type: literal("capability"),
12551
+ target: string(),
12552
+ access: array(MethodAccessSchema).min(1)
12553
+ }),
12554
+ object({
12555
+ type: literal("addon"),
12556
+ target: string(),
12557
+ access: array(MethodAccessSchema).min(1)
12558
+ }),
12559
+ DeviceTokenScopeSchema
12560
+ ]));
12561
+ object({
12562
+ id: string(),
12563
+ username: string(),
12564
+ passwordHash: string(),
12565
+ /**
12566
+ * Admin bypass. When true, the middleware skips the scope-access
12567
+ * check entirely. There is no other axis of privilege; the legacy
12568
+ * role enum collapsed onto this boolean in v2.
12569
+ */
12570
+ isAdmin: boolean().default(false),
12571
+ allowedProviders: AllowedProviderSchema,
12572
+ allowedDevices: AllowedDevicesSchema,
12573
+ /**
12574
+ * Scopes granted to this user. Admins bypass; their `scopes` is
12575
+ * ignored. Non-admins without scopes are locked out of every
12576
+ * protected call.
12577
+ */
12578
+ scopes: array(TokenScopeSchema).default([]),
12579
+ createdAt: number(),
12580
+ updatedAt: number()
12581
+ });
12582
+ object({
12583
+ id: string(),
12584
+ label: string(),
12585
+ isAdmin: boolean().default(false),
12586
+ allowedProviders: AllowedProviderSchema,
12587
+ allowedDevices: AllowedDevicesSchema,
12588
+ tokenHash: string(),
12589
+ tokenPrefix: string(),
12590
+ createdAt: number(),
12591
+ lastUsedAt: number().optional()
12592
+ });
12593
+ object({
12594
+ id: string(),
12595
+ userId: string(),
12596
+ name: string(),
12597
+ tokenHash: string(),
12598
+ tokenPrefix: string(),
12599
+ scopes: array(TokenScopeSchema),
12600
+ expiresAt: number().nullish(),
12601
+ lastUsedAt: number().nullish(),
12602
+ createdAt: number()
12603
+ });
12604
+ /** What a share-view grant lets its holder see. */
12605
+ var ShareViewGrantSchema = object({
12606
+ kind: _enum(SHARE_VIEW_KINDS),
12607
+ deviceIds: array(number().int().nonnegative()).min(1).max(64),
12608
+ /** Talk-back, opt-in at mint time; absent means off. */
12609
+ talk: boolean().optional()
12610
+ });
12611
+ var ShareViewScopeSchema = object({
12612
+ type: literal("share-view"),
12613
+ grant: ShareViewGrantSchema
12614
+ });
12615
+ var AddonRoutesScopeSchema = object({
12616
+ type: literal("addon-routes"),
12617
+ access: array(MethodAccessSchema).min(1)
12618
+ });
12619
+ var CredentialScopeSchema = union([
12620
+ literal("*"),
12621
+ ShareViewScopeSchema,
12622
+ AddonRoutesScopeSchema,
12623
+ TokenScopeSchema
12624
+ ]);
12625
+ object({
12626
+ kind: literal("credential"),
12627
+ sub: string().min(1),
12628
+ jti: string().min(16),
12629
+ scopes: array(CredentialScopeSchema).min(1)
12630
+ });
12393
12631
  _enum(["new-session", "step-up"]);
12394
12632
  /** The languages the hub's app landing pages are written in (D858). */
12395
12633
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -13106,7 +13344,14 @@ var AlertSeveritySchema = _enum([
13106
13344
  ]);
13107
13345
  var AlertActionSchema = object({
13108
13346
  label: string(),
13109
- href: string().optional()
13347
+ href: string().optional(),
13348
+ /**
13349
+ * How `href` is followed. Absent / `app`: an admin-ui route (client-side).
13350
+ * `server`: a route the HUB serves (an addon HTTP route such as an OAuth
13351
+ * start) — the browser must leave the SPA with a full navigation, because
13352
+ * the SPA has no such route and would bounce to the home page.
13353
+ */
13354
+ navigation: _enum(["app", "server"]).optional()
13110
13355
  });
13111
13356
  var AlertStatusSchema = _enum([
13112
13357
  "active",
@@ -41482,6 +41727,9 @@ var NcSystemEventKindSchema = _enum([
41482
41727
  "server-updated",
41483
41728
  "export-completed",
41484
41729
  "backup-completed",
41730
+ "alert-critical",
41731
+ "alert-error",
41732
+ "alert-critical-resolved",
41485
41733
  "camera-online",
41486
41734
  "camera-offline",
41487
41735
  "camera-disabled",
@@ -43517,202 +43765,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
43517
43765
  auth: "admin"
43518
43766
  }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
43519
43767
  /**
43520
- * Zod schemas for persisted record types.
43521
- *
43522
- * These schemas serve as the single source of truth for types that are
43523
- * stored in the settings-store backend and retrieved via tRPC. They
43524
- * replace the manual TypeScript interfaces with schema-derived types,
43525
- * enabling runtime validation when reading from the backend.
43526
- *
43527
- * Convention: each schema is named `<Type>Schema`, the inferred TS type
43528
- * keeps the original name for backward compatibility.
43529
- */
43530
- /**
43531
- * Auth model (v2 — 2026-05-12 caps-only):
43532
- *
43533
- * Two principals:
43534
- * - `isAdmin: true` — full bypass. Admin scope set is ignored.
43535
- * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
43536
- *
43537
- * No role enum. There used to be `viewer / agent / scoped` and earlier
43538
- * `super_admin` — collapsed onto the single boolean because every
43539
- * non-admin caller is governed by the same scope-check rules; the
43540
- * distinction was only ever used to route role-specific procedures
43541
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
43542
- * with `isAdmin: false` + an explicit scope list.
43543
- */
43544
- /** Per-method access flavour. Materialised on every cap method via codegen. */
43545
- var MethodAccessSchema = _enum([
43546
- "view",
43547
- "create",
43548
- "delete"
43549
- ]);
43550
- /**
43551
- * A single scope grant. Three forms — checked in matcher with OR
43552
- * semantics; the first match decides whether the call passes:
43553
- *
43554
- * - `category` — broadest. `target: 'device' | 'system'` selects every
43555
- * cap with the matching `scope` declaration. New caps inherit grants
43556
- * automatically — adding a device cap to the codebase makes it
43557
- * reachable to every user with `category:device [...]` without a
43558
- * re-grant. Use this for "family viewer" / "operator" tiers.
43559
- *
43560
- * - `addon` — every cap that ships inside a given addon id. Niche;
43561
- * useful when an integration needs to interact with one specific
43562
- * addon's surface regardless of how many caps it exports.
43563
- *
43564
- * - `capability` — the most precise form. Single cap name. Use for
43565
- * integration tokens where you want to grant `addons.installPackage`
43566
- * and nothing else.
43567
- *
43568
- * `access` is REQUIRED with min 1 element. `admin` bypass is the
43569
- * "give me everything" escape; there is no wildcard scope.
43570
- */
43571
- var AllowedProviderSchema = union([literal("*"), array(string())]);
43572
- var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
43573
- var CapScopeSchema = _enum(["device", "system"]);
43574
- /**
43575
- * DeviceSelector (scope model v3 — 2026-08-12).
43576
- *
43577
- * A `device` grant no longer carries a frozen list of deviceIds. It carries
43578
- * a SELECTOR the matcher resolves against the live fleet, so the grant can be
43579
- * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
43580
- * AFTER the grant was minted — no re-grant, no re-login.
43581
- *
43582
- * - `all` — every device in the deployment. The broad viewer/operator
43583
- * lever without a `category` grant (a `category` grant also covers device
43584
- * caps that carry no deviceId; `all` is specifically the device set).
43585
- * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
43586
- * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
43587
- * is NOT covered until the grant is edited.
43588
- * - `types` — every device of a `DeviceType` (e.g. every `camera`).
43589
- * DYNAMIC. A device that changes type, or a new device of the type,
43590
- * re-resolves on the next request.
43591
- * - `locations` — every device whose operator-assigned `location` label is
43592
- * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
43593
- * null/unset location matches NO `locations` selector.
43594
- */
43595
- var DeviceSelectorSchema = discriminatedUnion("kind", [
43596
- object({ kind: literal("all") }),
43597
- object({
43598
- kind: literal("ids"),
43599
- ids: array(number().int()).min(1)
43600
- }),
43601
- object({
43602
- kind: literal("types"),
43603
- types: array(_enum(DeviceType)).min(1)
43604
- }),
43605
- object({
43606
- kind: literal("locations"),
43607
- locations: array(string().min(1)).min(1)
43608
- })
43609
- ]);
43610
- var DeviceTokenScopeSchema = object({
43611
- type: literal("device"),
43612
- /** The device SET this grant covers — resolved against the live fleet. */
43613
- selector: DeviceSelectorSchema,
43614
- access: array(MethodAccessSchema).min(1),
43615
- /**
43616
- * Whether a grant on a PARENT device transparently covers its accessory
43617
- * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
43618
- * Direction is parent → children ONLY.
43619
- *
43620
- * Absent → the matcher DERIVES it from the access flavour: `view`
43621
- * inherits (a camera viewer sees the camera's accessories), `create` /
43622
- * `delete` do NOT (actuating/removing a child is an explicit act the
43623
- * operator must grant on the child, not inherit from the parent). Set it
43624
- * explicitly to override that default per grant.
43625
- */
43626
- includeLinked: boolean().optional()
43627
- });
43628
- /**
43629
- * v2 → v3 lazy migration. A pre-v3 `device` grant carried
43630
- * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
43631
- * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
43632
- * EVERY parse path — stored records AND the JWT-carried scope arrays
43633
- * normalised at the request boundary ({@link normalizeTokenScopes} in
43634
- * `device-selector.ts`). Chosen over a one-time DB migration because a
43635
- * migration cannot reach a JWT already in a client's hands; parse-time
43636
- * migration covers both without a flag day. No cast — the raw object is read
43637
- * through `Reflect.get` (its static type is `unknown`).
43638
- */
43639
- function migrateLegacyTokenScope(raw) {
43640
- if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
43641
- if (Reflect.get(raw, "type") !== "device") return raw;
43642
- if (Reflect.get(raw, "selector") !== void 0) return raw;
43643
- const targets = Reflect.get(raw, "targets");
43644
- if (!Array.isArray(targets)) return raw;
43645
- return {
43646
- type: "device",
43647
- selector: {
43648
- kind: "ids",
43649
- ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
43650
- },
43651
- access: Reflect.get(raw, "access")
43652
- };
43653
- }
43654
- var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
43655
- object({
43656
- type: literal("category"),
43657
- target: CapScopeSchema,
43658
- access: array(MethodAccessSchema).min(1)
43659
- }),
43660
- object({
43661
- type: literal("capability"),
43662
- target: string(),
43663
- access: array(MethodAccessSchema).min(1)
43664
- }),
43665
- object({
43666
- type: literal("addon"),
43667
- target: string(),
43668
- access: array(MethodAccessSchema).min(1)
43669
- }),
43670
- DeviceTokenScopeSchema
43671
- ]));
43672
- object({
43673
- id: string(),
43674
- username: string(),
43675
- passwordHash: string(),
43676
- /**
43677
- * Admin bypass. When true, the middleware skips the scope-access
43678
- * check entirely. There is no other axis of privilege; the legacy
43679
- * role enum collapsed onto this boolean in v2.
43680
- */
43681
- isAdmin: boolean().default(false),
43682
- allowedProviders: AllowedProviderSchema,
43683
- allowedDevices: AllowedDevicesSchema,
43684
- /**
43685
- * Scopes granted to this user. Admins bypass; their `scopes` is
43686
- * ignored. Non-admins without scopes are locked out of every
43687
- * protected call.
43688
- */
43689
- scopes: array(TokenScopeSchema).default([]),
43690
- createdAt: number(),
43691
- updatedAt: number()
43692
- });
43693
- object({
43694
- id: string(),
43695
- label: string(),
43696
- isAdmin: boolean().default(false),
43697
- allowedProviders: AllowedProviderSchema,
43698
- allowedDevices: AllowedDevicesSchema,
43699
- tokenHash: string(),
43700
- tokenPrefix: string(),
43701
- createdAt: number(),
43702
- lastUsedAt: number().optional()
43703
- });
43704
- object({
43705
- id: string(),
43706
- userId: string(),
43707
- name: string(),
43708
- tokenHash: string(),
43709
- tokenPrefix: string(),
43710
- scopes: array(TokenScopeSchema),
43711
- expiresAt: number().nullish(),
43712
- lastUsedAt: number().nullish(),
43713
- createdAt: number()
43714
- });
43715
- /**
43716
43768
  * `oauth-integration` — a collection cap by which an addon declares
43717
43769
  * itself a linkable OAuth client of the hub's core `/oauth2/*` server.
43718
43770
  * Each provider returns a static descriptor; the core enumerates them
@@ -50514,7 +50566,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
50514
50566
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
50515
50567
  kind: "mutation",
50516
50568
  auth: "admin"
50517
- }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
50569
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
50570
+ clear: boolean(),
50571
+ repointLocationId: string().optional()
50572
+ }), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
50518
50573
  kind: "mutation",
50519
50574
  auth: "admin"
50520
50575
  }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
@@ -53949,6 +54004,11 @@ object({
53949
54004
  *
53950
54005
  * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
53951
54006
  * provider refreshes the slice on an interval and eagerly after commands.
54007
+ *
54008
+ * UNKNOWN IS NOT OFF. Every field the appliance reports separately is
54009
+ * nullable: `null` means "not known right now" (the appliance has not said,
54010
+ * the link is down, or the description does not carry it) and is never
54011
+ * rendered or exported as `false` / `0`. `availability` says why.
53952
54012
  */
53953
54013
  var DishwasherStateSchema = _enum([
53954
54014
  "idle",
@@ -53958,112 +54018,227 @@ var DishwasherStateSchema = _enum([
53958
54018
  "error",
53959
54019
  "unavailable"
53960
54020
  ]);
54021
+ /**
54022
+ * The appliance's own operation state, uncollapsed. `state` above is the coarse
54023
+ * view for compact surfaces; this is what the appliance said.
54024
+ */
54025
+ var DishwasherOperationStateSchema = _enum([
54026
+ "Inactive",
54027
+ "Ready",
54028
+ "DelayedStart",
54029
+ "Run",
54030
+ "Pause",
54031
+ "ActionRequired",
54032
+ "Finished",
54033
+ "Error",
54034
+ "Aborting"
54035
+ ]);
54036
+ /**
54037
+ * Why fields may be `null`:
54038
+ * - `available` — the link is up and the description is loaded;
54039
+ * - `offline` — the local link is down (values are unknown, not last-known);
54040
+ * - `description-missing` — the link is up but the appliance's description could not
54041
+ * be loaded, so its values cannot be decoded.
54042
+ */
54043
+ var DishwasherAvailabilitySchema = _enum([
54044
+ "available",
54045
+ "offline",
54046
+ "description-missing"
54047
+ ]);
53961
54048
  var DishwasherConsumableLevelSchema = _enum([
53962
54049
  "ok",
53963
54050
  "low",
53964
54051
  "empty"
53965
54052
  ]);
53966
54053
  object({
54054
+ availability: DishwasherAvailabilitySchema,
54055
+ /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
53967
54056
  state: DishwasherStateSchema,
53968
- /** Active program id/name, or null when none selected / unknown. */
54057
+ /** The appliance's operation state as reported; null when not known. */
54058
+ operationState: DishwasherOperationStateSchema.nullable(),
54059
+ /** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
53969
54060
  program: string().nullable(),
53970
- /** Program tokens the hardware accepts — drives the UI selector. */
54061
+ /** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
54062
+ selectedProgram: string().nullable(),
54063
+ /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
53971
54064
  availablePrograms: array(string()),
53972
- /** Minutes remaining on the active cycle, or null when not running. */
53973
- remainingMinutes: number().int().nonnegative().nullable(),
54065
+ /** Seconds remaining on the active cycle, or null when not running / not known. */
54066
+ remainingSeconds: number().int().nonnegative().nullable(),
54067
+ /** Seconds the delayed start is set to (time until the cycle starts), or null. */
54068
+ delayedStartSeconds: number().int().nonnegative().nullable(),
53974
54069
  /** Cycle completion 0..100, or null when not applicable. */
53975
54070
  progressPercent: number().min(0).max(100).nullable(),
53976
- /** True when the door is reported open. */
53977
- doorOpen: boolean(),
53978
- /** True when remote start is allowed (door closed, power on, etc.). */
53979
- remoteStartAllowed: boolean(),
53980
- /** Main power / switched-on state. */
53981
- powerOn: boolean(),
54071
+ /** True when the door is reported open; null when the door state is not known. */
54072
+ doorOpen: boolean().nullable(),
54073
+ /** True when the door is latched (locked) during a cycle; null when not reported. */
54074
+ doorLocked: boolean().nullable(),
54075
+ /** True when remote start is allowed (door closed, power on, etc.); null when not known. */
54076
+ remoteStartAllowed: boolean().nullable(),
54077
+ /** True when the appliance accepts remote control now; null when not known. */
54078
+ remoteControlActive: boolean().nullable(),
54079
+ /** True while somebody operates the appliance at its panel; null when not reported. */
54080
+ localControlActive: boolean().nullable(),
54081
+ /** Main power / switched-on state; null when not known. */
54082
+ powerOn: boolean().nullable(),
54083
+ /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54084
+ powerState: string().nullable(),
53982
54085
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
53983
54086
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
53984
- halfLoad: boolean(),
53985
- hygienePlus: boolean(),
54087
+ /** Option states: null when the appliance does not expose the option or has not said. */
54088
+ halfLoad: boolean().nullable(),
54089
+ hygienePlus: boolean().nullable(),
53986
54090
  /** Extra dry option when the appliance exposes it. */
53987
- extraDry: boolean(),
54091
+ extraDry: boolean().nullable(),
53988
54092
  /** Intensive zone (lower basket) when the appliance exposes it. */
53989
- intensiveZone: boolean(),
54093
+ intensiveZone: boolean().nullable(),
53990
54094
  /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
53991
- varioSpeedPlus: boolean(),
53992
- /** Child lock (controls disabled on the appliance). */
53993
- childLock: boolean(),
54095
+ varioSpeedPlus: boolean().nullable(),
54096
+ /** Child lock (controls disabled on the appliance); null when not known. */
54097
+ childLock: boolean().nullable(),
54098
+ /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
54099
+ activeEvents: array(string()),
54100
+ /** Numeric error code when the appliance reports one; null otherwise. */
53994
54101
  errorCode: number().nullable(),
54102
+ /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
53995
54103
  errorLabel: string().nullable(),
54104
+ /** Ms epoch of the last value received from the appliance; 0 = never. */
53996
54105
  lastFetchedAt: number()
53997
54106
  });
53998
- DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
54107
+ var DeviceIdSchema = number().int().nonnegative();
54108
+ /** A value a program option or setting can take. */
54109
+ var DishwasherValueSchema = union([
54110
+ boolean(),
54111
+ string(),
54112
+ number()
54113
+ ]);
54114
+ var DishwasherAccessSchema = _enum([
54115
+ "none",
54116
+ "read",
54117
+ "readWrite",
54118
+ "writeOnly",
54119
+ "readStatic"
54120
+ ]);
54121
+ /**
54122
+ * One option or setting the appliance declares, with the constraints its description
54123
+ * gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
54124
+ */
54125
+ var DishwasherOptionDescriptorSchema = object({
54126
+ /** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
54127
+ key: string(),
54128
+ /** Last segment of the key, for display. */
54129
+ name: string(),
54130
+ type: _enum([
54131
+ "boolean",
54132
+ "number",
54133
+ "enum",
54134
+ "string"
54135
+ ]),
54136
+ access: DishwasherAccessSchema,
54137
+ /** The appliance reports this entity as currently available. */
54138
+ available: boolean(),
54139
+ /** Unit the description declares for a number; null when it declares none. */
54140
+ unit: string().nullable(),
54141
+ min: number().nullable(),
54142
+ max: number().nullable(),
54143
+ step: number().nullable(),
54144
+ /** Allowed members of an enum; null for other types. */
54145
+ enumValues: array(string()).nullable(),
54146
+ defaultValue: DishwasherValueSchema.nullable()
54147
+ });
54148
+ var DishwasherProgramSchema = object({
54149
+ /** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
54150
+ key: string(),
54151
+ name: string(),
54152
+ /** The appliance currently offers this program. */
54153
+ available: boolean(),
54154
+ /** The options this program lists, with the program-level access / availability / default. */
54155
+ options: array(DishwasherOptionDescriptorSchema)
54156
+ });
54157
+ var DishwasherOptionsSchema = object({
54158
+ availability: DishwasherAvailabilitySchema,
54159
+ /** What the appliance can be told to do, from the commands its description declares. */
54160
+ supportsStart: boolean(),
54161
+ supportsPause: boolean(),
54162
+ supportsResume: boolean(),
54163
+ supportsStop: boolean(),
54164
+ supportsPower: boolean(),
54165
+ /** Every program the description lists, with its options. */
54166
+ programs: array(DishwasherProgramSchema),
54167
+ /** Every option and setting entity the description lists (programs reference these by key). */
54168
+ options: array(DishwasherOptionDescriptorSchema)
54169
+ });
54170
+ DeviceType.Dishwasher, method(object({
54171
+ deviceId: DeviceIdSchema,
54172
+ program: string().min(1).optional(),
54173
+ options: record(string(), DishwasherValueSchema).optional()
54174
+ }), _void(), {
53999
54175
  kind: "mutation",
54000
54176
  auth: "protected"
54001
- }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
54177
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
54002
54178
  kind: "mutation",
54003
54179
  auth: "protected"
54004
- }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
54180
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
54181
+ kind: "mutation",
54182
+ auth: "protected"
54183
+ }), method(object({ deviceId: DeviceIdSchema }), _void(), {
54005
54184
  kind: "mutation",
54006
54185
  auth: "protected"
54007
54186
  }), method(object({
54008
- deviceId: number().int().nonnegative(),
54187
+ deviceId: DeviceIdSchema,
54009
54188
  program: string().min(1)
54010
54189
  }), _void(), {
54011
54190
  kind: "mutation",
54012
54191
  auth: "protected"
54013
54192
  }), method(object({
54014
- deviceId: number().int().nonnegative(),
54193
+ deviceId: DeviceIdSchema,
54015
54194
  on: boolean()
54016
54195
  }), _void(), {
54017
54196
  kind: "mutation",
54018
54197
  auth: "protected"
54019
54198
  }), method(object({
54020
- deviceId: number().int().nonnegative(),
54199
+ deviceId: DeviceIdSchema,
54021
54200
  on: boolean()
54022
54201
  }), _void(), {
54023
54202
  kind: "mutation",
54024
54203
  auth: "protected"
54025
54204
  }), method(object({
54026
- deviceId: number().int().nonnegative(),
54205
+ deviceId: DeviceIdSchema,
54027
54206
  on: boolean()
54028
54207
  }), _void(), {
54029
54208
  kind: "mutation",
54030
54209
  auth: "protected"
54031
54210
  }), method(object({
54032
- deviceId: number().int().nonnegative(),
54211
+ deviceId: DeviceIdSchema,
54033
54212
  on: boolean()
54034
54213
  }), _void(), {
54035
54214
  kind: "mutation",
54036
54215
  auth: "protected"
54037
54216
  }), method(object({
54038
- deviceId: number().int().nonnegative(),
54217
+ deviceId: DeviceIdSchema,
54039
54218
  on: boolean()
54040
54219
  }), _void(), {
54041
54220
  kind: "mutation",
54042
54221
  auth: "protected"
54043
54222
  }), method(object({
54044
- deviceId: number().int().nonnegative(),
54223
+ deviceId: DeviceIdSchema,
54045
54224
  on: boolean()
54046
54225
  }), _void(), {
54047
54226
  kind: "mutation",
54048
54227
  auth: "protected"
54049
54228
  }), method(object({
54050
- deviceId: number().int().nonnegative(),
54229
+ deviceId: DeviceIdSchema,
54051
54230
  on: boolean()
54052
54231
  }), _void(), {
54053
54232
  kind: "mutation",
54054
54233
  auth: "protected"
54055
54234
  }), method(object({
54056
- deviceId: number().int().nonnegative(),
54235
+ deviceId: DeviceIdSchema,
54057
54236
  key: string().min(1),
54058
- value: union([
54059
- boolean(),
54060
- string(),
54061
- number()
54062
- ])
54237
+ value: DishwasherValueSchema
54063
54238
  }), _void(), {
54064
54239
  kind: "mutation",
54065
54240
  auth: "protected"
54066
- });
54241
+ }), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
54067
54242
  object({
54068
54243
  /** Ms epoch of the last press. null = never observed since this provider started. */
54069
54244
  lastPressedAt: number().nullable(),
@@ -64123,6 +64298,12 @@ Object.freeze({
64123
64298
  addonId: null,
64124
64299
  access: "view"
64125
64300
  },
64301
+ "dishwasher.getOptions": {
64302
+ capName: "dishwasher",
64303
+ capScope: "device",
64304
+ addonId: null,
64305
+ access: "view"
64306
+ },
64126
64307
  "dishwasher.getStatus": {
64127
64308
  capName: "dishwasher",
64128
64309
  capScope: "device",
@@ -64135,6 +64316,12 @@ Object.freeze({
64135
64316
  addonId: null,
64136
64317
  access: "create"
64137
64318
  },
64319
+ "dishwasher.resume": {
64320
+ capName: "dishwasher",
64321
+ capScope: "device",
64322
+ addonId: null,
64323
+ access: "create"
64324
+ },
64138
64325
  "dishwasher.setChildLock": {
64139
64326
  capName: "dishwasher",
64140
64327
  capScope: "device",
@@ -68635,6 +68822,12 @@ Object.freeze({
68635
68822
  addonId: null,
68636
68823
  access: "view"
68637
68824
  },
68825
+ "storageMigration.moverClearance": {
68826
+ capName: "storage-migration",
68827
+ capScope: "system",
68828
+ addonId: null,
68829
+ access: "view"
68830
+ },
68638
68831
  "storageMigration.movers": {
68639
68832
  capName: "storage-migration",
68640
68833
  capScope: "system",
@@ -70828,6 +71021,11 @@ Object.freeze({
70828
71021
  form: "single",
70829
71022
  optional: false
70830
71023
  }],
71024
+ "dishwasher.getOptions": [{
71025
+ name: "deviceId",
71026
+ form: "single",
71027
+ optional: false
71028
+ }],
70831
71029
  "dishwasher.getStatus": [{
70832
71030
  name: "deviceId",
70833
71031
  form: "single",
@@ -70838,6 +71036,11 @@ Object.freeze({
70838
71036
  form: "single",
70839
71037
  optional: false
70840
71038
  }],
71039
+ "dishwasher.resume": [{
71040
+ name: "deviceId",
71041
+ form: "single",
71042
+ optional: false
71043
+ }],
70841
71044
  "dishwasher.setChildLock": [{
70842
71045
  name: "deviceId",
70843
71046
  form: "single",
@@ -72924,6 +73127,9 @@ new Map(Object.entries({
72924
73127
  "wrapper-update-available": "system",
72925
73128
  "backup-completed": "system",
72926
73129
  "export-completed": "system",
73130
+ "alert-critical": "system",
73131
+ "alert-error": "system",
73132
+ "alert-critical-resolved": "system",
72927
73133
  "storage-location-low": "system",
72928
73134
  "storage-location-critical": "system",
72929
73135
  "storage-location-ok": "system",
@@ -73048,6 +73254,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73048
73254
  "storage-location-ok"
73049
73255
  ]
73050
73256
  },
73257
+ {
73258
+ id: "alerts",
73259
+ family: "system",
73260
+ label: "Alerts",
73261
+ kinds: [
73262
+ "alert-critical",
73263
+ "alert-error",
73264
+ "alert-critical-resolved"
73265
+ ]
73266
+ },
73051
73267
  {
73052
73268
  id: "alarm",
73053
73269
  family: "alarm",
@@ -73092,6 +73308,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
73092
73308
  return [[descriptor.kind, field]];
73093
73309
  })));
73094
73310
  Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
73311
+ object({
73312
+ phase: _enum(["raised", "resolved"]),
73313
+ episodeId: string().min(1),
73314
+ alertId: string().min(1),
73315
+ severity: AlertSeveritySchema,
73316
+ category: string(),
73317
+ title: string(),
73318
+ message: string(),
73319
+ sourceType: string().optional(),
73320
+ sourceId: string().optional(),
73321
+ nodeId: string().optional(),
73322
+ /** The alert's own action link (where the operator acts on it), when it has one. */
73323
+ actionUrl: string().optional(),
73324
+ at: number()
73325
+ });
73095
73326
  var RULE_BODY_ONLY = ["body"];
73096
73327
  var RULE_TEXT = ["title", "body"];
73097
73328
  var BATTERY = ["device-battery-low", "device-battery-normal"];
@@ -73101,6 +73332,11 @@ var TANK = [
73101
73332
  "device-tank-full",
73102
73333
  "device-tank-normal"
73103
73334
  ];
73335
+ var ALERT_EPISODE = [
73336
+ "alert-critical",
73337
+ "alert-error",
73338
+ "alert-critical-resolved"
73339
+ ];
73104
73340
  var UPDATES = [
73105
73341
  "addon-update-available",
73106
73342
  "server-update-available",
@@ -73293,14 +73529,14 @@ var STATE_SUMMARY_VARS = [
73293
73529
  ([...RULE_TEXT], [...CONSUMABLE]),
73294
73530
  ([...RULE_TEXT], [...TANK]),
73295
73531
  [...RULE_TEXT],
73296
- ([...RULE_TEXT], [...UPDATES]),
73297
- ([...RULE_TEXT], [...UPDATES]),
73298
- [...RULE_TEXT],
73532
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
73533
+ ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
73299
73534
  [...RULE_TEXT],
73300
73535
  [...RULE_TEXT],
73301
73536
  [...RULE_TEXT],
73302
73537
  [...RULE_TEXT],
73303
73538
  [...RULE_TEXT],
73539
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73304
73540
  [...RULE_TEXT],
73305
73541
  [...RULE_TEXT],
73306
73542
  [...RULE_TEXT],
@@ -73318,7 +73554,11 @@ var STATE_SUMMARY_VARS = [
73318
73554
  [...RULE_TEXT],
73319
73555
  [...RULE_TEXT],
73320
73556
  [...RULE_TEXT],
73321
- [...RULE_TEXT],
73557
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73558
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73559
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73560
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73561
+ ([...RULE_TEXT], [...ALERT_EPISODE]),
73322
73562
  [...RULE_TEXT],
73323
73563
  [...RULE_TEXT],
73324
73564
  [...RULE_TEXT],
@@ -73877,7 +74117,7 @@ var AdminUIAddon = class extends BaseAddon {
73877
74117
  capability: adminUiCapability,
73878
74118
  provider: {
73879
74119
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
73880
- getVersion: async () => ({ version: "1.2.439" })
74120
+ getVersion: async () => ({ version: "1.2.441" })
73881
74121
  }
73882
74122
  }];
73883
74123
  }