@camstack/addon-provider-rademacher 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.
Files changed (3) hide show
  1. package/dist/addon.js +1402 -129
  2. package/dist/addon.mjs +1402 -129
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -983,7 +983,7 @@ var Rademacher = class {
983
983
  }
984
984
  };
985
985
  //#endregion
986
- //#region ../types/dist/event-category-C4hVnRo8.mjs
986
+ //#region ../types/dist/event-category-BvOFi6PY.mjs
987
987
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
988
988
  EventCategory["SystemBoot"] = "system.boot";
989
989
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1047,6 +1047,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1047
1047
  * consumes this category and maps it to the `addon-crash-loop` kind.
1048
1048
  */
1049
1049
  EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
1050
+ /**
1051
+ * A runner whose addon refused to start with a typed reason (D877) - parked
1052
+ * in `refused`, never counted by the crash breaker, retried on operator
1053
+ * action. One event per refusal.
1054
+ */
1055
+ EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
1056
+ /**
1057
+ * A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
1058
+ * `refused`. In-process telemetry for the boot check (re-evaluate while any
1059
+ * runner is still pending) and the alert centre (close a recovered runner).
1060
+ */
1061
+ EventCategory["ProcessStateChanged"] = "process.state-changed";
1062
+ /**
1063
+ * The node's one-shot runner boot check (D877): planned runners against the
1064
+ * process service, `degraded` when any is failed, refused or missing. The
1065
+ * alert centre turns it into one alert and a direct critical push.
1066
+ */
1067
+ EventCategory["SystemRunnerCheck"] = "system.runner-check";
1050
1068
  EventCategory["AddonError"] = "addon.error";
1051
1069
  EventCategory["AddonPageReady"] = "addon.page-ready";
