@camstack/addon-model-studio 1.1.271 → 1.1.273
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-DzJf18cG.mjs → MotionZonesSettings-Duuc8czf.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BfcxIzcV.mjs → PrivacyMaskSettings-WF3MWogd.mjs} +4 -4
- package/dist/{SceneMonitorEditor-CXZ7rmkI.mjs → SceneMonitorEditor-qLV4EW0B.mjs} +3 -3
- package/dist/_stub.js +2592 -2543
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-C6bgtko3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-j0yqR-LS.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Z7ZkM51W.mjs +26 -0
- package/dist/{hostInit-CXCV1rE1.mjs → hostInit-Cq_rzz4M.mjs} +3 -3
- package/dist/model-studio.addon.js +480 -240
- package/dist/model-studio.addon.mjs +480 -240
- package/dist/{player-overlays-mDdhIu2Z.mjs → player-overlays-CT6XuXiM.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-BDYhKoco.mjs → responsive-CYduFr5C.mjs} +1 -1
- package/dist/{scene-monitor-copy-CqHEekjf.mjs → scene-monitor-copy-CPlDlbF7.mjs} +1 -1
- package/dist/{square-Br-2YTir.mjs → square-CDQOHhX3.mjs} +1 -1
- package/dist/{trash-2-Dyh-Oss-.mjs → trash-2-CHBNgRI-.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-uFBENbsJ.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CoBHAIAZ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BpItLART.mjs +0 -26
|
@@ -368,7 +368,7 @@ function buildScryptedRegistryDescriptor(entry) {
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
//#endregion
|
|
371
|
-
//#region ../types/dist/event-category-
|
|
371
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
372
372
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
373
373
|
EventCategory["SystemBoot"] = "system.boot";
|
|
374
374
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -447,9 +447,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
447
447
|
/**
|
|
448
448
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
449
449
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
450
|
-
* alert centre turns it into one
|
|
450
|
+
* alert centre turns it into one critical alert.
|
|
451
451
|
*/
|
|
452
452
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
453
|
+
/**
|
|
454
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
455
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
456
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
457
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
458
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
459
|
+
* event may be dropped (D8, D11).
|
|
460
|
+
*/
|
|
461
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
453
462
|
EventCategory["AddonError"] = "addon.error";
|
|
454
463
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
455
464
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5774,7 +5783,7 @@ var ZodIssueCode = {
|
|
|
5774
5783
|
var ZodFirstPartyTypeKind;
|
|
5775
5784
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5776
5785
|
//#endregion
|
|
5777
|
-
//#region ../types/dist/sleep-
|
|
5786
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5778
5787
|
/**
|
|
5779
5788
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5780
5789
|
* window to float samples (D455).
|
|
@@ -8156,6 +8165,12 @@ function normalizeAddonInitResult(result) {
|
|
|
8156
8165
|
if (Array.isArray(result)) return { providers: result };
|
|
8157
8166
|
return result;
|
|
8158
8167
|
}
|
|
8168
|
+
/**
|
|
8169
|
+
* The share-view scope kinds a `csv_*` share token can carry. The hub mints
|
|
8170
|
+
* and validates them (`share-token.service.ts` builds its enum from this
|
|
8171
|
+
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
8172
|
+
*/
|
|
8173
|
+
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
8159
8174
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
8160
8175
|
var PeerBytesTicketSchema = object({
|
|
8161
8176
|
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
@@ -12960,6 +12975,229 @@ var ConvertResultSchema = object({
|
|
|
12960
12975
|
entry: ModelCatalogEntrySchema,
|
|
12961
12976
|
artifacts: array(ConvertArtifactSchema).readonly()
|
|
12962
12977
|
});
|
|
12978
|
+
/**
|
|
12979
|
+
* Zod schemas for persisted record types.
|
|
12980
|
+
*
|
|
12981
|
+
* These schemas serve as the single source of truth for types that are
|
|
12982
|
+
* stored in the settings-store backend and retrieved via tRPC. They
|
|
12983
|
+
* replace the manual TypeScript interfaces with schema-derived types,
|
|
12984
|
+
* enabling runtime validation when reading from the backend.
|
|
12985
|
+
*
|
|
12986
|
+
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
12987
|
+
* keeps the original name for backward compatibility.
|
|
12988
|
+
*/
|
|
12989
|
+
/**
|
|
12990
|
+
* Auth model (v2 — 2026-05-12 caps-only):
|
|
12991
|
+
*
|
|
12992
|
+
* Two principals:
|
|
12993
|
+
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
12994
|
+
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
12995
|
+
*
|
|
12996
|
+
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
12997
|
+
* `super_admin` — collapsed onto the single boolean because every
|
|
12998
|
+
* non-admin caller is governed by the same scope-check rules; the
|
|
12999
|
+
* distinction was only ever used to route role-specific procedures
|
|
13000
|
+
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
13001
|
+
* with `isAdmin: false` + an explicit scope list.
|
|
13002
|
+
*/
|
|
13003
|
+
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
13004
|
+
var MethodAccessSchema = _enum([
|
|
13005
|
+
"view",
|
|
13006
|
+
"create",
|
|
13007
|
+
"delete"
|
|
13008
|
+
]);
|
|
13009
|
+
/**
|
|
13010
|
+
* A single scope grant. Three forms — checked in matcher with OR
|
|
13011
|
+
* semantics; the first match decides whether the call passes:
|
|
13012
|
+
*
|
|
13013
|
+
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
13014
|
+
* cap with the matching `scope` declaration. New caps inherit grants
|
|
13015
|
+
* automatically — adding a device cap to the codebase makes it
|
|
13016
|
+
* reachable to every user with `category:device [...]` without a
|
|
13017
|
+
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
13018
|
+
*
|
|
13019
|
+
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
13020
|
+
* useful when an integration needs to interact with one specific
|
|
13021
|
+
* addon's surface regardless of how many caps it exports.
|
|
13022
|
+
*
|
|
13023
|
+
* - `capability` — the most precise form. Single cap name. Use for
|
|
13024
|
+
* integration tokens where you want to grant `addons.installPackage`
|
|
13025
|
+
* and nothing else.
|
|
13026
|
+
*
|
|
13027
|
+
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
13028
|
+
* "give me everything" escape; there is no wildcard scope.
|
|
13029
|
+
*/
|
|
13030
|
+
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
13031
|
+
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
13032
|
+
var CapScopeSchema = _enum(["device", "system"]);
|
|
13033
|
+
/**
|
|
13034
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
13035
|
+
*
|
|
13036
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
13037
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
13038
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
13039
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
13040
|
+
*
|
|
13041
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
13042
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
13043
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
13044
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
13045
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
13046
|
+
* is NOT covered until the grant is edited.
|
|
13047
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
13048
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
13049
|
+
* re-resolves on the next request.
|
|
13050
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
13051
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
13052
|
+
* null/unset location matches NO `locations` selector.
|
|
13053
|
+
*/
|
|
13054
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
13055
|
+
object({ kind: literal("all") }),
|
|
13056
|
+
object({
|
|
13057
|
+
kind: literal("ids"),
|
|
13058
|
+
ids: array(number().int()).min(1)
|
|
13059
|
+
}),
|
|
13060
|
+
object({
|
|
13061
|
+
kind: literal("types"),
|
|
13062
|
+
types: array(_enum(DeviceType)).min(1)
|
|
13063
|
+
}),
|
|
13064
|
+
object({
|
|
13065
|
+
kind: literal("locations"),
|
|
13066
|
+
locations: array(string().min(1)).min(1)
|
|
13067
|
+
})
|
|
13068
|
+
]);
|
|
13069
|
+
var DeviceTokenScopeSchema = object({
|
|
13070
|
+
type: literal("device"),
|
|
13071
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
13072
|
+
selector: DeviceSelectorSchema,
|
|
13073
|
+
access: array(MethodAccessSchema).min(1),
|
|
13074
|
+
/**
|
|
13075
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
13076
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
13077
|
+
* Direction is parent → children ONLY.
|
|
13078
|
+
*
|
|
13079
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
13080
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
13081
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
13082
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
13083
|
+
* explicitly to override that default per grant.
|
|
13084
|
+
*/
|
|
13085
|
+
includeLinked: boolean().optional()
|
|
13086
|
+
});
|
|
13087
|
+
/**
|
|
13088
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
13089
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
13090
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
13091
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
13092
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
13093
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
13094
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
13095
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
13096
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
13097
|
+
*/
|
|
13098
|
+
function migrateLegacyTokenScope(raw) {
|
|
13099
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
13100
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
13101
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
13102
|
+
const targets = Reflect.get(raw, "targets");
|
|
13103
|
+
if (!Array.isArray(targets)) return raw;
|
|
13104
|
+
return {
|
|
13105
|
+
type: "device",
|
|
13106
|
+
selector: {
|
|
13107
|
+
kind: "ids",
|
|
13108
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
13109
|
+
},
|
|
13110
|
+
access: Reflect.get(raw, "access")
|
|
13111
|
+
};
|
|
13112
|
+
}
|
|
13113
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
13114
|
+
object({
|
|
13115
|
+
type: literal("category"),
|
|
13116
|
+
target: CapScopeSchema,
|
|
13117
|
+
access: array(MethodAccessSchema).min(1)
|
|
13118
|
+
}),
|
|
13119
|
+
object({
|
|
13120
|
+
type: literal("capability"),
|
|
13121
|
+
target: string(),
|
|
13122
|
+
access: array(MethodAccessSchema).min(1)
|
|
13123
|
+
}),
|
|
13124
|
+
object({
|
|
13125
|
+
type: literal("addon"),
|
|
13126
|
+
target: string(),
|
|
13127
|
+
access: array(MethodAccessSchema).min(1)
|
|
13128
|
+
}),
|
|
13129
|
+
DeviceTokenScopeSchema
|
|
13130
|
+
]));
|
|
13131
|
+
object({
|
|
13132
|
+
id: string(),
|
|
13133
|
+
username: string(),
|
|
13134
|
+
passwordHash: string(),
|
|
13135
|
+
/**
|
|
13136
|
+
* Admin bypass. When true, the middleware skips the scope-access
|
|
13137
|
+
* check entirely. There is no other axis of privilege; the legacy
|
|
13138
|
+
* role enum collapsed onto this boolean in v2.
|
|
13139
|
+
*/
|
|
13140
|
+
isAdmin: boolean().default(false),
|
|
13141
|
+
allowedProviders: AllowedProviderSchema,
|
|
13142
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13143
|
+
/**
|
|
13144
|
+
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
13145
|
+
* ignored. Non-admins without scopes are locked out of every
|
|
13146
|
+
* protected call.
|
|
13147
|
+
*/
|
|
13148
|
+
scopes: array(TokenScopeSchema).default([]),
|
|
13149
|
+
createdAt: number(),
|
|
13150
|
+
updatedAt: number()
|
|
13151
|
+
});
|
|
13152
|
+
object({
|
|
13153
|
+
id: string(),
|
|
13154
|
+
label: string(),
|
|
13155
|
+
isAdmin: boolean().default(false),
|
|
13156
|
+
allowedProviders: AllowedProviderSchema,
|
|
13157
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13158
|
+
tokenHash: string(),
|
|
13159
|
+
tokenPrefix: string(),
|
|
13160
|
+
createdAt: number(),
|
|
13161
|
+
lastUsedAt: number().optional()
|
|
13162
|
+
});
|
|
13163
|
+
object({
|
|
13164
|
+
id: string(),
|
|
13165
|
+
userId: string(),
|
|
13166
|
+
name: string(),
|
|
13167
|
+
tokenHash: string(),
|
|
13168
|
+
tokenPrefix: string(),
|
|
13169
|
+
scopes: array(TokenScopeSchema),
|
|
13170
|
+
expiresAt: number().nullish(),
|
|
13171
|
+
lastUsedAt: number().nullish(),
|
|
13172
|
+
createdAt: number()
|
|
13173
|
+
});
|
|
13174
|
+
/** What a share-view grant lets its holder see. */
|
|
13175
|
+
var ShareViewGrantSchema = object({
|
|
13176
|
+
kind: _enum(SHARE_VIEW_KINDS),
|
|
13177
|
+
deviceIds: array(number().int().nonnegative()).min(1).max(64),
|
|
13178
|
+
/** Talk-back, opt-in at mint time; absent means off. */
|
|
13179
|
+
talk: boolean().optional()
|
|
13180
|
+
});
|
|
13181
|
+
var ShareViewScopeSchema = object({
|
|
13182
|
+
type: literal("share-view"),
|
|
13183
|
+
grant: ShareViewGrantSchema
|
|
13184
|
+
});
|
|
13185
|
+
var AddonRoutesScopeSchema = object({
|
|
13186
|
+
type: literal("addon-routes"),
|
|
13187
|
+
access: array(MethodAccessSchema).min(1)
|
|
13188
|
+
});
|
|
13189
|
+
var CredentialScopeSchema = union([
|
|
13190
|
+
literal("*"),
|
|
13191
|
+
ShareViewScopeSchema,
|
|
13192
|
+
AddonRoutesScopeSchema,
|
|
13193
|
+
TokenScopeSchema
|
|
13194
|
+
]);
|
|
13195
|
+
object({
|
|
13196
|
+
kind: literal("credential"),
|
|
13197
|
+
sub: string().min(1),
|
|
13198
|
+
jti: string().min(16),
|
|
13199
|
+
scopes: array(CredentialScopeSchema).min(1)
|
|
13200
|
+
});
|
|
12963
13201
|
_enum(["new-session", "step-up"]);
|
|
12964
13202
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12965
13203
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -13693,7 +13931,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13693
13931
|
]);
|
|
13694
13932
|
var AlertActionSchema = object({
|
|
13695
13933
|
label: string(),
|
|
13696
|
-
href: string().optional()
|
|
13934
|
+
href: string().optional(),
|
|
13935
|
+
/**
|
|
13936
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13937
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13938
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13939
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13940
|
+
*/
|
|
13941
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13697
13942
|
});
|
|
13698
13943
|
var AlertStatusSchema = _enum([
|
|
13699
13944
|
"active",
|
|
@@ -42103,6 +42348,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42103
42348
|
"server-updated",
|
|
42104
42349
|
"export-completed",
|
|
42105
42350
|
"backup-completed",
|
|
42351
|
+
"alert-critical",
|
|
42352
|
+
"alert-error",
|
|
42353
|
+
"alert-critical-resolved",
|
|
42106
42354
|
"camera-online",
|
|
42107
42355
|
"camera-offline",
|
|
42108
42356
|
"camera-disabled",
|
|
@@ -44138,202 +44386,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
44138
44386
|
auth: "admin"
|
|
44139
44387
|
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
44140
44388
|
/**
|
|
44141
|
-
* Zod schemas for persisted record types.
|
|
44142
|
-
*
|
|
44143
|
-
* These schemas serve as the single source of truth for types that are
|
|
44144
|
-
* stored in the settings-store backend and retrieved via tRPC. They
|
|
44145
|
-
* replace the manual TypeScript interfaces with schema-derived types,
|
|
44146
|
-
* enabling runtime validation when reading from the backend.
|
|
44147
|
-
*
|
|
44148
|
-
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
44149
|
-
* keeps the original name for backward compatibility.
|
|
44150
|
-
*/
|
|
44151
|
-
/**
|
|
44152
|
-
* Auth model (v2 — 2026-05-12 caps-only):
|
|
44153
|
-
*
|
|
44154
|
-
* Two principals:
|
|
44155
|
-
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
44156
|
-
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
44157
|
-
*
|
|
44158
|
-
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
44159
|
-
* `super_admin` — collapsed onto the single boolean because every
|
|
44160
|
-
* non-admin caller is governed by the same scope-check rules; the
|
|
44161
|
-
* distinction was only ever used to route role-specific procedures
|
|
44162
|
-
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
44163
|
-
* with `isAdmin: false` + an explicit scope list.
|
|
44164
|
-
*/
|
|
44165
|
-
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
44166
|
-
var MethodAccessSchema = _enum([
|
|
44167
|
-
"view",
|
|
44168
|
-
"create",
|
|
44169
|
-
"delete"
|
|
44170
|
-
]);
|
|
44171
|
-
/**
|
|
44172
|
-
* A single scope grant. Three forms — checked in matcher with OR
|
|
44173
|
-
* semantics; the first match decides whether the call passes:
|
|
44174
|
-
*
|
|
44175
|
-
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
44176
|
-
* cap with the matching `scope` declaration. New caps inherit grants
|
|
44177
|
-
* automatically — adding a device cap to the codebase makes it
|
|
44178
|
-
* reachable to every user with `category:device [...]` without a
|
|
44179
|
-
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
44180
|
-
*
|
|
44181
|
-
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
44182
|
-
* useful when an integration needs to interact with one specific
|
|
44183
|
-
* addon's surface regardless of how many caps it exports.
|
|
44184
|
-
*
|
|
44185
|
-
* - `capability` — the most precise form. Single cap name. Use for
|
|
44186
|
-
* integration tokens where you want to grant `addons.installPackage`
|
|
44187
|
-
* and nothing else.
|
|
44188
|
-
*
|
|
44189
|
-
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
44190
|
-
* "give me everything" escape; there is no wildcard scope.
|
|
44191
|
-
*/
|
|
44192
|
-
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
44193
|
-
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
44194
|
-
var CapScopeSchema = _enum(["device", "system"]);
|
|
44195
|
-
/**
|
|
44196
|
-
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
44197
|
-
*
|
|
44198
|
-
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
44199
|
-
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
44200
|
-
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
44201
|
-
* AFTER the grant was minted — no re-grant, no re-login.
|
|
44202
|
-
*
|
|
44203
|
-
* - `all` — every device in the deployment. The broad viewer/operator
|
|
44204
|
-
* lever without a `category` grant (a `category` grant also covers device
|
|
44205
|
-
* caps that carry no deviceId; `all` is specifically the device set).
|
|
44206
|
-
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
44207
|
-
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
44208
|
-
* is NOT covered until the grant is edited.
|
|
44209
|
-
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
44210
|
-
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
44211
|
-
* re-resolves on the next request.
|
|
44212
|
-
* - `locations` — every device whose operator-assigned `location` label is
|
|
44213
|
-
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
44214
|
-
* null/unset location matches NO `locations` selector.
|
|
44215
|
-
*/
|
|
44216
|
-
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
44217
|
-
object({ kind: literal("all") }),
|
|
44218
|
-
object({
|
|
44219
|
-
kind: literal("ids"),
|
|
44220
|
-
ids: array(number().int()).min(1)
|
|
44221
|
-
}),
|
|
44222
|
-
object({
|
|
44223
|
-
kind: literal("types"),
|
|
44224
|
-
types: array(_enum(DeviceType)).min(1)
|
|
44225
|
-
}),
|
|
44226
|
-
object({
|
|
44227
|
-
kind: literal("locations"),
|
|
44228
|
-
locations: array(string().min(1)).min(1)
|
|
44229
|
-
})
|
|
44230
|
-
]);
|
|
44231
|
-
var DeviceTokenScopeSchema = object({
|
|
44232
|
-
type: literal("device"),
|
|
44233
|
-
/** The device SET this grant covers — resolved against the live fleet. */
|
|
44234
|
-
selector: DeviceSelectorSchema,
|
|
44235
|
-
access: array(MethodAccessSchema).min(1),
|
|
44236
|
-
/**
|
|
44237
|
-
* Whether a grant on a PARENT device transparently covers its accessory
|
|
44238
|
-
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
44239
|
-
* Direction is parent → children ONLY.
|
|
44240
|
-
*
|
|
44241
|
-
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
44242
|
-
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
44243
|
-
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
44244
|
-
* operator must grant on the child, not inherit from the parent). Set it
|
|
44245
|
-
* explicitly to override that default per grant.
|
|
44246
|
-
*/
|
|
44247
|
-
includeLinked: boolean().optional()
|
|
44248
|
-
});
|
|
44249
|
-
/**
|
|
44250
|
-
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
44251
|
-
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
44252
|
-
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
44253
|
-
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
44254
|
-
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
44255
|
-
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
44256
|
-
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
44257
|
-
* migration covers both without a flag day. No cast — the raw object is read
|
|
44258
|
-
* through `Reflect.get` (its static type is `unknown`).
|
|
44259
|
-
*/
|
|
44260
|
-
function migrateLegacyTokenScope(raw) {
|
|
44261
|
-
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
44262
|
-
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
44263
|
-
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
44264
|
-
const targets = Reflect.get(raw, "targets");
|
|
44265
|
-
if (!Array.isArray(targets)) return raw;
|
|
44266
|
-
return {
|
|
44267
|
-
type: "device",
|
|
44268
|
-
selector: {
|
|
44269
|
-
kind: "ids",
|
|
44270
|
-
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
44271
|
-
},
|
|
44272
|
-
access: Reflect.get(raw, "access")
|
|
44273
|
-
};
|
|
44274
|
-
}
|
|
44275
|
-
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
44276
|
-
object({
|
|
44277
|
-
type: literal("category"),
|
|
44278
|
-
target: CapScopeSchema,
|
|
44279
|
-
access: array(MethodAccessSchema).min(1)
|
|
44280
|
-
}),
|
|
44281
|
-
object({
|
|
44282
|
-
type: literal("capability"),
|
|
44283
|
-
target: string(),
|
|
44284
|
-
access: array(MethodAccessSchema).min(1)
|
|
44285
|
-
}),
|
|
44286
|
-
object({
|
|
44287
|
-
type: literal("addon"),
|
|
44288
|
-
target: string(),
|
|
44289
|
-
access: array(MethodAccessSchema).min(1)
|
|
44290
|
-
}),
|
|
44291
|
-
DeviceTokenScopeSchema
|
|
44292
|
-
]));
|
|
44293
|
-
object({
|
|
44294
|
-
id: string(),
|
|
44295
|
-
username: string(),
|
|
44296
|
-
passwordHash: string(),
|
|
44297
|
-
/**
|
|
44298
|
-
* Admin bypass. When true, the middleware skips the scope-access
|
|
44299
|
-
* check entirely. There is no other axis of privilege; the legacy
|
|
44300
|
-
* role enum collapsed onto this boolean in v2.
|
|
44301
|
-
*/
|
|
44302
|
-
isAdmin: boolean().default(false),
|
|
44303
|
-
allowedProviders: AllowedProviderSchema,
|
|
44304
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44305
|
-
/**
|
|
44306
|
-
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
44307
|
-
* ignored. Non-admins without scopes are locked out of every
|
|
44308
|
-
* protected call.
|
|
44309
|
-
*/
|
|
44310
|
-
scopes: array(TokenScopeSchema).default([]),
|
|
44311
|
-
createdAt: number(),
|
|
44312
|
-
updatedAt: number()
|
|
44313
|
-
});
|
|
44314
|
-
object({
|
|
44315
|
-
id: string(),
|
|
44316
|
-
label: string(),
|
|
44317
|
-
isAdmin: boolean().default(false),
|
|
44318
|
-
allowedProviders: AllowedProviderSchema,
|
|
44319
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44320
|
-
tokenHash: string(),
|
|
44321
|
-
tokenPrefix: string(),
|
|
44322
|
-
createdAt: number(),
|
|
44323
|
-
lastUsedAt: number().optional()
|
|
44324
|
-
});
|
|
44325
|
-
object({
|
|
44326
|
-
id: string(),
|
|
44327
|
-
userId: string(),
|
|
44328
|
-
name: string(),
|
|
44329
|
-
tokenHash: string(),
|
|
44330
|
-
tokenPrefix: string(),
|
|
44331
|
-
scopes: array(TokenScopeSchema),
|
|
44332
|
-
expiresAt: number().nullish(),
|
|
44333
|
-
lastUsedAt: number().nullish(),
|
|
44334
|
-
createdAt: number()
|
|
44335
|
-
});
|
|
44336
|
-
/**
|
|
44337
44389
|
* `oauth-integration` — a collection cap by which an addon declares
|
|
44338
44390
|
* itself a linkable OAuth client of the hub's core `/oauth2/*` server.
|
|
44339
44391
|
* Each provider returns a static descriptor; the core enumerates them
|
|
@@ -51135,7 +51187,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51135
51187
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51136
51188
|
kind: "mutation",
|
|
51137
51189
|
auth: "admin"
|
|
51138
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51190
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51191
|
+
clear: boolean(),
|
|
51192
|
+
repointLocationId: string().optional()
|
|
51193
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51139
51194
|
kind: "mutation",
|
|
51140
51195
|
auth: "admin"
|
|
51141
51196
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -54570,6 +54625,11 @@ object({
|
|
|
54570
54625
|
*
|
|
54571
54626
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
54572
54627
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
54628
|
+
*
|
|
54629
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
54630
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
54631
|
+
* the link is down, or the description does not carry it) and is never
|
|
54632
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
54573
54633
|
*/
|
|
54574
54634
|
var DishwasherStateSchema = _enum([
|
|
54575
54635
|
"idle",
|
|
@@ -54579,112 +54639,227 @@ var DishwasherStateSchema = _enum([
|
|
|
54579
54639
|
"error",
|
|
54580
54640
|
"unavailable"
|
|
54581
54641
|
]);
|
|
54642
|
+
/**
|
|
54643
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
54644
|
+
* view for compact surfaces; this is what the appliance said.
|
|
54645
|
+
*/
|
|
54646
|
+
var DishwasherOperationStateSchema = _enum([
|
|
54647
|
+
"Inactive",
|
|
54648
|
+
"Ready",
|
|
54649
|
+
"DelayedStart",
|
|
54650
|
+
"Run",
|
|
54651
|
+
"Pause",
|
|
54652
|
+
"ActionRequired",
|
|
54653
|
+
"Finished",
|
|
54654
|
+
"Error",
|
|
54655
|
+
"Aborting"
|
|
54656
|
+
]);
|
|
54657
|
+
/**
|
|
54658
|
+
* Why fields may be `null`:
|
|
54659
|
+
* - `available` — the link is up and the description is loaded;
|
|
54660
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
54661
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
54662
|
+
* be loaded, so its values cannot be decoded.
|
|
54663
|
+
*/
|
|
54664
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
54665
|
+
"available",
|
|
54666
|
+
"offline",
|
|
54667
|
+
"description-missing"
|
|
54668
|
+
]);
|
|
54582
54669
|
var DishwasherConsumableLevelSchema = _enum([
|
|
54583
54670
|
"ok",
|
|
54584
54671
|
"low",
|
|
54585
54672
|
"empty"
|
|
54586
54673
|
]);
|
|
54587
54674
|
object({
|
|
54675
|
+
availability: DishwasherAvailabilitySchema,
|
|
54676
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
54588
54677
|
state: DishwasherStateSchema,
|
|
54589
|
-
/**
|
|
54678
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
54679
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
54680
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
54590
54681
|
program: string().nullable(),
|
|
54591
|
-
/**
|
|
54682
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
54683
|
+
selectedProgram: string().nullable(),
|
|
54684
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
54592
54685
|
availablePrograms: array(string()),
|
|
54593
|
-
/**
|
|
54594
|
-
|
|
54686
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
54687
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
54688
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
54689
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
54595
54690
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
54596
54691
|
progressPercent: number().min(0).max(100).nullable(),
|
|
54597
|
-
/** True when the door is reported open. */
|
|
54598
|
-
doorOpen: boolean(),
|
|
54599
|
-
/** True when
|
|
54600
|
-
|
|
54601
|
-
/**
|
|
54602
|
-
|
|
54692
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
54693
|
+
doorOpen: boolean().nullable(),
|
|
54694
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
54695
|
+
doorLocked: boolean().nullable(),
|
|
54696
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
54697
|
+
remoteStartAllowed: boolean().nullable(),
|
|
54698
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
54699
|
+
remoteControlActive: boolean().nullable(),
|
|
54700
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
54701
|
+
localControlActive: boolean().nullable(),
|
|
54702
|
+
/** Main power / switched-on state; null when not known. */
|
|
54703
|
+
powerOn: boolean().nullable(),
|
|
54704
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54705
|
+
powerState: string().nullable(),
|
|
54603
54706
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54604
54707
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54605
|
-
|
|
54606
|
-
|
|
54708
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54709
|
+
halfLoad: boolean().nullable(),
|
|
54710
|
+
hygienePlus: boolean().nullable(),
|
|
54607
54711
|
/** Extra dry option when the appliance exposes it. */
|
|
54608
|
-
extraDry: boolean(),
|
|
54712
|
+
extraDry: boolean().nullable(),
|
|
54609
54713
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
54610
|
-
intensiveZone: boolean(),
|
|
54714
|
+
intensiveZone: boolean().nullable(),
|
|
54611
54715
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
54612
|
-
varioSpeedPlus: boolean(),
|
|
54613
|
-
/** Child lock (controls disabled on the appliance). */
|
|
54614
|
-
childLock: boolean(),
|
|
54716
|
+
varioSpeedPlus: boolean().nullable(),
|
|
54717
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
54718
|
+
childLock: boolean().nullable(),
|
|
54719
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
54720
|
+
activeEvents: array(string()),
|
|
54721
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
54615
54722
|
errorCode: number().nullable(),
|
|
54723
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
54616
54724
|
errorLabel: string().nullable(),
|
|
54725
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
54617
54726
|
lastFetchedAt: number()
|
|
54618
54727
|
});
|
|
54619
|
-
|
|
54728
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
54729
|
+
/** A value a program option or setting can take. */
|
|
54730
|
+
var DishwasherValueSchema = union([
|
|
54731
|
+
boolean(),
|
|
54732
|
+
string(),
|
|
54733
|
+
number()
|
|
54734
|
+
]);
|
|
54735
|
+
var DishwasherAccessSchema = _enum([
|
|
54736
|
+
"none",
|
|
54737
|
+
"read",
|
|
54738
|
+
"readWrite",
|
|
54739
|
+
"writeOnly",
|
|
54740
|
+
"readStatic"
|
|
54741
|
+
]);
|
|
54742
|
+
/**
|
|
54743
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
54744
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
54745
|
+
*/
|
|
54746
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
54747
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
54748
|
+
key: string(),
|
|
54749
|
+
/** Last segment of the key, for display. */
|
|
54750
|
+
name: string(),
|
|
54751
|
+
type: _enum([
|
|
54752
|
+
"boolean",
|
|
54753
|
+
"number",
|
|
54754
|
+
"enum",
|
|
54755
|
+
"string"
|
|
54756
|
+
]),
|
|
54757
|
+
access: DishwasherAccessSchema,
|
|
54758
|
+
/** The appliance reports this entity as currently available. */
|
|
54759
|
+
available: boolean(),
|
|
54760
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
54761
|
+
unit: string().nullable(),
|
|
54762
|
+
min: number().nullable(),
|
|
54763
|
+
max: number().nullable(),
|
|
54764
|
+
step: number().nullable(),
|
|
54765
|
+
/** Allowed members of an enum; null for other types. */
|
|
54766
|
+
enumValues: array(string()).nullable(),
|
|
54767
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
54768
|
+
});
|
|
54769
|
+
var DishwasherProgramSchema = object({
|
|
54770
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
54771
|
+
key: string(),
|
|
54772
|
+
name: string(),
|
|
54773
|
+
/** The appliance currently offers this program. */
|
|
54774
|
+
available: boolean(),
|
|
54775
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
54776
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
54777
|
+
});
|
|
54778
|
+
var DishwasherOptionsSchema = object({
|
|
54779
|
+
availability: DishwasherAvailabilitySchema,
|
|
54780
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
54781
|
+
supportsStart: boolean(),
|
|
54782
|
+
supportsPause: boolean(),
|
|
54783
|
+
supportsResume: boolean(),
|
|
54784
|
+
supportsStop: boolean(),
|
|
54785
|
+
supportsPower: boolean(),
|
|
54786
|
+
/** Every program the description lists, with its options. */
|
|
54787
|
+
programs: array(DishwasherProgramSchema),
|
|
54788
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
54789
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
54790
|
+
});
|
|
54791
|
+
DeviceType.Dishwasher, method(object({
|
|
54792
|
+
deviceId: DeviceIdSchema,
|
|
54793
|
+
program: string().min(1).optional(),
|
|
54794
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
54795
|
+
}), _void(), {
|
|
54620
54796
|
kind: "mutation",
|
|
54621
54797
|
auth: "protected"
|
|
54622
|
-
}), method(object({ deviceId:
|
|
54798
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54623
54799
|
kind: "mutation",
|
|
54624
54800
|
auth: "protected"
|
|
54625
|
-
}), method(object({ deviceId:
|
|
54801
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54802
|
+
kind: "mutation",
|
|
54803
|
+
auth: "protected"
|
|
54804
|
+
}), method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
54626
54805
|
kind: "mutation",
|
|
54627
54806
|
auth: "protected"
|
|
54628
54807
|
}), method(object({
|
|
54629
|
-
deviceId:
|
|
54808
|
+
deviceId: DeviceIdSchema,
|
|
54630
54809
|
program: string().min(1)
|
|
54631
54810
|
}), _void(), {
|
|
54632
54811
|
kind: "mutation",
|
|
54633
54812
|
auth: "protected"
|
|
54634
54813
|
}), method(object({
|
|
54635
|
-
deviceId:
|
|
54814
|
+
deviceId: DeviceIdSchema,
|
|
54636
54815
|
on: boolean()
|
|
54637
54816
|
}), _void(), {
|
|
54638
54817
|
kind: "mutation",
|
|
54639
54818
|
auth: "protected"
|
|
54640
54819
|
}), method(object({
|
|
54641
|
-
deviceId:
|
|
54820
|
+
deviceId: DeviceIdSchema,
|
|
54642
54821
|
on: boolean()
|
|
54643
54822
|
}), _void(), {
|
|
54644
54823
|
kind: "mutation",
|
|
54645
54824
|
auth: "protected"
|
|
54646
54825
|
}), method(object({
|
|
54647
|
-
deviceId:
|
|
54826
|
+
deviceId: DeviceIdSchema,
|
|
54648
54827
|
on: boolean()
|
|
54649
54828
|
}), _void(), {
|
|
54650
54829
|
kind: "mutation",
|
|
54651
54830
|
auth: "protected"
|
|
54652
54831
|
}), method(object({
|
|
54653
|
-
deviceId:
|
|
54832
|
+
deviceId: DeviceIdSchema,
|
|
54654
54833
|
on: boolean()
|
|
54655
54834
|
}), _void(), {
|
|
54656
54835
|
kind: "mutation",
|
|
54657
54836
|
auth: "protected"
|
|
54658
54837
|
}), method(object({
|
|
54659
|
-
deviceId:
|
|
54838
|
+
deviceId: DeviceIdSchema,
|
|
54660
54839
|
on: boolean()
|
|
54661
54840
|
}), _void(), {
|
|
54662
54841
|
kind: "mutation",
|
|
54663
54842
|
auth: "protected"
|
|
54664
54843
|
}), method(object({
|
|
54665
|
-
deviceId:
|
|
54844
|
+
deviceId: DeviceIdSchema,
|
|
54666
54845
|
on: boolean()
|
|
54667
54846
|
}), _void(), {
|
|
54668
54847
|
kind: "mutation",
|
|
54669
54848
|
auth: "protected"
|
|
54670
54849
|
}), method(object({
|
|
54671
|
-
deviceId:
|
|
54850
|
+
deviceId: DeviceIdSchema,
|
|
54672
54851
|
on: boolean()
|
|
54673
54852
|
}), _void(), {
|
|
54674
54853
|
kind: "mutation",
|
|
54675
54854
|
auth: "protected"
|
|
54676
54855
|
}), method(object({
|
|
54677
|
-
deviceId:
|
|
54856
|
+
deviceId: DeviceIdSchema,
|
|
54678
54857
|
key: string().min(1),
|
|
54679
|
-
value:
|
|
54680
|
-
boolean(),
|
|
54681
|
-
string(),
|
|
54682
|
-
number()
|
|
54683
|
-
])
|
|
54858
|
+
value: DishwasherValueSchema
|
|
54684
54859
|
}), _void(), {
|
|
54685
54860
|
kind: "mutation",
|
|
54686
54861
|
auth: "protected"
|
|
54687
|
-
});
|
|
54862
|
+
}), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
|
|
54688
54863
|
object({
|
|
54689
54864
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
54690
54865
|
lastPressedAt: number().nullable(),
|
|
@@ -64842,6 +65017,12 @@ Object.freeze({
|
|
|
64842
65017
|
addonId: null,
|
|
64843
65018
|
access: "view"
|
|
64844
65019
|
},
|
|
65020
|
+
"dishwasher.getOptions": {
|
|
65021
|
+
capName: "dishwasher",
|
|
65022
|
+
capScope: "device",
|
|
65023
|
+
addonId: null,
|
|
65024
|
+
access: "view"
|
|
65025
|
+
},
|
|
64845
65026
|
"dishwasher.getStatus": {
|
|
64846
65027
|
capName: "dishwasher",
|
|
64847
65028
|
capScope: "device",
|
|
@@ -64854,6 +65035,12 @@ Object.freeze({
|
|
|
64854
65035
|
addonId: null,
|
|
64855
65036
|
access: "create"
|
|
64856
65037
|
},
|
|
65038
|
+
"dishwasher.resume": {
|
|
65039
|
+
capName: "dishwasher",
|
|
65040
|
+
capScope: "device",
|
|
65041
|
+
addonId: null,
|
|
65042
|
+
access: "create"
|
|
65043
|
+
},
|
|
64857
65044
|
"dishwasher.setChildLock": {
|
|
64858
65045
|
capName: "dishwasher",
|
|
64859
65046
|
capScope: "device",
|
|
@@ -69354,6 +69541,12 @@ Object.freeze({
|
|
|
69354
69541
|
addonId: null,
|
|
69355
69542
|
access: "view"
|
|
69356
69543
|
},
|
|
69544
|
+
"storageMigration.moverClearance": {
|
|
69545
|
+
capName: "storage-migration",
|
|
69546
|
+
capScope: "system",
|
|
69547
|
+
addonId: null,
|
|
69548
|
+
access: "view"
|
|
69549
|
+
},
|
|
69357
69550
|
"storageMigration.movers": {
|
|
69358
69551
|
capName: "storage-migration",
|
|
69359
69552
|
capScope: "system",
|
|
@@ -71547,6 +71740,11 @@ Object.freeze({
|
|
|
71547
71740
|
form: "single",
|
|
71548
71741
|
optional: false
|
|
71549
71742
|
}],
|
|
71743
|
+
"dishwasher.getOptions": [{
|
|
71744
|
+
name: "deviceId",
|
|
71745
|
+
form: "single",
|
|
71746
|
+
optional: false
|
|
71747
|
+
}],
|
|
71550
71748
|
"dishwasher.getStatus": [{
|
|
71551
71749
|
name: "deviceId",
|
|
71552
71750
|
form: "single",
|
|
@@ -71557,6 +71755,11 @@ Object.freeze({
|
|
|
71557
71755
|
form: "single",
|
|
71558
71756
|
optional: false
|
|
71559
71757
|
}],
|
|
71758
|
+
"dishwasher.resume": [{
|
|
71759
|
+
name: "deviceId",
|
|
71760
|
+
form: "single",
|
|
71761
|
+
optional: false
|
|
71762
|
+
}],
|
|
71560
71763
|
"dishwasher.setChildLock": [{
|
|
71561
71764
|
name: "deviceId",
|
|
71562
71765
|
form: "single",
|
|
@@ -73643,6 +73846,9 @@ new Map(Object.entries({
|
|
|
73643
73846
|
"wrapper-update-available": "system",
|
|
73644
73847
|
"backup-completed": "system",
|
|
73645
73848
|
"export-completed": "system",
|
|
73849
|
+
"alert-critical": "system",
|
|
73850
|
+
"alert-error": "system",
|
|
73851
|
+
"alert-critical-resolved": "system",
|
|
73646
73852
|
"storage-location-low": "system",
|
|
73647
73853
|
"storage-location-critical": "system",
|
|
73648
73854
|
"storage-location-ok": "system",
|
|
@@ -73767,6 +73973,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73767
73973
|
"storage-location-ok"
|
|
73768
73974
|
]
|
|
73769
73975
|
},
|
|
73976
|
+
{
|
|
73977
|
+
id: "alerts",
|
|
73978
|
+
family: "system",
|
|
73979
|
+
label: "Alerts",
|
|
73980
|
+
kinds: [
|
|
73981
|
+
"alert-critical",
|
|
73982
|
+
"alert-error",
|
|
73983
|
+
"alert-critical-resolved"
|
|
73984
|
+
]
|
|
73985
|
+
},
|
|
73770
73986
|
{
|
|
73771
73987
|
id: "alarm",
|
|
73772
73988
|
family: "alarm",
|
|
@@ -73811,6 +74027,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
73811
74027
|
return [[descriptor.kind, field]];
|
|
73812
74028
|
})));
|
|
73813
74029
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
74030
|
+
object({
|
|
74031
|
+
phase: _enum(["raised", "resolved"]),
|
|
74032
|
+
episodeId: string().min(1),
|
|
74033
|
+
alertId: string().min(1),
|
|
74034
|
+
severity: AlertSeveritySchema,
|
|
74035
|
+
category: string(),
|
|
74036
|
+
title: string(),
|
|
74037
|
+
message: string(),
|
|
74038
|
+
sourceType: string().optional(),
|
|
74039
|
+
sourceId: string().optional(),
|
|
74040
|
+
nodeId: string().optional(),
|
|
74041
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
74042
|
+
actionUrl: string().optional(),
|
|
74043
|
+
at: number()
|
|
74044
|
+
});
|
|
73814
74045
|
var RULE_BODY_ONLY = ["body"];
|
|
73815
74046
|
var RULE_TEXT = ["title", "body"];
|
|
73816
74047
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -73820,6 +74051,11 @@ var TANK = [
|
|
|
73820
74051
|
"device-tank-full",
|
|
73821
74052
|
"device-tank-normal"
|
|
73822
74053
|
];
|
|
74054
|
+
var ALERT_EPISODE = [
|
|
74055
|
+
"alert-critical",
|
|
74056
|
+
"alert-error",
|
|
74057
|
+
"alert-critical-resolved"
|
|
74058
|
+
];
|
|
73823
74059
|
var UPDATES = [
|
|
73824
74060
|
"addon-update-available",
|
|
73825
74061
|
"server-update-available",
|
|
@@ -74012,14 +74248,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
74012
74248
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74013
74249
|
([...RULE_TEXT], [...TANK]),
|
|
74014
74250
|
[...RULE_TEXT],
|
|
74015
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
74016
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
74017
|
-
[...RULE_TEXT],
|
|
74251
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
74252
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
74018
74253
|
[...RULE_TEXT],
|
|
74019
74254
|
[...RULE_TEXT],
|
|
74020
74255
|
[...RULE_TEXT],
|
|
74021
74256
|
[...RULE_TEXT],
|
|
74022
74257
|
[...RULE_TEXT],
|
|
74258
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74023
74259
|
[...RULE_TEXT],
|
|
74024
74260
|
[...RULE_TEXT],
|
|
74025
74261
|
[...RULE_TEXT],
|
|
@@ -74037,7 +74273,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74037
74273
|
[...RULE_TEXT],
|
|
74038
74274
|
[...RULE_TEXT],
|
|
74039
74275
|
[...RULE_TEXT],
|
|
74040
|
-
[...RULE_TEXT],
|
|
74276
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74277
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74278
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74279
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74280
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74041
74281
|
[...RULE_TEXT],
|
|
74042
74282
|
[...RULE_TEXT],
|
|
74043
74283
|
[...RULE_TEXT],
|