@camstack/server 1.2.811 → 1.2.813
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 +14 -0
- package/dist/api/core/cap-providers.js +50 -343
- package/dist/api/trpc/generated-cap-routers.js +9 -0
- package/dist/core/addon/addon-registry.service.js +31 -1
- package/dist/core/addon/addon-settings-provider.js +7 -1
- package/dist/core/addon/instance-lifecycle.js +454 -0
- package/dist/core/addon/instance-links.service.js +22 -14
- package/dist/core/moleculer/moleculer.service.js +15 -1
- package/package.json +11 -11
- package/system/dist/{agent-https-a3mE4PW4.js → agent-https-D9QbrCJe.js} +1 -1
- package/system/dist/{agent-https-CyEBY3RB.mjs → agent-https-D9rppK7L.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/blocks-instances.d.ts +22 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +87 -4
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +77 -4
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +7 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +280 -280
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-ByF-6AFH.mjs → capture-engine-BI6Z09IS.mjs} +1 -1
- package/system/dist/{capture-engine-BO9mSlY-.js → capture-engine-Ba49uIhh.js} +1 -1
- package/system/dist/{composition-sources-AziMFo7T.mjs → composition-sources-BYhi_QpF.mjs} +1 -1
- package/system/dist/{composition-sources-BMJUPUh2.js → composition-sources-zbe-WMDR.js} +1 -1
- package/system/dist/{constants-CjRlgRlu.js → constants-Cz0UABmc.js} +1 -1
- package/system/dist/{constants-CTikgsC_.mjs → constants-ZS2PeV26.mjs} +1 -1
- package/system/dist/{device-ca-CNRlFqFC.mjs → device-ca-B0vxd075.mjs} +1 -1
- package/system/dist/{device-ca-Dxl6kVcJ.js → device-ca-BR52z--E.js} +1 -1
- package/system/dist/{dist-CkJnelZr.js → dist-Cjomt5bM.js} +526 -25
- package/system/dist/{dist-BPq13Y8j.mjs → dist-fY4FYIt2.mjs} +509 -26
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-Cx6yJBl9.js → hub-mdns-ciao-BIyx3H2u.js} +2 -2
- package/system/dist/{hub-mdns-ciao-CrjItezp.mjs → hub-mdns-ciao-CYUWFhn7.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-CKM-LxvL.js → legacy-integration-rows-door-CoUG5oxu.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-Dxcqwc-w.mjs → legacy-integration-rows-door-is18rCsc.mjs} +1 -1
- package/system/dist/{restore-archive-BFA-hEhX.mjs → restore-archive-Ce8tTRv4.mjs} +78 -78
- package/system/dist/{restore-archive-BQWOdGAB.js → restore-archive-ScKSg4cI.js} +1 -1
- package/system/dist/{wal-maintenance-zJ4-ORo6.mjs → wal-maintenance-gY_QtcBe.mjs} +0 -0
- package/system/dist/{wal-maintenance-CiCgL4Hp.js → wal-maintenance-oyAWwOGI.js} +0 -0
- package/system/package.json +5 -1
|
@@ -5475,6 +5475,21 @@ function defineRecordKinds(specs) {
|
|
|
5475
5475
|
return out;
|
|
5476
5476
|
}
|
|
5477
5477
|
/**
|
|
5478
|
+
* Entry kinds (D881): every list of user-created entries (notification
|
|
5479
|
+
* targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
|
|
5480
|
+
* kind-specific body, and the admin UI lists/adds/edits/deletes all of them
|
|
5481
|
+
* through the `record-entries` capability with password fields derived from
|
|
5482
|
+
* the schema (`.meta({ secret: true })`).
|
|
5483
|
+
*/
|
|
5484
|
+
/** The body of a plain entry: a name and the fields the kind adds. */
|
|
5485
|
+
function entryBody(shape) {
|
|
5486
|
+
return z.object({
|
|
5487
|
+
name: z.string().min(1),
|
|
5488
|
+
enabled: z.boolean().optional(),
|
|
5489
|
+
...shape
|
|
5490
|
+
});
|
|
5491
|
+
}
|
|
5492
|
+
/**
|
|
5478
5493
|
* Declare one entry kind. An entry is configuration: never trimmed by the
|
|
5479
5494
|
* engine, never aged, belonging to no device.
|
|
5480
5495
|
*/
|
|
@@ -62977,6 +62992,168 @@ var StateLookSchema = z.object({
|
|
|
62977
62992
|
background: HeroBackgroundTokenSchema,
|
|
62978
62993
|
animation: HeroAnimationSchema
|
|
62979
62994
|
});
|
|
62995
|
+
var HeroSceneIdSchema = z.enum([
|
|
62996
|
+
"ac",
|
|
62997
|
+
"thermostat",
|
|
62998
|
+
"heater",
|
|
62999
|
+
"fan",
|
|
63000
|
+
"washer",
|
|
63001
|
+
"dryer",
|
|
63002
|
+
"dishwasher",
|
|
63003
|
+
"pet-fountain",
|
|
63004
|
+
"pet-feeder",
|
|
63005
|
+
"vacuum",
|
|
63006
|
+
"lawn-mower",
|
|
63007
|
+
"tv",
|
|
63008
|
+
"speaker",
|
|
63009
|
+
"camera",
|
|
63010
|
+
"light",
|
|
63011
|
+
"cover",
|
|
63012
|
+
"lock",
|
|
63013
|
+
"alarm",
|
|
63014
|
+
"siren",
|
|
63015
|
+
"sensor-sparkline",
|
|
63016
|
+
"contact",
|
|
63017
|
+
"presence",
|
|
63018
|
+
"weather",
|
|
63019
|
+
"plug",
|
|
63020
|
+
"button",
|
|
63021
|
+
"update",
|
|
63022
|
+
"control-dial",
|
|
63023
|
+
"event-stream",
|
|
63024
|
+
"gateway",
|
|
63025
|
+
"generic"
|
|
63026
|
+
]);
|
|
63027
|
+
var HeroSceneModeSchema = z.enum([
|
|
63028
|
+
"cool",
|
|
63029
|
+
"heat",
|
|
63030
|
+
"dry",
|
|
63031
|
+
"fan",
|
|
63032
|
+
"auto",
|
|
63033
|
+
"playing",
|
|
63034
|
+
"paused",
|
|
63035
|
+
"open",
|
|
63036
|
+
"closed"
|
|
63037
|
+
]);
|
|
63038
|
+
/** The scene as the model carries it. `null` = the device did not say (never a guess). */
|
|
63039
|
+
var HeroSceneSchema = z.object({
|
|
63040
|
+
id: HeroSceneIdSchema,
|
|
63041
|
+
mode: HeroSceneModeSchema.nullable(),
|
|
63042
|
+
/** 0..1: volume, cover position, cycle progress. */
|
|
63043
|
+
level: z.number().min(0).max(1).nullable()
|
|
63044
|
+
});
|
|
63045
|
+
var HERO_SCENE_BY_TYPE = {
|
|
63046
|
+
[DeviceType.Camera]: "camera",
|
|
63047
|
+
[DeviceType.Hub]: "gateway",
|
|
63048
|
+
[DeviceType.Light]: "light",
|
|
63049
|
+
[DeviceType.Siren]: "siren",
|
|
63050
|
+
[DeviceType.Switch]: "plug",
|
|
63051
|
+
[DeviceType.Sensor]: "sensor-sparkline",
|
|
63052
|
+
[DeviceType.Thermostat]: "thermostat",
|
|
63053
|
+
[DeviceType.Climate]: "ac",
|
|
63054
|
+
[DeviceType.Button]: "button",
|
|
63055
|
+
[DeviceType.EventEmitter]: "event-stream",
|
|
63056
|
+
[DeviceType.Update]: "update",
|
|
63057
|
+
[DeviceType.Generic]: "generic",
|
|
63058
|
+
[DeviceType.Notifier]: "event-stream",
|
|
63059
|
+
[DeviceType.Script]: "event-stream",
|
|
63060
|
+
[DeviceType.Automation]: "event-stream",
|
|
63061
|
+
[DeviceType.Lock]: "lock",
|
|
63062
|
+
[DeviceType.Cover]: "cover",
|
|
63063
|
+
[DeviceType.Valve]: "control-dial",
|
|
63064
|
+
[DeviceType.Humidifier]: "control-dial",
|
|
63065
|
+
[DeviceType.WaterHeater]: "heater",
|
|
63066
|
+
[DeviceType.Fan]: "fan",
|
|
63067
|
+
[DeviceType.MediaPlayer]: "tv",
|
|
63068
|
+
[DeviceType.AlarmPanel]: "alarm",
|
|
63069
|
+
[DeviceType.Control]: "control-dial",
|
|
63070
|
+
[DeviceType.Presence]: "presence",
|
|
63071
|
+
[DeviceType.Weather]: "weather",
|
|
63072
|
+
[DeviceType.Vacuum]: "vacuum",
|
|
63073
|
+
[DeviceType.LawnMower]: "lawn-mower",
|
|
63074
|
+
[DeviceType.Container]: "generic",
|
|
63075
|
+
[DeviceType.Image]: "camera",
|
|
63076
|
+
[DeviceType.PetFeeder]: "pet-feeder",
|
|
63077
|
+
[DeviceType.PetFountain]: "pet-fountain",
|
|
63078
|
+
[DeviceType.Dishwasher]: "dishwasher",
|
|
63079
|
+
[DeviceType.Washer]: "washer",
|
|
63080
|
+
[DeviceType.Heater]: "heater",
|
|
63081
|
+
[DeviceType.Dryer]: "dryer",
|
|
63082
|
+
[DeviceType.Gateway]: "gateway"
|
|
63083
|
+
};
|
|
63084
|
+
/** `inherit` = the type's scene. A role only refines a type. */
|
|
63085
|
+
var HERO_SCENE_BY_ROLE = {
|
|
63086
|
+
[DeviceRole.Siren]: "siren",
|
|
63087
|
+
[DeviceRole.Floodlight]: "light",
|
|
63088
|
+
[DeviceRole.Spotlight]: "light",
|
|
63089
|
+
[DeviceRole.PirSensor]: "presence",
|
|
63090
|
+
[DeviceRole.Chime]: "speaker",
|
|
63091
|
+
[DeviceRole.Autotrack]: "inherit",
|
|
63092
|
+
[DeviceRole.Nightvision]: "inherit",
|
|
63093
|
+
[DeviceRole.PrivacyMask]: "inherit",
|
|
63094
|
+
[DeviceRole.Doorbell]: "inherit",
|
|
63095
|
+
[DeviceRole.CoverBlind]: "inherit",
|
|
63096
|
+
[DeviceRole.CoverShutter]: "inherit",
|
|
63097
|
+
[DeviceRole.CoverAwning]: "inherit",
|
|
63098
|
+
[DeviceRole.CoverCurtain]: "inherit",
|
|
63099
|
+
[DeviceRole.CoverGarage]: "inherit",
|
|
63100
|
+
[DeviceRole.CoverGate]: "inherit",
|
|
63101
|
+
[DeviceRole.CoverDoor]: "inherit",
|
|
63102
|
+
[DeviceRole.CoverWindow]: "inherit",
|
|
63103
|
+
[DeviceRole.BinaryHelper]: "inherit",
|
|
63104
|
+
[DeviceRole.Outlet]: "plug",
|
|
63105
|
+
[DeviceRole.MotionSensor]: "presence",
|
|
63106
|
+
[DeviceRole.ContactSensor]: "contact",
|
|
63107
|
+
[DeviceRole.LeakSensor]: "inherit",
|
|
63108
|
+
[DeviceRole.SmokeSensor]: "alarm",
|
|
63109
|
+
[DeviceRole.COSensor]: "alarm",
|
|
63110
|
+
[DeviceRole.GasSensor]: "alarm",
|
|
63111
|
+
[DeviceRole.TamperSensor]: "inherit",
|
|
63112
|
+
[DeviceRole.VibrationSensor]: "inherit",
|
|
63113
|
+
[DeviceRole.ConnectivitySensor]: "inherit",
|
|
63114
|
+
[DeviceRole.SoundSensor]: "inherit",
|
|
63115
|
+
[DeviceRole.BinarySensor]: "inherit",
|
|
63116
|
+
[DeviceRole.TemperatureSensor]: "sensor-sparkline",
|
|
63117
|
+
[DeviceRole.HumiditySensor]: "sensor-sparkline",
|
|
63118
|
+
[DeviceRole.AmbientLightSensor]: "inherit",
|
|
63119
|
+
[DeviceRole.PressureSensor]: "weather",
|
|
63120
|
+
[DeviceRole.WindSensor]: "weather",
|
|
63121
|
+
[DeviceRole.RainSensor]: "weather",
|
|
63122
|
+
[DeviceRole.UvSensor]: "weather",
|
|
63123
|
+
[DeviceRole.SolarRadiationSensor]: "weather",
|
|
63124
|
+
[DeviceRole.SoilMoistureSensor]: "inherit",
|
|
63125
|
+
[DeviceRole.PowerSensor]: "plug",
|
|
63126
|
+
[DeviceRole.EnergySensor]: "plug",
|
|
63127
|
+
[DeviceRole.VoltageSensor]: "plug",
|
|
63128
|
+
[DeviceRole.CurrentSensor]: "plug",
|
|
63129
|
+
[DeviceRole.AirQualitySensor]: "inherit",
|
|
63130
|
+
[DeviceRole.BatterySensor]: "inherit",
|
|
63131
|
+
[DeviceRole.NumericSensor]: "inherit",
|
|
63132
|
+
[DeviceRole.EnumSensor]: "inherit",
|
|
63133
|
+
[DeviceRole.DateTimeSensor]: "inherit",
|
|
63134
|
+
[DeviceRole.GenericSensor]: "inherit",
|
|
63135
|
+
[DeviceRole.NumericControl]: "control-dial",
|
|
63136
|
+
[DeviceRole.SelectControl]: "control-dial",
|
|
63137
|
+
[DeviceRole.TextControl]: "inherit",
|
|
63138
|
+
[DeviceRole.DateTimeControl]: "inherit",
|
|
63139
|
+
[DeviceRole.MobilePushNotifier]: "inherit",
|
|
63140
|
+
[DeviceRole.MessagingNotifier]: "inherit",
|
|
63141
|
+
[DeviceRole.EmailNotifier]: "inherit",
|
|
63142
|
+
[DeviceRole.GenericNotifier]: "inherit",
|
|
63143
|
+
[DeviceRole.IrTransmitter]: "inherit"
|
|
63144
|
+
};
|
|
63145
|
+
function isDeviceType$2(type) {
|
|
63146
|
+
return Object.values(DeviceType).includes(type);
|
|
63147
|
+
}
|
|
63148
|
+
function isDeviceRole$1(role) {
|
|
63149
|
+
return Object.values(DeviceRole).includes(role);
|
|
63150
|
+
}
|
|
63151
|
+
/** The scene id of a (role, type) pair. Role beats type; a type this build does not know gets the terminal. */
|
|
63152
|
+
function resolveHeroSceneId(role, type) {
|
|
63153
|
+
const byRole = role !== null && isDeviceRole$1(role) ? HERO_SCENE_BY_ROLE[role] : void 0;
|
|
63154
|
+
if (byRole !== void 0 && byRole !== "inherit") return byRole;
|
|
63155
|
+
return isDeviceType$2(type) ? HERO_SCENE_BY_TYPE[type] : "generic";
|
|
63156
|
+
}
|
|
62980
63157
|
/** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
|
|
62981
63158
|
var HeroTextSchema = z.object({
|
|
62982
63159
|
en: z.string(),
|
|
@@ -63129,6 +63306,32 @@ var HeroStateBackdropSchema = z.object({
|
|
|
63129
63306
|
token: z.enum(HERO_BACKGROUNDS),
|
|
63130
63307
|
animation: z.enum(HERO_ANIMATIONS)
|
|
63131
63308
|
});
|
|
63309
|
+
var HeroFactSchema = z.object({
|
|
63310
|
+
id: z.enum([
|
|
63311
|
+
"power",
|
|
63312
|
+
"energy",
|
|
63313
|
+
"battery",
|
|
63314
|
+
"link",
|
|
63315
|
+
"phase",
|
|
63316
|
+
"remaining",
|
|
63317
|
+
"volume",
|
|
63318
|
+
"source",
|
|
63319
|
+
"consumables"
|
|
63320
|
+
]),
|
|
63321
|
+
icon: IconKeySchema.nullable(),
|
|
63322
|
+
text: HeroTextSchema,
|
|
63323
|
+
tone: HeroToneSchema
|
|
63324
|
+
});
|
|
63325
|
+
/** A labelled value beside the scene. */
|
|
63326
|
+
var HeroSideTileSchema = z.object({
|
|
63327
|
+
label: HeroTextSchema,
|
|
63328
|
+
value: HeroTextSchema,
|
|
63329
|
+
tone: HeroToneSchema.optional()
|
|
63330
|
+
});
|
|
63331
|
+
var HeroSideTilesSchema = z.object({
|
|
63332
|
+
left: z.array(HeroSideTileSchema).max(2),
|
|
63333
|
+
right: z.array(HeroSideTileSchema).max(2)
|
|
63334
|
+
});
|
|
63132
63335
|
var HeroBackgroundSchema = z.discriminatedUnion("kind", [z.object({
|
|
63133
63336
|
kind: z.literal("artwork"),
|
|
63134
63337
|
url: z.string(),
|
|
@@ -63152,6 +63355,11 @@ var HeroModelSchema = z.object({
|
|
|
63152
63355
|
stateAssumed: z.boolean(),
|
|
63153
63356
|
look: StateLookSchema,
|
|
63154
63357
|
background: HeroBackgroundSchema,
|
|
63358
|
+
/** Which animated picture the hero (and the list row) draws; its motion is `look.animation`. */
|
|
63359
|
+
scene: HeroSceneSchema,
|
|
63360
|
+
/** The top line's inline facts, in order; never wraps, so a client may cut the tail. */
|
|
63361
|
+
facts: z.array(HeroFactSchema),
|
|
63362
|
+
sideTiles: HeroSideTilesSchema,
|
|
63155
63363
|
/** The status line under the main icon. */
|
|
63156
63364
|
title: HeroTextSchema,
|
|
63157
63365
|
badges: z.array(HeroBadgeSchema),
|
|
@@ -63167,6 +63375,93 @@ var HeroModelSchema = z.object({
|
|
|
63167
63375
|
provenance: z.array(HeroProvenanceSchema)
|
|
63168
63376
|
});
|
|
63169
63377
|
/**
|
|
63378
|
+
* The ROW of a device in a list (D1023 P2): four fixed zones, all taken from
|
|
63379
|
+
* the hero model and nothing else.
|
|
63380
|
+
*
|
|
63381
|
+
* 1. mini-scene the same scene id as the hero, drawn 44x44 with the state look;
|
|
63382
|
+
* 2. name + ONE status line the facts joined by " · " by the client;
|
|
63383
|
+
* 3. the type's primary inline control;
|
|
63384
|
+
* 4. a trailing fact (power, else battery, else consumables).
|
|
63385
|
+
*
|
|
63386
|
+
* Selection rules, all taken from the model:
|
|
63387
|
+
* - ONE control is ever shown: the device's own power; else the FIRST control of
|
|
63388
|
+
* the FIRST row that has any (a later row's control is never promoted). When
|
|
63389
|
+
* the model lists that part in `gated`, the row has no inline control: the
|
|
63390
|
+
* projection never falls through to another control the caller could use.
|
|
63391
|
+
* - the status line is the head (what plays, else the state) plus at most
|
|
63392
|
+
* {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded;
|
|
63393
|
+
* - the trailing fact is the first of power, battery, consumables.
|
|
63394
|
+
*
|
|
63395
|
+
* `projectDeviceRow` is pure and computes nothing: it selects from a
|
|
63396
|
+
* {@link HeroModel}. A row that needed a value the hero lacks would mean the
|
|
63397
|
+
* model is missing it, so the fix goes in the model.
|
|
63398
|
+
*/
|
|
63399
|
+
var HeroRowModelSchema = z.object({
|
|
63400
|
+
deviceId: z.number().int(),
|
|
63401
|
+
name: z.string(),
|
|
63402
|
+
type: z.string(),
|
|
63403
|
+
state: HeroStateSchema,
|
|
63404
|
+
stateAssumed: z.boolean(),
|
|
63405
|
+
look: StateLookSchema,
|
|
63406
|
+
scene: HeroSceneSchema,
|
|
63407
|
+
/** Joined by " · ": the state (or what is playing), then the facts. */
|
|
63408
|
+
statusLine: z.array(HeroTextSchema),
|
|
63409
|
+
/** `null` = the type has no inline control, or the caller may not act on it. */
|
|
63410
|
+
primary: HeroControlSchema.nullable(),
|
|
63411
|
+
trailing: HeroFactSchema.nullable()
|
|
63412
|
+
});
|
|
63413
|
+
/** The trailing fact, in order of preference. */
|
|
63414
|
+
var TRAILING_ORDER = [
|
|
63415
|
+
"power",
|
|
63416
|
+
"battery",
|
|
63417
|
+
"consumables"
|
|
63418
|
+
];
|
|
63419
|
+
function trailingOf(facts) {
|
|
63420
|
+
for (const id of TRAILING_ORDER) {
|
|
63421
|
+
const found = facts.find((f) => f.id === id);
|
|
63422
|
+
if (found !== void 0) return found;
|
|
63423
|
+
}
|
|
63424
|
+
return null;
|
|
63425
|
+
}
|
|
63426
|
+
function primaryOf(model) {
|
|
63427
|
+
const power = model.ownPower;
|
|
63428
|
+
if (power !== null) {
|
|
63429
|
+
if (model.gated.includes("own-power")) return null;
|
|
63430
|
+
return {
|
|
63431
|
+
kind: "toggle",
|
|
63432
|
+
id: "own-power",
|
|
63433
|
+
label: power.turnOn.label,
|
|
63434
|
+
on: power.on,
|
|
63435
|
+
turnOn: power.turnOn,
|
|
63436
|
+
turnOff: power.turnOff
|
|
63437
|
+
};
|
|
63438
|
+
}
|
|
63439
|
+
for (const row of model.rows) {
|
|
63440
|
+
const control = row.controls[0];
|
|
63441
|
+
if (control === void 0) continue;
|
|
63442
|
+
return model.gated.includes(row.id) ? null : control;
|
|
63443
|
+
}
|
|
63444
|
+
return null;
|
|
63445
|
+
}
|
|
63446
|
+
function statusLineOf(model, trailing) {
|
|
63447
|
+
return [model.rows.find((r) => r.id === "now-playing")?.status ?? null ?? model.title, ...model.facts.filter((f) => f !== trailing).map((f) => f.text).slice(0, 3)];
|
|
63448
|
+
}
|
|
63449
|
+
function projectDeviceRow(model) {
|
|
63450
|
+
const trailing = trailingOf(model.facts);
|
|
63451
|
+
return {
|
|
63452
|
+
deviceId: model.deviceId,
|
|
63453
|
+
name: model.name,
|
|
63454
|
+
type: model.type,
|
|
63455
|
+
state: model.state,
|
|
63456
|
+
stateAssumed: model.stateAssumed,
|
|
63457
|
+
look: model.look,
|
|
63458
|
+
scene: model.scene,
|
|
63459
|
+
statusLine: statusLineOf(model, trailing),
|
|
63460
|
+
primary: primaryOf(model),
|
|
63461
|
+
trailing
|
|
63462
|
+
};
|
|
63463
|
+
}
|
|
63464
|
+
/**
|
|
63170
63465
|
* hero-layout — what a device's hero says (D1023). Read-only: the FIXED
|
|
63171
63466
|
* layouts live in `@camstack/types` and nothing here stores or edits one.
|
|
63172
63467
|
* `getHeroModel` builds the pure model from the device's bindings and its
|
|
@@ -63182,6 +63477,11 @@ var heroInput = z.object({
|
|
|
63182
63477
|
*/
|
|
63183
63478
|
canActuate: z.boolean().optional()
|
|
63184
63479
|
});
|
|
63480
|
+
var rowModelsInput = z.object({
|
|
63481
|
+
deviceIds: z.array(z.number().int().nonnegative()).max(500),
|
|
63482
|
+
/** As `canActuate` of `getHeroModel`; absent = may. */
|
|
63483
|
+
canActuate: z.boolean().optional()
|
|
63484
|
+
});
|
|
63185
63485
|
var HeroLayoutRowsSchema = z.object({
|
|
63186
63486
|
type: z.string(),
|
|
63187
63487
|
rows: z.array(HeroRowIdSchema)
|
|
@@ -63196,6 +63496,16 @@ var heroLayoutCapability = {
|
|
|
63196
63496
|
auth: "protected",
|
|
63197
63497
|
role: "viewer"
|
|
63198
63498
|
}),
|
|
63499
|
+
/**
|
|
63500
|
+
* The list rows of many devices in ONE call, projected from the same model as
|
|
63501
|
+
* the hero. One entry per requested id, in order. `null` has two meanings, both
|
|
63502
|
+
* "no row": the registry does not know the device, or reading it failed (the
|
|
63503
|
+
* provider logs that, tagged). It is never an empty row.
|
|
63504
|
+
*/
|
|
63505
|
+
getRowModels: method(rowModelsInput, z.array(HeroRowModelSchema.nullable()), {
|
|
63506
|
+
auth: "protected",
|
|
63507
|
+
role: "viewer"
|
|
63508
|
+
}),
|
|
63199
63509
|
getLayout: method(z.object({ deviceType: z.string() }), HeroLayoutRowsSchema, {
|
|
63200
63510
|
auth: "protected",
|
|
63201
63511
|
role: "viewer"
|
|
@@ -63914,20 +64224,40 @@ var integrationInstancesCapability = {
|
|
|
63914
64224
|
instanceFormSchema: method(z.object({
|
|
63915
64225
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
63916
64226
|
/** The kind of the create form (`id: null`) of a provider with several. */
|
|
63917
|
-
kind: z.string().min(1).optional()
|
|
64227
|
+
kind: z.string().min(1).optional(),
|
|
64228
|
+
/** The wizard mode of the integration type (`getAvailableTypes`); a form may differ per mode. */
|
|
64229
|
+
mode: z.enum([
|
|
64230
|
+
"standalone",
|
|
64231
|
+
"account",
|
|
64232
|
+
"broker"
|
|
64233
|
+
]).optional(),
|
|
64234
|
+
/** The discovery candidate the wizard was seeded from (`stableId`), if any. */
|
|
64235
|
+
candidateStableId: z.string().min(1).optional()
|
|
63918
64236
|
}), ConfigSchemaPassthrough$2, { auth: "admin" }),
|
|
63919
64237
|
listInstances: method(z.void(), z.array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
|
|
63920
64238
|
getInstance: method(z.object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
|
|
63921
64239
|
/**
|
|
63922
64240
|
* Insert the typed record. With `id` it is stored under that id (a duplicate id is refused);
|
|
63923
64241
|
* without one the PROVIDER mints it and answers it. `kind` picks one of `describe().kinds`.
|
|
64242
|
+
*
|
|
64243
|
+
* An instance of a kind that brings devices (`role: 'devices'`) is an integration: the HUB mints
|
|
64244
|
+
* the id (the `integrations` registry id, which its devices carry), refuses the create when
|
|
64245
|
+
* `testInstance` rejects the values (D1016; a kind with no test passes and says so), writes the
|
|
64246
|
+
* registry row and the record, and removes both when either step fails. An `id` is accepted
|
|
64247
|
+
* only when it names an existing registry row of the addon.
|
|
63924
64248
|
*/
|
|
63925
64249
|
createInstance: method(z.object({
|
|
63926
64250
|
id: IntegrationInstanceIdSchema.optional(),
|
|
63927
64251
|
name: z.string().min(1),
|
|
63928
64252
|
kind: z.string().min(1).optional(),
|
|
63929
64253
|
/** Form values written with the record (a link picked in the create dialog). */
|
|
63930
|
-
values: z.record(z.string(), z.unknown()).optional()
|
|
64254
|
+
values: z.record(z.string(), z.unknown()).optional(),
|
|
64255
|
+
/**
|
|
64256
|
+
* The discovery candidate (`stableId`) the instance is set up from. Kept on the integration
|
|
64257
|
+
* registry row of an instance that brings devices, so discovery stops offering a candidate
|
|
64258
|
+
* that already has its integration (D984). Ignored by an instance with no registry row.
|
|
64259
|
+
*/
|
|
64260
|
+
originStableId: z.string().min(1).optional()
|
|
63931
64261
|
}), z.object({ id: z.string() }), {
|
|
63932
64262
|
kind: "mutation",
|
|
63933
64263
|
auth: "admin"
|
|
@@ -63948,7 +64278,11 @@ var integrationInstancesCapability = {
|
|
|
63948
64278
|
kind: "mutation",
|
|
63949
64279
|
auth: "admin"
|
|
63950
64280
|
}),
|
|
63951
|
-
/**
|
|
64281
|
+
/**
|
|
64282
|
+
* Delete the record and its keychain refs together. For an instance that brings devices the hub
|
|
64283
|
+
* also removes the integration's devices (their tombstones, D865), the registry row, and emits
|
|
64284
|
+
* `IntegrationDeleted`; a fixed builtin and an instance a link names are refused first.
|
|
64285
|
+
*/
|
|
63952
64286
|
deleteInstance: method(z.object({ id: IntegrationInstanceIdSchema }), z.object({ ok: z.literal(true) }), {
|
|
63953
64287
|
kind: "mutation",
|
|
63954
64288
|
auth: "admin"
|
|
@@ -96682,6 +97016,21 @@ function legacyAutoLinkIds(params) {
|
|
|
96682
97016
|
/** Marker written to a declared integration's `info`. */
|
|
96683
97017
|
var DECLARED_INTEGRATION_FIXED_KEY = "fixed";
|
|
96684
97018
|
/**
|
|
97019
|
+
* Give a declared integration its instance record, ONCE. The record is read first and left
|
|
97020
|
+
* exactly as it is when it exists (an operator's rename, a field the addon later adds): a seed
|
|
97021
|
+
* never overwrites. A read that fails throws and writes nothing (D49) — the next pass retries.
|
|
97022
|
+
* True when the record was written by this call.
|
|
97023
|
+
*/
|
|
97024
|
+
async function seedInstanceOnce(instances, seed) {
|
|
97025
|
+
const existing = await instances.getInstance({ id: seed.id });
|
|
97026
|
+
if (existing !== null && existing !== void 0) return false;
|
|
97027
|
+
await instances.createInstance({
|
|
97028
|
+
id: seed.id,
|
|
97029
|
+
name: seed.name
|
|
97030
|
+
});
|
|
97031
|
+
return true;
|
|
97032
|
+
}
|
|
97033
|
+
/**
|
|
96685
97034
|
* Strip the `<node>/<addon>` suffix a forked child carries.
|
|
96686
97035
|
*
|
|
96687
97036
|
* Comparing `ctx.kernel.localNodeId` raw skipped EVERY node — including the one
|
|
@@ -96729,7 +97078,13 @@ var DeclaredDevices = class {
|
|
|
96729
97078
|
};
|
|
96730
97079
|
}
|
|
96731
97080
|
}
|
|
96732
|
-
|
|
97081
|
+
let integrationId;
|
|
97082
|
+
if (spec.integrationId !== void 0) integrationId = spec.integrationId;
|
|
97083
|
+
else {
|
|
97084
|
+
const own = await this.ensureIntegration(spec.integrationName);
|
|
97085
|
+
integrationId = own.id;
|
|
97086
|
+
await this.seedInstance(own);
|
|
97087
|
+
}
|
|
96733
97088
|
const index = await this.readIndex();
|
|
96734
97089
|
const live = await this.readLiveByStableId();
|
|
96735
97090
|
const outcomes = [];
|
|
@@ -96737,10 +97092,11 @@ var DeclaredDevices = class {
|
|
|
96737
97092
|
const outcome = await this.applyDeclaration(declaration, integrationId, index, live);
|
|
96738
97093
|
if (outcome !== null) outcomes.push(outcome);
|
|
96739
97094
|
}
|
|
97095
|
+
const removed = await this.sweepWithdrawn(spec.devices, integrationId, index);
|
|
96740
97096
|
return {
|
|
96741
97097
|
integrationId,
|
|
96742
97098
|
devices: outcomes,
|
|
96743
|
-
removed
|
|
97099
|
+
removed,
|
|
96744
97100
|
owned: true
|
|
96745
97101
|
};
|
|
96746
97102
|
}
|
|
@@ -96764,7 +97120,10 @@ var DeclaredDevices = class {
|
|
|
96764
97120
|
integrationId: created.id,
|
|
96765
97121
|
name: integrationName
|
|
96766
97122
|
} });
|
|
96767
|
-
return
|
|
97123
|
+
return {
|
|
97124
|
+
id: created.id,
|
|
97125
|
+
name: integrationName
|
|
97126
|
+
};
|
|
96768
97127
|
}
|
|
96769
97128
|
if (existing.info?.["fixed"] !== true) {
|
|
96770
97129
|
await this.ports.updateIntegration({
|
|
@@ -96773,7 +97132,26 @@ var DeclaredDevices = class {
|
|
|
96773
97132
|
});
|
|
96774
97133
|
this.ports.logger.info("re-asserted `fixed` on a declared integration", { meta: { integrationId: existing.id } });
|
|
96775
97134
|
}
|
|
96776
|
-
return
|
|
97135
|
+
return {
|
|
97136
|
+
id: existing.id,
|
|
97137
|
+
name: existing.name ?? integrationName
|
|
97138
|
+
};
|
|
97139
|
+
}
|
|
97140
|
+
/** Seed the instance record of an integration this declarer owns; best-effort, retried next pass. */
|
|
97141
|
+
async seedInstance(integration) {
|
|
97142
|
+
const { seedInstance } = this.ports;
|
|
97143
|
+
if (seedInstance === void 0) return;
|
|
97144
|
+
try {
|
|
97145
|
+
await seedInstance({
|
|
97146
|
+
id: integration.id,
|
|
97147
|
+
name: integration.name
|
|
97148
|
+
});
|
|
97149
|
+
} catch (err) {
|
|
97150
|
+
this.ports.logger.warn("could not seed the instance record of a declared integration", {
|
|
97151
|
+
tags: { integrationId: integration.id },
|
|
97152
|
+
meta: { error: errMsg(err) }
|
|
97153
|
+
});
|
|
97154
|
+
}
|
|
96777
97155
|
}
|
|
96778
97156
|
async readIndex() {
|
|
96779
97157
|
const rows = await this.ports.listOwnDevices();
|
|
@@ -97130,6 +97508,18 @@ function reading(source, state, assumed = false) {
|
|
|
97130
97508
|
assumed
|
|
97131
97509
|
};
|
|
97132
97510
|
}
|
|
97511
|
+
function fact(id, icon, text, tone = "muted") {
|
|
97512
|
+
return {
|
|
97513
|
+
id,
|
|
97514
|
+
icon,
|
|
97515
|
+
text,
|
|
97516
|
+
tone
|
|
97517
|
+
};
|
|
97518
|
+
}
|
|
97519
|
+
function minutesLeft(seconds) {
|
|
97520
|
+
const m = Math.ceil(seconds / 60);
|
|
97521
|
+
return t(`${m} min left`, `${m} min rimanenti`);
|
|
97522
|
+
}
|
|
97133
97523
|
function deviceTypeOf(type) {
|
|
97134
97524
|
return Object.values(DeviceType).find((t) => t === type);
|
|
97135
97525
|
}
|
|
@@ -97179,7 +97569,8 @@ var runningStateContribution = contribution("running-state", RunningStateStatusS
|
|
|
97179
97569
|
detail
|
|
97180
97570
|
}
|
|
97181
97571
|
},
|
|
97182
|
-
rows: [row]
|
|
97572
|
+
rows: [row],
|
|
97573
|
+
...phase !== null && running === true ? { facts: [fact("phase", "activity", t(phase, phase), "primary")] } : {}
|
|
97183
97574
|
};
|
|
97184
97575
|
});
|
|
97185
97576
|
var powerMeterContribution = contribution("power-meter", PowerMeterStatusSchema, (slice) => {
|
|
@@ -97200,14 +97591,29 @@ var powerMeterContribution = contribution("power-meter", PowerMeterStatusSchema,
|
|
|
97200
97591
|
value: slice.current,
|
|
97201
97592
|
unit: "A"
|
|
97202
97593
|
});
|
|
97203
|
-
|
|
97204
|
-
|
|
97205
|
-
|
|
97206
|
-
|
|
97207
|
-
|
|
97208
|
-
|
|
97594
|
+
const watts = Math.round(slice.power);
|
|
97595
|
+
const text = t(`${watts} W`, `${watts} W`);
|
|
97596
|
+
return {
|
|
97597
|
+
consumption: {
|
|
97598
|
+
priority: 2,
|
|
97599
|
+
slot: {
|
|
97600
|
+
kind: "power",
|
|
97601
|
+
watts: slice.power,
|
|
97602
|
+
detail
|
|
97603
|
+
}
|
|
97604
|
+
},
|
|
97605
|
+
facts: [fact("power", "zap", text, watts > 0 ? "primary" : "muted")],
|
|
97606
|
+
tiles: {
|
|
97607
|
+
right: [{
|
|
97608
|
+
label: t("Power", "Potenza"),
|
|
97609
|
+
value: text
|
|
97610
|
+
}],
|
|
97611
|
+
...slice.energy === void 0 ? {} : { left: [{
|
|
97612
|
+
label: t("Energy", "Energia"),
|
|
97613
|
+
value: t(`${slice.energy} kWh`, `${slice.energy} kWh`)
|
|
97614
|
+
}] }
|
|
97209
97615
|
}
|
|
97210
|
-
}
|
|
97616
|
+
};
|
|
97211
97617
|
});
|
|
97212
97618
|
function batteryTone(level) {
|
|
97213
97619
|
if (level === null) return "muted";
|
|
@@ -97216,24 +97622,39 @@ function batteryTone(level) {
|
|
|
97216
97622
|
}
|
|
97217
97623
|
var batteryContribution = contribution("battery", BatteryStatusSchema, (slice) => {
|
|
97218
97624
|
const level = slice?.level ?? null;
|
|
97219
|
-
|
|
97625
|
+
const badge = {
|
|
97220
97626
|
id: "battery",
|
|
97221
97627
|
icon: "battery",
|
|
97222
97628
|
tone: batteryTone(level),
|
|
97223
97629
|
value: level,
|
|
97224
97630
|
label: level === null ? t("Battery", "Batteria") : t(`Battery ${level}%`, `Batteria ${level}%`)
|
|
97225
|
-
}
|
|
97631
|
+
};
|
|
97632
|
+
return {
|
|
97633
|
+
badges: [badge],
|
|
97634
|
+
...level === null ? {} : {
|
|
97635
|
+
facts: [fact("battery", "battery", badge.label, badge.tone)],
|
|
97636
|
+
tiles: { left: [{
|
|
97637
|
+
label: t("Battery", "Batteria"),
|
|
97638
|
+
value: t(`${level}%`, `${level}%`),
|
|
97639
|
+
tone: badge.tone
|
|
97640
|
+
}] }
|
|
97641
|
+
}
|
|
97642
|
+
};
|
|
97226
97643
|
});
|
|
97227
97644
|
var networkLinkContribution = contribution("network-link", NetworkLinkStatusSchema, (slice) => {
|
|
97228
97645
|
const signal = slice?.signal ?? null;
|
|
97229
97646
|
const known = slice !== void 0 && slice.type !== "unknown";
|
|
97230
|
-
|
|
97647
|
+
const badge = {
|
|
97231
97648
|
id: "network-link",
|
|
97232
97649
|
icon: "wifi",
|
|
97233
97650
|
tone: !known ? "muted" : signal !== null && signal < 30 ? "warning" : "success",
|
|
97234
97651
|
value: signal,
|
|
97235
97652
|
label: known ? t(slice.type, slice.type) : t("Link unknown", "Collegamento sconosciuto")
|
|
97236
|
-
}
|
|
97653
|
+
};
|
|
97654
|
+
return {
|
|
97655
|
+
badges: [badge],
|
|
97656
|
+
...known ? { facts: [fact("link", "wifi", badge.label, badge.tone)] } : {}
|
|
97657
|
+
};
|
|
97237
97658
|
});
|
|
97238
97659
|
var contactContribution = contribution("contact", ContactStatusSchema, (slice) => {
|
|
97239
97660
|
const row = {
|
|
@@ -97244,7 +97665,8 @@ var contactContribution = contribution("contact", ContactStatusSchema, (slice) =
|
|
|
97244
97665
|
};
|
|
97245
97666
|
return {
|
|
97246
97667
|
reading: reading("contact", slice === void 0 ? "unknown" : slice.entryOpen ? "on" : "off"),
|
|
97247
|
-
rows: [row]
|
|
97668
|
+
rows: [row],
|
|
97669
|
+
...slice === void 0 ? {} : { scene: { mode: slice.entryOpen ? "open" : "closed" } }
|
|
97248
97670
|
};
|
|
97249
97671
|
});
|
|
97250
97672
|
var motionTriggerContribution = contribution("motion-trigger", MotionTriggerStatusSchema, (slice) => {
|
|
@@ -97323,10 +97745,14 @@ var consumablesContribution = contribution("consumables", ConsumablesStatusSchem
|
|
|
97323
97745
|
level: item.level,
|
|
97324
97746
|
needsAttention: item.status !== null && ATTENTION_STATUSES.includes(item.status)
|
|
97325
97747
|
}));
|
|
97326
|
-
|
|
97327
|
-
|
|
97328
|
-
|
|
97329
|
-
|
|
97748
|
+
const attention = items.filter((i) => i.needsAttention).length;
|
|
97749
|
+
return {
|
|
97750
|
+
consumables: {
|
|
97751
|
+
items,
|
|
97752
|
+
attention
|
|
97753
|
+
},
|
|
97754
|
+
...attention === 0 ? {} : { facts: [fact("consumables", null, t(`${attention} to check`, `${attention} da controllare`), "warning")] }
|
|
97755
|
+
};
|
|
97330
97756
|
});
|
|
97331
97757
|
var dishwasherContribution = contribution("dishwasher", DishwasherStatusSchema, (slice) => {
|
|
97332
97758
|
const state = slice === void 0 || slice.state === "unavailable" ? "unknown" : slice.state === "running" ? "running" : slice.state === "error" ? "alert" : "idle";
|
|
@@ -97350,9 +97776,17 @@ var dishwasherContribution = contribution("dishwasher", DishwasherStatusSchema,
|
|
|
97350
97776
|
turnOff: action("appliance-power.off", t("Standby", "Standby"), "power-off", "dishwasher", "setPower", { on: false })
|
|
97351
97777
|
}]
|
|
97352
97778
|
});
|
|
97779
|
+
const remaining = slice?.remaining ?? null;
|
|
97353
97780
|
return {
|
|
97354
97781
|
reading: reading("dishwasher", state),
|
|
97355
|
-
rows
|
|
97782
|
+
rows,
|
|
97783
|
+
...remaining === null ? {} : {
|
|
97784
|
+
facts: [fact("remaining", "timer", minutesLeft(remaining), "primary")],
|
|
97785
|
+
tiles: { right: [{
|
|
97786
|
+
label: t("Left", "Rimane"),
|
|
97787
|
+
value: minutesLeft(remaining)
|
|
97788
|
+
}] }
|
|
97789
|
+
}
|
|
97356
97790
|
};
|
|
97357
97791
|
});
|
|
97358
97792
|
var has$1 = (ctx, f) => ctx.features.includes(f);
|
|
@@ -97460,8 +97894,23 @@ var HERO_CAP_CONTRIBUTIONS = [
|
|
|
97460
97894
|
}] : []
|
|
97461
97895
|
});
|
|
97462
97896
|
}
|
|
97897
|
+
const volumeNow = view.volumeKnown ? slice?.volumeLevel ?? null : null;
|
|
97898
|
+
const sourceNow = view.source === null || view.source.current === "" ? null : view.source.current;
|
|
97899
|
+
const mode = view.running === "playing" ? "playing" : view.running === "paused" ? "paused" : null;
|
|
97900
|
+
const facts = [];
|
|
97901
|
+
if (sourceNow !== null) facts.push(fact("source", "radio", t(sourceNow, sourceNow)));
|
|
97902
|
+
if (volumeNow !== null) facts.push(fact("volume", "volume-2", t(`${volumeNow}%`, `${volumeNow}%`)));
|
|
97463
97903
|
return {
|
|
97464
97904
|
reading: mediaReading(view),
|
|
97905
|
+
facts,
|
|
97906
|
+
...volumeNow === null ? {} : { tiles: { right: [{
|
|
97907
|
+
label: t("Volume", "Volume"),
|
|
97908
|
+
value: t(`${volumeNow}%`, `${volumeNow}%`)
|
|
97909
|
+
}] } },
|
|
97910
|
+
scene: {
|
|
97911
|
+
...mode === null ? {} : { mode },
|
|
97912
|
+
...volumeNow === null ? {} : { level: volumeNow / 100 }
|
|
97913
|
+
},
|
|
97465
97914
|
...view.canSwitchPower ? { ownPower: {
|
|
97466
97915
|
source: "media-player",
|
|
97467
97916
|
on: view.power === "unknown" ? null : view.power === "on",
|
|
@@ -97955,6 +98404,9 @@ function provenanceOf(cap, fragment) {
|
|
|
97955
98404
|
if (fragment.powerSupply !== void 0) ids.push("power-supply");
|
|
97956
98405
|
if (fragment.consumption !== void 0) ids.push("consumption");
|
|
97957
98406
|
if (fragment.consumables !== void 0) ids.push("consumables");
|
|
98407
|
+
if (fragment.facts !== void 0 && fragment.facts.length > 0) ids.push("facts");
|
|
98408
|
+
if (fragment.tiles !== void 0) ids.push("side-tiles");
|
|
98409
|
+
if (fragment.scene !== void 0) ids.push("scene");
|
|
97958
98410
|
if (fragment.remote !== void 0) ids.push("remote");
|
|
97959
98411
|
for (const badge of fragment.badges ?? []) ids.push(badge.id);
|
|
97960
98412
|
for (const row of fragment.rows ?? []) ids.push(row.id);
|
|
@@ -97971,6 +98423,17 @@ function consumptionOf(fragments) {
|
|
|
97971
98423
|
}
|
|
97972
98424
|
return best === null ? null : best.slot;
|
|
97973
98425
|
}
|
|
98426
|
+
function tilesOf(fragments, side) {
|
|
98427
|
+
return fragments.flatMap((f) => f.tiles?.[side] ?? []).slice(0, 2);
|
|
98428
|
+
}
|
|
98429
|
+
function sceneOf(role, type, fragments) {
|
|
98430
|
+
const parts = fragments.flatMap((f) => f.scene === void 0 ? [] : [f.scene]);
|
|
98431
|
+
return {
|
|
98432
|
+
id: resolveHeroSceneId(role, type),
|
|
98433
|
+
mode: parts.find((p) => p.mode !== void 0)?.mode ?? null,
|
|
98434
|
+
level: parts.find((p) => p.level !== void 0)?.level ?? null
|
|
98435
|
+
};
|
|
98436
|
+
}
|
|
97974
98437
|
function buildHeroModel(input) {
|
|
97975
98438
|
const { device } = input;
|
|
97976
98439
|
const ctx = {
|
|
@@ -98011,6 +98474,11 @@ function buildHeroModel(input) {
|
|
|
98011
98474
|
const powerSupply = fragments.find((f) => f.powerSupply !== void 0)?.powerSupply ?? null;
|
|
98012
98475
|
const remote = fragments.find((f) => f.remote !== void 0)?.remote ?? null;
|
|
98013
98476
|
const badges = fragments.flatMap((f) => f.badges ?? []);
|
|
98477
|
+
const facts = fragments.flatMap((f) => f.facts ?? []);
|
|
98478
|
+
const sideTiles = {
|
|
98479
|
+
left: tilesOf(fragments, "left"),
|
|
98480
|
+
right: tilesOf(fragments, "right")
|
|
98481
|
+
};
|
|
98014
98482
|
const gated = [];
|
|
98015
98483
|
if (!input.access.canActuate) {
|
|
98016
98484
|
if (ownPower !== null) gated.push("own-power");
|
|
@@ -98028,6 +98496,9 @@ function buildHeroModel(input) {
|
|
|
98028
98496
|
stateAssumed: assumed,
|
|
98029
98497
|
look,
|
|
98030
98498
|
background,
|
|
98499
|
+
scene: sceneOf(device.role, device.type, fragments),
|
|
98500
|
+
facts,
|
|
98501
|
+
sideTiles,
|
|
98031
98502
|
title: STATE_TEXT[state],
|
|
98032
98503
|
badges,
|
|
98033
98504
|
remote,
|
|
@@ -101556,6 +102027,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
101556
102027
|
access: "view",
|
|
101557
102028
|
role: "viewer"
|
|
101558
102029
|
},
|
|
102030
|
+
"heroLayout.getRowModels": {
|
|
102031
|
+
capName: "hero-layout",
|
|
102032
|
+
capScope: "system",
|
|
102033
|
+
addonId: null,
|
|
102034
|
+
access: "view",
|
|
102035
|
+
role: "viewer"
|
|
102036
|
+
},
|
|
101559
102037
|
"humidifier.getStatus": {
|
|
101560
102038
|
capName: "humidifier",
|
|
101561
102039
|
capScope: "device",
|
|
@@ -109607,6 +110085,11 @@ Object.freeze({
|
|
|
109607
110085
|
form: "single",
|
|
109608
110086
|
optional: false
|
|
109609
110087
|
}],
|
|
110088
|
+
"heroLayout.getRowModels": [{
|
|
110089
|
+
name: "deviceIds",
|
|
110090
|
+
form: "array",
|
|
110091
|
+
optional: false
|
|
110092
|
+
}],
|
|
109610
110093
|
"humidifier.getStatus": [{
|
|
109611
110094
|
name: "deviceId",
|
|
109612
110095
|
form: "single",
|
|
@@ -113715,4 +114198,4 @@ z.object({
|
|
|
113715
114198
|
commands: z.record(z.string(), z.unknown())
|
|
113716
114199
|
});
|
|
113717
114200
|
//#endregion
|
|
113718
|
-
export { EMPTY_AUTOMATION_STATE as $, timedRunLimitOf as $a, procedureAuthKey as $i, coreBlockSourceKind as $n, DATAPLANE_SECRET_HEADER as $o, isCredentialTokenPayload as $r, emitReadiness as $s, ServerNameSchema as $t, ControlStatusSchema as A, scoreRuntimes as Aa, resolveSecretMarkers as Ac, motionCapability as Ai, buildDeviceSignatureMessage as An, compositionItemFieldPath as Ao, extractNestedAddonId as Ar, UnknownRecordKindError as As, PET_FOUNTAIN_WATER_KEY as At, DEVICE_ENROLLMENT_TTL_MS as B, stableIdMapOf as Ba, vocabActionIdFor as Bc, orderMigrations as Bi, checkTemplatePayload as Bn, isForwardInputRef as Bo, gbToBytes as Br, collectSecretConfigKeys as Bs, RECORDING_SOURCE_CAMSTACK_ADDON as Bt, CORE_BLOCKS_ADDON_ID as C, resolveStepArgs as Ca, normalizeSecretOwner as Cc, mediaPlayerFeaturesOfRoles as Ci, backupCapability as Cn, HelperMemberSchema as Co, enumerateItemArrayFields as Cr, RecordTooLargeError as Cs, MIGRATION_API_V1_METHODS as Ct, CatalogFileSchema as D, schedulersCapability as Da, readinessKey as Dc, migrationsCapability as Di, buildActionSteps as Dn, composedDeviceRef as Do, evictionPolicyOfLocation as Dr, StoredRecordKindDeclarationSchema as Ds, MigrationLedgerEntrySchema as Dt, CalendarPreferencesSchema as E, runtimeStatePolicyFor as Ea, parseSecretRef as Ec, metricsProviderCapability as Ei, brightnessCapability as En, cloneStatefulExpressionMemory as Eo, evaluateWhenTree as Er, SECRET_CLEAR as Es, MediaPlayerStatusSchema as Et, DATABASE_SNAPSHOT_TIMEOUT_MS as F, shortHostname as Fa, sleep as Fc, normalizeStepTargets as Fi, canonicalIconKey as Fn, evaluateDerivative as Fo, filesystemBrowseCapability as Fr, asString$1 as Fs, PowerSourceInfoSchema as Ft, DEVICE_SAN_USER_PREFIX as G, storageProviderCapability as Ga, errMsg as Gc, petFountainWaterItem as Gi, compileScalarOverride as Gn, planResetTier as Go, integrationInstancesCapability as Gr, commandOrigin as Gs, RemoteConfigSchema as Gt, DEVICE_ID_FIELD as H, storageCapability as Ha, DeviceFeature as Hc, parseColorInput as Hi, collectWhenMirrorSources as Hn, nextLocalMidnight as Ho, groupCommandsCapability as Hr, collectSecretMarkerRefs as Hs, ROOT_BUCKET_KEY as Ht, DATA_STORE_DATABASES as I, siteFor as Ia, toNodeId as Ic, normalizeUnit as Ii, capUnitResolver as In, evaluateStatistic as Io, findChannelSource as Ir, assertTransactScope as Is, PreferenceDeviceIdSchema as It, DeclaredDevices as J, supportedRuntimes as Ja, platformProbeCapability as Ji, compositionSourceRefs as Jn, toExpressionValue as Jo, isAlertEpisodeOpen as Jr, defineAddonMigrations as Js, STORAGE_LOCATION_MODES as Jt, DEVICE_TOMBSTONE_RETENTION_MS as K, streamCatalogCapability as Ka, featuresOfBoundCaps as Kc, pickAppLinkHub as Ki, composerCapability as Kn, planStatisticTier as Ko, internalActionId as Kr, createEvent as Ks, RunningStateStatusSchema as Kt, DAY_NAMES as L, siteZoneKey as La, toSecretFieldView as Lc, objectInputDeclaresAddonId as Li, catalogueIssues as Ln, helperMembers as Lo, foldSnapshotByFunction as Lr, assertValidDeclaration as Ls, PreferenceNamespaceSchema as Lt, CredentialTokenClaimsSchema as M, sharedActuatorFeatures as Ma, secretTreeFromPaths as Mc, normalizeActionUnits as Mi, buildStreamParamsConfigSchema as Mn, compositionSourceKey as Mo, fanOutTargets as Mr, actionEffect as Ms, PROPOSAL_MIN_SPAN_MS as Mt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as N, sharedActuatorMethods as Na, secretTreeFromSchema as Nc, normalizeCapStep as Ni, calendarsCapability as Nn, createStatefulExpressionMemory as No, fanPresetsCapability as Nr, asJsonObject as Ns, PackageRequiresSchema as Nt, ConditionMirror as O, scopesAllowAddon as Oa, recordSecretRef as Oc, modeForSwitch as Oi, buildCapabilityLookup as On, composedDeviceStableId as Oo, expandContainer as Or, TransactRefusedError as Os, MigrationMetaSchema as Ot, DATABASE_SNAPSHOT_SUFFIX as P, sharedColorModes as Pa, secretViewsOf as Pc, normalizeCoreBlockWrite as Pi, cameraGridLayoutCapability as Pn, disarmRoseMemory as Po, featureForwards as Pr, asNumber as Ps, PetFountainStatusSchema as Pt, DiscoveryProposalBodySchema as Q, timedRunCapability as Qa, problemsBlockSave as Qi, coreBlockIdFromAddonId as Qn, CALLER_STAMPED_CAPABILITIES as Qo, isCollectionArrayMethod as Qr, emitDownForOwnedCaps as Qs, ScopedTokenSchema as Qt, DEFAULT_HOLD_OVERRIDE as R, snapshotCapability as Ra, transformSecretWrite as Rc, objectInputDeclaresRequiredDeviceId as Ri, checkDeviceAlias as Rn, historyRetentionFromSettings as Ro, formatDeviceRevoker as Rr, auditedFields as Rs, PreferenceValueSchema as Rt, COMPOSER_RUNNER_ID as S, resolveRunnerId as Sa, normalizeNodeId as Sc, mediaPlayerCapability as Si, authProviderCapability as Sn, HOUR_MS as So, enumerateInferenceDevices as Sr, RecordNotFoundError as Ss, METHOD_ACCESS_MAP as St, CREDENTIAL_TOKEN_AUDIENCE as T, runSteps as Ta, parseJsonUnknown as Tc, methodRefusal as Ti, batteryCapability as Tn, buildFfmpegArgs as To, evaluateCompositionField as Tr, RevConflictError as Ts, MOTION_CLOSE_AFTER_MS as Tt, DEVICE_NONCE_TTL_MS as U, storageMigrationCapability as Ua, DeviceRole as Uc, parseStreamParamsFormPatch as Ui, colorCapability as Un, openReset as Uo, groupTemplate as Ur, collectZodSecretPaths as Us, RecordingStatusSchema as Ut, DEVICE_HISTORY_ENERGY_KEY as V, storageAdminCapability as Va, withoutCallerStamp as Vc, parseAcceleratorFactsJson as Vi, climateControlCapability as Vn, isHistoryHelper as Vo, generateDeviceAlias as Vr, collectSecretLeaves as Vs, REMOTE_MEDIA_COMMANDS as Vt, DEVICE_SAN_CREDENTIAL_PREFIX as W, storageOccupancyCapability as Wa, DeviceType as Wc, petFountainCapability as Wi, compareVersions as Wn, openStatistic as Wo, heroLayoutCapability as Wr, commandEffect as Ws, RemoteAssumedStateSchema as Wt, DeviceStatusSchema as X, switchStateOfMode as Xa, powerSourceLinkOfComposition as Xi, coreBlockAddonId as Xn, BaseAddon as Xo, isAppLinkBase as Xr, defineEntryKind as Xs, SchedulerError as Xt, DeviceRunSchema as Y, switchCapability as Ya, powerSourceCapability as Yi, consumablesCapability as Yn, wattMillisecondsToKwh as Yo, isAlertEpisodeSeverity as Yr, defineCustomActions as Ys, STREAM_PROFILE_META as Yt, DeviceTombstoneSchema as Z, templateCapability as Za, preconditionOf as Zi, coreBlockComposition as Zn, BatchTooLargeError as Zo, isArrayOutputSchema as Zr, defineRecordKinds as Zs, SchedulerSchema as Zt, CAMERA_SWITCH_ORDER as _, resolveLocationMode as _a, isSecretRefOwnedBy as _c, logDestinationCapability as _i, alertEpisodeId as _n, CompositionSchema as _o, deviceRemovalHookCapability as _r, RUNTIME_DEFAULTS as _s, KEYCHAIN_RESET_TRIGGER_ACTOR as _t, AGENT_MDNS_SERVICE_TYPE as a, reducePoints as aa, hydrateSchema as ac, isVoidInput as ai, SwitchStatusSchema as an, validateComposition as ao, databaseSnapshotCapability as ar, ForeignSecretMarkerError as as, FanDirectionSchema as at, CATALOG_LANGS as b, resolveNotificationTapAddress as ba, nodeIdOfScopedKey as bc, mayReadLocation as bi, appendTrace as bn, HISTORY_FAST_MS as bo, deviceStatusCapability as br, RecordIntegrationInstances as bs, LOG_LEVEL_RANK as bt, ActionError as c, remoteSourceSteps as ca, isDeviceConfigCap as cc, keychainCapability as ci, UNATTRIBUTED_BUCKET_KEY as cn, valveCapability as co, decodeVectorBase64 as cr, NoCallerError as cs, FieldClaimSchema as ct, ActionVariableSchema as d, resolveAppConnections as da, isKeychainStoredField as dc, lifecycleJobSchema as di, actionWaitTotalMs as dn, vectorStoreCapability as do, describeComposableCaps as dr, RECORD_BATCH_MAX_BYTES as ds, HISTORY_ITEM_CATALOG as dt, processTimeZoneOr as ea, expandCapMethods as ec, isDefaultAppConnectionEndpoint as ei, SsoBridgeClaimsSchema as en, timedRunMaxIn as eo, coreBlocksCapability as er, DEVICE_SETTINGS_CONTRIBUTION_METHODS as es, EMPTY_REMOTE_ASSUMED_STATE as et, AlertSchema as f, resolveBucketMs as fa, isReadingQuantity as fc, localDateOf as fi, actionsCapability as fn, weekdayOfLocalDate as fo, describeUnmet as fr, RECORD_DELETE_BATCH as fs, HUB_MDNS_SERVICE_TYPE as ft, BatteryStatusSchema as g, resolveHubAddressRoles as ga, isSecretMarkerLike as gc, lockDoorLinkOfComposition as gi, addonWidgetsCapability as gn, COMPOSER_ADDON_ID as go, deviceManagerCapability as gr, REMOVE_LEAF as gs, INTERNAL_ACTION_PREFIX as gt, BaseDevice as h, resolveHeroLayout as ha, isSecretMarker as hc, lockControlCapability as hi, addonSettingsCapability as hn, zoneOnlySite as ho, deviceHistoryCapability as hr, REDACTED_SECRET as hs, IDLE_ACTION_STATUS as ht, ACTUATOR_TEMPLATE_IDS as i, recordsCapability as ia, historyUnitFor as ic, isSameAddonId as ii, StorageMigrationJobSchema as in, userManagementCapability as io, dataStoreProviderCapability as ir, FilterRequiredError as is, FanControlStatusSchema as it, CoreBlockSchema as j, settingsStoreCapability as ja, scopeKey as jc, nextOccurrence as ji, buildHeroModel as jn, compositionSliceKey as jo, fanControlCapability as jr, WELL_KNOWN_TAB_MAP as js, PREFERENCES_MAX_VALUE_BYTES as jt, ConsumableItemSchema as k, scopesAllowDeviceCap as ka, resolveCapMount as kc, modeMayWrite as ki, buildDeviceEnrollmentLink as kn, compositionFeatureEnabled as ko, expressionContainsBuiltinCall as kr, UnindexedFilterError as ks, NetworkTunnelStartedDataSchema as kt, ActionStepSchema as l, replacedFieldKeys as la, isEvent as lc, legacyAutoLinkIds as li, UserRecordSchema as ln, vectorDimFromBase64 as lo, defineExtensionSlotProvider as lr, PlaintextSecretError as ls, GroupCommandResultSchema as lt, BUILTIN_REMOTE_COMPONENTS as m, resolveCoreBlockFiles as ma, isSecretFieldView as mc, locationIconKey as mi, addonPagesCapability as mn, withLocationMode as mo, deviceExtensionCapability as mr, RECORD_SWEEP_INTERVAL_MS as ms, HvacModeSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, ptzAutotrackCapability as na, getDebugInterest as nc, isLocationEnabled as ni, StorageLocationModeSchema as nn, timedRunSeconds as no, createDeviceExtensionProvider as nr, DeclarationRefusedError as ns, FAN_CAPTURE_FIELDS as nt, AGENT_MDNS_TXT_KEYS as o, remoteCapability as oa, isCommand as oc, kebabToCamel as oi, TemplateKindSchema as on, validateCustomAddress as oo, declarationOwnerNodeId as or, HISTORY_DEFAULT_MIN_INTERVAL_MS as os, FanPresetSchema as ot, AutomationStateDocSchema as p, resolveCoreBlockEntry as pa, isSecretClear as pc, localNetworkCapability as pi, addonIdOfActionId as pn, withDefaultRunning as po, deviceCredentialsCapability as pr, RECORD_SECRET_COLLECTION_PREFIX as ps, HUB_MDNS_TXT_KEYS as pt, DataStoreDatabaseSchema as q, streamQualityLabel as qa, EventCategory as qc, planComposition as qi, compositionFieldKey as qn, statisticCadenceMs as qo, interpolate as qr, customAction as qs, STORAGE_ACCESS_FALLBACK as qt, ACTUATOR_METHODS as r, recordEntriesCapability as ra, historyItemFieldPath as rc, isObjectInput as ri, StorageLocationTypeSchema as rn, unmetRequirements as ro, customKeyOfRole as rr, DeviceTransitionSchema as rs, FIRST_LEVEL_MACRO_CLASSES as rt, ALL_CAPABILITY_DEFINITIONS as s, remoteLayoutComponentsCapability as sa, isDebugChannelName as sc, keychainAdminCapability as si, TokenScopeSchema as sn, validateSchedulerInput as so, declaredSeriesKind as sr, InvalidRecordError as ss, FieldClaimModeSchema as st, ACTION_RUN_MAX_MS as t, proposeRunningThreshold as ta, formatSecretScope as tc, isInternalActionId as ti, StorageCleanupJobSchema as tn, timedRunQuickRun as to, coverCapability as tr, DEVICE_STATUS_METHOD as ts, EMPTY_REMOTE_CONFIG as tt, ActionTargetResolver as u, resolveActionVariables as ua, isInstanceEnabled as uc, legacyModeOf as ui, actionSourceCapability as un, vectorIndexDimConflictError as uo, deriveBatteryPresence as ur, RECORD_BATCH_MAX as us, HISTORY_CATALOG as ut, CAMSTACK_APP_LINK_ORIGIN as v, resolveMethodAuth as va, makeSecretMarker as vc, logLevelAtMost as vi, alertEpisodePayload as vn, DAY_MS as vo, deviceRunsCapability as vr, ReadinessRegistry as vs, KeychainAuditEntrySchema as vt, CORE_BLOCK_ADDON_PREFIX as w, runFanOut as wa, parseJsonObject as wc, memoizePinnedFfmpeg as wi, bareAddonId as wn, MINUTE_MS as wo, enumerateSchemaFields as wr, RecordUniqueViolationError as ws, MINUTES_PER_DAY as wt, COMPOSED_ITEM_FIXED_FIELDS as x, resolveRemoteSource as xa, nodePin as xc, mayWriteToLocation as xi, armRemovalReconcile as xn, HISTORY_SLOW_MS as xo, deviceTransitionsCapability as xr, RecordKindDeclarationSchema as xs, LegacyStorageLocationDefaultSchema as xt, CAP_NAMES_WITH_STATUS as y, resolveMutate as ya, mapSecretLeaves as yc, looseSchema as yi, alertsCapability as yn, DEFAULT_HISTORY_RETENTION as yo, deviceStateCapability as yr, ReadinessTimeoutError as ys, KeychainResetRecordSchema as yt, DERIVED_CAMERA_SILENCED_CAP_NAMES as z, splitTranslationRef as za, userError as zc, occurrenceOn as zi, checkRoleAddress as zn, integrateReading as zo, formatMinutes as zr, buildSecretRef as zs, QuantityUnitError as zt };
|
|
114201
|
+
export { EMPTY_AUTOMATION_STATE as $, templateCapability as $a, procedureAuthKey as $i, coreBlockSourceKind as $n, BatchTooLargeError as $o, isCredentialTokenPayload as $r, defineRecordKinds as $s, ServerNameSchema as $t, ControlStatusSchema as A, scopesAllowDeviceCap as Aa, readinessKey as Ac, motionCapability as Ai, buildDeviceSignatureMessage as An, composedDeviceStableId as Ao, extractNestedAddonId as Ar, TransactRefusedError as As, PET_FOUNTAIN_WATER_KEY as At, DEVICE_ENROLLMENT_TTL_MS as B, snapshotCapability as Ba, toSecretFieldView as Bc, orderMigrations as Bi, checkTemplatePayload as Bn, historyRetentionFromSettings as Bo, gbToBytes as Br, auditedFields as Bs, RECORDING_SOURCE_CAMSTACK_ADDON as Bt, CORE_BLOCKS_ADDON_ID as C, resolveRunnerId as Ca, nodeIdOfScopedKey as Cc, mediaPlayerFeaturesOfRoles as Ci, backupCapability as Cn, HISTORY_SLOW_MS as Co, enumerateItemArrayFields as Cr, RecordKindDeclarationSchema as Cs, MIGRATION_API_V1_METHODS as Ct, CatalogFileSchema as D, runtimeStatePolicyFor as Da, parseJsonObject as Dc, migrationsCapability as Di, buildActionSteps as Dn, buildFfmpegArgs as Do, evictionPolicyOfLocation as Dr, RevConflictError as Ds, MigrationLedgerEntrySchema as Dt, CalendarPreferencesSchema as E, runSteps as Ea, normalizeSecretOwner as Ec, metricsProviderCapability as Ei, brightnessCapability as En, MINUTE_MS as Eo, evaluateWhenTree as Er, RecordUniqueViolationError as Es, MediaPlayerStatusSchema as Et, DATABASE_SNAPSHOT_TIMEOUT_MS as F, sharedActuatorMethods as Fa, secretTreeFromPaths as Fc, normalizeStepTargets as Fi, canonicalIconKey as Fn, createStatefulExpressionMemory as Fo, filesystemBrowseCapability as Fr, asJsonObject as Fs, PowerSourceInfoSchema as Ft, DEVICE_SAN_USER_PREFIX as G, storageMigrationCapability as Ga, DeviceFeature as Gc, petFountainWaterItem as Gi, compileScalarOverride as Gn, openReset as Go, integrationInstancesCapability as Gr, collectZodSecretPaths as Gs, RemoteConfigSchema as Gt, DEVICE_ID_FIELD as H, stableIdMapOf as Ha, userError as Hc, parseColorInput as Hi, collectWhenMirrorSources as Hn, isForwardInputRef as Ho, groupCommandsCapability as Hr, collectSecretConfigKeys as Hs, ROOT_BUCKET_KEY as Ht, DATA_STORE_DATABASES as I, sharedColorModes as Ia, secretTreeFromSchema as Ic, normalizeUnit as Ii, capUnitResolver as In, disarmRoseMemory as Io, findChannelSource as Ir, asNumber as Is, PreferenceDeviceIdSchema as It, DeclaredDevices as J, streamCatalogCapability as Ja, errMsg as Jc, platformProbeCapability as Ji, compositionSourceRefs as Jn, planStatisticTier as Jo, isAlertEpisodeOpen as Jr, createEvent as Js, STORAGE_LOCATION_MODES as Jt, DEVICE_TOMBSTONE_RETENTION_MS as K, storageOccupancyCapability as Ka, DeviceRole as Kc, pickAppLinkHub as Ki, composerCapability as Kn, openStatistic as Ko, internalActionId as Kr, commandEffect as Ks, RunningStateStatusSchema as Kt, DAY_NAMES as L, shortHostname as La, secretViewsOf as Lc, objectInputDeclaresAddonId as Li, catalogueIssues as Ln, evaluateDerivative as Lo, foldSnapshotByFunction as Lr, asString$1 as Ls, PreferenceNamespaceSchema as Lt, CredentialTokenClaimsSchema as M, seedInstanceOnce as Ma, resolveCapMount as Mc, normalizeActionUnits as Mi, buildStreamParamsConfigSchema as Mn, compositionItemFieldPath as Mo, fanOutTargets as Mr, UnknownRecordKindError as Ms, PROPOSAL_MIN_SPAN_MS as Mt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as N, settingsStoreCapability as Na, resolveSecretMarkers as Nc, normalizeCapStep as Ni, calendarsCapability as Nn, compositionSliceKey as No, fanPresetsCapability as Nr, WELL_KNOWN_TAB_MAP as Ns, PackageRequiresSchema as Nt, ConditionMirror as O, schedulersCapability as Oa, parseJsonUnknown as Oc, modeForSwitch as Oi, buildCapabilityLookup as On, cloneStatefulExpressionMemory as Oo, expandContainer as Or, SECRET_CLEAR as Os, MigrationMetaSchema as Ot, DATABASE_SNAPSHOT_SUFFIX as P, sharedActuatorFeatures as Pa, scopeKey as Pc, normalizeCoreBlockWrite as Pi, cameraGridLayoutCapability as Pn, compositionSourceKey as Po, featureForwards as Pr, actionEffect as Ps, PetFountainStatusSchema as Pt, DiscoveryProposalBodySchema as Q, switchStateOfMode as Qa, problemsBlockSave as Qi, coreBlockIdFromAddonId as Qn, BaseAddon as Qo, isCollectionArrayMethod as Qr, defineEntryKind as Qs, ScopedTokenSchema as Qt, DEFAULT_HOLD_OVERRIDE as R, siteFor as Ra, sleep as Rc, objectInputDeclaresRequiredDeviceId as Ri, checkDeviceAlias as Rn, evaluateStatistic as Ro, formatDeviceRevoker as Rr, assertTransactScope as Rs, PreferenceValueSchema as Rt, COMPOSER_RUNNER_ID as S, resolveRemoteSource as Sa, mapSecretLeaves as Sc, mediaPlayerCapability as Si, authProviderCapability as Sn, HISTORY_FAST_MS as So, enumerateInferenceDevices as Sr, RecordIntegrationInstances as Ss, METHOD_ACCESS_MAP as St, CREDENTIAL_TOKEN_AUDIENCE as T, runFanOut as Ta, normalizeNodeId as Tc, methodRefusal as Ti, batteryCapability as Tn, HelperMemberSchema as To, evaluateCompositionField as Tr, RecordTooLargeError as Ts, MOTION_CLOSE_AFTER_MS as Tt, DEVICE_NONCE_TTL_MS as U, storageAdminCapability as Ua, vocabActionIdFor as Uc, parseStreamParamsFormPatch as Ui, colorCapability as Un, isHistoryHelper as Uo, groupTemplate as Ur, collectSecretLeaves as Us, RecordingStatusSchema as Ut, DEVICE_HISTORY_ENERGY_KEY as V, splitTranslationRef as Va, transformSecretWrite as Vc, parseAcceleratorFactsJson as Vi, climateControlCapability as Vn, integrateReading as Vo, generateDeviceAlias as Vr, buildSecretRef as Vs, REMOTE_MEDIA_COMMANDS as Vt, DEVICE_SAN_CREDENTIAL_PREFIX as W, storageCapability as Wa, withoutCallerStamp as Wc, petFountainCapability as Wi, compareVersions as Wn, nextLocalMidnight as Wo, heroLayoutCapability as Wr, collectSecretMarkerRefs as Ws, RemoteAssumedStateSchema as Wt, DeviceStatusSchema as X, supportedRuntimes as Xa, EventCategory as Xc, powerSourceLinkOfComposition as Xi, coreBlockAddonId as Xn, toExpressionValue as Xo, isAppLinkBase as Xr, defineAddonMigrations as Xs, SchedulerError as Xt, DeviceRunSchema as Y, streamQualityLabel as Ya, featuresOfBoundCaps as Yc, powerSourceCapability as Yi, consumablesCapability as Yn, statisticCadenceMs as Yo, isAlertEpisodeSeverity as Yr, customAction as Ys, STREAM_PROFILE_META as Yt, DeviceTombstoneSchema as Z, switchCapability as Za, preconditionOf as Zi, coreBlockComposition as Zn, wattMillisecondsToKwh as Zo, isArrayOutputSchema as Zr, defineCustomActions as Zs, SchedulerSchema as Zt, CAMERA_SWITCH_ORDER as _, resolveHubAddressRoles as _a, isSecretFieldView as _c, logDestinationCapability as _i, alertEpisodeId as _n, zoneOnlySite as _o, deviceRemovalHookCapability as _r, REDACTED_SECRET as _s, KEYCHAIN_RESET_TRIGGER_ACTOR as _t, AGENT_MDNS_SERVICE_TYPE as a, recordsCapability as aa, getDebugInterest as ac, isVoidInput as ai, SwitchStatusSchema as an, unmetRequirements as ao, databaseSnapshotCapability as ar, DeviceTransitionSchema as as, FanDirectionSchema as at, CATALOG_LANGS as b, resolveMutate as ba, isSecretRefOwnedBy as bc, mayReadLocation as bi, appendTrace as bn, DAY_MS as bo, deviceStatusCapability as br, ReadinessRegistry as bs, LOG_LEVEL_RANK as bt, ActionError as c, remoteLayoutComponentsCapability as ca, hydrateSchema as cc, keychainCapability as ci, UNATTRIBUTED_BUCKET_KEY as cn, validateCustomAddress as co, decodeVectorBase64 as cr, HISTORY_DEFAULT_MIN_INTERVAL_MS as cs, FieldClaimSchema as ct, ActionVariableSchema as d, resolveActionVariables as da, isDeviceConfigCap as dc, lifecycleJobSchema as di, actionWaitTotalMs as dn, vectorDimFromBase64 as do, describeComposableCaps as dr, PlaintextSecretError as ds, HISTORY_ITEM_CATALOG as dt, processTimeZoneOr as ea, emitDownForOwnedCaps as ec, isDefaultAppConnectionEndpoint as ei, SsoBridgeClaimsSchema as en, timedRunCapability as eo, coreBlocksCapability as er, CALLER_STAMPED_CAPABILITIES as es, EMPTY_REMOTE_ASSUMED_STATE as et, AlertSchema as f, resolveAppConnections as fa, isEvent as fc, localDateOf as fi, actionsCapability as fn, vectorIndexDimConflictError as fo, describeUnmet as fr, RECORD_BATCH_MAX as fs, HUB_MDNS_SERVICE_TYPE as ft, BatteryStatusSchema as g, resolveHeroLayout as ga, isSecretClear as gc, lockDoorLinkOfComposition as gi, addonWidgetsCapability as gn, withLocationMode as go, deviceManagerCapability as gr, RECORD_SWEEP_INTERVAL_MS as gs, INTERNAL_ACTION_PREFIX as gt, BaseDevice as h, resolveCoreBlockFiles as ha, isReadingQuantity as hc, lockControlCapability as hi, addonSettingsCapability as hn, withDefaultRunning as ho, deviceHistoryCapability as hr, RECORD_SECRET_COLLECTION_PREFIX as hs, IDLE_ACTION_STATUS as ht, ACTUATOR_TEMPLATE_IDS as i, recordEntriesCapability as ia, formatSecretScope as ic, isSameAddonId as ii, StorageMigrationJobSchema as in, timedRunSeconds as io, dataStoreProviderCapability as ir, DeclarationRefusedError as is, FanControlStatusSchema as it, CoreBlockSchema as j, scoreRuntimes as ja, recordSecretRef as jc, nextOccurrence as ji, buildHeroModel as jn, compositionFeatureEnabled as jo, fanControlCapability as jr, UnindexedFilterError as js, PREFERENCES_MAX_VALUE_BYTES as jt, ConsumableItemSchema as k, scopesAllowAddon as ka, parseSecretRef as kc, modeMayWrite as ki, buildDeviceEnrollmentLink as kn, composedDeviceRef as ko, expressionContainsBuiltinCall as kr, StoredRecordKindDeclarationSchema as ks, NetworkTunnelStartedDataSchema as kt, ActionStepSchema as l, remoteSourceSteps as la, isCommand as lc, legacyAutoLinkIds as li, UserRecordSchema as ln, validateSchedulerInput as lo, defineExtensionSlotProvider as lr, InvalidRecordError as ls, GroupCommandResultSchema as lt, BUILTIN_REMOTE_COMPONENTS as m, resolveCoreBlockEntry as ma, isKeychainStoredField as mc, locationIconKey as mi, addonPagesCapability as mn, weekdayOfLocalDate as mo, deviceExtensionCapability as mr, RECORD_DELETE_BATCH as ms, HvacModeSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, proposeRunningThreshold as na, entryBody as nc, isLocationEnabled as ni, StorageLocationModeSchema as nn, timedRunMaxIn as no, createDeviceExtensionProvider as nr, DEVICE_SETTINGS_CONTRIBUTION_METHODS as ns, FAN_CAPTURE_FIELDS as nt, AGENT_MDNS_TXT_KEYS as o, reducePoints as oa, historyItemFieldPath as oc, kebabToCamel as oi, TemplateKindSchema as on, userManagementCapability as oo, declarationOwnerNodeId as or, FilterRequiredError as os, FanPresetSchema as ot, AutomationStateDocSchema as p, resolveBucketMs as pa, isInstanceEnabled as pc, localNetworkCapability as pi, addonIdOfActionId as pn, vectorStoreCapability as po, deviceCredentialsCapability as pr, RECORD_BATCH_MAX_BYTES as ps, HUB_MDNS_TXT_KEYS as pt, DataStoreDatabaseSchema as q, storageProviderCapability as qa, DeviceType as qc, planComposition as qi, compositionFieldKey as qn, planResetTier as qo, interpolate as qr, commandOrigin as qs, STORAGE_ACCESS_FALLBACK as qt, ACTUATOR_METHODS as r, ptzAutotrackCapability as ra, expandCapMethods as rc, isObjectInput as ri, StorageLocationTypeSchema as rn, timedRunQuickRun as ro, customKeyOfRole as rr, DEVICE_STATUS_METHOD as rs, FIRST_LEVEL_MACRO_CLASSES as rt, ALL_CAPABILITY_DEFINITIONS as s, remoteCapability as sa, historyUnitFor as sc, keychainAdminCapability as si, TokenScopeSchema as sn, validateComposition as so, declaredSeriesKind as sr, ForeignSecretMarkerError as ss, FieldClaimModeSchema as st, ACTION_RUN_MAX_MS as t, projectDeviceRow as ta, emitReadiness as tc, isInternalActionId as ti, StorageCleanupJobSchema as tn, timedRunLimitOf as to, coverCapability as tr, DATAPLANE_SECRET_HEADER as ts, EMPTY_REMOTE_CONFIG as tt, ActionTargetResolver as u, replacedFieldKeys as ua, isDebugChannelName as uc, legacyModeOf as ui, actionSourceCapability as un, valveCapability as uo, deriveBatteryPresence as ur, NoCallerError as us, HISTORY_CATALOG as ut, CAMSTACK_APP_LINK_ORIGIN as v, resolveLocationMode as va, isSecretMarker as vc, logLevelAtMost as vi, alertEpisodePayload as vn, COMPOSER_ADDON_ID as vo, deviceRunsCapability as vr, REMOVE_LEAF as vs, KeychainAuditEntrySchema as vt, CORE_BLOCK_ADDON_PREFIX as w, resolveStepArgs as wa, nodePin as wc, memoizePinnedFfmpeg as wi, bareAddonId as wn, HOUR_MS as wo, enumerateSchemaFields as wr, RecordNotFoundError as ws, MINUTES_PER_DAY as wt, COMPOSED_ITEM_FIXED_FIELDS as x, resolveNotificationTapAddress as xa, makeSecretMarker as xc, mayWriteToLocation as xi, armRemovalReconcile as xn, DEFAULT_HISTORY_RETENTION as xo, deviceTransitionsCapability as xr, ReadinessTimeoutError as xs, LegacyStorageLocationDefaultSchema as xt, CAP_NAMES_WITH_STATUS as y, resolveMethodAuth as ya, isSecretMarkerLike as yc, looseSchema as yi, alertsCapability as yn, CompositionSchema as yo, deviceStateCapability as yr, RUNTIME_DEFAULTS as ys, KeychainResetRecordSchema as yt, DERIVED_CAMERA_SILENCED_CAP_NAMES as z, siteZoneKey as za, toNodeId as zc, occurrenceOn as zi, checkRoleAddress as zn, helperMembers as zo, formatMinutes as zr, assertValidDeclaration as zs, QuantityUnitError as zt };
|