@camstack/addon-provider-homematic 1.2.179 → 1.2.181
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 +1 -510
- package/dist/_stub.js +3689 -41910
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-dXxSAeGu.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-UqgGIdfI.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DINQBJ6Y.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react__loadShare__.js-iX7UoD9E.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-D_jZoh_U.mjs → _virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-15LkOsGv.mjs} +8 -8
- package/dist/addon-provider-homematic.css +1 -1
- package/dist/addon.js +525 -52
- package/dist/addon.mjs +525 -52
- package/dist/{hostInit-CopEQciR.mjs → hostInit-_DiBGHlp.mjs} +3 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-C3238YNy.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-B89pkD2D.mjs} +1 -1
- package/package.json +5 -2
- package/dist/MaskShapeCanvas-CDl4Fjwd.mjs +0 -13807
- package/dist/MotionZonesSettings-iV0V-bGv.mjs +0 -309
- package/dist/PrivacyMaskSettings-BRWe3BS0.mjs +0 -368
- package/dist/SceneMonitorEditor-1TgXp_Us.mjs +0 -845
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-CPcqOaRO.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-epfwWFvs.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BoWMuzy9.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-4mAmVpjj.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-BFwxPZri.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react__loadShare__.js-Dh5aq0TM.mjs +0 -70
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_2_dom__loadShare__.js-CTw4odxf.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CthMbXtY.mjs +0 -25
- package/dist/player-overlays-CDL5sMuN.mjs +0 -51
- package/dist/responsive-ClNdgBUK.mjs +0 -129
- package/dist/rolldown-runtime-HEgqtunE.mjs +0 -20
- package/dist/scene-monitor-copy-CUSQphuV.mjs +0 -243
- package/dist/square-HWTnxi8E.mjs +0 -45
- package/dist/trash-2-BUFcf4hK.mjs +0 -25
- package/dist/ui-text-2ABkGEt_.mjs +0 -34
package/dist/addon.mjs
CHANGED
|
@@ -795,7 +795,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
795
795
|
return EventCategory;
|
|
796
796
|
}({});
|
|
797
797
|
//#endregion
|
|
798
|
-
//#region ../types/dist/device-type-
|
|
798
|
+
//#region ../types/dist/device-type-CfHw_quR.mjs
|
|
799
799
|
/**
|
|
800
800
|
import { errMsg } from '@camstack/types'
|
|
801
801
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -984,6 +984,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
984
984
|
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
985
985
|
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
986
986
|
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
987
|
+
/** Cover has a real stop: `stop` halts the travel in place. Gates the stop
|
|
988
|
+
* control in exporters; a provider whose `stop` is a no-op never declares it. */
|
|
989
|
+
DeviceFeature["CoverStoppable"] = "cover-stoppable";
|
|
987
990
|
/** Valve exposes intermediate position control (0..100). Gates the
|
|
988
991
|
* position slider / drag surface UI. */
|
|
989
992
|
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
@@ -5849,7 +5852,7 @@ var ZodIssueCode = {
|
|
|
5849
5852
|
var ZodFirstPartyTypeKind;
|
|
5850
5853
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5851
5854
|
//#endregion
|
|
5852
|
-
//#region ../types/dist/sleep-
|
|
5855
|
+
//#region ../types/dist/sleep-QsoHs66J.mjs
|
|
5853
5856
|
/**
|
|
5854
5857
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5855
5858
|
* window to float samples (D455).
|
|
@@ -5966,7 +5969,7 @@ function isKeychainStoredField(field) {
|
|
|
5966
5969
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5967
5970
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5968
5971
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5969
|
-
function isRecord$
|
|
5972
|
+
function isRecord$7(value) {
|
|
5970
5973
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5971
5974
|
}
|
|
5972
5975
|
function makeSecretMarker(ref) {
|
|
@@ -5977,12 +5980,12 @@ function makeSecretMarker(ref) {
|
|
|
5977
5980
|
}
|
|
5978
5981
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5979
5982
|
function isSecretMarker(value) {
|
|
5980
|
-
if (!isRecord$
|
|
5983
|
+
if (!isRecord$7(value)) return false;
|
|
5981
5984
|
const ref = value["$secret"];
|
|
5982
5985
|
return typeof ref === "string" && ref.length > 0;
|
|
5983
5986
|
}
|
|
5984
5987
|
function isSecretClear(value) {
|
|
5985
|
-
return isRecord$
|
|
5988
|
+
return isRecord$7(value) && value["$secretClear"] === true;
|
|
5986
5989
|
}
|
|
5987
5990
|
/**
|
|
5988
5991
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6688,7 +6691,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6688
6691
|
}
|
|
6689
6692
|
};
|
|
6690
6693
|
var KEEP = { kind: "keep" };
|
|
6691
|
-
function isRecord$
|
|
6694
|
+
function isRecord$6(value) {
|
|
6692
6695
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6693
6696
|
}
|
|
6694
6697
|
function defaultMintId() {
|
|
@@ -6701,7 +6704,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6701
6704
|
return out;
|
|
6702
6705
|
}
|
|
6703
6706
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6704
|
-
else if (isRecord$
|
|
6707
|
+
else if (isRecord$6(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6705
6708
|
return out;
|
|
6706
6709
|
}
|
|
6707
6710
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6756,7 +6759,7 @@ function rowId(row, idKey) {
|
|
|
6756
6759
|
return null;
|
|
6757
6760
|
}
|
|
6758
6761
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6759
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6762
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$6) : [];
|
|
6760
6763
|
if (!Array.isArray(incoming)) {
|
|
6761
6764
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6762
6765
|
return {
|
|
@@ -6772,7 +6775,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6772
6775
|
const kept = /* @__PURE__ */ new Set();
|
|
6773
6776
|
const rows = [];
|
|
6774
6777
|
for (const row of incoming) {
|
|
6775
|
-
if (!isRecord$
|
|
6778
|
+
if (!isRecord$6(row)) {
|
|
6776
6779
|
rows.push(row);
|
|
6777
6780
|
continue;
|
|
6778
6781
|
}
|
|
@@ -6797,7 +6800,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6797
6800
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6798
6801
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6799
6802
|
case "object": {
|
|
6800
|
-
if (!isRecord$
|
|
6803
|
+
if (!isRecord$6(incoming)) {
|
|
6801
6804
|
if (incoming === void 0) return KEEP;
|
|
6802
6805
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6803
6806
|
return {
|
|
@@ -6805,7 +6808,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6805
6808
|
value: incoming
|
|
6806
6809
|
};
|
|
6807
6810
|
}
|
|
6808
|
-
const storedObj = isRecord$
|
|
6811
|
+
const storedObj = isRecord$6(stored) ? stored : {};
|
|
6809
6812
|
return {
|
|
6810
6813
|
kind: "value",
|
|
6811
6814
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6928,7 +6931,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6928
6931
|
value: items
|
|
6929
6932
|
};
|
|
6930
6933
|
}
|
|
6931
|
-
if (isRecord$
|
|
6934
|
+
if (isRecord$6(v)) {
|
|
6932
6935
|
const out = {};
|
|
6933
6936
|
for (const [k, child] of Object.entries(v)) {
|
|
6934
6937
|
const s = substitute(child);
|
|
@@ -6960,7 +6963,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6960
6963
|
this.name = "SecretOverwriteRefusedError";
|
|
6961
6964
|
}
|
|
6962
6965
|
};
|
|
6963
|
-
function isRecord$
|
|
6966
|
+
function isRecord$5(value) {
|
|
6964
6967
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6965
6968
|
}
|
|
6966
6969
|
function resolvedValue(pass, marker) {
|
|
@@ -6989,7 +6992,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6989
6992
|
return incoming.map((item, index) => {
|
|
6990
6993
|
const twin = stored[index];
|
|
6991
6994
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6992
|
-
if (isRecord$
|
|
6995
|
+
if (isRecord$5(item) && isRecord$5(twin)) return inArrayRow(pass, item, twin);
|
|
6993
6996
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6994
6997
|
return item;
|
|
6995
6998
|
});
|
|
@@ -7000,7 +7003,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
7000
7003
|
const twin = stored[key];
|
|
7001
7004
|
if (isSecretMarker(twin)) {
|
|
7002
7005
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
7003
|
-
} else if (isRecord$
|
|
7006
|
+
} else if (isRecord$5(value) && isRecord$5(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
7004
7007
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
7005
7008
|
}
|
|
7006
7009
|
return out;
|
|
@@ -7008,7 +7011,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
7008
7011
|
async function walk(pass, incoming, stored) {
|
|
7009
7012
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
7010
7013
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
7011
|
-
if (!isRecord$
|
|
7014
|
+
if (!isRecord$5(incoming) || !isRecord$5(stored)) return incoming;
|
|
7012
7015
|
const out = { ...incoming };
|
|
7013
7016
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
7014
7017
|
return out;
|
|
@@ -7039,7 +7042,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
7039
7042
|
function isJsonEqual(a, b) {
|
|
7040
7043
|
if (Object.is(a, b)) return true;
|
|
7041
7044
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
7042
|
-
if (isRecord$
|
|
7045
|
+
if (isRecord$5(a) && isRecord$5(b)) {
|
|
7043
7046
|
const keys = Object.keys(a);
|
|
7044
7047
|
if (keys.length !== Object.keys(b).length) return false;
|
|
7045
7048
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -7063,7 +7066,7 @@ function markerKeysOf(blob, owner) {
|
|
|
7063
7066
|
}
|
|
7064
7067
|
function nodeFromStored(value, owner) {
|
|
7065
7068
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
7066
|
-
if (!isRecord$
|
|
7069
|
+
if (!isRecord$5(value)) return null;
|
|
7067
7070
|
const children = /* @__PURE__ */ new Map();
|
|
7068
7071
|
for (const [key, child] of Object.entries(value)) {
|
|
7069
7072
|
const node = nodeFromStored(child, owner);
|
|
@@ -7682,6 +7685,44 @@ var BaseAddon = class {
|
|
|
7682
7685
|
return null;
|
|
7683
7686
|
}
|
|
7684
7687
|
/**
|
|
7688
|
+
* D986 scoped settings: the form shape of the CLUSTER-wide settings one capability this addon
|
|
7689
|
+
* provides owns, or `null` when it has none. `cap` is a capability name the addon's manifest
|
|
7690
|
+
* declares. Stored as `addon-settings` rows `<addonId>.<field>`. The keys of this schema, of
|
|
7691
|
+
* {@link nodeSettingsSchema} and of {@link deviceDefaultsSchema} are disjoint, and a key never
|
|
7692
|
+
* contains `@` (guard `check-scoped-settings-declared`). SHAPE only: values are read by scope.
|
|
7693
|
+
*/
|
|
7694
|
+
async clusterSettingsSchema(_cap) {
|
|
7695
|
+
return null;
|
|
7696
|
+
}
|
|
7697
|
+
/**
|
|
7698
|
+
* D986: the form shape of the settings one capability owns PER NODE, or `null`. Stored as
|
|
7699
|
+
* `addon-settings` rows `<addonId>.<field>@<nodeId>` carrying `nodeId` in the row data, so a
|
|
7700
|
+
* forgotten node's rows go in one central delete.
|
|
7701
|
+
*/
|
|
7702
|
+
async nodeSettingsSchema(_cap) {
|
|
7703
|
+
return null;
|
|
7704
|
+
}
|
|
7705
|
+
/**
|
|
7706
|
+
* D986: the form shape of the FLEET DEFAULTS of the per-device settings one capability owns,
|
|
7707
|
+
* or `null`. Stored as `addon-settings` rows `<addonId>.<field>`; a device resolves its value
|
|
7708
|
+
* as device row, then this default, then the schema default (`resolveDeviceSettings`).
|
|
7709
|
+
*/
|
|
7710
|
+
async deviceDefaultsSchema(_cap) {
|
|
7711
|
+
return null;
|
|
7712
|
+
}
|
|
7713
|
+
/**
|
|
7714
|
+
* The host's read of the scoped declarations: the schema one capability declares for `scope`,
|
|
7715
|
+
* or `null`. Beside {@link getIntegrationFormSchema}, the same shape: the hook is protected, the
|
|
7716
|
+
* host asks this method.
|
|
7717
|
+
*/
|
|
7718
|
+
async getScopedSettingsSchema(scope, cap) {
|
|
7719
|
+
switch (scope) {
|
|
7720
|
+
case "cluster": return this.clusterSettingsSchema(cap);
|
|
7721
|
+
case "node": return this.nodeSettingsSchema(cap);
|
|
7722
|
+
case "device-defaults": return this.deviceDefaultsSchema(cap);
|
|
7723
|
+
}
|
|
7724
|
+
}
|
|
7725
|
+
/**
|
|
7685
7726
|
* What the create wizard and the integration edit page render for one instance: the addon's
|
|
7686
7727
|
* per-instance schema when it declares one, else its global schema (what they always showed).
|
|
7687
7728
|
*/
|
|
@@ -8475,6 +8516,21 @@ function normalizeAddonInitResult(result) {
|
|
|
8475
8516
|
if (Array.isArray(result)) return { providers: result };
|
|
8476
8517
|
return result;
|
|
8477
8518
|
}
|
|
8519
|
+
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
8520
|
+
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
8521
|
+
var RECORD_DATABASES = ["settings", "events"];
|
|
8522
|
+
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
8523
|
+
var RECORD_CLASSES = [
|
|
8524
|
+
"config",
|
|
8525
|
+
"ledger",
|
|
8526
|
+
"audit",
|
|
8527
|
+
"mirror",
|
|
8528
|
+
"ephemeral"
|
|
8529
|
+
];
|
|
8530
|
+
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
8531
|
+
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
8532
|
+
var RECORD_BATCH_MAX = 1e3;
|
|
8533
|
+
var RECORD_QUERY_MAX = 1e3;
|
|
8478
8534
|
/**
|
|
8479
8535
|
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
8480
8536
|
* and validates them (`ShareViewGrantSchema` builds its
|
|
@@ -8499,21 +8555,6 @@ var PeerBytesTicketSchema = object({
|
|
|
8499
8555
|
*/
|
|
8500
8556
|
declaredBytes: number().int().nonnegative().nullable()
|
|
8501
8557
|
});
|
|
8502
|
-
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
8503
|
-
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
8504
|
-
var RECORD_DATABASES = ["settings", "events"];
|
|
8505
|
-
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
8506
|
-
var RECORD_CLASSES = [
|
|
8507
|
-
"config",
|
|
8508
|
-
"ledger",
|
|
8509
|
-
"audit",
|
|
8510
|
-
"mirror",
|
|
8511
|
-
"ephemeral"
|
|
8512
|
-
];
|
|
8513
|
-
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
8514
|
-
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
8515
|
-
var RECORD_BATCH_MAX = 1e3;
|
|
8516
|
-
var RECORD_QUERY_MAX = 1e3;
|
|
8517
8558
|
function defOf(schema) {
|
|
8518
8559
|
const zodBag = Reflect.get(schema, "_zod");
|
|
8519
8560
|
if (typeof zodBag !== "object" || zodBag === null) return {};
|
|
@@ -9384,6 +9425,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
9384
9425
|
"device-status",
|
|
9385
9426
|
"dishwasher",
|
|
9386
9427
|
"display-palette",
|
|
9428
|
+
"do-not-disturb",
|
|
9387
9429
|
"doorbell",
|
|
9388
9430
|
"embedding-encoder",
|
|
9389
9431
|
"enum-sensor",
|
|
@@ -9404,6 +9446,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
9404
9446
|
"humidity-sensor",
|
|
9405
9447
|
"image",
|
|
9406
9448
|
"image-settings",
|
|
9449
|
+
"integration-instances",
|
|
9407
9450
|
"integrations",
|
|
9408
9451
|
"intercom",
|
|
9409
9452
|
"ir-transmitter",
|
|
@@ -10143,6 +10186,10 @@ Object.freeze({
|
|
|
10143
10186
|
"valueType": "string"
|
|
10144
10187
|
}
|
|
10145
10188
|
],
|
|
10189
|
+
"do-not-disturb": [{
|
|
10190
|
+
"path": "enabled",
|
|
10191
|
+
"valueType": "boolean"
|
|
10192
|
+
}],
|
|
10146
10193
|
"doorbell": [{
|
|
10147
10194
|
"path": "lastPressedAt",
|
|
10148
10195
|
"valueType": "number"
|
|
@@ -11333,7 +11380,7 @@ object({
|
|
|
11333
11380
|
params: record(string(), union([string(), number()])).optional()
|
|
11334
11381
|
});
|
|
11335
11382
|
//#endregion
|
|
11336
|
-
//#region ../types/dist/composition-
|
|
11383
|
+
//#region ../types/dist/composition-Dh3RfMx5.mjs
|
|
11337
11384
|
/**
|
|
11338
11385
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
11339
11386
|
*
|
|
@@ -15589,8 +15636,18 @@ var LogChannelDescriptorSchema = object({
|
|
|
15589
15636
|
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
15590
15637
|
* path was never taken.
|
|
15591
15638
|
*/
|
|
15592
|
-
perDevice: boolean()
|
|
15593
|
-
|
|
15639
|
+
perDevice: boolean(),
|
|
15640
|
+
/**
|
|
15641
|
+
* What the channel is FOR, so the UI can list the channels an addon offers.
|
|
15642
|
+
*
|
|
15643
|
+
* - `diagnostic` (the default): a per-component diagnostic armed from the
|
|
15644
|
+
* Levels page, emitted at its declared level.
|
|
15645
|
+
* - `debug`: a `debug.<channel>` dump watched live for a short window
|
|
15646
|
+
* (`ctx.debug`). Always per-device, and its lines are denied by the log
|
|
15647
|
+
* ring unless somebody is watching that device.
|
|
15648
|
+
*/
|
|
15649
|
+
kind: _enum(["diagnostic", "debug"]).default("diagnostic")
|
|
15650
|
+
}).refine((d) => d.kind !== "debug" || d.name.startsWith("debug.") && d.perDevice, { message: "a debug channel is named debug.<channel> and is per-device" });
|
|
15594
15651
|
/**
|
|
15595
15652
|
* An armed window over one channel, as the document hands it to a mirror.
|
|
15596
15653
|
*
|
|
@@ -19565,6 +19622,33 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
19565
19622
|
}
|
|
19566
19623
|
]
|
|
19567
19624
|
},
|
|
19625
|
+
"do-not-disturb": {
|
|
19626
|
+
scope: "device",
|
|
19627
|
+
noun: t("Do not disturb", "Non disturbare"),
|
|
19628
|
+
actions: [{
|
|
19629
|
+
id: "dnd.on",
|
|
19630
|
+
method: "setEnabled",
|
|
19631
|
+
label: t("Do not disturb on", "Attiva Non disturbare"),
|
|
19632
|
+
phrase: t("Turn on Do not disturb on {device}", "Attiva Non disturbare su {device}"),
|
|
19633
|
+
icon: "bell-off",
|
|
19634
|
+
args: { enabled: true }
|
|
19635
|
+
}, {
|
|
19636
|
+
id: "dnd.off",
|
|
19637
|
+
method: "setEnabled",
|
|
19638
|
+
label: t("Do not disturb off", "Disattiva Non disturbare"),
|
|
19639
|
+
phrase: t("Turn off Do not disturb on {device}", "Disattiva Non disturbare su {device}"),
|
|
19640
|
+
icon: "bell",
|
|
19641
|
+
args: { enabled: false }
|
|
19642
|
+
}],
|
|
19643
|
+
state: [{
|
|
19644
|
+
kind: "boolean",
|
|
19645
|
+
field: "enabled",
|
|
19646
|
+
label: t("Do not disturb", "Non disturbare"),
|
|
19647
|
+
whenTrue: t("When Do not disturb turns on on {device}", "Quando {device} attiva Non disturbare"),
|
|
19648
|
+
whenFalse: t("When Do not disturb turns off on {device}", "Quando {device} disattiva Non disturbare"),
|
|
19649
|
+
icon: "bell-off"
|
|
19650
|
+
}]
|
|
19651
|
+
},
|
|
19568
19652
|
update: {
|
|
19569
19653
|
scope: "device",
|
|
19570
19654
|
noun: t("Firmware update", "Aggiornamento firmware"),
|
|
@@ -20779,6 +20863,7 @@ var SYSTEM_CAP_VOCABULARY = {
|
|
|
20779
20863
|
"load-contribution": system(INTERNAL),
|
|
20780
20864
|
"local-network": system(NETWORK),
|
|
20781
20865
|
"log-channels": system(INTERNAL),
|
|
20866
|
+
"integration-instances": system(INTERNAL),
|
|
20782
20867
|
"log-destination": system(INTERNAL),
|
|
20783
20868
|
"login-method": system(IDENTITY),
|
|
20784
20869
|
"mesh-network": system(NETWORK),
|
|
@@ -41760,14 +41845,16 @@ var DeviceIsLeafSchema = object({
|
|
|
41760
41845
|
});
|
|
41761
41846
|
/**
|
|
41762
41847
|
* True when the camera currently has a PARKED object matching `subjects` in at
|
|
41763
|
-
* least one of `zones
|
|
41848
|
+
* least one of `zones` (`minCount` of them, default one). Reads the zone-analytics snapshot through the same
|
|
41764
41849
|
* mirror as every other state leaf, so a dropped event never decides it (D49).
|
|
41765
41850
|
*/
|
|
41766
41851
|
var StationaryPresentLeafSchema = object({
|
|
41767
41852
|
kind: literal("stationary-present"),
|
|
41768
41853
|
deviceId: number().int().nonnegative(),
|
|
41769
41854
|
subjects: array(StationarySubjectSchema).min(1).optional(),
|
|
41770
|
-
zones: array(string().min(1)).min(1).optional()
|
|
41855
|
+
zones: array(string().min(1)).min(1).optional(),
|
|
41856
|
+
/** How many matching parked objects must be there; absent means one. */
|
|
41857
|
+
minCount: number().int().positive().optional()
|
|
41771
41858
|
});
|
|
41772
41859
|
/**
|
|
41773
41860
|
* The escape hatch: the bounded expression engine over named device bindings.
|
|
@@ -42279,6 +42366,28 @@ function convertLegacyRecipe(legacy) {
|
|
|
42279
42366
|
* it. The output type is always the new one.
|
|
42280
42367
|
*/
|
|
42281
42368
|
var AutomationRecipeSchema = union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
|
|
42369
|
+
var DETECTION_DESCRIPTIONS = {
|
|
42370
|
+
deviceId: "the camera that saw it",
|
|
42371
|
+
className: "what it saw",
|
|
42372
|
+
trackId: "the track",
|
|
42373
|
+
score: "how sure the detector was",
|
|
42374
|
+
label: "the label it matched (a name, a plate), empty when none"
|
|
42375
|
+
};
|
|
42376
|
+
var STATIONARY_DESCRIPTIONS = {
|
|
42377
|
+
deviceId: "the camera that saw it",
|
|
42378
|
+
className: "what it saw",
|
|
42379
|
+
zones: "the zones it is in",
|
|
42380
|
+
phase: "appeared or departed",
|
|
42381
|
+
entryId: "the stopped object"
|
|
42382
|
+
};
|
|
42383
|
+
function describe$1(descriptions) {
|
|
42384
|
+
return Object.entries(descriptions).map(([name, description]) => ({
|
|
42385
|
+
name,
|
|
42386
|
+
description
|
|
42387
|
+
}));
|
|
42388
|
+
}
|
|
42389
|
+
describe$1(DETECTION_DESCRIPTIONS);
|
|
42390
|
+
describe$1(STATIONARY_DESCRIPTIONS);
|
|
42282
42391
|
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
42283
42392
|
/**
|
|
42284
42393
|
* Schedulers (D983) — an entity that performs actions over the day.
|
|
@@ -43040,7 +43149,7 @@ var TargetKindCapsSchema = object({
|
|
|
43040
43149
|
* the union is large and not meant for runtime validation here; the exported
|
|
43041
43150
|
* `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
|
|
43042
43151
|
*/
|
|
43043
|
-
var ConfigSchemaPassthrough$
|
|
43152
|
+
var ConfigSchemaPassthrough$4 = unknown();
|
|
43044
43153
|
var TargetKindSchema = object({
|
|
43045
43154
|
kind: string(),
|
|
43046
43155
|
label: string(),
|
|
@@ -43077,7 +43186,7 @@ var TargetKindSchema = object({
|
|
|
43077
43186
|
* its raster path, which is the safe default for an unknown image.
|
|
43078
43187
|
*/
|
|
43079
43188
|
iconMediaType: string().optional(),
|
|
43080
|
-
configSchema: ConfigSchemaPassthrough$
|
|
43189
|
+
configSchema: ConfigSchemaPassthrough$4,
|
|
43081
43190
|
/**
|
|
43082
43191
|
* The config keys that decide WHERE this kind's secrets are sent (server,
|
|
43083
43192
|
* base URL, instance, chat, recipient). A save that changes any of them
|
|
@@ -50704,6 +50813,45 @@ var deviceProviderCapability = {
|
|
|
50704
50813
|
}
|
|
50705
50814
|
};
|
|
50706
50815
|
/**
|
|
50816
|
+
* What the passive listener of `local-network` saw on the wire, before any
|
|
50817
|
+
* provider classified it. Device-manager turns an observation into the hits
|
|
50818
|
+
* of the providers whose declared discovery modes it matches.
|
|
50819
|
+
*/
|
|
50820
|
+
var DiscoveryObservationSchema = discriminatedUnion("kind", [object({
|
|
50821
|
+
kind: literal("mdns"),
|
|
50822
|
+
/** Normalised DNS-SD service type, e.g. `_esphomelib._tcp`. */
|
|
50823
|
+
serviceType: string(),
|
|
50824
|
+
instance: string(),
|
|
50825
|
+
host: string(),
|
|
50826
|
+
/** The A record address when the announcement carried one. */
|
|
50827
|
+
address: string().nullable(),
|
|
50828
|
+
port: number().int(),
|
|
50829
|
+
txt: record(string(), string())
|
|
50830
|
+
}), object({
|
|
50831
|
+
kind: literal("ssdp"),
|
|
50832
|
+
/** Sender address of the datagram. */
|
|
50833
|
+
host: string(),
|
|
50834
|
+
port: number().int(),
|
|
50835
|
+
/** `NT` of a NOTIFY, `ST` of a search response. */
|
|
50836
|
+
target: string(),
|
|
50837
|
+
headers: record(string(), string())
|
|
50838
|
+
})]);
|
|
50839
|
+
object({
|
|
50840
|
+
addonId: string(),
|
|
50841
|
+
candidate: DiscoveryCandidateSchema,
|
|
50842
|
+
firstSeenAt: number(),
|
|
50843
|
+
lastSeenAt: number(),
|
|
50844
|
+
dismissed: boolean()
|
|
50845
|
+
});
|
|
50846
|
+
var DiscoveryProposalSchema = object({
|
|
50847
|
+
id: string(),
|
|
50848
|
+
addonId: string(),
|
|
50849
|
+
candidate: DiscoveryCandidateSchema,
|
|
50850
|
+
firstSeenAt: number(),
|
|
50851
|
+
lastSeenAt: number(),
|
|
50852
|
+
dismissed: boolean()
|
|
50853
|
+
});
|
|
50854
|
+
/**
|
|
50707
50855
|
* Device Manager capability — hub-side singleton that unifies device persistence,
|
|
50708
50856
|
* live registry access, and all management operations into a single tRPC surface.
|
|
50709
50857
|
*
|
|
@@ -51432,6 +51580,19 @@ method(object({
|
|
|
51432
51580
|
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
51433
51581
|
kind: "mutation",
|
|
51434
51582
|
auth: "admin"
|
|
51583
|
+
}), method(object({}), object({ proposals: array(DiscoveryProposalSchema).readonly() }), { auth: "admin" }), method(object({ id: string() }), object({ dismissed: boolean() }), {
|
|
51584
|
+
kind: "mutation",
|
|
51585
|
+
auth: "admin"
|
|
51586
|
+
}), method(object({ observations: array(DiscoveryObservationSchema).max(512) }), object({ proposed: number().int() }), {
|
|
51587
|
+
kind: "mutation",
|
|
51588
|
+
auth: "admin"
|
|
51589
|
+
}), method(object({}), object({
|
|
51590
|
+
providers: number().int(),
|
|
51591
|
+
proposed: number().int()
|
|
51592
|
+
}), {
|
|
51593
|
+
kind: "mutation",
|
|
51594
|
+
auth: "admin",
|
|
51595
|
+
timeoutMs: 12e4
|
|
51435
51596
|
}), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
|
|
51436
51597
|
deviceId: number(),
|
|
51437
51598
|
key: string(),
|
|
@@ -52881,6 +53042,49 @@ method(_void(), paletteResultSchema, {
|
|
|
52881
53042
|
kind: "mutation",
|
|
52882
53043
|
auth: "admin"
|
|
52883
53044
|
});
|
|
53045
|
+
/**
|
|
53046
|
+
* do-not-disturb - whether a speaker or display holds back its own sounds
|
|
53047
|
+
* (announcements, notifications, alarms) until the operator lets it speak again.
|
|
53048
|
+
*
|
|
53049
|
+
* It is NOT part of `media-player`: a player is about what it plays and how
|
|
53050
|
+
* loud, while Do Not Disturb is a household switch the vendor keeps per device.
|
|
53051
|
+
* `enabled` is null when the vendor has not said (never a guess of `false`).
|
|
53052
|
+
*/
|
|
53053
|
+
var DoNotDisturbStatusSchema = object({
|
|
53054
|
+
/** True while Do Not Disturb is on; null when unknown. */
|
|
53055
|
+
enabled: boolean().nullable().meta({ label: "Do not disturb" }),
|
|
53056
|
+
/** Ms epoch of the last read or write that set `enabled`. */
|
|
53057
|
+
lastChangedAt: number()
|
|
53058
|
+
});
|
|
53059
|
+
var doNotDisturbCapability = {
|
|
53060
|
+
name: "do-not-disturb",
|
|
53061
|
+
scope: "device",
|
|
53062
|
+
deviceNative: true,
|
|
53063
|
+
mode: "singleton",
|
|
53064
|
+
deviceTypes: [DeviceType.MediaPlayer],
|
|
53065
|
+
methods: { setEnabled: method(object({
|
|
53066
|
+
deviceId: number().int(),
|
|
53067
|
+
enabled: boolean()
|
|
53068
|
+
}), _void(), {
|
|
53069
|
+
kind: "mutation",
|
|
53070
|
+
auth: "protected"
|
|
53071
|
+
}) },
|
|
53072
|
+
status: {
|
|
53073
|
+
schema: DoNotDisturbStatusSchema,
|
|
53074
|
+
kind: "push"
|
|
53075
|
+
},
|
|
53076
|
+
runtimeState: DoNotDisturbStatusSchema,
|
|
53077
|
+
/**
|
|
53078
|
+
* Runtime-state durability: **session** - the vendor owns the switch and the
|
|
53079
|
+
* device re-reads it on the next poll, so a restored value would only be stale.
|
|
53080
|
+
*
|
|
53081
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
53082
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
53083
|
+
*/
|
|
53084
|
+
durability: "session",
|
|
53085
|
+
/** History (D850): when Do Not Disturb was switched on and off. */
|
|
53086
|
+
history: { fields: { enabled: { kind: "boolean" } } }
|
|
53087
|
+
};
|
|
52884
53088
|
/** Pulse override: a rising edge advances `lastPressedAt` and the press count. */
|
|
52885
53089
|
var doorbellCustomize = {
|
|
52886
53090
|
version: 1,
|
|
@@ -54733,6 +54937,78 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
|
|
|
54733
54937
|
auth: "admin"
|
|
54734
54938
|
});
|
|
54735
54939
|
/**
|
|
54940
|
+
* `integration-instances` - the connection of an addon that holds ONE or SEVERAL
|
|
54941
|
+
* (an account, a relay, a destination) as typed records (D985, D986). The addon's
|
|
54942
|
+
* own function page reads and writes them (Logging for Loki); the Integrations
|
|
54943
|
+
* page lists only the integrations that bring devices (D996).
|
|
54944
|
+
*
|
|
54945
|
+
* A collection of providers: each addon that holds connections registers one and a
|
|
54946
|
+
* caller reaches a provider with the pinned `addonId`.
|
|
54947
|
+
*
|
|
54948
|
+
* Identity: the instance id is immutable and opaque to the caller. A record the
|
|
54949
|
+
* Loki migration made keeps the `integrations` registry id it was created under
|
|
54950
|
+
* (`int_NNNN`); a single instance made by its function page takes the addon id.
|
|
54951
|
+
* `name` is the editable label.
|
|
54952
|
+
*
|
|
54953
|
+
* Secrets: every field the instance kind marks `.meta({ secret: true })` reaches
|
|
54954
|
+
* the form as a `SecretFieldView`, never text (D789). A patch value omitted, `''`
|
|
54955
|
+
* or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
|
|
54956
|
+
* clears it.
|
|
54957
|
+
*/
|
|
54958
|
+
var ConfigSchemaPassthrough$3 = custom();
|
|
54959
|
+
var IntegrationInstanceIdSchema = string().min(1);
|
|
54960
|
+
var IntegrationInstanceDescriptionSchema = object({
|
|
54961
|
+
/** `single`: at most one instance can exist (Loki). `multiple`: an account each. */
|
|
54962
|
+
instanceMode: _enum(["single", "multiple"]),
|
|
54963
|
+
/** What the instance is, for the UI (`destination`, `relay`, `account`). */
|
|
54964
|
+
kind: string(),
|
|
54965
|
+
/** True when `testInstance` really probes the remote. */
|
|
54966
|
+
canTest: boolean()
|
|
54967
|
+
});
|
|
54968
|
+
var IntegrationInstanceStatusSchema = object({
|
|
54969
|
+
state: _enum([
|
|
54970
|
+
"ok",
|
|
54971
|
+
"off",
|
|
54972
|
+
"error",
|
|
54973
|
+
"unknown"
|
|
54974
|
+
]),
|
|
54975
|
+
detail: string().optional()
|
|
54976
|
+
});
|
|
54977
|
+
var IntegrationInstanceSchema = object({
|
|
54978
|
+
id: IntegrationInstanceIdSchema,
|
|
54979
|
+
name: string(),
|
|
54980
|
+
/** The addon's own rule (an URL is present, a client id is present...). */
|
|
54981
|
+
configured: boolean(),
|
|
54982
|
+
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
54983
|
+
formValues: record(string(), unknown()),
|
|
54984
|
+
status: IntegrationInstanceStatusSchema.optional()
|
|
54985
|
+
});
|
|
54986
|
+
var IntegrationInstancePatchSchema = object({
|
|
54987
|
+
id: IntegrationInstanceIdSchema,
|
|
54988
|
+
name: string().min(1).optional(),
|
|
54989
|
+
/** Omitted / '' / redaction token keeps a secret; `{ $secretClear: true }` clears it. */
|
|
54990
|
+
values: record(string(), unknown())
|
|
54991
|
+
});
|
|
54992
|
+
method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method(object({ id: IntegrationInstanceIdSchema.nullable() }), ConfigSchemaPassthrough$3, { auth: "admin" }), method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }), method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }), method(object({
|
|
54993
|
+
id: IntegrationInstanceIdSchema,
|
|
54994
|
+
name: string().min(1)
|
|
54995
|
+
}), object({ id: string() }), {
|
|
54996
|
+
kind: "mutation",
|
|
54997
|
+
auth: "admin"
|
|
54998
|
+
}), method(IntegrationInstancePatchSchema, object({ ok: literal(true) }), {
|
|
54999
|
+
kind: "mutation",
|
|
55000
|
+
auth: "admin"
|
|
55001
|
+
}), method(object({ id: IntegrationInstanceIdSchema }), object({ ok: literal(true) }), {
|
|
55002
|
+
kind: "mutation",
|
|
55003
|
+
auth: "admin"
|
|
55004
|
+
}), optionalMethod(object({
|
|
55005
|
+
id: IntegrationInstanceIdSchema.nullable(),
|
|
55006
|
+
values: record(string(), unknown())
|
|
55007
|
+
}), TestConnectionResultSchema$1, {
|
|
55008
|
+
kind: "mutation",
|
|
55009
|
+
auth: "admin"
|
|
55010
|
+
});
|
|
55011
|
+
/**
|
|
54736
55012
|
* Two-way audio / talk-back cap. Clients open a WebRTC audio-only
|
|
54737
55013
|
* session (server-initiated offer pattern, identical to the main
|
|
54738
55014
|
* video WebRTC flow) and the browser captures the mic; the server
|
|
@@ -55472,6 +55748,14 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
55472
55748
|
topP: number().min(0).max(1).optional(),
|
|
55473
55749
|
/** Per-call override of the profile default (top-k sampling). */
|
|
55474
55750
|
topK: number().int().positive().optional(),
|
|
55751
|
+
/** Per-call override of `profile.reasoningEffort`. Sent only to a kind whose
|
|
55752
|
+
* descriptor offers the field; a kind that does not never sends it. */
|
|
55753
|
+
reasoningEffort: _enum([
|
|
55754
|
+
"off",
|
|
55755
|
+
"low",
|
|
55756
|
+
"medium",
|
|
55757
|
+
"high"
|
|
55758
|
+
]).optional(),
|
|
55475
55759
|
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
55476
55760
|
timeoutMs: number().int().positive().optional(),
|
|
55477
55761
|
/** Per-call override; beats both the consumer table and the profile. */
|
|
@@ -55763,7 +56047,10 @@ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind i
|
|
|
55763
56047
|
var LlmModelFeaturesSchema = object({
|
|
55764
56048
|
vision: boolean(),
|
|
55765
56049
|
tools: boolean(),
|
|
55766
|
-
streaming: boolean()
|
|
56050
|
+
streaming: boolean(),
|
|
56051
|
+
/** Whether the model thinks before it answers. `null` = the endpoint does not
|
|
56052
|
+
* say; an editor then still offers the switch (unknown is not "no"). */
|
|
56053
|
+
reasoning: boolean().nullable().optional()
|
|
55767
56054
|
});
|
|
55768
56055
|
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
55769
56056
|
var LlmModelInfoSchema = object({
|
|
@@ -65489,7 +65776,14 @@ var NcMediaPolicySchema = object({
|
|
|
65489
65776
|
*/
|
|
65490
65777
|
profile: CamProfileSchema.optional(),
|
|
65491
65778
|
/** See {@link NcLinkedCameraModeSchema}. */
|
|
65492
|
-
linkedCameras: NcLinkedCameraModeSchema.optional()
|
|
65779
|
+
linkedCameras: NcLinkedCameraModeSchema.optional(),
|
|
65780
|
+
/**
|
|
65781
|
+
* Sensor rules only: may this rule wake a SLEEPING battery camera to take
|
|
65782
|
+
* the linked still it attaches (D998)? Absent means yes, an explicit `false`
|
|
65783
|
+
* opts out. Deliberately not a Zod default: a rule that never chose keeps
|
|
65784
|
+
* following the hub's. One bounded wake per event; nothing is attached later.
|
|
65785
|
+
*/
|
|
65786
|
+
wakeSleepingCamera: boolean().optional()
|
|
65493
65787
|
});
|
|
65494
65788
|
/**
|
|
65495
65789
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
@@ -73949,9 +74243,17 @@ var ServerUpdateActionResultSchema = object({
|
|
|
73949
74243
|
*/
|
|
73950
74244
|
requiredAddonUpdates: array(RequiredAddonUpdateSchema).optional()
|
|
73951
74245
|
});
|
|
73952
|
-
var LaunchOverridesSchema = object({
|
|
73953
|
-
/** The persisted heap ceiling in MB, or `null` when none is set. */
|
|
73954
|
-
heapMb: number().int().nullable()
|
|
74246
|
+
var LaunchOverridesSchema = object({
|
|
74247
|
+
/** The persisted heap ceiling in MB, or `null` when none is set. */
|
|
74248
|
+
heapMb: number().int().nullable(),
|
|
74249
|
+
/** The persisted hub-main RSS budget in MB, or `null` when none is set. */
|
|
74250
|
+
rssBudgetMb: number().int().nullable()
|
|
74251
|
+
});
|
|
74252
|
+
var SetLaunchOverridesInputSchema = object({
|
|
74253
|
+
heapMb: number().int().min(512).max(65536).nullable(),
|
|
74254
|
+
/** Omitted keeps the stored budget; `null` clears it. */
|
|
74255
|
+
rssBudgetMb: number().int().min(512).max(65536).nullable().optional()
|
|
74256
|
+
});
|
|
73955
74257
|
var SetLaunchOverridesResultSchema = LaunchOverridesSchema.extend({
|
|
73956
74258
|
/** Always true: the override is read at launch, not by the running process. */
|
|
73957
74259
|
restartRequired: boolean() });
|
|
@@ -73980,7 +74282,7 @@ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), S
|
|
|
73980
74282
|
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
73981
74283
|
kind: "mutation",
|
|
73982
74284
|
auth: "admin"
|
|
73983
|
-
}), method(_void(), LaunchOverridesSchema, { auth: "admin" }), method(
|
|
74285
|
+
}), method(_void(), LaunchOverridesSchema, { auth: "admin" }), method(SetLaunchOverridesInputSchema, SetLaunchOverridesResultSchema, {
|
|
73984
74286
|
kind: "mutation",
|
|
73985
74287
|
auth: "admin"
|
|
73986
74288
|
});
|
|
@@ -74038,7 +74340,16 @@ var smokeCapability = {
|
|
|
74038
74340
|
* future fields without breaking the existing call sites.
|
|
74039
74341
|
*/
|
|
74040
74342
|
var EmailAddressSchema = email();
|
|
74343
|
+
/**
|
|
74344
|
+
* Which relay of a multi-relay provider answers (D996). Absent = the provider's first / default
|
|
74345
|
+
* relay, so a caller written before relays existed keeps working unchanged. A provider with one
|
|
74346
|
+
* fixed relay ignores it. This is the integration instance id (`int_NNNN`), NOT the addon id: the
|
|
74347
|
+
* collection pin `addonId` still picks the provider, `instanceId` picks the relay inside it.
|
|
74348
|
+
*/
|
|
74349
|
+
var InstanceIdSchema = string().min(1).optional();
|
|
74350
|
+
var RelayPinSchema = object({ instanceId: InstanceIdSchema });
|
|
74041
74351
|
var SendEmailInputSchema = object({
|
|
74352
|
+
instanceId: InstanceIdSchema,
|
|
74042
74353
|
to: union([EmailAddressSchema, array(EmailAddressSchema).min(1)]),
|
|
74043
74354
|
cc: array(EmailAddressSchema).optional(),
|
|
74044
74355
|
bcc: array(EmailAddressSchema).optional(),
|
|
@@ -74074,11 +74385,11 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
74074
74385
|
kind: "mutation",
|
|
74075
74386
|
auth: "admin",
|
|
74076
74387
|
access: "create"
|
|
74077
|
-
}), method(
|
|
74388
|
+
}), method(RelayPinSchema, SmtpStatusSchema, {
|
|
74078
74389
|
kind: "mutation",
|
|
74079
74390
|
auth: "admin",
|
|
74080
74391
|
access: "view"
|
|
74081
|
-
}), method(
|
|
74392
|
+
}), method(RelayPinSchema, SmtpStatusSchema, { auth: "admin" });
|
|
74082
74393
|
/**
|
|
74083
74394
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
74084
74395
|
*
|
|
@@ -74110,10 +74421,12 @@ DeviceType.Camera, method(object({
|
|
|
74110
74421
|
* even when the cache is well within the device's
|
|
74111
74422
|
* `snapshotMaxAgeS` window.
|
|
74112
74423
|
*
|
|
74113
|
-
* **`force` is
|
|
74424
|
+
* **`force` is a demand with a named principal, not a freshness
|
|
74425
|
+
* preference** — an operator button, the scheduled refresh (D847), or a
|
|
74426
|
+
* notification rule that left the camera's wake allowed (D998). On a
|
|
74114
74427
|
* battery camera it is the one thing that walks past the wrapper's
|
|
74115
|
-
* sleep gate and wakes the camera, so a
|
|
74116
|
-
*
|
|
74428
|
+
* sleep gate and wakes the camera, so a poller, a thumbnail or a
|
|
74429
|
+
* prestream must NEVER set it. Every such caller
|
|
74117
74430
|
* gets the cached frame, which on a sleeping battery camera is the
|
|
74118
74431
|
* correct answer: stale but honest beats woken.
|
|
74119
74432
|
*/
|
|
@@ -75683,6 +75996,40 @@ var LoggingSettingsStateSchema = object({
|
|
|
75683
75996
|
opsLogRetentionDays: number().int().min(0),
|
|
75684
75997
|
persisted: boolean()
|
|
75685
75998
|
});
|
|
75999
|
+
/**
|
|
76000
|
+
* Debug WATCH — a short, per-device window over `debug.<channel>` lines.
|
|
76001
|
+
*
|
|
76002
|
+
* `start` opens (or re-arms) a 10 minute window; `rearm` extends a LIVE one
|
|
76003
|
+
* and never revives a lapsed one; `stop` closes it; `list` only reads. No
|
|
76004
|
+
* chain of re-arms outlives 60 minutes from the first start. The hub holds the
|
|
76005
|
+
* watches in memory and pushes the interest to every node, so a watch lapses
|
|
76006
|
+
* by itself and survives nothing — a restart is a stop.
|
|
76007
|
+
*/
|
|
76008
|
+
var DebugWatchInputSchema = object({
|
|
76009
|
+
action: _enum([
|
|
76010
|
+
"list",
|
|
76011
|
+
"start",
|
|
76012
|
+
"rearm",
|
|
76013
|
+
"stop"
|
|
76014
|
+
]),
|
|
76015
|
+
/** Full channel names, `debug.<channel>`, each declared with `kind: 'debug'`. */
|
|
76016
|
+
channels: array(string().min(1)).readonly().default([]),
|
|
76017
|
+
/** Numeric device ids. Required (non-empty) for `start`. */
|
|
76018
|
+
deviceIds: array(number().int()).readonly().default([])
|
|
76019
|
+
});
|
|
76020
|
+
var DebugWatchStateSchema = object({
|
|
76021
|
+
channel: string(),
|
|
76022
|
+
deviceIds: array(number().int()).readonly(),
|
|
76023
|
+
startedAtMs: number(),
|
|
76024
|
+
untilMs: number(),
|
|
76025
|
+
capAtMs: number()
|
|
76026
|
+
});
|
|
76027
|
+
var DebugWatchResultSchema = object({
|
|
76028
|
+
nowMs: number(),
|
|
76029
|
+
watches: array(DebugWatchStateSchema).readonly(),
|
|
76030
|
+
/** Channels a `rearm` found already lapsed: nothing was revived. */
|
|
76031
|
+
lapsed: array(string()).readonly()
|
|
76032
|
+
});
|
|
75686
76033
|
method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
75687
76034
|
kind: "mutation",
|
|
75688
76035
|
auth: "admin"
|
|
@@ -75698,6 +76045,9 @@ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_
|
|
|
75698
76045
|
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(_void(), array(ReportedFailureContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
75699
76046
|
kind: "mutation",
|
|
75700
76047
|
auth: "admin"
|
|
76048
|
+
}), method(DebugWatchInputSchema, DebugWatchResultSchema, {
|
|
76049
|
+
kind: "mutation",
|
|
76050
|
+
auth: "admin"
|
|
75701
76051
|
});
|
|
75702
76052
|
/**
|
|
75703
76053
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -78855,7 +79205,7 @@ discriminatedUnion("kind", [object({
|
|
|
78855
79205
|
kind: literal("pronto"),
|
|
78856
79206
|
code: string()
|
|
78857
79207
|
})]);
|
|
78858
|
-
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
79208
|
+
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverStoppable, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
78859
79209
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
78860
79210
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
78861
79211
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
@@ -79178,6 +79528,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
79178
79528
|
deviceDiscovery: deviceDiscoveryCapability,
|
|
79179
79529
|
deviceStatus: deviceStatusCapability,
|
|
79180
79530
|
dishwasher: dishwasherCapability,
|
|
79531
|
+
doNotDisturb: doNotDisturbCapability,
|
|
79181
79532
|
doorbell: doorbellCapability,
|
|
79182
79533
|
enumSensor: enumSensorCapability,
|
|
79183
79534
|
eventEmitter: eventEmitterCapability,
|
|
@@ -82735,6 +83086,13 @@ Object.freeze({
|
|
|
82735
83086
|
access: "view",
|
|
82736
83087
|
role: "admin"
|
|
82737
83088
|
},
|
|
83089
|
+
"deviceManager.dismissDiscoveryProposal": {
|
|
83090
|
+
capName: "device-manager",
|
|
83091
|
+
capScope: "system",
|
|
83092
|
+
addonId: null,
|
|
83093
|
+
access: "create",
|
|
83094
|
+
role: "admin"
|
|
83095
|
+
},
|
|
82738
83096
|
"deviceManager.enable": {
|
|
82739
83097
|
capName: "device-manager",
|
|
82740
83098
|
capScope: "system",
|
|
@@ -82917,6 +83275,13 @@ Object.freeze({
|
|
|
82917
83275
|
access: "view",
|
|
82918
83276
|
role: "viewer"
|
|
82919
83277
|
},
|
|
83278
|
+
"deviceManager.listDiscoveryProposals": {
|
|
83279
|
+
capName: "device-manager",
|
|
83280
|
+
capScope: "system",
|
|
83281
|
+
addonId: null,
|
|
83282
|
+
access: "view",
|
|
83283
|
+
role: "admin"
|
|
83284
|
+
},
|
|
82920
83285
|
"deviceManager.listLocationDescriptions": {
|
|
82921
83286
|
capName: "device-manager",
|
|
82922
83287
|
capScope: "system",
|
|
@@ -83071,6 +83436,13 @@ Object.freeze({
|
|
|
83071
83436
|
access: "create",
|
|
83072
83437
|
role: "admin"
|
|
83073
83438
|
},
|
|
83439
|
+
"deviceManager.reportDiscoveryObservations": {
|
|
83440
|
+
capName: "device-manager",
|
|
83441
|
+
capScope: "system",
|
|
83442
|
+
addonId: null,
|
|
83443
|
+
access: "create",
|
|
83444
|
+
role: "admin"
|
|
83445
|
+
},
|
|
83074
83446
|
"deviceManager.runDeviceAction": {
|
|
83075
83447
|
capName: "device-manager",
|
|
83076
83448
|
capScope: "system",
|
|
@@ -83078,6 +83450,13 @@ Object.freeze({
|
|
|
83078
83450
|
access: "create",
|
|
83079
83451
|
role: "admin"
|
|
83080
83452
|
},
|
|
83453
|
+
"deviceManager.runDiscoverySweep": {
|
|
83454
|
+
capName: "device-manager",
|
|
83455
|
+
capScope: "system",
|
|
83456
|
+
addonId: null,
|
|
83457
|
+
access: "create",
|
|
83458
|
+
role: "admin"
|
|
83459
|
+
},
|
|
83081
83460
|
"deviceManager.setChildLayout": {
|
|
83082
83461
|
capName: "device-manager",
|
|
83083
83462
|
capScope: "system",
|
|
@@ -83631,6 +84010,20 @@ Object.freeze({
|
|
|
83631
84010
|
access: "create",
|
|
83632
84011
|
role: "admin"
|
|
83633
84012
|
},
|
|
84013
|
+
"doNotDisturb.getStatus": {
|
|
84014
|
+
capName: "do-not-disturb",
|
|
84015
|
+
capScope: "device",
|
|
84016
|
+
addonId: null,
|
|
84017
|
+
access: "view",
|
|
84018
|
+
role: "viewer"
|
|
84019
|
+
},
|
|
84020
|
+
"doNotDisturb.setEnabled": {
|
|
84021
|
+
capName: "do-not-disturb",
|
|
84022
|
+
capScope: "device",
|
|
84023
|
+
addonId: null,
|
|
84024
|
+
access: "create",
|
|
84025
|
+
role: "viewer"
|
|
84026
|
+
},
|
|
83634
84027
|
"doorbell.getStatus": {
|
|
83635
84028
|
capName: "doorbell",
|
|
83636
84029
|
capScope: "device",
|
|
@@ -83995,6 +84388,62 @@ Object.freeze({
|
|
|
83995
84388
|
access: "create",
|
|
83996
84389
|
role: "admin"
|
|
83997
84390
|
},
|
|
84391
|
+
"integrationInstances.createInstance": {
|
|
84392
|
+
capName: "integration-instances",
|
|
84393
|
+
capScope: "system",
|
|
84394
|
+
addonId: null,
|
|
84395
|
+
access: "create",
|
|
84396
|
+
role: "admin"
|
|
84397
|
+
},
|
|
84398
|
+
"integrationInstances.deleteInstance": {
|
|
84399
|
+
capName: "integration-instances",
|
|
84400
|
+
capScope: "system",
|
|
84401
|
+
addonId: null,
|
|
84402
|
+
access: "delete",
|
|
84403
|
+
role: "admin"
|
|
84404
|
+
},
|
|
84405
|
+
"integrationInstances.describe": {
|
|
84406
|
+
capName: "integration-instances",
|
|
84407
|
+
capScope: "system",
|
|
84408
|
+
addonId: null,
|
|
84409
|
+
access: "view",
|
|
84410
|
+
role: "admin"
|
|
84411
|
+
},
|
|
84412
|
+
"integrationInstances.getInstance": {
|
|
84413
|
+
capName: "integration-instances",
|
|
84414
|
+
capScope: "system",
|
|
84415
|
+
addonId: null,
|
|
84416
|
+
access: "view",
|
|
84417
|
+
role: "admin"
|
|
84418
|
+
},
|
|
84419
|
+
"integrationInstances.instanceFormSchema": {
|
|
84420
|
+
capName: "integration-instances",
|
|
84421
|
+
capScope: "system",
|
|
84422
|
+
addonId: null,
|
|
84423
|
+
access: "view",
|
|
84424
|
+
role: "admin"
|
|
84425
|
+
},
|
|
84426
|
+
"integrationInstances.listInstances": {
|
|
84427
|
+
capName: "integration-instances",
|
|
84428
|
+
capScope: "system",
|
|
84429
|
+
addonId: null,
|
|
84430
|
+
access: "view",
|
|
84431
|
+
role: "admin"
|
|
84432
|
+
},
|
|
84433
|
+
"integrationInstances.testInstance": {
|
|
84434
|
+
capName: "integration-instances",
|
|
84435
|
+
capScope: "system",
|
|
84436
|
+
addonId: null,
|
|
84437
|
+
access: "create",
|
|
84438
|
+
role: "admin"
|
|
84439
|
+
},
|
|
84440
|
+
"integrationInstances.updateInstance": {
|
|
84441
|
+
capName: "integration-instances",
|
|
84442
|
+
capScope: "system",
|
|
84443
|
+
addonId: null,
|
|
84444
|
+
access: "create",
|
|
84445
|
+
role: "admin"
|
|
84446
|
+
},
|
|
83998
84447
|
"integrations.create": {
|
|
83999
84448
|
capName: "integrations",
|
|
84000
84449
|
capScope: "system",
|
|
@@ -89651,6 +90100,13 @@ Object.freeze({
|
|
|
89651
90100
|
access: "create",
|
|
89652
90101
|
role: "viewer"
|
|
89653
90102
|
},
|
|
90103
|
+
"system.debugWatch": {
|
|
90104
|
+
capName: "system",
|
|
90105
|
+
capScope: "system",
|
|
90106
|
+
addonId: null,
|
|
90107
|
+
access: "create",
|
|
90108
|
+
role: "admin"
|
|
90109
|
+
},
|
|
89654
90110
|
"system.detectSiteLocation": {
|
|
89655
90111
|
capName: "system",
|
|
89656
90112
|
capScope: "system",
|
|
@@ -91819,6 +92275,16 @@ Object.freeze({
|
|
|
91819
92275
|
form: "single",
|
|
91820
92276
|
optional: false
|
|
91821
92277
|
}],
|
|
92278
|
+
"doNotDisturb.getStatus": [{
|
|
92279
|
+
name: "deviceId",
|
|
92280
|
+
form: "single",
|
|
92281
|
+
optional: false
|
|
92282
|
+
}],
|
|
92283
|
+
"doNotDisturb.setEnabled": [{
|
|
92284
|
+
name: "deviceId",
|
|
92285
|
+
form: "single",
|
|
92286
|
+
optional: false
|
|
92287
|
+
}],
|
|
91822
92288
|
"doorbell.getStatus": [{
|
|
91823
92289
|
name: "deviceId",
|
|
91824
92290
|
form: "single",
|
|
@@ -93559,6 +94025,11 @@ Object.freeze({
|
|
|
93559
94025
|
form: "single",
|
|
93560
94026
|
optional: false
|
|
93561
94027
|
}],
|
|
94028
|
+
"system.debugWatch": [{
|
|
94029
|
+
name: "deviceIds",
|
|
94030
|
+
form: "array",
|
|
94031
|
+
optional: true
|
|
94032
|
+
}],
|
|
93562
94033
|
"tamper.getStatus": [{
|
|
93563
94034
|
name: "deviceId",
|
|
93564
94035
|
form: "single",
|
|
@@ -120916,6 +121387,8 @@ var hmActuatorSchema = hmChildSchema.extend({
|
|
|
120916
121387
|
* existing pure decoders (`decodeCover` / `decodeLock` / `decodeClimate`).
|
|
120917
121388
|
*/
|
|
120918
121389
|
var HmActuatorDevice = class extends HmChildDevice {
|
|
121390
|
+
/** A cover's `stop` drives the channel's real STOP (`coverStop`). */
|
|
121391
|
+
features = this.config.values.kind === "cover" ? [DeviceFeature.CoverStoppable] : [];
|
|
120919
121392
|
kind;
|
|
120920
121393
|
/** The actuator cap name actually registered (drives decode routing). */
|
|
120921
121394
|
registeredCap = null;
|