@camstack/addon-provider-homematic 1.2.175 → 1.2.177
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/dist/.bundle-modules.json +594 -0
- package/dist/{MotionZonesSettings-CovCElVu.mjs → MotionZonesSettings-C6QLx6VK.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-rppcqOKk.mjs → PrivacyMaskSettings-Dx6Ufs-V.mjs} +4 -4
- package/dist/{SceneMonitorEditor-pLU11CrP.mjs → SceneMonitorEditor-nXvMwoAO.mjs} +3 -3
- package/dist/_stub.js +1598 -1591
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CmnwYR1R.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CrOc8ugA.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DTDvDddY.mjs +26 -0
- package/dist/addon.js +259 -125
- package/dist/addon.mjs +259 -125
- package/dist/{hostInit-C9STmTzd.mjs → hostInit-BBt6Zlyt.mjs} +2 -2
- package/dist/{player-overlays-Dq97wYPZ.mjs → player-overlays-BZXq7QDF.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-OpRUtaZs.mjs → responsive-IbeeQ3DV.mjs} +1 -1
- package/dist/{scene-monitor-copy-BBuVH6QD.mjs → scene-monitor-copy-Df6-LR2m.mjs} +1 -1
- package/dist/{square-CxQ2Du6f.mjs → square-KyuUazi1.mjs} +1 -1
- package/dist/{trash-2-BPDQvo53.mjs → trash-2-DFo5NGPa.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-BMNsGta0.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-D7fG35MV.mjs} +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DHKRjZRN.mjs +0 -26
package/dist/addon.js
CHANGED
|
@@ -11314,7 +11314,7 @@ object({
|
|
|
11314
11314
|
params: record(string(), union([string(), number()])).optional()
|
|
11315
11315
|
});
|
|
11316
11316
|
//#endregion
|
|
11317
|
-
//#region ../types/dist/composition-
|
|
11317
|
+
//#region ../types/dist/composition-BiKWlUCc.mjs
|
|
11318
11318
|
/**
|
|
11319
11319
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11320
11320
|
*
|
|
@@ -12247,7 +12247,15 @@ var HelperSpecSchema = discriminatedUnion("kind", [
|
|
|
12247
12247
|
thresholdWatts: number().positive(),
|
|
12248
12248
|
startDwellMs: number().int().nonnegative(),
|
|
12249
12249
|
stopDwellMs: number().int().nonnegative(),
|
|
12250
|
-
member: HelperMemberSchema
|
|
12250
|
+
member: HelperMemberSchema,
|
|
12251
|
+
/**
|
|
12252
|
+
* The plug that powers the appliance (`switch.on`). Optional: when set, the
|
|
12253
|
+
* composition carries a `power-source` feature, so the hub can cut and restore
|
|
12254
|
+
* that plug (power-source link of a NEW-target composition).
|
|
12255
|
+
*/
|
|
12256
|
+
powerSwitch: HelperMemberSchema.optional(),
|
|
12257
|
+
/** How long a forced restart keeps the plug off; the cap's default when unset. */
|
|
12258
|
+
offSeconds: number().optional()
|
|
12251
12259
|
}),
|
|
12252
12260
|
object({
|
|
12253
12261
|
kind: literal("statistic"),
|
|
@@ -13645,7 +13653,13 @@ var MigrationLedgerEntrySchema = object({
|
|
|
13645
13653
|
/** Why it is `blocked` or `held` (`dependency-failed`, `snapshot-refused`, …). */
|
|
13646
13654
|
reason: string().nullable(),
|
|
13647
13655
|
nodeId: string().nullable(),
|
|
13648
|
-
bootId: string().nullable()
|
|
13656
|
+
bootId: string().nullable(),
|
|
13657
|
+
/**
|
|
13658
|
+
* The catalogued meta of this id (description, body kind, store, `dependsOn`…),
|
|
13659
|
+
* joined by the engine from the catalogues it knows this boot. Absent when no
|
|
13660
|
+
* catalogue lists the id (a newer database).
|
|
13661
|
+
*/
|
|
13662
|
+
meta: MigrationMetaSchema.optional()
|
|
13649
13663
|
});
|
|
13650
13664
|
/** A catalogued migration that is not applied, with where it stands. */
|
|
13651
13665
|
var MigrationPendingEntrySchema = object({
|
|
@@ -46113,6 +46127,117 @@ function actuator(input) {
|
|
|
46113
46127
|
};
|
|
46114
46128
|
}
|
|
46115
46129
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
46130
|
+
var PowerSourceRefusalReasonSchema = _enum([
|
|
46131
|
+
"no-power-source",
|
|
46132
|
+
"switch-missing",
|
|
46133
|
+
"switch-offline",
|
|
46134
|
+
"switch-unknown",
|
|
46135
|
+
"restart-in-progress",
|
|
46136
|
+
"switch-call-failed"
|
|
46137
|
+
]);
|
|
46138
|
+
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
46139
|
+
accepted: literal(false),
|
|
46140
|
+
reason: PowerSourceRefusalReasonSchema,
|
|
46141
|
+
/** One line for the operator, naming the switch. */
|
|
46142
|
+
message: string()
|
|
46143
|
+
})]);
|
|
46144
|
+
var PowerSourceInfoSchema = object({
|
|
46145
|
+
/** False when the device has no power source linked; the rest is then empty. */
|
|
46146
|
+
linked: boolean(),
|
|
46147
|
+
switchDeviceId: number().nullable(),
|
|
46148
|
+
switchName: string().nullable(),
|
|
46149
|
+
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
46150
|
+
switchOn: boolean().nullable(),
|
|
46151
|
+
switchOnline: boolean().nullable(),
|
|
46152
|
+
restartInProgress: boolean(),
|
|
46153
|
+
offSeconds: number().int()
|
|
46154
|
+
});
|
|
46155
|
+
/** The composed slice: the switch state the link mirrors, plus the stored off time. */
|
|
46156
|
+
var PowerSourceStateSchema = object({
|
|
46157
|
+
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
46158
|
+
switchOn: boolean().nullable(),
|
|
46159
|
+
offSeconds: number().int(),
|
|
46160
|
+
lastFetchedAt: number()
|
|
46161
|
+
});
|
|
46162
|
+
var POWER_SOURCE_DEVICE_TYPES = [
|
|
46163
|
+
DeviceType.Gateway,
|
|
46164
|
+
DeviceType.Hub,
|
|
46165
|
+
DeviceType.Camera,
|
|
46166
|
+
DeviceType.Sensor,
|
|
46167
|
+
DeviceType.MediaPlayer,
|
|
46168
|
+
DeviceType.Vacuum,
|
|
46169
|
+
DeviceType.Generic,
|
|
46170
|
+
DeviceType.Washer,
|
|
46171
|
+
DeviceType.Dryer,
|
|
46172
|
+
DeviceType.Dishwasher,
|
|
46173
|
+
DeviceType.PetFountain,
|
|
46174
|
+
DeviceType.Fan,
|
|
46175
|
+
DeviceType.Humidifier,
|
|
46176
|
+
DeviceType.Climate,
|
|
46177
|
+
DeviceType.WaterHeater
|
|
46178
|
+
];
|
|
46179
|
+
var powerSourceCustomize = {
|
|
46180
|
+
version: 1,
|
|
46181
|
+
targets: [{
|
|
46182
|
+
id: "switch",
|
|
46183
|
+
cardinality: "scalar",
|
|
46184
|
+
vocabulary: {
|
|
46185
|
+
cap: "power-source",
|
|
46186
|
+
stateField: "switchOn"
|
|
46187
|
+
},
|
|
46188
|
+
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
46189
|
+
apply: "add",
|
|
46190
|
+
path: "switchOn",
|
|
46191
|
+
sources: [{
|
|
46192
|
+
kind: "switch",
|
|
46193
|
+
transforms: [{ kind: "identity" }]
|
|
46194
|
+
}],
|
|
46195
|
+
companions: [{
|
|
46196
|
+
kind: "constant",
|
|
46197
|
+
path: "offSeconds",
|
|
46198
|
+
value: 10,
|
|
46199
|
+
when: "add"
|
|
46200
|
+
}, {
|
|
46201
|
+
kind: "clock",
|
|
46202
|
+
path: "lastFetchedAt",
|
|
46203
|
+
when: "always"
|
|
46204
|
+
}],
|
|
46205
|
+
sourceReport: { status: "assignment-status" }
|
|
46206
|
+
}]
|
|
46207
|
+
};
|
|
46208
|
+
var deviceInput$1 = object({ deviceId: number().int().nonnegative() });
|
|
46209
|
+
var powerSourceCapability = {
|
|
46210
|
+
name: "power-source",
|
|
46211
|
+
scope: "device",
|
|
46212
|
+
mode: "singleton",
|
|
46213
|
+
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
46214
|
+
methods: {
|
|
46215
|
+
getStatus: systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "admin" }),
|
|
46216
|
+
powerOn: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
46217
|
+
kind: "mutation",
|
|
46218
|
+
auth: "admin"
|
|
46219
|
+
}),
|
|
46220
|
+
powerOff: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
46221
|
+
kind: "mutation",
|
|
46222
|
+
auth: "admin"
|
|
46223
|
+
}),
|
|
46224
|
+
forceRestart: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
46225
|
+
kind: "mutation",
|
|
46226
|
+
auth: "admin"
|
|
46227
|
+
})
|
|
46228
|
+
},
|
|
46229
|
+
runtimeState: PowerSourceStateSchema,
|
|
46230
|
+
customize: powerSourceCustomize,
|
|
46231
|
+
/**
|
|
46232
|
+
* Runtime-state durability: **session** — mirrored from the linked switch on
|
|
46233
|
+
* its next report; a restored value would outlive the reading it names.
|
|
46234
|
+
*
|
|
46235
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
46236
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
46237
|
+
*/
|
|
46238
|
+
durability: "session",
|
|
46239
|
+
history: "none"
|
|
46240
|
+
};
|
|
46116
46241
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
46117
46242
|
DeviceType.Camera;
|
|
46118
46243
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
@@ -52170,7 +52295,8 @@ var PALETTE_ENTRY_IDS = [
|
|
|
52170
52295
|
"switch",
|
|
52171
52296
|
"siren",
|
|
52172
52297
|
"button",
|
|
52173
|
-
"doorbell"
|
|
52298
|
+
"doorbell",
|
|
52299
|
+
"appliance-cycle"
|
|
52174
52300
|
];
|
|
52175
52301
|
var AUDIO_ENTRY_ID = "audio";
|
|
52176
52302
|
/** Six rungs, quiet → loud. The opaque end is the entry's hex. */
|
|
@@ -52241,7 +52367,8 @@ var CAMSTACK_HEX = {
|
|
|
52241
52367
|
switch: "#7a812a",
|
|
52242
52368
|
siren: "#ac5d7f",
|
|
52243
52369
|
button: "#b276cd",
|
|
52244
|
-
doorbell: "#0087ab"
|
|
52370
|
+
doorbell: "#0087ab",
|
|
52371
|
+
"appliance-cycle": "#2a8c8c"
|
|
52245
52372
|
};
|
|
52246
52373
|
var CAMSTACK_FALLBACK = [
|
|
52247
52374
|
"#b34dc7",
|
|
@@ -52306,7 +52433,8 @@ var HIGH_CONTRAST_HEX = {
|
|
|
52306
52433
|
switch: "#d05259",
|
|
52307
52434
|
siren: "#cd67b3",
|
|
52308
52435
|
button: "#c9746a",
|
|
52309
|
-
doorbell: "#338eeb"
|
|
52436
|
+
doorbell: "#338eeb",
|
|
52437
|
+
"appliance-cycle": "#00848a"
|
|
52310
52438
|
};
|
|
52311
52439
|
var HIGH_CONTRAST_FALLBACK = [
|
|
52312
52440
|
"#817f3b",
|
|
@@ -52371,7 +52499,8 @@ var OKABE_ITO_HEX = {
|
|
|
52371
52499
|
switch: "#ad2c4e",
|
|
52372
52500
|
siren: "#348e08",
|
|
52373
52501
|
button: "#d27303",
|
|
52374
|
-
doorbell: "#55770f"
|
|
52502
|
+
doorbell: "#55770f",
|
|
52503
|
+
"appliance-cycle": "#00737d"
|
|
52375
52504
|
};
|
|
52376
52505
|
var OKABE_ITO_FALLBACK = [
|
|
52377
52506
|
"#9a3784",
|
|
@@ -52580,6 +52709,7 @@ sub("switch", "control", "control", "switch", "Switch");
|
|
|
52580
52709
|
sub("siren", "control", "control", "siren", "Siren");
|
|
52581
52710
|
sub("button", "control", "control", "button", "Button");
|
|
52582
52711
|
sub("doorbell", "control", "control", "doorbell", "Doorbell");
|
|
52712
|
+
sub("appliance-cycle", "control", "control", "switch", "Appliance cycle");
|
|
52583
52713
|
for (const l of AUDIO_MACRO_LABELS) {
|
|
52584
52714
|
const kind = `audio-${l.id}`;
|
|
52585
52715
|
if (entries.has(kind)) continue;
|
|
@@ -61211,7 +61341,8 @@ var CAP_TO_KIND = {
|
|
|
61211
61341
|
cover: "cover",
|
|
61212
61342
|
switch: "switch",
|
|
61213
61343
|
button: "button",
|
|
61214
|
-
doorbell: "doorbell"
|
|
61344
|
+
doorbell: "doorbell",
|
|
61345
|
+
"running-state": "appliance-cycle"
|
|
61215
61346
|
};
|
|
61216
61347
|
function buildDescriptor(capName, kind) {
|
|
61217
61348
|
const t = EVENT_TAXONOMY[kind];
|
|
@@ -65605,19 +65736,19 @@ var RemoteSetConfigResultSchema = discriminatedUnion("status", [object({ status:
|
|
|
65605
65736
|
reason: _enum(["unknown-template", "not-a-media-player"]),
|
|
65606
65737
|
detail: string()
|
|
65607
65738
|
})]);
|
|
65608
|
-
var deviceInput
|
|
65739
|
+
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
65609
65740
|
DeviceType.MediaPlayer;
|
|
65610
|
-
method(deviceInput
|
|
65741
|
+
method(deviceInput, RemoteConfigSchema, { auth: "admin" }), method(deviceInput.extend({ config: RemoteConfigSchema }), RemoteSetConfigResultSchema, {
|
|
65611
65742
|
kind: "mutation",
|
|
65612
65743
|
auth: "admin"
|
|
65613
|
-
}), method(deviceInput
|
|
65744
|
+
}), method(deviceInput, RemoteCommandListSchema, { auth: "protected" }), method(deviceInput.extend({
|
|
65614
65745
|
role: RemoteRoleSchema,
|
|
65615
65746
|
/** Sends in a row (volume steps). */
|
|
65616
65747
|
repeat: number().int().min(1).max(50).default(1)
|
|
65617
65748
|
}), RemoteSendResultSchema, {
|
|
65618
65749
|
kind: "mutation",
|
|
65619
65750
|
auth: "protected"
|
|
65620
|
-
}), method(deviceInput
|
|
65751
|
+
}), method(deviceInput.extend({
|
|
65621
65752
|
command: RemoteMediaCommandSchema,
|
|
65622
65753
|
muted: boolean().optional(),
|
|
65623
65754
|
source: string().optional(),
|
|
@@ -69937,117 +70068,6 @@ var lockControlCapability = {
|
|
|
69937
70068
|
* whether persisting is worth a SQLite commit. */
|
|
69938
70069
|
volatileStateFields: ["lastChangedAt"]
|
|
69939
70070
|
};
|
|
69940
|
-
var PowerSourceRefusalReasonSchema = _enum([
|
|
69941
|
-
"no-power-source",
|
|
69942
|
-
"switch-missing",
|
|
69943
|
-
"switch-offline",
|
|
69944
|
-
"switch-unknown",
|
|
69945
|
-
"restart-in-progress",
|
|
69946
|
-
"switch-call-failed"
|
|
69947
|
-
]);
|
|
69948
|
-
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
69949
|
-
accepted: literal(false),
|
|
69950
|
-
reason: PowerSourceRefusalReasonSchema,
|
|
69951
|
-
/** One line for the operator, naming the switch. */
|
|
69952
|
-
message: string()
|
|
69953
|
-
})]);
|
|
69954
|
-
var PowerSourceInfoSchema = object({
|
|
69955
|
-
/** False when the device has no power source linked; the rest is then empty. */
|
|
69956
|
-
linked: boolean(),
|
|
69957
|
-
switchDeviceId: number().nullable(),
|
|
69958
|
-
switchName: string().nullable(),
|
|
69959
|
-
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
69960
|
-
switchOn: boolean().nullable(),
|
|
69961
|
-
switchOnline: boolean().nullable(),
|
|
69962
|
-
restartInProgress: boolean(),
|
|
69963
|
-
offSeconds: number().int()
|
|
69964
|
-
});
|
|
69965
|
-
/** The composed slice: the switch state the link mirrors, plus the stored off time. */
|
|
69966
|
-
var PowerSourceStateSchema = object({
|
|
69967
|
-
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
69968
|
-
switchOn: boolean().nullable(),
|
|
69969
|
-
offSeconds: number().int(),
|
|
69970
|
-
lastFetchedAt: number()
|
|
69971
|
-
});
|
|
69972
|
-
var POWER_SOURCE_DEVICE_TYPES = [
|
|
69973
|
-
DeviceType.Gateway,
|
|
69974
|
-
DeviceType.Hub,
|
|
69975
|
-
DeviceType.Camera,
|
|
69976
|
-
DeviceType.Sensor,
|
|
69977
|
-
DeviceType.MediaPlayer,
|
|
69978
|
-
DeviceType.Vacuum,
|
|
69979
|
-
DeviceType.Generic,
|
|
69980
|
-
DeviceType.Washer,
|
|
69981
|
-
DeviceType.Dryer,
|
|
69982
|
-
DeviceType.Dishwasher,
|
|
69983
|
-
DeviceType.PetFountain,
|
|
69984
|
-
DeviceType.Fan,
|
|
69985
|
-
DeviceType.Humidifier,
|
|
69986
|
-
DeviceType.Climate,
|
|
69987
|
-
DeviceType.WaterHeater
|
|
69988
|
-
];
|
|
69989
|
-
var powerSourceCustomize = {
|
|
69990
|
-
version: 1,
|
|
69991
|
-
targets: [{
|
|
69992
|
-
id: "switch",
|
|
69993
|
-
cardinality: "scalar",
|
|
69994
|
-
vocabulary: {
|
|
69995
|
-
cap: "power-source",
|
|
69996
|
-
stateField: "switchOn"
|
|
69997
|
-
},
|
|
69998
|
-
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
69999
|
-
apply: "add",
|
|
70000
|
-
path: "switchOn",
|
|
70001
|
-
sources: [{
|
|
70002
|
-
kind: "switch",
|
|
70003
|
-
transforms: [{ kind: "identity" }]
|
|
70004
|
-
}],
|
|
70005
|
-
companions: [{
|
|
70006
|
-
kind: "constant",
|
|
70007
|
-
path: "offSeconds",
|
|
70008
|
-
value: 10,
|
|
70009
|
-
when: "add"
|
|
70010
|
-
}, {
|
|
70011
|
-
kind: "clock",
|
|
70012
|
-
path: "lastFetchedAt",
|
|
70013
|
-
when: "always"
|
|
70014
|
-
}],
|
|
70015
|
-
sourceReport: { status: "assignment-status" }
|
|
70016
|
-
}]
|
|
70017
|
-
};
|
|
70018
|
-
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
70019
|
-
var powerSourceCapability = {
|
|
70020
|
-
name: "power-source",
|
|
70021
|
-
scope: "device",
|
|
70022
|
-
mode: "singleton",
|
|
70023
|
-
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
70024
|
-
methods: {
|
|
70025
|
-
getStatus: systemMethod(deviceInput, PowerSourceInfoSchema, { auth: "admin" }),
|
|
70026
|
-
powerOn: systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70027
|
-
kind: "mutation",
|
|
70028
|
-
auth: "admin"
|
|
70029
|
-
}),
|
|
70030
|
-
powerOff: systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70031
|
-
kind: "mutation",
|
|
70032
|
-
auth: "admin"
|
|
70033
|
-
}),
|
|
70034
|
-
forceRestart: systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70035
|
-
kind: "mutation",
|
|
70036
|
-
auth: "admin"
|
|
70037
|
-
})
|
|
70038
|
-
},
|
|
70039
|
-
runtimeState: PowerSourceStateSchema,
|
|
70040
|
-
customize: powerSourceCustomize,
|
|
70041
|
-
/**
|
|
70042
|
-
* Runtime-state durability: **session** — mirrored from the linked switch on
|
|
70043
|
-
* its next report; a restored value would outlive the reading it names.
|
|
70044
|
-
*
|
|
70045
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
70046
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
70047
|
-
*/
|
|
70048
|
-
durability: "session",
|
|
70049
|
-
history: "none"
|
|
70050
|
-
};
|
|
70051
70071
|
/**
|
|
70052
70072
|
* A monotonic total between resets (D944). Energy uses `power-meter.energy`
|
|
70053
70073
|
* so dashboards keep one series; every other instantaneous reading lands here.
|
|
@@ -73589,6 +73609,10 @@ var RUNNING_DEVICE_TYPES = Object.values(DeviceType);
|
|
|
73589
73609
|
/** Generic Customize target for the running boolean (D936). */
|
|
73590
73610
|
var runningCustomize = {
|
|
73591
73611
|
version: 1,
|
|
73612
|
+
overridable: [{
|
|
73613
|
+
path: "running",
|
|
73614
|
+
by: "running"
|
|
73615
|
+
}],
|
|
73592
73616
|
targets: [{
|
|
73593
73617
|
id: "running",
|
|
73594
73618
|
cardinality: "scalar",
|
|
@@ -73646,7 +73670,7 @@ var runningCustomize = {
|
|
|
73646
73670
|
kind: "constant",
|
|
73647
73671
|
path: "phase",
|
|
73648
73672
|
value: null,
|
|
73649
|
-
when: "
|
|
73673
|
+
when: "add"
|
|
73650
73674
|
},
|
|
73651
73675
|
{
|
|
73652
73676
|
kind: "clock",
|
|
@@ -76930,7 +76954,7 @@ var ExternalIdentityKeySchema = object({
|
|
|
76930
76954
|
provider: string().min(1),
|
|
76931
76955
|
subject: string().min(1)
|
|
76932
76956
|
});
|
|
76933
|
-
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
76957
|
+
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(_void(), object({ defaultPasswordInUse: boolean() }), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
76934
76958
|
kind: "mutation",
|
|
76935
76959
|
auth: "admin",
|
|
76936
76960
|
access: "create"
|
|
@@ -89726,6 +89750,13 @@ Object.freeze({
|
|
|
89726
89750
|
access: "view",
|
|
89727
89751
|
role: "admin"
|
|
89728
89752
|
},
|
|
89753
|
+
"userManagement.getAdminBootstrapStatus": {
|
|
89754
|
+
capName: "user-management",
|
|
89755
|
+
capScope: "system",
|
|
89756
|
+
addonId: null,
|
|
89757
|
+
access: "view",
|
|
89758
|
+
role: "admin"
|
|
89759
|
+
},
|
|
89729
89760
|
"userManagement.getTotpStatus": {
|
|
89730
89761
|
capName: "user-management",
|
|
89731
89762
|
capScope: "system",
|
|
@@ -93693,13 +93724,114 @@ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
|
93693
93724
|
*
|
|
93694
93725
|
* Pure, RN-safe: the viewer imports the support rule from here.
|
|
93695
93726
|
*/
|
|
93727
|
+
/**
|
|
93728
|
+
* Control caps that still have a raise and a clear an operator names: an
|
|
93729
|
+
* appliance cycle raises when it STARTS and clears when it FINISHES. Kept out
|
|
93730
|
+
* of `SOURCE_CAP_ACTIVE_FIELD` on purpose — that table also makes a device a
|
|
93731
|
+
* camera-sensor / recorder-trigger source, and a dishwasher is neither.
|
|
93732
|
+
*/
|
|
93733
|
+
var CYCLE_RAISED_FIELD_BY_CAP = { "running-state": "running" };
|
|
93696
93734
|
/** Event kind → the boolean field of its cap slice that means "raised". */
|
|
93697
93735
|
var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.entries(EVENT_KIND_BY_CAP).flatMap(([capName, descriptor]) => {
|
|
93736
|
+
const cycleField = CYCLE_RAISED_FIELD_BY_CAP[capName];
|
|
93737
|
+
if (cycleField !== void 0) return [[descriptor.kind, cycleField]];
|
|
93698
93738
|
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
93699
93739
|
if (field === void 0 || descriptor.category !== "sensor") return [];
|
|
93700
93740
|
return [[descriptor.kind, field]];
|
|
93701
93741
|
})));
|
|
93702
93742
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
93743
|
+
Object.freeze({
|
|
93744
|
+
contact: {
|
|
93745
|
+
starts: {
|
|
93746
|
+
en: "opened",
|
|
93747
|
+
it: "si apre"
|
|
93748
|
+
},
|
|
93749
|
+
finishes: {
|
|
93750
|
+
en: "closed",
|
|
93751
|
+
it: "si chiude"
|
|
93752
|
+
}
|
|
93753
|
+
},
|
|
93754
|
+
"motion-sensor": {
|
|
93755
|
+
starts: {
|
|
93756
|
+
en: "motion detected",
|
|
93757
|
+
it: "movimento rilevato"
|
|
93758
|
+
},
|
|
93759
|
+
finishes: {
|
|
93760
|
+
en: "motion stopped",
|
|
93761
|
+
it: "movimento terminato"
|
|
93762
|
+
}
|
|
93763
|
+
},
|
|
93764
|
+
smoke: {
|
|
93765
|
+
starts: {
|
|
93766
|
+
en: "smoke detected",
|
|
93767
|
+
it: "fumo rilevato"
|
|
93768
|
+
},
|
|
93769
|
+
finishes: {
|
|
93770
|
+
en: "smoke gone",
|
|
93771
|
+
it: "fumo scomparso"
|
|
93772
|
+
}
|
|
93773
|
+
},
|
|
93774
|
+
flood: {
|
|
93775
|
+
starts: {
|
|
93776
|
+
en: "water detected",
|
|
93777
|
+
it: "acqua rilevata"
|
|
93778
|
+
},
|
|
93779
|
+
finishes: {
|
|
93780
|
+
en: "dry again",
|
|
93781
|
+
it: "di nuovo asciutto"
|
|
93782
|
+
}
|
|
93783
|
+
},
|
|
93784
|
+
gas: {
|
|
93785
|
+
starts: {
|
|
93786
|
+
en: "gas detected",
|
|
93787
|
+
it: "gas rilevato"
|
|
93788
|
+
},
|
|
93789
|
+
finishes: {
|
|
93790
|
+
en: "gas gone",
|
|
93791
|
+
it: "gas scomparso"
|
|
93792
|
+
}
|
|
93793
|
+
},
|
|
93794
|
+
"carbon-monoxide": {
|
|
93795
|
+
starts: {
|
|
93796
|
+
en: "carbon monoxide detected",
|
|
93797
|
+
it: "monossido rilevato"
|
|
93798
|
+
},
|
|
93799
|
+
finishes: {
|
|
93800
|
+
en: "carbon monoxide gone",
|
|
93801
|
+
it: "monossido scomparso"
|
|
93802
|
+
}
|
|
93803
|
+
},
|
|
93804
|
+
vibration: {
|
|
93805
|
+
starts: {
|
|
93806
|
+
en: "vibration detected",
|
|
93807
|
+
it: "vibrazione rilevata"
|
|
93808
|
+
},
|
|
93809
|
+
finishes: {
|
|
93810
|
+
en: "vibration stopped",
|
|
93811
|
+
it: "vibrazione terminata"
|
|
93812
|
+
}
|
|
93813
|
+
},
|
|
93814
|
+
tamper: {
|
|
93815
|
+
starts: {
|
|
93816
|
+
en: "tampered with",
|
|
93817
|
+
it: "manomesso"
|
|
93818
|
+
},
|
|
93819
|
+
finishes: {
|
|
93820
|
+
en: "tamper cleared",
|
|
93821
|
+
it: "manomissione rientrata"
|
|
93822
|
+
}
|
|
93823
|
+
},
|
|
93824
|
+
"appliance-cycle": {
|
|
93825
|
+
starts: {
|
|
93826
|
+
en: "the cycle started",
|
|
93827
|
+
it: "il ciclo parte"
|
|
93828
|
+
},
|
|
93829
|
+
finishes: {
|
|
93830
|
+
en: "the cycle finished",
|
|
93831
|
+
it: "il ciclo è terminato"
|
|
93832
|
+
}
|
|
93833
|
+
}
|
|
93834
|
+
});
|
|
93703
93835
|
object({
|
|
93704
93836
|
phase: _enum(["raised", "resolved"]),
|
|
93705
93837
|
episodeId: string().min(1),
|
|
@@ -93923,6 +94055,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
93923
94055
|
[...RULE_TEXT],
|
|
93924
94056
|
[...RULE_TEXT],
|
|
93925
94057
|
[...RULE_TEXT],
|
|
94058
|
+
[...RULE_TEXT],
|
|
93926
94059
|
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
93927
94060
|
[...RULE_TEXT],
|
|
93928
94061
|
[...RULE_TEXT],
|
|
@@ -94167,6 +94300,7 @@ new Set([
|
|
|
94167
94300
|
"siren",
|
|
94168
94301
|
"button",
|
|
94169
94302
|
"doorbell",
|
|
94303
|
+
"appliance-cycle",
|
|
94170
94304
|
"audio-speech",
|
|
94171
94305
|
"audio-scream",
|
|
94172
94306
|
"audio-crying",
|