@camstack/addon-provider-hikvision 1.2.169 → 1.2.171
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/addon.js +255 -120
- package/dist/addon.mjs +255 -120
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5466,7 +5466,7 @@ var ZodIssueCode = {
|
|
|
5466
5466
|
var ZodFirstPartyTypeKind;
|
|
5467
5467
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5468
5468
|
//#endregion
|
|
5469
|
-
//#region ../types/dist/sleep-
|
|
5469
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5470
5470
|
/**
|
|
5471
5471
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5472
5472
|
* window to float samples (D455).
|
|
@@ -8358,7 +8358,11 @@ var ContributionSectionSchema = object({
|
|
|
8358
8358
|
literal(4)
|
|
8359
8359
|
]).optional(),
|
|
8360
8360
|
tab: string().optional(),
|
|
8361
|
-
location: _enum([
|
|
8361
|
+
location: _enum([
|
|
8362
|
+
"settings",
|
|
8363
|
+
"top-tab",
|
|
8364
|
+
"hero"
|
|
8365
|
+
]).optional(),
|
|
8362
8366
|
order: number().optional(),
|
|
8363
8367
|
fields: array(any())
|
|
8364
8368
|
});
|
|
@@ -13608,7 +13612,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13608
13612
|
literal(4)
|
|
13609
13613
|
]).optional(),
|
|
13610
13614
|
tab: string().optional(),
|
|
13611
|
-
location: _enum([
|
|
13615
|
+
location: _enum([
|
|
13616
|
+
"settings",
|
|
13617
|
+
"top-tab",
|
|
13618
|
+
"hero"
|
|
13619
|
+
]).optional(),
|
|
13612
13620
|
order: number().optional(),
|
|
13613
13621
|
fields: array(any())
|
|
13614
13622
|
});
|
|
@@ -17488,6 +17496,52 @@ var TierStatusSchema = object({
|
|
|
17488
17496
|
countedAt: number().nullable()
|
|
17489
17497
|
});
|
|
17490
17498
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17499
|
+
/**
|
|
17500
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17501
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17502
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17503
|
+
*/
|
|
17504
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17505
|
+
/** Rows held per stored tier. */
|
|
17506
|
+
var TierRowsSchema = object({
|
|
17507
|
+
raw: number().int(),
|
|
17508
|
+
"5m": number().int(),
|
|
17509
|
+
"1h": number().int(),
|
|
17510
|
+
"1d": number().int()
|
|
17511
|
+
});
|
|
17512
|
+
var OrphanSeriesSchema = object({
|
|
17513
|
+
seriesId: number().int(),
|
|
17514
|
+
deviceId: number().int(),
|
|
17515
|
+
key: string(),
|
|
17516
|
+
scope: string(),
|
|
17517
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17518
|
+
displayName: string().nullable(),
|
|
17519
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17520
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17521
|
+
missingSince: number().nullable(),
|
|
17522
|
+
firstTs: number(),
|
|
17523
|
+
lastTs: number(),
|
|
17524
|
+
rows: TierRowsSchema
|
|
17525
|
+
});
|
|
17526
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17527
|
+
"not-found",
|
|
17528
|
+
"not-orphan",
|
|
17529
|
+
"failed"
|
|
17530
|
+
]);
|
|
17531
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17532
|
+
seriesId: number().int(),
|
|
17533
|
+
ok: literal(true),
|
|
17534
|
+
deleted: TierRowsSchema
|
|
17535
|
+
}), object({
|
|
17536
|
+
seriesId: number().int(),
|
|
17537
|
+
ok: literal(false),
|
|
17538
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17539
|
+
})]);
|
|
17540
|
+
var OrphanListSchema = object({
|
|
17541
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17542
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17543
|
+
truncated: boolean()
|
|
17544
|
+
});
|
|
17491
17545
|
var DeviceHistoryStatusSchema = object({
|
|
17492
17546
|
startedAt: number(),
|
|
17493
17547
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17585,7 +17639,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17585
17639
|
}), object({ enabled: boolean() }), {
|
|
17586
17640
|
kind: "mutation",
|
|
17587
17641
|
auth: "admin"
|
|
17588
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17642
|
+
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" }), method(object({}), OrphanListSchema, { auth: "admin" }), method(object({ seriesIds: array(number().int()).min(1).max(50) }), object({ results: array(OrphanDeleteEntrySchema).readonly() }), {
|
|
17643
|
+
kind: "mutation",
|
|
17644
|
+
auth: "admin"
|
|
17645
|
+
});
|
|
17589
17646
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17590
17647
|
object({ state: literal("absent") }),
|
|
17591
17648
|
object({
|
|
@@ -50671,6 +50728,19 @@ var NodeInferenceDeviceSchema = object({
|
|
|
50671
50728
|
/** Whether the node's live probe reports the device as usable right now. */
|
|
50672
50729
|
available: boolean(),
|
|
50673
50730
|
/**
|
|
50731
|
+
* Is the device on the node at all (D919)? `present` — the live probe
|
|
50732
|
+
* reported it; `absent` — the probe ANSWERED and did not report it, so only
|
|
50733
|
+
* its stored settings remain (unplugged, moved to another node): never
|
|
50734
|
+
* eligible, whatever its stored `enabled`, and forgettable with
|
|
50735
|
+
* `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
|
|
50736
|
+
* claimed (D315). Optional only for an orchestrator older than the field.
|
|
50737
|
+
*/
|
|
50738
|
+
presence: _enum([
|
|
50739
|
+
"present",
|
|
50740
|
+
"absent",
|
|
50741
|
+
"unknown"
|
|
50742
|
+
]).optional(),
|
|
50743
|
+
/**
|
|
50674
50744
|
* Whether this device participates in dispatch. AUTO default (spec C2):
|
|
50675
50745
|
* accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
|
|
50676
50746
|
* entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
|
|
@@ -50896,7 +50966,13 @@ method(object({
|
|
|
50896
50966
|
}), object({ success: literal(true) }), {
|
|
50897
50967
|
kind: "mutation",
|
|
50898
50968
|
auth: "admin"
|
|
50899
|
-
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
50969
|
+
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
50970
|
+
agentNodeId: string(),
|
|
50971
|
+
deviceKey: string()
|
|
50972
|
+
}), object({ success: literal(true) }), {
|
|
50973
|
+
kind: "mutation",
|
|
50974
|
+
auth: "admin"
|
|
50975
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
50900
50976
|
success: literal(true),
|
|
50901
50977
|
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
50902
50978
|
effectiveModelId: string().nullable(),
|
|
@@ -56082,17 +56158,69 @@ var connectivityCapability = {
|
|
|
56082
56158
|
volatileStateFields: ["lastChangedAt"]
|
|
56083
56159
|
};
|
|
56084
56160
|
/**
|
|
56085
|
-
* Generic device-consumables capability —
|
|
56086
|
-
*
|
|
56087
|
-
* descaling cycles,
|
|
56088
|
-
*
|
|
56089
|
-
*
|
|
56090
|
-
*
|
|
56161
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56162
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56163
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56164
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56165
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56166
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56167
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56168
|
+
* verbatim and says which `kind` it is.
|
|
56169
|
+
*
|
|
56170
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56171
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56172
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56091
56173
|
*
|
|
56092
56174
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56093
56175
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56094
56176
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56095
56177
|
*/
|
|
56178
|
+
/**
|
|
56179
|
+
* What an item IS, which decides which direction is bad:
|
|
56180
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56181
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56182
|
+
* salt, rinse aid); low or empty is bad.
|
|
56183
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56184
|
+
* bad.
|
|
56185
|
+
* Absent = `wear`.
|
|
56186
|
+
*/
|
|
56187
|
+
var ConsumableKindSchema = _enum([
|
|
56188
|
+
"wear",
|
|
56189
|
+
"supply",
|
|
56190
|
+
"waste"
|
|
56191
|
+
]);
|
|
56192
|
+
/**
|
|
56193
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56194
|
+
* of `kind`, which decides which direction is bad:
|
|
56195
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56196
|
+
* remaining time and a reset.
|
|
56197
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56198
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56199
|
+
* a stepped level and "refill".
|
|
56200
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56201
|
+
* that warns when full.
|
|
56202
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56203
|
+
*/
|
|
56204
|
+
var ConsumableFormSchema = _enum([
|
|
56205
|
+
"part",
|
|
56206
|
+
"tank",
|
|
56207
|
+
"product",
|
|
56208
|
+
"bin"
|
|
56209
|
+
]);
|
|
56210
|
+
/** The provider's own discrete verdict on an item. */
|
|
56211
|
+
var ConsumableStatusSchema = _enum([
|
|
56212
|
+
"ok",
|
|
56213
|
+
"low",
|
|
56214
|
+
"empty",
|
|
56215
|
+
"full",
|
|
56216
|
+
"replace"
|
|
56217
|
+
]);
|
|
56218
|
+
_enum([
|
|
56219
|
+
"ok",
|
|
56220
|
+
"low",
|
|
56221
|
+
"empty",
|
|
56222
|
+
"full"
|
|
56223
|
+
]);
|
|
56096
56224
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56097
56225
|
* each. */
|
|
56098
56226
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56107,18 +56235,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56107
56235
|
unit: ConsumableRemainingUnitSchema
|
|
56108
56236
|
});
|
|
56109
56237
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56110
|
-
* life
|
|
56111
|
-
*
|
|
56112
|
-
* mutually exclusive; a provider may
|
|
56238
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56239
|
+
* may be known — both may be null when a provider only knows the item
|
|
56240
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56241
|
+
* report both. */
|
|
56113
56242
|
var ConsumableItemSchema = object({
|
|
56114
56243
|
/** Stable id, e.g. 'main-brush'. */
|
|
56115
56244
|
key: string().min(1),
|
|
56116
56245
|
/** Display name. */
|
|
56117
56246
|
label: string().min(1),
|
|
56118
|
-
/** Remaining life % when known (0..100). */
|
|
56247
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56119
56248
|
level: number().min(0).max(100).nullable(),
|
|
56120
|
-
/**
|
|
56121
|
-
status:
|
|
56249
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56250
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56251
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56252
|
+
kind: ConsumableKindSchema.optional(),
|
|
56253
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56254
|
+
form: ConsumableFormSchema.optional(),
|
|
56122
56255
|
/** Ms epoch of the last replace, when known. */
|
|
56123
56256
|
lastResetAt: number().nullable(),
|
|
56124
56257
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56141,7 +56274,7 @@ var consumablesCapability = {
|
|
|
56141
56274
|
kind: "widget",
|
|
56142
56275
|
widgetId: "host/consumables-panel",
|
|
56143
56276
|
tab: "consumables",
|
|
56144
|
-
|
|
56277
|
+
placement: "hero",
|
|
56145
56278
|
label: "Consumables",
|
|
56146
56279
|
order: 5
|
|
56147
56280
|
} },
|
|
@@ -56202,9 +56335,37 @@ reset: method(object({
|
|
|
56202
56335
|
*/
|
|
56203
56336
|
durability: "restored",
|
|
56204
56337
|
/**
|
|
56205
|
-
* History (D850):
|
|
56338
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56339
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56340
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56341
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56206
56342
|
*/
|
|
56207
|
-
history:
|
|
56343
|
+
history: {
|
|
56344
|
+
fields: {},
|
|
56345
|
+
items: {
|
|
56346
|
+
path: "items",
|
|
56347
|
+
key: "key",
|
|
56348
|
+
label: "label",
|
|
56349
|
+
fields: {
|
|
56350
|
+
level: {
|
|
56351
|
+
kind: "gauge",
|
|
56352
|
+
unit: "%",
|
|
56353
|
+
deadband: 2,
|
|
56354
|
+
displayName: "Level"
|
|
56355
|
+
},
|
|
56356
|
+
status: {
|
|
56357
|
+
kind: "enum",
|
|
56358
|
+
displayName: "Status"
|
|
56359
|
+
},
|
|
56360
|
+
"remaining.value": {
|
|
56361
|
+
kind: "gauge",
|
|
56362
|
+
unitFrom: "remaining.unit",
|
|
56363
|
+
deadband: 1,
|
|
56364
|
+
displayName: "Remaining"
|
|
56365
|
+
}
|
|
56366
|
+
}
|
|
56367
|
+
}
|
|
56368
|
+
},
|
|
56208
56369
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56209
56370
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56210
56371
|
};
|
|
@@ -56619,8 +56780,9 @@ onStatusChanged: { data: object({
|
|
|
56619
56780
|
volatileStateFields: ["lastChangedAt"]
|
|
56620
56781
|
};
|
|
56621
56782
|
/**
|
|
56622
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56623
|
-
*
|
|
56783
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56784
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56785
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56624
56786
|
*
|
|
56625
56787
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56626
56788
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56668,11 +56830,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56668
56830
|
"offline",
|
|
56669
56831
|
"description-missing"
|
|
56670
56832
|
]);
|
|
56671
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56672
|
-
"ok",
|
|
56673
|
-
"low",
|
|
56674
|
-
"empty"
|
|
56675
|
-
]);
|
|
56676
56833
|
var DishwasherStatusSchema = object({
|
|
56677
56834
|
availability: DishwasherAvailabilitySchema,
|
|
56678
56835
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56705,8 +56862,6 @@ var DishwasherStatusSchema = object({
|
|
|
56705
56862
|
powerOn: boolean().nullable(),
|
|
56706
56863
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56707
56864
|
powerState: string().nullable(),
|
|
56708
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56709
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56710
56865
|
/**
|
|
56711
56866
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56712
56867
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -59582,7 +59737,7 @@ var motionTriggerCapability = {
|
|
|
59582
59737
|
enabled: boolean()
|
|
59583
59738
|
}), _void(), {
|
|
59584
59739
|
kind: "mutation",
|
|
59585
|
-
auth: "
|
|
59740
|
+
auth: "protected"
|
|
59586
59741
|
}) },
|
|
59587
59742
|
events: { onMotionTriggerChanged: { data: object({
|
|
59588
59743
|
deviceId: number(),
|
|
@@ -60312,6 +60467,13 @@ var TopologyNodeSchema = object({
|
|
|
60312
60467
|
cpuModel: string().nullable(),
|
|
60313
60468
|
cpuCores: number(),
|
|
60314
60469
|
memoryMB: number(),
|
|
60470
|
+
/**
|
|
60471
|
+
* The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
|
|
60472
|
+
* openvino, edgetpu …) — not its devices. An installed runtime says nothing
|
|
60473
|
+
* about whether its hardware is there (a Coral delegate stays installed
|
|
60474
|
+
* after the stick leaves, D919); the live device set is
|
|
60475
|
+
* `pipelineOrchestrator.getNodeInferenceDevices`.
|
|
60476
|
+
*/
|
|
60315
60477
|
engines: array(string()).readonly(),
|
|
60316
60478
|
isHub: boolean(),
|
|
60317
60479
|
isOnline: boolean(),
|
|
@@ -61475,7 +61637,28 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
61475
61637
|
format: ModelFormatSchema,
|
|
61476
61638
|
reason: string()
|
|
61477
61639
|
});
|
|
61478
|
-
|
|
61640
|
+
/**
|
|
61641
|
+
* The answer of an accelerator rescan (D919): the node's device list after
|
|
61642
|
+
* the re-probe, what changed, and the evidence that decided the Coral answer
|
|
61643
|
+
* (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
|
|
61644
|
+
* bus, the installed-delegate fallback, or nothing).
|
|
61645
|
+
*/
|
|
61646
|
+
var AcceleratorRescanSchema = object({
|
|
61647
|
+
devices: array(InferenceDeviceDescriptorSchema).readonly(),
|
|
61648
|
+
appeared: array(string()).readonly(),
|
|
61649
|
+
disappeared: array(string()).readonly(),
|
|
61650
|
+
usbBus: _enum(["observed", "unobservable"]),
|
|
61651
|
+
decidedBy: _enum([
|
|
61652
|
+
"usb-ids",
|
|
61653
|
+
"pci",
|
|
61654
|
+
"delegate-fallback",
|
|
61655
|
+
"none"
|
|
61656
|
+
])
|
|
61657
|
+
});
|
|
61658
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
|
|
61659
|
+
kind: "mutation",
|
|
61660
|
+
auth: "admin"
|
|
61661
|
+
});
|
|
61479
61662
|
/**
|
|
61480
61663
|
* Multi-metric electrical meter. One slice can carry any combination
|
|
61481
61664
|
* of instantaneous power (W), cumulative energy (kWh), voltage (V),
|
|
@@ -66083,60 +66266,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
66083
66266
|
auth: "admin",
|
|
66084
66267
|
access: "delete"
|
|
66085
66268
|
});
|
|
66086
|
-
/**
|
|
66087
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
66088
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
66089
|
-
* optional fan-speed selector.
|
|
66090
|
-
*
|
|
66091
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
66092
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
66093
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
66094
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
66095
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
66096
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
66097
|
-
*
|
|
66098
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
66099
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
66100
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
66101
|
-
*
|
|
66102
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
66103
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
66104
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
66105
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
66106
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
66107
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
66108
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
66109
|
-
* so the HA provider leaves all four `null`.
|
|
66110
|
-
*/
|
|
66111
|
-
var VacuumStateSchema = _enum([
|
|
66112
|
-
"idle",
|
|
66113
|
-
"cleaning",
|
|
66114
|
-
"paused",
|
|
66115
|
-
"returning",
|
|
66116
|
-
"docked",
|
|
66117
|
-
"drying",
|
|
66118
|
-
"error"
|
|
66119
|
-
]);
|
|
66120
|
-
/**
|
|
66121
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
66122
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
66123
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
66124
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
66125
|
-
* hardware has no such tank at all.
|
|
66126
|
-
*/
|
|
66127
|
-
var TankStatusSchema = object({
|
|
66128
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
66129
|
-
level: number().min(0).max(100).nullable(),
|
|
66130
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
66131
|
-
status: _enum([
|
|
66132
|
-
"ok",
|
|
66133
|
-
"low",
|
|
66134
|
-
"full"
|
|
66135
|
-
]).nullable()
|
|
66136
|
-
});
|
|
66137
66269
|
var VacuumControlStatusSchema = object({
|
|
66138
66270
|
/** Lifecycle state of the vacuum. */
|
|
66139
|
-
state:
|
|
66271
|
+
state: _enum([
|
|
66272
|
+
"idle",
|
|
66273
|
+
"cleaning",
|
|
66274
|
+
"paused",
|
|
66275
|
+
"returning",
|
|
66276
|
+
"docked",
|
|
66277
|
+
"drying",
|
|
66278
|
+
"error"
|
|
66279
|
+
]),
|
|
66140
66280
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
66141
66281
|
* reading. */
|
|
66142
66282
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -66145,14 +66285,6 @@ var VacuumControlStatusSchema = object({
|
|
|
66145
66285
|
fanSpeed: string().nullable(),
|
|
66146
66286
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
66147
66287
|
availableFanSpeeds: array(string()),
|
|
66148
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
66149
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
66150
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
66151
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
66152
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
66153
|
-
detergent: TankStatusSchema.nullable(),
|
|
66154
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
66155
|
-
dustBin: TankStatusSchema.nullable(),
|
|
66156
66288
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
66157
66289
|
progressPercent: number().min(0).max(100).nullable(),
|
|
66158
66290
|
/** Current error code (0 / null = no error). */
|
|
@@ -66214,35 +66346,14 @@ var vacuumControlCapability = {
|
|
|
66214
66346
|
*/
|
|
66215
66347
|
durability: "session",
|
|
66216
66348
|
/**
|
|
66217
|
-
* History (D850): recorded series.
|
|
66349
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
66350
|
+
* items are keyed by runtime ids and record no history.
|
|
66218
66351
|
*/
|
|
66219
|
-
history: { fields: {
|
|
66220
|
-
|
|
66221
|
-
|
|
66222
|
-
|
|
66223
|
-
|
|
66224
|
-
},
|
|
66225
|
-
"cleanWater.level": {
|
|
66226
|
-
kind: "gauge",
|
|
66227
|
-
unit: "%",
|
|
66228
|
-
deadband: 2
|
|
66229
|
-
},
|
|
66230
|
-
"dirtyWater.level": {
|
|
66231
|
-
kind: "gauge",
|
|
66232
|
-
unit: "%",
|
|
66233
|
-
deadband: 2
|
|
66234
|
-
},
|
|
66235
|
-
"detergent.level": {
|
|
66236
|
-
kind: "gauge",
|
|
66237
|
-
unit: "%",
|
|
66238
|
-
deadband: 2
|
|
66239
|
-
},
|
|
66240
|
-
"dustBin.level": {
|
|
66241
|
-
kind: "gauge",
|
|
66242
|
-
unit: "%",
|
|
66243
|
-
deadband: 2
|
|
66244
|
-
}
|
|
66245
|
-
} }
|
|
66352
|
+
history: { fields: { batteryLevel: {
|
|
66353
|
+
kind: "gauge",
|
|
66354
|
+
unit: "%",
|
|
66355
|
+
deadband: 2
|
|
66356
|
+
} } }
|
|
66246
66357
|
};
|
|
66247
66358
|
var ValveStatusSchema = object({
|
|
66248
66359
|
/** Lifecycle state of the valve. */
|
|
@@ -70655,6 +70766,12 @@ Object.freeze({
|
|
|
70655
70766
|
addonId: null,
|
|
70656
70767
|
access: "create"
|
|
70657
70768
|
},
|
|
70769
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70770
|
+
capName: "device-history",
|
|
70771
|
+
capScope: "system",
|
|
70772
|
+
addonId: null,
|
|
70773
|
+
access: "delete"
|
|
70774
|
+
},
|
|
70658
70775
|
"deviceHistory.getDeviceEnabled": {
|
|
70659
70776
|
capName: "device-history",
|
|
70660
70777
|
capScope: "system",
|
|
@@ -70673,6 +70790,12 @@ Object.freeze({
|
|
|
70673
70790
|
addonId: null,
|
|
70674
70791
|
access: "view"
|
|
70675
70792
|
},
|
|
70793
|
+
"deviceHistory.listOrphanSeries": {
|
|
70794
|
+
capName: "device-history",
|
|
70795
|
+
capScope: "system",
|
|
70796
|
+
addonId: null,
|
|
70797
|
+
access: "view"
|
|
70798
|
+
},
|
|
70676
70799
|
"deviceHistory.listSeries": {
|
|
70677
70800
|
capName: "device-history",
|
|
70678
70801
|
capScope: "system",
|
|
@@ -74297,6 +74420,12 @@ Object.freeze({
|
|
|
74297
74420
|
addonId: null,
|
|
74298
74421
|
access: "delete"
|
|
74299
74422
|
},
|
|
74423
|
+
"pipelineOrchestrator.forgetInferenceDevice": {
|
|
74424
|
+
capName: "pipeline-orchestrator",
|
|
74425
|
+
capScope: "system",
|
|
74426
|
+
addonId: null,
|
|
74427
|
+
access: "delete"
|
|
74428
|
+
},
|
|
74300
74429
|
"pipelineOrchestrator.getAgentLoad": {
|
|
74301
74430
|
capName: "pipeline-orchestrator",
|
|
74302
74431
|
capScope: "system",
|
|
@@ -74873,6 +75002,12 @@ Object.freeze({
|
|
|
74873
75002
|
addonId: null,
|
|
74874
75003
|
access: "view"
|
|
74875
75004
|
},
|
|
75005
|
+
"platformProbe.rescanAccelerators": {
|
|
75006
|
+
capName: "platform-probe",
|
|
75007
|
+
capScope: "system",
|
|
75008
|
+
addonId: null,
|
|
75009
|
+
access: "create"
|
|
75010
|
+
},
|
|
74876
75011
|
"platformProbe.resolveHwAccel": {
|
|
74877
75012
|
capName: "platform-probe",
|
|
74878
75013
|
capScope: "system",
|
|
@@ -80896,7 +81031,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80896
81031
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80897
81032
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80898
81033
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80899
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
81034
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80900
81035
|
([...RULE_TEXT], [...TANK]),
|
|
80901
81036
|
[...RULE_TEXT],
|
|
80902
81037
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/dist/addon.mjs
CHANGED
|
@@ -5445,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5445
5445
|
var ZodFirstPartyTypeKind;
|
|
5446
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5447
5447
|
//#endregion
|
|
5448
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5449
5449
|
/**
|
|
5450
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5451
5451
|
* window to float samples (D455).
|
|
@@ -8337,7 +8337,11 @@ var ContributionSectionSchema = object({
|
|
|
8337
8337
|
literal(4)
|
|
8338
8338
|
]).optional(),
|
|
8339
8339
|
tab: string().optional(),
|
|
8340
|
-
location: _enum([
|
|
8340
|
+
location: _enum([
|
|
8341
|
+
"settings",
|
|
8342
|
+
"top-tab",
|
|
8343
|
+
"hero"
|
|
8344
|
+
]).optional(),
|
|
8341
8345
|
order: number().optional(),
|
|
8342
8346
|
fields: array(any())
|
|
8343
8347
|
});
|
|
@@ -13587,7 +13591,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13587
13591
|
literal(4)
|
|
13588
13592
|
]).optional(),
|
|
13589
13593
|
tab: string().optional(),
|
|
13590
|
-
location: _enum([
|
|
13594
|
+
location: _enum([
|
|
13595
|
+
"settings",
|
|
13596
|
+
"top-tab",
|
|
13597
|
+
"hero"
|
|
13598
|
+
]).optional(),
|
|
13591
13599
|
order: number().optional(),
|
|
13592
13600
|
fields: array(any())
|
|
13593
13601
|
});
|
|
@@ -17467,6 +17475,52 @@ var TierStatusSchema = object({
|
|
|
17467
17475
|
countedAt: number().nullable()
|
|
17468
17476
|
});
|
|
17469
17477
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17478
|
+
/**
|
|
17479
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17480
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17481
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17482
|
+
*/
|
|
17483
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17484
|
+
/** Rows held per stored tier. */
|
|
17485
|
+
var TierRowsSchema = object({
|
|
17486
|
+
raw: number().int(),
|
|
17487
|
+
"5m": number().int(),
|
|
17488
|
+
"1h": number().int(),
|
|
17489
|
+
"1d": number().int()
|
|
17490
|
+
});
|
|
17491
|
+
var OrphanSeriesSchema = object({
|
|
17492
|
+
seriesId: number().int(),
|
|
17493
|
+
deviceId: number().int(),
|
|
17494
|
+
key: string(),
|
|
17495
|
+
scope: string(),
|
|
17496
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17497
|
+
displayName: string().nullable(),
|
|
17498
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17499
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17500
|
+
missingSince: number().nullable(),
|
|
17501
|
+
firstTs: number(),
|
|
17502
|
+
lastTs: number(),
|
|
17503
|
+
rows: TierRowsSchema
|
|
17504
|
+
});
|
|
17505
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17506
|
+
"not-found",
|
|
17507
|
+
"not-orphan",
|
|
17508
|
+
"failed"
|
|
17509
|
+
]);
|
|
17510
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17511
|
+
seriesId: number().int(),
|
|
17512
|
+
ok: literal(true),
|
|
17513
|
+
deleted: TierRowsSchema
|
|
17514
|
+
}), object({
|
|
17515
|
+
seriesId: number().int(),
|
|
17516
|
+
ok: literal(false),
|
|
17517
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17518
|
+
})]);
|
|
17519
|
+
var OrphanListSchema = object({
|
|
17520
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17521
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17522
|
+
truncated: boolean()
|
|
17523
|
+
});
|
|
17470
17524
|
var DeviceHistoryStatusSchema = object({
|
|
17471
17525
|
startedAt: number(),
|
|
17472
17526
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17564,7 +17618,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17564
17618
|
}), object({ enabled: boolean() }), {
|
|
17565
17619
|
kind: "mutation",
|
|
17566
17620
|
auth: "admin"
|
|
17567
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17621
|
+
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" }), method(object({}), OrphanListSchema, { auth: "admin" }), method(object({ seriesIds: array(number().int()).min(1).max(50) }), object({ results: array(OrphanDeleteEntrySchema).readonly() }), {
|
|
17622
|
+
kind: "mutation",
|
|
17623
|
+
auth: "admin"
|
|
17624
|
+
});
|
|
17568
17625
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17569
17626
|
object({ state: literal("absent") }),
|
|
17570
17627
|
object({
|
|
@@ -50650,6 +50707,19 @@ var NodeInferenceDeviceSchema = object({
|
|
|
50650
50707
|
/** Whether the node's live probe reports the device as usable right now. */
|
|
50651
50708
|
available: boolean(),
|
|
50652
50709
|
/**
|
|
50710
|
+
* Is the device on the node at all (D919)? `present` — the live probe
|
|
50711
|
+
* reported it; `absent` — the probe ANSWERED and did not report it, so only
|
|
50712
|
+
* its stored settings remain (unplugged, moved to another node): never
|
|
50713
|
+
* eligible, whatever its stored `enabled`, and forgettable with
|
|
50714
|
+
* `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
|
|
50715
|
+
* claimed (D315). Optional only for an orchestrator older than the field.
|
|
50716
|
+
*/
|
|
50717
|
+
presence: _enum([
|
|
50718
|
+
"present",
|
|
50719
|
+
"absent",
|
|
50720
|
+
"unknown"
|
|
50721
|
+
]).optional(),
|
|
50722
|
+
/**
|
|
50653
50723
|
* Whether this device participates in dispatch. AUTO default (spec C2):
|
|
50654
50724
|
* accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
|
|
50655
50725
|
* entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
|
|
@@ -50875,7 +50945,13 @@ method(object({
|
|
|
50875
50945
|
}), object({ success: literal(true) }), {
|
|
50876
50946
|
kind: "mutation",
|
|
50877
50947
|
auth: "admin"
|
|
50878
|
-
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
50948
|
+
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
50949
|
+
agentNodeId: string(),
|
|
50950
|
+
deviceKey: string()
|
|
50951
|
+
}), object({ success: literal(true) }), {
|
|
50952
|
+
kind: "mutation",
|
|
50953
|
+
auth: "admin"
|
|
50954
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
50879
50955
|
success: literal(true),
|
|
50880
50956
|
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
50881
50957
|
effectiveModelId: string().nullable(),
|
|
@@ -56061,17 +56137,69 @@ var connectivityCapability = {
|
|
|
56061
56137
|
volatileStateFields: ["lastChangedAt"]
|
|
56062
56138
|
};
|
|
56063
56139
|
/**
|
|
56064
|
-
* Generic device-consumables capability —
|
|
56065
|
-
*
|
|
56066
|
-
* descaling cycles,
|
|
56067
|
-
*
|
|
56068
|
-
*
|
|
56069
|
-
*
|
|
56140
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
56141
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
56142
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
56143
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
56144
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
56145
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
56146
|
+
* its device tracks consumables registers it; the provider names each item
|
|
56147
|
+
* verbatim and says which `kind` it is.
|
|
56148
|
+
*
|
|
56149
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
56150
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
56151
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
56070
56152
|
*
|
|
56071
56153
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
56072
56154
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
56073
56155
|
* "No consumables reported" placeholder when `items` is empty.
|
|
56074
56156
|
*/
|
|
56157
|
+
/**
|
|
56158
|
+
* What an item IS, which decides which direction is bad:
|
|
56159
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
56160
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
56161
|
+
* salt, rinse aid); low or empty is bad.
|
|
56162
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
56163
|
+
* bad.
|
|
56164
|
+
* Absent = `wear`.
|
|
56165
|
+
*/
|
|
56166
|
+
var ConsumableKindSchema = _enum([
|
|
56167
|
+
"wear",
|
|
56168
|
+
"supply",
|
|
56169
|
+
"waste"
|
|
56170
|
+
]);
|
|
56171
|
+
/**
|
|
56172
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
56173
|
+
* of `kind`, which decides which direction is bad:
|
|
56174
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
56175
|
+
* remaining time and a reset.
|
|
56176
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
56177
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
56178
|
+
* a stepped level and "refill".
|
|
56179
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
56180
|
+
* that warns when full.
|
|
56181
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
56182
|
+
*/
|
|
56183
|
+
var ConsumableFormSchema = _enum([
|
|
56184
|
+
"part",
|
|
56185
|
+
"tank",
|
|
56186
|
+
"product",
|
|
56187
|
+
"bin"
|
|
56188
|
+
]);
|
|
56189
|
+
/** The provider's own discrete verdict on an item. */
|
|
56190
|
+
var ConsumableStatusSchema = _enum([
|
|
56191
|
+
"ok",
|
|
56192
|
+
"low",
|
|
56193
|
+
"empty",
|
|
56194
|
+
"full",
|
|
56195
|
+
"replace"
|
|
56196
|
+
]);
|
|
56197
|
+
_enum([
|
|
56198
|
+
"ok",
|
|
56199
|
+
"low",
|
|
56200
|
+
"empty",
|
|
56201
|
+
"full"
|
|
56202
|
+
]);
|
|
56075
56203
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
56076
56204
|
* each. */
|
|
56077
56205
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -56086,18 +56214,23 @@ var ConsumableRemainingSchema = object({
|
|
|
56086
56214
|
unit: ConsumableRemainingUnitSchema
|
|
56087
56215
|
});
|
|
56088
56216
|
/** A single consumable item. Either a continuous `level` (remaining
|
|
56089
|
-
* life
|
|
56090
|
-
*
|
|
56091
|
-
* mutually exclusive; a provider may
|
|
56217
|
+
* life %, or fill % for a `supply` / `waste` item) or a discrete `status`
|
|
56218
|
+
* may be known — both may be null when a provider only knows the item
|
|
56219
|
+
* exists. `level` and `status` are not mutually exclusive; a provider may
|
|
56220
|
+
* report both. */
|
|
56092
56221
|
var ConsumableItemSchema = object({
|
|
56093
56222
|
/** Stable id, e.g. 'main-brush'. */
|
|
56094
56223
|
key: string().min(1),
|
|
56095
56224
|
/** Display name. */
|
|
56096
56225
|
label: string().min(1),
|
|
56097
|
-
/** Remaining life % when known (0..100). */
|
|
56226
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
56098
56227
|
level: number().min(0).max(100).nullable(),
|
|
56099
|
-
/**
|
|
56100
|
-
status:
|
|
56228
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
56229
|
+
status: ConsumableStatusSchema.nullable(),
|
|
56230
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
56231
|
+
kind: ConsumableKindSchema.optional(),
|
|
56232
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
56233
|
+
form: ConsumableFormSchema.optional(),
|
|
56101
56234
|
/** Ms epoch of the last replace, when known. */
|
|
56102
56235
|
lastResetAt: number().nullable(),
|
|
56103
56236
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -56120,7 +56253,7 @@ var consumablesCapability = {
|
|
|
56120
56253
|
kind: "widget",
|
|
56121
56254
|
widgetId: "host/consumables-panel",
|
|
56122
56255
|
tab: "consumables",
|
|
56123
|
-
|
|
56256
|
+
placement: "hero",
|
|
56124
56257
|
label: "Consumables",
|
|
56125
56258
|
order: 5
|
|
56126
56259
|
} },
|
|
@@ -56181,9 +56314,37 @@ reset: method(object({
|
|
|
56181
56314
|
*/
|
|
56182
56315
|
durability: "restored",
|
|
56183
56316
|
/**
|
|
56184
|
-
* History (D850):
|
|
56317
|
+
* History (D850, D917): one series per (item field, item `key`) — the item key
|
|
56318
|
+
* is the series scope, the item `label` names it. A vacuum tank's fill, a
|
|
56319
|
+
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56320
|
+
* their provider reports them; an item that appears later gets its series.
|
|
56185
56321
|
*/
|
|
56186
|
-
history:
|
|
56322
|
+
history: {
|
|
56323
|
+
fields: {},
|
|
56324
|
+
items: {
|
|
56325
|
+
path: "items",
|
|
56326
|
+
key: "key",
|
|
56327
|
+
label: "label",
|
|
56328
|
+
fields: {
|
|
56329
|
+
level: {
|
|
56330
|
+
kind: "gauge",
|
|
56331
|
+
unit: "%",
|
|
56332
|
+
deadband: 2,
|
|
56333
|
+
displayName: "Level"
|
|
56334
|
+
},
|
|
56335
|
+
status: {
|
|
56336
|
+
kind: "enum",
|
|
56337
|
+
displayName: "Status"
|
|
56338
|
+
},
|
|
56339
|
+
"remaining.value": {
|
|
56340
|
+
kind: "gauge",
|
|
56341
|
+
unitFrom: "remaining.unit",
|
|
56342
|
+
deadband: 1,
|
|
56343
|
+
displayName: "Remaining"
|
|
56344
|
+
}
|
|
56345
|
+
}
|
|
56346
|
+
}
|
|
56347
|
+
},
|
|
56187
56348
|
/** Clocks, not content: a re-read that changed no item costs no commit. */
|
|
56188
56349
|
volatileStateFields: ["lastChangedAt", "lastFetchedAt"]
|
|
56189
56350
|
};
|
|
@@ -56598,8 +56759,9 @@ onStatusChanged: { data: object({
|
|
|
56598
56759
|
volatileStateFields: ["lastChangedAt"]
|
|
56599
56760
|
};
|
|
56600
56761
|
/**
|
|
56601
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
56602
|
-
*
|
|
56762
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
56763
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
56764
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
56603
56765
|
*
|
|
56604
56766
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
56605
56767
|
* by any integration that exposes the same program / option surface.
|
|
@@ -56647,11 +56809,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
56647
56809
|
"offline",
|
|
56648
56810
|
"description-missing"
|
|
56649
56811
|
]);
|
|
56650
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
56651
|
-
"ok",
|
|
56652
|
-
"low",
|
|
56653
|
-
"empty"
|
|
56654
|
-
]);
|
|
56655
56812
|
var DishwasherStatusSchema = object({
|
|
56656
56813
|
availability: DishwasherAvailabilitySchema,
|
|
56657
56814
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -56684,8 +56841,6 @@ var DishwasherStatusSchema = object({
|
|
|
56684
56841
|
powerOn: boolean().nullable(),
|
|
56685
56842
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56686
56843
|
powerState: string().nullable(),
|
|
56687
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56688
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56689
56844
|
/**
|
|
56690
56845
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56691
56846
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -59561,7 +59716,7 @@ var motionTriggerCapability = {
|
|
|
59561
59716
|
enabled: boolean()
|
|
59562
59717
|
}), _void(), {
|
|
59563
59718
|
kind: "mutation",
|
|
59564
|
-
auth: "
|
|
59719
|
+
auth: "protected"
|
|
59565
59720
|
}) },
|
|
59566
59721
|
events: { onMotionTriggerChanged: { data: object({
|
|
59567
59722
|
deviceId: number(),
|
|
@@ -60291,6 +60446,13 @@ var TopologyNodeSchema = object({
|
|
|
60291
60446
|
cpuModel: string().nullable(),
|
|
60292
60447
|
cpuCores: number(),
|
|
60293
60448
|
memoryMB: number(),
|
|
60449
|
+
/**
|
|
60450
|
+
* The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
|
|
60451
|
+
* openvino, edgetpu …) — not its devices. An installed runtime says nothing
|
|
60452
|
+
* about whether its hardware is there (a Coral delegate stays installed
|
|
60453
|
+
* after the stick leaves, D919); the live device set is
|
|
60454
|
+
* `pipelineOrchestrator.getNodeInferenceDevices`.
|
|
60455
|
+
*/
|
|
60294
60456
|
engines: array(string()).readonly(),
|
|
60295
60457
|
isHub: boolean(),
|
|
60296
60458
|
isOnline: boolean(),
|
|
@@ -61454,7 +61616,28 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
61454
61616
|
format: ModelFormatSchema,
|
|
61455
61617
|
reason: string()
|
|
61456
61618
|
});
|
|
61457
|
-
|
|
61619
|
+
/**
|
|
61620
|
+
* The answer of an accelerator rescan (D919): the node's device list after
|
|
61621
|
+
* the re-probe, what changed, and the evidence that decided the Coral answer
|
|
61622
|
+
* (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
|
|
61623
|
+
* bus, the installed-delegate fallback, or nothing).
|
|
61624
|
+
*/
|
|
61625
|
+
var AcceleratorRescanSchema = object({
|
|
61626
|
+
devices: array(InferenceDeviceDescriptorSchema).readonly(),
|
|
61627
|
+
appeared: array(string()).readonly(),
|
|
61628
|
+
disappeared: array(string()).readonly(),
|
|
61629
|
+
usbBus: _enum(["observed", "unobservable"]),
|
|
61630
|
+
decidedBy: _enum([
|
|
61631
|
+
"usb-ids",
|
|
61632
|
+
"pci",
|
|
61633
|
+
"delegate-fallback",
|
|
61634
|
+
"none"
|
|
61635
|
+
])
|
|
61636
|
+
});
|
|
61637
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
|
|
61638
|
+
kind: "mutation",
|
|
61639
|
+
auth: "admin"
|
|
61640
|
+
});
|
|
61458
61641
|
/**
|
|
61459
61642
|
* Multi-metric electrical meter. One slice can carry any combination
|
|
61460
61643
|
* of instantaneous power (W), cumulative energy (kWh), voltage (V),
|
|
@@ -66062,60 +66245,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
66062
66245
|
auth: "admin",
|
|
66063
66246
|
access: "delete"
|
|
66064
66247
|
});
|
|
66065
|
-
/**
|
|
66066
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
66067
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
66068
|
-
* optional fan-speed selector.
|
|
66069
|
-
*
|
|
66070
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
66071
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
66072
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
66073
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
66074
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
66075
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
66076
|
-
*
|
|
66077
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
66078
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
66079
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
66080
|
-
*
|
|
66081
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
66082
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
66083
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
66084
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
66085
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
66086
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
66087
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
66088
|
-
* so the HA provider leaves all four `null`.
|
|
66089
|
-
*/
|
|
66090
|
-
var VacuumStateSchema = _enum([
|
|
66091
|
-
"idle",
|
|
66092
|
-
"cleaning",
|
|
66093
|
-
"paused",
|
|
66094
|
-
"returning",
|
|
66095
|
-
"docked",
|
|
66096
|
-
"drying",
|
|
66097
|
-
"error"
|
|
66098
|
-
]);
|
|
66099
|
-
/**
|
|
66100
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
66101
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
66102
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
66103
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
66104
|
-
* hardware has no such tank at all.
|
|
66105
|
-
*/
|
|
66106
|
-
var TankStatusSchema = object({
|
|
66107
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
66108
|
-
level: number().min(0).max(100).nullable(),
|
|
66109
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
66110
|
-
status: _enum([
|
|
66111
|
-
"ok",
|
|
66112
|
-
"low",
|
|
66113
|
-
"full"
|
|
66114
|
-
]).nullable()
|
|
66115
|
-
});
|
|
66116
66248
|
var VacuumControlStatusSchema = object({
|
|
66117
66249
|
/** Lifecycle state of the vacuum. */
|
|
66118
|
-
state:
|
|
66250
|
+
state: _enum([
|
|
66251
|
+
"idle",
|
|
66252
|
+
"cleaning",
|
|
66253
|
+
"paused",
|
|
66254
|
+
"returning",
|
|
66255
|
+
"docked",
|
|
66256
|
+
"drying",
|
|
66257
|
+
"error"
|
|
66258
|
+
]),
|
|
66119
66259
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
66120
66260
|
* reading. */
|
|
66121
66261
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -66124,14 +66264,6 @@ var VacuumControlStatusSchema = object({
|
|
|
66124
66264
|
fanSpeed: string().nullable(),
|
|
66125
66265
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
66126
66266
|
availableFanSpeeds: array(string()),
|
|
66127
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
66128
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
66129
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
66130
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
66131
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
66132
|
-
detergent: TankStatusSchema.nullable(),
|
|
66133
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
66134
|
-
dustBin: TankStatusSchema.nullable(),
|
|
66135
66267
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
66136
66268
|
progressPercent: number().min(0).max(100).nullable(),
|
|
66137
66269
|
/** Current error code (0 / null = no error). */
|
|
@@ -66193,35 +66325,14 @@ var vacuumControlCapability = {
|
|
|
66193
66325
|
*/
|
|
66194
66326
|
durability: "session",
|
|
66195
66327
|
/**
|
|
66196
|
-
* History (D850): recorded series.
|
|
66328
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
66329
|
+
* items are keyed by runtime ids and record no history.
|
|
66197
66330
|
*/
|
|
66198
|
-
history: { fields: {
|
|
66199
|
-
|
|
66200
|
-
|
|
66201
|
-
|
|
66202
|
-
|
|
66203
|
-
},
|
|
66204
|
-
"cleanWater.level": {
|
|
66205
|
-
kind: "gauge",
|
|
66206
|
-
unit: "%",
|
|
66207
|
-
deadband: 2
|
|
66208
|
-
},
|
|
66209
|
-
"dirtyWater.level": {
|
|
66210
|
-
kind: "gauge",
|
|
66211
|
-
unit: "%",
|
|
66212
|
-
deadband: 2
|
|
66213
|
-
},
|
|
66214
|
-
"detergent.level": {
|
|
66215
|
-
kind: "gauge",
|
|
66216
|
-
unit: "%",
|
|
66217
|
-
deadband: 2
|
|
66218
|
-
},
|
|
66219
|
-
"dustBin.level": {
|
|
66220
|
-
kind: "gauge",
|
|
66221
|
-
unit: "%",
|
|
66222
|
-
deadband: 2
|
|
66223
|
-
}
|
|
66224
|
-
} }
|
|
66331
|
+
history: { fields: { batteryLevel: {
|
|
66332
|
+
kind: "gauge",
|
|
66333
|
+
unit: "%",
|
|
66334
|
+
deadband: 2
|
|
66335
|
+
} } }
|
|
66225
66336
|
};
|
|
66226
66337
|
var ValveStatusSchema = object({
|
|
66227
66338
|
/** Lifecycle state of the valve. */
|
|
@@ -70634,6 +70745,12 @@ Object.freeze({
|
|
|
70634
70745
|
addonId: null,
|
|
70635
70746
|
access: "create"
|
|
70636
70747
|
},
|
|
70748
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
70749
|
+
capName: "device-history",
|
|
70750
|
+
capScope: "system",
|
|
70751
|
+
addonId: null,
|
|
70752
|
+
access: "delete"
|
|
70753
|
+
},
|
|
70637
70754
|
"deviceHistory.getDeviceEnabled": {
|
|
70638
70755
|
capName: "device-history",
|
|
70639
70756
|
capScope: "system",
|
|
@@ -70652,6 +70769,12 @@ Object.freeze({
|
|
|
70652
70769
|
addonId: null,
|
|
70653
70770
|
access: "view"
|
|
70654
70771
|
},
|
|
70772
|
+
"deviceHistory.listOrphanSeries": {
|
|
70773
|
+
capName: "device-history",
|
|
70774
|
+
capScope: "system",
|
|
70775
|
+
addonId: null,
|
|
70776
|
+
access: "view"
|
|
70777
|
+
},
|
|
70655
70778
|
"deviceHistory.listSeries": {
|
|
70656
70779
|
capName: "device-history",
|
|
70657
70780
|
capScope: "system",
|
|
@@ -74276,6 +74399,12 @@ Object.freeze({
|
|
|
74276
74399
|
addonId: null,
|
|
74277
74400
|
access: "delete"
|
|
74278
74401
|
},
|
|
74402
|
+
"pipelineOrchestrator.forgetInferenceDevice": {
|
|
74403
|
+
capName: "pipeline-orchestrator",
|
|
74404
|
+
capScope: "system",
|
|
74405
|
+
addonId: null,
|
|
74406
|
+
access: "delete"
|
|
74407
|
+
},
|
|
74279
74408
|
"pipelineOrchestrator.getAgentLoad": {
|
|
74280
74409
|
capName: "pipeline-orchestrator",
|
|
74281
74410
|
capScope: "system",
|
|
@@ -74852,6 +74981,12 @@ Object.freeze({
|
|
|
74852
74981
|
addonId: null,
|
|
74853
74982
|
access: "view"
|
|
74854
74983
|
},
|
|
74984
|
+
"platformProbe.rescanAccelerators": {
|
|
74985
|
+
capName: "platform-probe",
|
|
74986
|
+
capScope: "system",
|
|
74987
|
+
addonId: null,
|
|
74988
|
+
access: "create"
|
|
74989
|
+
},
|
|
74855
74990
|
"platformProbe.resolveHwAccel": {
|
|
74856
74991
|
capName: "platform-probe",
|
|
74857
74992
|
capScope: "system",
|
|
@@ -80875,7 +81010,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
80875
81010
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
80876
81011
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
80877
81012
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
80878
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
81013
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
80879
81014
|
([...RULE_TEXT], [...TANK]),
|
|
80880
81015
|
[...RULE_TEXT],
|
|
80881
81016
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.171",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|