@camstack/addon-provider-unraid 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
|
/**
|
|
@@ -53828,6 +54498,12 @@ var ClimateControlStatusSchema = object({
|
|
|
53828
54498
|
/** Horizontal louver swing on/off. Null when the device has no
|
|
53829
54499
|
* horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
|
|
53830
54500
|
swingHorizontal: boolean().nullable(),
|
|
54501
|
+
/** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
54502
|
+
minTemp: number().nullable().optional(),
|
|
54503
|
+
/** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
54504
|
+
maxTemp: number().nullable().optional(),
|
|
54505
|
+
/** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
|
|
54506
|
+
tempStep: number().positive().nullable().optional(),
|
|
53831
54507
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
53832
54508
|
lastFetchedAt: number()
|
|
53833
54509
|
});
|
|
@@ -54674,6 +55350,161 @@ onStatusChanged: { data: object({
|
|
|
54674
55350
|
* whether persisting is worth a SQLite commit. */
|
|
54675
55351
|
volatileStateFields: ["lastChangedAt"]
|
|
54676
55352
|
};
|
|
55353
|
+
/**
|
|
55354
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
55355
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
55356
|
+
*
|
|
55357
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
55358
|
+
* by any integration that exposes the same program / option surface.
|
|
55359
|
+
*
|
|
55360
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55361
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55362
|
+
*/
|
|
55363
|
+
var DishwasherStateSchema = _enum([
|
|
55364
|
+
"idle",
|
|
55365
|
+
"running",
|
|
55366
|
+
"paused",
|
|
55367
|
+
"finished",
|
|
55368
|
+
"error",
|
|
55369
|
+
"unavailable"
|
|
55370
|
+
]);
|
|
55371
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
55372
|
+
"ok",
|
|
55373
|
+
"low",
|
|
55374
|
+
"empty"
|
|
55375
|
+
]);
|
|
55376
|
+
var DishwasherStatusSchema = object({
|
|
55377
|
+
state: DishwasherStateSchema,
|
|
55378
|
+
/** Active program id/name, or null when none selected / unknown. */
|
|
55379
|
+
program: string().nullable(),
|
|
55380
|
+
/** Program tokens the hardware accepts — drives the UI selector. */
|
|
55381
|
+
availablePrograms: array(string()),
|
|
55382
|
+
/** Minutes remaining on the active cycle, or null when not running. */
|
|
55383
|
+
remainingMinutes: number().int().nonnegative().nullable(),
|
|
55384
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
55385
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
55386
|
+
/** True when the door is reported open. */
|
|
55387
|
+
doorOpen: boolean(),
|
|
55388
|
+
/** True when remote start is allowed (door closed, power on, etc.). */
|
|
55389
|
+
remoteStartAllowed: boolean(),
|
|
55390
|
+
/** Main power / switched-on state. */
|
|
55391
|
+
powerOn: boolean(),
|
|
55392
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55393
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55394
|
+
halfLoad: boolean(),
|
|
55395
|
+
hygienePlus: boolean(),
|
|
55396
|
+
/** Extra dry option when the appliance exposes it. */
|
|
55397
|
+
extraDry: boolean(),
|
|
55398
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55399
|
+
intensiveZone: boolean(),
|
|
55400
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55401
|
+
varioSpeedPlus: boolean(),
|
|
55402
|
+
/** Child lock (controls disabled on the appliance). */
|
|
55403
|
+
childLock: boolean(),
|
|
55404
|
+
errorCode: number().nullable(),
|
|
55405
|
+
errorLabel: string().nullable(),
|
|
55406
|
+
lastFetchedAt: number()
|
|
55407
|
+
});
|
|
55408
|
+
var dishwasherCapability = {
|
|
55409
|
+
name: "dishwasher",
|
|
55410
|
+
scope: "device",
|
|
55411
|
+
deviceNative: true,
|
|
55412
|
+
mode: "singleton",
|
|
55413
|
+
deviceTypes: [DeviceType.Dishwasher],
|
|
55414
|
+
methods: {
|
|
55415
|
+
start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55416
|
+
kind: "mutation",
|
|
55417
|
+
auth: "protected"
|
|
55418
|
+
}),
|
|
55419
|
+
pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55420
|
+
kind: "mutation",
|
|
55421
|
+
auth: "protected"
|
|
55422
|
+
}),
|
|
55423
|
+
stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
55424
|
+
kind: "mutation",
|
|
55425
|
+
auth: "protected"
|
|
55426
|
+
}),
|
|
55427
|
+
setProgram: method(object({
|
|
55428
|
+
deviceId: number().int().nonnegative(),
|
|
55429
|
+
program: string().min(1)
|
|
55430
|
+
}), _void(), {
|
|
55431
|
+
kind: "mutation",
|
|
55432
|
+
auth: "protected"
|
|
55433
|
+
}),
|
|
55434
|
+
setPower: method(object({
|
|
55435
|
+
deviceId: number().int().nonnegative(),
|
|
55436
|
+
on: boolean()
|
|
55437
|
+
}), _void(), {
|
|
55438
|
+
kind: "mutation",
|
|
55439
|
+
auth: "protected"
|
|
55440
|
+
}),
|
|
55441
|
+
setHalfLoad: method(object({
|
|
55442
|
+
deviceId: number().int().nonnegative(),
|
|
55443
|
+
on: boolean()
|
|
55444
|
+
}), _void(), {
|
|
55445
|
+
kind: "mutation",
|
|
55446
|
+
auth: "protected"
|
|
55447
|
+
}),
|
|
55448
|
+
setHygienePlus: method(object({
|
|
55449
|
+
deviceId: number().int().nonnegative(),
|
|
55450
|
+
on: boolean()
|
|
55451
|
+
}), _void(), {
|
|
55452
|
+
kind: "mutation",
|
|
55453
|
+
auth: "protected"
|
|
55454
|
+
}),
|
|
55455
|
+
setExtraDry: method(object({
|
|
55456
|
+
deviceId: number().int().nonnegative(),
|
|
55457
|
+
on: boolean()
|
|
55458
|
+
}), _void(), {
|
|
55459
|
+
kind: "mutation",
|
|
55460
|
+
auth: "protected"
|
|
55461
|
+
}),
|
|
55462
|
+
setIntensiveZone: method(object({
|
|
55463
|
+
deviceId: number().int().nonnegative(),
|
|
55464
|
+
on: boolean()
|
|
55465
|
+
}), _void(), {
|
|
55466
|
+
kind: "mutation",
|
|
55467
|
+
auth: "protected"
|
|
55468
|
+
}),
|
|
55469
|
+
setVarioSpeedPlus: method(object({
|
|
55470
|
+
deviceId: number().int().nonnegative(),
|
|
55471
|
+
on: boolean()
|
|
55472
|
+
}), _void(), {
|
|
55473
|
+
kind: "mutation",
|
|
55474
|
+
auth: "protected"
|
|
55475
|
+
}),
|
|
55476
|
+
setChildLock: method(object({
|
|
55477
|
+
deviceId: number().int().nonnegative(),
|
|
55478
|
+
on: boolean()
|
|
55479
|
+
}), _void(), {
|
|
55480
|
+
kind: "mutation",
|
|
55481
|
+
auth: "protected"
|
|
55482
|
+
}),
|
|
55483
|
+
setOption: method(object({
|
|
55484
|
+
deviceId: number().int().nonnegative(),
|
|
55485
|
+
key: string().min(1),
|
|
55486
|
+
value: union([
|
|
55487
|
+
boolean(),
|
|
55488
|
+
string(),
|
|
55489
|
+
number()
|
|
55490
|
+
])
|
|
55491
|
+
}), _void(), {
|
|
55492
|
+
kind: "mutation",
|
|
55493
|
+
auth: "protected"
|
|
55494
|
+
})
|
|
55495
|
+
},
|
|
55496
|
+
status: {
|
|
55497
|
+
schema: DishwasherStatusSchema,
|
|
55498
|
+
kind: "poll"
|
|
55499
|
+
},
|
|
55500
|
+
runtimeState: DishwasherStatusSchema,
|
|
55501
|
+
durability: "session",
|
|
55502
|
+
history: { fields: { progressPercent: {
|
|
55503
|
+
kind: "gauge",
|
|
55504
|
+
unit: "%",
|
|
55505
|
+
deadband: 2
|
|
55506
|
+
} } }
|
|
55507
|
+
};
|
|
54677
55508
|
var DoorbellStatusSchema = object({
|
|
54678
55509
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
54679
55510
|
lastPressedAt: number().nullable(),
|
|
@@ -55476,6 +56307,32 @@ var gasCapability = {
|
|
|
55476
56307
|
* whether persisting is worth a SQLite commit. */
|
|
55477
56308
|
volatileStateFields: ["lastChangedAt"]
|
|
55478
56309
|
};
|
|
56310
|
+
var HeatingValveStatusSchema = object({
|
|
56311
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
56312
|
+
position: number().min(0).max(100).nullable(),
|
|
56313
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
56314
|
+
lastFetchedAt: number()
|
|
56315
|
+
});
|
|
56316
|
+
var heatingValveCapability = {
|
|
56317
|
+
name: "heating-valve",
|
|
56318
|
+
scope: "device",
|
|
56319
|
+
deviceNative: true,
|
|
56320
|
+
mode: "singleton",
|
|
56321
|
+
deviceTypes: [DeviceType.Thermostat],
|
|
56322
|
+
methods: {},
|
|
56323
|
+
status: {
|
|
56324
|
+
schema: HeatingValveStatusSchema,
|
|
56325
|
+
kind: "push"
|
|
56326
|
+
},
|
|
56327
|
+
runtimeState: HeatingValveStatusSchema,
|
|
56328
|
+
durability: "session",
|
|
56329
|
+
history: { fields: { position: {
|
|
56330
|
+
kind: "gauge",
|
|
56331
|
+
unit: "%",
|
|
56332
|
+
deadband: 1
|
|
56333
|
+
} } },
|
|
56334
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
56335
|
+
};
|
|
55479
56336
|
/**
|
|
55480
56337
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
55481
56338
|
* an on/off actuator with an optional target-humidity setpoint and an
|
|
@@ -56608,7 +57465,19 @@ var TlsStatusSchema = object({
|
|
|
56608
57465
|
sans: array(string()),
|
|
56609
57466
|
caCertPem: string().nullable(),
|
|
56610
57467
|
reissueError: string().nullable(),
|
|
56611
|
-
restartRequired: boolean()
|
|
57468
|
+
restartRequired: boolean(),
|
|
57469
|
+
/** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
|
|
57470
|
+
caMissing: boolean(),
|
|
57471
|
+
/** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
|
|
57472
|
+
localCaConstrained: boolean().nullable(),
|
|
57473
|
+
/** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
|
|
57474
|
+
caReplacedAt: string().nullable(),
|
|
57475
|
+
/** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
|
|
57476
|
+
storedUpload: object({
|
|
57477
|
+
leafFingerprintSha256: string(),
|
|
57478
|
+
validTo: string(),
|
|
57479
|
+
hasCa: boolean()
|
|
57480
|
+
}).nullable()
|
|
56612
57481
|
});
|
|
56613
57482
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
56614
57483
|
/**
|
|
@@ -56664,6 +57533,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
56664
57533
|
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
56665
57534
|
kind: "mutation",
|
|
56666
57535
|
auth: "admin"
|
|
57536
|
+
}), method(_void(), TlsStatusSchema, {
|
|
57537
|
+
kind: "mutation",
|
|
57538
|
+
auth: "admin"
|
|
56667
57539
|
});
|
|
56668
57540
|
var LockControlStatusSchema = object({
|
|
56669
57541
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
@@ -63157,7 +64029,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
63157
64029
|
kind: "mutation",
|
|
63158
64030
|
auth: "admin",
|
|
63159
64031
|
access: "delete"
|
|
63160
|
-
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(
|
|
64032
|
+
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
64033
|
+
kind: "mutation",
|
|
64034
|
+
auth: "admin",
|
|
64035
|
+
access: "create"
|
|
64036
|
+
}), method(object({
|
|
63161
64037
|
userId: string(),
|
|
63162
64038
|
code: string()
|
|
63163
64039
|
}), object({ valid: boolean() }), {
|
|
@@ -64877,6 +65753,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
64877
65753
|
dayNight: dayNightCapability,
|
|
64878
65754
|
deviceDiscovery: deviceDiscoveryCapability,
|
|
64879
65755
|
deviceStatus: deviceStatusCapability,
|
|
65756
|
+
dishwasher: dishwasherCapability,
|
|
64880
65757
|
doorbell: doorbellCapability,
|
|
64881
65758
|
enumSensor: enumSensorCapability,
|
|
64882
65759
|
eventEmitter: eventEmitterCapability,
|
|
@@ -64884,6 +65761,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
64884
65761
|
featureProbe: featureProbeCapability,
|
|
64885
65762
|
flood: floodCapability,
|
|
64886
65763
|
gas: gasCapability,
|
|
65764
|
+
heatingValve: heatingValveCapability,
|
|
64887
65765
|
humidifier: humidifierCapability,
|
|
64888
65766
|
humiditySensor: humiditySensorCapability,
|
|
64889
65767
|
image: imageCapability,
|
|
@@ -64969,13 +65847,14 @@ var BaseDevice = class {
|
|
|
64969
65847
|
get state() {
|
|
64970
65848
|
if (!this._stateProxyCache) {
|
|
64971
65849
|
const cache = {};
|
|
64972
|
-
const handler = { get: (
|
|
65850
|
+
const handler = { get: (target, key) => {
|
|
64973
65851
|
const k = key;
|
|
64974
|
-
|
|
65852
|
+
const existing = Reflect.get(target, k);
|
|
65853
|
+
if (existing !== void 0) return existing;
|
|
64975
65854
|
const cap = DEVICE_LOCAL_STATE_CAPS[k];
|
|
64976
65855
|
if (!cap) return void 0;
|
|
64977
65856
|
const proxy = this.sliceProxy(cap);
|
|
64978
|
-
|
|
65857
|
+
Reflect.set(target, k, proxy);
|
|
64979
65858
|
return proxy;
|
|
64980
65859
|
} };
|
|
64981
65860
|
this._stateProxyCache = new Proxy(cache, handler);
|
|
@@ -65174,7 +66053,7 @@ var BaseDevice = class {
|
|
|
65174
66053
|
async updateSourceInfo(patch) {
|
|
65175
66054
|
const next = mergeSourceInfo(this.sourceInfo, patch);
|
|
65176
66055
|
this._sourceInfoCache = Object.freeze({ ...next });
|
|
65177
|
-
const action = this.ctx.api
|
|
66056
|
+
const action = this.ctx.api.deviceManager?.setMetadata;
|
|
65178
66057
|
if (action) try {
|
|
65179
66058
|
await action.mutate({
|
|
65180
66059
|
deviceId: this.id,
|
|
@@ -65209,7 +66088,7 @@ var BaseDevice = class {
|
|
|
65209
66088
|
* device boot on a meta refresh.
|
|
65210
66089
|
*/
|
|
65211
66090
|
async refreshFeatures() {
|
|
65212
|
-
const action = this.ctx.api
|
|
66091
|
+
const action = this.ctx.api.deviceManager?.registerDevice;
|
|
65213
66092
|
if (!action) return;
|
|
65214
66093
|
try {
|
|
65215
66094
|
await action.mutate({
|
|
@@ -65608,6 +66487,12 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
65608
66487
|
provider: this
|
|
65609
66488
|
}];
|
|
65610
66489
|
}
|
|
66490
|
+
/** Flatten `super.onInitialize()` whether it returned an array or an envelope. */
|
|
66491
|
+
providerRegistrationsFromSuper(result) {
|
|
66492
|
+
if (Array.isArray(result)) return result;
|
|
66493
|
+
if (result !== void 0 && result.providers !== void 0) return [...result.providers];
|
|
66494
|
+
return [];
|
|
66495
|
+
}
|
|
65611
66496
|
async onShutdown() {
|
|
65612
66497
|
this._restoreShuttingDown = true;
|
|
65613
66498
|
this.cancelRestoreRetries();
|
|
@@ -66134,7 +67019,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
66134
67019
|
return toDeviceSummary(device, this.addonId);
|
|
66135
67020
|
}
|
|
66136
67021
|
};
|
|
66137
|
-
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;
|
|
67022
|
+
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;
|
|
66138
67023
|
new Set(Object.values(DeviceType));
|
|
66139
67024
|
Object.freeze({
|
|
66140
67025
|
"accessories.getStatus": {
|
|
@@ -67283,6 +68168,12 @@ Object.freeze({
|
|
|
67283
68168
|
addonId: null,
|
|
67284
68169
|
access: "view"
|
|
67285
68170
|
},
|
|
68171
|
+
"coreBlocks.migrateRawSecrets": {
|
|
68172
|
+
capName: "core-blocks",
|
|
68173
|
+
capScope: "system",
|
|
68174
|
+
addonId: null,
|
|
68175
|
+
access: "create"
|
|
68176
|
+
},
|
|
67286
68177
|
"coreBlocks.restart": {
|
|
67287
68178
|
capName: "core-blocks",
|
|
67288
68179
|
capScope: "system",
|
|
@@ -68549,6 +69440,84 @@ Object.freeze({
|
|
|
68549
69440
|
addonId: null,
|
|
68550
69441
|
access: "view"
|
|
68551
69442
|
},
|
|
69443
|
+
"dishwasher.getStatus": {
|
|
69444
|
+
capName: "dishwasher",
|
|
69445
|
+
capScope: "device",
|
|
69446
|
+
addonId: null,
|
|
69447
|
+
access: "view"
|
|
69448
|
+
},
|
|
69449
|
+
"dishwasher.pause": {
|
|
69450
|
+
capName: "dishwasher",
|
|
69451
|
+
capScope: "device",
|
|
69452
|
+
addonId: null,
|
|
69453
|
+
access: "create"
|
|
69454
|
+
},
|
|
69455
|
+
"dishwasher.setChildLock": {
|
|
69456
|
+
capName: "dishwasher",
|
|
69457
|
+
capScope: "device",
|
|
69458
|
+
addonId: null,
|
|
69459
|
+
access: "create"
|
|
69460
|
+
},
|
|
69461
|
+
"dishwasher.setExtraDry": {
|
|
69462
|
+
capName: "dishwasher",
|
|
69463
|
+
capScope: "device",
|
|
69464
|
+
addonId: null,
|
|
69465
|
+
access: "create"
|
|
69466
|
+
},
|
|
69467
|
+
"dishwasher.setHalfLoad": {
|
|
69468
|
+
capName: "dishwasher",
|
|
69469
|
+
capScope: "device",
|
|
69470
|
+
addonId: null,
|
|
69471
|
+
access: "create"
|
|
69472
|
+
},
|
|
69473
|
+
"dishwasher.setHygienePlus": {
|
|
69474
|
+
capName: "dishwasher",
|
|
69475
|
+
capScope: "device",
|
|
69476
|
+
addonId: null,
|
|
69477
|
+
access: "create"
|
|
69478
|
+
},
|
|
69479
|
+
"dishwasher.setIntensiveZone": {
|
|
69480
|
+
capName: "dishwasher",
|
|
69481
|
+
capScope: "device",
|
|
69482
|
+
addonId: null,
|
|
69483
|
+
access: "create"
|
|
69484
|
+
},
|
|
69485
|
+
"dishwasher.setOption": {
|
|
69486
|
+
capName: "dishwasher",
|
|
69487
|
+
capScope: "device",
|
|
69488
|
+
addonId: null,
|
|
69489
|
+
access: "create"
|
|
69490
|
+
},
|
|
69491
|
+
"dishwasher.setPower": {
|
|
69492
|
+
capName: "dishwasher",
|
|
69493
|
+
capScope: "device",
|
|
69494
|
+
addonId: null,
|
|
69495
|
+
access: "create"
|
|
69496
|
+
},
|
|
69497
|
+
"dishwasher.setProgram": {
|
|
69498
|
+
capName: "dishwasher",
|
|
69499
|
+
capScope: "device",
|
|
69500
|
+
addonId: null,
|
|
69501
|
+
access: "create"
|
|
69502
|
+
},
|
|
69503
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
69504
|
+
capName: "dishwasher",
|
|
69505
|
+
capScope: "device",
|
|
69506
|
+
addonId: null,
|
|
69507
|
+
access: "create"
|
|
69508
|
+
},
|
|
69509
|
+
"dishwasher.start": {
|
|
69510
|
+
capName: "dishwasher",
|
|
69511
|
+
capScope: "device",
|
|
69512
|
+
addonId: null,
|
|
69513
|
+
access: "create"
|
|
69514
|
+
},
|
|
69515
|
+
"dishwasher.stop": {
|
|
69516
|
+
capName: "dishwasher",
|
|
69517
|
+
capScope: "device",
|
|
69518
|
+
addonId: null,
|
|
69519
|
+
access: "create"
|
|
69520
|
+
},
|
|
68552
69521
|
"doorbell.getStatus": {
|
|
68553
69522
|
capName: "doorbell",
|
|
68554
69523
|
capScope: "device",
|
|
@@ -68759,6 +69728,12 @@ Object.freeze({
|
|
|
68759
69728
|
addonId: null,
|
|
68760
69729
|
access: "view"
|
|
68761
69730
|
},
|
|
69731
|
+
"heatingValve.getStatus": {
|
|
69732
|
+
capName: "heating-valve",
|
|
69733
|
+
capScope: "device",
|
|
69734
|
+
addonId: null,
|
|
69735
|
+
access: "view"
|
|
69736
|
+
},
|
|
68762
69737
|
"humidifier.getStatus": {
|
|
68763
69738
|
capName: "humidifier",
|
|
68764
69739
|
capScope: "device",
|
|
@@ -68969,6 +69944,12 @@ Object.freeze({
|
|
|
68969
69944
|
addonId: null,
|
|
68970
69945
|
access: "create"
|
|
68971
69946
|
},
|
|
69947
|
+
"keychainAdmin.importSecret": {
|
|
69948
|
+
capName: "keychain-admin",
|
|
69949
|
+
capScope: "system",
|
|
69950
|
+
addonId: null,
|
|
69951
|
+
access: "create"
|
|
69952
|
+
},
|
|
68972
69953
|
"keychainAdmin.listAudit": {
|
|
68973
69954
|
capName: "keychain-admin",
|
|
68974
69955
|
capScope: "system",
|
|
@@ -69137,6 +70118,12 @@ Object.freeze({
|
|
|
69137
70118
|
addonId: null,
|
|
69138
70119
|
access: "view"
|
|
69139
70120
|
},
|
|
70121
|
+
"llm.migrateRawSecrets": {
|
|
70122
|
+
capName: "llm",
|
|
70123
|
+
capScope: "system",
|
|
70124
|
+
addonId: null,
|
|
70125
|
+
access: "create"
|
|
70126
|
+
},
|
|
69140
70127
|
"llm.resolveModelRef": {
|
|
69141
70128
|
capName: "llm",
|
|
69142
70129
|
capScope: "system",
|
|
@@ -69365,6 +70352,12 @@ Object.freeze({
|
|
|
69365
70352
|
addonId: null,
|
|
69366
70353
|
access: "create"
|
|
69367
70354
|
},
|
|
70355
|
+
"localNetwork.useStoredUploadedCertificate": {
|
|
70356
|
+
capName: "local-network",
|
|
70357
|
+
capScope: "system",
|
|
70358
|
+
addonId: null,
|
|
70359
|
+
access: "create"
|
|
70360
|
+
},
|
|
69368
70361
|
"lockControl.getStatus": {
|
|
69369
70362
|
capName: "lock-control",
|
|
69370
70363
|
capScope: "device",
|
|
@@ -72017,6 +73010,30 @@ Object.freeze({
|
|
|
72017
73010
|
addonId: null,
|
|
72018
73011
|
access: "create"
|
|
72019
73012
|
},
|
|
73013
|
+
"recordEntries.deleteEntry": {
|
|
73014
|
+
capName: "record-entries",
|
|
73015
|
+
capScope: "system",
|
|
73016
|
+
addonId: null,
|
|
73017
|
+
access: "delete"
|
|
73018
|
+
},
|
|
73019
|
+
"recordEntries.listEntries": {
|
|
73020
|
+
capName: "record-entries",
|
|
73021
|
+
capScope: "system",
|
|
73022
|
+
addonId: null,
|
|
73023
|
+
access: "view"
|
|
73024
|
+
},
|
|
73025
|
+
"recordEntries.listEntryKinds": {
|
|
73026
|
+
capName: "record-entries",
|
|
73027
|
+
capScope: "system",
|
|
73028
|
+
addonId: null,
|
|
73029
|
+
access: "view"
|
|
73030
|
+
},
|
|
73031
|
+
"recordEntries.putEntry": {
|
|
73032
|
+
capName: "record-entries",
|
|
73033
|
+
capScope: "system",
|
|
73034
|
+
addonId: null,
|
|
73035
|
+
access: "create"
|
|
73036
|
+
},
|
|
72020
73037
|
"recording.getAvailability": {
|
|
72021
73038
|
capName: "recording",
|
|
72022
73039
|
capScope: "device",
|
|
@@ -72317,6 +73334,102 @@ Object.freeze({
|
|
|
72317
73334
|
addonId: null,
|
|
72318
73335
|
access: "view"
|
|
72319
73336
|
},
|
|
73337
|
+
"records.aggregate": {
|
|
73338
|
+
capName: "records",
|
|
73339
|
+
capScope: "system",
|
|
73340
|
+
addonId: null,
|
|
73341
|
+
access: "view"
|
|
73342
|
+
},
|
|
73343
|
+
"records.allocateId": {
|
|
73344
|
+
capName: "records",
|
|
73345
|
+
capScope: "system",
|
|
73346
|
+
addonId: null,
|
|
73347
|
+
access: "create"
|
|
73348
|
+
},
|
|
73349
|
+
"records.count": {
|
|
73350
|
+
capName: "records",
|
|
73351
|
+
capScope: "system",
|
|
73352
|
+
addonId: null,
|
|
73353
|
+
access: "view"
|
|
73354
|
+
},
|
|
73355
|
+
"records.declareKinds": {
|
|
73356
|
+
capName: "records",
|
|
73357
|
+
capScope: "system",
|
|
73358
|
+
addonId: null,
|
|
73359
|
+
access: "create"
|
|
73360
|
+
},
|
|
73361
|
+
"records.delete": {
|
|
73362
|
+
capName: "records",
|
|
73363
|
+
capScope: "system",
|
|
73364
|
+
addonId: null,
|
|
73365
|
+
access: "delete"
|
|
73366
|
+
},
|
|
73367
|
+
"records.deleteDevice": {
|
|
73368
|
+
capName: "records",
|
|
73369
|
+
capScope: "system",
|
|
73370
|
+
addonId: null,
|
|
73371
|
+
access: "delete"
|
|
73372
|
+
},
|
|
73373
|
+
"records.deleteMany": {
|
|
73374
|
+
capName: "records",
|
|
73375
|
+
capScope: "system",
|
|
73376
|
+
addonId: null,
|
|
73377
|
+
access: "delete"
|
|
73378
|
+
},
|
|
73379
|
+
"records.deleteWhere": {
|
|
73380
|
+
capName: "records",
|
|
73381
|
+
capScope: "system",
|
|
73382
|
+
addonId: null,
|
|
73383
|
+
access: "delete"
|
|
73384
|
+
},
|
|
73385
|
+
"records.get": {
|
|
73386
|
+
capName: "records",
|
|
73387
|
+
capScope: "system",
|
|
73388
|
+
addonId: null,
|
|
73389
|
+
access: "view"
|
|
73390
|
+
},
|
|
73391
|
+
"records.getMany": {
|
|
73392
|
+
capName: "records",
|
|
73393
|
+
capScope: "system",
|
|
73394
|
+
addonId: null,
|
|
73395
|
+
access: "view"
|
|
73396
|
+
},
|
|
73397
|
+
"records.histogram": {
|
|
73398
|
+
capName: "records",
|
|
73399
|
+
capScope: "system",
|
|
73400
|
+
addonId: null,
|
|
73401
|
+
access: "view"
|
|
73402
|
+
},
|
|
73403
|
+
"records.patch": {
|
|
73404
|
+
capName: "records",
|
|
73405
|
+
capScope: "system",
|
|
73406
|
+
addonId: null,
|
|
73407
|
+
access: "create"
|
|
73408
|
+
},
|
|
73409
|
+
"records.put": {
|
|
73410
|
+
capName: "records",
|
|
73411
|
+
capScope: "system",
|
|
73412
|
+
addonId: null,
|
|
73413
|
+
access: "create"
|
|
73414
|
+
},
|
|
73415
|
+
"records.putMany": {
|
|
73416
|
+
capName: "records",
|
|
73417
|
+
capScope: "system",
|
|
73418
|
+
addonId: null,
|
|
73419
|
+
access: "create"
|
|
73420
|
+
},
|
|
73421
|
+
"records.query": {
|
|
73422
|
+
capName: "records",
|
|
73423
|
+
capScope: "system",
|
|
73424
|
+
addonId: null,
|
|
73425
|
+
access: "view"
|
|
73426
|
+
},
|
|
73427
|
+
"records.secretRefs": {
|
|
73428
|
+
capName: "records",
|
|
73429
|
+
capScope: "system",
|
|
73430
|
+
addonId: null,
|
|
73431
|
+
access: "view"
|
|
73432
|
+
},
|
|
72320
73433
|
"sceneMonitor.captureReference": {
|
|
72321
73434
|
capName: "scene-monitor",
|
|
72322
73435
|
capScope: "device",
|
|
@@ -72749,6 +73862,48 @@ Object.freeze({
|
|
|
72749
73862
|
addonId: null,
|
|
72750
73863
|
access: "create"
|
|
72751
73864
|
},
|
|
73865
|
+
"storageAdmin.adoptRecords": {
|
|
73866
|
+
capName: "storage-admin",
|
|
73867
|
+
capScope: "system",
|
|
73868
|
+
addonId: null,
|
|
73869
|
+
access: "create"
|
|
73870
|
+
},
|
|
73871
|
+
"storageAdmin.dropCollection": {
|
|
73872
|
+
capName: "storage-admin",
|
|
73873
|
+
capScope: "system",
|
|
73874
|
+
addonId: null,
|
|
73875
|
+
access: "delete"
|
|
73876
|
+
},
|
|
73877
|
+
"storageAdmin.isAdoptedLegacyTable": {
|
|
73878
|
+
capName: "storage-admin",
|
|
73879
|
+
capScope: "system",
|
|
73880
|
+
addonId: null,
|
|
73881
|
+
access: "view"
|
|
73882
|
+
},
|
|
73883
|
+
"storageAdmin.listKinds": {
|
|
73884
|
+
capName: "storage-admin",
|
|
73885
|
+
capScope: "system",
|
|
73886
|
+
addonId: null,
|
|
73887
|
+
access: "view"
|
|
73888
|
+
},
|
|
73889
|
+
"storageAdmin.listTables": {
|
|
73890
|
+
capName: "storage-admin",
|
|
73891
|
+
capScope: "system",
|
|
73892
|
+
addonId: null,
|
|
73893
|
+
access: "view"
|
|
73894
|
+
},
|
|
73895
|
+
"storageAdmin.readLegacyCollection": {
|
|
73896
|
+
capName: "storage-admin",
|
|
73897
|
+
capScope: "system",
|
|
73898
|
+
addonId: null,
|
|
73899
|
+
access: "view"
|
|
73900
|
+
},
|
|
73901
|
+
"storageAdmin.readRecords": {
|
|
73902
|
+
capName: "storage-admin",
|
|
73903
|
+
capScope: "system",
|
|
73904
|
+
addonId: null,
|
|
73905
|
+
access: "view"
|
|
73906
|
+
},
|
|
72752
73907
|
"storageEvictable.evict": {
|
|
72753
73908
|
capName: "storage-evictable",
|
|
72754
73909
|
capScope: "system",
|
|
@@ -73661,6 +74816,12 @@ Object.freeze({
|
|
|
73661
74816
|
addonId: null,
|
|
73662
74817
|
access: "view"
|
|
73663
74818
|
},
|
|
74819
|
+
"userManagement.migrateRawSecrets": {
|
|
74820
|
+
capName: "user-management",
|
|
74821
|
+
capScope: "system",
|
|
74822
|
+
addonId: null,
|
|
74823
|
+
access: "create"
|
|
74824
|
+
},
|
|
73664
74825
|
"userManagement.oauthExchangeCode": {
|
|
73665
74826
|
capName: "user-management",
|
|
73666
74827
|
capScope: "system",
|
|
@@ -74160,7 +75321,7 @@ Object.freeze({
|
|
|
74160
75321
|
access: "create"
|
|
74161
75322
|
}
|
|
74162
75323
|
});
|
|
74163
|
-
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;
|
|
75324
|
+
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;
|
|
74164
75325
|
DeviceFeature.BatteryOperated;
|
|
74165
75326
|
Object.freeze({
|
|
74166
75327
|
"accessories.getStatus": [{
|
|
@@ -74984,6 +76145,71 @@ Object.freeze({
|
|
|
74984
76145
|
form: "single",
|
|
74985
76146
|
optional: false
|
|
74986
76147
|
}],
|
|
76148
|
+
"dishwasher.getStatus": [{
|
|
76149
|
+
name: "deviceId",
|
|
76150
|
+
form: "single",
|
|
76151
|
+
optional: false
|
|
76152
|
+
}],
|
|
76153
|
+
"dishwasher.pause": [{
|
|
76154
|
+
name: "deviceId",
|
|
76155
|
+
form: "single",
|
|
76156
|
+
optional: false
|
|
76157
|
+
}],
|
|
76158
|
+
"dishwasher.setChildLock": [{
|
|
76159
|
+
name: "deviceId",
|
|
76160
|
+
form: "single",
|
|
76161
|
+
optional: false
|
|
76162
|
+
}],
|
|
76163
|
+
"dishwasher.setExtraDry": [{
|
|
76164
|
+
name: "deviceId",
|
|
76165
|
+
form: "single",
|
|
76166
|
+
optional: false
|
|
76167
|
+
}],
|
|
76168
|
+
"dishwasher.setHalfLoad": [{
|
|
76169
|
+
name: "deviceId",
|
|
76170
|
+
form: "single",
|
|
76171
|
+
optional: false
|
|
76172
|
+
}],
|
|
76173
|
+
"dishwasher.setHygienePlus": [{
|
|
76174
|
+
name: "deviceId",
|
|
76175
|
+
form: "single",
|
|
76176
|
+
optional: false
|
|
76177
|
+
}],
|
|
76178
|
+
"dishwasher.setIntensiveZone": [{
|
|
76179
|
+
name: "deviceId",
|
|
76180
|
+
form: "single",
|
|
76181
|
+
optional: false
|
|
76182
|
+
}],
|
|
76183
|
+
"dishwasher.setOption": [{
|
|
76184
|
+
name: "deviceId",
|
|
76185
|
+
form: "single",
|
|
76186
|
+
optional: false
|
|
76187
|
+
}],
|
|
76188
|
+
"dishwasher.setPower": [{
|
|
76189
|
+
name: "deviceId",
|
|
76190
|
+
form: "single",
|
|
76191
|
+
optional: false
|
|
76192
|
+
}],
|
|
76193
|
+
"dishwasher.setProgram": [{
|
|
76194
|
+
name: "deviceId",
|
|
76195
|
+
form: "single",
|
|
76196
|
+
optional: false
|
|
76197
|
+
}],
|
|
76198
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
76199
|
+
name: "deviceId",
|
|
76200
|
+
form: "single",
|
|
76201
|
+
optional: false
|
|
76202
|
+
}],
|
|
76203
|
+
"dishwasher.start": [{
|
|
76204
|
+
name: "deviceId",
|
|
76205
|
+
form: "single",
|
|
76206
|
+
optional: false
|
|
76207
|
+
}],
|
|
76208
|
+
"dishwasher.stop": [{
|
|
76209
|
+
name: "deviceId",
|
|
76210
|
+
form: "single",
|
|
76211
|
+
optional: false
|
|
76212
|
+
}],
|
|
74987
76213
|
"doorbell.getStatus": [{
|
|
74988
76214
|
name: "deviceId",
|
|
74989
76215
|
form: "single",
|
|
@@ -75053,6 +76279,11 @@ Object.freeze({
|
|
|
75053
76279
|
form: "single",
|
|
75054
76280
|
optional: false
|
|
75055
76281
|
}],
|
|
76282
|
+
"heatingValve.getStatus": [{
|
|
76283
|
+
name: "deviceId",
|
|
76284
|
+
form: "single",
|
|
76285
|
+
optional: false
|
|
76286
|
+
}],
|
|
75056
76287
|
"humidifier.getStatus": [{
|
|
75057
76288
|
name: "deviceId",
|
|
75058
76289
|
form: "single",
|
|
@@ -76337,6 +77568,37 @@ Object.freeze({
|
|
|
76337
77568
|
form: "single",
|
|
76338
77569
|
optional: false
|
|
76339
77570
|
}],
|
|
77571
|
+
"records.count": [{
|
|
77572
|
+
name: "deviceId",
|
|
77573
|
+
form: "single",
|
|
77574
|
+
optional: true
|
|
77575
|
+
}],
|
|
77576
|
+
"records.deleteDevice": [{
|
|
77577
|
+
name: "deviceId",
|
|
77578
|
+
form: "single",
|
|
77579
|
+
optional: false
|
|
77580
|
+
}],
|
|
77581
|
+
"records.deleteWhere": [{
|
|
77582
|
+
name: "deviceId",
|
|
77583
|
+
form: "single",
|
|
77584
|
+
optional: true
|
|
77585
|
+
}],
|
|
77586
|
+
"records.histogram": [{
|
|
77587
|
+
name: "deviceId",
|
|
77588
|
+
form: "single",
|
|
77589
|
+
optional: true
|
|
77590
|
+
}],
|
|
77591
|
+
"records.putMany": [{
|
|
77592
|
+
name: "records",
|
|
77593
|
+
form: "object-array",
|
|
77594
|
+
optional: false,
|
|
77595
|
+
itemField: "deviceId"
|
|
77596
|
+
}],
|
|
77597
|
+
"records.query": [{
|
|
77598
|
+
name: "deviceId",
|
|
77599
|
+
form: "single",
|
|
77600
|
+
optional: true
|
|
77601
|
+
}],
|
|
76340
77602
|
"sceneMonitor.captureReference": [{
|
|
76341
77603
|
name: "deviceId",
|
|
76342
77604
|
form: "single",
|
|
@@ -76453,6 +77715,17 @@ Object.freeze({
|
|
|
76453
77715
|
form: "single",
|
|
76454
77716
|
optional: false
|
|
76455
77717
|
}],
|
|
77718
|
+
"storageAdmin.adoptRecords": [{
|
|
77719
|
+
name: "records",
|
|
77720
|
+
form: "object-array",
|
|
77721
|
+
optional: false,
|
|
77722
|
+
itemField: "deviceId"
|
|
77723
|
+
}],
|
|
77724
|
+
"storageAdmin.readRecords": [{
|
|
77725
|
+
name: "deviceId",
|
|
77726
|
+
form: "single",
|
|
77727
|
+
optional: true
|
|
77728
|
+
}],
|
|
76456
77729
|
"streamBroker.acquireEgressTranscode": [{
|
|
76457
77730
|
name: "deviceId",
|
|
76458
77731
|
form: "single",
|