@camstack/types 1.2.588 → 1.2.590
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/CHANGELOG.md +13 -0
- package/dist/addon.js +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/capabilities/alarm-panel.cap.d.ts +15 -7
- package/dist/capabilities/battery.cap.d.ts +7 -41
- package/dist/capabilities/capability-definition.d.ts +12 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/lock-control.cap.d.ts +5 -2
- package/dist/capabilities/low-power-sleep.cap.d.ts +83 -0
- package/dist/capabilities/resync.cap.d.ts +40 -0
- package/dist/client.js +19 -11
- package/dist/client.mjs +19 -11
- package/dist/{composed-stable-id-BBL71oUQ.mjs → composed-stable-id-BNTaDZEh.mjs} +9 -13
- package/dist/{composed-stable-id-CVbyajE5.js → composed-stable-id-BdeYe5dD.js} +9 -13
- package/dist/device/device-feature-requirements.d.ts +3 -6
- package/dist/device/device-profile.d.ts +1 -1
- package/dist/device/device-type.d.ts +9 -13
- package/dist/device/low-power-sleep.d.ts +19 -0
- package/dist/device/resync-through-adoption.d.ts +12 -0
- package/dist/enums/event-category.d.ts +1 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-CE_VCE2G.js → event-category-BKxXXxnV.js} +1 -1
- package/dist/{event-category-Hwx_JSCU.mjs → event-category-CY27-fF0.mjs} +1 -1
- package/dist/generated/addon-api.d.ts +113 -8
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +6 -1
- package/dist/{implemented-methods-ChtdIofW.js → implemented-methods-BarLh7tc.js} +1 -1
- package/dist/{implemented-methods-u7ddjc-_.mjs → implemented-methods-k3KProJd.mjs} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +357 -82
- package/dist/index.mjs +342 -83
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/schemas/api-catalog.d.ts +170 -0
- package/dist/{sleep-CsZJsb8n.js → sleep-BA_SIc0O.js} +51 -10
- package/dist/{sleep-D6Pih0Qt.mjs → sleep-BT1bLgPq.mjs} +51 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
5
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
2
|
+
const require_sleep = require("./sleep-BA_SIc0O.js");
|
|
3
|
+
const require_event_category = require("./event-category-BKxXXxnV.js");
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
|
|
5
|
+
const require_implemented_methods = require("./implemented-methods-BarLh7tc.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
7
|
const require_convert = require("./convert-BI8iTXn6.js");
|
|
8
8
|
const require_device_template_catalogue = require("./device-template-catalogue.js");
|
|
@@ -30566,6 +30566,70 @@ var PreferencesChangedSinceOutputSchema = zod.z.object({
|
|
|
30566
30566
|
deleted: zod.z.array(PreferenceNamespaceSchema)
|
|
30567
30567
|
});
|
|
30568
30568
|
//#endregion
|
|
30569
|
+
//#region src/schemas/api-catalog.ts
|
|
30570
|
+
/**
|
|
30571
|
+
* The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
|
|
30572
|
+
*
|
|
30573
|
+
* One entry per tRPC method the hub serves, capability and core routes alike,
|
|
30574
|
+
* read off the live router by the hub (never a hand-written list).
|
|
30575
|
+
*/
|
|
30576
|
+
var ApiProcedureKindSchema = zod.z.enum([
|
|
30577
|
+
"query",
|
|
30578
|
+
"mutation",
|
|
30579
|
+
"subscription"
|
|
30580
|
+
]);
|
|
30581
|
+
/** The gate a method runs behind. */
|
|
30582
|
+
var ApiProcedureTierSchema = zod.z.enum([
|
|
30583
|
+
"public",
|
|
30584
|
+
"protected",
|
|
30585
|
+
"admin"
|
|
30586
|
+
]);
|
|
30587
|
+
/** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
|
|
30588
|
+
var ApiCatalogScopeSchema = zod.z.object({
|
|
30589
|
+
capName: zod.z.string(),
|
|
30590
|
+
capScope: zod.z.enum(["device", "system"]),
|
|
30591
|
+
access: zod.z.enum([
|
|
30592
|
+
"view",
|
|
30593
|
+
"create",
|
|
30594
|
+
"delete"
|
|
30595
|
+
]),
|
|
30596
|
+
role: zod.z.string()
|
|
30597
|
+
});
|
|
30598
|
+
var ApiCatalogEntrySchema = zod.z.object({
|
|
30599
|
+
/** `<router>.<method>` — the tRPC path. */
|
|
30600
|
+
path: zod.z.string(),
|
|
30601
|
+
router: zod.z.string(),
|
|
30602
|
+
method: zod.z.string(),
|
|
30603
|
+
kind: ApiProcedureKindSchema,
|
|
30604
|
+
tier: ApiProcedureTierSchema,
|
|
30605
|
+
source: zod.z.enum(["capability", "core"]),
|
|
30606
|
+
/** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
|
|
30607
|
+
scope: ApiCatalogScopeSchema.nullable(),
|
|
30608
|
+
hasInput: zod.z.boolean()
|
|
30609
|
+
});
|
|
30610
|
+
/**
|
|
30611
|
+
* May the CALLER call a method. The list has no input, so a method reached
|
|
30612
|
+
* only through a device grant is `per-device`: the real call is allowed or
|
|
30613
|
+
* refused on the device its input names.
|
|
30614
|
+
*/
|
|
30615
|
+
var ApiCallableSchema = zod.z.enum([
|
|
30616
|
+
"yes",
|
|
30617
|
+
"no",
|
|
30618
|
+
"per-device"
|
|
30619
|
+
]);
|
|
30620
|
+
var ApiCatalogMethodSchema = ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema });
|
|
30621
|
+
var ApiCatalogListOutputSchema = zod.z.object({ methods: zod.z.array(ApiCatalogMethodSchema) });
|
|
30622
|
+
/** A JSON Schema document, as the explorer receives it. */
|
|
30623
|
+
var JsonSchemaDocumentSchema = zod.z.record(zod.z.string(), zod.z.unknown());
|
|
30624
|
+
var ApiCatalogInputSchemaOutputSchema = zod.z.object({
|
|
30625
|
+
path: zod.z.string(),
|
|
30626
|
+
hasInput: zod.z.boolean(),
|
|
30627
|
+
/** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
|
|
30628
|
+
schema: JsonSchemaDocumentSchema.nullable(),
|
|
30629
|
+
/** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
|
|
30630
|
+
error: zod.z.string().nullable()
|
|
30631
|
+
});
|
|
30632
|
+
//#endregion
|
|
30569
30633
|
//#region src/auth/app-callback.ts
|
|
30570
30634
|
/**
|
|
30571
30635
|
* The viewer app's custom-scheme callback — the ONE list of URLs a hub flow
|
|
@@ -41536,9 +41600,8 @@ var airQualitySensorCapability = {
|
|
|
41536
41600
|
* Many panels require a PIN code on arm / disarm — the optional
|
|
41537
41601
|
* `code` field on the methods passes it through to the upstream
|
|
41538
41602
|
* service; it's NEVER persisted in the runtime slice or any event
|
|
41539
|
-
* payload.
|
|
41540
|
-
* `
|
|
41541
|
-
* field without a slice fetch.
|
|
41603
|
+
* payload. Whether a code is required is the slice's `codeRequired`
|
|
41604
|
+
* (#459): `null` when the provider cannot tell (D393).
|
|
41542
41605
|
*
|
|
41543
41606
|
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
41544
41607
|
* mode list — the UI renders only the buttons the panel accepts.
|
|
@@ -41577,9 +41640,13 @@ var AlarmPanelStatusSchema = zod.z.object({
|
|
|
41577
41640
|
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
41578
41641
|
* mode in this list. */
|
|
41579
41642
|
availableModes: zod.z.array(AlarmArmModeSchema),
|
|
41580
|
-
/**
|
|
41581
|
-
*
|
|
41582
|
-
requiresCode
|
|
41643
|
+
/**
|
|
41644
|
+
* Whether the panel requires a PIN on arm / disarm (#459; the field was
|
|
41645
|
+
* `requiresCode`, and the `alarm-pin-required` device feature is gone).
|
|
41646
|
+
* `null` = the provider cannot tell (D393), never `false`. A slice restored
|
|
41647
|
+
* from before the rename is upgraded at boot by `restoredFieldRenames`.
|
|
41648
|
+
*/
|
|
41649
|
+
codeRequired: zod.z.boolean().nullable(),
|
|
41583
41650
|
/** Ms epoch when the slice was last updated. */
|
|
41584
41651
|
lastChangedAt: zod.z.number()
|
|
41585
41652
|
});
|
|
@@ -41636,7 +41703,7 @@ var alarmPanelCapability = {
|
|
|
41636
41703
|
arm: require_sleep.method(zod.z.object({
|
|
41637
41704
|
deviceId: zod.z.number().int().nonnegative(),
|
|
41638
41705
|
mode: AlarmArmModeSchema,
|
|
41639
|
-
/** Optional PIN code. Required when `
|
|
41706
|
+
/** Optional PIN code. Required when `codeRequired === true`.
|
|
41640
41707
|
* Passed through to the upstream service; never persisted. */
|
|
41641
41708
|
code: zod.z.string().min(1).optional()
|
|
41642
41709
|
}), zod.z.void(), {
|
|
@@ -41753,7 +41820,7 @@ var alarmPanelCapability = {
|
|
|
41753
41820
|
/**
|
|
41754
41821
|
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
41755
41822
|
* full slice; renders an arm button per `availableModes` entry and
|
|
41756
|
-
* a PIN field iff `
|
|
41823
|
+
* a PIN field iff `codeRequired === true`.
|
|
41757
41824
|
*/
|
|
41758
41825
|
runtimeState: AlarmPanelStatusSchema,
|
|
41759
41826
|
/**
|
|
@@ -41764,6 +41831,13 @@ var alarmPanelCapability = {
|
|
|
41764
41831
|
*/
|
|
41765
41832
|
durability: "restored",
|
|
41766
41833
|
/**
|
|
41834
|
+
* A slice persisted before #459 carries `requiresCode`; the boot seed reads it
|
|
41835
|
+
* once into `codeRequired` (`restoredPart`), so no reader meets the old key,
|
|
41836
|
+
* and rewrites the row once without it (`seedMirrorFromRow`) — so this entry
|
|
41837
|
+
* can be dropped after every node has booted once on a release that has it.
|
|
41838
|
+
*/
|
|
41839
|
+
restoredFieldRenames: { requiresCode: "codeRequired" },
|
|
41840
|
+
/**
|
|
41767
41841
|
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
41768
41842
|
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
41769
41843
|
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
@@ -43354,9 +43428,9 @@ var backupCapability = {
|
|
|
43354
43428
|
//#endregion
|
|
43355
43429
|
//#region src/capabilities/battery.cap.ts
|
|
43356
43430
|
/**
|
|
43357
|
-
* Battery status snapshot. Emitted by providers whose device
|
|
43358
|
-
* battery
|
|
43359
|
-
*
|
|
43431
|
+
* Battery status snapshot. Emitted by providers whose device reports a
|
|
43432
|
+
* battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
|
|
43433
|
+
* buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
|
|
43360
43434
|
* battery" alerting on top — the cap deliberately does NOT enforce a
|
|
43361
43435
|
* threshold.
|
|
43362
43436
|
*/
|
|
@@ -43513,47 +43587,12 @@ var batteryCapability = {
|
|
|
43513
43587
|
deviceNative: true,
|
|
43514
43588
|
mode: "singleton",
|
|
43515
43589
|
deviceTypes: BATTERY_DEVICE_TYPES,
|
|
43516
|
-
methods: {
|
|
43517
43590
|
/**
|
|
43518
|
-
*
|
|
43519
|
-
*
|
|
43520
|
-
*
|
|
43521
|
-
* RTCSession, snapshot wrappers) call this with a short timeout
|
|
43522
|
-
* before establishing the media pipeline — the broker's own
|
|
43523
|
-
* passive wake-on-dial works but adds 5–7 seconds to first-frame,
|
|
43524
|
-
* during which the consumer renders a black screen. Pre-waking
|
|
43525
|
-
* compresses that gap.
|
|
43526
|
-
*
|
|
43527
|
-
* Returns `awoke: true` when the firmware acknowledged the wake
|
|
43528
|
-
* before `timeoutMs`. Returns `awoke: false` when it timed out OR
|
|
43529
|
-
* the cap surface is unavailable (no Baichuan / firmware
|
|
43530
|
-
* channel); the caller should still attempt the stream — the
|
|
43531
|
-
* passive broker wake remains as fallback.
|
|
43591
|
+
* No methods: waking a sleeping camera is `low-power-sleep.wakeUp`
|
|
43592
|
+
* (#459, Q2). A battery reading says nothing about sleep — a battery sensor
|
|
43593
|
+
* reports charge and never needs waking.
|
|
43532
43594
|
*/
|
|
43533
|
-
|
|
43534
|
-
deviceId: zod.z.number(),
|
|
43535
|
-
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
43536
|
-
timeoutMs: zod.z.number().int().min(500).max(3e4).default(8e3)
|
|
43537
|
-
}), zod.z.object({
|
|
43538
|
-
awoke: zod.z.boolean(),
|
|
43539
|
-
durationMs: zod.z.number()
|
|
43540
|
-
}), {
|
|
43541
|
-
kind: "mutation",
|
|
43542
|
-
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
43543
|
-
}) },
|
|
43544
|
-
/**
|
|
43545
|
-
* A composed provider (battery ADDED to a pet feeder or container that has
|
|
43546
|
-
* no wake surface) answers `wakeForStream` with the same "unavailable"
|
|
43547
|
-
* result the contract already defines above: "Returns `awoke: false` when
|
|
43548
|
-
* … the cap surface is unavailable." (D663).
|
|
43549
|
-
*/
|
|
43550
|
-
composedMethods: { wakeForStream: {
|
|
43551
|
-
kind: "answer",
|
|
43552
|
-
value: {
|
|
43553
|
-
awoke: false,
|
|
43554
|
-
durationMs: 0
|
|
43555
|
-
}
|
|
43556
|
-
} },
|
|
43595
|
+
methods: {},
|
|
43557
43596
|
events: {
|
|
43558
43597
|
/**
|
|
43559
43598
|
* Emitted whenever the cached status changes (firmware push OR
|
|
@@ -51455,7 +51494,7 @@ function groupTemplate(id) {
|
|
|
51455
51494
|
//#region src/generated/history-catalog.ts
|
|
51456
51495
|
/**
|
|
51457
51496
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
51458
|
-
* 47 caps with series (130 series),
|
|
51497
|
+
* 47 caps with series (130 series), 40 caps answered `'none'`.
|
|
51459
51498
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
51460
51499
|
*/
|
|
51461
51500
|
var HISTORY_CATALOG = {
|
|
@@ -52244,6 +52283,7 @@ var HISTORY_NONE_CAPS = [
|
|
|
52244
52283
|
"image-settings",
|
|
52245
52284
|
"intercom",
|
|
52246
52285
|
"ir-transmitter",
|
|
52286
|
+
"low-power-sleep",
|
|
52247
52287
|
"motion-trigger",
|
|
52248
52288
|
"motion-zones",
|
|
52249
52289
|
"native-object-detection",
|
|
@@ -69895,8 +69935,8 @@ var localNetworkCapability = {
|
|
|
69895
69935
|
* (workplace keypad locks, hospitality). The optional `code` field
|
|
69896
69936
|
* on the methods passes it through to the upstream service — the
|
|
69897
69937
|
* code is NEVER persisted in the runtime slice or any event payload.
|
|
69898
|
-
*
|
|
69899
|
-
* the
|
|
69938
|
+
* Whether a lock REQUIRES a code is the slice's `codeRequired` (#459):
|
|
69939
|
+
* `true` / `false` when the provider knows, `null` when it does not (D393).
|
|
69900
69940
|
*
|
|
69901
69941
|
* Locks that support a latch-release ("open door") action advertise
|
|
69902
69942
|
* `DeviceFeature.LockOpen`. The `open` method triggers the latch
|
|
@@ -69925,6 +69965,13 @@ var LockControlStatusSchema = zod.z.object({
|
|
|
69925
69965
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
69926
69966
|
* failure to reach the target — operator intervention required. */
|
|
69927
69967
|
state: LockStateSchema,
|
|
69968
|
+
/**
|
|
69969
|
+
* Whether lock / unlock need a PIN `code` (#459, replaces the
|
|
69970
|
+
* `lock-pin-required` device feature). `null` = the provider cannot tell
|
|
69971
|
+
* (D393) — never `false`. `.optional()` so a restored slice written before
|
|
69972
|
+
* the field still parses; readers treat absent exactly like `null`.
|
|
69973
|
+
*/
|
|
69974
|
+
codeRequired: zod.z.boolean().nullable().optional(),
|
|
69928
69975
|
/** Ms epoch when the slice was last updated. */
|
|
69929
69976
|
lastChangedAt: zod.z.number()
|
|
69930
69977
|
});
|
|
@@ -70455,6 +70502,92 @@ var loginMethodCapability = {
|
|
|
70455
70502
|
vocabulary: { notOperatorFacing: require_sleep.NOT_A_DEVICE.IDENTITY }
|
|
70456
70503
|
};
|
|
70457
70504
|
//#endregion
|
|
70505
|
+
//#region src/capabilities/low-power-sleep.cap.ts
|
|
70506
|
+
/**
|
|
70507
|
+
* low-power-sleep — a device that goes into low-power sleep and must be WOKEN
|
|
70508
|
+
* before it streams (#459, Q2). A battery camera (Reolink Argus, a robot's
|
|
70509
|
+
* on-board camera) is one; a battery SENSOR is not: it reports charge on the
|
|
70510
|
+
* `battery` cap and never sleeps. The two meanings used to share
|
|
70511
|
+
* `DeviceFeature.BatteryOperated`; this cap is the one that answers "sleeps",
|
|
70512
|
+
* and `DeviceFeature.Sleeps` is derived from it being bound with
|
|
70513
|
+
* `wakeUp` implemented.
|
|
70514
|
+
*
|
|
70515
|
+
* The state is the sleep inputs (`deriveBatteryPresence`): whether the device
|
|
70516
|
+
* is asleep, and the last time it PROVED it was reachable. Read from this slice
|
|
70517
|
+
* by the stream broker (`readBatterySleepFacts`), the recorder
|
|
70518
|
+
* (`recordingWakeDeps`) and the snapshot builtin. The broker's per-device
|
|
70519
|
+
* mirror is still also fed by `BatteryOnStatusChanged` events.
|
|
70520
|
+
*/
|
|
70521
|
+
var LowPowerSleepStatusSchema = zod.z.object({
|
|
70522
|
+
/**
|
|
70523
|
+
* True while the firmware is in low-power mode. A provider MUST avoid polling
|
|
70524
|
+
* during sleep — a read wakes the device and drains charge.
|
|
70525
|
+
*/
|
|
70526
|
+
sleeping: zod.z.boolean().meta({ label: "Sleeping" }),
|
|
70527
|
+
/**
|
|
70528
|
+
* Ms epoch of the last time the device proved it was reachable, from
|
|
70529
|
+
* PASSIVE signals only (a completed round-trip, an observed wake, a push).
|
|
70530
|
+
* Absent = never since this slice was born. The only input that separates
|
|
70531
|
+
* "asleep" from "gone".
|
|
70532
|
+
*/
|
|
70533
|
+
lastContactAt: zod.z.number().optional(),
|
|
70534
|
+
/** Ms epoch of the last observation. */
|
|
70535
|
+
lastUpdated: zod.z.number().meta(require_sleep.readingMeta("none"))
|
|
70536
|
+
});
|
|
70537
|
+
var lowPowerSleepCapability = {
|
|
70538
|
+
name: "low-power-sleep",
|
|
70539
|
+
scope: "device",
|
|
70540
|
+
deviceNative: true,
|
|
70541
|
+
mode: "singleton",
|
|
70542
|
+
deviceTypes: [require_composed_stable_id.DeviceType.Camera],
|
|
70543
|
+
methods: {
|
|
70544
|
+
/**
|
|
70545
|
+
* Explicitly wake the device from low-power sleep ahead of a streaming
|
|
70546
|
+
* session start. Consumers that initiate a stream against a sleeping
|
|
70547
|
+
* camera (wake-on-play, the recorder, HomeKit, Alexa, snapshot wrappers)
|
|
70548
|
+
* call this with a short timeout before establishing the media pipeline —
|
|
70549
|
+
* the broker's own passive wake-on-dial works but adds 5–7 seconds to
|
|
70550
|
+
* first-frame. Pre-waking compresses that gap.
|
|
70551
|
+
*
|
|
70552
|
+
* Returns `awoke: true` when the firmware acknowledged the wake before
|
|
70553
|
+
* `timeoutMs`, `awoke: false` when it timed out; the caller should still
|
|
70554
|
+
* attempt the stream — the passive broker wake remains as fallback.
|
|
70555
|
+
*/
|
|
70556
|
+
wakeUp: require_sleep.method(zod.z.object({
|
|
70557
|
+
deviceId: zod.z.number(),
|
|
70558
|
+
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
70559
|
+
timeoutMs: zod.z.number().int().min(500).max(3e4).default(8e3)
|
|
70560
|
+
}), zod.z.object({
|
|
70561
|
+
awoke: zod.z.boolean(),
|
|
70562
|
+
durationMs: zod.z.number()
|
|
70563
|
+
}), {
|
|
70564
|
+
kind: "mutation",
|
|
70565
|
+
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
70566
|
+
}) },
|
|
70567
|
+
status: {
|
|
70568
|
+
schema: LowPowerSleepStatusSchema,
|
|
70569
|
+
kind: "push",
|
|
70570
|
+
empty: {
|
|
70571
|
+
sleeping: false,
|
|
70572
|
+
lastUpdated: 0
|
|
70573
|
+
}
|
|
70574
|
+
},
|
|
70575
|
+
runtimeState: LowPowerSleepStatusSchema,
|
|
70576
|
+
/**
|
|
70577
|
+
* Runtime-state durability: **restored** — a sleeping camera may not report
|
|
70578
|
+
* for hours; the restored sleep inputs are the only thing the sleep gate and
|
|
70579
|
+
* the presence derivation have (the same argument as `battery`).
|
|
70580
|
+
*/
|
|
70581
|
+
durability: "restored",
|
|
70582
|
+
/** History (D850): none — battery never recorded a sleep series either. */
|
|
70583
|
+
history: "none",
|
|
70584
|
+
volatileStateFields: ["lastUpdated"],
|
|
70585
|
+
vocabulary: {
|
|
70586
|
+
noun: require_sleep.t("Low-power sleep", "Sospensione a basso consumo"),
|
|
70587
|
+
order: 5245
|
|
70588
|
+
}
|
|
70589
|
+
};
|
|
70590
|
+
//#endregion
|
|
70458
70591
|
//#region src/capabilities/mesh-network.cap.ts
|
|
70459
70592
|
/**
|
|
70460
70593
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -94354,6 +94487,44 @@ var remoteLayoutComponentsCapability = {
|
|
|
94354
94487
|
vocabulary: { notOperatorFacing: "the palette of the remote template editor — read-only data, never actuated" }
|
|
94355
94488
|
};
|
|
94356
94489
|
//#endregion
|
|
94490
|
+
//#region src/capabilities/resync.cap.ts
|
|
94491
|
+
/**
|
|
94492
|
+
* resync — a device whose derived spec can be re-aligned on demand with its
|
|
94493
|
+
* upstream source (#459, Q6). Registered by the containers an integration
|
|
94494
|
+
* adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
|
|
94495
|
+
* from it being bound with `resync` implemented.
|
|
94496
|
+
*
|
|
94497
|
+
* The work itself stays where it is: the owning addon's `device-adoption`
|
|
94498
|
+
* provider, reached through `deviceManager.adoptionResync` (which also owns
|
|
94499
|
+
* the "resync from zero" child purge). A provider answers this method by
|
|
94500
|
+
* asking for exactly that — see `resyncThroughAdoption`.
|
|
94501
|
+
*/
|
|
94502
|
+
var ResyncDeviceInputSchema = zod.z.object({
|
|
94503
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
94504
|
+
/** "Resync from zero": purge the accessory children before re-deriving. */
|
|
94505
|
+
resetToSource: zod.z.boolean().optional()
|
|
94506
|
+
});
|
|
94507
|
+
var resyncCapability = {
|
|
94508
|
+
name: "resync",
|
|
94509
|
+
scope: "device",
|
|
94510
|
+
deviceNative: true,
|
|
94511
|
+
mode: "singleton",
|
|
94512
|
+
deviceTypes: [
|
|
94513
|
+
require_composed_stable_id.DeviceType.Container,
|
|
94514
|
+
require_composed_stable_id.DeviceType.Workload,
|
|
94515
|
+
require_composed_stable_id.DeviceType.WeatherStation
|
|
94516
|
+
],
|
|
94517
|
+
methods: { resync: require_sleep.method(ResyncDeviceInputSchema, ResyncResultSchema, {
|
|
94518
|
+
kind: "mutation",
|
|
94519
|
+
auth: "admin",
|
|
94520
|
+
notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
|
|
94521
|
+
}) },
|
|
94522
|
+
vocabulary: {
|
|
94523
|
+
noun: require_sleep.t("Re-sync", "Risincronizzazione"),
|
|
94524
|
+
order: 3245
|
|
94525
|
+
}
|
|
94526
|
+
};
|
|
94527
|
+
//#endregion
|
|
94357
94528
|
//#region src/running-state/defaults.ts
|
|
94358
94529
|
var RUNNING_POWER_THRESHOLD_WATTS = 5;
|
|
94359
94530
|
/**
|
|
@@ -104209,6 +104380,7 @@ var CAPABILITY_NAMES = {
|
|
|
104209
104380
|
logChannels: "log-channels",
|
|
104210
104381
|
logDestination: "log-destination",
|
|
104211
104382
|
loginMethod: "login-method",
|
|
104383
|
+
lowPowerSleep: "low-power-sleep",
|
|
104212
104384
|
mediaPlayer: "media-player",
|
|
104213
104385
|
meshNetwork: "mesh-network",
|
|
104214
104386
|
meter: "meter",
|
|
@@ -104262,6 +104434,7 @@ var CAPABILITY_NAMES = {
|
|
|
104262
104434
|
records: "records",
|
|
104263
104435
|
remote: "remote",
|
|
104264
104436
|
remoteLayoutComponents: "remote-layout-components",
|
|
104437
|
+
resync: "resync",
|
|
104265
104438
|
runningState: "running-state",
|
|
104266
104439
|
sceneMonitor: "scene-monitor",
|
|
104267
104440
|
schedulers: "schedulers",
|
|
@@ -104747,6 +104920,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
104747
104920
|
key: "loginMethod",
|
|
104748
104921
|
name: "login-method"
|
|
104749
104922
|
},
|
|
104923
|
+
{
|
|
104924
|
+
key: "lowPowerSleep",
|
|
104925
|
+
name: "low-power-sleep"
|
|
104926
|
+
},
|
|
104750
104927
|
{
|
|
104751
104928
|
key: "mediaPlayer",
|
|
104752
104929
|
name: "media-player"
|
|
@@ -104959,6 +105136,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
104959
105136
|
key: "remoteLayoutComponents",
|
|
104960
105137
|
name: "remote-layout-components"
|
|
104961
105138
|
},
|
|
105139
|
+
{
|
|
105140
|
+
key: "resync",
|
|
105141
|
+
name: "resync"
|
|
105142
|
+
},
|
|
104962
105143
|
{
|
|
104963
105144
|
key: "runningState",
|
|
104964
105145
|
name: "running-state"
|
|
@@ -105278,6 +105459,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
105278
105459
|
logChannelsCapability,
|
|
105279
105460
|
logDestinationCapability,
|
|
105280
105461
|
loginMethodCapability,
|
|
105462
|
+
lowPowerSleepCapability,
|
|
105281
105463
|
mediaPlayerCapability,
|
|
105282
105464
|
meshNetworkCapability,
|
|
105283
105465
|
meterCapability,
|
|
@@ -105331,6 +105513,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
105331
105513
|
recordsCapability,
|
|
105332
105514
|
remoteCapability,
|
|
105333
105515
|
remoteLayoutComponentsCapability,
|
|
105516
|
+
resyncCapability,
|
|
105334
105517
|
runningStateCapability,
|
|
105335
105518
|
sceneMonitorCapability,
|
|
105336
105519
|
schedulersCapability,
|
|
@@ -113470,6 +113653,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
113470
113653
|
irTransmitter: irTransmitterCapability,
|
|
113471
113654
|
lawnMowerControl: lawnMowerControlCapability,
|
|
113472
113655
|
lockControl: lockControlCapability,
|
|
113656
|
+
lowPowerSleep: lowPowerSleepCapability,
|
|
113473
113657
|
mediaPlayer: mediaPlayerCapability,
|
|
113474
113658
|
meter: meterCapability,
|
|
113475
113659
|
motion: motionCapability,
|
|
@@ -115020,6 +115204,50 @@ function isBatteryPresenceFault(presence) {
|
|
|
115020
115204
|
return presence === "unreachable";
|
|
115021
115205
|
}
|
|
115022
115206
|
//#endregion
|
|
115207
|
+
//#region src/device/low-power-sleep.ts
|
|
115208
|
+
/**
|
|
115209
|
+
* Does this device SLEEP and need waking before it streams (#459, Q2)?
|
|
115210
|
+
*
|
|
115211
|
+
* The one predicate every data-plane consumer asks (prebuffer, wake-on-play,
|
|
115212
|
+
* the recorder, sentry, the snapshot wrapper, the detection profile). It reads
|
|
115213
|
+
* `DeviceFeature.Sleeps`, derived from the `low-power-sleep` cap — never
|
|
115214
|
+
* `DeviceFeature.BatteryOperated`, which only says the device reports a
|
|
115215
|
+
* battery: a battery sensor reports charge and never sleeps.
|
|
115216
|
+
*/
|
|
115217
|
+
function deviceSleeps(features) {
|
|
115218
|
+
return features.includes(require_composed_stable_id.DeviceFeature.Sleeps);
|
|
115219
|
+
}
|
|
115220
|
+
/**
|
|
115221
|
+
* The `low-power-sleep` slice a provider projects from the `battery` slice it
|
|
115222
|
+
* already keeps: the sleep inputs, nothing else. One fact, one writer — the
|
|
115223
|
+
* provider's battery bookkeeping stays the source until the sleep state gets
|
|
115224
|
+
* its own writer.
|
|
115225
|
+
*/
|
|
115226
|
+
function sleepSliceOfBattery(status) {
|
|
115227
|
+
return {
|
|
115228
|
+
sleeping: status.sleeping,
|
|
115229
|
+
...status.lastContactAt !== void 0 ? { lastContactAt: status.lastContactAt } : {},
|
|
115230
|
+
lastUpdated: status.lastUpdated
|
|
115231
|
+
};
|
|
115232
|
+
}
|
|
115233
|
+
//#endregion
|
|
115234
|
+
//#region src/device/resync-through-adoption.ts
|
|
115235
|
+
/**
|
|
115236
|
+
* The `resync` provider of an adopted container (#459, Q6): the work is the
|
|
115237
|
+
* owning addon's `device-adoption.resync`, reached through
|
|
115238
|
+
* `deviceManager.adoptionResync`, which also owns the "resync from zero" child
|
|
115239
|
+
* purge. Registering this is what makes `DeviceFeature.Resyncable` true.
|
|
115240
|
+
*/
|
|
115241
|
+
function resyncThroughAdoption(deviceManager, ownDeviceId) {
|
|
115242
|
+
return { resync: async ({ deviceId, resetToSource }) => {
|
|
115243
|
+
if (deviceId !== ownDeviceId) throw new Error(`resync: deviceId mismatch, expected ${ownDeviceId}, got ${deviceId}`);
|
|
115244
|
+
return deviceManager.adoptionResync.mutate({
|
|
115245
|
+
camDeviceId: deviceId,
|
|
115246
|
+
...resetToSource !== void 0 ? { resetToSource } : {}
|
|
115247
|
+
});
|
|
115248
|
+
} };
|
|
115249
|
+
}
|
|
115250
|
+
//#endregion
|
|
115023
115251
|
//#region src/device/container-primary-child.ts
|
|
115024
115252
|
/**
|
|
115025
115253
|
* WHICH child a container stands for — one definition, for every consumer.
|
|
@@ -115845,8 +116073,8 @@ var ALARM_MODES = [
|
|
|
115845
116073
|
"vacation",
|
|
115846
116074
|
"custom_bypass"
|
|
115847
116075
|
];
|
|
115848
|
-
function alarmControls(state, modes,
|
|
115849
|
-
if (
|
|
116076
|
+
function alarmControls(state, modes, codeRequired) {
|
|
116077
|
+
if (codeRequired) return [];
|
|
115850
116078
|
const disarm = asAction(action("alarm.disarm", require_sleep.t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
|
|
115851
116079
|
const arm = (primaryFirst) => modes.map((mode, i) => asAction(action(`alarm.arm.${mode}`, ARM_LABELS[mode], "shield-check", "alarm-panel", "arm", { mode }, primaryFirst && i === 0 ? "primary" : "normal")));
|
|
115852
116080
|
switch (state) {
|
|
@@ -115866,7 +116094,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
115866
116094
|
const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
|
|
115867
116095
|
return {
|
|
115868
116096
|
reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
|
|
115869
|
-
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.
|
|
116097
|
+
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.codeRequired !== false))],
|
|
115870
116098
|
...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
|
|
115871
116099
|
...words === null ? {} : { tiles: {
|
|
115872
116100
|
left: [{
|
|
@@ -120728,13 +120956,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
120728
120956
|
access: "view",
|
|
120729
120957
|
role: "viewer"
|
|
120730
120958
|
},
|
|
120731
|
-
"battery.wakeForStream": {
|
|
120732
|
-
capName: "battery",
|
|
120733
|
-
capScope: "device",
|
|
120734
|
-
addonId: null,
|
|
120735
|
-
access: "create",
|
|
120736
|
-
role: "viewer"
|
|
120737
|
-
},
|
|
120738
120959
|
"binary.getStatus": {
|
|
120739
120960
|
capName: "binary",
|
|
120740
120961
|
capScope: "device",
|
|
@@ -124389,6 +124610,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
124389
124610
|
access: "view",
|
|
124390
124611
|
role: "admin"
|
|
124391
124612
|
},
|
|
124613
|
+
"lowPowerSleep.getStatus": {
|
|
124614
|
+
capName: "low-power-sleep",
|
|
124615
|
+
capScope: "device",
|
|
124616
|
+
addonId: null,
|
|
124617
|
+
access: "view",
|
|
124618
|
+
role: "viewer"
|
|
124619
|
+
},
|
|
124620
|
+
"lowPowerSleep.wakeUp": {
|
|
124621
|
+
capName: "low-power-sleep",
|
|
124622
|
+
capScope: "device",
|
|
124623
|
+
addonId: null,
|
|
124624
|
+
access: "create",
|
|
124625
|
+
role: "viewer"
|
|
124626
|
+
},
|
|
124392
124627
|
"mediaPlayer.channelDown": {
|
|
124393
124628
|
capName: "media-player",
|
|
124394
124629
|
capScope: "device",
|
|
@@ -128064,6 +128299,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
128064
128299
|
access: "view",
|
|
128065
128300
|
role: "admin"
|
|
128066
128301
|
},
|
|
128302
|
+
"resync.resync": {
|
|
128303
|
+
capName: "resync",
|
|
128304
|
+
capScope: "device",
|
|
128305
|
+
addonId: null,
|
|
128306
|
+
access: "create",
|
|
128307
|
+
role: "admin"
|
|
128308
|
+
},
|
|
128067
128309
|
"runningState.getStatus": {
|
|
128068
128310
|
capName: "running-state",
|
|
128069
128311
|
capScope: "device",
|
|
@@ -130569,6 +130811,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
130569
130811
|
"log-channels",
|
|
130570
130812
|
"log-destination",
|
|
130571
130813
|
"login-method",
|
|
130814
|
+
"low-power-sleep",
|
|
130572
130815
|
"media-player",
|
|
130573
130816
|
"mesh-network",
|
|
130574
130817
|
"meter",
|
|
@@ -130622,6 +130865,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
130622
130865
|
"records",
|
|
130623
130866
|
"remote",
|
|
130624
130867
|
"remote-layout-components",
|
|
130868
|
+
"resync",
|
|
130625
130869
|
"running-state",
|
|
130626
130870
|
"scene-monitor",
|
|
130627
130871
|
"schedulers",
|
|
@@ -130731,6 +130975,7 @@ var DEVICE_CAP_NAMES = [
|
|
|
130731
130975
|
"ir-transmitter",
|
|
130732
130976
|
"lawn-mower-control",
|
|
130733
130977
|
"lock-control",
|
|
130978
|
+
"low-power-sleep",
|
|
130734
130979
|
"media-player",
|
|
130735
130980
|
"meter",
|
|
130736
130981
|
"motion",
|
|
@@ -130758,6 +131003,7 @@ var DEVICE_CAP_NAMES = [
|
|
|
130758
131003
|
"recording",
|
|
130759
131004
|
"recording-onboard",
|
|
130760
131005
|
"recording-signal",
|
|
131006
|
+
"resync",
|
|
130761
131007
|
"running-state",
|
|
130762
131008
|
"scene-monitor",
|
|
130763
131009
|
"script-runner",
|
|
@@ -131202,7 +131448,7 @@ function deviceMatchesProfile(features, profile) {
|
|
|
131202
131448
|
var BATTERY_DEVICE_PROFILE = {
|
|
131203
131449
|
id: "battery",
|
|
131204
131450
|
label: "Battery-operated camera",
|
|
131205
|
-
when: { hasFeature: require_composed_stable_id.DeviceFeature.
|
|
131451
|
+
when: { hasFeature: require_composed_stable_id.DeviceFeature.Sleeps },
|
|
131206
131452
|
defaults: {
|
|
131207
131453
|
audioMode: "disabled",
|
|
131208
131454
|
detectionMode: "on-motion"
|
|
@@ -131241,13 +131487,13 @@ function reported(reason) {
|
|
|
131241
131487
|
reason
|
|
131242
131488
|
};
|
|
131243
131489
|
}
|
|
131244
|
-
var SLEEP_PENDING = "splits into a sleeping cap in a later phase of #459";
|
|
131245
131490
|
var CAP_PENDING = "becomes a cap or is dropped in a later phase of #459";
|
|
131246
131491
|
/** Exhaustive: a new `DeviceFeature` without a row does not compile. */
|
|
131247
131492
|
var DEVICE_FEATURE_REQUIREMENTS = {
|
|
131248
|
-
[require_composed_stable_id.DeviceFeature.BatteryOperated]:
|
|
131493
|
+
[require_composed_stable_id.DeviceFeature.BatteryOperated]: bound("battery"),
|
|
131494
|
+
[require_composed_stable_id.DeviceFeature.Sleeps]: derived("low-power-sleep", ["wakeUp"]),
|
|
131249
131495
|
[require_composed_stable_id.DeviceFeature.Rebootable]: derived("reboot", ["reboot"]),
|
|
131250
|
-
[require_composed_stable_id.DeviceFeature.Resyncable]:
|
|
131496
|
+
[require_composed_stable_id.DeviceFeature.Resyncable]: derived("resync", ["resync"]),
|
|
131251
131497
|
[require_composed_stable_id.DeviceFeature.NativeSnapshot]: reported(CAP_PENDING),
|
|
131252
131498
|
[require_composed_stable_id.DeviceFeature.DoorbellButton]: derived("doorbell"),
|
|
131253
131499
|
[require_composed_stable_id.DeviceFeature.TwoWayAudio]: derived("intercom", [
|
|
@@ -131277,7 +131523,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
131277
131523
|
[require_composed_stable_id.DeviceFeature.FanPreset]: bound("fan-control", ["setPreset"]),
|
|
131278
131524
|
[require_composed_stable_id.DeviceFeature.FanDirection]: bound("fan-control", ["setDirection"]),
|
|
131279
131525
|
[require_composed_stable_id.DeviceFeature.FanOscillating]: bound("fan-control", ["setOscillating"]),
|
|
131280
|
-
[require_composed_stable_id.DeviceFeature.LockPinRequired]: reported(CAP_PENDING),
|
|
131281
131526
|
[require_composed_stable_id.DeviceFeature.LockOpen]: bound("lock-control", ["open"]),
|
|
131282
131527
|
[require_composed_stable_id.DeviceFeature.MediaPlayerSeek]: bound("media-player", ["seek"]),
|
|
131283
131528
|
[require_composed_stable_id.DeviceFeature.MediaPlayerVolume]: bound("media-player", ["setVolume"]),
|
|
@@ -131292,7 +131537,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
131292
131537
|
[require_composed_stable_id.DeviceFeature.MediaPlayerVolumeStep]: bound("media-player", ["volumeUp", "volumeDown"]),
|
|
131293
131538
|
[require_composed_stable_id.DeviceFeature.MediaPlayerChannelStep]: bound("media-player", ["channelUp", "channelDown"]),
|
|
131294
131539
|
[require_composed_stable_id.DeviceFeature.MediaPlayerPower]: bound("media-player", ["turnOn", "turnOff"]),
|
|
131295
|
-
[require_composed_stable_id.DeviceFeature.AlarmPinRequired]: reported(CAP_PENDING),
|
|
131296
131540
|
[require_composed_stable_id.DeviceFeature.PresenceGps]: reported(CAP_PENDING),
|
|
131297
131541
|
[require_composed_stable_id.DeviceFeature.NotifierImage]: reported(CAP_PENDING),
|
|
131298
131542
|
[require_composed_stable_id.DeviceFeature.NotifierPriority]: reported(CAP_PENDING),
|
|
@@ -131301,9 +131545,7 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
131301
131545
|
[require_composed_stable_id.DeviceFeature.NotifierRecipients]: reported(CAP_PENDING),
|
|
131302
131546
|
[require_composed_stable_id.DeviceFeature.ScriptVariables]: reported(CAP_PENDING),
|
|
131303
131547
|
[require_composed_stable_id.DeviceFeature.AutomationSkipCondition]: reported(CAP_PENDING),
|
|
131304
|
-
[require_composed_stable_id.DeviceFeature.VacuumHasMap]: reported(CAP_PENDING),
|
|
131305
131548
|
[require_composed_stable_id.DeviceFeature.VacuumHasAi]: reported(CAP_PENDING),
|
|
131306
|
-
[require_composed_stable_id.DeviceFeature.MowerHasMap]: reported(CAP_PENDING),
|
|
131307
131549
|
[require_composed_stable_id.DeviceFeature.MowerHasTargetedMowing]: reported(CAP_PENDING),
|
|
131308
131550
|
[require_composed_stable_id.DeviceFeature.Navigation]: derived("navigation"),
|
|
131309
131551
|
[require_composed_stable_id.DeviceFeature.NetworkLink]: derived("network-link")
|
|
@@ -132905,6 +133147,7 @@ var CAP_NAMES_WITH_STATUS = [
|
|
|
132905
133147
|
"intercom",
|
|
132906
133148
|
"lawn-mower-control",
|
|
132907
133149
|
"lock-control",
|
|
133150
|
+
"low-power-sleep",
|
|
132908
133151
|
"media-player",
|
|
132909
133152
|
"meter",
|
|
132910
133153
|
"motion",
|
|
@@ -133101,11 +133344,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
133101
133344
|
form: "single",
|
|
133102
133345
|
optional: false
|
|
133103
133346
|
}],
|
|
133104
|
-
"battery.wakeForStream": [{
|
|
133105
|
-
name: "deviceId",
|
|
133106
|
-
form: "single",
|
|
133107
|
-
optional: false
|
|
133108
|
-
}],
|
|
133109
133347
|
"binary.getStatus": [{
|
|
133110
133348
|
name: "deviceId",
|
|
133111
133349
|
form: "single",
|
|
@@ -134289,6 +134527,16 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
134289
134527
|
form: "single",
|
|
134290
134528
|
optional: true
|
|
134291
134529
|
}],
|
|
134530
|
+
"lowPowerSleep.getStatus": [{
|
|
134531
|
+
name: "deviceId",
|
|
134532
|
+
form: "single",
|
|
134533
|
+
optional: false
|
|
134534
|
+
}],
|
|
134535
|
+
"lowPowerSleep.wakeUp": [{
|
|
134536
|
+
name: "deviceId",
|
|
134537
|
+
form: "single",
|
|
134538
|
+
optional: false
|
|
134539
|
+
}],
|
|
134292
134540
|
"mediaPlayer.channelDown": [{
|
|
134293
134541
|
name: "deviceId",
|
|
134294
134542
|
form: "single",
|
|
@@ -135574,6 +135822,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
135574
135822
|
form: "single",
|
|
135575
135823
|
optional: false
|
|
135576
135824
|
}],
|
|
135825
|
+
"resync.resync": [{
|
|
135826
|
+
name: "deviceId",
|
|
135827
|
+
form: "single",
|
|
135828
|
+
optional: false
|
|
135829
|
+
}],
|
|
135577
135830
|
"runningState.getStatus": [{
|
|
135578
135831
|
name: "deviceId",
|
|
135579
135832
|
form: "single",
|
|
@@ -136426,7 +136679,7 @@ function getCapsByProviderKind(kind) {
|
|
|
136426
136679
|
//#region src/generated/runtime-state-durability.ts
|
|
136427
136680
|
/**
|
|
136428
136681
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
136429
|
-
* `runtimeState`.
|
|
136682
|
+
* `runtimeState`. 88 caps: 44 `restored`, 44 `session`.
|
|
136430
136683
|
*
|
|
136431
136684
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
136432
136685
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -136438,7 +136691,8 @@ var RUNTIME_STATE_POLICY = {
|
|
|
136438
136691
|
},
|
|
136439
136692
|
"alarm-panel": {
|
|
136440
136693
|
durability: "restored",
|
|
136441
|
-
volatileFields: ["lastChangedAt"]
|
|
136694
|
+
volatileFields: ["lastChangedAt"],
|
|
136695
|
+
renamedFields: { requiresCode: "codeRequired" }
|
|
136442
136696
|
},
|
|
136443
136697
|
"ambient-light-sensor": {
|
|
136444
136698
|
durability: "restored",
|
|
@@ -136605,6 +136859,10 @@ var RUNTIME_STATE_POLICY = {
|
|
|
136605
136859
|
durability: "restored",
|
|
136606
136860
|
volatileFields: ["lastChangedAt"]
|
|
136607
136861
|
},
|
|
136862
|
+
"low-power-sleep": {
|
|
136863
|
+
durability: "restored",
|
|
136864
|
+
volatileFields: ["lastUpdated"]
|
|
136865
|
+
},
|
|
136608
136866
|
"media-player": {
|
|
136609
136867
|
durability: "session",
|
|
136610
136868
|
volatileFields: []
|
|
@@ -136826,6 +137084,7 @@ var RESTORED_CAP_NAMES = [
|
|
|
136826
137084
|
"image-settings",
|
|
136827
137085
|
"ir-transmitter",
|
|
136828
137086
|
"lock-control",
|
|
137087
|
+
"low-power-sleep",
|
|
136829
137088
|
"meter",
|
|
136830
137089
|
"motion-zones",
|
|
136831
137090
|
"native-object-detection",
|
|
@@ -150624,6 +150883,14 @@ exports.AlertSourceSchema = AlertSourceSchema;
|
|
|
150624
150883
|
exports.AlertStatusSchema = AlertStatusSchema;
|
|
150625
150884
|
exports.AmbientLightSensorStatusSchema = AmbientLightSensorStatusSchema;
|
|
150626
150885
|
exports.AnalyticsLtsSeriesSchema = AnalyticsLtsSeriesSchema;
|
|
150886
|
+
exports.ApiCallableSchema = ApiCallableSchema;
|
|
150887
|
+
exports.ApiCatalogEntrySchema = ApiCatalogEntrySchema;
|
|
150888
|
+
exports.ApiCatalogInputSchemaOutputSchema = ApiCatalogInputSchemaOutputSchema;
|
|
150889
|
+
exports.ApiCatalogListOutputSchema = ApiCatalogListOutputSchema;
|
|
150890
|
+
exports.ApiCatalogMethodSchema = ApiCatalogMethodSchema;
|
|
150891
|
+
exports.ApiCatalogScopeSchema = ApiCatalogScopeSchema;
|
|
150892
|
+
exports.ApiProcedureKindSchema = ApiProcedureKindSchema;
|
|
150893
|
+
exports.ApiProcedureTierSchema = ApiProcedureTierSchema;
|
|
150627
150894
|
exports.AppFlowPurposeSchema = AppFlowPurposeSchema;
|
|
150628
150895
|
exports.AppLoginPathSchema = AppLoginPathSchema;
|
|
150629
150896
|
exports.AppPageLangSchema = AppPageLangSchema;
|
|
@@ -151653,6 +151920,7 @@ exports.IrTransmitterAttemptSchema = IrTransmitterAttemptSchema;
|
|
|
151653
151920
|
exports.IrTransmitterInfoSchema = IrTransmitterInfoSchema;
|
|
151654
151921
|
exports.IrTransmitterRuntimeStateSchema = IrTransmitterRuntimeStateSchema;
|
|
151655
151922
|
exports.IrTransmitterSendRecordSchema = IrTransmitterSendRecordSchema;
|
|
151923
|
+
exports.JsonSchemaDocumentSchema = JsonSchemaDocumentSchema;
|
|
151656
151924
|
exports.KEYCHAIN_MAX_REFS_PER_CALL = KEYCHAIN_MAX_REFS_PER_CALL;
|
|
151657
151925
|
exports.KEYCHAIN_RESET_CONFIRMATION = KEYCHAIN_RESET_CONFIRMATION;
|
|
151658
151926
|
exports.KEYCHAIN_RESET_TRIGGER_ACTOR = KEYCHAIN_RESET_TRIGGER_ACTOR;
|
|
@@ -151778,6 +152046,7 @@ exports.LoggingSettingsPatchSchema = LoggingSettingsPatchSchema;
|
|
|
151778
152046
|
exports.LoggingSettingsStateSchema = LoggingSettingsStateSchema;
|
|
151779
152047
|
exports.LoginMethodContributionSchema = LoginMethodContributionSchema;
|
|
151780
152048
|
exports.LoginStageEnum = LoginStageEnum;
|
|
152049
|
+
exports.LowPowerSleepStatusSchema = LowPowerSleepStatusSchema;
|
|
151781
152050
|
exports.LtsBucketSchema = LtsBucketSchema;
|
|
151782
152051
|
exports.MACRO_LABELS = MACRO_LABELS;
|
|
151783
152052
|
exports.MASK_EMITTING_POSTPROCESSORS = MASK_EMITTING_POSTPROCESSORS;
|
|
@@ -152620,6 +152889,7 @@ exports.RequestCensusProcedureSchema = RequestCensusProcedureSchema;
|
|
|
152620
152889
|
exports.RequestCensusSnapshotSchema = RequestCensusSnapshotSchema;
|
|
152621
152890
|
exports.RequestCensusStatusSchema = RequestCensusStatusSchema;
|
|
152622
152891
|
exports.RequiredAddonUpdateSchema = RequiredAddonUpdateSchema;
|
|
152892
|
+
exports.ResyncDeviceInputSchema = ResyncDeviceInputSchema;
|
|
152623
152893
|
exports.RetrainAnnotationDraftSchema = RetrainAnnotationDraftSchema;
|
|
152624
152894
|
exports.RetrainAnnotationKindSchema = RetrainAnnotationKindSchema;
|
|
152625
152895
|
exports.RetrainAnnotationSchema = RetrainAnnotationSchema;
|
|
@@ -153618,6 +153888,7 @@ exports.deviceRemovalHookCapability = deviceRemovalHookCapability;
|
|
|
153618
153888
|
exports.deviceRoleIconKey = deviceRoleIconKey;
|
|
153619
153889
|
exports.deviceRunsCapability = deviceRunsCapability;
|
|
153620
153890
|
exports.deviceSelectorMatches = deviceSelectorMatches;
|
|
153891
|
+
exports.deviceSleeps = deviceSleeps;
|
|
153621
153892
|
exports.deviceStateCapability = deviceStateCapability;
|
|
153622
153893
|
exports.deviceStatusCapability = deviceStatusCapability;
|
|
153623
153894
|
exports.deviceTemplateCallableBounds = require_device_template_catalogue.deviceTemplateCallableBounds;
|
|
@@ -154039,6 +154310,7 @@ exports.logDestinationCapability = logDestinationCapability;
|
|
|
154039
154310
|
exports.logLevelAtMost = logLevelAtMost;
|
|
154040
154311
|
exports.loginMethodCapability = loginMethodCapability;
|
|
154041
154312
|
exports.looseSchema = looseSchema;
|
|
154313
|
+
exports.lowPowerSleepCapability = lowPowerSleepCapability;
|
|
154042
154314
|
exports.makeInMemoryRecords = require_sleep.makeInMemoryRecords;
|
|
154043
154315
|
exports.makeProfileBrokerId = require_sleep.makeProfileBrokerId;
|
|
154044
154316
|
exports.makeSecretMarker = require_sleep.makeSecretMarker;
|
|
@@ -154430,6 +154702,8 @@ exports.resolveViewableDeviceIds = resolveViewableDeviceIds;
|
|
|
154430
154702
|
exports.resolvedValues = require_sleep.resolvedValues;
|
|
154431
154703
|
exports.resultCellKey = resultCellKey;
|
|
154432
154704
|
exports.resultStandings = resultStandings;
|
|
154705
|
+
exports.resyncCapability = resyncCapability;
|
|
154706
|
+
exports.resyncThroughAdoption = resyncThroughAdoption;
|
|
154433
154707
|
exports.retiredTargetsOver = retiredTargetsOver;
|
|
154434
154708
|
exports.retrainBoxIou = retrainBoxIou;
|
|
154435
154709
|
exports.retrainRevisionConflictMessage = retrainRevisionConflictMessage;
|
|
@@ -154551,6 +154825,7 @@ exports.siteZoneKey = siteZoneKey;
|
|
|
154551
154825
|
exports.skipSignature = skipSignature;
|
|
154552
154826
|
exports.sleep = require_sleep.sleep;
|
|
154553
154827
|
exports.sleepCancellable = require_sleep.sleepCancellable;
|
|
154828
|
+
exports.sleepSliceOfBattery = sleepSliceOfBattery;
|
|
154554
154829
|
exports.sliceActiveValue = require_implemented_methods.sliceActiveValue;
|
|
154555
154830
|
exports.sliceCapOf = sliceCapOf;
|
|
154556
154831
|
exports.sliceChangedAt = require_implemented_methods.sliceChangedAt;
|