@camstack/addon-provider-velux 0.2.127 → 0.2.128
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/dist/addon.js +1402 -129
- package/dist/addon.mjs +1402 -129
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BvOFi6PY.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -62,6 +62,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
62
62
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
63
63
|
*/
|
|
64
64
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
65
|
+
/**
|
|
66
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
67
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
68
|
+
* action. One event per refusal.
|
|
69
|
+
*/
|
|
70
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
71
|
+
/**
|
|
72
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
73
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
74
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
75
|
+
*/
|
|
76
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
77
|
+
/**
|
|
78
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
79
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
80
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
81
|
+
*/
|
|
82
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
65
83
|
EventCategory["AddonError"] = "addon.error";
|
|
66
84
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
67
85
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5386,7 +5404,7 @@ var ZodIssueCode = {
|
|
|
5386
5404
|
var ZodFirstPartyTypeKind;
|
|
5387
5405
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5388
5406
|
//#endregion
|
|
5389
|
-
//#region ../types/dist/sleep-
|
|
5407
|
+
//#region ../types/dist/sleep-BegKjwUu.mjs
|
|
5390
5408
|
/**
|
|
5391
5409
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5392
5410
|
* window to float samples (D455).
|
|
@@ -5503,7 +5521,7 @@ function isKeychainStoredField(field) {
|
|
|
5503
5521
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5504
5522
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5505
5523
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5506
|
-
function isRecord$
|
|
5524
|
+
function isRecord$5(value) {
|
|
5507
5525
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5508
5526
|
}
|
|
5509
5527
|
function makeSecretMarker(ref) {
|
|
@@ -5514,12 +5532,12 @@ function makeSecretMarker(ref) {
|
|
|
5514
5532
|
}
|
|
5515
5533
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5516
5534
|
function isSecretMarker(value) {
|
|
5517
|
-
if (!isRecord$
|
|
5535
|
+
if (!isRecord$5(value)) return false;
|
|
5518
5536
|
const ref = value["$secret"];
|
|
5519
5537
|
return typeof ref === "string" && ref.length > 0;
|
|
5520
5538
|
}
|
|
5521
5539
|
function isSecretClear(value) {
|
|
5522
|
-
return isRecord$
|
|
5540
|
+
return isRecord$5(value) && value["$secretClear"] === true;
|
|
5523
5541
|
}
|
|
5524
5542
|
/**
|
|
5525
5543
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6129,7 +6147,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6129
6147
|
}
|
|
6130
6148
|
};
|
|
6131
6149
|
var KEEP = { kind: "keep" };
|
|
6132
|
-
function isRecord$
|
|
6150
|
+
function isRecord$4(value) {
|
|
6133
6151
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6134
6152
|
}
|
|
6135
6153
|
function defaultMintId() {
|
|
@@ -6142,7 +6160,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6142
6160
|
return out;
|
|
6143
6161
|
}
|
|
6144
6162
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6145
|
-
else if (isRecord$
|
|
6163
|
+
else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6146
6164
|
return out;
|
|
6147
6165
|
}
|
|
6148
6166
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6197,7 +6215,7 @@ function rowId(row, idKey) {
|
|
|
6197
6215
|
return null;
|
|
6198
6216
|
}
|
|
6199
6217
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6200
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6218
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
|
|
6201
6219
|
if (!Array.isArray(incoming)) {
|
|
6202
6220
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6203
6221
|
return {
|
|
@@ -6213,7 +6231,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6213
6231
|
const kept = /* @__PURE__ */ new Set();
|
|
6214
6232
|
const rows = [];
|
|
6215
6233
|
for (const row of incoming) {
|
|
6216
|
-
if (!isRecord$
|
|
6234
|
+
if (!isRecord$4(row)) {
|
|
6217
6235
|
rows.push(row);
|
|
6218
6236
|
continue;
|
|
6219
6237
|
}
|
|
@@ -6238,7 +6256,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6238
6256
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6239
6257
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6240
6258
|
case "object": {
|
|
6241
|
-
if (!isRecord$
|
|
6259
|
+
if (!isRecord$4(incoming)) {
|
|
6242
6260
|
if (incoming === void 0) return KEEP;
|
|
6243
6261
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6244
6262
|
return {
|
|
@@ -6246,7 +6264,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6246
6264
|
value: incoming
|
|
6247
6265
|
};
|
|
6248
6266
|
}
|
|
6249
|
-
const storedObj = isRecord$
|
|
6267
|
+
const storedObj = isRecord$4(stored) ? stored : {};
|
|
6250
6268
|
return {
|
|
6251
6269
|
kind: "value",
|
|
6252
6270
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6369,7 +6387,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6369
6387
|
value: items
|
|
6370
6388
|
};
|
|
6371
6389
|
}
|
|
6372
|
-
if (isRecord$
|
|
6390
|
+
if (isRecord$4(v)) {
|
|
6373
6391
|
const out = {};
|
|
6374
6392
|
for (const [k, child] of Object.entries(v)) {
|
|
6375
6393
|
const s = substitute(child);
|
|
@@ -6401,7 +6419,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6401
6419
|
this.name = "SecretOverwriteRefusedError";
|
|
6402
6420
|
}
|
|
6403
6421
|
};
|
|
6404
|
-
function isRecord(value) {
|
|
6422
|
+
function isRecord$3(value) {
|
|
6405
6423
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6406
6424
|
}
|
|
6407
6425
|
function resolvedValue(pass, marker) {
|
|
@@ -6430,7 +6448,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6430
6448
|
return incoming.map((item, index) => {
|
|
6431
6449
|
const twin = stored[index];
|
|
6432
6450
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6433
|
-
if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
|
|
6451
|
+
if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
|
|
6434
6452
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6435
6453
|
return item;
|
|
6436
6454
|
});
|
|
@@ -6441,7 +6459,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6441
6459
|
const twin = stored[key];
|
|
6442
6460
|
if (isSecretMarker(twin)) {
|
|
6443
6461
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6444
|
-
} else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6462
|
+
} else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6445
6463
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6446
6464
|
}
|
|
6447
6465
|
return out;
|
|
@@ -6449,7 +6467,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6449
6467
|
async function walk(pass, incoming, stored) {
|
|
6450
6468
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6451
6469
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6452
|
-
if (!isRecord(incoming) || !isRecord(stored)) return incoming;
|
|
6470
|
+
if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
|
|
6453
6471
|
const out = { ...incoming };
|
|
6454
6472
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6455
6473
|
return out;
|
|
@@ -6480,7 +6498,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6480
6498
|
function isJsonEqual(a, b) {
|
|
6481
6499
|
if (Object.is(a, b)) return true;
|
|
6482
6500
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6483
|
-
if (isRecord(a) && isRecord(b)) {
|
|
6501
|
+
if (isRecord$3(a) && isRecord$3(b)) {
|
|
6484
6502
|
const keys = Object.keys(a);
|
|
6485
6503
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6486
6504
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6504,7 +6522,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6504
6522
|
}
|
|
6505
6523
|
function nodeFromStored(value, owner) {
|
|
6506
6524
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6507
|
-
if (!isRecord(value)) return null;
|
|
6525
|
+
if (!isRecord$3(value)) return null;
|
|
6508
6526
|
const children = /* @__PURE__ */ new Map();
|
|
6509
6527
|
for (const [key, child] of Object.entries(value)) {
|
|
6510
6528
|
const node = nodeFromStored(child, owner);
|
|
@@ -6637,7 +6655,6 @@ function createHandle(raw, opts) {
|
|
|
6637
6655
|
const writeAddon = (patch) => write("addon", opts.addonTree(), void 0, patch, () => readStoredAddonBlob(raw), (p) => raw.writeAddonStore(p));
|
|
6638
6656
|
const readAddonStoreResult = raw.readAddonStoreResult;
|
|
6639
6657
|
const readAddonStoreKeyResult = raw.readAddonStoreKeyResult;
|
|
6640
|
-
const readDeviceStoreBatch = raw.readDeviceStoreBatch;
|
|
6641
6658
|
const overrides = {
|
|
6642
6659
|
readAddonStore: async () => resolveRead("addon", await raw.readAddonStore()),
|
|
6643
6660
|
...readAddonStoreResult !== void 0 ? { readAddonStoreResult: async () => {
|
|
@@ -6661,12 +6678,12 @@ function createHandle(raw, opts) {
|
|
|
6661
6678
|
};
|
|
6662
6679
|
} } : {},
|
|
6663
6680
|
readDeviceStore: async (deviceId) => resolveRead(`device:${deviceId}`, await raw.readDeviceStore(deviceId)),
|
|
6664
|
-
|
|
6665
|
-
const rows = await readDeviceStoreBatch
|
|
6681
|
+
readDeviceStoreBatch: async (deviceIds) => {
|
|
6682
|
+
const rows = await raw.readDeviceStoreBatch(deviceIds);
|
|
6666
6683
|
const out = /* @__PURE__ */ new Map();
|
|
6667
6684
|
for (const [deviceId, blob] of rows) out.set(deviceId, await resolveRead(`device:${deviceId}`, blob));
|
|
6668
6685
|
return out;
|
|
6669
|
-
}
|
|
6686
|
+
},
|
|
6670
6687
|
writeAddonStore: async (patch) => {
|
|
6671
6688
|
await writeAddon(patch);
|
|
6672
6689
|
},
|
|
@@ -7293,7 +7310,7 @@ var BaseAddon = class {
|
|
|
7293
7310
|
if (!ctx) return;
|
|
7294
7311
|
const addonId = ctx.id;
|
|
7295
7312
|
setImmediate(() => {
|
|
7296
|
-
ctx.api.addons
|
|
7313
|
+
ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
|
|
7297
7314
|
ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
|
|
7298
7315
|
}).catch((err) => {
|
|
7299
7316
|
ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
@@ -7493,7 +7510,7 @@ var BaseAddon = class {
|
|
|
7493
7510
|
return this._addonSecretTree;
|
|
7494
7511
|
}
|
|
7495
7512
|
deviceSecretTree() {
|
|
7496
|
-
this._deviceSecretTree ??= secretTreeFromSchema(this.deviceSettingsSchema());
|
|
7513
|
+
this._deviceSecretTree ??= mergeSecretStatePaths(secretTreeFromSchema(this.deviceSettingsSchema()), this.secretStatePaths);
|
|
7497
7514
|
return this._deviceSecretTree;
|
|
7498
7515
|
}
|
|
7499
7516
|
/**
|
|
@@ -7569,42 +7586,135 @@ var BaseAddon = class {
|
|
|
7569
7586
|
this[timerOf] = timer;
|
|
7570
7587
|
}
|
|
7571
7588
|
/**
|
|
7572
|
-
* Wrap `ctx.settings.readAddonStore()` with a
|
|
7573
|
-
*
|
|
7574
|
-
* swap, or any race where the SqliteSettingsBackend is between shutdown and
|
|
7575
|
-
* re-initialize) doesn't propagate up into `initialize()` and leave the
|
|
7589
|
+
* Wrap `ctx.settings.readAddonStore()` with a retry budget so a transient
|
|
7590
|
+
* settings-store outage doesn't propagate up into `initialize()` and leave the
|
|
7576
7591
|
* addon permanently broken.
|
|
7577
7592
|
*
|
|
7578
|
-
*
|
|
7579
|
-
*
|
|
7580
|
-
* `
|
|
7593
|
+
* Two kinds of outage, two budgets:
|
|
7594
|
+
* - the store's own restart fingerprints (`SqliteSettingsBackend not
|
|
7595
|
+
* initialized`, `provider not available`): a short budget, then the addon
|
|
7596
|
+
* falls back to `{}` (defaults) - its first successful patch rehydrates;
|
|
7597
|
+
* - a TRANSPORT failure (the hub is restarting while this runner boots:
|
|
7598
|
+
* `discovery deadline exceeded`, `parent could not route`, a refused or
|
|
7599
|
+
* timed-out connection). Since D870 a runner's settings read THROWS instead
|
|
7600
|
+
* of answering `{}`, so without a budget a hub restart ends in a respawn
|
|
7601
|
+
* loop. A long, bounded budget; only after it the error propagates - the
|
|
7602
|
+
* addon never runs on defaults for a store it could not ask.
|
|
7603
|
+
* Anything else propagates immediately so real bugs surface.
|
|
7581
7604
|
*/
|
|
7582
7605
|
async readAddonStoreWithRetry() {
|
|
7583
7606
|
const settings = this.rawSettings();
|
|
7584
7607
|
if (!settings) return {};
|
|
7585
|
-
const delaysMs = [
|
|
7586
|
-
150,
|
|
7587
|
-
350,
|
|
7588
|
-
600,
|
|
7589
|
-
900
|
|
7590
|
-
];
|
|
7591
7608
|
let lastErr;
|
|
7592
|
-
for (let attempt = 0
|
|
7609
|
+
for (let attempt = 0;; attempt++) try {
|
|
7593
7610
|
const stored = await settings.readAddonStore() ?? {};
|
|
7594
7611
|
this.settingsStoreReady = true;
|
|
7595
7612
|
return stored;
|
|
7596
7613
|
} catch (err) {
|
|
7597
7614
|
lastErr = err;
|
|
7598
|
-
const
|
|
7599
|
-
if (
|
|
7600
|
-
|
|
7601
|
-
|
|
7615
|
+
const kind = classifyStoreError(err);
|
|
7616
|
+
if (kind === "permanent") throw err;
|
|
7617
|
+
const delay = (kind === "transport" ? TRANSPORT_RETRY_DELAYS_MS : RESTART_RETRY_DELAYS_MS)[attempt];
|
|
7618
|
+
if (delay === void 0) {
|
|
7619
|
+
if (kind === "transport") throw err;
|
|
7620
|
+
break;
|
|
7621
|
+
}
|
|
7622
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
7602
7623
|
}
|
|
7603
7624
|
this.settingsStoreReady = false;
|
|
7604
7625
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7605
7626
|
return {};
|
|
7606
7627
|
}
|
|
7607
7628
|
};
|
|
7629
|
+
/** The settings store's own restart fingerprints. */
|
|
7630
|
+
var RESTART_RETRY_DELAYS_MS = [
|
|
7631
|
+
150,
|
|
7632
|
+
350,
|
|
7633
|
+
600,
|
|
7634
|
+
900
|
|
7635
|
+
];
|
|
7636
|
+
/** A hub restarting under a booting runner: ~100 s in total. */
|
|
7637
|
+
var TRANSPORT_RETRY_DELAYS_MS = [
|
|
7638
|
+
150,
|
|
7639
|
+
350,
|
|
7640
|
+
600,
|
|
7641
|
+
900,
|
|
7642
|
+
2e3,
|
|
7643
|
+
5e3,
|
|
7644
|
+
1e4,
|
|
7645
|
+
2e4,
|
|
7646
|
+
3e4,
|
|
7647
|
+
3e4
|
|
7648
|
+
];
|
|
7649
|
+
var RESTART_FINGERPRINTS = ["SqliteSettingsBackend not initialized", "provider not available"];
|
|
7650
|
+
/** Node / socket error codes of a connection that did not happen or broke. */
|
|
7651
|
+
var TRANSPORT_CODES = new Set([
|
|
7652
|
+
"ECONNREFUSED",
|
|
7653
|
+
"ECONNRESET",
|
|
7654
|
+
"ETIMEDOUT",
|
|
7655
|
+
"EPIPE",
|
|
7656
|
+
"EHOSTUNREACH",
|
|
7657
|
+
"ENETUNREACH"
|
|
7658
|
+
]);
|
|
7659
|
+
/** tRPC error codes that mean "the other side is not answering now", not "your call is wrong". */
|
|
7660
|
+
var UNAVAILABLE_TRPC_CODES = new Set([
|
|
7661
|
+
"TIMEOUT",
|
|
7662
|
+
"SERVICE_UNAVAILABLE",
|
|
7663
|
+
"BAD_GATEWAY",
|
|
7664
|
+
"GATEWAY_TIMEOUT"
|
|
7665
|
+
]);
|
|
7666
|
+
/** The exact phrases OUR transport raises when it cannot reach the hub. */
|
|
7667
|
+
var TRANSPORT_PHRASES = [
|
|
7668
|
+
"discovery deadline exceeded",
|
|
7669
|
+
"parent could not route child unowned cap call",
|
|
7670
|
+
"UDS request timed out after",
|
|
7671
|
+
"channel closed"
|
|
7672
|
+
];
|
|
7673
|
+
/** Moleculer error `type`s of a call that could not be served right now. */
|
|
7674
|
+
var MOLECULER_TRANSIENT_TYPES = new Set([
|
|
7675
|
+
"REQUEST_TIMEOUT",
|
|
7676
|
+
"SERVICE_NOT_FOUND",
|
|
7677
|
+
"SERVICE_NOT_AVAILABLE",
|
|
7678
|
+
"REQUEST_REJECTED",
|
|
7679
|
+
"BROKER_DISCONNECTED"
|
|
7680
|
+
]);
|
|
7681
|
+
function stringProp(value, key) {
|
|
7682
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
7683
|
+
const found = Reflect.get(value, key);
|
|
7684
|
+
return typeof found === "string" ? found : void 0;
|
|
7685
|
+
}
|
|
7686
|
+
/** The code an error carries: its own, its cause's, or a tRPC `data.code`. */
|
|
7687
|
+
function errorCode(err) {
|
|
7688
|
+
const out = {};
|
|
7689
|
+
const cause = typeof err === "object" && err !== null ? Reflect.get(err, "cause") : void 0;
|
|
7690
|
+
const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
|
|
7691
|
+
const node = stringProp(err, "code") ?? stringProp(cause, "code");
|
|
7692
|
+
if (node !== void 0) out.node = node;
|
|
7693
|
+
const trpc = stringProp(data, "code");
|
|
7694
|
+
if (trpc !== void 0) out.trpc = trpc;
|
|
7695
|
+
return out;
|
|
7696
|
+
}
|
|
7697
|
+
/**
|
|
7698
|
+
* Is a settings read failure worth retrying, and with which budget? Only
|
|
7699
|
+
* EXPLICIT signals count: a socket error code, a tRPC "unavailable" code, or
|
|
7700
|
+
* one of the exact phrases our own transport raises. A message that merely
|
|
7701
|
+
* contains "timed out" or "unreachable" is not evidence of anything, and
|
|
7702
|
+
* `settings store not wired` is a wiring bug that retrying cannot fix.
|
|
7703
|
+
*/
|
|
7704
|
+
function classifyStoreError(err) {
|
|
7705
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
7706
|
+
if (RESTART_FINGERPRINTS.some((f) => message.includes(f))) return "restart";
|
|
7707
|
+
const code = errorCode(err);
|
|
7708
|
+
if (code.node !== void 0 && TRANSPORT_CODES.has(code.node)) return "transport";
|
|
7709
|
+
if (code.trpc !== void 0 && UNAVAILABLE_TRPC_CODES.has(code.trpc)) return "transport";
|
|
7710
|
+
if (typeof err === "object" && err !== null) {
|
|
7711
|
+
if (Reflect.get(err, "retryable") === true) return "transport";
|
|
7712
|
+
const type = stringProp(err, "type");
|
|
7713
|
+
if (type !== void 0 && MOLECULER_TRANSIENT_TYPES.has(type)) return "transport";
|
|
7714
|
+
}
|
|
7715
|
+
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
7716
|
+
return "permanent";
|
|
7717
|
+
}
|
|
7608
7718
|
/**
|
|
7609
7719
|
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
7610
7720
|
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
@@ -7694,6 +7804,156 @@ var PeerBytesTicketSchema = object({
|
|
|
7694
7804
|
*/
|
|
7695
7805
|
declaredBytes: number().int().nonnegative().nullable()
|
|
7696
7806
|
});
|
|
7807
|
+
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
7808
|
+
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
7809
|
+
var RECORD_DATABASES = ["settings", "events"];
|
|
7810
|
+
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
7811
|
+
var RECORD_CLASSES = [
|
|
7812
|
+
"config",
|
|
7813
|
+
"ledger",
|
|
7814
|
+
"audit",
|
|
7815
|
+
"mirror",
|
|
7816
|
+
"ephemeral"
|
|
7817
|
+
];
|
|
7818
|
+
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
7819
|
+
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
7820
|
+
var RECORD_BATCH_MAX = 1e3;
|
|
7821
|
+
var RECORD_QUERY_MAX = 1e3;
|
|
7822
|
+
function defOf(schema) {
|
|
7823
|
+
const zodBag = Reflect.get(schema, "_zod");
|
|
7824
|
+
if (typeof zodBag !== "object" || zodBag === null) return {};
|
|
7825
|
+
const def = Reflect.get(zodBag, "def");
|
|
7826
|
+
if (typeof def !== "object" || def === null) return {};
|
|
7827
|
+
return def;
|
|
7828
|
+
}
|
|
7829
|
+
function declaredHere(schema) {
|
|
7830
|
+
return globalRegistry.get(schema)?.secret === true;
|
|
7831
|
+
}
|
|
7832
|
+
/** Wrapper kinds whose `innerType` is the field itself. */
|
|
7833
|
+
var WRAPPERS = new Set([
|
|
7834
|
+
"optional",
|
|
7835
|
+
"nullable",
|
|
7836
|
+
"default",
|
|
7837
|
+
"prefault",
|
|
7838
|
+
"catch",
|
|
7839
|
+
"readonly",
|
|
7840
|
+
"nonoptional"
|
|
7841
|
+
]);
|
|
7842
|
+
/**
|
|
7843
|
+
* The schema layers that make up ONE field: the schema itself and every
|
|
7844
|
+
* wrapper below it (optional / default / nullable / readonly / catch), plus
|
|
7845
|
+
* both sides of a pipe (`z.preprocess` puts the real schema on `out`,
|
|
7846
|
+
* `.transform` on `in`).
|
|
7847
|
+
*/
|
|
7848
|
+
function layersOf(schema) {
|
|
7849
|
+
const out = [];
|
|
7850
|
+
const queue = [schema];
|
|
7851
|
+
while (queue.length > 0) {
|
|
7852
|
+
const s = queue.shift();
|
|
7853
|
+
if (!s || out.includes(s)) continue;
|
|
7854
|
+
out.push(s);
|
|
7855
|
+
const def = defOf(s);
|
|
7856
|
+
if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
|
|
7857
|
+
if (def.type === "pipe") {
|
|
7858
|
+
if (def.in) queue.push(def.in);
|
|
7859
|
+
if (def.out) queue.push(def.out);
|
|
7860
|
+
}
|
|
7861
|
+
}
|
|
7862
|
+
return out;
|
|
7863
|
+
}
|
|
7864
|
+
/** True when any layer of this field declares `.meta({ secret: true })`. */
|
|
7865
|
+
function isZodSecret(schema) {
|
|
7866
|
+
return layersOf(schema).some(declaredHere);
|
|
7867
|
+
}
|
|
7868
|
+
/**
|
|
7869
|
+
* Every declared secret path in a config schema: dotted keys, `[]` for "each
|
|
7870
|
+
* element of this array" (`connection.password`, `rows[].token`). A declared
|
|
7871
|
+
* object or array is reported as one path and not descended into — everything
|
|
7872
|
+
* under it is secret.
|
|
7873
|
+
*/
|
|
7874
|
+
function collectZodSecretPaths(schema, prefix = "") {
|
|
7875
|
+
if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
|
|
7876
|
+
const paths = [];
|
|
7877
|
+
for (const layer of layersOf(schema)) {
|
|
7878
|
+
const def = defOf(layer);
|
|
7879
|
+
if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
|
|
7880
|
+
else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
|
|
7881
|
+
else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
|
|
7882
|
+
else if (def.type === "intersection") {
|
|
7883
|
+
if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
|
|
7884
|
+
if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
return [...new Set(paths)];
|
|
7888
|
+
}
|
|
7889
|
+
/**
|
|
7890
|
+
* Record kinds (D881): the declaration an addon makes of one kind of fact, the
|
|
7891
|
+
* Zod row schema that describes it, and the helper that turns the two into the
|
|
7892
|
+
* JSON the engine stores.
|
|
7893
|
+
*
|
|
7894
|
+
* A kind is declared ONCE, next to the code that owns it, and the engine's
|
|
7895
|
+
* reconciler creates its indexes - nothing creates DDL at runtime from a write.
|
|
7896
|
+
* Everything the generic machinery needs (secret fields, the entry descriptor)
|
|
7897
|
+
* is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
|
|
7898
|
+
* never a field name (D879).
|
|
7899
|
+
*/
|
|
7900
|
+
/** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
|
|
7901
|
+
var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
|
|
7902
|
+
var RecordIndexSchema = object({
|
|
7903
|
+
name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
|
|
7904
|
+
fields: array(RecordFieldPathSchema).min(1).max(4),
|
|
7905
|
+
unique: boolean().optional()
|
|
7906
|
+
}).strict();
|
|
7907
|
+
var RecordRetentionSchema = union([
|
|
7908
|
+
object({
|
|
7909
|
+
ttlMs: number().int().positive(),
|
|
7910
|
+
from: _enum(["at", "write"])
|
|
7911
|
+
}).strict(),
|
|
7912
|
+
object({
|
|
7913
|
+
maxRows: number().int().positive().optional(),
|
|
7914
|
+
maxRowsPerDevice: number().int().positive().optional()
|
|
7915
|
+
}).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
|
|
7916
|
+
object({
|
|
7917
|
+
owner: string().min(1),
|
|
7918
|
+
reason: string().min(1)
|
|
7919
|
+
}).strict(),
|
|
7920
|
+
object({ none: string().min(1) }).strict()
|
|
7921
|
+
]);
|
|
7922
|
+
/** The descriptor a generic entries UI reads (D881 "generic entries"). */
|
|
7923
|
+
var EntryDescriptorSchema = object({
|
|
7924
|
+
title: string().min(1),
|
|
7925
|
+
/** The record body field shown as the entry's name. */
|
|
7926
|
+
nameField: string().min(1),
|
|
7927
|
+
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7928
|
+
fields: record(string(), unknown())
|
|
7929
|
+
}).strict();
|
|
7930
|
+
/** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
|
|
7931
|
+
var RecordKindDeclarationSchema = object({
|
|
7932
|
+
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7933
|
+
class: _enum(RECORD_CLASSES),
|
|
7934
|
+
writeTrigger: string().min(1),
|
|
7935
|
+
device: _enum([
|
|
7936
|
+
"required",
|
|
7937
|
+
"optional",
|
|
7938
|
+
"none"
|
|
7939
|
+
]).default("none"),
|
|
7940
|
+
at: _enum(["required", "none"]).default("none"),
|
|
7941
|
+
indexes: array(RecordIndexSchema).max(8).default([]),
|
|
7942
|
+
retention: RecordRetentionSchema,
|
|
7943
|
+
deviceRemoval: _enum(["delete", "none"]).default("none"),
|
|
7944
|
+
maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
|
|
7945
|
+
/** Derived from the Zod schema; never written by hand. */
|
|
7946
|
+
secretPaths: array(string().min(1)).default([]),
|
|
7947
|
+
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7948
|
+
secretArrayKeys: record(string(), string()).default({}),
|
|
7949
|
+
/** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
|
|
7950
|
+
adoptsFrom: string().min(1).optional(),
|
|
7951
|
+
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7952
|
+
transactFamily: string().min(1).optional(),
|
|
7953
|
+
entry: EntryDescriptorSchema.optional()
|
|
7954
|
+
}).strict();
|
|
7955
|
+
/** The kind names: lower-case, dash separated, short enough for an index name. */
|
|
7956
|
+
var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
7697
7957
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7698
7958
|
var CamProfileSchema = _enum([
|
|
7699
7959
|
"high",
|
|
@@ -8158,69 +8418,6 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
8158
8418
|
kind: "mutation",
|
|
8159
8419
|
auth: "admin"
|
|
8160
8420
|
}), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
8161
|
-
function defOf(schema) {
|
|
8162
|
-
return schema._zod?.def ?? {};
|
|
8163
|
-
}
|
|
8164
|
-
function declaredHere(schema) {
|
|
8165
|
-
return globalRegistry.get(schema)?.secret === true;
|
|
8166
|
-
}
|
|
8167
|
-
/** Wrapper kinds whose `innerType` is the field itself. */
|
|
8168
|
-
var WRAPPERS = new Set([
|
|
8169
|
-
"optional",
|
|
8170
|
-
"nullable",
|
|
8171
|
-
"default",
|
|
8172
|
-
"prefault",
|
|
8173
|
-
"catch",
|
|
8174
|
-
"readonly",
|
|
8175
|
-
"nonoptional"
|
|
8176
|
-
]);
|
|
8177
|
-
/**
|
|
8178
|
-
* The schema layers that make up ONE field: the schema itself and every
|
|
8179
|
-
* wrapper below it (optional / default / nullable / readonly / catch), plus
|
|
8180
|
-
* both sides of a pipe (`z.preprocess` puts the real schema on `out`,
|
|
8181
|
-
* `.transform` on `in`).
|
|
8182
|
-
*/
|
|
8183
|
-
function layersOf(schema) {
|
|
8184
|
-
const out = [];
|
|
8185
|
-
const queue = [schema];
|
|
8186
|
-
while (queue.length > 0) {
|
|
8187
|
-
const s = queue.shift();
|
|
8188
|
-
if (!s || out.includes(s)) continue;
|
|
8189
|
-
out.push(s);
|
|
8190
|
-
const def = defOf(s);
|
|
8191
|
-
if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
|
|
8192
|
-
if (def.type === "pipe") {
|
|
8193
|
-
if (def.in) queue.push(def.in);
|
|
8194
|
-
if (def.out) queue.push(def.out);
|
|
8195
|
-
}
|
|
8196
|
-
}
|
|
8197
|
-
return out;
|
|
8198
|
-
}
|
|
8199
|
-
/** True when any layer of this field declares `.meta({ secret: true })`. */
|
|
8200
|
-
function isZodSecret(schema) {
|
|
8201
|
-
return layersOf(schema).some(declaredHere);
|
|
8202
|
-
}
|
|
8203
|
-
/**
|
|
8204
|
-
* Every declared secret path in a config schema: dotted keys, `[]` for "each
|
|
8205
|
-
* element of this array" (`connection.password`, `rows[].token`). A declared
|
|
8206
|
-
* object or array is reported as one path and not descended into — everything
|
|
8207
|
-
* under it is secret.
|
|
8208
|
-
*/
|
|
8209
|
-
function collectZodSecretPaths(schema, prefix = "") {
|
|
8210
|
-
if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
|
|
8211
|
-
const paths = [];
|
|
8212
|
-
for (const layer of layersOf(schema)) {
|
|
8213
|
-
const def = defOf(layer);
|
|
8214
|
-
if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
|
|
8215
|
-
else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
|
|
8216
|
-
else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
|
|
8217
|
-
else if (def.type === "intersection") {
|
|
8218
|
-
if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
|
|
8219
|
-
if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
|
|
8220
|
-
}
|
|
8221
|
-
}
|
|
8222
|
-
return [...new Set(paths)];
|
|
8223
|
-
}
|
|
8224
8421
|
object({
|
|
8225
8422
|
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
8226
8423
|
params: record(string(), union([string(), number()])).optional()
|
|
@@ -8240,7 +8437,7 @@ function userError(code, params, englishFallback) {
|
|
|
8240
8437
|
return new CamstackError(code, params, englishFallback);
|
|
8241
8438
|
}
|
|
8242
8439
|
//#endregion
|
|
8243
|
-
//#region ../types/dist/err-msg-
|
|
8440
|
+
//#region ../types/dist/err-msg-BXKzRBwg.mjs
|
|
8244
8441
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8245
8442
|
DeviceType["Camera"] = "camera";
|
|
8246
8443
|
DeviceType["Hub"] = "hub";
|
|
@@ -8332,6 +8529,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
8332
8529
|
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
8333
8530
|
* integrations sharing the same food/desiccant/hopper surface. */
|
|
8334
8531
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
8532
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
8533
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
8534
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
8535
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
8335
8536
|
return DeviceType;
|
|
8336
8537
|
}({});
|
|
8337
8538
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -8509,6 +8710,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8509
8710
|
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
8510
8711
|
* real Switch device for UI rendering / export adapters. */
|
|
8511
8712
|
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
8713
|
+
/** A smart plug: a `switch` whose source says it is an outlet (HA
|
|
8714
|
+
* `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
|
|
8715
|
+
DeviceRole["Outlet"] = "outlet";
|
|
8512
8716
|
/** Generic motion / occupancy / moving event source. Distinct from
|
|
8513
8717
|
* the camera accessory PirSensor role: that one is a camera child;
|
|
8514
8718
|
* this is a standalone HA / 3rd-party motion sensor. */
|
|
@@ -8586,7 +8790,7 @@ function errMsg(err) {
|
|
|
8586
8790
|
return String(err);
|
|
8587
8791
|
}
|
|
8588
8792
|
//#endregion
|
|
8589
|
-
//#region ../types/dist/composition-
|
|
8793
|
+
//#region ../types/dist/composition-CB6PMT9p.mjs
|
|
8590
8794
|
/**
|
|
8591
8795
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8592
8796
|
*
|
|
@@ -11790,11 +11994,10 @@ var ClipModelMetaSchema = object({
|
|
|
11790
11994
|
/**
|
|
11791
11995
|
* The `vector-store` index this model's vectors live in. ONE feature space
|
|
11792
11996
|
* per index: two models share an index only when their vectors are ranked
|
|
11793
|
-
* against each other, which for CLIP means never across families.
|
|
11794
|
-
*
|
|
11795
|
-
* `modelId`); any other model gets its own.
|
|
11997
|
+
* against each other, which for CLIP means never across families. Every
|
|
11998
|
+
* model gets its own.
|
|
11796
11999
|
*/
|
|
11797
|
-
vectorIndex: string().regex(/^object-clip
|
|
12000
|
+
vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
|
|
11798
12001
|
/**
|
|
11799
12002
|
* The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
|
|
11800
12003
|
* must be unique per tokenizer: every model's siblings land in ONE flat
|
|
@@ -12973,8 +13176,13 @@ var AlertSeveritySchema = _enum([
|
|
|
12973
13176
|
"info",
|
|
12974
13177
|
"success",
|
|
12975
13178
|
"warning",
|
|
12976
|
-
"error"
|
|
13179
|
+
"error",
|
|
13180
|
+
"critical"
|
|
12977
13181
|
]);
|
|
13182
|
+
var AlertActionSchema = object({
|
|
13183
|
+
label: string(),
|
|
13184
|
+
href: string().optional()
|
|
13185
|
+
});
|
|
12978
13186
|
var AlertStatusSchema = _enum([
|
|
12979
13187
|
"active",
|
|
12980
13188
|
"in-progress",
|
|
@@ -12992,6 +13200,7 @@ var AlertSchema = object({
|
|
|
12992
13200
|
severity: AlertSeveritySchema,
|
|
12993
13201
|
title: string(),
|
|
12994
13202
|
message: string(),
|
|
13203
|
+
action: AlertActionSchema.optional(),
|
|
12995
13204
|
status: AlertStatusSchema,
|
|
12996
13205
|
progress: number().optional(),
|
|
12997
13206
|
read: boolean(),
|
|
@@ -15527,6 +15736,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
|
15527
15736
|
keyField: string()
|
|
15528
15737
|
}).optional()
|
|
15529
15738
|
})) });
|
|
15739
|
+
/**
|
|
15740
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
15741
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
15742
|
+
*
|
|
15743
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
15744
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
15745
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
15746
|
+
*/
|
|
15747
|
+
var RawSecretMigrationInputSchema = object({
|
|
15748
|
+
/** `false` (the default of the script) = report only. */
|
|
15749
|
+
apply: boolean() });
|
|
15750
|
+
var RawSecretMigrationReportSchema = object({
|
|
15751
|
+
apply: boolean(),
|
|
15752
|
+
/** Rows that can carry a secret (a profile, an enrolment). */
|
|
15753
|
+
rows: number().int(),
|
|
15754
|
+
/** Rows whose secret was plaintext when the run started. */
|
|
15755
|
+
raw: number().int(),
|
|
15756
|
+
/** Rows that already held a keychain marker when the run started. */
|
|
15757
|
+
markers: number().int(),
|
|
15758
|
+
/** Plaintext rows moved by THIS run (always 0 on a dry run). */
|
|
15759
|
+
migrated: number().int(),
|
|
15760
|
+
/** Plaintext rows left in place because the move or its read-back failed. */
|
|
15761
|
+
failed: number().int(),
|
|
15762
|
+
/** After the run: rows still holding plaintext. */
|
|
15763
|
+
remainingRaw: number().int(),
|
|
15764
|
+
/** After the run: markers the keychain could not resolve right now. */
|
|
15765
|
+
unresolvedMarkers: number().int(),
|
|
15766
|
+
/**
|
|
15767
|
+
* A second, redundant copy of the secrets' rows that the run found (and, on
|
|
15768
|
+
* `apply`, deleted after verifying the first). Owners with a single copy omit it.
|
|
15769
|
+
*/
|
|
15770
|
+
redundantCopies: number().int().optional(),
|
|
15771
|
+
/** True when nothing is raw and every marker resolves. */
|
|
15772
|
+
verified: boolean()
|
|
15773
|
+
});
|
|
15530
15774
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
15531
15775
|
* agent is the reason placement is not fixed to the hub. */
|
|
15532
15776
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -15753,6 +15997,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
15753
15997
|
}), SettingsUpdateResultSchema, {
|
|
15754
15998
|
kind: "mutation",
|
|
15755
15999
|
auth: "admin"
|
|
16000
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
16001
|
+
kind: "mutation",
|
|
16002
|
+
auth: "admin"
|
|
15756
16003
|
}), method(object({}), object({ libs: array(object({
|
|
15757
16004
|
filePath: string(),
|
|
15758
16005
|
content: string()
|
|
@@ -16016,6 +16263,347 @@ id: union([string(), number()]) }), {
|
|
|
16016
16263
|
auth: "admin"
|
|
16017
16264
|
});
|
|
16018
16265
|
/**
|
|
16266
|
+
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
16267
|
+
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
16268
|
+
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
16269
|
+
*
|
|
16270
|
+
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
16271
|
+
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
16272
|
+
* that with the addon id closed over). It is deliberately NOT in any input
|
|
16273
|
+
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
16274
|
+
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
16275
|
+
* addons go through the owner's capability.
|
|
16276
|
+
*
|
|
16277
|
+
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
16278
|
+
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
16279
|
+
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
16280
|
+
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
16281
|
+
* row's own ref.
|
|
16282
|
+
*
|
|
16283
|
+
* Internal: addons reach it through `ctx.records`, never directly.
|
|
16284
|
+
*/
|
|
16285
|
+
var RecordIdSchema = string().min(1).max(256);
|
|
16286
|
+
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
16287
|
+
var RecordBodySchema = record(string(), unknown());
|
|
16288
|
+
var RecordInputSchema = object({
|
|
16289
|
+
id: RecordIdSchema,
|
|
16290
|
+
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
16291
|
+
deviceId: number().int().optional(),
|
|
16292
|
+
/** The domain clock, ms: observed / created / opened. */
|
|
16293
|
+
at: number().int().optional(),
|
|
16294
|
+
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
16295
|
+
expiresAt: number().int().optional(),
|
|
16296
|
+
data: RecordBodySchema
|
|
16297
|
+
});
|
|
16298
|
+
var RecordViewSchema = object({
|
|
16299
|
+
id: string(),
|
|
16300
|
+
deviceId: number().int().nullable(),
|
|
16301
|
+
at: number().nullable(),
|
|
16302
|
+
expiresAt: number().nullable(),
|
|
16303
|
+
rev: number().int(),
|
|
16304
|
+
updatedAt: number(),
|
|
16305
|
+
data: RecordBodySchema
|
|
16306
|
+
});
|
|
16307
|
+
/** Declared index fields only. Anything else does not compile, by design. */
|
|
16308
|
+
var RecordWhereSchema = record(RecordFieldPathSchema, union([
|
|
16309
|
+
string(),
|
|
16310
|
+
number(),
|
|
16311
|
+
boolean(),
|
|
16312
|
+
object({ in: array(union([
|
|
16313
|
+
string(),
|
|
16314
|
+
number(),
|
|
16315
|
+
boolean()
|
|
16316
|
+
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
16317
|
+
object({
|
|
16318
|
+
gt: union([string(), number()]).optional(),
|
|
16319
|
+
gte: union([string(), number()]).optional(),
|
|
16320
|
+
lt: union([string(), number()]).optional(),
|
|
16321
|
+
lte: union([string(), number()]).optional()
|
|
16322
|
+
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
16323
|
+
]));
|
|
16324
|
+
var KindShape = { kind: RecordKindNameSchema };
|
|
16325
|
+
var TimeWindowShape = {
|
|
16326
|
+
deviceId: number().int().optional(),
|
|
16327
|
+
atFrom: number().optional(),
|
|
16328
|
+
atTo: number().optional()
|
|
16329
|
+
};
|
|
16330
|
+
var RecordQueryInputSchema = object({
|
|
16331
|
+
...KindShape,
|
|
16332
|
+
...TimeWindowShape,
|
|
16333
|
+
where: RecordWhereSchema.optional(),
|
|
16334
|
+
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
16335
|
+
order: _enum(["at", "id"]).optional(),
|
|
16336
|
+
desc: boolean().optional(),
|
|
16337
|
+
limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
16338
|
+
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
16339
|
+
cursor: string().min(1).optional()
|
|
16340
|
+
});
|
|
16341
|
+
var RecordQueryResultSchema = object({
|
|
16342
|
+
records: array(RecordViewSchema),
|
|
16343
|
+
nextCursor: string().nullable()
|
|
16344
|
+
});
|
|
16345
|
+
var RecordKindStateSchema = _enum([
|
|
16346
|
+
"created",
|
|
16347
|
+
"unchanged",
|
|
16348
|
+
"updated"
|
|
16349
|
+
]);
|
|
16350
|
+
var DeclareKindResultSchema = object({
|
|
16351
|
+
kindId: number().int(),
|
|
16352
|
+
state: RecordKindStateSchema,
|
|
16353
|
+
createdIndexes: array(string()),
|
|
16354
|
+
/** The boot guard: the kind is empty while its legacy table still holds rows. */
|
|
16355
|
+
adoptionPending: object({
|
|
16356
|
+
legacyTable: string(),
|
|
16357
|
+
legacyRows: number().int()
|
|
16358
|
+
}).nullable()
|
|
16359
|
+
});
|
|
16360
|
+
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16361
|
+
var SecretRefsList = array(string());
|
|
16362
|
+
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16363
|
+
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16364
|
+
kind: "mutation",
|
|
16365
|
+
auth: "admin"
|
|
16366
|
+
}), method(object({
|
|
16367
|
+
...KindShape,
|
|
16368
|
+
id: RecordIdSchema
|
|
16369
|
+
}), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
|
|
16370
|
+
...KindShape,
|
|
16371
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16372
|
+
}), array(RecordViewSchema), { auth: "admin" }), method(object({
|
|
16373
|
+
...KindShape,
|
|
16374
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16375
|
+
}), RecordSecretRefsSchema, { auth: "admin" }), method(object({
|
|
16376
|
+
...KindShape,
|
|
16377
|
+
record: RecordInputSchema,
|
|
16378
|
+
/** Compare-and-set. `0` means "the row must not exist". */
|
|
16379
|
+
ifRev: number().int().min(0).optional()
|
|
16380
|
+
}), object({
|
|
16381
|
+
rev: number().int(),
|
|
16382
|
+
releasedRefs: SecretRefsList
|
|
16383
|
+
}), {
|
|
16384
|
+
kind: "mutation",
|
|
16385
|
+
auth: "admin"
|
|
16386
|
+
}), method(object({
|
|
16387
|
+
...KindShape,
|
|
16388
|
+
records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16389
|
+
}), object({
|
|
16390
|
+
count: number().int(),
|
|
16391
|
+
releasedRefs: SecretRefsList
|
|
16392
|
+
}), {
|
|
16393
|
+
kind: "mutation",
|
|
16394
|
+
auth: "admin"
|
|
16395
|
+
}), method(object({
|
|
16396
|
+
...KindShape,
|
|
16397
|
+
id: RecordIdSchema,
|
|
16398
|
+
data: RecordBodySchema,
|
|
16399
|
+
at: number().int().nullable().optional(),
|
|
16400
|
+
expiresAt: number().int().nullable().optional(),
|
|
16401
|
+
ifRev: number().int().min(1).optional()
|
|
16402
|
+
}), object({
|
|
16403
|
+
rev: number().int(),
|
|
16404
|
+
releasedRefs: SecretRefsList
|
|
16405
|
+
}), {
|
|
16406
|
+
kind: "mutation",
|
|
16407
|
+
auth: "admin"
|
|
16408
|
+
}), method(object({
|
|
16409
|
+
...KindShape,
|
|
16410
|
+
id: RecordIdSchema
|
|
16411
|
+
}), object({
|
|
16412
|
+
deleted: boolean(),
|
|
16413
|
+
secretRefs: SecretRefsList
|
|
16414
|
+
}), {
|
|
16415
|
+
kind: "mutation",
|
|
16416
|
+
auth: "admin"
|
|
16417
|
+
}), method(object({
|
|
16418
|
+
...KindShape,
|
|
16419
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16420
|
+
}), object({
|
|
16421
|
+
deleted: number().int(),
|
|
16422
|
+
secretRefs: SecretRefsList
|
|
16423
|
+
}), {
|
|
16424
|
+
kind: "mutation",
|
|
16425
|
+
auth: "admin"
|
|
16426
|
+
}), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16427
|
+
...KindShape,
|
|
16428
|
+
...TimeWindowShape,
|
|
16429
|
+
where: RecordWhereSchema.optional()
|
|
16430
|
+
}), object({ count: number().int() }), { auth: "admin" }), method(object({
|
|
16431
|
+
...KindShape,
|
|
16432
|
+
deviceId: number().int().optional(),
|
|
16433
|
+
from: number(),
|
|
16434
|
+
to: number(),
|
|
16435
|
+
bucketMs: number().int().positive()
|
|
16436
|
+
}), object({ buckets: array(object({
|
|
16437
|
+
bucketStart: number(),
|
|
16438
|
+
count: number().int()
|
|
16439
|
+
})) }), { auth: "admin" }), method(object({
|
|
16440
|
+
...KindShape,
|
|
16441
|
+
op: _enum([
|
|
16442
|
+
"sum",
|
|
16443
|
+
"min",
|
|
16444
|
+
"max",
|
|
16445
|
+
"count"
|
|
16446
|
+
]),
|
|
16447
|
+
field: RecordFieldPathSchema.optional(),
|
|
16448
|
+
groupBy: RecordFieldPathSchema.optional(),
|
|
16449
|
+
where: RecordWhereSchema.optional()
|
|
16450
|
+
}), object({ rows: array(object({
|
|
16451
|
+
group: union([
|
|
16452
|
+
string(),
|
|
16453
|
+
number(),
|
|
16454
|
+
_null()
|
|
16455
|
+
]),
|
|
16456
|
+
value: number().nullable()
|
|
16457
|
+
})) }), { auth: "admin" }), method(object({
|
|
16458
|
+
...KindShape,
|
|
16459
|
+
deviceId: number().int().optional(),
|
|
16460
|
+
atBefore: number().optional(),
|
|
16461
|
+
where: RecordWhereSchema.optional()
|
|
16462
|
+
}), object({
|
|
16463
|
+
deleted: number().int(),
|
|
16464
|
+
secretRefs: SecretRefsList
|
|
16465
|
+
}), {
|
|
16466
|
+
kind: "mutation",
|
|
16467
|
+
auth: "admin"
|
|
16468
|
+
}), method(object({
|
|
16469
|
+
deviceId: number().int(),
|
|
16470
|
+
kinds: array(RecordKindNameSchema).optional()
|
|
16471
|
+
}), object({
|
|
16472
|
+
deleted: record(string(), number().int()),
|
|
16473
|
+
secretRefs: SecretRefsList
|
|
16474
|
+
}), {
|
|
16475
|
+
kind: "mutation",
|
|
16476
|
+
auth: "admin"
|
|
16477
|
+
}), method(object(KindShape), object({ id: number().int() }), {
|
|
16478
|
+
kind: "mutation",
|
|
16479
|
+
auth: "admin"
|
|
16480
|
+
});
|
|
16481
|
+
/** One table of the settings database. */
|
|
16482
|
+
var StorageTableSchema = object({
|
|
16483
|
+
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
16484
|
+
name: string(),
|
|
16485
|
+
/** The owner prefix of a scoped name (`recorder` for `recorder:addon-settings`), else null. */
|
|
16486
|
+
owner: string().nullable(),
|
|
16487
|
+
rows: number().int().nonnegative(),
|
|
16488
|
+
/** Bytes the table's pages occupy (`dbstat`); null when the engine cannot measure. */
|
|
16489
|
+
bytes: number().int().nonnegative().nullable(),
|
|
16490
|
+
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
16491
|
+
declaredThisBoot: boolean()
|
|
16492
|
+
});
|
|
16493
|
+
/** One declared record kind (D881) as System -> Data shows it. */
|
|
16494
|
+
var StorageKindSchema = object({
|
|
16495
|
+
owner: string(),
|
|
16496
|
+
kind: string(),
|
|
16497
|
+
database: _enum(["settings", "events"]),
|
|
16498
|
+
class: string(),
|
|
16499
|
+
state: _enum([
|
|
16500
|
+
"declared",
|
|
16501
|
+
"orphaned",
|
|
16502
|
+
"dropped"
|
|
16503
|
+
]),
|
|
16504
|
+
/** `null` when the caller asked for no counts (`counts: false`). */
|
|
16505
|
+
rows: number().int().nonnegative().nullable(),
|
|
16506
|
+
/** Rows x the average size of a sample; null for an empty kind. */
|
|
16507
|
+
bytesEstimate: number().int().nonnegative().nullable(),
|
|
16508
|
+
writeTrigger: string(),
|
|
16509
|
+
retention: RecordRetentionSchema,
|
|
16510
|
+
/** `true` when the kind is an entry kind (the generic entries UI lists it). */
|
|
16511
|
+
entry: boolean(),
|
|
16512
|
+
/** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
|
|
16513
|
+
declaration: RecordKindDeclarationSchema
|
|
16514
|
+
});
|
|
16515
|
+
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
16516
|
+
collection: string().min(1),
|
|
16517
|
+
expectRows: number().int().nonnegative()
|
|
16518
|
+
}), object({
|
|
16519
|
+
dropped: literal(true),
|
|
16520
|
+
rows: number().int().nonnegative()
|
|
16521
|
+
}), {
|
|
16522
|
+
kind: "mutation",
|
|
16523
|
+
auth: "admin"
|
|
16524
|
+
}), method(object({
|
|
16525
|
+
owner: string().min(1).optional(),
|
|
16526
|
+
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
16527
|
+
counts: boolean().optional()
|
|
16528
|
+
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16529
|
+
owner: string().min(1),
|
|
16530
|
+
kind: RecordKindNameSchema
|
|
16531
|
+
}), RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16532
|
+
owner: string().min(1),
|
|
16533
|
+
kind: RecordKindNameSchema,
|
|
16534
|
+
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16535
|
+
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16536
|
+
complete: boolean().optional()
|
|
16537
|
+
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16538
|
+
kind: "mutation",
|
|
16539
|
+
auth: "admin"
|
|
16540
|
+
}), method(object({
|
|
16541
|
+
collection: string().min(1),
|
|
16542
|
+
cursor: string().optional(),
|
|
16543
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
16544
|
+
}), object({
|
|
16545
|
+
rows: array(object({
|
|
16546
|
+
id: string(),
|
|
16547
|
+
data: record(string(), unknown())
|
|
16548
|
+
})),
|
|
16549
|
+
nextCursor: string().nullable()
|
|
16550
|
+
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16551
|
+
/**
|
|
16552
|
+
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16553
|
+
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
16554
|
+
* declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
|
|
16555
|
+
*
|
|
16556
|
+
* The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
|
|
16557
|
+
* the entry body with `secret: true` on every credential field, so a password
|
|
16558
|
+
* field is derived from the schema and never from a name. `putEntry` takes the
|
|
16559
|
+
* redaction token for an untouched secret (the stored value is kept), a string
|
|
16560
|
+
* for a new one, and the clear instruction to remove one. A read never carries
|
|
16561
|
+
* a secret value, and a locked keychain refuses the write with
|
|
16562
|
+
* `records/secret-unavailable` instead of storing plaintext.
|
|
16563
|
+
*
|
|
16564
|
+
* Hub-only, served in-process (it acts for each entry's owner on the keychain).
|
|
16565
|
+
*/
|
|
16566
|
+
var EntryKindInfoSchema = object({
|
|
16567
|
+
owner: string(),
|
|
16568
|
+
kind: RecordKindNameSchema,
|
|
16569
|
+
title: string(),
|
|
16570
|
+
nameField: string(),
|
|
16571
|
+
/** JSON Schema of the body; `secret: true` marks a password field. */
|
|
16572
|
+
fields: record(string(), unknown()),
|
|
16573
|
+
secretPaths: array(string()),
|
|
16574
|
+
rows: number().int().nonnegative()
|
|
16575
|
+
});
|
|
16576
|
+
var EntryViewSchema = object({
|
|
16577
|
+
id: RecordIdSchema,
|
|
16578
|
+
name: string(),
|
|
16579
|
+
rev: number().int(),
|
|
16580
|
+
updatedAt: number(),
|
|
16581
|
+
/** Secret fields hold the redaction token. */
|
|
16582
|
+
data: RecordBodySchema
|
|
16583
|
+
});
|
|
16584
|
+
var EntryAddress = {
|
|
16585
|
+
owner: string().min(1),
|
|
16586
|
+
kind: RecordKindNameSchema
|
|
16587
|
+
};
|
|
16588
|
+
method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
|
|
16589
|
+
...EntryAddress,
|
|
16590
|
+
id: RecordIdSchema.optional(),
|
|
16591
|
+
data: RecordBodySchema,
|
|
16592
|
+
ifRev: number().int().min(1).optional()
|
|
16593
|
+
}), object({
|
|
16594
|
+
id: string(),
|
|
16595
|
+
rev: number().int()
|
|
16596
|
+
}), {
|
|
16597
|
+
kind: "mutation",
|
|
16598
|
+
auth: "admin"
|
|
16599
|
+
}), method(object({
|
|
16600
|
+
...EntryAddress,
|
|
16601
|
+
id: RecordIdSchema
|
|
16602
|
+
}), object({ deleted: boolean() }), {
|
|
16603
|
+
kind: "mutation",
|
|
16604
|
+
auth: "admin"
|
|
16605
|
+
});
|
|
16606
|
+
/**
|
|
16019
16607
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
16020
16608
|
*
|
|
16021
16609
|
* Settings blobs never hold a secret: they hold a marker
|
|
@@ -16556,6 +17144,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
|
|
|
16556
17144
|
kind: "mutation",
|
|
16557
17145
|
auth: "admin",
|
|
16558
17146
|
caller: "required"
|
|
17147
|
+
}), method(object({
|
|
17148
|
+
ref: string().min(1),
|
|
17149
|
+
value: string().min(1)
|
|
17150
|
+
}), object({
|
|
17151
|
+
ref: string(),
|
|
17152
|
+
version: number().int()
|
|
17153
|
+
}), {
|
|
17154
|
+
kind: "mutation",
|
|
17155
|
+
auth: "admin",
|
|
17156
|
+
caller: "required"
|
|
16559
17157
|
}), method(object({ refs: array(string().min(1)).max(1e3) }), object({
|
|
16560
17158
|
deleted: array(string()).readonly(),
|
|
16561
17159
|
kept: array(object({
|
|
@@ -17077,7 +17675,11 @@ var deviceDiscoveryCapability = {
|
|
|
17077
17675
|
};
|
|
17078
17676
|
/**
|
|
17079
17677
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17080
|
-
* system-scoped
|
|
17678
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17679
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17680
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17681
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17682
|
+
* successor to `ha-discovery`:
|
|
17081
17683
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17082
17684
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17083
17685
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -39330,6 +39932,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
39330
39932
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
39331
39933
|
kind: "mutation",
|
|
39332
39934
|
auth: "admin"
|
|
39935
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
39936
|
+
kind: "mutation",
|
|
39937
|
+
auth: "admin"
|
|
39333
39938
|
}), method(ProfileRefInputSchema, _void(), {
|
|
39334
39939
|
kind: "mutation",
|
|
39335
39940
|
auth: "admin"
|
|
@@ -49839,6 +50444,41 @@ var ServerRollbackInfoSchema = object({
|
|
|
49839
50444
|
atMs: number(),
|
|
49840
50445
|
reason: string()
|
|
49841
50446
|
});
|
|
50447
|
+
/**
|
|
50448
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
50449
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
50450
|
+
* service holds, because only the hub plans) against the states the process
|
|
50451
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
50452
|
+
* every boot, served on `getServerPackageStatus`.
|
|
50453
|
+
*
|
|
50454
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
50455
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
50456
|
+
* planned runner the process service has no entry for.
|
|
50457
|
+
*/
|
|
50458
|
+
var RunnerRefusalSchema = object({
|
|
50459
|
+
runnerId: string(),
|
|
50460
|
+
addonIds: array(string()),
|
|
50461
|
+
reason: string()
|
|
50462
|
+
});
|
|
50463
|
+
var RunnerBootCheckSchema = object({
|
|
50464
|
+
checkedAtMs: number(),
|
|
50465
|
+
/** Runners planned for this node. */
|
|
50466
|
+
expected: number(),
|
|
50467
|
+
/** Planned runners whose process is `running`. */
|
|
50468
|
+
running: number(),
|
|
50469
|
+
failed: array(string()),
|
|
50470
|
+
refused: array(RunnerRefusalSchema),
|
|
50471
|
+
missing: array(string()),
|
|
50472
|
+
/**
|
|
50473
|
+
* Runners still on their way: `starting`, or `crashed` waiting on a backoff
|
|
50474
|
+
* respawn. The check is FINAL only when this is empty; until then nothing is
|
|
50475
|
+
* pushed and the verdict is re-evaluated on the next runner state change.
|
|
50476
|
+
* Optional for version skew (absent = settled).
|
|
50477
|
+
*/
|
|
50478
|
+
pending: array(string()).optional(),
|
|
50479
|
+
/** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
|
|
50480
|
+
planKnown: boolean()
|
|
50481
|
+
});
|
|
49842
50482
|
var ServerPackageStatusSchema = object({
|
|
49843
50483
|
/** Root package name (`@camstack/server` on the hub). */
|
|
49844
50484
|
packageName: string(),
|
|
@@ -49901,7 +50541,14 @@ var ServerPackageStatusSchema = object({
|
|
|
49901
50541
|
* for version skew: an older provider's payload simply omits it, and an
|
|
49902
50542
|
* absent wrapper is unknown — never `native`.
|
|
49903
50543
|
*/
|
|
49904
|
-
wrapper: WrapperIdentitySchema.optional()
|
|
50544
|
+
wrapper: WrapperIdentitySchema.optional(),
|
|
50545
|
+
/**
|
|
50546
|
+
* What this node PLANNED to run against what its process service reports
|
|
50547
|
+
* (D877). Absent until the one-shot boot check has run (~60 s after boot) and
|
|
50548
|
+
* on a provider that predates it. Absent is "not checked yet", never "all
|
|
50549
|
+
* well": a consumer that needs the answer treats it as pending.
|
|
50550
|
+
*/
|
|
50551
|
+
runners: RunnerBootCheckSchema.optional()
|
|
49905
50552
|
});
|
|
49906
50553
|
var ServerUpdateCheckResultSchema = object({
|
|
49907
50554
|
packageName: string(),
|
|
@@ -49952,6 +50599,13 @@ var ServerUpdateOutcomeSchema = _enum([
|
|
|
49952
50599
|
"refused",
|
|
49953
50600
|
"failed"
|
|
49954
50601
|
]);
|
|
50602
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
50603
|
+
var UpdateBlockerSchema = object({
|
|
50604
|
+
addonId: string(),
|
|
50605
|
+
reason: string(),
|
|
50606
|
+
/** What the operator does about it. */
|
|
50607
|
+
remedy: string()
|
|
50608
|
+
});
|
|
49955
50609
|
var ServerUpdateActionResultSchema = object({
|
|
49956
50610
|
accepted: boolean(),
|
|
49957
50611
|
targetVersion: string().nullable(),
|
|
@@ -49969,14 +50623,27 @@ var ServerUpdateActionResultSchema = object({
|
|
|
49969
50623
|
* The failure itself, verbatim enough to act on (the npm output for a
|
|
49970
50624
|
* staging install). Non-null only for `failed`.
|
|
49971
50625
|
*/
|
|
49972
|
-
error: string().nullable().optional()
|
|
50626
|
+
error: string().nullable().optional(),
|
|
50627
|
+
/**
|
|
50628
|
+
* The addons the target version would refuse to start on this node's live
|
|
50629
|
+
* store (D877), present when the pre-flight refused the update
|
|
50630
|
+
* (`reason: 'addon-would-refuse'`). Optional for version skew.
|
|
50631
|
+
*/
|
|
50632
|
+
blockers: array(UpdateBlockerSchema).optional()
|
|
49973
50633
|
});
|
|
49974
50634
|
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
49975
50635
|
kind: "mutation",
|
|
49976
50636
|
auth: "admin"
|
|
49977
|
-
}), method(object({
|
|
49978
|
-
/** Explicit target version; omitted = latest from the registry. */
|
|
49979
|
-
version: string().optional()
|
|
50637
|
+
}), method(object({
|
|
50638
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
50639
|
+
version: string().optional(),
|
|
50640
|
+
/**
|
|
50641
|
+
* Apply even though the pre-flight (D877) found addons the target would
|
|
50642
|
+
* refuse to start. Off by default: those addons stay down until the
|
|
50643
|
+
* remedy is run, which is the incident this gate exists to prevent.
|
|
50644
|
+
*/
|
|
50645
|
+
acknowledgeRefusals: boolean().optional()
|
|
50646
|
+
}), ServerUpdateActionResultSchema, {
|
|
49980
50647
|
kind: "mutation",
|
|
49981
50648
|
auth: "admin",
|
|
49982
50649
|
timeoutMs: 16 * 6e4
|
|
@@ -52422,7 +53089,9 @@ var ManifestShapeSchema = object({
|
|
|
52422
53089
|
var AddonProcessSchema = object({
|
|
52423
53090
|
pid: number().optional(),
|
|
52424
53091
|
mode: string(),
|
|
52425
|
-
state: string()
|
|
53092
|
+
state: string(),
|
|
53093
|
+
/** Why the runner is `refused` (an addon's own words), when it is (D877). */
|
|
53094
|
+
reason: string().optional()
|
|
52426
53095
|
});
|
|
52427
53096
|
/**
|
|
52428
53097
|
* Per-addon health snapshot from the kernel's AddonHealthMonitor.
|
|
@@ -53190,7 +53859,8 @@ var batteryCapability = {
|
|
|
53190
53859
|
DeviceType.Button,
|
|
53191
53860
|
DeviceType.Switch,
|
|
53192
53861
|
DeviceType.PetFeeder,
|
|
53193
|
-
DeviceType.Container
|
|
53862
|
+
DeviceType.Container,
|
|
53863
|
+
DeviceType.Thermostat
|
|
53194
53864
|
],
|
|
53195
53865
|
methods: {
|
|
53196
53866
|
/**
|
|
@@ -53811,6 +54481,12 @@ var ClimateControlStatusSchema = object({
|
|
|
53811
54481
|
/** Horizontal louver swing on/off. Null when the device has no
|
|
53812
54482
|
* horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
|
|
53813
54483
|
swingHorizontal: boolean().nullable(),
|
|
54484
|
+
/** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
54485
|
+
minTemp: number().nullable().optional(),
|
|
54486
|
+
/** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
54487
|
+
maxTemp: number().nullable().optional(),
|
|
54488
|
+
/** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
|
|
54489
|
+
tempStep: number().positive().nullable().optional(),
|
|
53814
54490
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
53815
54491
|
lastFetchedAt: number()
|
|
53816
54492
|
});
|
|
@@ -54657,6 +55333,161 @@ onStatusChanged: { data: object({
|
|
|
54657
55333
|
* whether persisting is worth a SQLite commit. */
|
|
54658
55334
|
volatileStateFields: ["lastChangedAt"]
|
|
54659
55335
|
};
|
|
55336
|
+
/**
|
|
55337
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
55338
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
55339
|
+
*
|
|
55340
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
55341
|
+
* by any integration that exposes the same program / option surface.
|
|
55342
|
+
*
|
|
55343
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55344
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55345
|
+
*/
|
|
55346
|
+
var DishwasherStateSchema = _enum([
|
|
55347
|
+
"idle",
|
|
55348
|
+
"running",
|
|
55349
|
+
"paused",
|
|
55350
|
+
"finished",
|
|
55351
|
+
"error",
|
|
55352
|
+
"unavailable"
|
|
55353
|
+
]);
|
|
55354
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
55355
|
+
"ok",
|
|
55356
|
+
"low",
|
|
55357
|
+
"empty"
|
|
55358
|
+
]);
|
|
55359
|
+
var DishwasherStatusSchema = object({
|
|
55360
|
+
state: DishwasherStateSchema,
|
|
55361
|
+
/** Active program id/name, or null when none selected / unknown. */
|
|
55362
|
+
program: string().nullable(),
|
|
55363
|
+
/** Program tokens the hardware accepts — drives the UI selector. */
|
|
55364
|
+
availablePrograms: array(string()),
|
|
55365
|
+
/** Minutes remaining on the active cycle, or null when not running. */
|
|
55366
|
+
remainingMinutes: number().int().nonnegative().nullable(),
|
|
55367
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
55368
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
55369
|
+
/** True when the door is reported open. */
|
|
55370
|
+
doorOpen: boolean(),
|
|
55371
|
+
/** True when remote start is allowed (door closed, power on, etc.). */
|
|
55372
|
+
remoteStartAllowed: boolean(),
|
|
55373
|
+
/** Main power / switched-on state. */
|
|
55374
|
+
powerOn: boolean(),
|
|
55375
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55376
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55377
|
+
halfLoad: boolean(),
|
|
55378
|
+
hygienePlus: boolean(),
|
|
55379
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55380
|
+
extraDry: boolean(),
|
|
55381
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55382
|
+
intensiveZone: boolean(),
|
|
55383
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55384
|
+
varioSpeedPlus: boolean(),
|
|
55385
|
+
/** Child lock (controls disabled on the appliance). */
|
|
55386
|
+
childLock: boolean(),
|
|
55387
|
+
errorCode: number().nullable(),
|
|
55388
|
+
errorLabel: string().nullable(),
|
|
55389
|
+
lastFetchedAt: number()
|
|
55390
|
+
});
|
|
55391
|
+
var dishwasherCapability = {
|
|
55392
|
+
name: "dishwasher",
|
|
55393
|
+
scope: "device",
|
|
55394
|
+
deviceNative: true,
|
|
55395
|
+
mode: "singleton",
|
|
55396
|
+
deviceTypes: [DeviceType.Dishwasher],
|
|
55397
|
+
methods: {
|
|
55398
|
+
start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55399
|
+
kind: "mutation",
|
|
55400
|
+
auth: "protected"
|
|
55401
|
+
}),
|
|
55402
|
+
pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55403
|
+
kind: "mutation",
|
|
55404
|
+
auth: "protected"
|
|
55405
|
+
}),
|
|
55406
|
+
stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55407
|
+
kind: "mutation",
|
|
55408
|
+
auth: "protected"
|
|
55409
|
+
}),
|
|
55410
|
+
setProgram: method(object({
|
|
55411
|
+
deviceId: number().int().nonnegative(),
|
|
55412
|
+
program: string().min(1)
|
|
55413
|
+
}), _void(), {
|
|
55414
|
+
kind: "mutation",
|
|
55415
|
+
auth: "protected"
|
|
55416
|
+
}),
|
|
55417
|
+
setPower: method(object({
|
|
55418
|
+
deviceId: number().int().nonnegative(),
|
|
55419
|
+
on: boolean()
|
|
55420
|
+
}), _void(), {
|
|
55421
|
+
kind: "mutation",
|
|
55422
|
+
auth: "protected"
|
|
55423
|
+
}),
|
|
55424
|
+
setHalfLoad: method(object({
|
|
55425
|
+
deviceId: number().int().nonnegative(),
|
|
55426
|
+
on: boolean()
|
|
55427
|
+
}), _void(), {
|
|
55428
|
+
kind: "mutation",
|
|
55429
|
+
auth: "protected"
|
|
55430
|
+
}),
|
|
55431
|
+
setHygienePlus: method(object({
|
|
55432
|
+
deviceId: number().int().nonnegative(),
|
|
55433
|
+
on: boolean()
|
|
55434
|
+
}), _void(), {
|
|
55435
|
+
kind: "mutation",
|
|
55436
|
+
auth: "protected"
|
|
55437
|
+
}),
|
|
55438
|
+
setExtraDry: method(object({
|
|
55439
|
+
deviceId: number().int().nonnegative(),
|
|
55440
|
+
on: boolean()
|
|
55441
|
+
}), _void(), {
|
|
55442
|
+
kind: "mutation",
|
|
55443
|
+
auth: "protected"
|
|
55444
|
+
}),
|
|
55445
|
+
setIntensiveZone: method(object({
|
|
55446
|
+
deviceId: number().int().nonnegative(),
|
|
55447
|
+
on: boolean()
|
|
55448
|
+
}), _void(), {
|
|
55449
|
+
kind: "mutation",
|
|
55450
|
+
auth: "protected"
|
|
55451
|
+
}),
|
|
55452
|
+
setVarioSpeedPlus: method(object({
|
|
55453
|
+
deviceId: number().int().nonnegative(),
|
|
55454
|
+
on: boolean()
|
|
55455
|
+
}), _void(), {
|
|
55456
|
+
kind: "mutation",
|
|
55457
|
+
auth: "protected"
|
|
55458
|
+
}),
|
|
55459
|
+
setChildLock: method(object({
|
|
55460
|
+
deviceId: number().int().nonnegative(),
|
|
55461
|
+
on: boolean()
|
|
55462
|
+
}), _void(), {
|
|
55463
|
+
kind: "mutation",
|
|
55464
|
+
auth: "protected"
|
|
55465
|
+
}),
|
|
55466
|
+
setOption: method(object({
|
|
55467
|
+
deviceId: number().int().nonnegative(),
|
|
55468
|
+
key: string().min(1),
|
|
55469
|
+
value: union([
|
|
55470
|
+
boolean(),
|
|
55471
|
+
string(),
|
|
55472
|
+
number()
|
|
55473
|
+
])
|
|
55474
|
+
}), _void(), {
|
|
55475
|
+
kind: "mutation",
|
|
55476
|
+
auth: "protected"
|
|
55477
|
+
})
|
|
55478
|
+
},
|
|
55479
|
+
status: {
|
|
55480
|
+
schema: DishwasherStatusSchema,
|
|
55481
|
+
kind: "poll"
|
|
55482
|
+
},
|
|
55483
|
+
runtimeState: DishwasherStatusSchema,
|
|
55484
|
+
durability: "session",
|
|
55485
|
+
history: { fields: { progressPercent: {
|
|
55486
|
+
kind: "gauge",
|
|
55487
|
+
unit: "%",
|
|
55488
|
+
deadband: 2
|
|
55489
|
+
} } }
|
|
55490
|
+
};
|
|
54660
55491
|
var DoorbellStatusSchema = object({
|
|
54661
55492
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
54662
55493
|
lastPressedAt: number().nullable(),
|
|
@@ -55459,6 +56290,32 @@ var gasCapability = {
|
|
|
55459
56290
|
* whether persisting is worth a SQLite commit. */
|
|
55460
56291
|
volatileStateFields: ["lastChangedAt"]
|
|
55461
56292
|
};
|
|
56293
|
+
var HeatingValveStatusSchema = object({
|
|
56294
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
56295
|
+
position: number().min(0).max(100).nullable(),
|
|
56296
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
56297
|
+
lastFetchedAt: number()
|
|
56298
|
+
});
|
|
56299
|
+
var heatingValveCapability = {
|
|
56300
|
+
name: "heating-valve",
|
|
56301
|
+
scope: "device",
|
|
56302
|
+
deviceNative: true,
|
|
56303
|
+
mode: "singleton",
|
|
56304
|
+
deviceTypes: [DeviceType.Thermostat],
|
|
56305
|
+
methods: {},
|
|
56306
|
+
status: {
|
|
56307
|
+
schema: HeatingValveStatusSchema,
|
|
56308
|
+
kind: "push"
|
|
56309
|
+
},
|
|
56310
|
+
runtimeState: HeatingValveStatusSchema,
|
|
56311
|
+
durability: "session",
|
|
56312
|
+
history: { fields: { position: {
|
|
56313
|
+
kind: "gauge",
|
|
56314
|
+
unit: "%",
|
|
56315
|
+
deadband: 1
|
|
56316
|
+
} } },
|
|
56317
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
56318
|
+
};
|
|
55462
56319
|
/**
|
|
55463
56320
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
55464
56321
|
* an on/off actuator with an optional target-humidity setpoint and an
|
|
@@ -56591,7 +57448,19 @@ var TlsStatusSchema = object({
|
|
|
56591
57448
|
sans: array(string()),
|
|
56592
57449
|
caCertPem: string().nullable(),
|
|
56593
57450
|
reissueError: string().nullable(),
|
|
56594
|
-
restartRequired: boolean()
|
|
57451
|
+
restartRequired: boolean(),
|
|
57452
|
+
/** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
|
|
57453
|
+
caMissing: boolean(),
|
|
57454
|
+
/** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
|
|
57455
|
+
localCaConstrained: boolean().nullable(),
|
|
57456
|
+
/** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
|
|
57457
|
+
caReplacedAt: string().nullable(),
|
|
57458
|
+
/** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
|
|
57459
|
+
storedUpload: object({
|
|
57460
|
+
leafFingerprintSha256: string(),
|
|
57461
|
+
validTo: string(),
|
|
57462
|
+
hasCa: boolean()
|
|
57463
|
+
}).nullable()
|
|
56595
57464
|
});
|
|
56596
57465
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
56597
57466
|
/**
|
|
@@ -56647,6 +57516,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
56647
57516
|
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
56648
57517
|
kind: "mutation",
|
|
56649
57518
|
auth: "admin"
|
|
57519
|
+
}), method(_void(), TlsStatusSchema, {
|
|
57520
|
+
kind: "mutation",
|
|
57521
|
+
auth: "admin"
|
|
56650
57522
|
});
|
|
56651
57523
|
var LockControlStatusSchema = object({
|
|
56652
57524
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
@@ -63140,7 +64012,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
63140
64012
|
kind: "mutation",
|
|
63141
64013
|
auth: "admin",
|
|
63142
64014
|
access: "delete"
|
|
63143
|
-
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(
|
|
64015
|
+
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
64016
|
+
kind: "mutation",
|
|
64017
|
+
auth: "admin",
|
|
64018
|
+
access: "create"
|
|
64019
|
+
}), method(object({
|
|
63144
64020
|
userId: string(),
|
|
63145
64021
|
code: string()
|
|
63146
64022
|
}), object({ valid: boolean() }), {
|
|
@@ -64860,6 +65736,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
64860
65736
|
dayNight: dayNightCapability,
|
|
64861
65737
|
deviceDiscovery: deviceDiscoveryCapability,
|
|
64862
65738
|
deviceStatus: deviceStatusCapability,
|
|
65739
|
+
dishwasher: dishwasherCapability,
|
|
64863
65740
|
doorbell: doorbellCapability,
|
|
64864
65741
|
enumSensor: enumSensorCapability,
|
|
64865
65742
|
eventEmitter: eventEmitterCapability,
|
|
@@ -64867,6 +65744,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
64867
65744
|
featureProbe: featureProbeCapability,
|
|
64868
65745
|
flood: floodCapability,
|
|
64869
65746
|
gas: gasCapability,
|
|
65747
|
+
heatingValve: heatingValveCapability,
|
|
64870
65748
|
humidifier: humidifierCapability,
|
|
64871
65749
|
humiditySensor: humiditySensorCapability,
|
|
64872
65750
|
image: imageCapability,
|
|
@@ -64952,13 +65830,14 @@ var BaseDevice = class {
|
|
|
64952
65830
|
get state() {
|
|
64953
65831
|
if (!this._stateProxyCache) {
|
|
64954
65832
|
const cache = {};
|
|
64955
|
-
const handler = { get: (
|
|
65833
|
+
const handler = { get: (target, key) => {
|
|
64956
65834
|
const k = key;
|
|
64957
|
-
|
|
65835
|
+
const existing = Reflect.get(target, k);
|
|
65836
|
+
if (existing !== void 0) return existing;
|
|
64958
65837
|
const cap = DEVICE_LOCAL_STATE_CAPS[k];
|
|
64959
65838
|
if (!cap) return void 0;
|
|
64960
65839
|
const proxy = this.sliceProxy(cap);
|
|
64961
|
-
|
|
65840
|
+
Reflect.set(target, k, proxy);
|
|
64962
65841
|
return proxy;
|
|
64963
65842
|
} };
|
|
64964
65843
|
this._stateProxyCache = new Proxy(cache, handler);
|
|
@@ -65157,7 +66036,7 @@ var BaseDevice = class {
|
|
|
65157
66036
|
async updateSourceInfo(patch) {
|
|
65158
66037
|
const next = mergeSourceInfo(this.sourceInfo, patch);
|
|
65159
66038
|
this._sourceInfoCache = Object.freeze({ ...next });
|
|
65160
|
-
const action = this.ctx.api
|
|
66039
|
+
const action = this.ctx.api.deviceManager?.setMetadata;
|
|
65161
66040
|
if (action) try {
|
|
65162
66041
|
await action.mutate({
|
|
65163
66042
|
deviceId: this.id,
|
|
@@ -65192,7 +66071,7 @@ var BaseDevice = class {
|
|
|
65192
66071
|
* device boot on a meta refresh.
|
|
65193
66072
|
*/
|
|
65194
66073
|
async refreshFeatures() {
|
|
65195
|
-
const action = this.ctx.api
|
|
66074
|
+
const action = this.ctx.api.deviceManager?.registerDevice;
|
|
65196
66075
|
if (!action) return;
|
|
65197
66076
|
try {
|
|
65198
66077
|
await action.mutate({
|
|
@@ -65591,6 +66470,12 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
65591
66470
|
provider: this
|
|
65592
66471
|
}];
|
|
65593
66472
|
}
|
|
66473
|
+
/** Flatten `super.onInitialize()` whether it returned an array or an envelope. */
|
|
66474
|
+
providerRegistrationsFromSuper(result) {
|
|
66475
|
+
if (Array.isArray(result)) return result;
|
|
66476
|
+
if (result !== void 0 && result.providers !== void 0) return [...result.providers];
|
|
66477
|
+
return [];
|
|
66478
|
+
}
|
|
65594
66479
|
async onShutdown() {
|
|
65595
66480
|
this._restoreShuttingDown = true;
|
|
65596
66481
|
this.cancelRestoreRetries();
|
|
@@ -66117,7 +67002,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
66117
67002
|
return toDeviceSummary(device, this.addonId);
|
|
66118
67003
|
}
|
|
66119
67004
|
};
|
|
66120
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
67005
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
66121
67006
|
new Set(Object.values(DeviceType));
|
|
66122
67007
|
Object.freeze({
|
|
66123
67008
|
"accessories.getStatus": {
|
|
@@ -67266,6 +68151,12 @@ Object.freeze({
|
|
|
67266
68151
|
addonId: null,
|
|
67267
68152
|
access: "view"
|
|
67268
68153
|
},
|
|
68154
|
+
"coreBlocks.migrateRawSecrets": {
|
|
68155
|
+
capName: "core-blocks",
|
|
68156
|
+
capScope: "system",
|
|
68157
|
+
addonId: null,
|
|
68158
|
+
access: "create"
|
|
68159
|
+
},
|
|
67269
68160
|
"coreBlocks.restart": {
|
|
67270
68161
|
capName: "core-blocks",
|
|
67271
68162
|
capScope: "system",
|
|
@@ -68532,6 +69423,84 @@ Object.freeze({
|
|
|
68532
69423
|
addonId: null,
|
|
68533
69424
|
access: "view"
|
|
68534
69425
|
},
|
|
69426
|
+
"dishwasher.getStatus": {
|
|
69427
|
+
capName: "dishwasher",
|
|
69428
|
+
capScope: "device",
|
|
69429
|
+
addonId: null,
|
|
69430
|
+
access: "view"
|
|
69431
|
+
},
|
|
69432
|
+
"dishwasher.pause": {
|
|
69433
|
+
capName: "dishwasher",
|
|
69434
|
+
capScope: "device",
|
|
69435
|
+
addonId: null,
|
|
69436
|
+
access: "create"
|
|
69437
|
+
},
|
|
69438
|
+
"dishwasher.setChildLock": {
|
|
69439
|
+
capName: "dishwasher",
|
|
69440
|
+
capScope: "device",
|
|
69441
|
+
addonId: null,
|
|
69442
|
+
access: "create"
|
|
69443
|
+
},
|
|
69444
|
+
"dishwasher.setExtraDry": {
|
|
69445
|
+
capName: "dishwasher",
|
|
69446
|
+
capScope: "device",
|
|
69447
|
+
addonId: null,
|
|
69448
|
+
access: "create"
|
|
69449
|
+
},
|
|
69450
|
+
"dishwasher.setHalfLoad": {
|
|
69451
|
+
capName: "dishwasher",
|
|
69452
|
+
capScope: "device",
|
|
69453
|
+
addonId: null,
|
|
69454
|
+
access: "create"
|
|
69455
|
+
},
|
|
69456
|
+
"dishwasher.setHygienePlus": {
|
|
69457
|
+
capName: "dishwasher",
|
|
69458
|
+
capScope: "device",
|
|
69459
|
+
addonId: null,
|
|
69460
|
+
access: "create"
|
|
69461
|
+
},
|
|
69462
|
+
"dishwasher.setIntensiveZone": {
|
|
69463
|
+
capName: "dishwasher",
|
|
69464
|
+
capScope: "device",
|
|
69465
|
+
addonId: null,
|
|
69466
|
+
access: "create"
|
|
69467
|
+
},
|
|
69468
|
+
"dishwasher.setOption": {
|
|
69469
|
+
capName: "dishwasher",
|
|
69470
|
+
capScope: "device",
|
|
69471
|
+
addonId: null,
|
|
69472
|
+
access: "create"
|
|
69473
|
+
},
|
|
69474
|
+
"dishwasher.setPower": {
|
|
69475
|
+
capName: "dishwasher",
|
|
69476
|
+
capScope: "device",
|
|
69477
|
+
addonId: null,
|
|
69478
|
+
access: "create"
|
|
69479
|
+
},
|
|
69480
|
+
"dishwasher.setProgram": {
|
|
69481
|
+
capName: "dishwasher",
|
|
69482
|
+
capScope: "device",
|
|
69483
|
+
addonId: null,
|
|
69484
|
+
access: "create"
|
|
69485
|
+
},
|
|
69486
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
69487
|
+
capName: "dishwasher",
|
|
69488
|
+
capScope: "device",
|
|
69489
|
+
addonId: null,
|
|
69490
|
+
access: "create"
|
|
69491
|
+
},
|
|
69492
|
+
"dishwasher.start": {
|
|
69493
|
+
capName: "dishwasher",
|
|
69494
|
+
capScope: "device",
|
|
69495
|
+
addonId: null,
|
|
69496
|
+
access: "create"
|
|
69497
|
+
},
|
|
69498
|
+
"dishwasher.stop": {
|
|
69499
|
+
capName: "dishwasher",
|
|
69500
|
+
capScope: "device",
|
|
69501
|
+
addonId: null,
|
|
69502
|
+
access: "create"
|
|
69503
|
+
},
|
|
68535
69504
|
"doorbell.getStatus": {
|
|
68536
69505
|
capName: "doorbell",
|
|
68537
69506
|
capScope: "device",
|
|
@@ -68742,6 +69711,12 @@ Object.freeze({
|
|
|
68742
69711
|
addonId: null,
|
|
68743
69712
|
access: "view"
|
|
68744
69713
|
},
|
|
69714
|
+
"heatingValve.getStatus": {
|
|
69715
|
+
capName: "heating-valve",
|
|
69716
|
+
capScope: "device",
|
|
69717
|
+
addonId: null,
|
|
69718
|
+
access: "view"
|
|
69719
|
+
},
|
|
68745
69720
|
"humidifier.getStatus": {
|
|
68746
69721
|
capName: "humidifier",
|
|
68747
69722
|
capScope: "device",
|
|
@@ -68952,6 +69927,12 @@ Object.freeze({
|
|
|
68952
69927
|
addonId: null,
|
|
68953
69928
|
access: "create"
|
|
68954
69929
|
},
|
|
69930
|
+
"keychainAdmin.importSecret": {
|
|
69931
|
+
capName: "keychain-admin",
|
|
69932
|
+
capScope: "system",
|
|
69933
|
+
addonId: null,
|
|
69934
|
+
access: "create"
|
|
69935
|
+
},
|
|
68955
69936
|
"keychainAdmin.listAudit": {
|
|
68956
69937
|
capName: "keychain-admin",
|
|
68957
69938
|
capScope: "system",
|
|
@@ -69120,6 +70101,12 @@ Object.freeze({
|
|
|
69120
70101
|
addonId: null,
|
|
69121
70102
|
access: "view"
|
|
69122
70103
|
},
|
|
70104
|
+
"llm.migrateRawSecrets": {
|
|
70105
|
+
capName: "llm",
|
|
70106
|
+
capScope: "system",
|
|
70107
|
+
addonId: null,
|
|
70108
|
+
access: "create"
|
|
70109
|
+
},
|
|
69123
70110
|
"llm.resolveModelRef": {
|
|
69124
70111
|
capName: "llm",
|
|
69125
70112
|
capScope: "system",
|
|
@@ -69348,6 +70335,12 @@ Object.freeze({
|
|
|
69348
70335
|
addonId: null,
|
|
69349
70336
|
access: "create"
|
|
69350
70337
|
},
|
|
70338
|
+
"localNetwork.useStoredUploadedCertificate": {
|
|
70339
|
+
capName: "local-network",
|
|
70340
|
+
capScope: "system",
|
|
70341
|
+
addonId: null,
|
|
70342
|
+
access: "create"
|
|
70343
|
+
},
|
|
69351
70344
|
"lockControl.getStatus": {
|
|
69352
70345
|
capName: "lock-control",
|
|
69353
70346
|
capScope: "device",
|
|
@@ -72000,6 +72993,30 @@ Object.freeze({
|
|
|
72000
72993
|
addonId: null,
|
|
72001
72994
|
access: "create"
|
|
72002
72995
|
},
|
|
72996
|
+
"recordEntries.deleteEntry": {
|
|
72997
|
+
capName: "record-entries",
|
|
72998
|
+
capScope: "system",
|
|
72999
|
+
addonId: null,
|
|
73000
|
+
access: "delete"
|
|
73001
|
+
},
|
|
73002
|
+
"recordEntries.listEntries": {
|
|
73003
|
+
capName: "record-entries",
|
|
73004
|
+
capScope: "system",
|
|
73005
|
+
addonId: null,
|
|
73006
|
+
access: "view"
|
|
73007
|
+
},
|
|
73008
|
+
"recordEntries.listEntryKinds": {
|
|
73009
|
+
capName: "record-entries",
|
|
73010
|
+
capScope: "system",
|
|
73011
|
+
addonId: null,
|
|
73012
|
+
access: "view"
|
|
73013
|
+
},
|
|
73014
|
+
"recordEntries.putEntry": {
|
|
73015
|
+
capName: "record-entries",
|
|
73016
|
+
capScope: "system",
|
|
73017
|
+
addonId: null,
|
|
73018
|
+
access: "create"
|
|
73019
|
+
},
|
|
72003
73020
|
"recording.getAvailability": {
|
|
72004
73021
|
capName: "recording",
|
|
72005
73022
|
capScope: "device",
|
|
@@ -72300,6 +73317,102 @@ Object.freeze({
|
|
|
72300
73317
|
addonId: null,
|
|
72301
73318
|
access: "view"
|
|
72302
73319
|
},
|
|
73320
|
+
"records.aggregate": {
|
|
73321
|
+
capName: "records",
|
|
73322
|
+
capScope: "system",
|
|
73323
|
+
addonId: null,
|
|
73324
|
+
access: "view"
|
|
73325
|
+
},
|
|
73326
|
+
"records.allocateId": {
|
|
73327
|
+
capName: "records",
|
|
73328
|
+
capScope: "system",
|
|
73329
|
+
addonId: null,
|
|
73330
|
+
access: "create"
|
|
73331
|
+
},
|
|
73332
|
+
"records.count": {
|
|
73333
|
+
capName: "records",
|
|
73334
|
+
capScope: "system",
|
|
73335
|
+
addonId: null,
|
|
73336
|
+
access: "view"
|
|
73337
|
+
},
|
|
73338
|
+
"records.declareKinds": {
|
|
73339
|
+
capName: "records",
|
|
73340
|
+
capScope: "system",
|
|
73341
|
+
addonId: null,
|
|
73342
|
+
access: "create"
|
|
73343
|
+
},
|
|
73344
|
+
"records.delete": {
|
|
73345
|
+
capName: "records",
|
|
73346
|
+
capScope: "system",
|
|
73347
|
+
addonId: null,
|
|
73348
|
+
access: "delete"
|
|
73349
|
+
},
|
|
73350
|
+
"records.deleteDevice": {
|
|
73351
|
+
capName: "records",
|
|
73352
|
+
capScope: "system",
|
|
73353
|
+
addonId: null,
|
|
73354
|
+
access: "delete"
|
|
73355
|
+
},
|
|
73356
|
+
"records.deleteMany": {
|
|
73357
|
+
capName: "records",
|
|
73358
|
+
capScope: "system",
|
|
73359
|
+
addonId: null,
|
|
73360
|
+
access: "delete"
|
|
73361
|
+
},
|
|
73362
|
+
"records.deleteWhere": {
|
|
73363
|
+
capName: "records",
|
|
73364
|
+
capScope: "system",
|
|
73365
|
+
addonId: null,
|
|
73366
|
+
access: "delete"
|
|
73367
|
+
},
|
|
73368
|
+
"records.get": {
|
|
73369
|
+
capName: "records",
|
|
73370
|
+
capScope: "system",
|
|
73371
|
+
addonId: null,
|
|
73372
|
+
access: "view"
|
|
73373
|
+
},
|
|
73374
|
+
"records.getMany": {
|
|
73375
|
+
capName: "records",
|
|
73376
|
+
capScope: "system",
|
|
73377
|
+
addonId: null,
|
|
73378
|
+
access: "view"
|
|
73379
|
+
},
|
|
73380
|
+
"records.histogram": {
|
|
73381
|
+
capName: "records",
|
|
73382
|
+
capScope: "system",
|
|
73383
|
+
addonId: null,
|
|
73384
|
+
access: "view"
|
|
73385
|
+
},
|
|
73386
|
+
"records.patch": {
|
|
73387
|
+
capName: "records",
|
|
73388
|
+
capScope: "system",
|
|
73389
|
+
addonId: null,
|
|
73390
|
+
access: "create"
|
|
73391
|
+
},
|
|
73392
|
+
"records.put": {
|
|
73393
|
+
capName: "records",
|
|
73394
|
+
capScope: "system",
|
|
73395
|
+
addonId: null,
|
|
73396
|
+
access: "create"
|
|
73397
|
+
},
|
|
73398
|
+
"records.putMany": {
|
|
73399
|
+
capName: "records",
|
|
73400
|
+
capScope: "system",
|
|
73401
|
+
addonId: null,
|
|
73402
|
+
access: "create"
|
|
73403
|
+
},
|
|
73404
|
+
"records.query": {
|
|
73405
|
+
capName: "records",
|
|
73406
|
+
capScope: "system",
|
|
73407
|
+
addonId: null,
|
|
73408
|
+
access: "view"
|
|
73409
|
+
},
|
|
73410
|
+
"records.secretRefs": {
|
|
73411
|
+
capName: "records",
|
|
73412
|
+
capScope: "system",
|
|
73413
|
+
addonId: null,
|
|
73414
|
+
access: "view"
|
|
73415
|
+
},
|
|
72303
73416
|
"sceneMonitor.captureReference": {
|
|
72304
73417
|
capName: "scene-monitor",
|
|
72305
73418
|
capScope: "device",
|
|
@@ -72732,6 +73845,48 @@ Object.freeze({
|
|
|
72732
73845
|
addonId: null,
|
|
72733
73846
|
access: "create"
|
|
72734
73847
|
},
|
|
73848
|
+
"storageAdmin.adoptRecords": {
|
|
73849
|
+
capName: "storage-admin",
|
|
73850
|
+
capScope: "system",
|
|
73851
|
+
addonId: null,
|
|
73852
|
+
access: "create"
|
|
73853
|
+
},
|
|
73854
|
+
"storageAdmin.dropCollection": {
|
|
73855
|
+
capName: "storage-admin",
|
|
73856
|
+
capScope: "system",
|
|
73857
|
+
addonId: null,
|
|
73858
|
+
access: "delete"
|
|
73859
|
+
},
|
|
73860
|
+
"storageAdmin.isAdoptedLegacyTable": {
|
|
73861
|
+
capName: "storage-admin",
|
|
73862
|
+
capScope: "system",
|
|
73863
|
+
addonId: null,
|
|
73864
|
+
access: "view"
|
|
73865
|
+
},
|
|
73866
|
+
"storageAdmin.listKinds": {
|
|
73867
|
+
capName: "storage-admin",
|
|
73868
|
+
capScope: "system",
|
|
73869
|
+
addonId: null,
|
|
73870
|
+
access: "view"
|
|
73871
|
+
},
|
|
73872
|
+
"storageAdmin.listTables": {
|
|
73873
|
+
capName: "storage-admin",
|
|
73874
|
+
capScope: "system",
|
|
73875
|
+
addonId: null,
|
|
73876
|
+
access: "view"
|
|
73877
|
+
},
|
|
73878
|
+
"storageAdmin.readLegacyCollection": {
|
|
73879
|
+
capName: "storage-admin",
|
|
73880
|
+
capScope: "system",
|
|
73881
|
+
addonId: null,
|
|
73882
|
+
access: "view"
|
|
73883
|
+
},
|
|
73884
|
+
"storageAdmin.readRecords": {
|
|
73885
|
+
capName: "storage-admin",
|
|
73886
|
+
capScope: "system",
|
|
73887
|
+
addonId: null,
|
|
73888
|
+
access: "view"
|
|
73889
|
+
},
|
|
72735
73890
|
"storageEvictable.evict": {
|
|
72736
73891
|
capName: "storage-evictable",
|
|
72737
73892
|
capScope: "system",
|
|
@@ -73644,6 +74799,12 @@ Object.freeze({
|
|
|
73644
74799
|
addonId: null,
|
|
73645
74800
|
access: "view"
|
|
73646
74801
|
},
|
|
74802
|
+
"userManagement.migrateRawSecrets": {
|
|
74803
|
+
capName: "user-management",
|
|
74804
|
+
capScope: "system",
|
|
74805
|
+
addonId: null,
|
|
74806
|
+
access: "create"
|
|
74807
|
+
},
|
|
73647
74808
|
"userManagement.oauthExchangeCode": {
|
|
73648
74809
|
capName: "user-management",
|
|
73649
74810
|
capScope: "system",
|
|
@@ -74143,7 +75304,7 @@ Object.freeze({
|
|
|
74143
75304
|
access: "create"
|
|
74144
75305
|
}
|
|
74145
75306
|
});
|
|
74146
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
75307
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
74147
75308
|
DeviceFeature.BatteryOperated;
|
|
74148
75309
|
Object.freeze({
|
|
74149
75310
|
"accessories.getStatus": [{
|
|
@@ -74967,6 +76128,71 @@ Object.freeze({
|
|
|
74967
76128
|
form: "single",
|
|
74968
76129
|
optional: false
|
|
74969
76130
|
}],
|
|
76131
|
+
"dishwasher.getStatus": [{
|
|
76132
|
+
name: "deviceId",
|
|
76133
|
+
form: "single",
|
|
76134
|
+
optional: false
|
|
76135
|
+
}],
|
|
76136
|
+
"dishwasher.pause": [{
|
|
76137
|
+
name: "deviceId",
|
|
76138
|
+
form: "single",
|
|
76139
|
+
optional: false
|
|
76140
|
+
}],
|
|
76141
|
+
"dishwasher.setChildLock": [{
|
|
76142
|
+
name: "deviceId",
|
|
76143
|
+
form: "single",
|
|
76144
|
+
optional: false
|
|
76145
|
+
}],
|
|
76146
|
+
"dishwasher.setExtraDry": [{
|
|
76147
|
+
name: "deviceId",
|
|
76148
|
+
form: "single",
|
|
76149
|
+
optional: false
|
|
76150
|
+
}],
|
|
76151
|
+
"dishwasher.setHalfLoad": [{
|
|
76152
|
+
name: "deviceId",
|
|
76153
|
+
form: "single",
|
|
76154
|
+
optional: false
|
|
76155
|
+
}],
|
|
76156
|
+
"dishwasher.setHygienePlus": [{
|
|
76157
|
+
name: "deviceId",
|
|
76158
|
+
form: "single",
|
|
76159
|
+
optional: false
|
|
76160
|
+
}],
|
|
76161
|
+
"dishwasher.setIntensiveZone": [{
|
|
76162
|
+
name: "deviceId",
|
|
76163
|
+
form: "single",
|
|
76164
|
+
optional: false
|
|
76165
|
+
}],
|
|
76166
|
+
"dishwasher.setOption": [{
|
|
76167
|
+
name: "deviceId",
|
|
76168
|
+
form: "single",
|
|
76169
|
+
optional: false
|
|
76170
|
+
}],
|
|
76171
|
+
"dishwasher.setPower": [{
|
|
76172
|
+
name: "deviceId",
|
|
76173
|
+
form: "single",
|
|
76174
|
+
optional: false
|
|
76175
|
+
}],
|
|
76176
|
+
"dishwasher.setProgram": [{
|
|
76177
|
+
name: "deviceId",
|
|
76178
|
+
form: "single",
|
|
76179
|
+
optional: false
|
|
76180
|
+
}],
|
|
76181
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
76182
|
+
name: "deviceId",
|
|
76183
|
+
form: "single",
|
|
76184
|
+
optional: false
|
|
76185
|
+
}],
|
|
76186
|
+
"dishwasher.start": [{
|
|
76187
|
+
name: "deviceId",
|
|
76188
|
+
form: "single",
|
|
76189
|
+
optional: false
|
|
76190
|
+
}],
|
|
76191
|
+
"dishwasher.stop": [{
|
|
76192
|
+
name: "deviceId",
|
|
76193
|
+
form: "single",
|
|
76194
|
+
optional: false
|
|
76195
|
+
}],
|
|
74970
76196
|
"doorbell.getStatus": [{
|
|
74971
76197
|
name: "deviceId",
|
|
74972
76198
|
form: "single",
|
|
@@ -75036,6 +76262,11 @@ Object.freeze({
|
|
|
75036
76262
|
form: "single",
|
|
75037
76263
|
optional: false
|
|
75038
76264
|
}],
|
|
76265
|
+
"heatingValve.getStatus": [{
|
|
76266
|
+
name: "deviceId",
|
|
76267
|
+
form: "single",
|
|
76268
|
+
optional: false
|
|
76269
|
+
}],
|
|
75039
76270
|
"humidifier.getStatus": [{
|
|
75040
76271
|
name: "deviceId",
|
|
75041
76272
|
form: "single",
|
|
@@ -76320,6 +77551,37 @@ Object.freeze({
|
|
|
76320
77551
|
form: "single",
|
|
76321
77552
|
optional: false
|
|
76322
77553
|
}],
|
|
77554
|
+
"records.count": [{
|
|
77555
|
+
name: "deviceId",
|
|
77556
|
+
form: "single",
|
|
77557
|
+
optional: true
|
|
77558
|
+
}],
|
|
77559
|
+
"records.deleteDevice": [{
|
|
77560
|
+
name: "deviceId",
|
|
77561
|
+
form: "single",
|
|
77562
|
+
optional: false
|
|
77563
|
+
}],
|
|
77564
|
+
"records.deleteWhere": [{
|
|
77565
|
+
name: "deviceId",
|
|
77566
|
+
form: "single",
|
|
77567
|
+
optional: true
|
|
77568
|
+
}],
|
|
77569
|
+
"records.histogram": [{
|
|
77570
|
+
name: "deviceId",
|
|
77571
|
+
form: "single",
|
|
77572
|
+
optional: true
|
|
77573
|
+
}],
|
|
77574
|
+
"records.putMany": [{
|
|
77575
|
+
name: "records",
|
|
77576
|
+
form: "object-array",
|
|
77577
|
+
optional: false,
|
|
77578
|
+
itemField: "deviceId"
|
|
77579
|
+
}],
|
|
77580
|
+
"records.query": [{
|
|
77581
|
+
name: "deviceId",
|
|
77582
|
+
form: "single",
|
|
77583
|
+
optional: true
|
|
77584
|
+
}],
|
|
76323
77585
|
"sceneMonitor.captureReference": [{
|
|
76324
77586
|
name: "deviceId",
|
|
76325
77587
|
form: "single",
|
|
@@ -76436,6 +77698,17 @@ Object.freeze({
|
|
|
76436
77698
|
form: "single",
|
|
76437
77699
|
optional: false
|
|
76438
77700
|
}],
|
|
77701
|
+
"storageAdmin.adoptRecords": [{
|
|
77702
|
+
name: "records",
|
|
77703
|
+
form: "object-array",
|
|
77704
|
+
optional: false,
|
|
77705
|
+
itemField: "deviceId"
|
|
77706
|
+
}],
|
|
77707
|
+
"storageAdmin.readRecords": [{
|
|
77708
|
+
name: "deviceId",
|
|
77709
|
+
form: "single",
|
|
77710
|
+
optional: true
|
|
77711
|
+
}],
|
|
76439
77712
|
"streamBroker.acquireEgressTranscode": [{
|
|
76440
77713
|
name: "deviceId",
|
|
76441
77714
|
form: "single",
|