1052
1070
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -6371,7 +6389,7 @@ var ZodIssueCode = {
6371
6389
  var ZodFirstPartyTypeKind;
6372
6390
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6373
6391
  //#endregion
6374
- //#region ../types/dist/sleep-DRqxtc0C.mjs
6392
+ //#region ../types/dist/sleep-BegKjwUu.mjs
6375
6393
  /**
6376
6394
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6377
6395
  * window to float samples (D455).
@@ -6488,7 +6506,7 @@ function isKeychainStoredField(field) {
6488
6506
  var SECRET_CLEAR = { $secretClear: true };
6489
6507
  /** The `'***'` token D634 redaction writes for non-admins. */
6490
6508
  var LEGACY_DEVICE_REDACTION = "***";
6491
- function isRecord$2(value) {
6509
+ function isRecord$5(value) {
6492
6510
  return typeof value === "object" && value !== null && !Array.isArray(value);
6493
6511
  }
6494
6512
  function makeSecretMarker(ref) {
@@ -6499,12 +6517,12 @@ function makeSecretMarker(ref) {
6499
6517
  }
6500
6518
  /** A stored marker: an object whose `$secret` is a non-empty string. */
6501
6519
  function isSecretMarker(value) {
6502
- if (!isRecord$2(value)) return false;
6520
+ if (!isRecord$5(value)) return false;
6503
6521
  const ref = value["$secret"];
6504
6522
  return typeof ref === "string" && ref.length > 0;
6505
6523
  }
6506
6524
  function isSecretClear(value) {
6507
- return isRecord$2(value) && value["$secretClear"] === true;
6525
+ return isRecord$5(value) && value["$secretClear"] === true;
6508
6526
  }
6509
6527
  /**
6510
6528
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -7114,7 +7132,7 @@ var KeychainWriteRefusedError = class extends Error {
7114
7132
  }
7115
7133
  };
7116
7134
  var KEEP = { kind: "keep" };
7117
- function isRecord$1(value) {
7135
+ function isRecord$4(value) {
7118
7136
  return typeof value === "object" && value !== null && !Array.isArray(value);
7119
7137
  }
7120
7138
  function defaultMintId() {
@@ -7127,7 +7145,7 @@ function collectSecretMarkerRefs(value, out = []) {
7127
7145
  return out;
7128
7146
  }
7129
7147
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
7130
- else if (isRecord$1(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
7148
+ else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
7131
7149
  return out;
7132
7150
  }
7133
7151
  async function storedValueEquals(secrets, marker, candidate) {
@@ -7182,7 +7200,7 @@ function rowId(row, idKey) {
7182
7200
  return null;
7183
7201
  }
7184
7202
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
7185
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$1) : [];
7203
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
7186
7204
  if (!Array.isArray(incoming)) {
7187
7205
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
7188
7206
  return {
@@ -7198,7 +7216,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
7198
7216
  const kept = /* @__PURE__ */ new Set();
7199
7217
  const rows = [];
7200
7218
  for (const row of incoming) {
7201
- if (!isRecord$1(row)) {
7219
+ if (!isRecord$4(row)) {
7202
7220
  rows.push(row);
7203
7221
  continue;
7204
7222
  }
@@ -7223,7 +7241,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
7223
7241
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
7224
7242
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
7225
7243
  case "object": {
7226
- if (!isRecord$1(incoming)) {
7244
+ if (!isRecord$4(incoming)) {
7227
7245
  if (incoming === void 0) return KEEP;
7228
7246
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
7229
7247
  return {
@@ -7231,7 +7249,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
7231
7249
  value: incoming
7232
7250
  };
7233
7251
  }
7234
- const storedObj = isRecord$1(stored) ? stored : {};
7252
+ const storedObj = isRecord$4(stored) ? stored : {};
7235
7253
  return {
7236
7254
  kind: "value",
7237
7255
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -7354,7 +7372,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
7354
7372
  value: items
7355
7373
  };
7356
7374
  }
7357
- if (isRecord$1(v)) {
7375
+ if (isRecord$4(v)) {
7358
7376
  const out = {};
7359
7377
  for (const [k, child] of Object.entries(v)) {
7360
7378
  const s = substitute(child);
@@ -7386,7 +7404,7 @@ var SecretOverwriteRefusedError = class extends Error {
7386
7404
  this.name = "SecretOverwriteRefusedError";
7387
7405
  }
7388
7406
  };
7389
- function isRecord(value) {
7407
+ function isRecord$3(value) {
7390
7408
  return typeof value === "object" && value !== null && !Array.isArray(value);
7391
7409
  }
7392
7410
  function resolvedValue(pass, marker) {
@@ -7415,7 +7433,7 @@ function inArray(pass, incoming, stored) {
7415
7433
  return incoming.map((item, index) => {
7416
7434
  const twin = stored[index];
7417
7435
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
7418
- if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
7436
+ if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
7419
7437
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
7420
7438
  return item;
7421
7439
  });
@@ -7426,7 +7444,7 @@ function inArrayRow(pass, incoming, stored) {
7426
7444
  const twin = stored[key];
7427
7445
  if (isSecretMarker(twin)) {
7428
7446
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
7429
- } else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
7447
+ } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
7430
7448
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
7431
7449
  }
7432
7450
  return out;
@@ -7434,7 +7452,7 @@ function inArrayRow(pass, incoming, stored) {
7434
7452
  async function walk(pass, incoming, stored) {
7435
7453
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
7436
7454
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
7437
- if (!isRecord(incoming) || !isRecord(stored)) return incoming;
7455
+ if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
7438
7456
  const out = { ...incoming };
7439
7457
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
7440
7458
  return out;
@@ -7465,7 +7483,7 @@ async function restoreUnchangedSecrets(input) {
7465
7483
  function isJsonEqual(a, b) {
7466
7484
  if (Object.is(a, b)) return true;
7467
7485
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
7468
- if (isRecord(a) && isRecord(b)) {
7486
+ if (isRecord$3(a) && isRecord$3(b)) {
7469
7487
  const keys = Object.keys(a);
7470
7488
  if (keys.length !== Object.keys(b).length) return false;
7471
7489
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -7489,7 +7507,7 @@ function markerKeysOf(blob, owner) {
7489
7507
  }
7490
7508
  function nodeFromStored(value, owner) {
7491
7509
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
7492
- if (!isRecord(value)) return null;
7510
+ if (!isRecord$3(value)) return null;
7493
7511
  const children = /* @__PURE__ */ new Map();
7494
7512
  for (const [key, child] of Object.entries(value)) {
7495
7513
  const node = nodeFromStored(child, owner);
@@ -7622,7 +7640,6 @@ function createHandle(raw, opts) {
7622
7640
  const writeAddon = (patch) => write("addon", opts.addonTree(), void 0, patch, () => readStoredAddonBlob(raw), (p) => raw.writeAddonStore(p));
7623
7641
  const readAddonStoreResult = raw.readAddonStoreResult;
7624
7642
  const readAddonStoreKeyResult = raw.readAddonStoreKeyResult;
7625
- const readDeviceStoreBatch = raw.readDeviceStoreBatch;
7626
7643
  const overrides = {
7627
7644
  readAddonStore: async () => resolveRead("addon", await raw.readAddonStore()),
7628
7645
  ...readAddonStoreResult !== void 0 ? { readAddonStoreResult: async () => {
@@ -7646,12 +7663,12 @@ function createHandle(raw, opts) {
7646
7663
  };
7647
7664
  } } : {},
7648
7665
  readDeviceStore: async (deviceId) => resolveRead(`device:${deviceId}`, await raw.readDeviceStore(deviceId)),
7649
- ...readDeviceStoreBatch !== void 0 ? { readDeviceStoreBatch: async (deviceIds) => {
7650
- const rows = await readDeviceStoreBatch.call(raw, deviceIds);
7666
+ readDeviceStoreBatch: async (deviceIds) => {
7667
+ const rows = await raw.readDeviceStoreBatch(deviceIds);
7651
7668
  const out = /* @__PURE__ */ new Map();
7652
7669
  for (const [deviceId, blob] of rows) out.set(deviceId, await resolveRead(`device:${deviceId}`, blob));
7653
7670
  return out;
7654
- } } : {},
7671
+ },
7655
7672
  writeAddonStore: async (patch) => {
7656
7673
  await writeAddon(patch);
7657
7674
  },
@@ -8278,7 +8295,7 @@ var BaseAddon = class {
8278
8295
  if (!ctx) return;
8279
8296
  const addonId = ctx.id;
8280
8297
  setImmediate(() => {
8281
- ctx.api.addons?.restartAddon?.mutate({ addonId }).then(() => {
8298
+ ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
8282
8299
  ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
8283
8300
  }).catch((err) => {
8284
8301
  ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
@@ -8478,7 +8495,7 @@ var BaseAddon = class {
8478
8495
  return this._addonSecretTree;
8479
8496
  }
8480
8497
  deviceSecretTree() {
8481
- this._deviceSecretTree ??= secretTreeFromSchema(this.deviceSettingsSchema());
8498
+ this._deviceSecretTree ??= mergeSecretStatePaths(secretTreeFromSchema(this.deviceSettingsSchema()), this.secretStatePaths);
8482
8499
  return this._deviceSecretTree;
8483
8500
  }
8484
8501
  /**
@@ -8554,42 +8571,135 @@ var BaseAddon = class {
8554
8571
  this[timerOf] = timer;
8555
8572
  }
8556
8573
  /**
8557
- * Wrap `ctx.settings.readAddonStore()` with a short retry budget so a
8558
- * transient settings-store outage (mid-restart of sqlite-settings, tsx-watch
8559
- * swap, or any race where the SqliteSettingsBackend is between shutdown and
8560
- * re-initialize) doesn't propagate up into `initialize()` and leave the
8574
+ * Wrap `ctx.settings.readAddonStore()` with a retry budget so a transient
8575
+ * settings-store outage doesn't propagate up into `initialize()` and leave the
8561
8576
  * addon permanently broken.
8562
8577
  *
8563
- * Retry only the two known infra fingerprints. Anything else propagates so
8564
- * real bugs surface immediately. After the budget expires we fall back to
8565
- * `{}` (defaults) — the addon's first successful patch will rehydrate.
8578
+ * Two kinds of outage, two budgets:
8579
+ * - the store's own restart fingerprints (`SqliteSettingsBackend not
8580
+ * initialized`, `provider not available`): a short budget, then the addon
8581
+ * falls back to `{}` (defaults) - its first successful patch rehydrates;
8582
+ * - a TRANSPORT failure (the hub is restarting while this runner boots:
8583
+ * `discovery deadline exceeded`, `parent could not route`, a refused or
8584
+ * timed-out connection). Since D870 a runner's settings read THROWS instead
8585
+ * of answering `{}`, so without a budget a hub restart ends in a respawn
8586
+ * loop. A long, bounded budget; only after it the error propagates - the
8587
+ * addon never runs on defaults for a store it could not ask.
8588
+ * Anything else propagates immediately so real bugs surface.
8566
8589
  */
8567
8590
  async readAddonStoreWithRetry() {
8568
8591
  const settings = this.rawSettings();
8569
8592
  if (!settings) return {};
8570
- const delaysMs = [
8571
- 150,
8572
- 350,
8573
- 600,
8574
- 900
8575
- ];
8576
8593
  let lastErr;
8577
- for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
8594
+ for (let attempt = 0;; attempt++) try {
8578
8595
  const stored = await settings.readAddonStore() ?? {};
8579
8596
  this.settingsStoreReady = true;
8580
8597
  return stored;
8581
8598
  } catch (err) {
8582
8599
  lastErr = err;
8583
- const msg = err instanceof Error ? err.message : String(err);
8584
- if (!(msg.includes("SqliteSettingsBackend not initialized") || msg.includes("provider not available"))) throw err;
8585
- if (attempt === delaysMs.length) break;
8586
- await new Promise((r) => setTimeout(r, delaysMs[attempt]));
8600
+ const kind = classifyStoreError(err);
8601
+ if (kind === "permanent") throw err;
8602
+ const delay = (kind === "transport" ? TRANSPORT_RETRY_DELAYS_MS : RESTART_RETRY_DELAYS_MS)[attempt];
8603
+ if (delay === void 0) {
8604
+ if (kind === "transport") throw err;
8605
+ break;
8606
+ }
8607
+ await new Promise((r) => setTimeout(r, delay));
8587
8608
  }
8588
8609
  this.settingsStoreReady = false;
8589
8610
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
8590
8611
  return {};
8591
8612
  }
8592
8613
  };
8614
+ /** The settings store's own restart fingerprints. */
8615
+ var RESTART_RETRY_DELAYS_MS = [
8616
+ 150,
8617
+ 350,
8618
+ 600,
8619
+ 900
8620
+ ];
8621
+ /** A hub restarting under a booting runner: ~100 s in total. */
8622
+ var TRANSPORT_RETRY_DELAYS_MS = [
8623
+ 150,
8624
+ 350,
8625
+ 600,
8626
+ 900,
8627
+ 2e3,
8628
+ 5e3,
8629
+ 1e4,
8630
+ 2e4,
8631
+ 3e4,
8632
+ 3e4
8633
+ ];
8634
+ var RESTART_FINGERPRINTS = ["SqliteSettingsBackend not initialized", "provider not available"];
8635
+ /** Node / socket error codes of a connection that did not happen or broke. */
8636
+ var TRANSPORT_CODES = new Set([
8637
+ "ECONNREFUSED",
8638
+ "ECONNRESET",
8639
+ "ETIMEDOUT",
8640
+ "EPIPE",
8641
+ "EHOSTUNREACH",
8642
+ "ENETUNREACH"
8643
+ ]);
8644
+ /** tRPC error codes that mean "the other side is not answering now", not "your call is wrong". */
8645
+ var UNAVAILABLE_TRPC_CODES = new Set([
8646
+ "TIMEOUT",
8647
+ "SERVICE_UNAVAILABLE",
8648
+ "BAD_GATEWAY",
8649
+ "GATEWAY_TIMEOUT"
8650
+ ]);
8651
+ /** The exact phrases OUR transport raises when it cannot reach the hub. */
8652
+ var TRANSPORT_PHRASES = [
8653
+ "discovery deadline exceeded",
8654
+ "parent could not route child unowned cap call",
8655
+ "UDS request timed out after",
8656
+ "channel closed"
8657
+ ];
8658
+ /** Moleculer error `type`s of a call that could not be served right now. */
8659
+ var MOLECULER_TRANSIENT_TYPES = new Set([
8660
+ "REQUEST_TIMEOUT",
8661
+ "SERVICE_NOT_FOUND",
8662
+ "SERVICE_NOT_AVAILABLE",
8663
+ "REQUEST_REJECTED",
8664
+ "BROKER_DISCONNECTED"
8665
+ ]);
8666
+ function stringProp(value, key) {
8667
+ if (typeof value !== "object" || value === null) return void 0;
8668
+ const found = Reflect.get(value, key);
8669
+ return typeof found === "string" ? found : void 0;
8670
+ }
8671
+ /** The code an error carries: its own, its cause's, or a tRPC `data.code`. */
8672
+ function errorCode(err) {
8673
+ const out = {};
8674
+ const cause = typeof err === "object" && err !== null ? Reflect.get(err, "cause") : void 0;
8675
+ const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
8676
+ const node = stringProp(err, "code") ?? stringProp(cause, "code");
8677
+ if (node !== void 0) out.node = node;
8678
+ const trpc = stringProp(data, "code");
8679
+ if (trpc !== void 0) out.trpc = trpc;
8680
+ return out;
8681
+ }
8682
+ /**
8683
+ * Is a settings read failure worth retrying, and with which budget? Only
8684
+ * EXPLICIT signals count: a socket error code, a tRPC "unavailable" code, or
8685
+ * one of the exact phrases our own transport raises. A message that merely
8686
+ * contains "timed out" or "unreachable" is not evidence of anything, and
8687
+ * `settings store not wired` is a wiring bug that retrying cannot fix.
8688
+ */
8689
+ function classifyStoreError(err) {
8690
+ const message = err instanceof Error ? err.message : String(err);
8691
+ if (RESTART_FINGERPRINTS.some((f) => message.includes(f))) return "restart";
8692
+ const code = errorCode(err);
8693
+ if (code.node !== void 0 && TRANSPORT_CODES.has(code.node)) return "transport";
8694
+ if (code.trpc !== void 0 && UNAVAILABLE_TRPC_CODES.has(code.trpc)) return "transport";
8695
+ if (typeof err === "object" && err !== null) {
8696
+ if (Reflect.get(err, "retryable") === true) return "transport";
8697
+ const type = stringProp(err, "type");
8698
+ if (type !== void 0 && MOLECULER_TRANSIENT_TYPES.has(type)) return "transport";
8699
+ }
8700
+ if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
8701
+ return "permanent";
8702
+ }
8593
8703
  /**
8594
8704
  * Collect the keys of every field marked `perNode: true`, recursing into
8595
8705
  * layout containers (`group` fields and `sub-tabs` tabs) the same way
@@ -8679,6 +8789,156 @@ var PeerBytesTicketSchema = object({
8679
8789
  */
8680
8790
  declaredBytes: number().int().nonnegative().nullable()
8681
8791
  });
8792
+ /** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
8793
+ /** The files a kind may live in. `history` is device-history's (D850), never records. */
8794
+ var RECORD_DATABASES = ["settings", "events"];
8795
+ /** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
8796
+ var RECORD_CLASSES = [
8797
+ "config",
8798
+ "ledger",
8799
+ "audit",
8800
+ "mirror",
8801
+ "ephemeral"
8802
+ ];
8803
+ var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
8804
+ var RECORD_MAX_DATA_BYTES = 1024 * 1024;
8805
+ var RECORD_BATCH_MAX = 1e3;
8806
+ var RECORD_QUERY_MAX = 1e3;
8807
+ function defOf(schema) {
8808
+ const zodBag = Reflect.get(schema, "_zod");
8809
+ if (typeof zodBag !== "object" || zodBag === null) return {};
8810
+ const def = Reflect.get(zodBag, "def");
8811
+ if (typeof def !== "object" || def === null) return {};
8812
+ return def;
8813
+ }
8814
+ function declaredHere(schema) {
8815
+ return globalRegistry.get(schema)?.secret === true;
8816
+ }
8817
+ /** Wrapper kinds whose `innerType` is the field itself. */
8818
+ var WRAPPERS = new Set([
8819
+ "optional",
8820
+ "nullable",
8821
+ "default",
8822
+ "prefault",
8823
+ "catch",
8824
+ "readonly",
8825
+ "nonoptional"
8826
+ ]);
8827
+ /**
8828
+ * The schema layers that make up ONE field: the schema itself and every
8829
+ * wrapper below it (optional / default / nullable / readonly / catch), plus
8830
+ * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8831
+ * `.transform` on `in`).
8832
+ */
8833
+ function layersOf(schema) {
8834
+ const out = [];
8835
+ const queue = [schema];
8836
+ while (queue.length > 0) {
8837
+ const s = queue.shift();
8838
+ if (!s || out.includes(s)) continue;
8839
+ out.push(s);
8840
+ const def = defOf(s);
8841
+ if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8842
+ if (def.type === "pipe") {
8843
+ if (def.in) queue.push(def.in);
8844
+ if (def.out) queue.push(def.out);
8845
+ }
8846
+ }
8847
+ return out;
8848
+ }
8849
+ /** True when any layer of this field declares `.meta({ secret: true })`. */
8850
+ function isZodSecret(schema) {
8851
+ return layersOf(schema).some(declaredHere);
8852
+ }
8853
+ /**
8854
+ * Every declared secret path in a config schema: dotted keys, `[]` for "each
8855
+ * element of this array" (`connection.password`, `rows[].token`). A declared
8856
+ * object or array is reported as one path and not descended into — everything
8857
+ * under it is secret.
8858
+ */
8859
+ function collectZodSecretPaths(schema, prefix = "") {
8860
+ if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8861
+ const paths = [];
8862
+ for (const layer of layersOf(schema)) {
8863
+ const def = defOf(layer);
8864
+ if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8865
+ else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8866
+ else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8867
+ else if (def.type === "intersection") {
8868
+ if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8869
+ if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8870
+ }
8871
+ }
8872
+ return [...new Set(paths)];
8873
+ }
8874
+ /**
8875
+ * Record kinds (D881): the declaration an addon makes of one kind of fact, the
8876
+ * Zod row schema that describes it, and the helper that turns the two into the
8877
+ * JSON the engine stores.
8878
+ *
8879
+ * A kind is declared ONCE, next to the code that owns it, and the engine's
8880
+ * reconciler creates its indexes - nothing creates DDL at runtime from a write.
8881
+ * Everything the generic machinery needs (secret fields, the entry descriptor)
8882
+ * is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
8883
+ * never a field name (D879).
8884
+ */
8885
+ /** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
8886
+ var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
8887
+ var RecordIndexSchema = object({
8888
+ name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
8889
+ fields: array(RecordFieldPathSchema).min(1).max(4),
8890
+ unique: boolean().optional()
8891
+ }).strict();
8892
+ var RecordRetentionSchema = union([
8893
+ object({
8894
+ ttlMs: number().int().positive(),
8895
+ from: _enum(["at", "write"])
8896
+ }).strict(),
8897
+ object({
8898
+ maxRows: number().int().positive().optional(),
8899
+ maxRowsPerDevice: number().int().positive().optional()
8900
+ }).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
8901
+ object({
8902
+ owner: string().min(1),
8903
+ reason: string().min(1)
8904
+ }).strict(),
8905
+ object({ none: string().min(1) }).strict()
8906
+ ]);
8907
+ /** The descriptor a generic entries UI reads (D881 "generic entries"). */
8908
+ var EntryDescriptorSchema = object({
8909
+ title: string().min(1),
8910
+ /** The record body field shown as the entry's name. */
8911
+ nameField: string().min(1),
8912
+ /** JSON Schema of the entry body; `secret: true` marks a password field. */
8913
+ fields: record(string(), unknown())
8914
+ }).strict();
8915
+ /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8916
+ var RecordKindDeclarationSchema = object({
8917
+ database: _enum(RECORD_DATABASES).default("settings"),
8918
+ class: _enum(RECORD_CLASSES),
8919
+ writeTrigger: string().min(1),
8920
+ device: _enum([
8921
+ "required",
8922
+ "optional",
8923
+ "none"
8924
+ ]).default("none"),
8925
+ at: _enum(["required", "none"]).default("none"),
8926
+ indexes: array(RecordIndexSchema).max(8).default([]),
8927
+ retention: RecordRetentionSchema,
8928
+ deviceRemoval: _enum(["delete", "none"]).default("none"),
8929
+ maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
8930
+ /** Derived from the Zod schema; never written by hand. */
8931
+ secretPaths: array(string().min(1)).default([]),
8932
+ /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8933
+ secretArrayKeys: record(string(), string()).default({}),
8934
+ /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8935
+ adoptsFrom: string().min(1).optional(),
8936
+ /** Kinds that must agree through `transact` sit in one file under one family name. */
8937
+ transactFamily: string().min(1).optional(),
8938
+ entry: EntryDescriptorSchema.optional()
8939
+ }).strict();
8940
+ /** The kind names: lower-case, dash separated, short enough for an index name. */
8941
+ var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
8682
8942
  /** Shared Zod schemas used across streaming capabilities. */
8683
8943
  var CamProfileSchema = _enum([
8684
8944
  "high",
@@ -9143,75 +9403,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
9143
9403
  kind: "mutation",
9144
9404
  auth: "admin"
9145
9405
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
9146
- function defOf(schema) {
9147
- return schema._zod?.def ?? {};
9148
- }
9149
- function declaredHere(schema) {
9150
- return globalRegistry.get(schema)?.secret === true;
9151
- }
9152
- /** Wrapper kinds whose `innerType` is the field itself. */
9153
- var WRAPPERS = new Set([
9154
- "optional",
9155
- "nullable",
9156
- "default",
9157
- "prefault",
9158
- "catch",
9159
- "readonly",
9160
- "nonoptional"
9161
- ]);
9162
- /**
9163
- * The schema layers that make up ONE field: the schema itself and every
9164
- * wrapper below it (optional / default / nullable / readonly / catch), plus
9165
- * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
9166
- * `.transform` on `in`).
9167
- */
9168
- function layersOf(schema) {
9169
- const out = [];
9170
- const queue = [schema];
9171
- while (queue.length > 0) {
9172
- const s = queue.shift();
9173
- if (!s || out.includes(s)) continue;
9174
- out.push(s);
9175
- const def = defOf(s);
9176
- if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
9177
- if (def.type === "pipe") {
9178
- if (def.in) queue.push(def.in);
9179
- if (def.out) queue.push(def.out);
9180
- }
9181
- }
9182
- return out;
9183
- }
9184
- /** True when any layer of this field declares `.meta({ secret: true })`. */
9185
- function isZodSecret(schema) {
9186
- return layersOf(schema).some(declaredHere);
9187
- }
9188
- /**
9189
- * Every declared secret path in a config schema: dotted keys, `[]` for "each
9190
- * element of this array" (`connection.password`, `rows[].token`). A declared
9191
- * object or array is reported as one path and not descended into — everything
9192
- * under it is secret.
9193
- */
9194
- function collectZodSecretPaths(schema, prefix = "") {
9195
- if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
9196
- const paths = [];
9197
- for (const layer of layersOf(schema)) {
9198
- const def = defOf(layer);
9199
- if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
9200
- else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
9201
- else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
9202
- else if (def.type === "intersection") {
9203
- if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
9204
- if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
9205
- }
9206
- }
9207
- return [...new Set(paths)];
9208
- }
9209
9406
  object({
9210
9407
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
9211
9408
  params: record(string(), union([string(), number()])).optional()
9212
9409
  });
9213
9410
  //#endregion
9214
- //#region ../types/dist/err-msg-DLerKiVO.mjs
9411
+ //#region ../types/dist/err-msg-BXKzRBwg.mjs
9215
9412
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
9216
9413
  DeviceType["Camera"] = "camera";
9217
9414
  DeviceType["Hub"] = "hub";
@@ -9303,6 +9500,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
9303
9500
  * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
9304
9501
  * integrations sharing the same food/desiccant/hopper surface. */
9305
9502
  DeviceType["PetFeeder"] = "pet-feeder";
9503
+ /** Built-in dishwasher — program lifecycle, door / remote-start gates,
9504
+ * salt and rinse-aid levels. Installed with the `dishwasher` cap.
9505
+ * Sources: native Bosch Home Connect, reusable by similar integrations. */
9506
+ DeviceType["Dishwasher"] = "dishwasher";
9306
9507
  return DeviceType;
9307
9508
  }({});
9308
9509
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -9480,6 +9681,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
9480
9681
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
9481
9682
  * real Switch device for UI rendering / export adapters. */
9482
9683
  DeviceRole["BinaryHelper"] = "binary-helper";
9684
+ /** A smart plug: a `switch` whose source says it is an outlet (HA
9685
+ * `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
9686
+ DeviceRole["Outlet"] = "outlet";
9483
9687
  /** Generic motion / occupancy / moving event source. Distinct from
9484
9688
  * the camera accessory PirSensor role: that one is a camera child;
9485
9689
  * this is a standalone HA / 3rd-party motion sensor. */
@@ -9557,7 +9761,7 @@ function errMsg(err) {
9557
9761
  return String(err);
9558
9762
  }
9559
9763
  //#endregion
9560
- //#region ../types/dist/composition-EQ9Ok0Ee.mjs
9764
+ //#region ../types/dist/composition-CB6PMT9p.mjs
9561
9765
  /**
9562
9766
  * The ffmpeg build every CamStack node downloads, per platform and arch.
9563
9767
  *
@@ -12761,11 +12965,10 @@ var ClipModelMetaSchema = object({
12761
12965
  /**
12762
12966
  * The `vector-store` index this model's vectors live in. ONE feature space
12763
12967
  * per index: two models share an index only when their vectors are ranked
12764
- * against each other, which for CLIP means never across families. MobileCLIP
12765
- * S1 and S2 share `object-clip` for history (separated by the row's
12766
- * `modelId`); any other model gets its own.
12968
+ * against each other, which for CLIP means never across families. Every
12969
+ * model gets its own.
12767
12970
  */
12768
- vectorIndex: string().regex(/^object-clip(-[a-z0-9][a-z0-9-]*)?$/),
12971
+ vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
12769
12972
  /**
12770
12973
  * The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
12771
12974
  * must be unique per tokenizer: every model's siblings land in ONE flat
@@ -13944,8 +14147,13 @@ var AlertSeveritySchema = _enum([
13944
14147
  "info",
13945
14148
  "success",
13946
14149
  "warning",
13947
- "error"
14150
+ "error",
14151
+ "critical"
13948
14152
  ]);
14153
+ var AlertActionSchema = object({
14154
+ label: string(),
14155
+ href: string().optional()
14156
+ });
13949
14157
  var AlertStatusSchema = _enum([
13950
14158
  "active",
13951
14159
  "in-progress",
@@ -13963,6 +14171,7 @@ var AlertSchema = object({
13963
14171
  severity: AlertSeveritySchema,
13964
14172
  title: string(),
13965
14173
  message: string(),
14174
+ action: AlertActionSchema.optional(),
13966
14175
  status: AlertStatusSchema,
13967
14176
  progress: number().optional(),
13968
14177
  read: boolean(),
@@ -16498,6 +16707,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
16498
16707
  keyField: string()
16499
16708
  }).optional()
16500
16709
  })) });
16710
+ /**
16711
+ * The report of a one-shot "move this owner's plaintext secrets into the
16712
+ * keychain" run (D878). COUNTS only - never a value, never a ref.
16713
+ *
16714
+ * The owner runs it on its own rows, through its own write path; an operator
16715
+ * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
16716
+ * Dry run (`apply: false`) reports what WOULD move and changes nothing.
16717
+ */
16718
+ var RawSecretMigrationInputSchema = object({
16719
+ /** `false` (the default of the script) = report only. */
16720
+ apply: boolean() });
16721
+ var RawSecretMigrationReportSchema = object({
16722
+ apply: boolean(),
16723
+ /** Rows that can carry a secret (a profile, an enrolment). */
16724
+ rows: number().int(),
16725
+ /** Rows whose secret was plaintext when the run started. */
16726
+ raw: number().int(),
16727
+ /** Rows that already held a keychain marker when the run started. */
16728
+ markers: number().int(),
16729
+ /** Plaintext rows moved by THIS run (always 0 on a dry run). */
16730
+ migrated: number().int(),
16731
+ /** Plaintext rows left in place because the move or its read-back failed. */
16732
+ failed: number().int(),
16733
+ /** After the run: rows still holding plaintext. */
16734
+ remainingRaw: number().int(),
16735
+ /** After the run: markers the keychain could not resolve right now. */
16736
+ unresolvedMarkers: number().int(),
16737
+ /**
16738
+ * A second, redundant copy of the secrets' rows that the run found (and, on
16739
+ * `apply`, deleted after verifying the first). Owners with a single copy omit it.
16740
+ */
16741
+ redundantCopies: number().int().optional(),
16742
+ /** True when nothing is raw and every marker resolves. */
16743
+ verified: boolean()
16744
+ });
16501
16745
  /** Where a block runs. The operator chooses — a block driving a device on an
16502
16746
  * agent is the reason placement is not fixed to the hub. */
16503
16747
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -16724,6 +16968,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
16724
16968
  }), SettingsUpdateResultSchema, {
16725
16969
  kind: "mutation",
16726
16970
  auth: "admin"
16971
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
16972
+ kind: "mutation",
16973
+ auth: "admin"
16727
16974
  }), method(object({}), object({ libs: array(object({
16728
16975
  filePath: string(),
16729
16976
  content: string()
@@ -16987,6 +17234,347 @@ id: union([string(), number()]) }), {
16987
17234
  auth: "admin"
16988
17235
  });
16989
17236
  /**
17237
+ * records - an addon's own facts and documents (D881): ledgers, audit rows,
17238
+ * config documents, mirrors. The third storage API next to `ctx.settings`
17239
+ * (operator intent, D870) and device-history (numbers over time, D850).
17240
+ *
17241
+ * Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
17242
+ * crossed a process and stated by a hub in-process caller (`ctx.records` does
17243
+ * that with the addon id closed over). It is deliberately NOT in any input
17244
+ * schema, so a session can never supply it, and a call with no stamp is refused
17245
+ * `records/no-caller`. A kind is readable and writable only by its owner; other
17246
+ * addons go through the owner's capability.
17247
+ *
17248
+ * Every read is three-way: a row, `null`, or the call THROWS. A failed read is
17249
+ * never `[]`. Secret fields are never on the wire: a read shows the
17250
+ * redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
17251
+ * resolves itself, and a write may carry only a keychain marker bound to the
17252
+ * row's own ref.
17253
+ *
17254
+ * Internal: addons reach it through `ctx.records`, never directly.
17255
+ */
17256
+ var RecordIdSchema = string().min(1).max(256);
17257
+ /** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
17258
+ var RecordBodySchema = record(string(), unknown());
17259
+ var RecordInputSchema = object({
17260
+ id: RecordIdSchema,
17261
+ /** The device this row belongs to (D865 removal, per-device reads). */
17262
+ deviceId: number().int().optional(),
17263
+ /** The domain clock, ms: observed / created / opened. */
17264
+ at: number().int().optional(),
17265
+ /** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
17266
+ expiresAt: number().int().optional(),
17267
+ data: RecordBodySchema
17268
+ });
17269
+ var RecordViewSchema = object({
17270
+ id: string(),
17271
+ deviceId: number().int().nullable(),
17272
+ at: number().nullable(),
17273
+ expiresAt: number().nullable(),
17274
+ rev: number().int(),
17275
+ updatedAt: number(),
17276
+ data: RecordBodySchema
17277
+ });
17278
+ /** Declared index fields only. Anything else does not compile, by design. */
17279
+ var RecordWhereSchema = record(RecordFieldPathSchema, union([
17280
+ string(),
17281
+ number(),
17282
+ boolean(),
17283
+ object({ in: array(union([
17284
+ string(),
17285
+ number(),
17286
+ boolean()
17287
+ ])).min(1).max(RECORD_BATCH_MAX) }),
17288
+ object({
17289
+ gt: union([string(), number()]).optional(),
17290
+ gte: union([string(), number()]).optional(),
17291
+ lt: union([string(), number()]).optional(),
17292
+ lte: union([string(), number()]).optional()
17293
+ }).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
17294
+ ]));
17295
+ var KindShape = { kind: RecordKindNameSchema };
17296
+ var TimeWindowShape = {
17297
+ deviceId: number().int().optional(),
17298
+ atFrom: number().optional(),
17299
+ atTo: number().optional()
17300
+ };
17301
+ var RecordQueryInputSchema = object({
17302
+ ...KindShape,
17303
+ ...TimeWindowShape,
17304
+ where: RecordWhereSchema.optional(),
17305
+ /** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
17306
+ order: _enum(["at", "id"]).optional(),
17307
+ desc: boolean().optional(),
17308
+ limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
17309
+ /** Opaque keyset cursor from a previous answer. There is no offset. */
17310
+ cursor: string().min(1).optional()
17311
+ });
17312
+ var RecordQueryResultSchema = object({
17313
+ records: array(RecordViewSchema),
17314
+ nextCursor: string().nullable()
17315
+ });
17316
+ var RecordKindStateSchema = _enum([
17317
+ "created",
17318
+ "unchanged",
17319
+ "updated"
17320
+ ]);
17321
+ var DeclareKindResultSchema = object({
17322
+ kindId: number().int(),
17323
+ state: RecordKindStateSchema,
17324
+ createdIndexes: array(string()),
17325
+ /** The boot guard: the kind is empty while its legacy table still holds rows. */
17326
+ adoptionPending: object({
17327
+ legacyTable: string(),
17328
+ legacyRows: number().int()
17329
+ }).nullable()
17330
+ });
17331
+ /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17332
+ var SecretRefsList = array(string());
17333
+ var RecordSecretRefsSchema = record(string(), record(string(), string()));
17334
+ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
17335
+ kind: "mutation",
17336
+ auth: "admin"
17337
+ }), method(object({
17338
+ ...KindShape,
17339
+ id: RecordIdSchema
17340
+ }), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
17341
+ ...KindShape,
17342
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17343
+ }), array(RecordViewSchema), { auth: "admin" }), method(object({
17344
+ ...KindShape,
17345
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17346
+ }), RecordSecretRefsSchema, { auth: "admin" }), method(object({
17347
+ ...KindShape,
17348
+ record: RecordInputSchema,
17349
+ /** Compare-and-set. `0` means "the row must not exist". */
17350
+ ifRev: number().int().min(0).optional()
17351
+ }), object({
17352
+ rev: number().int(),
17353
+ releasedRefs: SecretRefsList
17354
+ }), {
17355
+ kind: "mutation",
17356
+ auth: "admin"
17357
+ }), method(object({
17358
+ ...KindShape,
17359
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
17360
+ }), object({
17361
+ count: number().int(),
17362
+ releasedRefs: SecretRefsList
17363
+ }), {
17364
+ kind: "mutation",
17365
+ auth: "admin"
17366
+ }), method(object({
17367
+ ...KindShape,
17368
+ id: RecordIdSchema,
17369
+ data: RecordBodySchema,
17370
+ at: number().int().nullable().optional(),
17371
+ expiresAt: number().int().nullable().optional(),
17372
+ ifRev: number().int().min(1).optional()
17373
+ }), object({
17374
+ rev: number().int(),
17375
+ releasedRefs: SecretRefsList
17376
+ }), {
17377
+ kind: "mutation",
17378
+ auth: "admin"
17379
+ }), method(object({
17380
+ ...KindShape,
17381
+ id: RecordIdSchema
17382
+ }), object({
17383
+ deleted: boolean(),
17384
+ secretRefs: SecretRefsList
17385
+ }), {
17386
+ kind: "mutation",
17387
+ auth: "admin"
17388
+ }), method(object({
17389
+ ...KindShape,
17390
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17391
+ }), object({
17392
+ deleted: number().int(),
17393
+ secretRefs: SecretRefsList
17394
+ }), {
17395
+ kind: "mutation",
17396
+ auth: "admin"
17397
+ }), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
17398
+ ...KindShape,
17399
+ ...TimeWindowShape,
17400
+ where: RecordWhereSchema.optional()
17401
+ }), object({ count: number().int() }), { auth: "admin" }), method(object({
17402
+ ...KindShape,
17403
+ deviceId: number().int().optional(),
17404
+ from: number(),
17405
+ to: number(),
17406
+ bucketMs: number().int().positive()
17407
+ }), object({ buckets: array(object({
17408
+ bucketStart: number(),
17409
+ count: number().int()
17410
+ })) }), { auth: "admin" }), method(object({
17411
+ ...KindShape,
17412
+ op: _enum([
17413
+ "sum",
17414
+ "min",
17415
+ "max",
17416
+ "count"
17417
+ ]),
17418
+ field: RecordFieldPathSchema.optional(),
17419
+ groupBy: RecordFieldPathSchema.optional(),
17420
+ where: RecordWhereSchema.optional()
17421
+ }), object({ rows: array(object({
17422
+ group: union([
17423
+ string(),
17424
+ number(),
17425
+ _null()
17426
+ ]),
17427
+ value: number().nullable()
17428
+ })) }), { auth: "admin" }), method(object({
17429
+ ...KindShape,
17430
+ deviceId: number().int().optional(),
17431
+ atBefore: number().optional(),
17432
+ where: RecordWhereSchema.optional()
17433
+ }), object({
17434
+ deleted: number().int(),
17435
+ secretRefs: SecretRefsList
17436
+ }), {
17437
+ kind: "mutation",
17438
+ auth: "admin"
17439
+ }), method(object({
17440
+ deviceId: number().int(),
17441
+ kinds: array(RecordKindNameSchema).optional()
17442
+ }), object({
17443
+ deleted: record(string(), number().int()),
17444
+ secretRefs: SecretRefsList
17445
+ }), {
17446
+ kind: "mutation",
17447
+ auth: "admin"
17448
+ }), method(object(KindShape), object({ id: number().int() }), {
17449
+ kind: "mutation",
17450
+ auth: "admin"
17451
+ });
17452
+ /** One table of the settings database. */
17453
+ var StorageTableSchema = object({
17454
+ /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
17455
+ name: string(),
17456
+ /** The owner prefix of a scoped name (`recorder` for `recorder:addon-settings`), else null. */
17457
+ owner: string().nullable(),
17458
+ rows: number().int().nonnegative(),
17459
+ /** Bytes the table's pages occupy (`dbstat`); null when the engine cannot measure. */
17460
+ bytes: number().int().nonnegative().nullable(),
17461
+ /** Declared by an addon since this engine process started (a running addon claims it). */
17462
+ declaredThisBoot: boolean()
17463
+ });
17464
+ /** One declared record kind (D881) as System -> Data shows it. */
17465
+ var StorageKindSchema = object({
17466
+ owner: string(),
17467
+ kind: string(),
17468
+ database: _enum(["settings", "events"]),
17469
+ class: string(),
17470
+ state: _enum([
17471
+ "declared",
17472
+ "orphaned",
17473
+ "dropped"
17474
+ ]),
17475
+ /** `null` when the caller asked for no counts (`counts: false`). */
17476
+ rows: number().int().nonnegative().nullable(),
17477
+ /** Rows x the average size of a sample; null for an empty kind. */
17478
+ bytesEstimate: number().int().nonnegative().nullable(),
17479
+ writeTrigger: string(),
17480
+ retention: RecordRetentionSchema,
17481
+ /** `true` when the kind is an entry kind (the generic entries UI lists it). */
17482
+ entry: boolean(),
17483
+ /** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
17484
+ declaration: RecordKindDeclarationSchema
17485
+ });
17486
+ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
17487
+ collection: string().min(1),
17488
+ expectRows: number().int().nonnegative()
17489
+ }), object({
17490
+ dropped: literal(true),
17491
+ rows: number().int().nonnegative()
17492
+ }), {
17493
+ kind: "mutation",
17494
+ auth: "admin"
17495
+ }), method(object({
17496
+ owner: string().min(1).optional(),
17497
+ /** `false` skips the per-kind row count (a catalog read only). Default true. */
17498
+ counts: boolean().optional()
17499
+ }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17500
+ owner: string().min(1),
17501
+ kind: RecordKindNameSchema
17502
+ }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17503
+ owner: string().min(1),
17504
+ kind: RecordKindNameSchema,
17505
+ records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17506
+ /** The LAST batch: the copy is complete, the boot guard stops asking. */
17507
+ complete: boolean().optional()
17508
+ }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17509
+ kind: "mutation",
17510
+ auth: "admin"
17511
+ }), method(object({
17512
+ collection: string().min(1),
17513
+ cursor: string().optional(),
17514
+ limit: number().int().min(1).max(1e3).optional()
17515
+ }), object({
17516
+ rows: array(object({
17517
+ id: string(),
17518
+ data: record(string(), unknown())
17519
+ })),
17520
+ nextCursor: string().nullable()
17521
+ }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17522
+ /**
17523
+ * record-entries - the ONE admin surface for every list of user-created entries
17524
+ * (D881): notification targets, brokers, LLM profiles, anything an addon
17525
+ * declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
17526
+ *
17527
+ * The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
17528
+ * the entry body with `secret: true` on every credential field, so a password
17529
+ * field is derived from the schema and never from a name. `putEntry` takes the
17530
+ * redaction token for an untouched secret (the stored value is kept), a string
17531
+ * for a new one, and the clear instruction to remove one. A read never carries
17532
+ * a secret value, and a locked keychain refuses the write with
17533
+ * `records/secret-unavailable` instead of storing plaintext.
17534
+ *
17535
+ * Hub-only, served in-process (it acts for each entry's owner on the keychain).
17536
+ */
17537
+ var EntryKindInfoSchema = object({
17538
+ owner: string(),
17539
+ kind: RecordKindNameSchema,
17540
+ title: string(),
17541
+ nameField: string(),
17542
+ /** JSON Schema of the body; `secret: true` marks a password field. */
17543
+ fields: record(string(), unknown()),
17544
+ secretPaths: array(string()),
17545
+ rows: number().int().nonnegative()
17546
+ });
17547
+ var EntryViewSchema = object({
17548
+ id: RecordIdSchema,
17549
+ name: string(),
17550
+ rev: number().int(),
17551
+ updatedAt: number(),
17552
+ /** Secret fields hold the redaction token. */
17553
+ data: RecordBodySchema
17554
+ });
17555
+ var EntryAddress = {
17556
+ owner: string().min(1),
17557
+ kind: RecordKindNameSchema
17558
+ };
17559
+ method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
17560
+ ...EntryAddress,
17561
+ id: RecordIdSchema.optional(),
17562
+ data: RecordBodySchema,
17563
+ ifRev: number().int().min(1).optional()
17564
+ }), object({
17565
+ id: string(),
17566
+ rev: number().int()
17567
+ }), {
17568
+ kind: "mutation",
17569
+ auth: "admin"
17570
+ }), method(object({
17571
+ ...EntryAddress,
17572
+ id: RecordIdSchema
17573
+ }), object({ deleted: boolean() }), {
17574
+ kind: "mutation",
17575
+ auth: "admin"
17576
+ });
17577
+ /**
16990
17578
  * `keychain` — the hub's encrypted store of secret values (D787).
16991
17579
  *
16992
17580
  * Settings blobs never hold a secret: they hold a marker
@@ -17527,6 +18115,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
17527
18115
  kind: "mutation",
17528
18116
  auth: "admin",
17529
18117
  caller: "required"
18118
+ }), method(object({
18119
+ ref: string().min(1),
18120
+ value: string().min(1)
18121
+ }), object({
18122
+ ref: string(),
18123
+ version: number().int()
18124
+ }), {
18125
+ kind: "mutation",
18126
+ auth: "admin",
18127
+ caller: "required"
17530
18128
  }), method(object({ refs: array(string().min(1)).max(1e3) }), object({
17531
18129
  deleted: array(string()).readonly(),
17532
18130
  kept: array(object({
@@ -18048,7 +18646,11 @@ var deviceDiscoveryCapability = {
18048
18646
  };
18049
18647
  /**
18050
18648
  * `device-adoption` — generic discovery + adoption surface,
18051
- * system-scoped singleton. The de-HA-ified successor to `ha-discovery`:
18649
+ * system-scoped collection (one provider per integration addon), routed
18650
+ * by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
18651
+ * pin model as `connection-test`. The admin UI keeps using
18652
+ * `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
18653
+ * successor to `ha-discovery`:
18052
18654
  * keyed by `integrationId` (the addon resolves integrationId → broker
18053
18655
  * internally) rather than a connection-specific `brokerId`, and it
18054
18656
  * REUSES the shared `DiscoveredChildDevice` candidate type from
@@ -40301,6 +40903,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40301
40903
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
40302
40904
  kind: "mutation",
40303
40905
  auth: "admin"
40906
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
40907
+ kind: "mutation",
40908
+ auth: "admin"
40304
40909
  }), method(ProfileRefInputSchema, _void(), {
40305
40910
  kind: "mutation",
40306
40911
  auth: "admin"
@@ -50810,6 +51415,41 @@ var ServerRollbackInfoSchema = object({
50810
51415
  atMs: number(),
50811
51416
  reason: string()
50812
51417
  });
51418
+ /**
51419
+ * The runner boot check (D877): the runners this node PLANNED (hub: one per
51420
+ * `resolveRunnerId` over its forked addons; agent: the runners its process
51421
+ * service holds, because only the hub plans) against the states the process
51422
+ * service reports. Kept in memory, recomputed by the same one-shot check after
51423
+ * every boot, served on `getServerPackageStatus`.
51424
+ *
51425
+ * `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
51426
+ * refusal (an addon that said "I will not start, and here is why"), `missing` a
51427
+ * planned runner the process service has no entry for.
51428
+ */
51429
+ var RunnerRefusalSchema = object({
51430
+ runnerId: string(),
51431
+ addonIds: array(string()),
51432
+ reason: string()
51433
+ });
51434
+ var RunnerBootCheckSchema = object({
51435
+ checkedAtMs: number(),
51436
+ /** Runners planned for this node. */
51437
+ expected: number(),
51438
+ /** Planned runners whose process is `running`. */
51439
+ running: number(),
51440
+ failed: array(string()),
51441
+ refused: array(RunnerRefusalSchema),
51442
+ missing: array(string()),
51443
+ /**
51444
+ * Runners still on their way: `starting`, or `crashed` waiting on a backoff
51445
+ * respawn. The check is FINAL only when this is empty; until then nothing is
51446
+ * pushed and the verdict is re-evaluated on the next runner state change.
51447
+ * Optional for version skew (absent = settled).
51448
+ */
51449
+ pending: array(string()).optional(),
51450
+ /** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
51451
+ planKnown: boolean()
51452
+ });
50813
51453
  var ServerPackageStatusSchema = object({
50814
51454
  /** Root package name (`@camstack/server` on the hub). */
50815
51455
  packageName: string(),
@@ -50872,7 +51512,14 @@ var ServerPackageStatusSchema = object({
50872
51512
  * for version skew: an older provider's payload simply omits it, and an
50873
51513
  * absent wrapper is unknown — never `native`.
50874
51514
  */
50875
- wrapper: WrapperIdentitySchema.optional()
51515
+ wrapper: WrapperIdentitySchema.optional(),
51516
+ /**
51517
+ * What this node PLANNED to run against what its process service reports
51518
+ * (D877). Absent until the one-shot boot check has run (~60 s after boot) and
51519
+ * on a provider that predates it. Absent is "not checked yet", never "all
51520
+ * well": a consumer that needs the answer treats it as pending.
51521
+ */
51522
+ runners: RunnerBootCheckSchema.optional()
50876
51523
  });
50877
51524
  var ServerUpdateCheckResultSchema = object({
50878
51525
  packageName: string(),
@@ -50923,6 +51570,13 @@ var ServerUpdateOutcomeSchema = _enum([
50923
51570
  "refused",
50924
51571
  "failed"
50925
51572
  ]);
51573
+ /** One addon the pre-flight found the target version would refuse (D877). */
51574
+ var UpdateBlockerSchema = object({
51575
+ addonId: string(),
51576
+ reason: string(),
51577
+ /** What the operator does about it. */
51578
+ remedy: string()
51579
+ });
50926
51580
  var ServerUpdateActionResultSchema = object({
50927
51581
  accepted: boolean(),
50928
51582
  targetVersion: string().nullable(),
@@ -50940,14 +51594,27 @@ var ServerUpdateActionResultSchema = object({
50940
51594
  * The failure itself, verbatim enough to act on (the npm output for a
50941
51595
  * staging install). Non-null only for `failed`.
50942
51596
  */
50943
- error: string().nullable().optional()
51597
+ error: string().nullable().optional(),
51598
+ /**
51599
+ * The addons the target version would refuse to start on this node's live
51600
+ * store (D877), present when the pre-flight refused the update
51601
+ * (`reason: 'addon-would-refuse'`). Optional for version skew.
51602
+ */
51603
+ blockers: array(UpdateBlockerSchema).optional()
50944
51604
  });
50945
51605
  method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
50946
51606
  kind: "mutation",
50947
51607
  auth: "admin"
50948
- }), method(object({
50949
- /** Explicit target version; omitted = latest from the registry. */
50950
- version: string().optional() }), ServerUpdateActionResultSchema, {
51608
+ }), method(object({
51609
+ /** Explicit target version; omitted = latest from the registry. */
51610
+ version: string().optional(),
51611
+ /**
51612
+ * Apply even though the pre-flight (D877) found addons the target would
51613
+ * refuse to start. Off by default: those addons stay down until the
51614
+ * remedy is run, which is the incident this gate exists to prevent.
51615
+ */
51616
+ acknowledgeRefusals: boolean().optional()
51617
+ }), ServerUpdateActionResultSchema, {
50951
51618
  kind: "mutation",
50952
51619
  auth: "admin",
50953
51620
  timeoutMs: 16 * 6e4
@@ -53393,7 +54060,9 @@ var ManifestShapeSchema = object({
53393
54060
  var AddonProcessSchema = object({
53394
54061
  pid: number().optional(),
53395
54062
  mode: string(),
53396
- state: string()
54063
+ state: string(),
54064
+ /** Why the runner is `refused` (an addon's own words), when it is (D877). */
54065
+ reason: string().optional()
53397
54066
  });
53398
54067
  /**
53399
54068
  * Per-addon health snapshot from the kernel's AddonHealthMonitor.
@@ -54161,7 +54830,8 @@ var batteryCapability = {
54161
54830
  DeviceType.Button,
54162
54831
  DeviceType.Switch,
54163
54832
  DeviceType.PetFeeder,
54164
- DeviceType.Container
54833
+ DeviceType.Container,
54834
+ DeviceType.Thermostat
54165
54835
  ],
54166
54836
  methods: {
54167
54837
  /**
@@ -54782,6 +55452,12 @@ var ClimateControlStatusSchema = object({
54782
55452
  /** Horizontal louver swing on/off. Null when the device has no
54783
55453
  * horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
54784
55454
  swingHorizontal: boolean().nullable(),
55455
+ /** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
55456
+ minTemp: number().nullable().optional(),
55457
+ /** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
55458
+ maxTemp: number().nullable().optional(),
55459
+ /** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
55460
+ tempStep: number().positive().nullable().optional(),
54785
55461
  /** Ms epoch when the slice was last updated (push or command). */
54786
55462
  lastFetchedAt: number()
54787
55463
  });
@@ -55628,6 +56304,161 @@ onStatusChanged: { data: object({
55628
56304
  * whether persisting is worth a SQLite commit. */
55629
56305
  volatileStateFields: ["lastChangedAt"]
55630
56306
  };
56307
+ /**
56308
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
56309
+ * consumable levels (salt, rinse aid) and common program options.
56310
+ *
56311
+ * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
56312
+ * by any integration that exposes the same program / option surface.
56313
+ *
56314
+ * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
56315
+ * provider refreshes the slice on an interval and eagerly after commands.
56316
+ */
56317
+ var DishwasherStateSchema = _enum([
56318
+ "idle",
56319
+ "running",
56320
+ "paused",
56321
+ "finished",
56322
+ "error",
56323
+ "unavailable"
56324
+ ]);
56325
+ var DishwasherConsumableLevelSchema = _enum([
56326
+ "ok",
56327
+ "low",
56328
+ "empty"
56329
+ ]);
56330
+ var DishwasherStatusSchema = object({
56331
+ state: DishwasherStateSchema,
56332
+ /** Active program id/name, or null when none selected / unknown. */
56333
+ program: string().nullable(),
56334
+ /** Program tokens the hardware accepts — drives the UI selector. */
56335
+ availablePrograms: array(string()),
56336
+ /** Minutes remaining on the active cycle, or null when not running. */
56337
+ remainingMinutes: number().int().nonnegative().nullable(),
56338
+ /** Cycle completion 0..100, or null when not applicable. */
56339
+ progressPercent: number().min(0).max(100).nullable(),
56340
+ /** True when the door is reported open. */
56341
+ doorOpen: boolean(),
56342
+ /** True when remote start is allowed (door closed, power on, etc.). */
56343
+ remoteStartAllowed: boolean(),
56344
+ /** Main power / switched-on state. */
56345
+ powerOn: boolean(),
56346
+ saltLevel: DishwasherConsumableLevelSchema.nullable(),
56347
+ rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56348
+ halfLoad: boolean(),
56349
+ hygienePlus: boolean(),
56350
+ /** Extra dry option when the appliance exposes it. */
56351
+ extraDry: boolean(),
56352
+ /** Intensive zone (lower basket) when the appliance exposes it. */
56353
+ intensiveZone: boolean(),
56354
+ /** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
56355
+ varioSpeedPlus: boolean(),
56356
+ /** Child lock (controls disabled on the appliance). */
56357
+ childLock: boolean(),
56358
+ errorCode: number().nullable(),
56359
+ errorLabel: string().nullable(),
56360
+ lastFetchedAt: number()
56361
+ });
56362
+ var dishwasherCapability = {
56363
+ name: "dishwasher",
56364
+ scope: "device",
56365
+ deviceNative: true,
56366
+ mode: "singleton",
56367
+ deviceTypes: [DeviceType.Dishwasher],
56368
+ methods: {
56369
+ start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56370
+ kind: "mutation",
56371
+ auth: "protected"
56372
+ }),
56373
+ pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56374
+ kind: "mutation",
56375
+ auth: "protected"
56376
+ }),
56377
+ stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56378
+ kind: "mutation",
56379
+ auth: "protected"
56380
+ }),
56381
+ setProgram: method(object({
56382
+ deviceId: number().int().nonnegative(),
56383
+ program: string().min(1)
56384
+ }), _void(), {
56385
+ kind: "mutation",
56386
+ auth: "protected"
56387
+ }),
56388
+ setPower: method(object({
56389
+ deviceId: number().int().nonnegative(),
56390
+ on: boolean()
56391
+ }), _void(), {
56392
+ kind: "mutation",
56393
+ auth: "protected"
56394
+ }),
56395
+ setHalfLoad: method(object({
56396
+ deviceId: number().int().nonnegative(),
56397
+ on: boolean()
56398
+ }), _void(), {
56399
+ kind: "mutation",
56400
+ auth: "protected"
56401
+ }),
56402
+ setHygienePlus: method(object({
56403
+ deviceId: number().int().nonnegative(),
56404
+ on: boolean()
56405
+ }), _void(), {
56406
+ kind: "mutation",
56407
+ auth: "protected"
56408
+ }),
56409
+ setExtraDry: method(object({
56410
+ deviceId: number().int().nonnegative(),
56411
+ on: boolean()
56412
+ }), _void(), {
56413
+ kind: "mutation",
56414
+ auth: "protected"
56415
+ }),
56416
+ setIntensiveZone: method(object({
56417
+ deviceId: number().int().nonnegative(),
56418
+ on: boolean()
56419
+ }), _void(), {
56420
+ kind: "mutation",
56421
+ auth: "protected"
56422
+ }),
56423
+ setVarioSpeedPlus: method(object({
56424
+ deviceId: number().int().nonnegative(),
56425
+ on: boolean()
56426
+ }), _void(), {
56427
+ kind: "mutation",
56428
+ auth: "protected"
56429
+ }),
56430
+ setChildLock: method(object({
56431
+ deviceId: number().int().nonnegative(),
56432
+ on: boolean()
56433
+ }), _void(), {
56434
+ kind: "mutation",
56435
+ auth: "protected"
56436
+ }),
56437
+ setOption: method(object({
56438
+ deviceId: number().int().nonnegative(),
56439
+ key: string().min(1),
56440
+ value: union([
56441
+ boolean(),
56442
+ string(),
56443
+ number()
56444
+ ])
56445
+ }), _void(), {
56446
+ kind: "mutation",
56447
+ auth: "protected"
56448
+ })
56449
+ },
56450
+ status: {
56451
+ schema: DishwasherStatusSchema,
56452
+ kind: "poll"
56453
+ },
56454
+ runtimeState: DishwasherStatusSchema,
56455
+ durability: "session",
56456
+ history: { fields: { progressPercent: {
56457
+ kind: "gauge",
56458
+ unit: "%",
56459
+ deadband: 2
56460
+ } } }
56461
+ };
55631
56462
  var DoorbellStatusSchema = object({
55632
56463
  /** Ms epoch of the last press. null = never observed since this provider started. */
55633
56464
  lastPressedAt: number().nullable(),
@@ -56430,6 +57261,32 @@ var gasCapability = {
56430
57261
  * whether persisting is worth a SQLite commit. */
56431
57262
  volatileStateFields: ["lastChangedAt"]
56432
57263
  };
57264
+ var HeatingValveStatusSchema = object({
57265
+ /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
57266
+ position: number().min(0).max(100).nullable(),
57267
+ /** Ms epoch when the slice was last updated (push or poll). */
57268
+ lastFetchedAt: number()
57269
+ });
57270
+ var heatingValveCapability = {
57271
+ name: "heating-valve",
57272
+ scope: "device",
57273
+ deviceNative: true,
57274
+ mode: "singleton",
57275
+ deviceTypes: [DeviceType.Thermostat],
57276
+ methods: {},
57277
+ status: {
57278
+ schema: HeatingValveStatusSchema,
57279
+ kind: "push"
57280
+ },
57281
+ runtimeState: HeatingValveStatusSchema,
57282
+ durability: "session",
57283
+ history: { fields: { position: {
57284
+ kind: "gauge",
57285
+ unit: "%",
57286
+ deadband: 1
57287
+ } } },
57288
+ volatileStateFields: ["lastFetchedAt"]
57289
+ };
56433
57290
  /**
56434
57291
  * Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
56435
57292
  * an on/off actuator with an optional target-humidity setpoint and an
@@ -57562,7 +58419,19 @@ var TlsStatusSchema = object({
57562
58419
  sans: array(string()),
57563
58420
  caCertPem: string().nullable(),
57564
58421
  reissueError: string().nullable(),
57565
- restartRequired: boolean()
58422
+ restartRequired: boolean(),
58423
+ /** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
58424
+ caMissing: boolean(),
58425
+ /** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
58426
+ localCaConstrained: boolean().nullable(),
58427
+ /** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
58428
+ caReplacedAt: string().nullable(),
58429
+ /** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
58430
+ storedUpload: object({
58431
+ leafFingerprintSha256: string(),
58432
+ validTo: string(),
58433
+ hasCa: boolean()
58434
+ }).nullable()
57566
58435
  });
57567
58436
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
57568
58437
  /**
@@ -57618,6 +58487,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
57618
58487
  }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
57619
58488
  kind: "mutation",
57620
58489
  auth: "admin"
58490
+ }), method(_void(), TlsStatusSchema, {
58491
+ kind: "mutation",
58492
+ auth: "admin"
57621
58493
  });
57622
58494
  var LockControlStatusSchema = object({
57623
58495
  /** Lifecycle state of the lock. `jammed` means the motor reported
@@ -64111,7 +64983,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64111
64983
  kind: "mutation",
64112
64984
  auth: "admin",
64113
64985
  access: "delete"
64114
- }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(object({
64986
+ }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
64987
+ kind: "mutation",
64988
+ auth: "admin",
64989
+ access: "create"
64990
+ }), method(object({
64115
64991
  userId: string(),
64116
64992
  code: string()
64117
64993
  }), object({ valid: boolean() }), {
@@ -65831,6 +66707,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
65831
66707
  dayNight: dayNightCapability,
65832
66708
  deviceDiscovery: deviceDiscoveryCapability,
65833
66709
  deviceStatus: deviceStatusCapability,
66710
+ dishwasher: dishwasherCapability,
65834
66711
  doorbell: doorbellCapability,
65835
66712
  enumSensor: enumSensorCapability,
65836
66713
  eventEmitter: eventEmitterCapability,
@@ -65838,6 +66715,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
65838
66715
  featureProbe: featureProbeCapability,
65839
66716
  flood: floodCapability,
65840
66717
  gas: gasCapability,
66718
+ heatingValve: heatingValveCapability,
65841
66719
  humidifier: humidifierCapability,
65842
66720
  humiditySensor: humiditySensorCapability,
65843
66721
  image: imageCapability,
@@ -65923,13 +66801,14 @@ var BaseDevice = class {
65923
66801
  get state() {
65924
66802
  if (!this._stateProxyCache) {
65925
66803
  const cache = {};
65926
- const handler = { get: (_target, key) => {
66804
+ const handler = { get: (target, key) => {
65927
66805
  const k = key;
65928
- if (k in cache) return cache[k];
66806
+ const existing = Reflect.get(target, k);
66807
+ if (existing !== void 0) return existing;
65929
66808
  const cap = DEVICE_LOCAL_STATE_CAPS[k];
65930
66809
  if (!cap) return void 0;
65931
66810
  const proxy = this.sliceProxy(cap);
65932
- cache[k] = proxy;
66811
+ Reflect.set(target, k, proxy);
65933
66812
  return proxy;
65934
66813
  } };
65935
66814
  this._stateProxyCache = new Proxy(cache, handler);
@@ -66128,7 +67007,7 @@ var BaseDevice = class {
66128
67007
  async updateSourceInfo(patch) {
66129
67008
  const next = mergeSourceInfo(this.sourceInfo, patch);
66130
67009
  this._sourceInfoCache = Object.freeze({ ...next });
66131
- const action = this.ctx.api?.deviceManager?.setMetadata;
67010
+ const action = this.ctx.api.deviceManager?.setMetadata;
66132
67011
  if (action) try {
66133
67012
  await action.mutate({
66134
67013
  deviceId: this.id,
@@ -66163,7 +67042,7 @@ var BaseDevice = class {
66163
67042
  * device boot on a meta refresh.
66164
67043
  */
66165
67044
  async refreshFeatures() {
66166
- const action = this.ctx.api?.deviceManager?.registerDevice;
67045
+ const action = this.ctx.api.deviceManager?.registerDevice;
66167
67046
  if (!action) return;
66168
67047
  try {
66169
67048
  await action.mutate({
@@ -66562,6 +67441,12 @@ var BaseDeviceProvider = class extends BaseAddon {
66562
67441
  provider: this
66563
67442
  }];
66564
67443
  }
67444
+ /** Flatten `super.onInitialize()` whether it returned an array or an envelope. */
67445
+ providerRegistrationsFromSuper(result) {
67446
+ if (Array.isArray(result)) return result;
67447
+ if (result !== void 0 && result.providers !== void 0) return [...result.providers];
67448
+ return [];
67449
+ }
66565
67450
  async onShutdown() {
66566
67451
  this._restoreShuttingDown = true;
66567
67452
  this.cancelRestoreRetries();
@@ -67088,7 +67973,7 @@ var BaseDeviceProvider = class extends BaseAddon {
67088
67973
  return toDeviceSummary(device, this.addonId);
67089
67974
  }
67090
67975
  };
67091
- 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;
67976
+ 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;
67092
67977
  new Set(Object.values(DeviceType));
67093
67978
  Object.freeze({
67094
67979
  "accessories.getStatus": {
@@ -68237,6 +69122,12 @@ Object.freeze({
68237
69122
  addonId: null,
68238
69123
  access: "view"
68239
69124
  },
69125
+ "coreBlocks.migrateRawSecrets": {
69126
+ capName: "core-blocks",
69127
+ capScope: "system",
69128
+ addonId: null,
69129
+ access: "create"
69130
+ },
68240
69131
  "coreBlocks.restart": {
68241
69132
  capName: "core-blocks",
68242
69133
  capScope: "system",
@@ -69503,6 +70394,84 @@ Object.freeze({
69503
70394
  addonId: null,
69504
70395
  access: "view"
69505
70396
  },
70397
+ "dishwasher.getStatus": {
70398
+ capName: "dishwasher",
70399
+ capScope: "device",
70400
+ addonId: null,
70401
+ access: "view"
70402
+ },
70403
+ "dishwasher.pause": {
70404
+ capName: "dishwasher",
70405
+ capScope: "device",
70406
+ addonId: null,
70407
+ access: "create"
70408
+ },
70409
+ "dishwasher.setChildLock": {
70410
+ capName: "dishwasher",
70411
+ capScope: "device",
70412
+ addonId: null,
70413
+ access: "create"
70414
+ },
70415
+ "dishwasher.setExtraDry": {
70416
+ capName: "dishwasher",
70417
+ capScope: "device",
70418
+ addonId: null,
70419
+ access: "create"
70420
+ },
70421
+ "dishwasher.setHalfLoad": {
70422
+ capName: "dishwasher",
70423
+ capScope: "device",
70424
+ addonId: null,
70425
+ access: "create"
70426
+ },
70427
+ "dishwasher.setHygienePlus": {
70428
+ capName: "dishwasher",
70429
+ capScope: "device",
70430
+ addonId: null,
70431
+ access: "create"
70432
+ },
70433
+ "dishwasher.setIntensiveZone": {
70434
+ capName: "dishwasher",
70435
+ capScope: "device",
70436
+ addonId: null,
70437
+ access: "create"
70438
+ },
70439
+ "dishwasher.setOption": {
70440
+ capName: "dishwasher",
70441
+ capScope: "device",
70442
+ addonId: null,
70443
+ access: "create"
70444
+ },
70445
+ "dishwasher.setPower": {
70446
+ capName: "dishwasher",
70447
+ capScope: "device",
70448
+ addonId: null,
70449
+ access: "create"
70450
+ },
70451
+ "dishwasher.setProgram": {
70452
+ capName: "dishwasher",
70453
+ capScope: "device",
70454
+ addonId: null,
70455
+ access: "create"
70456
+ },
70457
+ "dishwasher.setVarioSpeedPlus": {
70458
+ capName: "dishwasher",
70459
+ capScope: "device",
70460
+ addonId: null,
70461
+ access: "create"
70462
+ },
70463
+ "dishwasher.start": {
70464
+ capName: "dishwasher",
70465
+ capScope: "device",
70466
+ addonId: null,
70467
+ access: "create"
70468
+ },
70469
+ "dishwasher.stop": {
70470
+ capName: "dishwasher",
70471
+ capScope: "device",
70472
+ addonId: null,
70473
+ access: "create"
70474
+ },
69506
70475
  "doorbell.getStatus": {
69507
70476
  capName: "doorbell",
69508
70477
  capScope: "device",
@@ -69713,6 +70682,12 @@ Object.freeze({
69713
70682
  addonId: null,
69714
70683
  access: "view"
69715
70684
  },
70685
+ "heatingValve.getStatus": {
70686
+ capName: "heating-valve",
70687
+ capScope: "device",
70688
+ addonId: null,
70689
+ access: "view"
70690
+ },
69716
70691
  "humidifier.getStatus": {
69717
70692
  capName: "humidifier",
69718
70693
  capScope: "device",
@@ -69923,6 +70898,12 @@ Object.freeze({
69923
70898
  addonId: null,
69924
70899
  access: "create"
69925
70900
  },
70901
+ "keychainAdmin.importSecret": {
70902
+ capName: "keychain-admin",
70903
+ capScope: "system",
70904
+ addonId: null,
70905
+ access: "create"
70906
+ },
69926
70907
  "keychainAdmin.listAudit": {
69927
70908
  capName: "keychain-admin",
69928
70909
  capScope: "system",
@@ -70091,6 +71072,12 @@ Object.freeze({
70091
71072
  addonId: null,
70092
71073
  access: "view"
70093
71074
  },
71075
+ "llm.migrateRawSecrets": {
71076
+ capName: "llm",
71077
+ capScope: "system",
71078
+ addonId: null,
71079
+ access: "create"
71080
+ },
70094
71081
  "llm.resolveModelRef": {
70095
71082
  capName: "llm",
70096
71083
  capScope: "system",
@@ -70319,6 +71306,12 @@ Object.freeze({
70319
71306
  addonId: null,
70320
71307
  access: "create"
70321
71308
  },
71309
+ "localNetwork.useStoredUploadedCertificate": {
71310
+ capName: "local-network",
71311
+ capScope: "system",
71312
+ addonId: null,
71313
+ access: "create"
71314
+ },
70322
71315
  "lockControl.getStatus": {
70323
71316
  capName: "lock-control",
70324
71317
  capScope: "device",
@@ -72971,6 +73964,30 @@ Object.freeze({
72971
73964
  addonId: null,
72972
73965
  access: "create"
72973
73966
  },
73967
+ "recordEntries.deleteEntry": {
73968
+ capName: "record-entries",
73969
+ capScope: "system",
73970
+ addonId: null,
73971
+ access: "delete"
73972
+ },
73973
+ "recordEntries.listEntries": {
73974
+ capName: "record-entries",
73975
+ capScope: "system",
73976
+ addonId: null,
73977
+ access: "view"
73978
+ },
73979
+ "recordEntries.listEntryKinds": {
73980
+ capName: "record-entries",
73981
+ capScope: "system",
73982
+ addonId: null,
73983
+ access: "view"
73984
+ },
73985
+ "recordEntries.putEntry": {
73986
+ capName: "record-entries",
73987
+ capScope: "system",
73988
+ addonId: null,
73989
+ access: "create"
73990
+ },
72974
73991
  "recording.getAvailability": {
72975
73992
  capName: "recording",
72976
73993
  capScope: "device",
@@ -73271,6 +74288,102 @@ Object.freeze({
73271
74288
  addonId: null,
73272
74289
  access: "view"
73273
74290
  },
74291
+ "records.aggregate": {
74292
+ capName: "records",
74293
+ capScope: "system",
74294
+ addonId: null,
74295
+ access: "view"
74296
+ },
74297
+ "records.allocateId": {
74298
+ capName: "records",
74299
+ capScope: "system",
74300
+ addonId: null,
74301
+ access: "create"
74302
+ },
74303
+ "records.count": {
74304
+ capName: "records",
74305
+ capScope: "system",
74306
+ addonId: null,
74307
+ access: "view"
74308
+ },
74309
+ "records.declareKinds": {
74310
+ capName: "records",
74311
+ capScope: "system",
74312
+ addonId: null,
74313
+ access: "create"
74314
+ },
74315
+ "records.delete": {
74316
+ capName: "records",
74317
+ capScope: "system",
74318
+ addonId: null,
74319
+ access: "delete"
74320
+ },
74321
+ "records.deleteDevice": {
74322
+ capName: "records",
74323
+ capScope: "system",
74324
+ addonId: null,
74325
+ access: "delete"
74326
+ },
74327
+ "records.deleteMany": {
74328
+ capName: "records",
74329
+ capScope: "system",
74330
+ addonId: null,
74331
+ access: "delete"
74332
+ },
74333
+ "records.deleteWhere": {
74334
+ capName: "records",
74335
+ capScope: "system",
74336
+ addonId: null,
74337
+ access: "delete"
74338
+ },
74339
+ "records.get": {
74340
+ capName: "records",
74341
+ capScope: "system",
74342
+ addonId: null,
74343
+ access: "view"
74344
+ },
74345
+ "records.getMany": {
74346
+ capName: "records",
74347
+ capScope: "system",
74348
+ addonId: null,
74349
+ access: "view"
74350
+ },
74351
+ "records.histogram": {
74352
+ capName: "records",
74353
+ capScope: "system",
74354
+ addonId: null,
74355
+ access: "view"
74356
+ },
74357
+ "records.patch": {
74358
+ capName: "records",
74359
+ capScope: "system",
74360
+ addonId: null,
74361
+ access: "create"
74362
+ },
74363
+ "records.put": {
74364
+ capName: "records",
74365
+ capScope: "system",
74366
+ addonId: null,
74367
+ access: "create"
74368
+ },
74369
+ "records.putMany": {
74370
+ capName: "records",
74371
+ capScope: "system",
74372
+ addonId: null,
74373
+ access: "create"
74374
+ },
74375
+ "records.query": {
74376
+ capName: "records",
74377
+ capScope: "system",
74378
+ addonId: null,
74379
+ access: "view"
74380
+ },
74381
+ "records.secretRefs": {
74382
+ capName: "records",
74383
+ capScope: "system",
74384
+ addonId: null,
74385
+ access: "view"
74386
+ },
73274
74387
  "sceneMonitor.captureReference": {
73275
74388
  capName: "scene-monitor",
73276
74389
  capScope: "device",
@@ -73703,6 +74816,48 @@ Object.freeze({
73703
74816
  addonId: null,
73704
74817
  access: "create"
73705
74818
  },
74819
+ "storageAdmin.adoptRecords": {
74820
+ capName: "storage-admin",
74821
+ capScope: "system",
74822
+ addonId: null,
74823
+ access: "create"
74824
+ },
74825
+ "storageAdmin.dropCollection": {
74826
+ capName: "storage-admin",
74827
+ capScope: "system",
74828
+ addonId: null,
74829
+ access: "delete"
74830
+ },
74831
+ "storageAdmin.isAdoptedLegacyTable": {
74832
+ capName: "storage-admin",
74833
+ capScope: "system",
74834
+ addonId: null,
74835
+ access: "view"
74836
+ },
74837
+ "storageAdmin.listKinds": {
74838
+ capName: "storage-admin",
74839
+ capScope: "system",
74840
+ addonId: null,
74841
+ access: "view"
74842
+ },
74843
+ "storageAdmin.listTables": {
74844
+ capName: "storage-admin",
74845
+ capScope: "system",
74846
+ addonId: null,
74847
+ access: "view"
74848
+ },
74849
+ "storageAdmin.readLegacyCollection": {
74850
+ capName: "storage-admin",
74851
+ capScope: "system",
74852
+ addonId: null,
74853
+ access: "view"
74854
+ },
74855
+ "storageAdmin.readRecords": {
74856
+ capName: "storage-admin",
74857
+ capScope: "system",
74858
+ addonId: null,
74859
+ access: "view"
74860
+ },
73706
74861
  "storageEvictable.evict": {
73707
74862
  capName: "storage-evictable",
73708
74863
  capScope: "system",
@@ -74615,6 +75770,12 @@ Object.freeze({
74615
75770
  addonId: null,
74616
75771
  access: "view"
74617
75772
  },
75773
+ "userManagement.migrateRawSecrets": {
75774
+ capName: "user-management",
75775
+ capScope: "system",
75776
+ addonId: null,
75777
+ access: "create"
75778
+ },
74618
75779
  "userManagement.oauthExchangeCode": {
74619
75780
  capName: "user-management",
74620
75781
  capScope: "system",
@@ -75114,7 +76275,7 @@ Object.freeze({
75114
76275
  access: "create"
75115
76276
  }
75116
76277
  });
75117
- 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;
76278
+ 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;
75118
76279
  DeviceFeature.BatteryOperated;
75119
76280
  Object.freeze({
75120
76281
  "accessories.getStatus": [{
@@ -75938,6 +77099,71 @@ Object.freeze({
75938
77099
  form: "single",
75939
77100
  optional: false
75940
77101
  }],
77102
+ "dishwasher.getStatus": [{
77103
+ name: "deviceId",
77104
+ form: "single",
77105
+ optional: false
77106
+ }],
77107
+ "dishwasher.pause": [{
77108
+ name: "deviceId",
77109
+ form: "single",
77110
+ optional: false
77111
+ }],
77112
+ "dishwasher.setChildLock": [{
77113
+ name: "deviceId",
77114
+ form: "single",
77115
+ optional: false
77116
+ }],
77117
+ "dishwasher.setExtraDry": [{
77118
+ name: "deviceId",
77119
+ form: "single",
77120
+ optional: false
77121
+ }],
77122
+ "dishwasher.setHalfLoad": [{
77123
+ name: "deviceId",
77124
+ form: "single",
77125
+ optional: false
77126
+ }],
77127
+ "dishwasher.setHygienePlus": [{
77128
+ name: "deviceId",
77129
+ form: "single",
77130
+ optional: false
77131
+ }],
77132
+ "dishwasher.setIntensiveZone": [{
77133
+ name: "deviceId",
77134
+ form: "single",
77135
+ optional: false
77136
+ }],
77137
+ "dishwasher.setOption": [{
77138
+ name: "deviceId",
77139
+ form: "single",
77140
+ optional: false
77141
+ }],
77142
+ "dishwasher.setPower": [{
77143
+ name: "deviceId",
77144
+ form: "single",
77145
+ optional: false
77146
+ }],
77147
+ "dishwasher.setProgram": [{
77148
+ name: "deviceId",
77149
+ form: "single",
77150
+ optional: false
77151
+ }],
77152
+ "dishwasher.setVarioSpeedPlus": [{
77153
+ name: "deviceId",
77154
+ form: "single",
77155
+ optional: false
77156
+ }],
77157
+ "dishwasher.start": [{
77158
+ name: "deviceId",
77159
+ form: "single",
77160
+ optional: false
77161
+ }],
77162
+ "dishwasher.stop": [{
77163
+ name: "deviceId",
77164
+ form: "single",
77165
+ optional: false
77166
+ }],
75941
77167
  "doorbell.getStatus": [{
75942
77168
  name: "deviceId",
75943
77169
  form: "single",
@@ -76007,6 +77233,11 @@ Object.freeze({
76007
77233
  form: "single",
76008
77234
  optional: false
76009
77235
  }],
77236
+ "heatingValve.getStatus": [{
77237
+ name: "deviceId",
77238
+ form: "single",
77239
+ optional: false
77240
+ }],
76010
77241
  "humidifier.getStatus": [{
76011
77242
  name: "deviceId",
76012
77243
  form: "single",
@@ -77291,6 +78522,37 @@ Object.freeze({
77291
78522
  form: "single",
77292
78523
  optional: false
77293
78524
  }],
78525
+ "records.count": [{
78526
+ name: "deviceId",
78527
+ form: "single",
78528
+ optional: true
78529
+ }],
78530
+ "records.deleteDevice": [{
78531
+ name: "deviceId",
78532
+ form: "single",
78533
+ optional: false
78534
+ }],
78535
+ "records.deleteWhere": [{
78536
+ name: "deviceId",
78537
+ form: "single",
78538
+ optional: true
78539
+ }],
78540
+ "records.histogram": [{
78541
+ name: "deviceId",
78542
+ form: "single",
78543
+ optional: true
78544
+ }],
78545
+ "records.putMany": [{
78546
+ name: "records",
78547
+ form: "object-array",
78548
+ optional: false,
78549
+ itemField: "deviceId"
78550
+ }],
78551
+ "records.query": [{
78552
+ name: "deviceId",
78553
+ form: "single",
78554
+ optional: true
78555
+ }],
77294
78556
  "sceneMonitor.captureReference": [{
77295
78557
  name: "deviceId",
77296
78558
  form: "single",
@@ -77407,6 +78669,17 @@ Object.freeze({
77407
78669
  form: "single",
77408
78670
  optional: false
77409
78671
  }],
78672
+ "storageAdmin.adoptRecords": [{
78673
+ name: "records",
78674
+ form: "object-array",
78675
+ optional: false,
78676
+ itemField: "deviceId"
78677
+ }],
78678
+ "storageAdmin.readRecords": [{
78679
+ name: "deviceId",
78680
+ form: "single",
78681
+ optional: true
78682
+ }],
77410
78683
  "streamBroker.acquireEgressTranscode": [{
77411
78684
  name: "deviceId",
77412
78685
  form: "single",