@camstack/addon-pipeline-orchestrator 1.2.697 → 1.2.699
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 +12 -0
- package/assets/viewer/.viewer-current-files.json +2 -2
- package/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/{__common-d05d309dfc1da7aa67be4811345c637a.js → __common-a6bde3683e394fb2ae1d1f3863a6eb7d.js} +1808 -1808
- package/assets/viewer/_expo/static/js/web/{index-b6e43ad70bba4755703ae796dd342145.js → index-ee0bf28c465ece9931c68b6ab152ed6d.js} +2 -2
- package/assets/viewer/index.html +1 -1
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Dmr2FtiT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-c8s_uO5h.mjs} +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BBKuY-ao.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BNU5yzDq.mjs +26 -0
- package/dist/{hostInit-C-CrLIdU.mjs → hostInit-DwQByiWN.mjs} +2 -2
- package/dist/index.js +296 -60
- package/dist/index.mjs +296 -60
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/assets/viewer/_expo/static/js/web/Clipboard-f8d33827722c67231c0f3e943187b860.js +0 -8
- package/assets/viewer/_expo/static/js/web/Haptics-c5244c1dcf8c7205b3f29f9dedcea737.js +0 -3
- package/assets/viewer/_expo/static/js/web/[id]-2936f0ceb519c608356d6bb0aa38bff0.js +0 -5
- package/assets/viewer/_expo/static/js/web/[id]-a07763130008d6afb9c87339076f0a85.js +0 -7
- package/assets/viewer/_expo/static/js/web/[section]-ba0034177f07b5b63dd9a31904a00712.js +0 -28
- package/assets/viewer/_expo/static/js/web/_layout-581a52978fa1311503776af0c14687cc.js +0 -24
- package/assets/viewer/_expo/static/js/web/add-server-e45cff3a08d70f0a2a2cec6141c77b54.js +0 -2
- package/assets/viewer/_expo/static/js/web/alarm-4b509936b3ecd963968f48a93501cd82.js +0 -1
- package/assets/viewer/_expo/static/js/web/cameras-51bf05da16e2313259dc7792791cdd4c.js +0 -27
- package/assets/viewer/_expo/static/js/web/connect-327d2b5dd190f3128536d70c2e53771e.js +0 -2
- package/assets/viewer/_expo/static/js/web/enroll-9950c0edd504ce2a7ad944606133b3fe.js +0 -19
- package/assets/viewer/_expo/static/js/web/index-0704c474cc350bebc53d2cc44926172b.js +0 -2
- package/assets/viewer/_expo/static/js/web/index-207cbd4982c7bc23aee652901fd9aea3.js +0 -4
- package/assets/viewer/_expo/static/js/web/index-584c99c3ea5809b9510c2a059b797620.js +0 -1
- package/assets/viewer/_expo/static/js/web/new-d1471125dcc9908db257df81230fc3b6.js +0 -2
- package/assets/viewer/_expo/static/js/web/settings-2f4222e958cff063de7f51df1363324f.js +0 -23
- package/assets/viewer/_expo/static/js/web/sign-in-2f0e3d85d47993564bd6f37f66ce6781.js +0 -38
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DMRY0wfC.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-C-4CsZgC.mjs +0 -26
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/types": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.590",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -99,7 +99,7 @@ async function r() {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"@camstack/ui-library": {
|
|
102
|
-
version: "1.2.
|
|
102
|
+
version: "1.2.467",
|
|
103
103
|
scope: "default",
|
|
104
104
|
shareConfig: {
|
|
105
105
|
singleton: !0,
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ node_fs = __toESM(node_fs);
|
|
|
30
30
|
let node_path = require("node:path");
|
|
31
31
|
node_path = __toESM(node_path);
|
|
32
32
|
let node_url = require("node:url");
|
|
33
|
-
//#region ../types/dist/event-category-
|
|
33
|
+
//#region ../types/dist/event-category-CY27-fF0.mjs
|
|
34
34
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
35
35
|
EventCategory["SystemBoot"] = "system.boot";
|
|
36
36
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -530,7 +530,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
530
530
|
*/
|
|
531
531
|
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
532
532
|
/**
|
|
533
|
-
* Emitted by the battery cap provider WHEN `
|
|
533
|
+
* Emitted by the battery cap provider WHEN `wakeUp` enters the
|
|
534
534
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
535
535
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
536
536
|
* manager subscribes to flip the per-broker placeholder reason to
|
|
@@ -862,7 +862,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
862
862
|
return EventCategory;
|
|
863
863
|
}({});
|
|
864
864
|
//#endregion
|
|
865
|
-
//#region ../types/dist/composed-stable-id-
|
|
865
|
+
//#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
|
|
866
866
|
/**
|
|
867
867
|
import { errMsg } from '@camstack/types'
|
|
868
868
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -1001,12 +1001,19 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
1001
1001
|
return DeviceType;
|
|
1002
1002
|
}({});
|
|
1003
1003
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
1004
|
+
/** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
|
|
1004
1005
|
DeviceFeature["BatteryOperated"] = "battery-operated";
|
|
1006
|
+
/**
|
|
1007
|
+
* The device goes into low-power sleep and must be WOKEN before it streams
|
|
1008
|
+
* (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
|
|
1009
|
+
* not this: a battery sensor reports charge and never sleeps (#459, Q2).
|
|
1010
|
+
*/
|
|
1011
|
+
DeviceFeature["Sleeps"] = "sleeps";
|
|
1005
1012
|
DeviceFeature["Rebootable"] = "rebootable";
|
|
1006
1013
|
/**
|
|
1007
1014
|
* Device supports an on-demand re-sync of its derived spec with its
|
|
1008
|
-
* upstream source — drives the generic Re-sync button.
|
|
1009
|
-
*
|
|
1015
|
+
* upstream source — drives the generic Re-sync button. Present when the
|
|
1016
|
+
* device has the `resync` cap bound (#459, Q6).
|
|
1010
1017
|
*/
|
|
1011
1018
|
DeviceFeature["Resyncable"] = "resyncable";
|
|
1012
1019
|
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
@@ -1090,9 +1097,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1090
1097
|
DeviceFeature["FanDirection"] = "fan-direction";
|
|
1091
1098
|
/** Fan exposes an oscillation toggle. */
|
|
1092
1099
|
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
1093
|
-
/** Lock requires a PIN code on lock/unlock. Gates the code-entry
|
|
1094
|
-
* field on the UI lock-controls panel. */
|
|
1095
|
-
DeviceFeature["LockPinRequired"] = "lock-pin-required";
|
|
1096
1100
|
/** Lock supports a latch-release ("open door") action distinct from
|
|
1097
1101
|
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
1098
1102
|
* `supported_features`. Gates the Open Door button in the UI. */
|
|
@@ -1123,8 +1127,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1123
1127
|
DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
|
|
1124
1128
|
/** Media player exposes power on / off. */
|
|
1125
1129
|
DeviceFeature["MediaPlayerPower"] = "media-player-power";
|
|
1126
|
-
/** Alarm panel requires a PIN code on arm/disarm. */
|
|
1127
|
-
DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
|
|
1128
1130
|
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
1129
1131
|
* addition to a textual location. */
|
|
1130
1132
|
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
@@ -1144,15 +1146,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1144
1146
|
/** Automation `trigger` accepts a skipCondition flag — fires the
|
|
1145
1147
|
* automation's actions while bypassing its condition block. */
|
|
1146
1148
|
DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
|
|
1147
|
-
/** Robot vacuum exposes a live cleaning map (image child). Gates the
|
|
1148
|
-
* map tile in the vacuum UI. */
|
|
1149
|
-
DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
|
|
1150
1149
|
/** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
|
|
1151
1150
|
* switches group. */
|
|
1152
1151
|
DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
|
|
1153
|
-
/** Robot mower exposes a live mowing map (SVG image child). Gates the
|
|
1154
|
-
* mower map tile. */
|
|
1155
|
-
DeviceFeature["MowerHasMap"] = "mower-has-map";
|
|
1156
1152
|
/** Robot mower exposes targeted mowing (all-area / zones / edges /
|
|
1157
1153
|
* spots) — gates the Mow action + map selectors. */
|
|
1158
1154
|
DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
|
|
@@ -6140,7 +6136,7 @@ var ZodIssueCode = {
|
|
|
6140
6136
|
var ZodFirstPartyTypeKind;
|
|
6141
6137
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6142
6138
|
//#endregion
|
|
6143
|
-
//#region ../types/dist/sleep-
|
|
6139
|
+
//#region ../types/dist/sleep-BT1bLgPq.mjs
|
|
6144
6140
|
/**
|
|
6145
6141
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6146
6142
|
* window to float samples (D455).
|
|
@@ -17452,6 +17448,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
17452
17448
|
icon: "refresh-cw"
|
|
17453
17449
|
}]
|
|
17454
17450
|
},
|
|
17451
|
+
"resync": {
|
|
17452
|
+
scope: "device",
|
|
17453
|
+
noun: {
|
|
17454
|
+
en: "Re-sync",
|
|
17455
|
+
it: "Risincronizzazione"
|
|
17456
|
+
},
|
|
17457
|
+
notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
|
|
17458
|
+
},
|
|
17455
17459
|
"recording": {
|
|
17456
17460
|
scope: "device",
|
|
17457
17461
|
noun: {
|
|
@@ -19463,7 +19467,6 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
19463
19467
|
en: "Battery",
|
|
19464
19468
|
it: "Batteria"
|
|
19465
19469
|
},
|
|
19466
|
-
notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
|
|
19467
19470
|
state: [
|
|
19468
19471
|
{
|
|
19469
19472
|
kind: "numeric",
|
|
@@ -19573,6 +19576,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
19573
19576
|
icon: "moon"
|
|
19574
19577
|
}]
|
|
19575
19578
|
},
|
|
19579
|
+
"low-power-sleep": {
|
|
19580
|
+
scope: "device",
|
|
19581
|
+
noun: {
|
|
19582
|
+
en: "Low-power sleep",
|
|
19583
|
+
it: "Sospensione a basso consumo"
|
|
19584
|
+
},
|
|
19585
|
+
notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
|
|
19586
|
+
},
|
|
19576
19587
|
"network-link": {
|
|
19577
19588
|
scope: "device",
|
|
19578
19589
|
noun: {
|
|
@@ -20557,6 +20568,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20557
20568
|
"log-channels",
|
|
20558
20569
|
"log-destination",
|
|
20559
20570
|
"login-method",
|
|
20571
|
+
"low-power-sleep",
|
|
20560
20572
|
"media-player",
|
|
20561
20573
|
"mesh-network",
|
|
20562
20574
|
"meter",
|
|
@@ -20610,6 +20622,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20610
20622
|
"records",
|
|
20611
20623
|
"remote",
|
|
20612
20624
|
"remote-layout-components",
|
|
20625
|
+
"resync",
|
|
20613
20626
|
"running-state",
|
|
20614
20627
|
"scene-monitor",
|
|
20615
20628
|
"schedulers",
|
|
@@ -20713,7 +20726,7 @@ Object.freeze({
|
|
|
20713
20726
|
]
|
|
20714
20727
|
},
|
|
20715
20728
|
{
|
|
20716
|
-
"path": "
|
|
20729
|
+
"path": "codeRequired",
|
|
20717
20730
|
"valueType": "boolean"
|
|
20718
20731
|
}
|
|
20719
20732
|
],
|
|
@@ -21781,7 +21794,24 @@ Object.freeze({
|
|
|
21781
21794
|
"jammed",
|
|
21782
21795
|
"door-open"
|
|
21783
21796
|
]
|
|
21797
|
+
}, {
|
|
21798
|
+
"path": "codeRequired",
|
|
21799
|
+
"valueType": "boolean"
|
|
21784
21800
|
}],
|
|
21801
|
+
"low-power-sleep": [
|
|
21802
|
+
{
|
|
21803
|
+
"path": "sleeping",
|
|
21804
|
+
"valueType": "boolean"
|
|
21805
|
+
},
|
|
21806
|
+
{
|
|
21807
|
+
"path": "lastContactAt",
|
|
21808
|
+
"valueType": "number"
|
|
21809
|
+
},
|
|
21810
|
+
{
|
|
21811
|
+
"path": "lastUpdated",
|
|
21812
|
+
"valueType": "number"
|
|
21813
|
+
}
|
|
21814
|
+
],
|
|
21785
21815
|
"media-player": [
|
|
21786
21816
|
{
|
|
21787
21817
|
"path": "state",
|
|
@@ -22975,7 +23005,7 @@ function sleep(ms) {
|
|
|
22975
23005
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
22976
23006
|
}
|
|
22977
23007
|
//#endregion
|
|
22978
|
-
//#region ../types/dist/implemented-methods-
|
|
23008
|
+
//#region ../types/dist/implemented-methods-k3KProJd.mjs
|
|
22979
23009
|
/**
|
|
22980
23010
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
22981
23011
|
*
|
|
@@ -49744,6 +49774,67 @@ object({
|
|
|
49744
49774
|
/** Namespaces the client listed that no longer exist. */
|
|
49745
49775
|
deleted: array(PreferenceNamespaceSchema)
|
|
49746
49776
|
});
|
|
49777
|
+
/**
|
|
49778
|
+
* The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
|
|
49779
|
+
*
|
|
49780
|
+
* One entry per tRPC method the hub serves, capability and core routes alike,
|
|
49781
|
+
* read off the live router by the hub (never a hand-written list).
|
|
49782
|
+
*/
|
|
49783
|
+
var ApiProcedureKindSchema = _enum([
|
|
49784
|
+
"query",
|
|
49785
|
+
"mutation",
|
|
49786
|
+
"subscription"
|
|
49787
|
+
]);
|
|
49788
|
+
/** The gate a method runs behind. */
|
|
49789
|
+
var ApiProcedureTierSchema = _enum([
|
|
49790
|
+
"public",
|
|
49791
|
+
"protected",
|
|
49792
|
+
"admin"
|
|
49793
|
+
]);
|
|
49794
|
+
/** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
|
|
49795
|
+
var ApiCatalogScopeSchema = object({
|
|
49796
|
+
capName: string(),
|
|
49797
|
+
capScope: _enum(["device", "system"]),
|
|
49798
|
+
access: _enum([
|
|
49799
|
+
"view",
|
|
49800
|
+
"create",
|
|
49801
|
+
"delete"
|
|
49802
|
+
]),
|
|
49803
|
+
role: string()
|
|
49804
|
+
});
|
|
49805
|
+
var ApiCatalogEntrySchema = object({
|
|
49806
|
+
/** `<router>.<method>` — the tRPC path. */
|
|
49807
|
+
path: string(),
|
|
49808
|
+
router: string(),
|
|
49809
|
+
method: string(),
|
|
49810
|
+
kind: ApiProcedureKindSchema,
|
|
49811
|
+
tier: ApiProcedureTierSchema,
|
|
49812
|
+
source: _enum(["capability", "core"]),
|
|
49813
|
+
/** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
|
|
49814
|
+
scope: ApiCatalogScopeSchema.nullable(),
|
|
49815
|
+
hasInput: boolean()
|
|
49816
|
+
});
|
|
49817
|
+
/**
|
|
49818
|
+
* May the CALLER call a method. The list has no input, so a method reached
|
|
49819
|
+
* only through a device grant is `per-device`: the real call is allowed or
|
|
49820
|
+
* refused on the device its input names.
|
|
49821
|
+
*/
|
|
49822
|
+
var ApiCallableSchema = _enum([
|
|
49823
|
+
"yes",
|
|
49824
|
+
"no",
|
|
49825
|
+
"per-device"
|
|
49826
|
+
]);
|
|
49827
|
+
object({ methods: array(ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema })) });
|
|
49828
|
+
/** A JSON Schema document, as the explorer receives it. */
|
|
49829
|
+
var JsonSchemaDocumentSchema = record(string(), unknown());
|
|
49830
|
+
object({
|
|
49831
|
+
path: string(),
|
|
49832
|
+
hasInput: boolean(),
|
|
49833
|
+
/** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
|
|
49834
|
+
schema: JsonSchemaDocumentSchema.nullable(),
|
|
49835
|
+
/** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
|
|
49836
|
+
error: string().nullable()
|
|
49837
|
+
});
|
|
49747
49838
|
_enum(["new-session", "step-up"]);
|
|
49748
49839
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
49749
49840
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -53314,9 +53405,8 @@ DeviceType.Sensor;
|
|
|
53314
53405
|
* Many panels require a PIN code on arm / disarm — the optional
|
|
53315
53406
|
* `code` field on the methods passes it through to the upstream
|
|
53316
53407
|
* service; it's NEVER persisted in the runtime slice or any event
|
|
53317
|
-
* payload.
|
|
53318
|
-
* `
|
|
53319
|
-
* field without a slice fetch.
|
|
53408
|
+
* payload. Whether a code is required is the slice's `codeRequired`
|
|
53409
|
+
* (#459): `null` when the provider cannot tell (D393).
|
|
53320
53410
|
*
|
|
53321
53411
|
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
53322
53412
|
* mode list — the UI renders only the buttons the panel accepts.
|
|
@@ -53355,9 +53445,13 @@ var AlarmPanelStatusSchema = object({
|
|
|
53355
53445
|
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
53356
53446
|
* mode in this list. */
|
|
53357
53447
|
availableModes: array(AlarmArmModeSchema),
|
|
53358
|
-
/**
|
|
53359
|
-
*
|
|
53360
|
-
requiresCode
|
|
53448
|
+
/**
|
|
53449
|
+
* Whether the panel requires a PIN on arm / disarm (#459; the field was
|
|
53450
|
+
* `requiresCode`, and the `alarm-pin-required` device feature is gone).
|
|
53451
|
+
* `null` = the provider cannot tell (D393), never `false`. A slice restored
|
|
53452
|
+
* from before the rename is upgraded at boot by `restoredFieldRenames`.
|
|
53453
|
+
*/
|
|
53454
|
+
codeRequired: boolean().nullable(),
|
|
53361
53455
|
/** Ms epoch when the slice was last updated. */
|
|
53362
53456
|
lastChangedAt: number$1()
|
|
53363
53457
|
});
|
|
@@ -53398,7 +53492,7 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
|
|
|
53398
53492
|
}), method(object({
|
|
53399
53493
|
deviceId: number$1().int().nonnegative(),
|
|
53400
53494
|
mode: AlarmArmModeSchema,
|
|
53401
|
-
/** Optional PIN code. Required when `
|
|
53495
|
+
/** Optional PIN code. Required when `codeRequired === true`.
|
|
53402
53496
|
* Passed through to the upstream service; never persisted. */
|
|
53403
53497
|
code: string().min(1).optional()
|
|
53404
53498
|
}), _void(), {
|
|
@@ -54500,9 +54594,9 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
54500
54594
|
auth: "admin"
|
|
54501
54595
|
});
|
|
54502
54596
|
/**
|
|
54503
|
-
* Battery status snapshot. Emitted by providers whose device
|
|
54504
|
-
* battery
|
|
54505
|
-
*
|
|
54597
|
+
* Battery status snapshot. Emitted by providers whose device reports a
|
|
54598
|
+
* battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
|
|
54599
|
+
* buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
|
|
54506
54600
|
* battery" alerting on top — the cap deliberately does NOT enforce a
|
|
54507
54601
|
* threshold.
|
|
54508
54602
|
*/
|
|
@@ -54597,17 +54691,7 @@ var BatteryStatusSchema = object({
|
|
|
54597
54691
|
binary: boolean().optional().meta({ label: "Binary indicator" })
|
|
54598
54692
|
});
|
|
54599
54693
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter;
|
|
54600
|
-
|
|
54601
|
-
deviceId: number$1(),
|
|
54602
|
-
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
54603
|
-
timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
|
|
54604
|
-
}), object({
|
|
54605
|
-
awoke: boolean(),
|
|
54606
|
-
durationMs: number$1()
|
|
54607
|
-
}), {
|
|
54608
|
-
kind: "mutation",
|
|
54609
|
-
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
54610
|
-
}), object({
|
|
54694
|
+
object({
|
|
54611
54695
|
deviceId: number$1(),
|
|
54612
54696
|
status: BatteryStatusSchema
|
|
54613
54697
|
}), EventCategory.DeviceAwake, EventCategory.DeviceSleeping;
|
|
@@ -60066,6 +60150,69 @@ var DeviceIdentifiersSchema = object({
|
|
|
60066
60150
|
hostname: HostnameEntrySchema.optional(),
|
|
60067
60151
|
ip: IpEntrySchema.optional()
|
|
60068
60152
|
}).strict();
|
|
60153
|
+
/**
|
|
60154
|
+
* Cross-integration identity candidates (planning#593, step 2 of D1059's epic).
|
|
60155
|
+
*
|
|
60156
|
+
* Two devices brought by DIFFERENT integrations that share provider-declared
|
|
60157
|
+
* identifiers ({@link DeviceIdentifiers}) are candidates for being the same
|
|
60158
|
+
* physical object. This module holds the answer's shape; the device-manager
|
|
60159
|
+
* keeps the index that finds the pairs and the ONE rule that grades a match
|
|
60160
|
+
* (`classifyIdentityMatch`, `device-identity-index.ts`).
|
|
60161
|
+
*
|
|
60162
|
+
* The rule (operator, planning#590):
|
|
60163
|
+
*
|
|
60164
|
+
* | Matched keys | Confidence |
|
|
60165
|
+
* | ---------------------------------------------- | ----------- |
|
|
60166
|
+
* | two strong KINDS (e.g. `mac` + `serial`) | `auto` |
|
|
60167
|
+
* | `mac` + `ip` | `auto` |
|
|
60168
|
+
* | exactly one strong kind | `proposal` |
|
|
60169
|
+
* | weak keys only (`hostname`, `ip`) | no candidate|
|
|
60170
|
+
*
|
|
60171
|
+
* Strength counts distinct KINDS, not values: two MACs of one device matching
|
|
60172
|
+
* the other's two MACs are still one kind of evidence, so a proposal. In doubt,
|
|
60173
|
+
* no match.
|
|
60174
|
+
*
|
|
60175
|
+
* Read-only: a candidate is NOT a link. Links are step 3.
|
|
60176
|
+
*/
|
|
60177
|
+
var IdentityConfidenceSchema = _enum(["auto", "proposal"]);
|
|
60178
|
+
/** One identifier both devices declared, with the same normalised value. */
|
|
60179
|
+
var IdentityMatchedKeySchema = object({
|
|
60180
|
+
key: DeviceIdentifierKeySchema,
|
|
60181
|
+
value: string()
|
|
60182
|
+
});
|
|
60183
|
+
/** One side of a pair: the device and the integration that brought it. */
|
|
60184
|
+
var IdentityCandidateDeviceSchema = object({
|
|
60185
|
+
deviceId: number$1().int(),
|
|
60186
|
+
addonId: string(),
|
|
60187
|
+
/** The integration instance (`int_NNNN`) that adopted it; `null` when none was stamped. */
|
|
60188
|
+
integrationId: string().nullable()
|
|
60189
|
+
});
|
|
60190
|
+
/** Two devices of different integrations sharing at least one strong identifier. `a.deviceId < b.deviceId`. */
|
|
60191
|
+
var IdentityCandidatePairSchema = object({
|
|
60192
|
+
a: IdentityCandidateDeviceSchema,
|
|
60193
|
+
b: IdentityCandidateDeviceSchema,
|
|
60194
|
+
/** Every identifier the two share, weak ones included, ordered by key then value. */
|
|
60195
|
+
keys: array(IdentityMatchedKeySchema).readonly(),
|
|
60196
|
+
confidence: IdentityConfidenceSchema
|
|
60197
|
+
});
|
|
60198
|
+
/**
|
|
60199
|
+
* The answer of `device-manager.listIdentityCandidates`.
|
|
60200
|
+
*
|
|
60201
|
+
* - `unknown` — the index has not loaded yet: nothing can be said, and it is
|
|
60202
|
+
* NOT an empty list (D315).
|
|
60203
|
+
* - `answered` — `pairs` holds every candidate. `undeclaredDeviceIds` are the
|
|
60204
|
+
* devices with no identifiers on record: whether they match anything is
|
|
60205
|
+
* UNKNOWN, never "no match" (D393). A device absent from both lists declared
|
|
60206
|
+
* identifiers and matched nobody.
|
|
60207
|
+
*/
|
|
60208
|
+
var IdentityCandidatesSchema = discriminatedUnion("status", [object({
|
|
60209
|
+
status: literal("unknown"),
|
|
60210
|
+
reason: string()
|
|
60211
|
+
}), object({
|
|
60212
|
+
status: literal("answered"),
|
|
60213
|
+
pairs: array(IdentityCandidatePairSchema).readonly(),
|
|
60214
|
+
undeclaredDeviceIds: array(number$1().int()).readonly()
|
|
60215
|
+
})]);
|
|
60069
60216
|
var DeviceSearchRequiresSchema = object({
|
|
60070
60217
|
/** Capability names the field wants a value of. Absent when the field wants actions only. */
|
|
60071
60218
|
caps: array(string()).readonly().optional(),
|
|
@@ -61012,6 +61159,9 @@ method(object({
|
|
|
61012
61159
|
}), _void(), {
|
|
61013
61160
|
kind: "mutation",
|
|
61014
61161
|
auth: "admin"
|
|
61162
|
+
}), method(object({}), IdentityCandidatesSchema, {
|
|
61163
|
+
kind: "query",
|
|
61164
|
+
auth: "admin"
|
|
61015
61165
|
}), method(_void(), array(string())), method(object({ name: string() }), _void(), {
|
|
61016
61166
|
kind: "mutation",
|
|
61017
61167
|
auth: "admin"
|
|
@@ -68314,6 +68464,13 @@ var LockControlStatusSchema = object({
|
|
|
68314
68464
|
"jammed",
|
|
68315
68465
|
"door-open"
|
|
68316
68466
|
]),
|
|
68467
|
+
/**
|
|
68468
|
+
* Whether lock / unlock need a PIN `code` (#459, replaces the
|
|
68469
|
+
* `lock-pin-required` device feature). `null` = the provider cannot tell
|
|
68470
|
+
* (D393) — never `false`. `.optional()` so a restored slice written before
|
|
68471
|
+
* the field still parses; readers treat absent exactly like `null`.
|
|
68472
|
+
*/
|
|
68473
|
+
codeRequired: boolean().nullable().optional(),
|
|
68317
68474
|
/** Ms epoch when the slice was last updated. */
|
|
68318
68475
|
lastChangedAt: number$1()
|
|
68319
68476
|
});
|
|
@@ -68660,6 +68817,33 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
68660
68817
|
})
|
|
68661
68818
|
]);
|
|
68662
68819
|
method(_void(), array(LoginMethodContributionSchema).readonly()), NOT_A_DEVICE.IDENTITY;
|
|
68820
|
+
object({
|
|
68821
|
+
/**
|
|
68822
|
+
* True while the firmware is in low-power mode. A provider MUST avoid polling
|
|
68823
|
+
* during sleep — a read wakes the device and drains charge.
|
|
68824
|
+
*/
|
|
68825
|
+
sleeping: boolean().meta({ label: "Sleeping" }),
|
|
68826
|
+
/**
|
|
68827
|
+
* Ms epoch of the last time the device proved it was reachable, from
|
|
68828
|
+
* PASSIVE signals only (a completed round-trip, an observed wake, a push).
|
|
68829
|
+
* Absent = never since this slice was born. The only input that separates
|
|
68830
|
+
* "asleep" from "gone".
|
|
68831
|
+
*/
|
|
68832
|
+
lastContactAt: number$1().optional(),
|
|
68833
|
+
/** Ms epoch of the last observation. */
|
|
68834
|
+
lastUpdated: number$1().meta(readingMeta("none"))
|
|
68835
|
+
});
|
|
68836
|
+
DeviceType.Camera, method(object({
|
|
68837
|
+
deviceId: number$1(),
|
|
68838
|
+
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
68839
|
+
timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
|
|
68840
|
+
}), object({
|
|
68841
|
+
awoke: boolean(),
|
|
68842
|
+
durationMs: number$1()
|
|
68843
|
+
}), {
|
|
68844
|
+
kind: "mutation",
|
|
68845
|
+
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
68846
|
+
});
|
|
68663
68847
|
/**
|
|
68664
68848
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
68665
68849
|
*
|
|
@@ -86107,6 +86291,27 @@ var RemoteLayoutComponentSchema = object({
|
|
|
86107
86291
|
});
|
|
86108
86292
|
});
|
|
86109
86293
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
86294
|
+
/**
|
|
86295
|
+
* resync — a device whose derived spec can be re-aligned on demand with its
|
|
86296
|
+
* upstream source (#459, Q6). Registered by the containers an integration
|
|
86297
|
+
* adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
|
|
86298
|
+
* from it being bound with `resync` implemented.
|
|
86299
|
+
*
|
|
86300
|
+
* The work itself stays where it is: the owning addon's `device-adoption`
|
|
86301
|
+
* provider, reached through `deviceManager.adoptionResync` (which also owns
|
|
86302
|
+
* the "resync from zero" child purge). A provider answers this method by
|
|
86303
|
+
* asking for exactly that — see `resyncThroughAdoption`.
|
|
86304
|
+
*/
|
|
86305
|
+
var ResyncDeviceInputSchema = object({
|
|
86306
|
+
deviceId: number$1().int().nonnegative(),
|
|
86307
|
+
/** "Resync from zero": purge the accessory children before re-deriving. */
|
|
86308
|
+
resetToSource: boolean().optional()
|
|
86309
|
+
});
|
|
86310
|
+
DeviceType.Container, DeviceType.Workload, DeviceType.WeatherStation, method(ResyncDeviceInputSchema, ResyncResultSchema, {
|
|
86311
|
+
kind: "mutation",
|
|
86312
|
+
auth: "admin",
|
|
86313
|
+
notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
|
|
86314
|
+
});
|
|
86110
86315
|
DeviceType.MediaPlayer;
|
|
86111
86316
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
86112
86317
|
object({
|
|
@@ -92377,8 +92582,8 @@ var ALARM_MODES = [
|
|
|
92377
92582
|
"vacation",
|
|
92378
92583
|
"custom_bypass"
|
|
92379
92584
|
];
|
|
92380
|
-
function alarmControls(state, modes,
|
|
92381
|
-
if (
|
|
92585
|
+
function alarmControls(state, modes, codeRequired) {
|
|
92586
|
+
if (codeRequired) return [];
|
|
92382
92587
|
const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
|
|
92383
92588
|
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")));
|
|
92384
92589
|
switch (state) {
|
|
@@ -92398,7 +92603,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
92398
92603
|
const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
|
|
92399
92604
|
return {
|
|
92400
92605
|
reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
|
|
92401
|
-
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.
|
|
92606
|
+
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))],
|
|
92402
92607
|
...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
|
|
92403
92608
|
...words === null ? {} : { tiles: {
|
|
92404
92609
|
left: [{
|
|
@@ -95781,13 +95986,6 @@ Object.freeze({
|
|
|
95781
95986
|
access: "view",
|
|
95782
95987
|
role: "viewer"
|
|
95783
95988
|
},
|
|
95784
|
-
"battery.wakeForStream": {
|
|
95785
|
-
capName: "battery",
|
|
95786
|
-
capScope: "device",
|
|
95787
|
-
addonId: null,
|
|
95788
|
-
access: "create",
|
|
95789
|
-
role: "viewer"
|
|
95790
|
-
},
|
|
95791
95989
|
"binary.getStatus": {
|
|
95792
95990
|
capName: "binary",
|
|
95793
95991
|
capScope: "device",
|
|
@@ -97314,6 +97512,13 @@ Object.freeze({
|
|
|
97314
97512
|
access: "view",
|
|
97315
97513
|
role: "admin"
|
|
97316
97514
|
},
|
|
97515
|
+
"deviceManager.listIdentityCandidates": {
|
|
97516
|
+
capName: "device-manager",
|
|
97517
|
+
capScope: "system",
|
|
97518
|
+
addonId: null,
|
|
97519
|
+
access: "view",
|
|
97520
|
+
role: "admin"
|
|
97521
|
+
},
|
|
97317
97522
|
"deviceManager.listLocationDescriptions": {
|
|
97318
97523
|
capName: "device-manager",
|
|
97319
97524
|
capScope: "system",
|
|
@@ -99435,6 +99640,20 @@ Object.freeze({
|
|
|
99435
99640
|
access: "view",
|
|
99436
99641
|
role: "admin"
|
|
99437
99642
|
},
|
|
99643
|
+
"lowPowerSleep.getStatus": {
|
|
99644
|
+
capName: "low-power-sleep",
|
|
99645
|
+
capScope: "device",
|
|
99646
|
+
addonId: null,
|
|
99647
|
+
access: "view",
|
|
99648
|
+
role: "viewer"
|
|
99649
|
+
},
|
|
99650
|
+
"lowPowerSleep.wakeUp": {
|
|
99651
|
+
capName: "low-power-sleep",
|
|
99652
|
+
capScope: "device",
|
|
99653
|
+
addonId: null,
|
|
99654
|
+
access: "create",
|
|
99655
|
+
role: "viewer"
|
|
99656
|
+
},
|
|
99438
99657
|
"mediaPlayer.channelDown": {
|
|
99439
99658
|
capName: "media-player",
|
|
99440
99659
|
capScope: "device",
|
|
@@ -103110,6 +103329,13 @@ Object.freeze({
|
|
|
103110
103329
|
access: "view",
|
|
103111
103330
|
role: "admin"
|
|
103112
103331
|
},
|
|
103332
|
+
"resync.resync": {
|
|
103333
|
+
capName: "resync",
|
|
103334
|
+
capScope: "device",
|
|
103335
|
+
addonId: null,
|
|
103336
|
+
access: "create",
|
|
103337
|
+
role: "admin"
|
|
103338
|
+
},
|
|
103113
103339
|
"runningState.getStatus": {
|
|
103114
103340
|
capName: "running-state",
|
|
103115
103341
|
capScope: "device",
|
|
@@ -105519,7 +105745,7 @@ function deviceMatchesProfile(features, profile) {
|
|
|
105519
105745
|
var DEVICE_PROFILES = [{
|
|
105520
105746
|
id: "battery",
|
|
105521
105747
|
label: "Battery-operated camera",
|
|
105522
|
-
when: { hasFeature: DeviceFeature.
|
|
105748
|
+
when: { hasFeature: DeviceFeature.Sleeps },
|
|
105523
105749
|
defaults: {
|
|
105524
105750
|
audioMode: "disabled",
|
|
105525
105751
|
detectionMode: "on-motion"
|
|
@@ -105545,11 +105771,11 @@ function bound(cap, methods = [], authority = "reported") {
|
|
|
105545
105771
|
function derived(cap, methods = []) {
|
|
105546
105772
|
return bound(cap, methods, "derived");
|
|
105547
105773
|
}
|
|
105548
|
-
DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
|
|
105774
|
+
DeviceFeature.BatteryOperated, DeviceFeature.Sleeps, derived("low-power-sleep", ["wakeUp"]), DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, derived("resync", ["resync"]), DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
|
|
105549
105775
|
"startTalkSession",
|
|
105550
105776
|
"pushTalkAudio",
|
|
105551
105777
|
"endTalkSession"
|
|
105552
|
-
]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.
|
|
105778
|
+
]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
|
|
105553
105779
|
var ALL_FEATURES = Object.values(DeviceFeature);
|
|
105554
105780
|
new Set(ALL_FEATURES);
|
|
105555
105781
|
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
@@ -105745,11 +105971,6 @@ Object.freeze({
|
|
|
105745
105971
|
form: "single",
|
|
105746
105972
|
optional: false
|
|
105747
105973
|
}],
|
|
105748
|
-
"battery.wakeForStream": [{
|
|
105749
|
-
name: "deviceId",
|
|
105750
|
-
form: "single",
|
|
105751
|
-
optional: false
|
|
105752
|
-
}],
|
|
105753
105974
|
"binary.getStatus": [{
|
|
105754
105975
|
name: "deviceId",
|
|
105755
105976
|
form: "single",
|
|
@@ -106933,6 +107154,16 @@ Object.freeze({
|
|
|
106933
107154
|
form: "single",
|
|
106934
107155
|
optional: true
|
|
106935
107156
|
}],
|
|
107157
|
+
"lowPowerSleep.getStatus": [{
|
|
107158
|
+
name: "deviceId",
|
|
107159
|
+
form: "single",
|
|
107160
|
+
optional: false
|
|
107161
|
+
}],
|
|
107162
|
+
"lowPowerSleep.wakeUp": [{
|
|
107163
|
+
name: "deviceId",
|
|
107164
|
+
form: "single",
|
|
107165
|
+
optional: false
|
|
107166
|
+
}],
|
|
106936
107167
|
"mediaPlayer.channelDown": [{
|
|
106937
107168
|
name: "deviceId",
|
|
106938
107169
|
form: "single",
|
|
@@ -108218,6 +108449,11 @@ Object.freeze({
|
|
|
108218
108449
|
form: "single",
|
|
108219
108450
|
optional: false
|
|
108220
108451
|
}],
|
|
108452
|
+
"resync.resync": [{
|
|
108453
|
+
name: "deviceId",
|
|
108454
|
+
form: "single",
|
|
108455
|
+
optional: false
|
|
108456
|
+
}],
|
|
108221
108457
|
"runningState.getStatus": [{
|
|
108222
108458
|
name: "deviceId",
|
|
108223
108459
|
form: "single",
|
|
@@ -119687,7 +119923,7 @@ function resolveDetectionSettings(input) {
|
|
|
119687
119923
|
let defaulted;
|
|
119688
119924
|
if (hasOnboardMotion) defaulted = ["onboard"];
|
|
119689
119925
|
else if (hasActivitySignal) defaulted = [];
|
|
119690
|
-
else if (profile && features.includes(DeviceFeature.
|
|
119926
|
+
else if (profile && features.includes(DeviceFeature.Sleeps)) defaulted = [];
|
|
119691
119927
|
else defaulted = MotionSourcesSchema.parse(flat["motionSources"]);
|
|
119692
119928
|
motionSources = hasActivitySignal ? [...defaulted, DEVICE_ACTIVITY_SOURCE] : defaulted;
|
|
119693
119929
|
}
|