@camstack/addon-provider-onvif 1.2.128 → 1.2.130
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 +1276 -61
- package/dist/addon.mjs +1276 -61
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-BvOFi6PY.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -66,6 +66,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
66
66
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
67
67
|
*/
|
|
68
68
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
69
|
+
/**
|
|
70
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
71
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
72
|
+
* action. One event per refusal.
|
|
73
|
+
*/
|
|
74
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
75
|
+
/**
|
|
76
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
77
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
78
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
79
|
+
*/
|
|
80
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
81
|
+
/**
|
|
82
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
83
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
84
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
85
|
+
*/
|
|
86
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
69
87
|
EventCategory["AddonError"] = "addon.error";
|
|
70
88
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
71
89
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5390,7 +5408,7 @@ var ZodIssueCode = {
|
|
|
5390
5408
|
var ZodFirstPartyTypeKind;
|
|
5391
5409
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5392
5410
|
//#endregion
|
|
5393
|
-
//#region ../types/dist/sleep-
|
|
5411
|
+
//#region ../types/dist/sleep-BegKjwUu.mjs
|
|
5394
5412
|
/**
|
|
5395
5413
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5396
5414
|
* window to float samples (D455).
|
|
@@ -5507,7 +5525,7 @@ function isKeychainStoredField(field) {
|
|
|
5507
5525
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5508
5526
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5509
5527
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5510
|
-
function isRecord$
|
|
5528
|
+
function isRecord$5(value) {
|
|
5511
5529
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5512
5530
|
}
|
|
5513
5531
|
function makeSecretMarker(ref) {
|
|
@@ -5518,12 +5536,12 @@ function makeSecretMarker(ref) {
|
|
|
5518
5536
|
}
|
|
5519
5537
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5520
5538
|
function isSecretMarker(value) {
|
|
5521
|
-
if (!isRecord$
|
|
5539
|
+
if (!isRecord$5(value)) return false;
|
|
5522
5540
|
const ref = value["$secret"];
|
|
5523
5541
|
return typeof ref === "string" && ref.length > 0;
|
|
5524
5542
|
}
|
|
5525
5543
|
function isSecretClear(value) {
|
|
5526
|
-
return isRecord$
|
|
5544
|
+
return isRecord$5(value) && value["$secretClear"] === true;
|
|
5527
5545
|
}
|
|
5528
5546
|
/**
|
|
5529
5547
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6133,7 +6151,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6133
6151
|
}
|
|
6134
6152
|
};
|
|
6135
6153
|
var KEEP = { kind: "keep" };
|
|
6136
|
-
function isRecord$
|
|
6154
|
+
function isRecord$4(value) {
|
|
6137
6155
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6138
6156
|
}
|
|
6139
6157
|
function defaultMintId() {
|
|
@@ -6146,7 +6164,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6146
6164
|
return out;
|
|
6147
6165
|
}
|
|
6148
6166
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6149
|
-
else if (isRecord$
|
|
6167
|
+
else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6150
6168
|
return out;
|
|
6151
6169
|
}
|
|
6152
6170
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6201,7 +6219,7 @@ function rowId(row, idKey) {
|
|
|
6201
6219
|
return null;
|
|
6202
6220
|
}
|
|
6203
6221
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6204
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6222
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
|
|
6205
6223
|
if (!Array.isArray(incoming)) {
|
|
6206
6224
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6207
6225
|
return {
|
|
@@ -6217,7 +6235,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6217
6235
|
const kept = /* @__PURE__ */ new Set();
|
|
6218
6236
|
const rows = [];
|
|
6219
6237
|
for (const row of incoming) {
|
|
6220
|
-
if (!isRecord$
|
|
6238
|
+
if (!isRecord$4(row)) {
|
|
6221
6239
|
rows.push(row);
|
|
6222
6240
|
continue;
|
|
6223
6241
|
}
|
|
@@ -6242,7 +6260,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6242
6260
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6243
6261
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6244
6262
|
case "object": {
|
|
6245
|
-
if (!isRecord$
|
|
6263
|
+
if (!isRecord$4(incoming)) {
|
|
6246
6264
|
if (incoming === void 0) return KEEP;
|
|
6247
6265
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6248
6266
|
return {
|
|
@@ -6250,7 +6268,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6250
6268
|
value: incoming
|
|
6251
6269
|
};
|
|
6252
6270
|
}
|
|
6253
|
-
const storedObj = isRecord$
|
|
6271
|
+
const storedObj = isRecord$4(stored) ? stored : {};
|
|
6254
6272
|
return {
|
|
6255
6273
|
kind: "value",
|
|
6256
6274
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6373,7 +6391,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6373
6391
|
value: items
|
|
6374
6392
|
};
|
|
6375
6393
|
}
|
|
6376
|
-
if (isRecord$
|
|
6394
|
+
if (isRecord$4(v)) {
|
|
6377
6395
|
const out = {};
|
|
6378
6396
|
for (const [k, child] of Object.entries(v)) {
|
|
6379
6397
|
const s = substitute(child);
|
|
@@ -6405,7 +6423,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6405
6423
|
this.name = "SecretOverwriteRefusedError";
|
|
6406
6424
|
}
|
|
6407
6425
|
};
|
|
6408
|
-
function isRecord(value) {
|
|
6426
|
+
function isRecord$3(value) {
|
|
6409
6427
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6410
6428
|
}
|
|
6411
6429
|
function resolvedValue(pass, marker) {
|
|
@@ -6434,7 +6452,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6434
6452
|
return incoming.map((item, index) => {
|
|
6435
6453
|
const twin = stored[index];
|
|
6436
6454
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6437
|
-
if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
|
|
6455
|
+
if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
|
|
6438
6456
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6439
6457
|
return item;
|
|
6440
6458
|
});
|
|
@@ -6445,7 +6463,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6445
6463
|
const twin = stored[key];
|
|
6446
6464
|
if (isSecretMarker(twin)) {
|
|
6447
6465
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6448
|
-
} else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6466
|
+
} else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6449
6467
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6450
6468
|
}
|
|
6451
6469
|
return out;
|
|
@@ -6453,7 +6471,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6453
6471
|
async function walk(pass, incoming, stored) {
|
|
6454
6472
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6455
6473
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6456
|
-
if (!isRecord(incoming) || !isRecord(stored)) return incoming;
|
|
6474
|
+
if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
|
|
6457
6475
|
const out = { ...incoming };
|
|
6458
6476
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6459
6477
|
return out;
|
|
@@ -6484,7 +6502,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6484
6502
|
function isJsonEqual(a, b) {
|
|
6485
6503
|
if (Object.is(a, b)) return true;
|
|
6486
6504
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6487
|
-
if (isRecord(a) && isRecord(b)) {
|
|
6505
|
+
if (isRecord$3(a) && isRecord$3(b)) {
|
|
6488
6506
|
const keys = Object.keys(a);
|
|
6489
6507
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6490
6508
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6508,7 +6526,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6508
6526
|
}
|
|
6509
6527
|
function nodeFromStored(value, owner) {
|
|
6510
6528
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6511
|
-
if (!isRecord(value)) return null;
|
|
6529
|
+
if (!isRecord$3(value)) return null;
|
|
6512
6530
|
const children = /* @__PURE__ */ new Map();
|
|
6513
6531
|
for (const [key, child] of Object.entries(value)) {
|
|
6514
6532
|
const node = nodeFromStored(child, owner);
|
|
@@ -6641,7 +6659,6 @@ function createHandle(raw, opts) {
|
|
|
6641
6659
|
const writeAddon = (patch) => write("addon", opts.addonTree(), void 0, patch, () => readStoredAddonBlob(raw), (p) => raw.writeAddonStore(p));
|
|
6642
6660
|
const readAddonStoreResult = raw.readAddonStoreResult;
|
|
6643
6661
|
const readAddonStoreKeyResult = raw.readAddonStoreKeyResult;
|
|
6644
|
-
const readDeviceStoreBatch = raw.readDeviceStoreBatch;
|
|
6645
6662
|
const overrides = {
|
|
6646
6663
|
readAddonStore: async () => resolveRead("addon", await raw.readAddonStore()),
|
|
6647
6664
|
...readAddonStoreResult !== void 0 ? { readAddonStoreResult: async () => {
|
|
@@ -6665,12 +6682,12 @@ function createHandle(raw, opts) {
|
|
|
6665
6682
|
};
|
|
6666
6683
|
} } : {},
|
|
6667
6684
|
readDeviceStore: async (deviceId) => resolveRead(`device:${deviceId}`, await raw.readDeviceStore(deviceId)),
|
|
6668
|
-
|
|
6669
|
-
const rows = await readDeviceStoreBatch
|
|
6685
|
+
readDeviceStoreBatch: async (deviceIds) => {
|
|
6686
|
+
const rows = await raw.readDeviceStoreBatch(deviceIds);
|
|
6670
6687
|
const out = /* @__PURE__ */ new Map();
|
|
6671
6688
|
for (const [deviceId, blob] of rows) out.set(deviceId, await resolveRead(`device:${deviceId}`, blob));
|
|
6672
6689
|
return out;
|
|
6673
|
-
}
|
|
6690
|
+
},
|
|
6674
6691
|
writeAddonStore: async (patch) => {
|
|
6675
6692
|
await writeAddon(patch);
|
|
6676
6693
|
},
|
|
@@ -7297,7 +7314,7 @@ var BaseAddon = class {
|
|
|
7297
7314
|
if (!ctx) return;
|
|
7298
7315
|
const addonId = ctx.id;
|
|
7299
7316
|
setImmediate(() => {
|
|
7300
|
-
ctx.api.addons
|
|
7317
|
+
ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
|
|
7301
7318
|
ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
|
|
7302
7319
|
}).catch((err) => {
|
|
7303
7320
|
ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
@@ -7497,7 +7514,7 @@ var BaseAddon = class {
|
|
|
7497
7514
|
return this._addonSecretTree;
|
|
7498
7515
|
}
|
|
7499
7516
|
deviceSecretTree() {
|
|
7500
|
-
this._deviceSecretTree ??= secretTreeFromSchema(this.deviceSettingsSchema());
|
|
7517
|
+
this._deviceSecretTree ??= mergeSecretStatePaths(secretTreeFromSchema(this.deviceSettingsSchema()), this.secretStatePaths);
|
|
7501
7518
|
return this._deviceSecretTree;
|
|
7502
7519
|
}
|
|
7503
7520
|
/**
|
|
@@ -7573,42 +7590,135 @@ var BaseAddon = class {
|
|
|
7573
7590
|
this[timerOf] = timer;
|
|
7574
7591
|
}
|
|
7575
7592
|
/**
|
|
7576
|
-
* Wrap `ctx.settings.readAddonStore()` with a
|
|
7577
|
-
*
|
|
7578
|
-
* swap, or any race where the SqliteSettingsBackend is between shutdown and
|
|
7579
|
-
* re-initialize) doesn't propagate up into `initialize()` and leave the
|
|
7593
|
+
* Wrap `ctx.settings.readAddonStore()` with a retry budget so a transient
|
|
7594
|
+
* settings-store outage doesn't propagate up into `initialize()` and leave the
|
|
7580
7595
|
* addon permanently broken.
|
|
7581
7596
|
*
|
|
7582
|
-
*
|
|
7583
|
-
*
|
|
7584
|
-
* `
|
|
7597
|
+
* Two kinds of outage, two budgets:
|
|
7598
|
+
* - the store's own restart fingerprints (`SqliteSettingsBackend not
|
|
7599
|
+
* initialized`, `provider not available`): a short budget, then the addon
|
|
7600
|
+
* falls back to `{}` (defaults) - its first successful patch rehydrates;
|
|
7601
|
+
* - a TRANSPORT failure (the hub is restarting while this runner boots:
|
|
7602
|
+
* `discovery deadline exceeded`, `parent could not route`, a refused or
|
|
7603
|
+
* timed-out connection). Since D870 a runner's settings read THROWS instead
|
|
7604
|
+
* of answering `{}`, so without a budget a hub restart ends in a respawn
|
|
7605
|
+
* loop. A long, bounded budget; only after it the error propagates - the
|
|
7606
|
+
* addon never runs on defaults for a store it could not ask.
|
|
7607
|
+
* Anything else propagates immediately so real bugs surface.
|
|
7585
7608
|
*/
|
|
7586
7609
|
async readAddonStoreWithRetry() {
|
|
7587
7610
|
const settings = this.rawSettings();
|
|
7588
7611
|
if (!settings) return {};
|
|
7589
|
-
const delaysMs = [
|
|
7590
|
-
150,
|
|
7591
|
-
350,
|
|
7592
|
-
600,
|
|
7593
|
-
900
|
|
7594
|
-
];
|
|
7595
7612
|
let lastErr;
|
|
7596
|
-
for (let attempt = 0
|
|
7613
|
+
for (let attempt = 0;; attempt++) try {
|
|
7597
7614
|
const stored = await settings.readAddonStore() ?? {};
|
|
7598
7615
|
this.settingsStoreReady = true;
|
|
7599
7616
|
return stored;
|
|
7600
7617
|
} catch (err) {
|
|
7601
7618
|
lastErr = err;
|
|
7602
|
-
const
|
|
7603
|
-
if (
|
|
7604
|
-
|
|
7605
|
-
|
|
7619
|
+
const kind = classifyStoreError(err);
|
|
7620
|
+
if (kind === "permanent") throw err;
|
|
7621
|
+
const delay = (kind === "transport" ? TRANSPORT_RETRY_DELAYS_MS : RESTART_RETRY_DELAYS_MS)[attempt];
|
|
7622
|
+
if (delay === void 0) {
|
|
7623
|
+
if (kind === "transport") throw err;
|
|
7624
|
+
break;
|
|
7625
|
+
}
|
|
7626
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
7606
7627
|
}
|
|
7607
7628
|
this.settingsStoreReady = false;
|
|
7608
7629
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7609
7630
|
return {};
|
|
7610
7631
|
}
|
|
7611
7632
|
};
|
|
7633
|
+
/** The settings store's own restart fingerprints. */
|
|
7634
|
+
var RESTART_RETRY_DELAYS_MS = [
|
|
7635
|
+
150,
|
|
7636
|
+
350,
|
|
7637
|
+
600,
|
|
7638
|
+
900
|
|
7639
|
+
];
|
|
7640
|
+
/** A hub restarting under a booting runner: ~100 s in total. */
|
|
7641
|
+
var TRANSPORT_RETRY_DELAYS_MS = [
|
|
7642
|
+
150,
|
|
7643
|
+
350,
|
|
7644
|
+
600,
|
|
7645
|
+
900,
|
|
7646
|
+
2e3,
|
|
7647
|
+
5e3,
|
|
7648
|
+
1e4,
|
|
7649
|
+
2e4,
|
|
7650
|
+
3e4,
|
|
7651
|
+
3e4
|
|
7652
|
+
];
|
|
7653
|
+
var RESTART_FINGERPRINTS = ["SqliteSettingsBackend not initialized", "provider not available"];
|
|
7654
|
+
/** Node / socket error codes of a connection that did not happen or broke. */
|
|
7655
|
+
var TRANSPORT_CODES = new Set([
|
|
7656
|
+
"ECONNREFUSED",
|
|
7657
|
+
"ECONNRESET",
|
|
7658
|
+
"ETIMEDOUT",
|
|
7659
|
+
"EPIPE",
|
|
7660
|
+
"EHOSTUNREACH",
|
|
7661
|
+
"ENETUNREACH"
|
|
7662
|
+
]);
|
|
7663
|
+
/** tRPC error codes that mean "the other side is not answering now", not "your call is wrong". */
|
|
7664
|
+
var UNAVAILABLE_TRPC_CODES = new Set([
|
|
7665
|
+
"TIMEOUT",
|
|
7666
|
+
"SERVICE_UNAVAILABLE",
|
|
7667
|
+
"BAD_GATEWAY",
|
|
7668
|
+
"GATEWAY_TIMEOUT"
|
|
7669
|
+
]);
|
|
7670
|
+
/** The exact phrases OUR transport raises when it cannot reach the hub. */
|
|
7671
|
+
var TRANSPORT_PHRASES = [
|
|
7672
|
+
"discovery deadline exceeded",
|
|
7673
|
+
"parent could not route child unowned cap call",
|
|
7674
|
+
"UDS request timed out after",
|
|
7675
|
+
"channel closed"
|
|
7676
|
+
];
|
|
7677
|
+
/** Moleculer error `type`s of a call that could not be served right now. */
|
|
7678
|
+
var MOLECULER_TRANSIENT_TYPES = new Set([
|
|
7679
|
+
"REQUEST_TIMEOUT",
|
|
7680
|
+
"SERVICE_NOT_FOUND",
|
|
7681
|
+
"SERVICE_NOT_AVAILABLE",
|
|
7682
|
+
"REQUEST_REJECTED",
|
|
7683
|
+
"BROKER_DISCONNECTED"
|
|
7684
|
+
]);
|
|
7685
|
+
function stringProp(value, key) {
|
|
7686
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
7687
|
+
const found = Reflect.get(value, key);
|
|
7688
|
+
return typeof found === "string" ? found : void 0;
|
|
7689
|
+
}
|
|
7690
|
+
/** The code an error carries: its own, its cause's, or a tRPC `data.code`. */
|
|
7691
|
+
function errorCode(err) {
|
|
7692
|
+
const out = {};
|
|
7693
|
+
const cause = typeof err === "object" && err !== null ? Reflect.get(err, "cause") : void 0;
|
|
7694
|
+
const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
|
|
7695
|
+
const node = stringProp(err, "code") ?? stringProp(cause, "code");
|
|
7696
|
+
if (node !== void 0) out.node = node;
|
|
7697
|
+
const trpc = stringProp(data, "code");
|
|
7698
|
+
if (trpc !== void 0) out.trpc = trpc;
|
|
7699
|
+
return out;
|
|
7700
|
+
}
|
|
7701
|
+
/**
|
|
7702
|
+
* Is a settings read failure worth retrying, and with which budget? Only
|
|
7703
|
+
* EXPLICIT signals count: a socket error code, a tRPC "unavailable" code, or
|
|
7704
|
+
* one of the exact phrases our own transport raises. A message that merely
|
|
7705
|
+
* contains "timed out" or "unreachable" is not evidence of anything, and
|
|
7706
|
+
* `settings store not wired` is a wiring bug that retrying cannot fix.
|
|
7707
|
+
*/
|
|
7708
|
+
function classifyStoreError(err) {
|
|
7709
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
7710
|
+
if (RESTART_FINGERPRINTS.some((f) => message.includes(f))) return "restart";
|
|
7711
|
+
const code = errorCode(err);
|
|
7712
|
+
if (code.node !== void 0 && TRANSPORT_CODES.has(code.node)) return "transport";
|
|
7713
|
+
if (code.trpc !== void 0 && UNAVAILABLE_TRPC_CODES.has(code.trpc)) return "transport";
|
|
7714
|
+
if (typeof err === "object" && err !== null) {
|
|
7715
|
+
if (Reflect.get(err, "retryable") === true) return "transport";
|
|
7716
|
+
const type = stringProp(err, "type");
|
|
7717
|
+
if (type !== void 0 && MOLECULER_TRANSIENT_TYPES.has(type)) return "transport";
|
|
7718
|
+
}
|
|
7719
|
+
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
7720
|
+
return "permanent";
|
|
7721
|
+
}
|
|
7612
7722
|
/**
|
|
7613
7723
|
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
7614
7724
|
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
@@ -7698,6 +7808,89 @@ var PeerBytesTicketSchema = object({
|
|
|
7698
7808
|
*/
|
|
7699
7809
|
declaredBytes: number().int().nonnegative().nullable()
|
|
7700
7810
|
});
|
|
7811
|
+
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
7812
|
+
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
7813
|
+
var RECORD_DATABASES = ["settings", "events"];
|
|
7814
|
+
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
7815
|
+
var RECORD_CLASSES = [
|
|
7816
|
+
"config",
|
|
7817
|
+
"ledger",
|
|
7818
|
+
"audit",
|
|
7819
|
+
"mirror",
|
|
7820
|
+
"ephemeral"
|
|
7821
|
+
];
|
|
7822
|
+
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
7823
|
+
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
7824
|
+
var RECORD_BATCH_MAX = 1e3;
|
|
7825
|
+
var RECORD_QUERY_MAX = 1e3;
|
|
7826
|
+
/**
|
|
7827
|
+
* Record kinds (D881): the declaration an addon makes of one kind of fact, the
|
|
7828
|
+
* Zod row schema that describes it, and the helper that turns the two into the
|
|
7829
|
+
* JSON the engine stores.
|
|
7830
|
+
*
|
|
7831
|
+
* A kind is declared ONCE, next to the code that owns it, and the engine's
|
|
7832
|
+
* reconciler creates its indexes - nothing creates DDL at runtime from a write.
|
|
7833
|
+
* Everything the generic machinery needs (secret fields, the entry descriptor)
|
|
7834
|
+
* is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
|
|
7835
|
+
* never a field name (D879).
|
|
7836
|
+
*/
|
|
7837
|
+
/** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
|
|
7838
|
+
var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
|
|
7839
|
+
var RecordIndexSchema = object({
|
|
7840
|
+
name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
|
|
7841
|
+
fields: array(RecordFieldPathSchema).min(1).max(4),
|
|
7842
|
+
unique: boolean().optional()
|
|
7843
|
+
}).strict();
|
|
7844
|
+
var RecordRetentionSchema = union([
|
|
7845
|
+
object({
|
|
7846
|
+
ttlMs: number().int().positive(),
|
|
7847
|
+
from: _enum(["at", "write"])
|
|
7848
|
+
}).strict(),
|
|
7849
|
+
object({
|
|
7850
|
+
maxRows: number().int().positive().optional(),
|
|
7851
|
+
maxRowsPerDevice: number().int().positive().optional()
|
|
7852
|
+
}).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
|
|
7853
|
+
object({
|
|
7854
|
+
owner: string().min(1),
|
|
7855
|
+
reason: string().min(1)
|
|
7856
|
+
}).strict(),
|
|
7857
|
+
object({ none: string().min(1) }).strict()
|
|
7858
|
+
]);
|
|
7859
|
+
/** The descriptor a generic entries UI reads (D881 "generic entries"). */
|
|
7860
|
+
var EntryDescriptorSchema = object({
|
|
7861
|
+
title: string().min(1),
|
|
7862
|
+
/** The record body field shown as the entry's name. */
|
|
7863
|
+
nameField: string().min(1),
|
|
7864
|
+
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7865
|
+
fields: record(string(), unknown())
|
|
7866
|
+
}).strict();
|
|
7867
|
+
/** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
|
|
7868
|
+
var RecordKindDeclarationSchema = object({
|
|
7869
|
+
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7870
|
+
class: _enum(RECORD_CLASSES),
|
|
7871
|
+
writeTrigger: string().min(1),
|
|
7872
|
+
device: _enum([
|
|
7873
|
+
"required",
|
|
7874
|
+
"optional",
|
|
7875
|
+
"none"
|
|
7876
|
+
]).default("none"),
|
|
7877
|
+
at: _enum(["required", "none"]).default("none"),
|
|
7878
|
+
indexes: array(RecordIndexSchema).max(8).default([]),
|
|
7879
|
+
retention: RecordRetentionSchema,
|
|
7880
|
+
deviceRemoval: _enum(["delete", "none"]).default("none"),
|
|
7881
|
+
maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
|
|
7882
|
+
/** Derived from the Zod schema; never written by hand. */
|
|
7883
|
+
secretPaths: array(string().min(1)).default([]),
|
|
7884
|
+
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7885
|
+
secretArrayKeys: record(string(), string()).default({}),
|
|
7886
|
+
/** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
|
|
7887
|
+
adoptsFrom: string().min(1).optional(),
|
|
7888
|
+
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7889
|
+
transactFamily: string().min(1).optional(),
|
|
7890
|
+
entry: EntryDescriptorSchema.optional()
|
|
7891
|
+
}).strict();
|
|
7892
|
+
/** The kind names: lower-case, dash separated, short enough for an index name. */
|
|
7893
|
+
var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
7701
7894
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7702
7895
|
var CamProfileSchema = _enum([
|
|
7703
7896
|
"high",
|
|
@@ -8163,7 +8356,7 @@ object({
|
|
|
8163
8356
|
params: record(string(), union([string(), number()])).optional()
|
|
8164
8357
|
});
|
|
8165
8358
|
//#endregion
|
|
8166
|
-
//#region ../types/dist/err-msg-
|
|
8359
|
+
//#region ../types/dist/err-msg-BXKzRBwg.mjs
|
|
8167
8360
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8168
8361
|
DeviceType["Camera"] = "camera";
|
|
8169
8362
|
DeviceType["Hub"] = "hub";
|
|
@@ -8255,6 +8448,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
8255
8448
|
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
8256
8449
|
* integrations sharing the same food/desiccant/hopper surface. */
|
|
8257
8450
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
8451
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
8452
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
8453
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
8454
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
8258
8455
|
return DeviceType;
|
|
8259
8456
|
}({});
|
|
8260
8457
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -8432,6 +8629,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8432
8629
|
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
8433
8630
|
* real Switch device for UI rendering / export adapters. */
|
|
8434
8631
|
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
8632
|
+
/** A smart plug: a `switch` whose source says it is an outlet (HA
|
|
8633
|
+
* `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
|
|
8634
|
+
DeviceRole["Outlet"] = "outlet";
|
|
8435
8635
|
/** Generic motion / occupancy / moving event source. Distinct from
|
|
8436
8636
|
* the camera accessory PirSensor role: that one is a camera child;
|
|
8437
8637
|
* this is a standalone HA / 3rd-party motion sensor. */
|
|
@@ -8509,7 +8709,7 @@ function errMsg(err) {
|
|
|
8509
8709
|
return String(err);
|
|
8510
8710
|
}
|
|
8511
8711
|
//#endregion
|
|
8512
|
-
//#region ../types/dist/composition-
|
|
8712
|
+
//#region ../types/dist/composition-CB6PMT9p.mjs
|
|
8513
8713
|
/**
|
|
8514
8714
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8515
8715
|
*
|
|
@@ -11713,11 +11913,10 @@ var ClipModelMetaSchema = object({
|
|
|
11713
11913
|
/**
|
|
11714
11914
|
* The `vector-store` index this model's vectors live in. ONE feature space
|
|
11715
11915
|
* per index: two models share an index only when their vectors are ranked
|
|
11716
|
-
* against each other, which for CLIP means never across families.
|
|
11717
|
-
*
|
|
11718
|
-
* `modelId`); any other model gets its own.
|
|
11916
|
+
* against each other, which for CLIP means never across families. Every
|
|
11917
|
+
* model gets its own.
|
|
11719
11918
|
*/
|
|
11720
|
-
vectorIndex: string().regex(/^object-clip
|
|
11919
|
+
vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
|
|
11721
11920
|
/**
|
|
11722
11921
|
* The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
|
|
11723
11922
|
* must be unique per tokenizer: every model's siblings land in ONE flat
|
|
@@ -12896,8 +13095,13 @@ var AlertSeveritySchema = _enum([
|
|
|
12896
13095
|
"info",
|
|
12897
13096
|
"success",
|
|
12898
13097
|
"warning",
|
|
12899
|
-
"error"
|
|
13098
|
+
"error",
|
|
13099
|
+
"critical"
|
|
12900
13100
|
]);
|
|
13101
|
+
var AlertActionSchema = object({
|
|
13102
|
+
label: string(),
|
|
13103
|
+
href: string().optional()
|
|
13104
|
+
});
|
|
12901
13105
|
var AlertStatusSchema = _enum([
|
|
12902
13106
|
"active",
|
|
12903
13107
|
"in-progress",
|
|
@@ -12915,6 +13119,7 @@ var AlertSchema = object({
|
|
|
12915
13119
|
severity: AlertSeveritySchema,
|
|
12916
13120
|
title: string(),
|
|
12917
13121
|
message: string(),
|
|
13122
|
+
action: AlertActionSchema.optional(),
|
|
12918
13123
|
status: AlertStatusSchema,
|
|
12919
13124
|
progress: number().optional(),
|
|
12920
13125
|
read: boolean(),
|
|
@@ -15344,6 +15549,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
|
15344
15549
|
keyField: string()
|
|
15345
15550
|
}).optional()
|
|
15346
15551
|
})) });
|
|
15552
|
+
/**
|
|
15553
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
15554
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
15555
|
+
*
|
|
15556
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
15557
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
15558
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
15559
|
+
*/
|
|
15560
|
+
var RawSecretMigrationInputSchema = object({
|
|
15561
|
+
/** `false` (the default of the script) = report only. */
|
|
15562
|
+
apply: boolean() });
|
|
15563
|
+
var RawSecretMigrationReportSchema = object({
|
|
15564
|
+
apply: boolean(),
|
|
15565
|
+
/** Rows that can carry a secret (a profile, an enrolment). */
|
|
15566
|
+
rows: number().int(),
|
|
15567
|
+
/** Rows whose secret was plaintext when the run started. */
|
|
15568
|
+
raw: number().int(),
|
|
15569
|
+
/** Rows that already held a keychain marker when the run started. */
|
|
15570
|
+
markers: number().int(),
|
|
15571
|
+
/** Plaintext rows moved by THIS run (always 0 on a dry run). */
|
|
15572
|
+
migrated: number().int(),
|
|
15573
|
+
/** Plaintext rows left in place because the move or its read-back failed. */
|
|
15574
|
+
failed: number().int(),
|
|
15575
|
+
/** After the run: rows still holding plaintext. */
|
|
15576
|
+
remainingRaw: number().int(),
|
|
15577
|
+
/** After the run: markers the keychain could not resolve right now. */
|
|
15578
|
+
unresolvedMarkers: number().int(),
|
|
15579
|
+
/**
|
|
15580
|
+
* A second, redundant copy of the secrets' rows that the run found (and, on
|
|
15581
|
+
* `apply`, deleted after verifying the first). Owners with a single copy omit it.
|
|
15582
|
+
*/
|
|
15583
|
+
redundantCopies: number().int().optional(),
|
|
15584
|
+
/** True when nothing is raw and every marker resolves. */
|
|
15585
|
+
verified: boolean()
|
|
15586
|
+
});
|
|
15347
15587
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
15348
15588
|
* agent is the reason placement is not fixed to the hub. */
|
|
15349
15589
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -15570,6 +15810,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
15570
15810
|
}), SettingsUpdateResultSchema, {
|
|
15571
15811
|
kind: "mutation",
|
|
15572
15812
|
auth: "admin"
|
|
15813
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
15814
|
+
kind: "mutation",
|
|
15815
|
+
auth: "admin"
|
|
15573
15816
|
}), method(object({}), object({ libs: array(object({
|
|
15574
15817
|
filePath: string(),
|
|
15575
15818
|
content: string()
|
|
@@ -15833,6 +16076,347 @@ id: union([string(), number()]) }), {
|
|
|
15833
16076
|
auth: "admin"
|
|
15834
16077
|
});
|
|
15835
16078
|
/**
|
|
16079
|
+
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
16080
|
+
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
16081
|
+
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
16082
|
+
*
|
|
16083
|
+
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
16084
|
+
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
16085
|
+
* that with the addon id closed over). It is deliberately NOT in any input
|
|
16086
|
+
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
16087
|
+
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
16088
|
+
* addons go through the owner's capability.
|
|
16089
|
+
*
|
|
16090
|
+
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
16091
|
+
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
16092
|
+
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
16093
|
+
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
16094
|
+
* row's own ref.
|
|
16095
|
+
*
|
|
16096
|
+
* Internal: addons reach it through `ctx.records`, never directly.
|
|
16097
|
+
*/
|
|
16098
|
+
var RecordIdSchema = string().min(1).max(256);
|
|
16099
|
+
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
16100
|
+
var RecordBodySchema = record(string(), unknown());
|
|
16101
|
+
var RecordInputSchema = object({
|
|
16102
|
+
id: RecordIdSchema,
|
|
16103
|
+
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
16104
|
+
deviceId: number().int().optional(),
|
|
16105
|
+
/** The domain clock, ms: observed / created / opened. */
|
|
16106
|
+
at: number().int().optional(),
|
|
16107
|
+
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
16108
|
+
expiresAt: number().int().optional(),
|
|
16109
|
+
data: RecordBodySchema
|
|
16110
|
+
});
|
|
16111
|
+
var RecordViewSchema = object({
|
|
16112
|
+
id: string(),
|
|
16113
|
+
deviceId: number().int().nullable(),
|
|
16114
|
+
at: number().nullable(),
|
|
16115
|
+
expiresAt: number().nullable(),
|
|
16116
|
+
rev: number().int(),
|
|
16117
|
+
updatedAt: number(),
|
|
16118
|
+
data: RecordBodySchema
|
|
16119
|
+
});
|
|
16120
|
+
/** Declared index fields only. Anything else does not compile, by design. */
|
|
16121
|
+
var RecordWhereSchema = record(RecordFieldPathSchema, union([
|
|
16122
|
+
string(),
|
|
16123
|
+
number(),
|
|
16124
|
+
boolean(),
|
|
16125
|
+
object({ in: array(union([
|
|
16126
|
+
string(),
|
|
16127
|
+
number(),
|
|
16128
|
+
boolean()
|
|
16129
|
+
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
16130
|
+
object({
|
|
16131
|
+
gt: union([string(), number()]).optional(),
|
|
16132
|
+
gte: union([string(), number()]).optional(),
|
|
16133
|
+
lt: union([string(), number()]).optional(),
|
|
16134
|
+
lte: union([string(), number()]).optional()
|
|
16135
|
+
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
16136
|
+
]));
|
|
16137
|
+
var KindShape = { kind: RecordKindNameSchema };
|
|
16138
|
+
var TimeWindowShape = {
|
|
16139
|
+
deviceId: number().int().optional(),
|
|
16140
|
+
atFrom: number().optional(),
|
|
16141
|
+
atTo: number().optional()
|
|
16142
|
+
};
|
|
16143
|
+
var RecordQueryInputSchema = object({
|
|
16144
|
+
...KindShape,
|
|
16145
|
+
...TimeWindowShape,
|
|
16146
|
+
where: RecordWhereSchema.optional(),
|
|
16147
|
+
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
16148
|
+
order: _enum(["at", "id"]).optional(),
|
|
16149
|
+
desc: boolean().optional(),
|
|
16150
|
+
limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
16151
|
+
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
16152
|
+
cursor: string().min(1).optional()
|
|
16153
|
+
});
|
|
16154
|
+
var RecordQueryResultSchema = object({
|
|
16155
|
+
records: array(RecordViewSchema),
|
|
16156
|
+
nextCursor: string().nullable()
|
|
16157
|
+
});
|
|
16158
|
+
var RecordKindStateSchema = _enum([
|
|
16159
|
+
"created",
|
|
16160
|
+
"unchanged",
|
|
16161
|
+
"updated"
|
|
16162
|
+
]);
|
|
16163
|
+
var DeclareKindResultSchema = object({
|
|
16164
|
+
kindId: number().int(),
|
|
16165
|
+
state: RecordKindStateSchema,
|
|
16166
|
+
createdIndexes: array(string()),
|
|
16167
|
+
/** The boot guard: the kind is empty while its legacy table still holds rows. */
|
|
16168
|
+
adoptionPending: object({
|
|
16169
|
+
legacyTable: string(),
|
|
16170
|
+
legacyRows: number().int()
|
|
16171
|
+
}).nullable()
|
|
16172
|
+
});
|
|
16173
|
+
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16174
|
+
var SecretRefsList = array(string());
|
|
16175
|
+
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16176
|
+
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16177
|
+
kind: "mutation",
|
|
16178
|
+
auth: "admin"
|
|
16179
|
+
}), method(object({
|
|
16180
|
+
...KindShape,
|
|
16181
|
+
id: RecordIdSchema
|
|
16182
|
+
}), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
|
|
16183
|
+
...KindShape,
|
|
16184
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16185
|
+
}), array(RecordViewSchema), { auth: "admin" }), method(object({
|
|
16186
|
+
...KindShape,
|
|
16187
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16188
|
+
}), RecordSecretRefsSchema, { auth: "admin" }), method(object({
|
|
16189
|
+
...KindShape,
|
|
16190
|
+
record: RecordInputSchema,
|
|
16191
|
+
/** Compare-and-set. `0` means "the row must not exist". */
|
|
16192
|
+
ifRev: number().int().min(0).optional()
|
|
16193
|
+
}), object({
|
|
16194
|
+
rev: number().int(),
|
|
16195
|
+
releasedRefs: SecretRefsList
|
|
16196
|
+
}), {
|
|
16197
|
+
kind: "mutation",
|
|
16198
|
+
auth: "admin"
|
|
16199
|
+
}), method(object({
|
|
16200
|
+
...KindShape,
|
|
16201
|
+
records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16202
|
+
}), object({
|
|
16203
|
+
count: number().int(),
|
|
16204
|
+
releasedRefs: SecretRefsList
|
|
16205
|
+
}), {
|
|
16206
|
+
kind: "mutation",
|
|
16207
|
+
auth: "admin"
|
|
16208
|
+
}), method(object({
|
|
16209
|
+
...KindShape,
|
|
16210
|
+
id: RecordIdSchema,
|
|
16211
|
+
data: RecordBodySchema,
|
|
16212
|
+
at: number().int().nullable().optional(),
|
|
16213
|
+
expiresAt: number().int().nullable().optional(),
|
|
16214
|
+
ifRev: number().int().min(1).optional()
|
|
16215
|
+
}), object({
|
|
16216
|
+
rev: number().int(),
|
|
16217
|
+
releasedRefs: SecretRefsList
|
|
16218
|
+
}), {
|
|
16219
|
+
kind: "mutation",
|
|
16220
|
+
auth: "admin"
|
|
16221
|
+
}), method(object({
|
|
16222
|
+
...KindShape,
|
|
16223
|
+
id: RecordIdSchema
|
|
16224
|
+
}), object({
|
|
16225
|
+
deleted: boolean(),
|
|
16226
|
+
secretRefs: SecretRefsList
|
|
16227
|
+
}), {
|
|
16228
|
+
kind: "mutation",
|
|
16229
|
+
auth: "admin"
|
|
16230
|
+
}), method(object({
|
|
16231
|
+
...KindShape,
|
|
16232
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16233
|
+
}), object({
|
|
16234
|
+
deleted: number().int(),
|
|
16235
|
+
secretRefs: SecretRefsList
|
|
16236
|
+
}), {
|
|
16237
|
+
kind: "mutation",
|
|
16238
|
+
auth: "admin"
|
|
16239
|
+
}), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16240
|
+
...KindShape,
|
|
16241
|
+
...TimeWindowShape,
|
|
16242
|
+
where: RecordWhereSchema.optional()
|
|
16243
|
+
}), object({ count: number().int() }), { auth: "admin" }), method(object({
|
|
16244
|
+
...KindShape,
|
|
16245
|
+
deviceId: number().int().optional(),
|
|
16246
|
+
from: number(),
|
|
16247
|
+
to: number(),
|
|
16248
|
+
bucketMs: number().int().positive()
|
|
16249
|
+
}), object({ buckets: array(object({
|
|
16250
|
+
bucketStart: number(),
|
|
16251
|
+
count: number().int()
|
|
16252
|
+
})) }), { auth: "admin" }), method(object({
|
|
16253
|
+
...KindShape,
|
|
16254
|
+
op: _enum([
|
|
16255
|
+
"sum",
|
|
16256
|
+
"min",
|
|
16257
|
+
"max",
|
|
16258
|
+
"count"
|
|
16259
|
+
]),
|
|
16260
|
+
field: RecordFieldPathSchema.optional(),
|
|
16261
|
+
groupBy: RecordFieldPathSchema.optional(),
|
|
16262
|
+
where: RecordWhereSchema.optional()
|
|
16263
|
+
}), object({ rows: array(object({
|
|
16264
|
+
group: union([
|
|
16265
|
+
string(),
|
|
16266
|
+
number(),
|
|
16267
|
+
_null()
|
|
16268
|
+
]),
|
|
16269
|
+
value: number().nullable()
|
|
16270
|
+
})) }), { auth: "admin" }), method(object({
|
|
16271
|
+
...KindShape,
|
|
16272
|
+
deviceId: number().int().optional(),
|
|
16273
|
+
atBefore: number().optional(),
|
|
16274
|
+
where: RecordWhereSchema.optional()
|
|
16275
|
+
}), object({
|
|
16276
|
+
deleted: number().int(),
|
|
16277
|
+
secretRefs: SecretRefsList
|
|
16278
|
+
}), {
|
|
16279
|
+
kind: "mutation",
|
|
16280
|
+
auth: "admin"
|
|
16281
|
+
}), method(object({
|
|
16282
|
+
deviceId: number().int(),
|
|
16283
|
+
kinds: array(RecordKindNameSchema).optional()
|
|
16284
|
+
}), object({
|
|
16285
|
+
deleted: record(string(), number().int()),
|
|
16286
|
+
secretRefs: SecretRefsList
|
|
16287
|
+
}), {
|
|
16288
|
+
kind: "mutation",
|
|
16289
|
+
auth: "admin"
|
|
16290
|
+
}), method(object(KindShape), object({ id: number().int() }), {
|
|
16291
|
+
kind: "mutation",
|
|
16292
|
+
auth: "admin"
|
|
16293
|
+
});
|
|
16294
|
+
/** One table of the settings database. */
|
|
16295
|
+
var StorageTableSchema = object({
|
|
16296
|
+
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
16297
|
+
name: string(),
|
|
16298
|
+
/** The owner prefix of a scoped name (`recorder` for `recorder:addon-settings`), else null. */
|
|
16299
|
+
owner: string().nullable(),
|
|
16300
|
+
rows: number().int().nonnegative(),
|
|
16301
|
+
/** Bytes the table's pages occupy (`dbstat`); null when the engine cannot measure. */
|
|
16302
|
+
bytes: number().int().nonnegative().nullable(),
|
|
16303
|
+
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
16304
|
+
declaredThisBoot: boolean()
|
|
16305
|
+
});
|
|
16306
|
+
/** One declared record kind (D881) as System -> Data shows it. */
|
|
16307
|
+
var StorageKindSchema = object({
|
|
16308
|
+
owner: string(),
|
|
16309
|
+
kind: string(),
|
|
16310
|
+
database: _enum(["settings", "events"]),
|
|
16311
|
+
class: string(),
|
|
16312
|
+
state: _enum([
|
|
16313
|
+
"declared",
|
|
16314
|
+
"orphaned",
|
|
16315
|
+
"dropped"
|
|
16316
|
+
]),
|
|
16317
|
+
/** `null` when the caller asked for no counts (`counts: false`). */
|
|
16318
|
+
rows: number().int().nonnegative().nullable(),
|
|
16319
|
+
/** Rows x the average size of a sample; null for an empty kind. */
|
|
16320
|
+
bytesEstimate: number().int().nonnegative().nullable(),
|
|
16321
|
+
writeTrigger: string(),
|
|
16322
|
+
retention: RecordRetentionSchema,
|
|
16323
|
+
/** `true` when the kind is an entry kind (the generic entries UI lists it). */
|
|
16324
|
+
entry: boolean(),
|
|
16325
|
+
/** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
|
|
16326
|
+
declaration: RecordKindDeclarationSchema
|
|
16327
|
+
});
|
|
16328
|
+
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
16329
|
+
collection: string().min(1),
|
|
16330
|
+
expectRows: number().int().nonnegative()
|
|
16331
|
+
}), object({
|
|
16332
|
+
dropped: literal(true),
|
|
16333
|
+
rows: number().int().nonnegative()
|
|
16334
|
+
}), {
|
|
16335
|
+
kind: "mutation",
|
|
16336
|
+
auth: "admin"
|
|
16337
|
+
}), method(object({
|
|
16338
|
+
owner: string().min(1).optional(),
|
|
16339
|
+
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
16340
|
+
counts: boolean().optional()
|
|
16341
|
+
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16342
|
+
owner: string().min(1),
|
|
16343
|
+
kind: RecordKindNameSchema
|
|
16344
|
+
}), RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16345
|
+
owner: string().min(1),
|
|
16346
|
+
kind: RecordKindNameSchema,
|
|
16347
|
+
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16348
|
+
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16349
|
+
complete: boolean().optional()
|
|
16350
|
+
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16351
|
+
kind: "mutation",
|
|
16352
|
+
auth: "admin"
|
|
16353
|
+
}), method(object({
|
|
16354
|
+
collection: string().min(1),
|
|
16355
|
+
cursor: string().optional(),
|
|
16356
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
16357
|
+
}), object({
|
|
16358
|
+
rows: array(object({
|
|
16359
|
+
id: string(),
|
|
16360
|
+
data: record(string(), unknown())
|
|
16361
|
+
})),
|
|
16362
|
+
nextCursor: string().nullable()
|
|
16363
|
+
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16364
|
+
/**
|
|
16365
|
+
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16366
|
+
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
16367
|
+
* declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
|
|
16368
|
+
*
|
|
16369
|
+
* The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
|
|
16370
|
+
* the entry body with `secret: true` on every credential field, so a password
|
|
16371
|
+
* field is derived from the schema and never from a name. `putEntry` takes the
|
|
16372
|
+
* redaction token for an untouched secret (the stored value is kept), a string
|
|
16373
|
+
* for a new one, and the clear instruction to remove one. A read never carries
|
|
16374
|
+
* a secret value, and a locked keychain refuses the write with
|
|
16375
|
+
* `records/secret-unavailable` instead of storing plaintext.
|
|
16376
|
+
*
|
|
16377
|
+
* Hub-only, served in-process (it acts for each entry's owner on the keychain).
|
|
16378
|
+
*/
|
|
16379
|
+
var EntryKindInfoSchema = object({
|
|
16380
|
+
owner: string(),
|
|
16381
|
+
kind: RecordKindNameSchema,
|
|
16382
|
+
title: string(),
|
|
16383
|
+
nameField: string(),
|
|
16384
|
+
/** JSON Schema of the body; `secret: true` marks a password field. */
|
|
16385
|
+
fields: record(string(), unknown()),
|
|
16386
|
+
secretPaths: array(string()),
|
|
16387
|
+
rows: number().int().nonnegative()
|
|
16388
|
+
});
|
|
16389
|
+
var EntryViewSchema = object({
|
|
16390
|
+
id: RecordIdSchema,
|
|
16391
|
+
name: string(),
|
|
16392
|
+
rev: number().int(),
|
|
16393
|
+
updatedAt: number(),
|
|
16394
|
+
/** Secret fields hold the redaction token. */
|
|
16395
|
+
data: RecordBodySchema
|
|
16396
|
+
});
|
|
16397
|
+
var EntryAddress = {
|
|
16398
|
+
owner: string().min(1),
|
|
16399
|
+
kind: RecordKindNameSchema
|
|
16400
|
+
};
|
|
16401
|
+
method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
|
|
16402
|
+
...EntryAddress,
|
|
16403
|
+
id: RecordIdSchema.optional(),
|
|
16404
|
+
data: RecordBodySchema,
|
|
16405
|
+
ifRev: number().int().min(1).optional()
|
|
16406
|
+
}), object({
|
|
16407
|
+
id: string(),
|
|
16408
|
+
rev: number().int()
|
|
16409
|
+
}), {
|
|
16410
|
+
kind: "mutation",
|
|
16411
|
+
auth: "admin"
|
|
16412
|
+
}), method(object({
|
|
16413
|
+
...EntryAddress,
|
|
16414
|
+
id: RecordIdSchema
|
|
16415
|
+
}), object({ deleted: boolean() }), {
|
|
16416
|
+
kind: "mutation",
|
|
16417
|
+
auth: "admin"
|
|
16418
|
+
});
|
|
16419
|
+
/**
|
|
15836
16420
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
15837
16421
|
*
|
|
15838
16422
|
* Settings blobs never hold a secret: they hold a marker
|
|
@@ -16373,6 +16957,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
|
|
|
16373
16957
|
kind: "mutation",
|
|
16374
16958
|
auth: "admin",
|
|
16375
16959
|
caller: "required"
|
|
16960
|
+
}), method(object({
|
|
16961
|
+
ref: string().min(1),
|
|
16962
|
+
value: string().min(1)
|
|
16963
|
+
}), object({
|
|
16964
|
+
ref: string(),
|
|
16965
|
+
version: number().int()
|
|
16966
|
+
}), {
|
|
16967
|
+
kind: "mutation",
|
|
16968
|
+
auth: "admin",
|
|
16969
|
+
caller: "required"
|
|
16376
16970
|
}), method(object({ refs: array(string().min(1)).max(1e3) }), object({
|
|
16377
16971
|
deleted: array(string()).readonly(),
|
|
16378
16972
|
kept: array(object({
|
|
@@ -16783,7 +17377,11 @@ DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int
|
|
|
16783
17377
|
});
|
|
16784
17378
|
/**
|
|
16785
17379
|
* `device-adoption` — generic discovery + adoption surface,
|
|
16786
|
-
* system-scoped
|
|
17380
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17381
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17382
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17383
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17384
|
+
* successor to `ha-discovery`:
|
|
16787
17385
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
16788
17386
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
16789
17387
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -39036,6 +39634,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
39036
39634
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
39037
39635
|
kind: "mutation",
|
|
39038
39636
|
auth: "admin"
|
|
39637
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
39638
|
+
kind: "mutation",
|
|
39639
|
+
auth: "admin"
|
|
39039
39640
|
}), method(ProfileRefInputSchema, _void(), {
|
|
39040
39641
|
kind: "mutation",
|
|
39041
39642
|
auth: "admin"
|
|
@@ -49459,6 +50060,41 @@ var ServerRollbackInfoSchema = object({
|
|
|
49459
50060
|
atMs: number(),
|
|
49460
50061
|
reason: string()
|
|
49461
50062
|
});
|
|
50063
|
+
/**
|
|
50064
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
50065
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
50066
|
+
* service holds, because only the hub plans) against the states the process
|
|
50067
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
50068
|
+
* every boot, served on `getServerPackageStatus`.
|
|
50069
|
+
*
|
|
50070
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
50071
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
50072
|
+
* planned runner the process service has no entry for.
|
|
50073
|
+
*/
|
|
50074
|
+
var RunnerRefusalSchema = object({
|
|
50075
|
+
runnerId: string(),
|
|
50076
|
+
addonIds: array(string()),
|
|
50077
|
+
reason: string()
|
|
50078
|
+
});
|
|
50079
|
+
var RunnerBootCheckSchema = object({
|
|
50080
|
+
checkedAtMs: number(),
|
|
50081
|
+
/** Runners planned for this node. */
|
|
50082
|
+
expected: number(),
|
|
50083
|
+
/** Planned runners whose process is `running`. */
|
|
50084
|
+
running: number(),
|
|
50085
|
+
failed: array(string()),
|
|
50086
|
+
refused: array(RunnerRefusalSchema),
|
|
50087
|
+
missing: array(string()),
|
|
50088
|
+
/**
|
|
50089
|
+
* Runners still on their way: `starting`, or `crashed` waiting on a backoff
|
|
50090
|
+
* respawn. The check is FINAL only when this is empty; until then nothing is
|
|
50091
|
+
* pushed and the verdict is re-evaluated on the next runner state change.
|
|
50092
|
+
* Optional for version skew (absent = settled).
|
|
50093
|
+
*/
|
|
50094
|
+
pending: array(string()).optional(),
|
|
50095
|
+
/** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
|
|
50096
|
+
planKnown: boolean()
|
|
50097
|
+
});
|
|
49462
50098
|
var ServerPackageStatusSchema = object({
|
|
49463
50099
|
/** Root package name (`@camstack/server` on the hub). */
|
|
49464
50100
|
packageName: string(),
|
|
@@ -49521,7 +50157,14 @@ var ServerPackageStatusSchema = object({
|
|
|
49521
50157
|
* for version skew: an older provider's payload simply omits it, and an
|
|
49522
50158
|
* absent wrapper is unknown — never `native`.
|
|
49523
50159
|
*/
|
|
49524
|
-
wrapper: WrapperIdentitySchema.optional()
|
|
50160
|
+
wrapper: WrapperIdentitySchema.optional(),
|
|
50161
|
+
/**
|
|
50162
|
+
* What this node PLANNED to run against what its process service reports
|
|
50163
|
+
* (D877). Absent until the one-shot boot check has run (~60 s after boot) and
|
|
50164
|
+
* on a provider that predates it. Absent is "not checked yet", never "all
|
|
50165
|
+
* well": a consumer that needs the answer treats it as pending.
|
|
50166
|
+
*/
|
|
50167
|
+
runners: RunnerBootCheckSchema.optional()
|
|
49525
50168
|
});
|
|
49526
50169
|
var ServerUpdateCheckResultSchema = object({
|
|
49527
50170
|
packageName: string(),
|
|
@@ -49572,6 +50215,13 @@ var ServerUpdateOutcomeSchema = _enum([
|
|
|
49572
50215
|
"refused",
|
|
49573
50216
|
"failed"
|
|
49574
50217
|
]);
|
|
50218
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
50219
|
+
var UpdateBlockerSchema = object({
|
|
50220
|
+
addonId: string(),
|
|
50221
|
+
reason: string(),
|
|
50222
|
+
/** What the operator does about it. */
|
|
50223
|
+
remedy: string()
|
|
50224
|
+
});
|
|
49575
50225
|
var ServerUpdateActionResultSchema = object({
|
|
49576
50226
|
accepted: boolean(),
|
|
49577
50227
|
targetVersion: string().nullable(),
|
|
@@ -49589,14 +50239,27 @@ var ServerUpdateActionResultSchema = object({
|
|
|
49589
50239
|
* The failure itself, verbatim enough to act on (the npm output for a
|
|
49590
50240
|
* staging install). Non-null only for `failed`.
|
|
49591
50241
|
*/
|
|
49592
|
-
error: string().nullable().optional()
|
|
50242
|
+
error: string().nullable().optional(),
|
|
50243
|
+
/**
|
|
50244
|
+
* The addons the target version would refuse to start on this node's live
|
|
50245
|
+
* store (D877), present when the pre-flight refused the update
|
|
50246
|
+
* (`reason: 'addon-would-refuse'`). Optional for version skew.
|
|
50247
|
+
*/
|
|
50248
|
+
blockers: array(UpdateBlockerSchema).optional()
|
|
49593
50249
|
});
|
|
49594
50250
|
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
49595
50251
|
kind: "mutation",
|
|
49596
50252
|
auth: "admin"
|
|
49597
|
-
}), method(object({
|
|
49598
|
-
/** Explicit target version; omitted = latest from the registry. */
|
|
49599
|
-
version: string().optional()
|
|
50253
|
+
}), method(object({
|
|
50254
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
50255
|
+
version: string().optional(),
|
|
50256
|
+
/**
|
|
50257
|
+
* Apply even though the pre-flight (D877) found addons the target would
|
|
50258
|
+
* refuse to start. Off by default: those addons stay down until the
|
|
50259
|
+
* remedy is run, which is the incident this gate exists to prevent.
|
|
50260
|
+
*/
|
|
50261
|
+
acknowledgeRefusals: boolean().optional()
|
|
50262
|
+
}), ServerUpdateActionResultSchema, {
|
|
49600
50263
|
kind: "mutation",
|
|
49601
50264
|
auth: "admin",
|
|
49602
50265
|
timeoutMs: 16 * 6e4
|
|
@@ -52113,7 +52776,9 @@ var ManifestShapeSchema = object({
|
|
|
52113
52776
|
var AddonProcessSchema = object({
|
|
52114
52777
|
pid: number().optional(),
|
|
52115
52778
|
mode: string(),
|
|
52116
|
-
state: string()
|
|
52779
|
+
state: string(),
|
|
52780
|
+
/** Why the runner is `refused` (an addon's own words), when it is (D877). */
|
|
52781
|
+
reason: string().optional()
|
|
52117
52782
|
});
|
|
52118
52783
|
/**
|
|
52119
52784
|
* Per-addon health snapshot from the kernel's AddonHealthMonitor.
|
|
@@ -52691,7 +53356,7 @@ var BatteryStatusSchema = object({
|
|
|
52691
53356
|
*/
|
|
52692
53357
|
binary: boolean().optional()
|
|
52693
53358
|
});
|
|
52694
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, method(object({
|
|
53359
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
|
|
52695
53360
|
deviceId: number(),
|
|
52696
53361
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
52697
53362
|
timeoutMs: number().int().min(500).max(3e4).default(8e3)
|
|
@@ -53116,6 +53781,12 @@ object({
|
|
|
53116
53781
|
/** Horizontal louver swing on/off. Null when the device has no
|
|
53117
53782
|
* horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
|
|
53118
53783
|
swingHorizontal: boolean().nullable(),
|
|
53784
|
+
/** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
53785
|
+
minTemp: number().nullable().optional(),
|
|
53786
|
+
/** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
53787
|
+
maxTemp: number().nullable().optional(),
|
|
53788
|
+
/** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
|
|
53789
|
+
tempStep: number().positive().nullable().optional(),
|
|
53119
53790
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
53120
53791
|
lastFetchedAt: number()
|
|
53121
53792
|
});
|
|
@@ -53561,6 +54232,130 @@ object({
|
|
|
53561
54232
|
deviceId: number(),
|
|
53562
54233
|
status: DeviceStatusSchema
|
|
53563
54234
|
});
|
|
54235
|
+
/**
|
|
54236
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
54237
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
54238
|
+
*
|
|
54239
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54240
|
+
* by any integration that exposes the same program / option surface.
|
|
54241
|
+
*
|
|
54242
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
54243
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
54244
|
+
*/
|
|
54245
|
+
var DishwasherStateSchema = _enum([
|
|
54246
|
+
"idle",
|
|
54247
|
+
"running",
|
|
54248
|
+
"paused",
|
|
54249
|
+
"finished",
|
|
54250
|
+
"error",
|
|
54251
|
+
"unavailable"
|
|
54252
|
+
]);
|
|
54253
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
54254
|
+
"ok",
|
|
54255
|
+
"low",
|
|
54256
|
+
"empty"
|
|
54257
|
+
]);
|
|
54258
|
+
object({
|
|
54259
|
+
state: DishwasherStateSchema,
|
|
54260
|
+
/** Active program id/name, or null when none selected / unknown. */
|
|
54261
|
+
program: string().nullable(),
|
|
54262
|
+
/** Program tokens the hardware accepts — drives the UI selector. */
|
|
54263
|
+
availablePrograms: array(string()),
|
|
54264
|
+
/** Minutes remaining on the active cycle, or null when not running. */
|
|
54265
|
+
remainingMinutes: number().int().nonnegative().nullable(),
|
|
54266
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
54267
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
54268
|
+
/** True when the door is reported open. */
|
|
54269
|
+
doorOpen: boolean(),
|
|
54270
|
+
/** True when remote start is allowed (door closed, power on, etc.). */
|
|
54271
|
+
remoteStartAllowed: boolean(),
|
|
54272
|
+
/** Main power / switched-on state. */
|
|
54273
|
+
powerOn: boolean(),
|
|
54274
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54275
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54276
|
+
halfLoad: boolean(),
|
|
54277
|
+
hygienePlus: boolean(),
|
|
54278
|
+
/** Extra dry option when the appliance exposes it. */
|
|
54279
|
+
extraDry: boolean(),
|
|
54280
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
54281
|
+
intensiveZone: boolean(),
|
|
54282
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
54283
|
+
varioSpeedPlus: boolean(),
|
|
54284
|
+
/** Child lock (controls disabled on the appliance). */
|
|
54285
|
+
childLock: boolean(),
|
|
54286
|
+
errorCode: number().nullable(),
|
|
54287
|
+
errorLabel: string().nullable(),
|
|
54288
|
+
lastFetchedAt: number()
|
|
54289
|
+
});
|
|
54290
|
+
DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54291
|
+
kind: "mutation",
|
|
54292
|
+
auth: "protected"
|
|
54293
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54294
|
+
kind: "mutation",
|
|
54295
|
+
auth: "protected"
|
|
54296
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54297
|
+
kind: "mutation",
|
|
54298
|
+
auth: "protected"
|
|
54299
|
+
}), method(object({
|
|
54300
|
+
deviceId: number().int().nonnegative(),
|
|
54301
|
+
program: string().min(1)
|
|
54302
|
+
}), _void(), {
|
|
54303
|
+
kind: "mutation",
|
|
54304
|
+
auth: "protected"
|
|
54305
|
+
}), method(object({
|
|
54306
|
+
deviceId: number().int().nonnegative(),
|
|
54307
|
+
on: boolean()
|
|
54308
|
+
}), _void(), {
|
|
54309
|
+
kind: "mutation",
|
|
54310
|
+
auth: "protected"
|
|
54311
|
+
}), method(object({
|
|
54312
|
+
deviceId: number().int().nonnegative(),
|
|
54313
|
+
on: boolean()
|
|
54314
|
+
}), _void(), {
|
|
54315
|
+
kind: "mutation",
|
|
54316
|
+
auth: "protected"
|
|
54317
|
+
}), method(object({
|
|
54318
|
+
deviceId: number().int().nonnegative(),
|
|
54319
|
+
on: boolean()
|
|
54320
|
+
}), _void(), {
|
|
54321
|
+
kind: "mutation",
|
|
54322
|
+
auth: "protected"
|
|
54323
|
+
}), method(object({
|
|
54324
|
+
deviceId: number().int().nonnegative(),
|
|
54325
|
+
on: boolean()
|
|
54326
|
+
}), _void(), {
|
|
54327
|
+
kind: "mutation",
|
|
54328
|
+
auth: "protected"
|
|
54329
|
+
}), method(object({
|
|
54330
|
+
deviceId: number().int().nonnegative(),
|
|
54331
|
+
on: boolean()
|
|
54332
|
+
}), _void(), {
|
|
54333
|
+
kind: "mutation",
|
|
54334
|
+
auth: "protected"
|
|
54335
|
+
}), method(object({
|
|
54336
|
+
deviceId: number().int().nonnegative(),
|
|
54337
|
+
on: boolean()
|
|
54338
|
+
}), _void(), {
|
|
54339
|
+
kind: "mutation",
|
|
54340
|
+
auth: "protected"
|
|
54341
|
+
}), method(object({
|
|
54342
|
+
deviceId: number().int().nonnegative(),
|
|
54343
|
+
on: boolean()
|
|
54344
|
+
}), _void(), {
|
|
54345
|
+
kind: "mutation",
|
|
54346
|
+
auth: "protected"
|
|
54347
|
+
}), method(object({
|
|
54348
|
+
deviceId: number().int().nonnegative(),
|
|
54349
|
+
key: string().min(1),
|
|
54350
|
+
value: union([
|
|
54351
|
+
boolean(),
|
|
54352
|
+
string(),
|
|
54353
|
+
number()
|
|
54354
|
+
])
|
|
54355
|
+
}), _void(), {
|
|
54356
|
+
kind: "mutation",
|
|
54357
|
+
auth: "protected"
|
|
54358
|
+
});
|
|
53564
54359
|
object({
|
|
53565
54360
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
53566
54361
|
lastPressedAt: number().nullable(),
|
|
@@ -54126,6 +54921,13 @@ object({
|
|
|
54126
54921
|
lastChangedAt: number()
|
|
54127
54922
|
});
|
|
54128
54923
|
DeviceType.Sensor;
|
|
54924
|
+
object({
|
|
54925
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
54926
|
+
position: number().min(0).max(100).nullable(),
|
|
54927
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
54928
|
+
lastFetchedAt: number()
|
|
54929
|
+
});
|
|
54930
|
+
DeviceType.Thermostat;
|
|
54129
54931
|
object({
|
|
54130
54932
|
/** Whether the humidifier is currently on. */
|
|
54131
54933
|
on: boolean(),
|
|
@@ -54936,7 +55738,19 @@ var TlsStatusSchema = object({
|
|
|
54936
55738
|
sans: array(string()),
|
|
54937
55739
|
caCertPem: string().nullable(),
|
|
54938
55740
|
reissueError: string().nullable(),
|
|
54939
|
-
restartRequired: boolean()
|
|
55741
|
+
restartRequired: boolean(),
|
|
55742
|
+
/** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
|
|
55743
|
+
caMissing: boolean(),
|
|
55744
|
+
/** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
|
|
55745
|
+
localCaConstrained: boolean().nullable(),
|
|
55746
|
+
/** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
|
|
55747
|
+
caReplacedAt: string().nullable(),
|
|
55748
|
+
/** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
|
|
55749
|
+
storedUpload: object({
|
|
55750
|
+
leafFingerprintSha256: string(),
|
|
55751
|
+
validTo: string(),
|
|
55752
|
+
hasCa: boolean()
|
|
55753
|
+
}).nullable()
|
|
54940
55754
|
});
|
|
54941
55755
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
54942
55756
|
/**
|
|
@@ -54992,6 +55806,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
54992
55806
|
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
54993
55807
|
kind: "mutation",
|
|
54994
55808
|
auth: "admin"
|
|
55809
|
+
}), method(_void(), TlsStatusSchema, {
|
|
55810
|
+
kind: "mutation",
|
|
55811
|
+
auth: "admin"
|
|
54995
55812
|
});
|
|
54996
55813
|
object({
|
|
54997
55814
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
@@ -60213,7 +61030,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
60213
61030
|
kind: "mutation",
|
|
60214
61031
|
auth: "admin",
|
|
60215
61032
|
access: "delete"
|
|
60216
|
-
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(
|
|
61033
|
+
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
61034
|
+
kind: "mutation",
|
|
61035
|
+
auth: "admin",
|
|
61036
|
+
access: "create"
|
|
61037
|
+
}), method(object({
|
|
60217
61038
|
userId: string(),
|
|
60218
61039
|
code: string()
|
|
60219
61040
|
}), object({ valid: boolean() }), {
|
|
@@ -61558,6 +62379,12 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
61558
62379
|
provider: this
|
|
61559
62380
|
}];
|
|
61560
62381
|
}
|
|
62382
|
+
/** Flatten `super.onInitialize()` whether it returned an array or an envelope. */
|
|
62383
|
+
providerRegistrationsFromSuper(result) {
|
|
62384
|
+
if (Array.isArray(result)) return result;
|
|
62385
|
+
if (result !== void 0 && result.providers !== void 0) return [...result.providers];
|
|
62386
|
+
return [];
|
|
62387
|
+
}
|
|
61561
62388
|
async onShutdown() {
|
|
61562
62389
|
this._restoreShuttingDown = true;
|
|
61563
62390
|
this.cancelRestoreRetries();
|
|
@@ -62084,7 +62911,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
62084
62911
|
return toDeviceSummary(device, this.addonId);
|
|
62085
62912
|
}
|
|
62086
62913
|
};
|
|
62087
|
-
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;
|
|
62914
|
+
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;
|
|
62088
62915
|
new Set(Object.values(DeviceType));
|
|
62089
62916
|
Object.freeze({
|
|
62090
62917
|
"accessories.getStatus": {
|
|
@@ -63233,6 +64060,12 @@ Object.freeze({
|
|
|
63233
64060
|
addonId: null,
|
|
63234
64061
|
access: "view"
|
|
63235
64062
|
},
|
|
64063
|
+
"coreBlocks.migrateRawSecrets": {
|
|
64064
|
+
capName: "core-blocks",
|
|
64065
|
+
capScope: "system",
|
|
64066
|
+
addonId: null,
|
|
64067
|
+
access: "create"
|
|
64068
|
+
},
|
|
63236
64069
|
"coreBlocks.restart": {
|
|
63237
64070
|
capName: "core-blocks",
|
|
63238
64071
|
capScope: "system",
|
|
@@ -64499,6 +65332,84 @@ Object.freeze({
|
|
|
64499
65332
|
addonId: null,
|
|
64500
65333
|
access: "view"
|
|
64501
65334
|
},
|
|
65335
|
+
"dishwasher.getStatus": {
|
|
65336
|
+
capName: "dishwasher",
|
|
65337
|
+
capScope: "device",
|
|
65338
|
+
addonId: null,
|
|
65339
|
+
access: "view"
|
|
65340
|
+
},
|
|
65341
|
+
"dishwasher.pause": {
|
|
65342
|
+
capName: "dishwasher",
|
|
65343
|
+
capScope: "device",
|
|
65344
|
+
addonId: null,
|
|
65345
|
+
access: "create"
|
|
65346
|
+
},
|
|
65347
|
+
"dishwasher.setChildLock": {
|
|
65348
|
+
capName: "dishwasher",
|
|
65349
|
+
capScope: "device",
|
|
65350
|
+
addonId: null,
|
|
65351
|
+
access: "create"
|
|
65352
|
+
},
|
|
65353
|
+
"dishwasher.setExtraDry": {
|
|
65354
|
+
capName: "dishwasher",
|
|
65355
|
+
capScope: "device",
|
|
65356
|
+
addonId: null,
|
|
65357
|
+
access: "create"
|
|
65358
|
+
},
|
|
65359
|
+
"dishwasher.setHalfLoad": {
|
|
65360
|
+
capName: "dishwasher",
|
|
65361
|
+
capScope: "device",
|
|
65362
|
+
addonId: null,
|
|
65363
|
+
access: "create"
|
|
65364
|
+
},
|
|
65365
|
+
"dishwasher.setHygienePlus": {
|
|
65366
|
+
capName: "dishwasher",
|
|
65367
|
+
capScope: "device",
|
|
65368
|
+
addonId: null,
|
|
65369
|
+
access: "create"
|
|
65370
|
+
},
|
|
65371
|
+
"dishwasher.setIntensiveZone": {
|
|
65372
|
+
capName: "dishwasher",
|
|
65373
|
+
capScope: "device",
|
|
65374
|
+
addonId: null,
|
|
65375
|
+
access: "create"
|
|
65376
|
+
},
|
|
65377
|
+
"dishwasher.setOption": {
|
|
65378
|
+
capName: "dishwasher",
|
|
65379
|
+
capScope: "device",
|
|
65380
|
+
addonId: null,
|
|
65381
|
+
access: "create"
|
|
65382
|
+
},
|
|
65383
|
+
"dishwasher.setPower": {
|
|
65384
|
+
capName: "dishwasher",
|
|
65385
|
+
capScope: "device",
|
|
65386
|
+
addonId: null,
|
|
65387
|
+
access: "create"
|
|
65388
|
+
},
|
|
65389
|
+
"dishwasher.setProgram": {
|
|
65390
|
+
capName: "dishwasher",
|
|
65391
|
+
capScope: "device",
|
|
65392
|
+
addonId: null,
|
|
65393
|
+
access: "create"
|
|
65394
|
+
},
|
|
65395
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
65396
|
+
capName: "dishwasher",
|
|
65397
|
+
capScope: "device",
|
|
65398
|
+
addonId: null,
|
|
65399
|
+
access: "create"
|
|
65400
|
+
},
|
|
65401
|
+
"dishwasher.start": {
|
|
65402
|
+
capName: "dishwasher",
|
|
65403
|
+
capScope: "device",
|
|
65404
|
+
addonId: null,
|
|
65405
|
+
access: "create"
|
|
65406
|
+
},
|
|
65407
|
+
"dishwasher.stop": {
|
|
65408
|
+
capName: "dishwasher",
|
|
65409
|
+
capScope: "device",
|
|
65410
|
+
addonId: null,
|
|
65411
|
+
access: "create"
|
|
65412
|
+
},
|
|
64502
65413
|
"doorbell.getStatus": {
|
|
64503
65414
|
capName: "doorbell",
|
|
64504
65415
|
capScope: "device",
|
|
@@ -64709,6 +65620,12 @@ Object.freeze({
|
|
|
64709
65620
|
addonId: null,
|
|
64710
65621
|
access: "view"
|
|
64711
65622
|
},
|
|
65623
|
+
"heatingValve.getStatus": {
|
|
65624
|
+
capName: "heating-valve",
|
|
65625
|
+
capScope: "device",
|
|
65626
|
+
addonId: null,
|
|
65627
|
+
access: "view"
|
|
65628
|
+
},
|
|
64712
65629
|
"humidifier.getStatus": {
|
|
64713
65630
|
capName: "humidifier",
|
|
64714
65631
|
capScope: "device",
|
|
@@ -64919,6 +65836,12 @@ Object.freeze({
|
|
|
64919
65836
|
addonId: null,
|
|
64920
65837
|
access: "create"
|
|
64921
65838
|
},
|
|
65839
|
+
"keychainAdmin.importSecret": {
|
|
65840
|
+
capName: "keychain-admin",
|
|
65841
|
+
capScope: "system",
|
|
65842
|
+
addonId: null,
|
|
65843
|
+
access: "create"
|
|
65844
|
+
},
|
|
64922
65845
|
"keychainAdmin.listAudit": {
|
|
64923
65846
|
capName: "keychain-admin",
|
|
64924
65847
|
capScope: "system",
|
|
@@ -65087,6 +66010,12 @@ Object.freeze({
|
|
|
65087
66010
|
addonId: null,
|
|
65088
66011
|
access: "view"
|
|
65089
66012
|
},
|
|
66013
|
+
"llm.migrateRawSecrets": {
|
|
66014
|
+
capName: "llm",
|
|
66015
|
+
capScope: "system",
|
|
66016
|
+
addonId: null,
|
|
66017
|
+
access: "create"
|
|
66018
|
+
},
|
|
65090
66019
|
"llm.resolveModelRef": {
|
|
65091
66020
|
capName: "llm",
|
|
65092
66021
|
capScope: "system",
|
|
@@ -65315,6 +66244,12 @@ Object.freeze({
|
|
|
65315
66244
|
addonId: null,
|
|
65316
66245
|
access: "create"
|
|
65317
66246
|
},
|
|
66247
|
+
"localNetwork.useStoredUploadedCertificate": {
|
|
66248
|
+
capName: "local-network",
|
|
66249
|
+
capScope: "system",
|
|
66250
|
+
addonId: null,
|
|
66251
|
+
access: "create"
|
|
66252
|
+
},
|
|
65318
66253
|
"lockControl.getStatus": {
|
|
65319
66254
|
capName: "lock-control",
|
|
65320
66255
|
capScope: "device",
|
|
@@ -67967,6 +68902,30 @@ Object.freeze({
|
|
|
67967
68902
|
addonId: null,
|
|
67968
68903
|
access: "create"
|
|
67969
68904
|
},
|
|
68905
|
+
"recordEntries.deleteEntry": {
|
|
68906
|
+
capName: "record-entries",
|
|
68907
|
+
capScope: "system",
|
|
68908
|
+
addonId: null,
|
|
68909
|
+
access: "delete"
|
|
68910
|
+
},
|
|
68911
|
+
"recordEntries.listEntries": {
|
|
68912
|
+
capName: "record-entries",
|
|
68913
|
+
capScope: "system",
|
|
68914
|
+
addonId: null,
|
|
68915
|
+
access: "view"
|
|
68916
|
+
},
|
|
68917
|
+
"recordEntries.listEntryKinds": {
|
|
68918
|
+
capName: "record-entries",
|
|
68919
|
+
capScope: "system",
|
|
68920
|
+
addonId: null,
|
|
68921
|
+
access: "view"
|
|
68922
|
+
},
|
|
68923
|
+
"recordEntries.putEntry": {
|
|
68924
|
+
capName: "record-entries",
|
|
68925
|
+
capScope: "system",
|
|
68926
|
+
addonId: null,
|
|
68927
|
+
access: "create"
|
|
68928
|
+
},
|
|
67970
68929
|
"recording.getAvailability": {
|
|
67971
68930
|
capName: "recording",
|
|
67972
68931
|
capScope: "device",
|
|
@@ -68267,6 +69226,102 @@ Object.freeze({
|
|
|
68267
69226
|
addonId: null,
|
|
68268
69227
|
access: "view"
|
|
68269
69228
|
},
|
|
69229
|
+
"records.aggregate": {
|
|
69230
|
+
capName: "records",
|
|
69231
|
+
capScope: "system",
|
|
69232
|
+
addonId: null,
|
|
69233
|
+
access: "view"
|
|
69234
|
+
},
|
|
69235
|
+
"records.allocateId": {
|
|
69236
|
+
capName: "records",
|
|
69237
|
+
capScope: "system",
|
|
69238
|
+
addonId: null,
|
|
69239
|
+
access: "create"
|
|
69240
|
+
},
|
|
69241
|
+
"records.count": {
|
|
69242
|
+
capName: "records",
|
|
69243
|
+
capScope: "system",
|
|
69244
|
+
addonId: null,
|
|
69245
|
+
access: "view"
|
|
69246
|
+
},
|
|
69247
|
+
"records.declareKinds": {
|
|
69248
|
+
capName: "records",
|
|
69249
|
+
capScope: "system",
|
|
69250
|
+
addonId: null,
|
|
69251
|
+
access: "create"
|
|
69252
|
+
},
|
|
69253
|
+
"records.delete": {
|
|
69254
|
+
capName: "records",
|
|
69255
|
+
capScope: "system",
|
|
69256
|
+
addonId: null,
|
|
69257
|
+
access: "delete"
|
|
69258
|
+
},
|
|
69259
|
+
"records.deleteDevice": {
|
|
69260
|
+
capName: "records",
|
|
69261
|
+
capScope: "system",
|
|
69262
|
+
addonId: null,
|
|
69263
|
+
access: "delete"
|
|
69264
|
+
},
|
|
69265
|
+
"records.deleteMany": {
|
|
69266
|
+
capName: "records",
|
|
69267
|
+
capScope: "system",
|
|
69268
|
+
addonId: null,
|
|
69269
|
+
access: "delete"
|
|
69270
|
+
},
|
|
69271
|
+
"records.deleteWhere": {
|
|
69272
|
+
capName: "records",
|
|
69273
|
+
capScope: "system",
|
|
69274
|
+
addonId: null,
|
|
69275
|
+
access: "delete"
|
|
69276
|
+
},
|
|
69277
|
+
"records.get": {
|
|
69278
|
+
capName: "records",
|
|
69279
|
+
capScope: "system",
|
|
69280
|
+
addonId: null,
|
|
69281
|
+
access: "view"
|
|
69282
|
+
},
|
|
69283
|
+
"records.getMany": {
|
|
69284
|
+
capName: "records",
|
|
69285
|
+
capScope: "system",
|
|
69286
|
+
addonId: null,
|
|
69287
|
+
access: "view"
|
|
69288
|
+
},
|
|
69289
|
+
"records.histogram": {
|
|
69290
|
+
capName: "records",
|
|
69291
|
+
capScope: "system",
|
|
69292
|
+
addonId: null,
|
|
69293
|
+
access: "view"
|
|
69294
|
+
},
|
|
69295
|
+
"records.patch": {
|
|
69296
|
+
capName: "records",
|
|
69297
|
+
capScope: "system",
|
|
69298
|
+
addonId: null,
|
|
69299
|
+
access: "create"
|
|
69300
|
+
},
|
|
69301
|
+
"records.put": {
|
|
69302
|
+
capName: "records",
|
|
69303
|
+
capScope: "system",
|
|
69304
|
+
addonId: null,
|
|
69305
|
+
access: "create"
|
|
69306
|
+
},
|
|
69307
|
+
"records.putMany": {
|
|
69308
|
+
capName: "records",
|
|
69309
|
+
capScope: "system",
|
|
69310
|
+
addonId: null,
|
|
69311
|
+
access: "create"
|
|
69312
|
+
},
|
|
69313
|
+
"records.query": {
|
|
69314
|
+
capName: "records",
|
|
69315
|
+
capScope: "system",
|
|
69316
|
+
addonId: null,
|
|
69317
|
+
access: "view"
|
|
69318
|
+
},
|
|
69319
|
+
"records.secretRefs": {
|
|
69320
|
+
capName: "records",
|
|
69321
|
+
capScope: "system",
|
|
69322
|
+
addonId: null,
|
|
69323
|
+
access: "view"
|
|
69324
|
+
},
|
|
68270
69325
|
"sceneMonitor.captureReference": {
|
|
68271
69326
|
capName: "scene-monitor",
|
|
68272
69327
|
capScope: "device",
|
|
@@ -68699,6 +69754,48 @@ Object.freeze({
|
|
|
68699
69754
|
addonId: null,
|
|
68700
69755
|
access: "create"
|
|
68701
69756
|
},
|
|
69757
|
+
"storageAdmin.adoptRecords": {
|
|
69758
|
+
capName: "storage-admin",
|
|
69759
|
+
capScope: "system",
|
|
69760
|
+
addonId: null,
|
|
69761
|
+
access: "create"
|
|
69762
|
+
},
|
|
69763
|
+
"storageAdmin.dropCollection": {
|
|
69764
|
+
capName: "storage-admin",
|
|
69765
|
+
capScope: "system",
|
|
69766
|
+
addonId: null,
|
|
69767
|
+
access: "delete"
|
|
69768
|
+
},
|
|
69769
|
+
"storageAdmin.isAdoptedLegacyTable": {
|
|
69770
|
+
capName: "storage-admin",
|
|
69771
|
+
capScope: "system",
|
|
69772
|
+
addonId: null,
|
|
69773
|
+
access: "view"
|
|
69774
|
+
},
|
|
69775
|
+
"storageAdmin.listKinds": {
|
|
69776
|
+
capName: "storage-admin",
|
|
69777
|
+
capScope: "system",
|
|
69778
|
+
addonId: null,
|
|
69779
|
+
access: "view"
|
|
69780
|
+
},
|
|
69781
|
+
"storageAdmin.listTables": {
|
|
69782
|
+
capName: "storage-admin",
|
|
69783
|
+
capScope: "system",
|
|
69784
|
+
addonId: null,
|
|
69785
|
+
access: "view"
|
|
69786
|
+
},
|
|
69787
|
+
"storageAdmin.readLegacyCollection": {
|
|
69788
|
+
capName: "storage-admin",
|
|
69789
|
+
capScope: "system",
|
|
69790
|
+
addonId: null,
|
|
69791
|
+
access: "view"
|
|
69792
|
+
},
|
|
69793
|
+
"storageAdmin.readRecords": {
|
|
69794
|
+
capName: "storage-admin",
|
|
69795
|
+
capScope: "system",
|
|
69796
|
+
addonId: null,
|
|
69797
|
+
access: "view"
|
|
69798
|
+
},
|
|
68702
69799
|
"storageEvictable.evict": {
|
|
68703
69800
|
capName: "storage-evictable",
|
|
68704
69801
|
capScope: "system",
|
|
@@ -69611,6 +70708,12 @@ Object.freeze({
|
|
|
69611
70708
|
addonId: null,
|
|
69612
70709
|
access: "view"
|
|
69613
70710
|
},
|
|
70711
|
+
"userManagement.migrateRawSecrets": {
|
|
70712
|
+
capName: "user-management",
|
|
70713
|
+
capScope: "system",
|
|
70714
|
+
addonId: null,
|
|
70715
|
+
access: "create"
|
|
70716
|
+
},
|
|
69614
70717
|
"userManagement.oauthExchangeCode": {
|
|
69615
70718
|
capName: "user-management",
|
|
69616
70719
|
capScope: "system",
|
|
@@ -70110,7 +71213,7 @@ Object.freeze({
|
|
|
70110
71213
|
access: "create"
|
|
70111
71214
|
}
|
|
70112
71215
|
});
|
|
70113
|
-
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;
|
|
71216
|
+
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;
|
|
70114
71217
|
DeviceFeature.BatteryOperated;
|
|
70115
71218
|
/** Reject after `ms`; always clears its own timer. */
|
|
70116
71219
|
async function withTimeout$1(promise, ms, label) {
|
|
@@ -71000,6 +72103,71 @@ Object.freeze({
|
|
|
71000
72103
|
form: "single",
|
|
71001
72104
|
optional: false
|
|
71002
72105
|
}],
|
|
72106
|
+
"dishwasher.getStatus": [{
|
|
72107
|
+
name: "deviceId",
|
|
72108
|
+
form: "single",
|
|
72109
|
+
optional: false
|
|
72110
|
+
}],
|
|
72111
|
+
"dishwasher.pause": [{
|
|
72112
|
+
name: "deviceId",
|
|
72113
|
+
form: "single",
|
|
72114
|
+
optional: false
|
|
72115
|
+
}],
|
|
72116
|
+
"dishwasher.setChildLock": [{
|
|
72117
|
+
name: "deviceId",
|
|
72118
|
+
form: "single",
|
|
72119
|
+
optional: false
|
|
72120
|
+
}],
|
|
72121
|
+
"dishwasher.setExtraDry": [{
|
|
72122
|
+
name: "deviceId",
|
|
72123
|
+
form: "single",
|
|
72124
|
+
optional: false
|
|
72125
|
+
}],
|
|
72126
|
+
"dishwasher.setHalfLoad": [{
|
|
72127
|
+
name: "deviceId",
|
|
72128
|
+
form: "single",
|
|
72129
|
+
optional: false
|
|
72130
|
+
}],
|
|
72131
|
+
"dishwasher.setHygienePlus": [{
|
|
72132
|
+
name: "deviceId",
|
|
72133
|
+
form: "single",
|
|
72134
|
+
optional: false
|
|
72135
|
+
}],
|
|
72136
|
+
"dishwasher.setIntensiveZone": [{
|
|
72137
|
+
name: "deviceId",
|
|
72138
|
+
form: "single",
|
|
72139
|
+
optional: false
|
|
72140
|
+
}],
|
|
72141
|
+
"dishwasher.setOption": [{
|
|
72142
|
+
name: "deviceId",
|
|
72143
|
+
form: "single",
|
|
72144
|
+
optional: false
|
|
72145
|
+
}],
|
|
72146
|
+
"dishwasher.setPower": [{
|
|
72147
|
+
name: "deviceId",
|
|
72148
|
+
form: "single",
|
|
72149
|
+
optional: false
|
|
72150
|
+
}],
|
|
72151
|
+
"dishwasher.setProgram": [{
|
|
72152
|
+
name: "deviceId",
|
|
72153
|
+
form: "single",
|
|
72154
|
+
optional: false
|
|
72155
|
+
}],
|
|
72156
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
72157
|
+
name: "deviceId",
|
|
72158
|
+
form: "single",
|
|
72159
|
+
optional: false
|
|
72160
|
+
}],
|
|
72161
|
+
"dishwasher.start": [{
|
|
72162
|
+
name: "deviceId",
|
|
72163
|
+
form: "single",
|
|
72164
|
+
optional: false
|
|
72165
|
+
}],
|
|
72166
|
+
"dishwasher.stop": [{
|
|
72167
|
+
name: "deviceId",
|
|
72168
|
+
form: "single",
|
|
72169
|
+
optional: false
|
|
72170
|
+
}],
|
|
71003
72171
|
"doorbell.getStatus": [{
|
|
71004
72172
|
name: "deviceId",
|
|
71005
72173
|
form: "single",
|
|
@@ -71069,6 +72237,11 @@ Object.freeze({
|
|
|
71069
72237
|
form: "single",
|
|
71070
72238
|
optional: false
|
|
71071
72239
|
}],
|
|
72240
|
+
"heatingValve.getStatus": [{
|
|
72241
|
+
name: "deviceId",
|
|
72242
|
+
form: "single",
|
|
72243
|
+
optional: false
|
|
72244
|
+
}],
|
|
71072
72245
|
"humidifier.getStatus": [{
|
|
71073
72246
|
name: "deviceId",
|
|
71074
72247
|
form: "single",
|
|
@@ -72353,6 +73526,37 @@ Object.freeze({
|
|
|
72353
73526
|
form: "single",
|
|
72354
73527
|
optional: false
|
|
72355
73528
|
}],
|
|
73529
|
+
"records.count": [{
|
|
73530
|
+
name: "deviceId",
|
|
73531
|
+
form: "single",
|
|
73532
|
+
optional: true
|
|
73533
|
+
}],
|
|
73534
|
+
"records.deleteDevice": [{
|
|
73535
|
+
name: "deviceId",
|
|
73536
|
+
form: "single",
|
|
73537
|
+
optional: false
|
|
73538
|
+
}],
|
|
73539
|
+
"records.deleteWhere": [{
|
|
73540
|
+
name: "deviceId",
|
|
73541
|
+
form: "single",
|
|
73542
|
+
optional: true
|
|
73543
|
+
}],
|
|
73544
|
+
"records.histogram": [{
|
|
73545
|
+
name: "deviceId",
|
|
73546
|
+
form: "single",
|
|
73547
|
+
optional: true
|
|
73548
|
+
}],
|
|
73549
|
+
"records.putMany": [{
|
|
73550
|
+
name: "records",
|
|
73551
|
+
form: "object-array",
|
|
73552
|
+
optional: false,
|
|
73553
|
+
itemField: "deviceId"
|
|
73554
|
+
}],
|
|
73555
|
+
"records.query": [{
|
|
73556
|
+
name: "deviceId",
|
|
73557
|
+
form: "single",
|
|
73558
|
+
optional: true
|
|
73559
|
+
}],
|
|
72356
73560
|
"sceneMonitor.captureReference": [{
|
|
72357
73561
|
name: "deviceId",
|
|
72358
73562
|
form: "single",
|
|
@@ -72469,6 +73673,17 @@ Object.freeze({
|
|
|
72469
73673
|
form: "single",
|
|
72470
73674
|
optional: false
|
|
72471
73675
|
}],
|
|
73676
|
+
"storageAdmin.adoptRecords": [{
|
|
73677
|
+
name: "records",
|
|
73678
|
+
form: "object-array",
|
|
73679
|
+
optional: false,
|
|
73680
|
+
itemField: "deviceId"
|
|
73681
|
+
}],
|
|
73682
|
+
"storageAdmin.readRecords": [{
|
|
73683
|
+
name: "deviceId",
|
|
73684
|
+
form: "single",
|
|
73685
|
+
optional: true
|
|
73686
|
+
}],
|
|
72472
73687
|
"streamBroker.acquireEgressTranscode": [{
|
|
72473
73688
|
name: "deviceId",
|
|
72474
73689
|
form: "single",
|