@camstack/addon-training 0.1.58 → 0.1.60
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/dist/{MotionZonesSettings-B1MFjLvT.mjs → MotionZonesSettings-BVAWM6Mp.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BsCT1qXL.mjs → PrivacyMaskSettings-C6n5XvTF.mjs} +2 -2
- package/dist/{SceneMonitorEditor-DYTrCHNh.mjs → SceneMonitorEditor-YqjreNwk.mjs} +1 -1
- package/dist/_stub.js +4147 -4024
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-D332hdX5.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-D2t3iWfl.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DNz5PuiW.mjs +26 -0
- package/dist/{dist-D-q3lyBd.mjs → dist-CLSVfoxe.mjs} +480 -240
- package/dist/{dist-DBdxFGSN.js → dist-Co-Ch58W.js} +480 -240
- package/dist/{hostInit-DtDn5ljK.mjs → hostInit-BzYWXDTu.mjs} +3 -3
- package/dist/index.js +1 -1
- package/dist/orchestrator/training.addon.js +1 -1
- package/dist/orchestrator/training.addon.mjs +1 -1
- package/dist/{player-overlays-Cdh_GNzb.mjs → player-overlays-CsC1EU9M.mjs} +1 -1
- package/dist/providers/modal/training-modal.addon.js +1 -1
- package/dist/providers/modal/training-modal.addon.mjs +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DzwIz4dK.mjs → responsive-CqqXFNE0.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-DZYuiYXh.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-mXPV__C7.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-o-C5PmDm.mjs +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -78,9 +78,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
78
78
|
/**
|
|
79
79
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
80
80
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
81
|
-
* alert centre turns it into one
|
|
81
|
+
* alert centre turns it into one critical alert.
|
|
82
82
|
*/
|
|
83
83
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
84
|
+
/**
|
|
85
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
86
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
87
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
88
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
89
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
90
|
+
* event may be dropped (D8, D11).
|
|
91
|
+
*/
|
|
92
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
84
93
|
EventCategory["AddonError"] = "addon.error";
|
|
85
94
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
86
95
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5538,7 +5547,7 @@ var ZodIssueCode = {
|
|
|
5538
5547
|
var ZodFirstPartyTypeKind;
|
|
5539
5548
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5540
5549
|
//#endregion
|
|
5541
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5542
5551
|
/**
|
|
5543
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5544
5553
|
* window to float samples (D455).
|
|
@@ -7920,6 +7929,12 @@ function normalizeAddonInitResult(result) {
|
|
|
7920
7929
|
if (Array.isArray(result)) return { providers: result };
|
|
7921
7930
|
return result;
|
|
7922
7931
|
}
|
|
7932
|
+
/**
|
|
7933
|
+
* The share-view scope kinds a `csv_*` share token can carry. The hub mints
|
|
7934
|
+
* and validates them (`share-token.service.ts` builds its enum from this
|
|
7935
|
+
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7936
|
+
*/
|
|
7937
|
+
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7923
7938
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
7924
7939
|
var PeerBytesTicketSchema = object({
|
|
7925
7940
|
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
@@ -12781,6 +12796,229 @@ var ConvertResultSchema = object({
|
|
|
12781
12796
|
files: array(string()).readonly()
|
|
12782
12797
|
})).readonly()
|
|
12783
12798
|
});
|
|
12799
|
+
/**
|
|
12800
|
+
* Zod schemas for persisted record types.
|
|
12801
|
+
*
|
|
12802
|
+
* These schemas serve as the single source of truth for types that are
|
|
12803
|
+
* stored in the settings-store backend and retrieved via tRPC. They
|
|
12804
|
+
* replace the manual TypeScript interfaces with schema-derived types,
|
|
12805
|
+
* enabling runtime validation when reading from the backend.
|
|
12806
|
+
*
|
|
12807
|
+
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
12808
|
+
* keeps the original name for backward compatibility.
|
|
12809
|
+
*/
|
|
12810
|
+
/**
|
|
12811
|
+
* Auth model (v2 — 2026-05-12 caps-only):
|
|
12812
|
+
*
|
|
12813
|
+
* Two principals:
|
|
12814
|
+
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
12815
|
+
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
12816
|
+
*
|
|
12817
|
+
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
12818
|
+
* `super_admin` — collapsed onto the single boolean because every
|
|
12819
|
+
* non-admin caller is governed by the same scope-check rules; the
|
|
12820
|
+
* distinction was only ever used to route role-specific procedures
|
|
12821
|
+
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
12822
|
+
* with `isAdmin: false` + an explicit scope list.
|
|
12823
|
+
*/
|
|
12824
|
+
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
12825
|
+
var MethodAccessSchema = _enum([
|
|
12826
|
+
"view",
|
|
12827
|
+
"create",
|
|
12828
|
+
"delete"
|
|
12829
|
+
]);
|
|
12830
|
+
/**
|
|
12831
|
+
* A single scope grant. Three forms — checked in matcher with OR
|
|
12832
|
+
* semantics; the first match decides whether the call passes:
|
|
12833
|
+
*
|
|
12834
|
+
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
12835
|
+
* cap with the matching `scope` declaration. New caps inherit grants
|
|
12836
|
+
* automatically — adding a device cap to the codebase makes it
|
|
12837
|
+
* reachable to every user with `category:device [...]` without a
|
|
12838
|
+
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
12839
|
+
*
|
|
12840
|
+
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
12841
|
+
* useful when an integration needs to interact with one specific
|
|
12842
|
+
* addon's surface regardless of how many caps it exports.
|
|
12843
|
+
*
|
|
12844
|
+
* - `capability` — the most precise form. Single cap name. Use for
|
|
12845
|
+
* integration tokens where you want to grant `addons.installPackage`
|
|
12846
|
+
* and nothing else.
|
|
12847
|
+
*
|
|
12848
|
+
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
12849
|
+
* "give me everything" escape; there is no wildcard scope.
|
|
12850
|
+
*/
|
|
12851
|
+
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
12852
|
+
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
12853
|
+
var CapScopeSchema = _enum(["device", "system"]);
|
|
12854
|
+
/**
|
|
12855
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
12856
|
+
*
|
|
12857
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
12858
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
12859
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
12860
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
12861
|
+
*
|
|
12862
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
12863
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
12864
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
12865
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
12866
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
12867
|
+
* is NOT covered until the grant is edited.
|
|
12868
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
12869
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
12870
|
+
* re-resolves on the next request.
|
|
12871
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
12872
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
12873
|
+
* null/unset location matches NO `locations` selector.
|
|
12874
|
+
*/
|
|
12875
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
12876
|
+
object({ kind: literal("all") }),
|
|
12877
|
+
object({
|
|
12878
|
+
kind: literal("ids"),
|
|
12879
|
+
ids: array(number().int()).min(1)
|
|
12880
|
+
}),
|
|
12881
|
+
object({
|
|
12882
|
+
kind: literal("types"),
|
|
12883
|
+
types: array(_enum(DeviceType)).min(1)
|
|
12884
|
+
}),
|
|
12885
|
+
object({
|
|
12886
|
+
kind: literal("locations"),
|
|
12887
|
+
locations: array(string().min(1)).min(1)
|
|
12888
|
+
})
|
|
12889
|
+
]);
|
|
12890
|
+
var DeviceTokenScopeSchema = object({
|
|
12891
|
+
type: literal("device"),
|
|
12892
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
12893
|
+
selector: DeviceSelectorSchema,
|
|
12894
|
+
access: array(MethodAccessSchema).min(1),
|
|
12895
|
+
/**
|
|
12896
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
12897
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
12898
|
+
* Direction is parent → children ONLY.
|
|
12899
|
+
*
|
|
12900
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
12901
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
12902
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
12903
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
12904
|
+
* explicitly to override that default per grant.
|
|
12905
|
+
*/
|
|
12906
|
+
includeLinked: boolean().optional()
|
|
12907
|
+
});
|
|
12908
|
+
/**
|
|
12909
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
12910
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
12911
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
12912
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
12913
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
12914
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
12915
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
12916
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
12917
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
12918
|
+
*/
|
|
12919
|
+
function migrateLegacyTokenScope(raw) {
|
|
12920
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
12921
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
12922
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
12923
|
+
const targets = Reflect.get(raw, "targets");
|
|
12924
|
+
if (!Array.isArray(targets)) return raw;
|
|
12925
|
+
return {
|
|
12926
|
+
type: "device",
|
|
12927
|
+
selector: {
|
|
12928
|
+
kind: "ids",
|
|
12929
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
12930
|
+
},
|
|
12931
|
+
access: Reflect.get(raw, "access")
|
|
12932
|
+
};
|
|
12933
|
+
}
|
|
12934
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
12935
|
+
object({
|
|
12936
|
+
type: literal("category"),
|
|
12937
|
+
target: CapScopeSchema,
|
|
12938
|
+
access: array(MethodAccessSchema).min(1)
|
|
12939
|
+
}),
|
|
12940
|
+
object({
|
|
12941
|
+
type: literal("capability"),
|
|
12942
|
+
target: string(),
|
|
12943
|
+
access: array(MethodAccessSchema).min(1)
|
|
12944
|
+
}),
|
|
12945
|
+
object({
|
|
12946
|
+
type: literal("addon"),
|
|
12947
|
+
target: string(),
|
|
12948
|
+
access: array(MethodAccessSchema).min(1)
|
|
12949
|
+
}),
|
|
12950
|
+
DeviceTokenScopeSchema
|
|
12951
|
+
]));
|
|
12952
|
+
object({
|
|
12953
|
+
id: string(),
|
|
12954
|
+
username: string(),
|
|
12955
|
+
passwordHash: string(),
|
|
12956
|
+
/**
|
|
12957
|
+
* Admin bypass. When true, the middleware skips the scope-access
|
|
12958
|
+
* check entirely. There is no other axis of privilege; the legacy
|
|
12959
|
+
* role enum collapsed onto this boolean in v2.
|
|
12960
|
+
*/
|
|
12961
|
+
isAdmin: boolean().default(false),
|
|
12962
|
+
allowedProviders: AllowedProviderSchema,
|
|
12963
|
+
allowedDevices: AllowedDevicesSchema,
|
|
12964
|
+
/**
|
|
12965
|
+
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
12966
|
+
* ignored. Non-admins without scopes are locked out of every
|
|
12967
|
+
* protected call.
|
|
12968
|
+
*/
|
|
12969
|
+
scopes: array(TokenScopeSchema).default([]),
|
|
12970
|
+
createdAt: number(),
|
|
12971
|
+
updatedAt: number()
|
|
12972
|
+
});
|
|
12973
|
+
object({
|
|
12974
|
+
id: string(),
|
|
12975
|
+
label: string(),
|
|
12976
|
+
isAdmin: boolean().default(false),
|
|
12977
|
+
allowedProviders: AllowedProviderSchema,
|
|
12978
|
+
allowedDevices: AllowedDevicesSchema,
|
|
12979
|
+
tokenHash: string(),
|
|
12980
|
+
tokenPrefix: string(),
|
|
12981
|
+
createdAt: number(),
|
|
12982
|
+
lastUsedAt: number().optional()
|
|
12983
|
+
});
|
|
12984
|
+
object({
|
|
12985
|
+
id: string(),
|
|
12986
|
+
userId: string(),
|
|
12987
|
+
name: string(),
|
|
12988
|
+
tokenHash: string(),
|
|
12989
|
+
tokenPrefix: string(),
|
|
12990
|
+
scopes: array(TokenScopeSchema),
|
|
12991
|
+
expiresAt: number().nullish(),
|
|
12992
|
+
lastUsedAt: number().nullish(),
|
|
12993
|
+
createdAt: number()
|
|
12994
|
+
});
|
|
12995
|
+
/** What a share-view grant lets its holder see. */
|
|
12996
|
+
var ShareViewGrantSchema = object({
|
|
12997
|
+
kind: _enum(SHARE_VIEW_KINDS),
|
|
12998
|
+
deviceIds: array(number().int().nonnegative()).min(1).max(64),
|
|
12999
|
+
/** Talk-back, opt-in at mint time; absent means off. */
|
|
13000
|
+
talk: boolean().optional()
|
|
13001
|
+
});
|
|
13002
|
+
var ShareViewScopeSchema = object({
|
|
13003
|
+
type: literal("share-view"),
|
|
13004
|
+
grant: ShareViewGrantSchema
|
|
13005
|
+
});
|
|
13006
|
+
var AddonRoutesScopeSchema = object({
|
|
13007
|
+
type: literal("addon-routes"),
|
|
13008
|
+
access: array(MethodAccessSchema).min(1)
|
|
13009
|
+
});
|
|
13010
|
+
var CredentialScopeSchema = union([
|
|
13011
|
+
literal("*"),
|
|
13012
|
+
ShareViewScopeSchema,
|
|
13013
|
+
AddonRoutesScopeSchema,
|
|
13014
|
+
TokenScopeSchema
|
|
13015
|
+
]);
|
|
13016
|
+
object({
|
|
13017
|
+
kind: literal("credential"),
|
|
13018
|
+
sub: string().min(1),
|
|
13019
|
+
jti: string().min(16),
|
|
13020
|
+
scopes: array(CredentialScopeSchema).min(1)
|
|
13021
|
+
});
|
|
12784
13022
|
_enum(["new-session", "step-up"]);
|
|
12785
13023
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12786
13024
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -13514,7 +13752,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13514
13752
|
]);
|
|
13515
13753
|
var AlertActionSchema = object({
|
|
13516
13754
|
label: string(),
|
|
13517
|
-
href: string().optional()
|
|
13755
|
+
href: string().optional(),
|
|
13756
|
+
/**
|
|
13757
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13758
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13759
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13760
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13761
|
+
*/
|
|
13762
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13518
13763
|
});
|
|
13519
13764
|
var AlertStatusSchema = _enum([
|
|
13520
13765
|
"active",
|
|
@@ -41890,6 +42135,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
41890
42135
|
"server-updated",
|
|
41891
42136
|
"export-completed",
|
|
41892
42137
|
"backup-completed",
|
|
42138
|
+
"alert-critical",
|
|
42139
|
+
"alert-error",
|
|
42140
|
+
"alert-critical-resolved",
|
|
41893
42141
|
"camera-online",
|
|
41894
42142
|
"camera-offline",
|
|
41895
42143
|
"camera-disabled",
|
|
@@ -43925,202 +44173,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
43925
44173
|
auth: "admin"
|
|
43926
44174
|
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
43927
44175
|
/**
|
|
43928
|
-
* Zod schemas for persisted record types.
|
|
43929
|
-
*
|
|
43930
|
-
* These schemas serve as the single source of truth for types that are
|
|
43931
|
-
* stored in the settings-store backend and retrieved via tRPC. They
|
|
43932
|
-
* replace the manual TypeScript interfaces with schema-derived types,
|
|
43933
|
-
* enabling runtime validation when reading from the backend.
|
|
43934
|
-
*
|
|
43935
|
-
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
43936
|
-
* keeps the original name for backward compatibility.
|
|
43937
|
-
*/
|
|
43938
|
-
/**
|
|
43939
|
-
* Auth model (v2 — 2026-05-12 caps-only):
|
|
43940
|
-
*
|
|
43941
|
-
* Two principals:
|
|
43942
|
-
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
43943
|
-
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
43944
|
-
*
|
|
43945
|
-
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
43946
|
-
* `super_admin` — collapsed onto the single boolean because every
|
|
43947
|
-
* non-admin caller is governed by the same scope-check rules; the
|
|
43948
|
-
* distinction was only ever used to route role-specific procedures
|
|
43949
|
-
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
43950
|
-
* with `isAdmin: false` + an explicit scope list.
|
|
43951
|
-
*/
|
|
43952
|
-
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
43953
|
-
var MethodAccessSchema = _enum([
|
|
43954
|
-
"view",
|
|
43955
|
-
"create",
|
|
43956
|
-
"delete"
|
|
43957
|
-
]);
|
|
43958
|
-
/**
|
|
43959
|
-
* A single scope grant. Three forms — checked in matcher with OR
|
|
43960
|
-
* semantics; the first match decides whether the call passes:
|
|
43961
|
-
*
|
|
43962
|
-
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
43963
|
-
* cap with the matching `scope` declaration. New caps inherit grants
|
|
43964
|
-
* automatically — adding a device cap to the codebase makes it
|
|
43965
|
-
* reachable to every user with `category:device [...]` without a
|
|
43966
|
-
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
43967
|
-
*
|
|
43968
|
-
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
43969
|
-
* useful when an integration needs to interact with one specific
|
|
43970
|
-
* addon's surface regardless of how many caps it exports.
|
|
43971
|
-
*
|
|
43972
|
-
* - `capability` — the most precise form. Single cap name. Use for
|
|
43973
|
-
* integration tokens where you want to grant `addons.installPackage`
|
|
43974
|
-
* and nothing else.
|
|
43975
|
-
*
|
|
43976
|
-
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
43977
|
-
* "give me everything" escape; there is no wildcard scope.
|
|
43978
|
-
*/
|
|
43979
|
-
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
43980
|
-
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
43981
|
-
var CapScopeSchema = _enum(["device", "system"]);
|
|
43982
|
-
/**
|
|
43983
|
-
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
43984
|
-
*
|
|
43985
|
-
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
43986
|
-
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
43987
|
-
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
43988
|
-
* AFTER the grant was minted — no re-grant, no re-login.
|
|
43989
|
-
*
|
|
43990
|
-
* - `all` — every device in the deployment. The broad viewer/operator
|
|
43991
|
-
* lever without a `category` grant (a `category` grant also covers device
|
|
43992
|
-
* caps that carry no deviceId; `all` is specifically the device set).
|
|
43993
|
-
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
43994
|
-
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
43995
|
-
* is NOT covered until the grant is edited.
|
|
43996
|
-
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
43997
|
-
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
43998
|
-
* re-resolves on the next request.
|
|
43999
|
-
* - `locations` — every device whose operator-assigned `location` label is
|
|
44000
|
-
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
44001
|
-
* null/unset location matches NO `locations` selector.
|
|
44002
|
-
*/
|
|
44003
|
-
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
44004
|
-
object({ kind: literal("all") }),
|
|
44005
|
-
object({
|
|
44006
|
-
kind: literal("ids"),
|
|
44007
|
-
ids: array(number().int()).min(1)
|
|
44008
|
-
}),
|
|
44009
|
-
object({
|
|
44010
|
-
kind: literal("types"),
|
|
44011
|
-
types: array(_enum(DeviceType)).min(1)
|
|
44012
|
-
}),
|
|
44013
|
-
object({
|
|
44014
|
-
kind: literal("locations"),
|
|
44015
|
-
locations: array(string().min(1)).min(1)
|
|
44016
|
-
})
|
|
44017
|
-
]);
|
|
44018
|
-
var DeviceTokenScopeSchema = object({
|
|
44019
|
-
type: literal("device"),
|
|
44020
|
-
/** The device SET this grant covers — resolved against the live fleet. */
|
|
44021
|
-
selector: DeviceSelectorSchema,
|
|
44022
|
-
access: array(MethodAccessSchema).min(1),
|
|
44023
|
-
/**
|
|
44024
|
-
* Whether a grant on a PARENT device transparently covers its accessory
|
|
44025
|
-
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
44026
|
-
* Direction is parent → children ONLY.
|
|
44027
|
-
*
|
|
44028
|
-
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
44029
|
-
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
44030
|
-
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
44031
|
-
* operator must grant on the child, not inherit from the parent). Set it
|
|
44032
|
-
* explicitly to override that default per grant.
|
|
44033
|
-
*/
|
|
44034
|
-
includeLinked: boolean().optional()
|
|
44035
|
-
});
|
|
44036
|
-
/**
|
|
44037
|
-
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
44038
|
-
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
44039
|
-
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
44040
|
-
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
44041
|
-
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
44042
|
-
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
44043
|
-
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
44044
|
-
* migration covers both without a flag day. No cast — the raw object is read
|
|
44045
|
-
* through `Reflect.get` (its static type is `unknown`).
|
|
44046
|
-
*/
|
|
44047
|
-
function migrateLegacyTokenScope(raw) {
|
|
44048
|
-
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
44049
|
-
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
44050
|
-
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
44051
|
-
const targets = Reflect.get(raw, "targets");
|
|
44052
|
-
if (!Array.isArray(targets)) return raw;
|
|
44053
|
-
return {
|
|
44054
|
-
type: "device",
|
|
44055
|
-
selector: {
|
|
44056
|
-
kind: "ids",
|
|
44057
|
-
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
44058
|
-
},
|
|
44059
|
-
access: Reflect.get(raw, "access")
|
|
44060
|
-
};
|
|
44061
|
-
}
|
|
44062
|
-
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
44063
|
-
object({
|
|
44064
|
-
type: literal("category"),
|
|
44065
|
-
target: CapScopeSchema,
|
|
44066
|
-
access: array(MethodAccessSchema).min(1)
|
|
44067
|
-
}),
|
|
44068
|
-
object({
|
|
44069
|
-
type: literal("capability"),
|
|
44070
|
-
target: string(),
|
|
44071
|
-
access: array(MethodAccessSchema).min(1)
|
|
44072
|
-
}),
|
|
44073
|
-
object({
|
|
44074
|
-
type: literal("addon"),
|
|
44075
|
-
target: string(),
|
|
44076
|
-
access: array(MethodAccessSchema).min(1)
|
|
44077
|
-
}),
|
|
44078
|
-
DeviceTokenScopeSchema
|
|
44079
|
-
]));
|
|
44080
|
-
object({
|
|
44081
|
-
id: string(),
|
|
44082
|
-
username: string(),
|
|
44083
|
-
passwordHash: string(),
|
|
44084
|
-
/**
|
|
44085
|
-
* Admin bypass. When true, the middleware skips the scope-access
|
|
44086
|
-
* check entirely. There is no other axis of privilege; the legacy
|
|
44087
|
-
* role enum collapsed onto this boolean in v2.
|
|
44088
|
-
*/
|
|
44089
|
-
isAdmin: boolean().default(false),
|
|
44090
|
-
allowedProviders: AllowedProviderSchema,
|
|
44091
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44092
|
-
/**
|
|
44093
|
-
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
44094
|
-
* ignored. Non-admins without scopes are locked out of every
|
|
44095
|
-
* protected call.
|
|
44096
|
-
*/
|
|
44097
|
-
scopes: array(TokenScopeSchema).default([]),
|
|
44098
|
-
createdAt: number(),
|
|
44099
|
-
updatedAt: number()
|
|
44100
|
-
});
|
|
44101
|
-
object({
|
|
44102
|
-
id: string(),
|
|
44103
|
-
label: string(),
|
|
44104
|
-
isAdmin: boolean().default(false),
|
|
44105
|
-
allowedProviders: AllowedProviderSchema,
|
|
44106
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44107
|
-
tokenHash: string(),
|
|
44108
|
-
tokenPrefix: string(),
|
|
44109
|
-
createdAt: number(),
|
|
44110
|
-
lastUsedAt: number().optional()
|
|
44111
|
-
});
|
|
44112
|
-
object({
|
|
44113
|
-
id: string(),
|
|
44114
|
-
userId: string(),
|
|
44115
|
-
name: string(),
|
|
44116
|
-
tokenHash: string(),
|
|
44117
|
-
tokenPrefix: string(),
|
|
44118
|
-
scopes: array(TokenScopeSchema),
|
|
44119
|
-
expiresAt: number().nullish(),
|
|
44120
|
-
lastUsedAt: number().nullish(),
|
|
44121
|
-
createdAt: number()
|
|
44122
|
-
});
|
|
44123
|
-
/**
|
|
44124
44176
|
* `oauth-integration` — a collection cap by which an addon declares
|
|
44125
44177
|
* itself a linkable OAuth client of the hub's core `/oauth2/*` server.
|
|
44126
44178
|
* Each provider returns a static descriptor; the core enumerates them
|
|
@@ -50922,7 +50974,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
50922
50974
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
50923
50975
|
kind: "mutation",
|
|
50924
50976
|
auth: "admin"
|
|
50925
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
50977
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
50978
|
+
clear: boolean(),
|
|
50979
|
+
repointLocationId: string().optional()
|
|
50980
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
50926
50981
|
kind: "mutation",
|
|
50927
50982
|
auth: "admin"
|
|
50928
50983
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -54357,6 +54412,11 @@ object({
|
|
|
54357
54412
|
*
|
|
54358
54413
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
54359
54414
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
54415
|
+
*
|
|
54416
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
54417
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
54418
|
+
* the link is down, or the description does not carry it) and is never
|
|
54419
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
54360
54420
|
*/
|
|
54361
54421
|
var DishwasherStateSchema = _enum([
|
|
54362
54422
|
"idle",
|
|
@@ -54366,112 +54426,227 @@ var DishwasherStateSchema = _enum([
|
|
|
54366
54426
|
"error",
|
|
54367
54427
|
"unavailable"
|
|
54368
54428
|
]);
|
|
54429
|
+
/**
|
|
54430
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
54431
|
+
* view for compact surfaces; this is what the appliance said.
|
|
54432
|
+
*/
|
|
54433
|
+
var DishwasherOperationStateSchema = _enum([
|
|
54434
|
+
"Inactive",
|
|
54435
|
+
"Ready",
|
|
54436
|
+
"DelayedStart",
|
|
54437
|
+
"Run",
|
|
54438
|
+
"Pause",
|
|
54439
|
+
"ActionRequired",
|
|
54440
|
+
"Finished",
|
|
54441
|
+
"Error",
|
|
54442
|
+
"Aborting"
|
|
54443
|
+
]);
|
|
54444
|
+
/**
|
|
54445
|
+
* Why fields may be `null`:
|
|
54446
|
+
* - `available` — the link is up and the description is loaded;
|
|
54447
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
54448
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
54449
|
+
* be loaded, so its values cannot be decoded.
|
|
54450
|
+
*/
|
|
54451
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
54452
|
+
"available",
|
|
54453
|
+
"offline",
|
|
54454
|
+
"description-missing"
|
|
54455
|
+
]);
|
|
54369
54456
|
var DishwasherConsumableLevelSchema = _enum([
|
|
54370
54457
|
"ok",
|
|
54371
54458
|
"low",
|
|
54372
54459
|
"empty"
|
|
54373
54460
|
]);
|
|
54374
54461
|
object({
|
|
54462
|
+
availability: DishwasherAvailabilitySchema,
|
|
54463
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
54375
54464
|
state: DishwasherStateSchema,
|
|
54376
|
-
/**
|
|
54465
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
54466
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
54467
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
54377
54468
|
program: string().nullable(),
|
|
54378
|
-
/**
|
|
54469
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
54470
|
+
selectedProgram: string().nullable(),
|
|
54471
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
54379
54472
|
availablePrograms: array(string()),
|
|
54380
|
-
/**
|
|
54381
|
-
|
|
54473
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
54474
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
54475
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
54476
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
54382
54477
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
54383
54478
|
progressPercent: number().min(0).max(100).nullable(),
|
|
54384
|
-
/** True when the door is reported open. */
|
|
54385
|
-
doorOpen: boolean(),
|
|
54386
|
-
/** True when
|
|
54387
|
-
|
|
54388
|
-
/**
|
|
54389
|
-
|
|
54479
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
54480
|
+
doorOpen: boolean().nullable(),
|
|
54481
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
54482
|
+
doorLocked: boolean().nullable(),
|
|
54483
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
54484
|
+
remoteStartAllowed: boolean().nullable(),
|
|
54485
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
54486
|
+
remoteControlActive: boolean().nullable(),
|
|
54487
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
54488
|
+
localControlActive: boolean().nullable(),
|
|
54489
|
+
/** Main power / switched-on state; null when not known. */
|
|
54490
|
+
powerOn: boolean().nullable(),
|
|
54491
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54492
|
+
powerState: string().nullable(),
|
|
54390
54493
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54391
54494
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54392
|
-
|
|
54393
|
-
|
|
54495
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54496
|
+
halfLoad: boolean().nullable(),
|
|
54497
|
+
hygienePlus: boolean().nullable(),
|
|
54394
54498
|
/** Extra dry option when the appliance exposes it. */
|
|
54395
|
-
extraDry: boolean(),
|
|
54499
|
+
extraDry: boolean().nullable(),
|
|
54396
54500
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
54397
|
-
intensiveZone: boolean(),
|
|
54501
|
+
intensiveZone: boolean().nullable(),
|
|
54398
54502
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
54399
|
-
varioSpeedPlus: boolean(),
|
|
54400
|
-
/** Child lock (controls disabled on the appliance). */
|
|
54401
|
-
childLock: boolean(),
|
|
54503
|
+
varioSpeedPlus: boolean().nullable(),
|
|
54504
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
54505
|
+
childLock: boolean().nullable(),
|
|
54506
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
54507
|
+
activeEvents: array(string()),
|
|
54508
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
54402
54509
|
errorCode: number().nullable(),
|
|
54510
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
54403
54511
|
errorLabel: string().nullable(),
|
|
54512
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
54404
54513
|
lastFetchedAt: number()
|
|
54405
54514
|
});
|
|
54406
|
-
|
|
54515
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
54516
|
+
/** A value a program option or setting can take. */
|
|
54517
|
+
var DishwasherValueSchema = union([
|
|
54518
|
+
boolean(),
|
|
54519
|
+
string(),
|
|
54520
|
+
number()
|
|
54521
|
+
]);
|
|
54522
|
+
var DishwasherAccessSchema = _enum([
|
|
54523
|
+
"none",
|
|
54524
|
+
"read",
|
|
54525
|
+
"readWrite",
|
|
54526
|
+
"writeOnly",
|
|
54527
|
+
"readStatic"
|
|
54528
|
+
]);
|
|
54529
|
+
/**
|
|
54530
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
54531
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
54532
|
+
*/
|
|
54533
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
54534
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
54535
|
+
key: string(),
|
|
54536
|
+
/** Last segment of the key, for display. */
|
|
54537
|
+
name: string(),
|
|
54538
|
+
type: _enum([
|
|
54539
|
+
"boolean",
|
|
54540
|
+
"number",
|
|
54541
|
+
"enum",
|
|
54542
|
+
"string"
|
|
54543
|
+
]),
|
|
54544
|
+
access: DishwasherAccessSchema,
|
|
54545
|
+
/** The appliance reports this entity as currently available. */
|
|
54546
|
+
available: boolean(),
|
|
54547
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
54548
|
+
unit: string().nullable(),
|
|
54549
|
+
min: number().nullable(),
|
|
54550
|
+
max: number().nullable(),
|
|
54551
|
+
step: number().nullable(),
|
|
54552
|
+
/** Allowed members of an enum; null for other types. */
|
|
54553
|
+
enumValues: array(string()).nullable(),
|
|
54554
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
54555
|
+
});
|
|
54556
|
+
var DishwasherProgramSchema = object({
|
|
54557
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
54558
|
+
key: string(),
|
|
54559
|
+
name: string(),
|
|
54560
|
+
/** The appliance currently offers this program. */
|
|
54561
|
+
available: boolean(),
|
|
54562
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
54563
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
54564
|
+
});
|
|
54565
|
+
var DishwasherOptionsSchema = object({
|
|
54566
|
+
availability: DishwasherAvailabilitySchema,
|
|
54567
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
54568
|
+
supportsStart: boolean(),
|
|
54569
|
+
supportsPause: boolean(),
|
|
54570
|
+
supportsResume: boolean(),
|
|
54571
|
+
supportsStop: boolean(),
|
|
54572
|
+
supportsPower: boolean(),
|
|
54573
|
+
/** Every program the description lists, with its options. */
|
|
54574
|
+
programs: array(DishwasherProgramSchema),
|
|
54575
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
54576
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
54577
|
+
});
|
|
54578
|
+
DeviceType.Dishwasher, method(object({
|
|
54579
|
+
deviceId: DeviceIdSchema,
|
|
54580
|
+
program: string().min(1).optional(),
|
|
54581
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
54582
|
+
}), _void(), {
|
|
54407
54583
|
kind: "mutation",
|
|
54408
54584
|
auth: "protected"
|
|
54409
|
-
}), method(object({ deviceId:
|
|
54585
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54410
54586
|
kind: "mutation",
|
|
54411
54587
|
auth: "protected"
|
|
54412
|
-
}), method(object({ deviceId:
|
|
54588
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54589
|
+
kind: "mutation",
|
|
54590
|
+
auth: "protected"
|
|
54591
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54413
54592
|
kind: "mutation",
|
|
54414
54593
|
auth: "protected"
|
|
54415
54594
|
}), method(object({
|
|
54416
|
-
deviceId:
|
|
54595
|
+
deviceId: DeviceIdSchema,
|
|
54417
54596
|
program: string().min(1)
|
|
54418
54597
|
}), _void(), {
|
|
54419
54598
|
kind: "mutation",
|
|
54420
54599
|
auth: "protected"
|
|
54421
54600
|
}), method(object({
|
|
54422
|
-
deviceId:
|
|
54601
|
+
deviceId: DeviceIdSchema,
|
|
54423
54602
|
on: boolean()
|
|
54424
54603
|
}), _void(), {
|
|
54425
54604
|
kind: "mutation",
|
|
54426
54605
|
auth: "protected"
|
|
54427
54606
|
}), method(object({
|
|
54428
|
-
deviceId:
|
|
54607
|
+
deviceId: DeviceIdSchema,
|
|
54429
54608
|
on: boolean()
|
|
54430
54609
|
}), _void(), {
|
|
54431
54610
|
kind: "mutation",
|
|
54432
54611
|
auth: "protected"
|
|
54433
54612
|
}), method(object({
|
|
54434
|
-
deviceId:
|
|
54613
|
+
deviceId: DeviceIdSchema,
|
|
54435
54614
|
on: boolean()
|
|
54436
54615
|
}), _void(), {
|
|
54437
54616
|
kind: "mutation",
|
|
54438
54617
|
auth: "protected"
|
|
54439
54618
|
}), method(object({
|
|
54440
|
-
deviceId:
|
|
54619
|
+
deviceId: DeviceIdSchema,
|
|
54441
54620
|
on: boolean()
|
|
54442
54621
|
}), _void(), {
|
|
54443
54622
|
kind: "mutation",
|
|
54444
54623
|
auth: "protected"
|
|
54445
54624
|
}), method(object({
|
|
54446
|
-
deviceId:
|
|
54625
|
+
deviceId: DeviceIdSchema,
|
|
54447
54626
|
on: boolean()
|
|
54448
54627
|
}), _void(), {
|
|
54449
54628
|
kind: "mutation",
|
|
54450
54629
|
auth: "protected"
|
|
54451
54630
|
}), method(object({
|
|
54452
|
-
deviceId:
|
|
54631
|
+
deviceId: DeviceIdSchema,
|
|
54453
54632
|
on: boolean()
|
|
54454
54633
|
}), _void(), {
|
|
54455
54634
|
kind: "mutation",
|
|
54456
54635
|
auth: "protected"
|
|
54457
54636
|
}), method(object({
|
|
54458
|
-
deviceId:
|
|
54637
|
+
deviceId: DeviceIdSchema,
|
|
54459
54638
|
on: boolean()
|
|
54460
54639
|
}), _void(), {
|
|
54461
54640
|
kind: "mutation",
|
|
54462
54641
|
auth: "protected"
|
|
54463
54642
|
}), method(object({
|
|
54464
|
-
deviceId:
|
|
54643
|
+
deviceId: DeviceIdSchema,
|
|
54465
54644
|
key: string().min(1),
|
|
54466
|
-
value:
|
|
54467
|
-
boolean(),
|
|
54468
|
-
string(),
|
|
54469
|
-
number()
|
|
54470
|
-
])
|
|
54645
|
+
value: DishwasherValueSchema
|
|
54471
54646
|
}), _void(), {
|
|
54472
54647
|
kind: "mutation",
|
|
54473
54648
|
auth: "protected"
|
|
54474
|
-
});
|
|
54649
|
+
}), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
|
|
54475
54650
|
object({
|
|
54476
54651
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
54477
54652
|
lastPressedAt: number().nullable(),
|
|
@@ -64631,6 +64806,12 @@ Object.freeze({
|
|
|
64631
64806
|
addonId: null,
|
|
64632
64807
|
access: "view"
|
|
64633
64808
|
},
|
|
64809
|
+
"dishwasher.getOptions": {
|
|
64810
|
+
capName: "dishwasher",
|
|
64811
|
+
capScope: "device",
|
|
64812
|
+
addonId: null,
|
|
64813
|
+
access: "view"
|
|
64814
|
+
},
|
|
64634
64815
|
"dishwasher.getStatus": {
|
|
64635
64816
|
capName: "dishwasher",
|
|
64636
64817
|
capScope: "device",
|
|
@@ -64643,6 +64824,12 @@ Object.freeze({
|
|
|
64643
64824
|
addonId: null,
|
|
64644
64825
|
access: "create"
|
|
64645
64826
|
},
|
|
64827
|
+
"dishwasher.resume": {
|
|
64828
|
+
capName: "dishwasher",
|
|
64829
|
+
capScope: "device",
|
|
64830
|
+
addonId: null,
|
|
64831
|
+
access: "create"
|
|
64832
|
+
},
|
|
64646
64833
|
"dishwasher.setChildLock": {
|
|
64647
64834
|
capName: "dishwasher",
|
|
64648
64835
|
capScope: "device",
|
|
@@ -69143,6 +69330,12 @@ Object.freeze({
|
|
|
69143
69330
|
addonId: null,
|
|
69144
69331
|
access: "view"
|
|
69145
69332
|
},
|
|
69333
|
+
"storageMigration.moverClearance": {
|
|
69334
|
+
capName: "storage-migration",
|
|
69335
|
+
capScope: "system",
|
|
69336
|
+
addonId: null,
|
|
69337
|
+
access: "view"
|
|
69338
|
+
},
|
|
69146
69339
|
"storageMigration.movers": {
|
|
69147
69340
|
capName: "storage-migration",
|
|
69148
69341
|
capScope: "system",
|
|
@@ -71336,6 +71529,11 @@ Object.freeze({
|
|
|
71336
71529
|
form: "single",
|
|
71337
71530
|
optional: false
|
|
71338
71531
|
}],
|
|
71532
|
+
"dishwasher.getOptions": [{
|
|
71533
|
+
name: "deviceId",
|
|
71534
|
+
form: "single",
|
|
71535
|
+
optional: false
|
|
71536
|
+
}],
|
|
71339
71537
|
"dishwasher.getStatus": [{
|
|
71340
71538
|
name: "deviceId",
|
|
71341
71539
|
form: "single",
|
|
@@ -71346,6 +71544,11 @@ Object.freeze({
|
|
|
71346
71544
|
form: "single",
|
|
71347
71545
|
optional: false
|
|
71348
71546
|
}],
|
|
71547
|
+
"dishwasher.resume": [{
|
|
71548
|
+
name: "deviceId",
|
|
71549
|
+
form: "single",
|
|
71550
|
+
optional: false
|
|
71551
|
+
}],
|
|
71349
71552
|
"dishwasher.setChildLock": [{
|
|
71350
71553
|
name: "deviceId",
|
|
71351
71554
|
form: "single",
|
|
@@ -73432,6 +73635,9 @@ new Map(Object.entries({
|
|
|
73432
73635
|
"wrapper-update-available": "system",
|
|
73433
73636
|
"backup-completed": "system",
|
|
73434
73637
|
"export-completed": "system",
|
|
73638
|
+
"alert-critical": "system",
|
|
73639
|
+
"alert-error": "system",
|
|
73640
|
+
"alert-critical-resolved": "system",
|
|
73435
73641
|
"storage-location-low": "system",
|
|
73436
73642
|
"storage-location-critical": "system",
|
|
73437
73643
|
"storage-location-ok": "system",
|
|
@@ -73556,6 +73762,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73556
73762
|
"storage-location-ok"
|
|
73557
73763
|
]
|
|
73558
73764
|
},
|
|
73765
|
+
{
|
|
73766
|
+
id: "alerts",
|
|
73767
|
+
family: "system",
|
|
73768
|
+
label: "Alerts",
|
|
73769
|
+
kinds: [
|
|
73770
|
+
"alert-critical",
|
|
73771
|
+
"alert-error",
|
|
73772
|
+
"alert-critical-resolved"
|
|
73773
|
+
]
|
|
73774
|
+
},
|
|
73559
73775
|
{
|
|
73560
73776
|
id: "alarm",
|
|
73561
73777
|
family: "alarm",
|
|
@@ -73600,6 +73816,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
73600
73816
|
return [[descriptor.kind, field]];
|
|
73601
73817
|
})));
|
|
73602
73818
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
73819
|
+
object({
|
|
73820
|
+
phase: _enum(["raised", "resolved"]),
|
|
73821
|
+
episodeId: string().min(1),
|
|
73822
|
+
alertId: string().min(1),
|
|
73823
|
+
severity: AlertSeveritySchema,
|
|
73824
|
+
category: string(),
|
|
73825
|
+
title: string(),
|
|
73826
|
+
message: string(),
|
|
73827
|
+
sourceType: string().optional(),
|
|
73828
|
+
sourceId: string().optional(),
|
|
73829
|
+
nodeId: string().optional(),
|
|
73830
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
73831
|
+
actionUrl: string().optional(),
|
|
73832
|
+
at: number()
|
|
73833
|
+
});
|
|
73603
73834
|
var RULE_BODY_ONLY = ["body"];
|
|
73604
73835
|
var RULE_TEXT = ["title", "body"];
|
|
73605
73836
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -73609,6 +73840,11 @@ var TANK = [
|
|
|
73609
73840
|
"device-tank-full",
|
|
73610
73841
|
"device-tank-normal"
|
|
73611
73842
|
];
|
|
73843
|
+
var ALERT_EPISODE = [
|
|
73844
|
+
"alert-critical",
|
|
73845
|
+
"alert-error",
|
|
73846
|
+
"alert-critical-resolved"
|
|
73847
|
+
];
|
|
73612
73848
|
var UPDATES = [
|
|
73613
73849
|
"addon-update-available",
|
|
73614
73850
|
"server-update-available",
|
|
@@ -73801,14 +74037,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
73801
74037
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
73802
74038
|
([...RULE_TEXT], [...TANK]),
|
|
73803
74039
|
[...RULE_TEXT],
|
|
73804
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
73805
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
73806
|
-
[...RULE_TEXT],
|
|
74040
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
74041
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
73807
74042
|
[...RULE_TEXT],
|
|
73808
74043
|
[...RULE_TEXT],
|
|
73809
74044
|
[...RULE_TEXT],
|
|
73810
74045
|
[...RULE_TEXT],
|
|
73811
74046
|
[...RULE_TEXT],
|
|
74047
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
73812
74048
|
[...RULE_TEXT],
|
|
73813
74049
|
[...RULE_TEXT],
|
|
73814
74050
|
[...RULE_TEXT],
|
|
@@ -73826,7 +74062,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
73826
74062
|
[...RULE_TEXT],
|
|
73827
74063
|
[...RULE_TEXT],
|
|
73828
74064
|
[...RULE_TEXT],
|
|
73829
|
-
[...RULE_TEXT],
|
|
74065
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74066
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74067
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74068
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74069
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
73830
74070
|
[...RULE_TEXT],
|
|
73831
74071
|
[...RULE_TEXT],
|
|
73832
74072
|
[...RULE_TEXT],
|