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