@camstack/addon-pipeline-orchestrator 1.2.603 → 1.2.605
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.
- package/assets/viewer/.viewer-current-files.json +2 -2
- package/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/{__common-9186121cdd8e84b37963670cd7556b7e.js → __common-9209f030f5701da0e2e0d599fceea2f3.js} +9 -9
- package/assets/viewer/_expo/static/js/web/{index-5ea107bdcc99730e8fa2e5ef6ddb4a89.js → index-e0ee1e84f97c3608e8d3f41b36e5cf8e.js} +2 -2
- package/assets/viewer/index.html +1 -1
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Bg5karC8.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CX6Mz1A2.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Wjbq284_.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DOO3_jHl.mjs +26 -0
- package/dist/{hostInit-BvlQyOZn.mjs → hostInit-BPiBtFhh.mjs} +3 -3
- package/dist/index.js +480 -240
- package/dist/index.mjs +480 -240
- package/dist/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/assets/viewer/_expo/static/js/web/cameras-b1835891e5675d9822c90116cac3b30c.js +0 -21
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BLLm0SDo.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DaLsVu7q.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createHash, randomUUID } from "node:crypto";
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -81,9 +81,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
81
81
|
/**
|
|
82
82
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
83
83
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
84
|
-
* alert centre turns it into one
|
|
84
|
+
* alert centre turns it into one critical alert.
|
|
85
85
|
*/
|
|
86
86
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
87
|
+
/**
|
|
88
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
89
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
90
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
91
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
92
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
93
|
+
* event may be dropped (D8, D11).
|
|
94
|
+
*/
|
|
95
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
87
96
|
EventCategory["AddonError"] = "addon.error";
|
|
88
97
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
89
98
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5541,7 +5550,7 @@ var ZodIssueCode = {
|
|
|
5541
5550
|
var ZodFirstPartyTypeKind;
|
|
5542
5551
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5543
5552
|
//#endregion
|
|
5544
|
-
//#region ../types/dist/sleep-
|
|
5553
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5545
5554
|
/**
|
|
5546
5555
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5547
5556
|
* window to float samples (D455).
|
|
@@ -7939,6 +7948,12 @@ function normalizeAddonInitResult(result) {
|
|
|
7939
7948
|
if (Array.isArray(result)) return { providers: result };
|
|
7940
7949
|
return result;
|
|
7941
7950
|
}
|
|
7951
|
+
/**
|
|
7952
|
+
* The share-view scope kinds a `csv_*` share token can carry. The hub mints
|
|
7953
|
+
* and validates them (`share-token.service.ts` builds its enum from this
|
|
7954
|
+
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7955
|
+
*/
|
|
7956
|
+
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7942
7957
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
7943
7958
|
var PeerBytesTicketSchema = object({
|
|
7944
7959
|
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
@@ -13788,6 +13803,229 @@ var ConvertResultSchema = object({
|
|
|
13788
13803
|
files: array(string()).readonly()
|
|
13789
13804
|
})).readonly()
|
|
13790
13805
|
});
|
|
13806
|
+
/**
|
|
13807
|
+
* Zod schemas for persisted record types.
|
|
13808
|
+
*
|
|
13809
|
+
* These schemas serve as the single source of truth for types that are
|
|
13810
|
+
* stored in the settings-store backend and retrieved via tRPC. They
|
|
13811
|
+
* replace the manual TypeScript interfaces with schema-derived types,
|
|
13812
|
+
* enabling runtime validation when reading from the backend.
|
|
13813
|
+
*
|
|
13814
|
+
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
13815
|
+
* keeps the original name for backward compatibility.
|
|
13816
|
+
*/
|
|
13817
|
+
/**
|
|
13818
|
+
* Auth model (v2 — 2026-05-12 caps-only):
|
|
13819
|
+
*
|
|
13820
|
+
* Two principals:
|
|
13821
|
+
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
13822
|
+
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
13823
|
+
*
|
|
13824
|
+
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
13825
|
+
* `super_admin` — collapsed onto the single boolean because every
|
|
13826
|
+
* non-admin caller is governed by the same scope-check rules; the
|
|
13827
|
+
* distinction was only ever used to route role-specific procedures
|
|
13828
|
+
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
13829
|
+
* with `isAdmin: false` + an explicit scope list.
|
|
13830
|
+
*/
|
|
13831
|
+
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
13832
|
+
var MethodAccessSchema = _enum([
|
|
13833
|
+
"view",
|
|
13834
|
+
"create",
|
|
13835
|
+
"delete"
|
|
13836
|
+
]);
|
|
13837
|
+
/**
|
|
13838
|
+
* A single scope grant. Three forms — checked in matcher with OR
|
|
13839
|
+
* semantics; the first match decides whether the call passes:
|
|
13840
|
+
*
|
|
13841
|
+
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
13842
|
+
* cap with the matching `scope` declaration. New caps inherit grants
|
|
13843
|
+
* automatically — adding a device cap to the codebase makes it
|
|
13844
|
+
* reachable to every user with `category:device [...]` without a
|
|
13845
|
+
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
13846
|
+
*
|
|
13847
|
+
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
13848
|
+
* useful when an integration needs to interact with one specific
|
|
13849
|
+
* addon's surface regardless of how many caps it exports.
|
|
13850
|
+
*
|
|
13851
|
+
* - `capability` — the most precise form. Single cap name. Use for
|
|
13852
|
+
* integration tokens where you want to grant `addons.installPackage`
|
|
13853
|
+
* and nothing else.
|
|
13854
|
+
*
|
|
13855
|
+
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
13856
|
+
* "give me everything" escape; there is no wildcard scope.
|
|
13857
|
+
*/
|
|
13858
|
+
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
13859
|
+
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
13860
|
+
var CapScopeSchema = _enum(["device", "system"]);
|
|
13861
|
+
/**
|
|
13862
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
13863
|
+
*
|
|
13864
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
13865
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
13866
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
13867
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
13868
|
+
*
|
|
13869
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
13870
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
13871
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
13872
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
13873
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
13874
|
+
* is NOT covered until the grant is edited.
|
|
13875
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
13876
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
13877
|
+
* re-resolves on the next request.
|
|
13878
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
13879
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
13880
|
+
* null/unset location matches NO `locations` selector.
|
|
13881
|
+
*/
|
|
13882
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
13883
|
+
object({ kind: literal("all") }),
|
|
13884
|
+
object({
|
|
13885
|
+
kind: literal("ids"),
|
|
13886
|
+
ids: array(number().int()).min(1)
|
|
13887
|
+
}),
|
|
13888
|
+
object({
|
|
13889
|
+
kind: literal("types"),
|
|
13890
|
+
types: array(_enum(DeviceType)).min(1)
|
|
13891
|
+
}),
|
|
13892
|
+
object({
|
|
13893
|
+
kind: literal("locations"),
|
|
13894
|
+
locations: array(string().min(1)).min(1)
|
|
13895
|
+
})
|
|
13896
|
+
]);
|
|
13897
|
+
var DeviceTokenScopeSchema = object({
|
|
13898
|
+
type: literal("device"),
|
|
13899
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
13900
|
+
selector: DeviceSelectorSchema,
|
|
13901
|
+
access: array(MethodAccessSchema).min(1),
|
|
13902
|
+
/**
|
|
13903
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
13904
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
13905
|
+
* Direction is parent → children ONLY.
|
|
13906
|
+
*
|
|
13907
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
13908
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
13909
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
13910
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
13911
|
+
* explicitly to override that default per grant.
|
|
13912
|
+
*/
|
|
13913
|
+
includeLinked: boolean().optional()
|
|
13914
|
+
});
|
|
13915
|
+
/**
|
|
13916
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
13917
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
13918
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
13919
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
13920
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
13921
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
13922
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
13923
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
13924
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
13925
|
+
*/
|
|
13926
|
+
function migrateLegacyTokenScope(raw) {
|
|
13927
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
13928
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
13929
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
13930
|
+
const targets = Reflect.get(raw, "targets");
|
|
13931
|
+
if (!Array.isArray(targets)) return raw;
|
|
13932
|
+
return {
|
|
13933
|
+
type: "device",
|
|
13934
|
+
selector: {
|
|
13935
|
+
kind: "ids",
|
|
13936
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
13937
|
+
},
|
|
13938
|
+
access: Reflect.get(raw, "access")
|
|
13939
|
+
};
|
|
13940
|
+
}
|
|
13941
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
13942
|
+
object({
|
|
13943
|
+
type: literal("category"),
|
|
13944
|
+
target: CapScopeSchema,
|
|
13945
|
+
access: array(MethodAccessSchema).min(1)
|
|
13946
|
+
}),
|
|
13947
|
+
object({
|
|
13948
|
+
type: literal("capability"),
|
|
13949
|
+
target: string(),
|
|
13950
|
+
access: array(MethodAccessSchema).min(1)
|
|
13951
|
+
}),
|
|
13952
|
+
object({
|
|
13953
|
+
type: literal("addon"),
|
|
13954
|
+
target: string(),
|
|
13955
|
+
access: array(MethodAccessSchema).min(1)
|
|
13956
|
+
}),
|
|
13957
|
+
DeviceTokenScopeSchema
|
|
13958
|
+
]));
|
|
13959
|
+
object({
|
|
13960
|
+
id: string(),
|
|
13961
|
+
username: string(),
|
|
13962
|
+
passwordHash: string(),
|
|
13963
|
+
/**
|
|
13964
|
+
* Admin bypass. When true, the middleware skips the scope-access
|
|
13965
|
+
* check entirely. There is no other axis of privilege; the legacy
|
|
13966
|
+
* role enum collapsed onto this boolean in v2.
|
|
13967
|
+
*/
|
|
13968
|
+
isAdmin: boolean().default(false),
|
|
13969
|
+
allowedProviders: AllowedProviderSchema,
|
|
13970
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13971
|
+
/**
|
|
13972
|
+
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
13973
|
+
* ignored. Non-admins without scopes are locked out of every
|
|
13974
|
+
* protected call.
|
|
13975
|
+
*/
|
|
13976
|
+
scopes: array(TokenScopeSchema).default([]),
|
|
13977
|
+
createdAt: number(),
|
|
13978
|
+
updatedAt: number()
|
|
13979
|
+
});
|
|
13980
|
+
object({
|
|
13981
|
+
id: string(),
|
|
13982
|
+
label: string(),
|
|
13983
|
+
isAdmin: boolean().default(false),
|
|
13984
|
+
allowedProviders: AllowedProviderSchema,
|
|
13985
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13986
|
+
tokenHash: string(),
|
|
13987
|
+
tokenPrefix: string(),
|
|
13988
|
+
createdAt: number(),
|
|
13989
|
+
lastUsedAt: number().optional()
|
|
13990
|
+
});
|
|
13991
|
+
object({
|
|
13992
|
+
id: string(),
|
|
13993
|
+
userId: string(),
|
|
13994
|
+
name: string(),
|
|
13995
|
+
tokenHash: string(),
|
|
13996
|
+
tokenPrefix: string(),
|
|
13997
|
+
scopes: array(TokenScopeSchema),
|
|
13998
|
+
expiresAt: number().nullish(),
|
|
13999
|
+
lastUsedAt: number().nullish(),
|
|
14000
|
+
createdAt: number()
|
|
14001
|
+
});
|
|
14002
|
+
/** What a share-view grant lets its holder see. */
|
|
14003
|
+
var ShareViewGrantSchema = object({
|
|
14004
|
+
kind: _enum(SHARE_VIEW_KINDS),
|
|
14005
|
+
deviceIds: array(number().int().nonnegative()).min(1).max(64),
|
|
14006
|
+
/** Talk-back, opt-in at mint time; absent means off. */
|
|
14007
|
+
talk: boolean().optional()
|
|
14008
|
+
});
|
|
14009
|
+
var ShareViewScopeSchema = object({
|
|
14010
|
+
type: literal("share-view"),
|
|
14011
|
+
grant: ShareViewGrantSchema
|
|
14012
|
+
});
|
|
14013
|
+
var AddonRoutesScopeSchema = object({
|
|
14014
|
+
type: literal("addon-routes"),
|
|
14015
|
+
access: array(MethodAccessSchema).min(1)
|
|
14016
|
+
});
|
|
14017
|
+
var CredentialScopeSchema = union([
|
|
14018
|
+
literal("*"),
|
|
14019
|
+
ShareViewScopeSchema,
|
|
14020
|
+
AddonRoutesScopeSchema,
|
|
14021
|
+
TokenScopeSchema
|
|
14022
|
+
]);
|
|
14023
|
+
object({
|
|
14024
|
+
kind: literal("credential"),
|
|
14025
|
+
sub: string().min(1),
|
|
14026
|
+
jti: string().min(16),
|
|
14027
|
+
scopes: array(CredentialScopeSchema).min(1)
|
|
14028
|
+
});
|
|
13791
14029
|
_enum(["new-session", "step-up"]);
|
|
13792
14030
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13793
14031
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -14523,7 +14761,14 @@ var AlertSeveritySchema = _enum([
|
|
|
14523
14761
|
]);
|
|
14524
14762
|
var AlertActionSchema = object({
|
|
14525
14763
|
label: string(),
|
|
14526
|
-
href: string().optional()
|
|
14764
|
+
href: string().optional(),
|
|
14765
|
+
/**
|
|
14766
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
14767
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
14768
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
14769
|
+
* the SPA has no such route and would bounce to the home page.
|
|
14770
|
+
*/
|
|
14771
|
+
navigation: _enum(["app", "server"]).optional()
|
|
14527
14772
|
});
|
|
14528
14773
|
var AlertStatusSchema = _enum([
|
|
14529
14774
|
"active",
|
|
@@ -42937,6 +43182,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42937
43182
|
"server-updated",
|
|
42938
43183
|
"export-completed",
|
|
42939
43184
|
"backup-completed",
|
|
43185
|
+
"alert-critical",
|
|
43186
|
+
"alert-error",
|
|
43187
|
+
"alert-critical-resolved",
|
|
42940
43188
|
"camera-online",
|
|
42941
43189
|
"camera-offline",
|
|
42942
43190
|
"camera-disabled",
|
|
@@ -44972,202 +45220,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
44972
45220
|
auth: "admin"
|
|
44973
45221
|
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
44974
45222
|
/**
|
|
44975
|
-
* Zod schemas for persisted record types.
|
|
44976
|
-
*
|
|
44977
|
-
* These schemas serve as the single source of truth for types that are
|
|
44978
|
-
* stored in the settings-store backend and retrieved via tRPC. They
|
|
44979
|
-
* replace the manual TypeScript interfaces with schema-derived types,
|
|
44980
|
-
* enabling runtime validation when reading from the backend.
|
|
44981
|
-
*
|
|
44982
|
-
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
44983
|
-
* keeps the original name for backward compatibility.
|
|
44984
|
-
*/
|
|
44985
|
-
/**
|
|
44986
|
-
* Auth model (v2 — 2026-05-12 caps-only):
|
|
44987
|
-
*
|
|
44988
|
-
* Two principals:
|
|
44989
|
-
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
44990
|
-
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
44991
|
-
*
|
|
44992
|
-
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
44993
|
-
* `super_admin` — collapsed onto the single boolean because every
|
|
44994
|
-
* non-admin caller is governed by the same scope-check rules; the
|
|
44995
|
-
* distinction was only ever used to route role-specific procedures
|
|
44996
|
-
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
44997
|
-
* with `isAdmin: false` + an explicit scope list.
|
|
44998
|
-
*/
|
|
44999
|
-
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
45000
|
-
var MethodAccessSchema = _enum([
|
|
45001
|
-
"view",
|
|
45002
|
-
"create",
|
|
45003
|
-
"delete"
|
|
45004
|
-
]);
|
|
45005
|
-
/**
|
|
45006
|
-
* A single scope grant. Three forms — checked in matcher with OR
|
|
45007
|
-
* semantics; the first match decides whether the call passes:
|
|
45008
|
-
*
|
|
45009
|
-
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
45010
|
-
* cap with the matching `scope` declaration. New caps inherit grants
|
|
45011
|
-
* automatically — adding a device cap to the codebase makes it
|
|
45012
|
-
* reachable to every user with `category:device [...]` without a
|
|
45013
|
-
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
45014
|
-
*
|
|
45015
|
-
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
45016
|
-
* useful when an integration needs to interact with one specific
|
|
45017
|
-
* addon's surface regardless of how many caps it exports.
|
|
45018
|
-
*
|
|
45019
|
-
* - `capability` — the most precise form. Single cap name. Use for
|
|
45020
|
-
* integration tokens where you want to grant `addons.installPackage`
|
|
45021
|
-
* and nothing else.
|
|
45022
|
-
*
|
|
45023
|
-
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
45024
|
-
* "give me everything" escape; there is no wildcard scope.
|
|
45025
|
-
*/
|
|
45026
|
-
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
45027
|
-
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
45028
|
-
var CapScopeSchema = _enum(["device", "system"]);
|
|
45029
|
-
/**
|
|
45030
|
-
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
45031
|
-
*
|
|
45032
|
-
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
45033
|
-
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
45034
|
-
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
45035
|
-
* AFTER the grant was minted — no re-grant, no re-login.
|
|
45036
|
-
*
|
|
45037
|
-
* - `all` — every device in the deployment. The broad viewer/operator
|
|
45038
|
-
* lever without a `category` grant (a `category` grant also covers device
|
|
45039
|
-
* caps that carry no deviceId; `all` is specifically the device set).
|
|
45040
|
-
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
45041
|
-
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
45042
|
-
* is NOT covered until the grant is edited.
|
|
45043
|
-
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
45044
|
-
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
45045
|
-
* re-resolves on the next request.
|
|
45046
|
-
* - `locations` — every device whose operator-assigned `location` label is
|
|
45047
|
-
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
45048
|
-
* null/unset location matches NO `locations` selector.
|
|
45049
|
-
*/
|
|
45050
|
-
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
45051
|
-
object({ kind: literal("all") }),
|
|
45052
|
-
object({
|
|
45053
|
-
kind: literal("ids"),
|
|
45054
|
-
ids: array(number().int()).min(1)
|
|
45055
|
-
}),
|
|
45056
|
-
object({
|
|
45057
|
-
kind: literal("types"),
|
|
45058
|
-
types: array(_enum(DeviceType)).min(1)
|
|
45059
|
-
}),
|
|
45060
|
-
object({
|
|
45061
|
-
kind: literal("locations"),
|
|
45062
|
-
locations: array(string().min(1)).min(1)
|
|
45063
|
-
})
|
|
45064
|
-
]);
|
|
45065
|
-
var DeviceTokenScopeSchema = object({
|
|
45066
|
-
type: literal("device"),
|
|
45067
|
-
/** The device SET this grant covers — resolved against the live fleet. */
|
|
45068
|
-
selector: DeviceSelectorSchema,
|
|
45069
|
-
access: array(MethodAccessSchema).min(1),
|
|
45070
|
-
/**
|
|
45071
|
-
* Whether a grant on a PARENT device transparently covers its accessory
|
|
45072
|
-
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
45073
|
-
* Direction is parent → children ONLY.
|
|
45074
|
-
*
|
|
45075
|
-
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
45076
|
-
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
45077
|
-
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
45078
|
-
* operator must grant on the child, not inherit from the parent). Set it
|
|
45079
|
-
* explicitly to override that default per grant.
|
|
45080
|
-
*/
|
|
45081
|
-
includeLinked: boolean().optional()
|
|
45082
|
-
});
|
|
45083
|
-
/**
|
|
45084
|
-
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
45085
|
-
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
45086
|
-
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
45087
|
-
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
45088
|
-
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
45089
|
-
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
45090
|
-
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
45091
|
-
* migration covers both without a flag day. No cast — the raw object is read
|
|
45092
|
-
* through `Reflect.get` (its static type is `unknown`).
|
|
45093
|
-
*/
|
|
45094
|
-
function migrateLegacyTokenScope(raw) {
|
|
45095
|
-
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
45096
|
-
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
45097
|
-
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
45098
|
-
const targets = Reflect.get(raw, "targets");
|
|
45099
|
-
if (!Array.isArray(targets)) return raw;
|
|
45100
|
-
return {
|
|
45101
|
-
type: "device",
|
|
45102
|
-
selector: {
|
|
45103
|
-
kind: "ids",
|
|
45104
|
-
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
45105
|
-
},
|
|
45106
|
-
access: Reflect.get(raw, "access")
|
|
45107
|
-
};
|
|
45108
|
-
}
|
|
45109
|
-
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
45110
|
-
object({
|
|
45111
|
-
type: literal("category"),
|
|
45112
|
-
target: CapScopeSchema,
|
|
45113
|
-
access: array(MethodAccessSchema).min(1)
|
|
45114
|
-
}),
|
|
45115
|
-
object({
|
|
45116
|
-
type: literal("capability"),
|
|
45117
|
-
target: string(),
|
|
45118
|
-
access: array(MethodAccessSchema).min(1)
|
|
45119
|
-
}),
|
|
45120
|
-
object({
|
|
45121
|
-
type: literal("addon"),
|
|
45122
|
-
target: string(),
|
|
45123
|
-
access: array(MethodAccessSchema).min(1)
|
|
45124
|
-
}),
|
|
45125
|
-
DeviceTokenScopeSchema
|
|
45126
|
-
]));
|
|
45127
|
-
object({
|
|
45128
|
-
id: string(),
|
|
45129
|
-
username: string(),
|
|
45130
|
-
passwordHash: string(),
|
|
45131
|
-
/**
|
|
45132
|
-
* Admin bypass. When true, the middleware skips the scope-access
|
|
45133
|
-
* check entirely. There is no other axis of privilege; the legacy
|
|
45134
|
-
* role enum collapsed onto this boolean in v2.
|
|
45135
|
-
*/
|
|
45136
|
-
isAdmin: boolean().default(false),
|
|
45137
|
-
allowedProviders: AllowedProviderSchema,
|
|
45138
|
-
allowedDevices: AllowedDevicesSchema,
|
|
45139
|
-
/**
|
|
45140
|
-
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
45141
|
-
* ignored. Non-admins without scopes are locked out of every
|
|
45142
|
-
* protected call.
|
|
45143
|
-
*/
|
|
45144
|
-
scopes: array(TokenScopeSchema).default([]),
|
|
45145
|
-
createdAt: number(),
|
|
45146
|
-
updatedAt: number()
|
|
45147
|
-
});
|
|
45148
|
-
object({
|
|
45149
|
-
id: string(),
|
|
45150
|
-
label: string(),
|
|
45151
|
-
isAdmin: boolean().default(false),
|
|
45152
|
-
allowedProviders: AllowedProviderSchema,
|
|
45153
|
-
allowedDevices: AllowedDevicesSchema,
|
|
45154
|
-
tokenHash: string(),
|
|
45155
|
-
tokenPrefix: string(),
|
|
45156
|
-
createdAt: number(),
|
|
45157
|
-
lastUsedAt: number().optional()
|
|
45158
|
-
});
|
|
45159
|
-
object({
|
|
45160
|
-
id: string(),
|
|
45161
|
-
userId: string(),
|
|
45162
|
-
name: string(),
|
|
45163
|
-
tokenHash: string(),
|
|
45164
|
-
tokenPrefix: string(),
|
|
45165
|
-
scopes: array(TokenScopeSchema),
|
|
45166
|
-
expiresAt: number().nullish(),
|
|
45167
|
-
lastUsedAt: number().nullish(),
|
|
45168
|
-
createdAt: number()
|
|
45169
|
-
});
|
|
45170
|
-
/**
|
|
45171
45223
|
* `oauth-integration` — a collection cap by which an addon declares
|
|
45172
45224
|
* itself a linkable OAuth client of the hub's core `/oauth2/*` server.
|
|
45173
45225
|
* Each provider returns a static descriptor; the core enumerates them
|
|
@@ -52919,7 +52971,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
52919
52971
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
52920
52972
|
kind: "mutation",
|
|
52921
52973
|
auth: "admin"
|
|
52922
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
52974
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
52975
|
+
clear: boolean(),
|
|
52976
|
+
repointLocationId: string().optional()
|
|
52977
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
52923
52978
|
kind: "mutation",
|
|
52924
52979
|
auth: "admin"
|
|
52925
52980
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -56354,6 +56409,11 @@ object({
|
|
|
56354
56409
|
*
|
|
56355
56410
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
56356
56411
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
56412
|
+
*
|
|
56413
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
56414
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
56415
|
+
* the link is down, or the description does not carry it) and is never
|
|
56416
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
56357
56417
|
*/
|
|
56358
56418
|
var DishwasherStateSchema = _enum([
|
|
56359
56419
|
"idle",
|
|
@@ -56363,112 +56423,227 @@ var DishwasherStateSchema = _enum([
|
|
|
56363
56423
|
"error",
|
|
56364
56424
|
"unavailable"
|
|
56365
56425
|
]);
|
|
56426
|
+
/**
|
|
56427
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
56428
|
+
* view for compact surfaces; this is what the appliance said.
|
|
56429
|
+
*/
|
|
56430
|
+
var DishwasherOperationStateSchema = _enum([
|
|
56431
|
+
"Inactive",
|
|
56432
|
+
"Ready",
|
|
56433
|
+
"DelayedStart",
|
|
56434
|
+
"Run",
|
|
56435
|
+
"Pause",
|
|
56436
|
+
"ActionRequired",
|
|
56437
|
+
"Finished",
|
|
56438
|
+
"Error",
|
|
56439
|
+
"Aborting"
|
|
56440
|
+
]);
|
|
56441
|
+
/**
|
|
56442
|
+
* Why fields may be `null`:
|
|
56443
|
+
* - `available` — the link is up and the description is loaded;
|
|
56444
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
56445
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
56446
|
+
* be loaded, so its values cannot be decoded.
|
|
56447
|
+
*/
|
|
56448
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
56449
|
+
"available",
|
|
56450
|
+
"offline",
|
|
56451
|
+
"description-missing"
|
|
56452
|
+
]);
|
|
56366
56453
|
var DishwasherConsumableLevelSchema = _enum([
|
|
56367
56454
|
"ok",
|
|
56368
56455
|
"low",
|
|
56369
56456
|
"empty"
|
|
56370
56457
|
]);
|
|
56371
56458
|
object({
|
|
56459
|
+
availability: DishwasherAvailabilitySchema,
|
|
56460
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
56372
56461
|
state: DishwasherStateSchema,
|
|
56373
|
-
/**
|
|
56462
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
56463
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
56464
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
56374
56465
|
program: string().nullable(),
|
|
56375
|
-
/**
|
|
56466
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
56467
|
+
selectedProgram: string().nullable(),
|
|
56468
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
56376
56469
|
availablePrograms: array(string()),
|
|
56377
|
-
/**
|
|
56378
|
-
|
|
56470
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
56471
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
56472
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
56473
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
56379
56474
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
56380
56475
|
progressPercent: number().min(0).max(100).nullable(),
|
|
56381
|
-
/** True when the door is reported open. */
|
|
56382
|
-
doorOpen: boolean(),
|
|
56383
|
-
/** True when
|
|
56384
|
-
|
|
56385
|
-
/**
|
|
56386
|
-
|
|
56476
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
56477
|
+
doorOpen: boolean().nullable(),
|
|
56478
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
56479
|
+
doorLocked: boolean().nullable(),
|
|
56480
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
56481
|
+
remoteStartAllowed: boolean().nullable(),
|
|
56482
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
56483
|
+
remoteControlActive: boolean().nullable(),
|
|
56484
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56485
|
+
localControlActive: boolean().nullable(),
|
|
56486
|
+
/** Main power / switched-on state; null when not known. */
|
|
56487
|
+
powerOn: boolean().nullable(),
|
|
56488
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56489
|
+
powerState: string().nullable(),
|
|
56387
56490
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56388
56491
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56389
|
-
|
|
56390
|
-
|
|
56492
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56493
|
+
halfLoad: boolean().nullable(),
|
|
56494
|
+
hygienePlus: boolean().nullable(),
|
|
56391
56495
|
/** Extra dry option when the appliance exposes it. */
|
|
56392
|
-
extraDry: boolean(),
|
|
56496
|
+
extraDry: boolean().nullable(),
|
|
56393
56497
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56394
|
-
intensiveZone: boolean(),
|
|
56498
|
+
intensiveZone: boolean().nullable(),
|
|
56395
56499
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56396
|
-
varioSpeedPlus: boolean(),
|
|
56397
|
-
/** Child lock (controls disabled on the appliance). */
|
|
56398
|
-
childLock: boolean(),
|
|
56500
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56501
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56502
|
+
childLock: boolean().nullable(),
|
|
56503
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56504
|
+
activeEvents: array(string()),
|
|
56505
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
56399
56506
|
errorCode: number().nullable(),
|
|
56507
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
56400
56508
|
errorLabel: string().nullable(),
|
|
56509
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
56401
56510
|
lastFetchedAt: number()
|
|
56402
56511
|
});
|
|
56403
|
-
|
|
56512
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56513
|
+
/** A value a program option or setting can take. */
|
|
56514
|
+
var DishwasherValueSchema = union([
|
|
56515
|
+
boolean(),
|
|
56516
|
+
string(),
|
|
56517
|
+
number()
|
|
56518
|
+
]);
|
|
56519
|
+
var DishwasherAccessSchema = _enum([
|
|
56520
|
+
"none",
|
|
56521
|
+
"read",
|
|
56522
|
+
"readWrite",
|
|
56523
|
+
"writeOnly",
|
|
56524
|
+
"readStatic"
|
|
56525
|
+
]);
|
|
56526
|
+
/**
|
|
56527
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56528
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56529
|
+
*/
|
|
56530
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56531
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56532
|
+
key: string(),
|
|
56533
|
+
/** Last segment of the key, for display. */
|
|
56534
|
+
name: string(),
|
|
56535
|
+
type: _enum([
|
|
56536
|
+
"boolean",
|
|
56537
|
+
"number",
|
|
56538
|
+
"enum",
|
|
56539
|
+
"string"
|
|
56540
|
+
]),
|
|
56541
|
+
access: DishwasherAccessSchema,
|
|
56542
|
+
/** The appliance reports this entity as currently available. */
|
|
56543
|
+
available: boolean(),
|
|
56544
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56545
|
+
unit: string().nullable(),
|
|
56546
|
+
min: number().nullable(),
|
|
56547
|
+
max: number().nullable(),
|
|
56548
|
+
step: number().nullable(),
|
|
56549
|
+
/** Allowed members of an enum; null for other types. */
|
|
56550
|
+
enumValues: array(string()).nullable(),
|
|
56551
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56552
|
+
});
|
|
56553
|
+
var DishwasherProgramSchema = object({
|
|
56554
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56555
|
+
key: string(),
|
|
56556
|
+
name: string(),
|
|
56557
|
+
/** The appliance currently offers this program. */
|
|
56558
|
+
available: boolean(),
|
|
56559
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56560
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56561
|
+
});
|
|
56562
|
+
var DishwasherOptionsSchema = object({
|
|
56563
|
+
availability: DishwasherAvailabilitySchema,
|
|
56564
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56565
|
+
supportsStart: boolean(),
|
|
56566
|
+
supportsPause: boolean(),
|
|
56567
|
+
supportsResume: boolean(),
|
|
56568
|
+
supportsStop: boolean(),
|
|
56569
|
+
supportsPower: boolean(),
|
|
56570
|
+
/** Every program the description lists, with its options. */
|
|
56571
|
+
programs: array(DishwasherProgramSchema),
|
|
56572
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56573
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56574
|
+
});
|
|
56575
|
+
DeviceType.Dishwasher, method(object({
|
|
56576
|
+
deviceId: DeviceIdSchema,
|
|
56577
|
+
program: string().min(1).optional(),
|
|
56578
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56579
|
+
}), _void(), {
|
|
56404
56580
|
kind: "mutation",
|
|
56405
56581
|
auth: "protected"
|
|
56406
|
-
}), method(object({ deviceId:
|
|
56582
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56407
56583
|
kind: "mutation",
|
|
56408
56584
|
auth: "protected"
|
|
56409
|
-
}), method(object({ deviceId:
|
|
56585
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56586
|
+
kind: "mutation",
|
|
56587
|
+
auth: "protected"
|
|
56588
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56410
56589
|
kind: "mutation",
|
|
56411
56590
|
auth: "protected"
|
|
56412
56591
|
}), method(object({
|
|
56413
|
-
deviceId:
|
|
56592
|
+
deviceId: DeviceIdSchema,
|
|
56414
56593
|
program: string().min(1)
|
|
56415
56594
|
}), _void(), {
|
|
56416
56595
|
kind: "mutation",
|
|
56417
56596
|
auth: "protected"
|
|
56418
56597
|
}), method(object({
|
|
56419
|
-
deviceId:
|
|
56598
|
+
deviceId: DeviceIdSchema,
|
|
56420
56599
|
on: boolean()
|
|
56421
56600
|
}), _void(), {
|
|
56422
56601
|
kind: "mutation",
|
|
56423
56602
|
auth: "protected"
|
|
56424
56603
|
}), method(object({
|
|
56425
|
-
deviceId:
|
|
56604
|
+
deviceId: DeviceIdSchema,
|
|
56426
56605
|
on: boolean()
|
|
56427
56606
|
}), _void(), {
|
|
56428
56607
|
kind: "mutation",
|
|
56429
56608
|
auth: "protected"
|
|
56430
56609
|
}), method(object({
|
|
56431
|
-
deviceId:
|
|
56610
|
+
deviceId: DeviceIdSchema,
|
|
56432
56611
|
on: boolean()
|
|
56433
56612
|
}), _void(), {
|
|
56434
56613
|
kind: "mutation",
|
|
56435
56614
|
auth: "protected"
|
|
56436
56615
|
}), method(object({
|
|
56437
|
-
deviceId:
|
|
56616
|
+
deviceId: DeviceIdSchema,
|
|
56438
56617
|
on: boolean()
|
|
56439
56618
|
}), _void(), {
|
|
56440
56619
|
kind: "mutation",
|
|
56441
56620
|
auth: "protected"
|
|
56442
56621
|
}), method(object({
|
|
56443
|
-
deviceId:
|
|
56622
|
+
deviceId: DeviceIdSchema,
|
|
56444
56623
|
on: boolean()
|
|
56445
56624
|
}), _void(), {
|
|
56446
56625
|
kind: "mutation",
|
|
56447
56626
|
auth: "protected"
|
|
56448
56627
|
}), method(object({
|
|
56449
|
-
deviceId:
|
|
56628
|
+
deviceId: DeviceIdSchema,
|
|
56450
56629
|
on: boolean()
|
|
56451
56630
|
}), _void(), {
|
|
56452
56631
|
kind: "mutation",
|
|
56453
56632
|
auth: "protected"
|
|
56454
56633
|
}), method(object({
|
|
56455
|
-
deviceId:
|
|
56634
|
+
deviceId: DeviceIdSchema,
|
|
56456
56635
|
on: boolean()
|
|
56457
56636
|
}), _void(), {
|
|
56458
56637
|
kind: "mutation",
|
|
56459
56638
|
auth: "protected"
|
|
56460
56639
|
}), method(object({
|
|
56461
|
-
deviceId:
|
|
56640
|
+
deviceId: DeviceIdSchema,
|
|
56462
56641
|
key: string().min(1),
|
|
56463
|
-
value:
|
|
56464
|
-
boolean(),
|
|
56465
|
-
string(),
|
|
56466
|
-
number()
|
|
56467
|
-
])
|
|
56642
|
+
value: DishwasherValueSchema
|
|
56468
56643
|
}), _void(), {
|
|
56469
56644
|
kind: "mutation",
|
|
56470
56645
|
auth: "protected"
|
|
56471
|
-
});
|
|
56646
|
+
}), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
|
|
56472
56647
|
object({
|
|
56473
56648
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
56474
56649
|
lastPressedAt: number().nullable(),
|
|
@@ -66647,6 +66822,12 @@ Object.freeze({
|
|
|
66647
66822
|
addonId: null,
|
|
66648
66823
|
access: "view"
|
|
66649
66824
|
},
|
|
66825
|
+
"dishwasher.getOptions": {
|
|
66826
|
+
capName: "dishwasher",
|
|
66827
|
+
capScope: "device",
|
|
66828
|
+
addonId: null,
|
|
66829
|
+
access: "view"
|
|
66830
|
+
},
|
|
66650
66831
|
"dishwasher.getStatus": {
|
|
66651
66832
|
capName: "dishwasher",
|
|
66652
66833
|
capScope: "device",
|
|
@@ -66659,6 +66840,12 @@ Object.freeze({
|
|
|
66659
66840
|
addonId: null,
|
|
66660
66841
|
access: "create"
|
|
66661
66842
|
},
|
|
66843
|
+
"dishwasher.resume": {
|
|
66844
|
+
capName: "dishwasher",
|
|
66845
|
+
capScope: "device",
|
|
66846
|
+
addonId: null,
|
|
66847
|
+
access: "create"
|
|
66848
|
+
},
|
|
66662
66849
|
"dishwasher.setChildLock": {
|
|
66663
66850
|
capName: "dishwasher",
|
|
66664
66851
|
capScope: "device",
|
|
@@ -71159,6 +71346,12 @@ Object.freeze({
|
|
|
71159
71346
|
addonId: null,
|
|
71160
71347
|
access: "view"
|
|
71161
71348
|
},
|
|
71349
|
+
"storageMigration.moverClearance": {
|
|
71350
|
+
capName: "storage-migration",
|
|
71351
|
+
capScope: "system",
|
|
71352
|
+
addonId: null,
|
|
71353
|
+
access: "view"
|
|
71354
|
+
},
|
|
71162
71355
|
"storageMigration.movers": {
|
|
71163
71356
|
capName: "storage-migration",
|
|
71164
71357
|
capScope: "system",
|
|
@@ -73380,6 +73573,11 @@ Object.freeze({
|
|
|
73380
73573
|
form: "single",
|
|
73381
73574
|
optional: false
|
|
73382
73575
|
}],
|
|
73576
|
+
"dishwasher.getOptions": [{
|
|
73577
|
+
name: "deviceId",
|
|
73578
|
+
form: "single",
|
|
73579
|
+
optional: false
|
|
73580
|
+
}],
|
|
73383
73581
|
"dishwasher.getStatus": [{
|
|
73384
73582
|
name: "deviceId",
|
|
73385
73583
|
form: "single",
|
|
@@ -73390,6 +73588,11 @@ Object.freeze({
|
|
|
73390
73588
|
form: "single",
|
|
73391
73589
|
optional: false
|
|
73392
73590
|
}],
|
|
73591
|
+
"dishwasher.resume": [{
|
|
73592
|
+
name: "deviceId",
|
|
73593
|
+
form: "single",
|
|
73594
|
+
optional: false
|
|
73595
|
+
}],
|
|
73393
73596
|
"dishwasher.setChildLock": [{
|
|
73394
73597
|
name: "deviceId",
|
|
73395
73598
|
form: "single",
|
|
@@ -75573,6 +75776,9 @@ new Map(Object.entries({
|
|
|
75573
75776
|
"wrapper-update-available": "system",
|
|
75574
75777
|
"backup-completed": "system",
|
|
75575
75778
|
"export-completed": "system",
|
|
75779
|
+
"alert-critical": "system",
|
|
75780
|
+
"alert-error": "system",
|
|
75781
|
+
"alert-critical-resolved": "system",
|
|
75576
75782
|
"storage-location-low": "system",
|
|
75577
75783
|
"storage-location-critical": "system",
|
|
75578
75784
|
"storage-location-ok": "system",
|
|
@@ -75697,6 +75903,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
75697
75903
|
"storage-location-ok"
|
|
75698
75904
|
]
|
|
75699
75905
|
},
|
|
75906
|
+
{
|
|
75907
|
+
id: "alerts",
|
|
75908
|
+
family: "system",
|
|
75909
|
+
label: "Alerts",
|
|
75910
|
+
kinds: [
|
|
75911
|
+
"alert-critical",
|
|
75912
|
+
"alert-error",
|
|
75913
|
+
"alert-critical-resolved"
|
|
75914
|
+
]
|
|
75915
|
+
},
|
|
75700
75916
|
{
|
|
75701
75917
|
id: "alarm",
|
|
75702
75918
|
family: "alarm",
|
|
@@ -75741,6 +75957,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
75741
75957
|
return [[descriptor.kind, field]];
|
|
75742
75958
|
})));
|
|
75743
75959
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
75960
|
+
object({
|
|
75961
|
+
phase: _enum(["raised", "resolved"]),
|
|
75962
|
+
episodeId: string().min(1),
|
|
75963
|
+
alertId: string().min(1),
|
|
75964
|
+
severity: AlertSeveritySchema,
|
|
75965
|
+
category: string(),
|
|
75966
|
+
title: string(),
|
|
75967
|
+
message: string(),
|
|
75968
|
+
sourceType: string().optional(),
|
|
75969
|
+
sourceId: string().optional(),
|
|
75970
|
+
nodeId: string().optional(),
|
|
75971
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
75972
|
+
actionUrl: string().optional(),
|
|
75973
|
+
at: number()
|
|
75974
|
+
});
|
|
75744
75975
|
var RULE_BODY_ONLY = ["body"];
|
|
75745
75976
|
var RULE_TEXT = ["title", "body"];
|
|
75746
75977
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -75750,6 +75981,11 @@ var TANK = [
|
|
|
75750
75981
|
"device-tank-full",
|
|
75751
75982
|
"device-tank-normal"
|
|
75752
75983
|
];
|
|
75984
|
+
var ALERT_EPISODE = [
|
|
75985
|
+
"alert-critical",
|
|
75986
|
+
"alert-error",
|
|
75987
|
+
"alert-critical-resolved"
|
|
75988
|
+
];
|
|
75753
75989
|
var UPDATES = [
|
|
75754
75990
|
"addon-update-available",
|
|
75755
75991
|
"server-update-available",
|
|
@@ -75942,14 +76178,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
75942
76178
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
75943
76179
|
([...RULE_TEXT], [...TANK]),
|
|
75944
76180
|
[...RULE_TEXT],
|
|
75945
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
75946
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
75947
|
-
[...RULE_TEXT],
|
|
76181
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
76182
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
75948
76183
|
[...RULE_TEXT],
|
|
75949
76184
|
[...RULE_TEXT],
|
|
75950
76185
|
[...RULE_TEXT],
|
|
75951
76186
|
[...RULE_TEXT],
|
|
75952
76187
|
[...RULE_TEXT],
|
|
76188
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
75953
76189
|
[...RULE_TEXT],
|
|
75954
76190
|
[...RULE_TEXT],
|
|
75955
76191
|
[...RULE_TEXT],
|
|
@@ -75967,7 +76203,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
75967
76203
|
[...RULE_TEXT],
|
|
75968
76204
|
[...RULE_TEXT],
|
|
75969
76205
|
[...RULE_TEXT],
|
|
75970
|
-
[...RULE_TEXT],
|
|
76206
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
76207
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
76208
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
76209
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
76210
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
75971
76211
|
[...RULE_TEXT],
|
|
75972
76212
|
[...RULE_TEXT],
|
|
75973
76213
|
[...RULE_TEXT],
|