@camstack/addon-export-google 0.1.109 → 0.1.110
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/export-google.addon.js +151 -83
- package/dist/export-google.addon.mjs +151 -83
- package/package.json +1 -1
|
@@ -5509,7 +5509,7 @@ var ZodIssueCode = {
|
|
|
5509
5509
|
var ZodFirstPartyTypeKind;
|
|
5510
5510
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5511
5511
|
//#endregion
|
|
5512
|
-
//#region ../types/dist/sleep-
|
|
5512
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5513
5513
|
/**
|
|
5514
5514
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5515
5515
|
* window to float samples (D455).
|
|
@@ -8334,7 +8334,11 @@ var ContributionSectionSchema = object({
|
|
|
8334
8334
|
literal(4)
|
|
8335
8335
|
]).optional(),
|
|
8336
8336
|
tab: string().optional(),
|
|
8337
|
-
location: _enum([
|
|
8337
|
+
location: _enum([
|
|
8338
|
+
"settings",
|
|
8339
|
+
"top-tab",
|
|
8340
|
+
"hero"
|
|
8341
|
+
]).optional(),
|
|
8338
8342
|
order: number().optional(),
|
|
8339
8343
|
fields: array(any())
|
|
8340
8344
|
});
|
|
@@ -13428,7 +13432,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13428
13432
|
literal(4)
|
|
13429
13433
|
]).optional(),
|
|
13430
13434
|
tab: string().optional(),
|
|
13431
|
-
location: _enum([
|
|
13435
|
+
location: _enum([
|
|
13436
|
+
"settings",
|
|
13437
|
+
"top-tab",
|
|
13438
|
+
"hero"
|
|
13439
|
+
]).optional(),
|
|
13432
13440
|
order: number().optional(),
|
|
13433
13441
|
fields: array(any())
|
|
13434
13442
|
});
|
|
@@ -17202,6 +17210,52 @@ var TierStatusSchema = object({
|
|
|
17202
17210
|
countedAt: number().nullable()
|
|
17203
17211
|
});
|
|
17204
17212
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17213
|
+
/**
|
|
17214
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17215
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17216
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17217
|
+
*/
|
|
17218
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17219
|
+
/** Rows held per stored tier. */
|
|
17220
|
+
var TierRowsSchema = object({
|
|
17221
|
+
raw: number().int(),
|
|
17222
|
+
"5m": number().int(),
|
|
17223
|
+
"1h": number().int(),
|
|
17224
|
+
"1d": number().int()
|
|
17225
|
+
});
|
|
17226
|
+
var OrphanSeriesSchema = object({
|
|
17227
|
+
seriesId: number().int(),
|
|
17228
|
+
deviceId: number().int(),
|
|
17229
|
+
key: string(),
|
|
17230
|
+
scope: string(),
|
|
17231
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17232
|
+
displayName: string().nullable(),
|
|
17233
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17234
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17235
|
+
missingSince: number().nullable(),
|
|
17236
|
+
firstTs: number(),
|
|
17237
|
+
lastTs: number(),
|
|
17238
|
+
rows: TierRowsSchema
|
|
17239
|
+
});
|
|
17240
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17241
|
+
"not-found",
|
|
17242
|
+
"not-orphan",
|
|
17243
|
+
"failed"
|
|
17244
|
+
]);
|
|
17245
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17246
|
+
seriesId: number().int(),
|
|
17247
|
+
ok: literal(true),
|
|
17248
|
+
deleted: TierRowsSchema
|
|
17249
|
+
}), object({
|
|
17250
|
+
seriesId: number().int(),
|
|
17251
|
+
ok: literal(false),
|
|
17252
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17253
|
+
})]);
|
|
17254
|
+
var OrphanListSchema = object({
|
|
17255
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17256
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17257
|
+
truncated: boolean()
|
|
17258
|
+
});
|
|
17205
17259
|
var DeviceHistoryStatusSchema = object({
|
|
17206
17260
|
startedAt: number(),
|
|
17207
17261
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17299,7 +17353,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17299
17353
|
}), object({ enabled: boolean() }), {
|
|
17300
17354
|
kind: "mutation",
|
|
17301
17355
|
auth: "admin"
|
|
17302
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17356
|
+
}), 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() }), {
|
|
17357
|
+
kind: "mutation",
|
|
17358
|
+
auth: "admin"
|
|
17359
|
+
});
|
|
17303
17360
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17304
17361
|
object({ state: literal("absent") }),
|
|
17305
17362
|
object({
|
|
@@ -54361,17 +54418,69 @@ object({
|
|
|
54361
54418
|
});
|
|
54362
54419
|
DeviceType.Sensor;
|
|
54363
54420
|
/**
|
|
54364
|
-
* Generic device-consumables capability —
|
|
54365
|
-
*
|
|
54366
|
-
* descaling cycles,
|
|
54367
|
-
*
|
|
54368
|
-
*
|
|
54369
|
-
*
|
|
54421
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54422
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54423
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54424
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54425
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54426
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54427
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54428
|
+
* verbatim and says which `kind` it is.
|
|
54429
|
+
*
|
|
54430
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54431
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54432
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54370
54433
|
*
|
|
54371
54434
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54372
54435
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54373
54436
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54374
54437
|
*/
|
|
54438
|
+
/**
|
|
54439
|
+
* What an item IS, which decides which direction is bad:
|
|
54440
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54441
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54442
|
+
* salt, rinse aid); low or empty is bad.
|
|
54443
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54444
|
+
* bad.
|
|
54445
|
+
* Absent = `wear`.
|
|
54446
|
+
*/
|
|
54447
|
+
var ConsumableKindSchema = _enum([
|
|
54448
|
+
"wear",
|
|
54449
|
+
"supply",
|
|
54450
|
+
"waste"
|
|
54451
|
+
]);
|
|
54452
|
+
/**
|
|
54453
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54454
|
+
* of `kind`, which decides which direction is bad:
|
|
54455
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54456
|
+
* remaining time and a reset.
|
|
54457
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54458
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54459
|
+
* a stepped level and "refill".
|
|
54460
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54461
|
+
* that warns when full.
|
|
54462
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54463
|
+
*/
|
|
54464
|
+
var ConsumableFormSchema = _enum([
|
|
54465
|
+
"part",
|
|
54466
|
+
"tank",
|
|
54467
|
+
"product",
|
|
54468
|
+
"bin"
|
|
54469
|
+
]);
|
|
54470
|
+
/** The provider's own discrete verdict on an item. */
|
|
54471
|
+
var ConsumableStatusSchema = _enum([
|
|
54472
|
+
"ok",
|
|
54473
|
+
"low",
|
|
54474
|
+
"empty",
|
|
54475
|
+
"full",
|
|
54476
|
+
"replace"
|
|
54477
|
+
]);
|
|
54478
|
+
_enum([
|
|
54479
|
+
"ok",
|
|
54480
|
+
"low",
|
|
54481
|
+
"empty",
|
|
54482
|
+
"full"
|
|
54483
|
+
]);
|
|
54375
54484
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54376
54485
|
* each. */
|
|
54377
54486
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54391,10 +54500,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54391
54500
|
key: string().min(1),
|
|
54392
54501
|
/** Display name. */
|
|
54393
54502
|
label: string().min(1),
|
|
54394
|
-
/** Remaining life % when known (0..100). */
|
|
54503
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54395
54504
|
level: number().min(0).max(100).nullable(),
|
|
54396
|
-
/**
|
|
54397
|
-
status:
|
|
54505
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54506
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54507
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54508
|
+
kind: ConsumableKindSchema.optional(),
|
|
54509
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54510
|
+
form: ConsumableFormSchema.optional(),
|
|
54398
54511
|
/** Ms epoch of the last replace, when known. */
|
|
54399
54512
|
lastResetAt: number().nullable(),
|
|
54400
54513
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54629,8 +54742,9 @@ object({
|
|
|
54629
54742
|
status: DeviceStatusSchema
|
|
54630
54743
|
});
|
|
54631
54744
|
/**
|
|
54632
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54633
|
-
*
|
|
54745
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54746
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54747
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54634
54748
|
*
|
|
54635
54749
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54636
54750
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54678,11 +54792,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54678
54792
|
"offline",
|
|
54679
54793
|
"description-missing"
|
|
54680
54794
|
]);
|
|
54681
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54682
|
-
"ok",
|
|
54683
|
-
"low",
|
|
54684
|
-
"empty"
|
|
54685
|
-
]);
|
|
54686
54795
|
object({
|
|
54687
54796
|
availability: DishwasherAvailabilitySchema,
|
|
54688
54797
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54715,8 +54824,6 @@ object({
|
|
|
54715
54824
|
powerOn: boolean().nullable(),
|
|
54716
54825
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54717
54826
|
powerState: string().nullable(),
|
|
54718
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54719
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54720
54827
|
/**
|
|
54721
54828
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54722
54829
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61506,60 +61613,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61506
61613
|
auth: "admin",
|
|
61507
61614
|
access: "delete"
|
|
61508
61615
|
});
|
|
61509
|
-
/**
|
|
61510
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61511
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61512
|
-
* optional fan-speed selector.
|
|
61513
|
-
*
|
|
61514
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61515
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61516
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61517
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61518
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61519
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61520
|
-
*
|
|
61521
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61522
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61523
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61524
|
-
*
|
|
61525
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61526
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61527
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61528
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61529
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61530
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61531
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61532
|
-
* so the HA provider leaves all four `null`.
|
|
61533
|
-
*/
|
|
61534
|
-
var VacuumStateSchema = _enum([
|
|
61535
|
-
"idle",
|
|
61536
|
-
"cleaning",
|
|
61537
|
-
"paused",
|
|
61538
|
-
"returning",
|
|
61539
|
-
"docked",
|
|
61540
|
-
"drying",
|
|
61541
|
-
"error"
|
|
61542
|
-
]);
|
|
61543
|
-
/**
|
|
61544
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61545
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61546
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61547
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61548
|
-
* hardware has no such tank at all.
|
|
61549
|
-
*/
|
|
61550
|
-
var TankStatusSchema = object({
|
|
61551
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61552
|
-
level: number().min(0).max(100).nullable(),
|
|
61553
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61554
|
-
status: _enum([
|
|
61555
|
-
"ok",
|
|
61556
|
-
"low",
|
|
61557
|
-
"full"
|
|
61558
|
-
]).nullable()
|
|
61559
|
-
});
|
|
61560
61616
|
object({
|
|
61561
61617
|
/** Lifecycle state of the vacuum. */
|
|
61562
|
-
state:
|
|
61618
|
+
state: _enum([
|
|
61619
|
+
"idle",
|
|
61620
|
+
"cleaning",
|
|
61621
|
+
"paused",
|
|
61622
|
+
"returning",
|
|
61623
|
+
"docked",
|
|
61624
|
+
"drying",
|
|
61625
|
+
"error"
|
|
61626
|
+
]),
|
|
61563
61627
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61564
61628
|
* reading. */
|
|
61565
61629
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61568,14 +61632,6 @@ object({
|
|
|
61568
61632
|
fanSpeed: string().nullable(),
|
|
61569
61633
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61570
61634
|
availableFanSpeeds: array(string()),
|
|
61571
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61572
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61573
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61574
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61575
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61576
|
-
detergent: TankStatusSchema.nullable(),
|
|
61577
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61578
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61579
61635
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61580
61636
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61581
61637
|
/** Current error code (0 / null = no error). */
|
|
@@ -64116,6 +64172,12 @@ Object.freeze({
|
|
|
64116
64172
|
addonId: null,
|
|
64117
64173
|
access: "create"
|
|
64118
64174
|
},
|
|
64175
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64176
|
+
capName: "device-history",
|
|
64177
|
+
capScope: "system",
|
|
64178
|
+
addonId: null,
|
|
64179
|
+
access: "delete"
|
|
64180
|
+
},
|
|
64119
64181
|
"deviceHistory.getDeviceEnabled": {
|
|
64120
64182
|
capName: "device-history",
|
|
64121
64183
|
capScope: "system",
|
|
@@ -64134,6 +64196,12 @@ Object.freeze({
|
|
|
64134
64196
|
addonId: null,
|
|
64135
64197
|
access: "view"
|
|
64136
64198
|
},
|
|
64199
|
+
"deviceHistory.listOrphanSeries": {
|
|
64200
|
+
capName: "device-history",
|
|
64201
|
+
capScope: "system",
|
|
64202
|
+
addonId: null,
|
|
64203
|
+
access: "view"
|
|
64204
|
+
},
|
|
64137
64205
|
"deviceHistory.listSeries": {
|
|
64138
64206
|
capName: "device-history",
|
|
64139
64207
|
capScope: "system",
|
|
@@ -74139,7 +74207,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74139
74207
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74140
74208
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74141
74209
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74142
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74210
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74143
74211
|
([...RULE_TEXT], [...TANK]),
|
|
74144
74212
|
[...RULE_TEXT],
|
|
74145
74213
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -5505,7 +5505,7 @@ var ZodIssueCode = {
|
|
|
5505
5505
|
var ZodFirstPartyTypeKind;
|
|
5506
5506
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5507
5507
|
//#endregion
|
|
5508
|
-
//#region ../types/dist/sleep-
|
|
5508
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5509
5509
|
/**
|
|
5510
5510
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5511
5511
|
* window to float samples (D455).
|
|
@@ -8330,7 +8330,11 @@ var ContributionSectionSchema = object({
|
|
|
8330
8330
|
literal(4)
|
|
8331
8331
|
]).optional(),
|
|
8332
8332
|
tab: string().optional(),
|
|
8333
|
-
location: _enum([
|
|
8333
|
+
location: _enum([
|
|
8334
|
+
"settings",
|
|
8335
|
+
"top-tab",
|
|
8336
|
+
"hero"
|
|
8337
|
+
]).optional(),
|
|
8334
8338
|
order: number().optional(),
|
|
8335
8339
|
fields: array(any())
|
|
8336
8340
|
});
|
|
@@ -13424,7 +13428,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13424
13428
|
literal(4)
|
|
13425
13429
|
]).optional(),
|
|
13426
13430
|
tab: string().optional(),
|
|
13427
|
-
location: _enum([
|
|
13431
|
+
location: _enum([
|
|
13432
|
+
"settings",
|
|
13433
|
+
"top-tab",
|
|
13434
|
+
"hero"
|
|
13435
|
+
]).optional(),
|
|
13428
13436
|
order: number().optional(),
|
|
13429
13437
|
fields: array(any())
|
|
13430
13438
|
});
|
|
@@ -17198,6 +17206,52 @@ var TierStatusSchema = object({
|
|
|
17198
17206
|
countedAt: number().nullable()
|
|
17199
17207
|
});
|
|
17200
17208
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17209
|
+
/**
|
|
17210
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17211
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17212
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17213
|
+
*/
|
|
17214
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17215
|
+
/** Rows held per stored tier. */
|
|
17216
|
+
var TierRowsSchema = object({
|
|
17217
|
+
raw: number().int(),
|
|
17218
|
+
"5m": number().int(),
|
|
17219
|
+
"1h": number().int(),
|
|
17220
|
+
"1d": number().int()
|
|
17221
|
+
});
|
|
17222
|
+
var OrphanSeriesSchema = object({
|
|
17223
|
+
seriesId: number().int(),
|
|
17224
|
+
deviceId: number().int(),
|
|
17225
|
+
key: string(),
|
|
17226
|
+
scope: string(),
|
|
17227
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17228
|
+
displayName: string().nullable(),
|
|
17229
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17230
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17231
|
+
missingSince: number().nullable(),
|
|
17232
|
+
firstTs: number(),
|
|
17233
|
+
lastTs: number(),
|
|
17234
|
+
rows: TierRowsSchema
|
|
17235
|
+
});
|
|
17236
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17237
|
+
"not-found",
|
|
17238
|
+
"not-orphan",
|
|
17239
|
+
"failed"
|
|
17240
|
+
]);
|
|
17241
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17242
|
+
seriesId: number().int(),
|
|
17243
|
+
ok: literal(true),
|
|
17244
|
+
deleted: TierRowsSchema
|
|
17245
|
+
}), object({
|
|
17246
|
+
seriesId: number().int(),
|
|
17247
|
+
ok: literal(false),
|
|
17248
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17249
|
+
})]);
|
|
17250
|
+
var OrphanListSchema = object({
|
|
17251
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17252
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17253
|
+
truncated: boolean()
|
|
17254
|
+
});
|
|
17201
17255
|
var DeviceHistoryStatusSchema = object({
|
|
17202
17256
|
startedAt: number(),
|
|
17203
17257
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17295,7 +17349,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17295
17349
|
}), object({ enabled: boolean() }), {
|
|
17296
17350
|
kind: "mutation",
|
|
17297
17351
|
auth: "admin"
|
|
17298
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17352
|
+
}), 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() }), {
|
|
17353
|
+
kind: "mutation",
|
|
17354
|
+
auth: "admin"
|
|
17355
|
+
});
|
|
17299
17356
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17300
17357
|
object({ state: literal("absent") }),
|
|
17301
17358
|
object({
|
|
@@ -54357,17 +54414,69 @@ object({
|
|
|
54357
54414
|
});
|
|
54358
54415
|
DeviceType.Sensor;
|
|
54359
54416
|
/**
|
|
54360
|
-
* Generic device-consumables capability —
|
|
54361
|
-
*
|
|
54362
|
-
* descaling cycles,
|
|
54363
|
-
*
|
|
54364
|
-
*
|
|
54365
|
-
*
|
|
54417
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54418
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54419
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54420
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54421
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54422
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54423
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54424
|
+
* verbatim and says which `kind` it is.
|
|
54425
|
+
*
|
|
54426
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54427
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54428
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54366
54429
|
*
|
|
54367
54430
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54368
54431
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54369
54432
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54370
54433
|
*/
|
|
54434
|
+
/**
|
|
54435
|
+
* What an item IS, which decides which direction is bad:
|
|
54436
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54437
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54438
|
+
* salt, rinse aid); low or empty is bad.
|
|
54439
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54440
|
+
* bad.
|
|
54441
|
+
* Absent = `wear`.
|
|
54442
|
+
*/
|
|
54443
|
+
var ConsumableKindSchema = _enum([
|
|
54444
|
+
"wear",
|
|
54445
|
+
"supply",
|
|
54446
|
+
"waste"
|
|
54447
|
+
]);
|
|
54448
|
+
/**
|
|
54449
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54450
|
+
* of `kind`, which decides which direction is bad:
|
|
54451
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54452
|
+
* remaining time and a reset.
|
|
54453
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54454
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54455
|
+
* a stepped level and "refill".
|
|
54456
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54457
|
+
* that warns when full.
|
|
54458
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54459
|
+
*/
|
|
54460
|
+
var ConsumableFormSchema = _enum([
|
|
54461
|
+
"part",
|
|
54462
|
+
"tank",
|
|
54463
|
+
"product",
|
|
54464
|
+
"bin"
|
|
54465
|
+
]);
|
|
54466
|
+
/** The provider's own discrete verdict on an item. */
|
|
54467
|
+
var ConsumableStatusSchema = _enum([
|
|
54468
|
+
"ok",
|
|
54469
|
+
"low",
|
|
54470
|
+
"empty",
|
|
54471
|
+
"full",
|
|
54472
|
+
"replace"
|
|
54473
|
+
]);
|
|
54474
|
+
_enum([
|
|
54475
|
+
"ok",
|
|
54476
|
+
"low",
|
|
54477
|
+
"empty",
|
|
54478
|
+
"full"
|
|
54479
|
+
]);
|
|
54371
54480
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54372
54481
|
* each. */
|
|
54373
54482
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54387,10 +54496,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54387
54496
|
key: string().min(1),
|
|
54388
54497
|
/** Display name. */
|
|
54389
54498
|
label: string().min(1),
|
|
54390
|
-
/** Remaining life % when known (0..100). */
|
|
54499
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54391
54500
|
level: number().min(0).max(100).nullable(),
|
|
54392
|
-
/**
|
|
54393
|
-
status:
|
|
54501
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54502
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54503
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54504
|
+
kind: ConsumableKindSchema.optional(),
|
|
54505
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54506
|
+
form: ConsumableFormSchema.optional(),
|
|
54394
54507
|
/** Ms epoch of the last replace, when known. */
|
|
54395
54508
|
lastResetAt: number().nullable(),
|
|
54396
54509
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54625,8 +54738,9 @@ object({
|
|
|
54625
54738
|
status: DeviceStatusSchema
|
|
54626
54739
|
});
|
|
54627
54740
|
/**
|
|
54628
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54629
|
-
*
|
|
54741
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54742
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54743
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54630
54744
|
*
|
|
54631
54745
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54632
54746
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54674,11 +54788,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54674
54788
|
"offline",
|
|
54675
54789
|
"description-missing"
|
|
54676
54790
|
]);
|
|
54677
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54678
|
-
"ok",
|
|
54679
|
-
"low",
|
|
54680
|
-
"empty"
|
|
54681
|
-
]);
|
|
54682
54791
|
object({
|
|
54683
54792
|
availability: DishwasherAvailabilitySchema,
|
|
54684
54793
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54711,8 +54820,6 @@ object({
|
|
|
54711
54820
|
powerOn: boolean().nullable(),
|
|
54712
54821
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54713
54822
|
powerState: string().nullable(),
|
|
54714
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54715
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54716
54823
|
/**
|
|
54717
54824
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54718
54825
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61502,60 +61609,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61502
61609
|
auth: "admin",
|
|
61503
61610
|
access: "delete"
|
|
61504
61611
|
});
|
|
61505
|
-
/**
|
|
61506
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61507
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61508
|
-
* optional fan-speed selector.
|
|
61509
|
-
*
|
|
61510
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61511
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61512
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61513
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61514
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61515
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61516
|
-
*
|
|
61517
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61518
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61519
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61520
|
-
*
|
|
61521
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61522
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61523
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61524
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61525
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61526
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61527
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61528
|
-
* so the HA provider leaves all four `null`.
|
|
61529
|
-
*/
|
|
61530
|
-
var VacuumStateSchema = _enum([
|
|
61531
|
-
"idle",
|
|
61532
|
-
"cleaning",
|
|
61533
|
-
"paused",
|
|
61534
|
-
"returning",
|
|
61535
|
-
"docked",
|
|
61536
|
-
"drying",
|
|
61537
|
-
"error"
|
|
61538
|
-
]);
|
|
61539
|
-
/**
|
|
61540
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61541
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61542
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61543
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61544
|
-
* hardware has no such tank at all.
|
|
61545
|
-
*/
|
|
61546
|
-
var TankStatusSchema = object({
|
|
61547
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61548
|
-
level: number().min(0).max(100).nullable(),
|
|
61549
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61550
|
-
status: _enum([
|
|
61551
|
-
"ok",
|
|
61552
|
-
"low",
|
|
61553
|
-
"full"
|
|
61554
|
-
]).nullable()
|
|
61555
|
-
});
|
|
61556
61612
|
object({
|
|
61557
61613
|
/** Lifecycle state of the vacuum. */
|
|
61558
|
-
state:
|
|
61614
|
+
state: _enum([
|
|
61615
|
+
"idle",
|
|
61616
|
+
"cleaning",
|
|
61617
|
+
"paused",
|
|
61618
|
+
"returning",
|
|
61619
|
+
"docked",
|
|
61620
|
+
"drying",
|
|
61621
|
+
"error"
|
|
61622
|
+
]),
|
|
61559
61623
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61560
61624
|
* reading. */
|
|
61561
61625
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61564,14 +61628,6 @@ object({
|
|
|
61564
61628
|
fanSpeed: string().nullable(),
|
|
61565
61629
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61566
61630
|
availableFanSpeeds: array(string()),
|
|
61567
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61568
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61569
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61570
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61571
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61572
|
-
detergent: TankStatusSchema.nullable(),
|
|
61573
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61574
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61575
61631
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61576
61632
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61577
61633
|
/** Current error code (0 / null = no error). */
|
|
@@ -64112,6 +64168,12 @@ Object.freeze({
|
|
|
64112
64168
|
addonId: null,
|
|
64113
64169
|
access: "create"
|
|
64114
64170
|
},
|
|
64171
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64172
|
+
capName: "device-history",
|
|
64173
|
+
capScope: "system",
|
|
64174
|
+
addonId: null,
|
|
64175
|
+
access: "delete"
|
|
64176
|
+
},
|
|
64115
64177
|
"deviceHistory.getDeviceEnabled": {
|
|
64116
64178
|
capName: "device-history",
|
|
64117
64179
|
capScope: "system",
|
|
@@ -64130,6 +64192,12 @@ Object.freeze({
|
|
|
64130
64192
|
addonId: null,
|
|
64131
64193
|
access: "view"
|
|
64132
64194
|
},
|
|
64195
|
+
"deviceHistory.listOrphanSeries": {
|
|
64196
|
+
capName: "device-history",
|
|
64197
|
+
capScope: "system",
|
|
64198
|
+
addonId: null,
|
|
64199
|
+
access: "view"
|
|
64200
|
+
},
|
|
64133
64201
|
"deviceHistory.listSeries": {
|
|
64134
64202
|
capName: "device-history",
|
|
64135
64203
|
capScope: "system",
|
|
@@ -74135,7 +74203,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74135
74203
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74136
74204
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74137
74205
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74138
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74206
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74139
74207
|
([...RULE_TEXT], [...TANK]),
|
|
74140
74208
|
[...RULE_TEXT],
|
|
74141
74209
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.110",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|