@camstack/addon-provider-homeassistant 1.2.173 → 1.2.602

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.
@@ -1,5 +1,5 @@
1
1
  require("node:crypto");
2
- //#region ../types/dist/event-category-C4hVnRo8.mjs
2
+ //#region ../types/dist/event-category-BvOFi6PY.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -63,6 +63,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
63
63
  * consumes this category and maps it to the `addon-crash-loop` kind.
64
64
  */
65
65
  EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
66
+ /**
67
+ * A runner whose addon refused to start with a typed reason (D877) - parked
68
+ * in `refused`, never counted by the crash breaker, retried on operator
69
+ * action. One event per refusal.
70
+ */
71
+ EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
72
+ /**
73
+ * A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
74
+ * `refused`. In-process telemetry for the boot check (re-evaluate while any
75
+ * runner is still pending) and the alert centre (close a recovered runner).
76
+ */
77
+ EventCategory["ProcessStateChanged"] = "process.state-changed";
78
+ /**
79
+ * The node's one-shot runner boot check (D877): planned runners against the
80
+ * process service, `degraded` when any is failed, refused or missing. The
81
+ * alert centre turns it into one alert and a direct critical push.
82
+ */
83
+ EventCategory["SystemRunnerCheck"] = "system.runner-check";
66
84
  EventCategory["AddonError"] = "addon.error";
67
85
  EventCategory["AddonPageReady"] = "addon.page-ready";
68
86
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -4105,6 +4123,12 @@ var numberProcessor = (schema, ctx, _json, _params) => {
4105
4123
  var booleanProcessor = (_schema, _ctx, json, _params) => {
4106
4124
  json.type = "boolean";
4107
4125
  };
4126
+ var bigintProcessor = (_schema, ctx, _json, _params) => {
4127
+ if (ctx.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema");
4128
+ };
4129
+ var symbolProcessor = (_schema, ctx, _json, _params) => {
4130
+ if (ctx.unrepresentable === "throw") throw new Error("Symbols cannot be represented in JSON Schema");
4131
+ };
4108
4132
  var nullProcessor = (_schema, ctx, json, _params) => {
4109
4133
  if (ctx.target === "openapi-3.0") {
4110
4134
  json.type = "string";
@@ -4112,12 +4136,17 @@ var nullProcessor = (_schema, ctx, json, _params) => {
4112
4136
  json.enum = [null];
4113
4137
  } else json.type = "null";
4114
4138
  };
4139
+ var undefinedProcessor = (_schema, ctx, _json, _params) => {
4140
+ if (ctx.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema");
4141
+ };
4115
4142
  var voidProcessor = (_schema, ctx, _json, _params) => {
4116
4143
  if (ctx.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema");
4117
4144
  };
4118
4145
  var neverProcessor = (_schema, _ctx, json, _params) => {
4119
4146
  json.not = {};
4120
4147
  };
4148
+ var anyProcessor = (_schema, _ctx, _json, _params) => {};
4149
+ var unknownProcessor = (_schema, _ctx, _json, _params) => {};
4121
4150
  var dateProcessor = (_schema, ctx, _json, _params) => {
4122
4151
  if (ctx.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema");
4123
4152
  };
@@ -4149,12 +4178,53 @@ var literalProcessor = (schema, ctx, json, _params) => {
4149
4178
  json.enum = vals;
4150
4179
  }
4151
4180
  };
4181
+ var nanProcessor = (_schema, ctx, _json, _params) => {
4182
+ if (ctx.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema");
4183
+ };
4184
+ var templateLiteralProcessor = (schema, _ctx, json, _params) => {
4185
+ const _json = json;
4186
+ const pattern = schema._zod.pattern;
4187
+ if (!pattern) throw new Error("Pattern not found in template literal");
4188
+ _json.type = "string";
4189
+ _json.pattern = pattern.source;
4190
+ };
4191
+ var fileProcessor = (schema, _ctx, json, _params) => {
4192
+ const _json = json;
4193
+ const file = {
4194
+ type: "string",
4195
+ format: "binary",
4196
+ contentEncoding: "binary"
4197
+ };
4198
+ const { minimum, maximum, mime } = schema._zod.bag;
4199
+ if (minimum !== void 0) file.minLength = minimum;
4200
+ if (maximum !== void 0) file.maxLength = maximum;
4201
+ if (mime) if (mime.length === 1) {
4202
+ file.contentMediaType = mime[0];
4203
+ Object.assign(_json, file);
4204
+ } else {
4205
+ Object.assign(_json, file);
4206
+ _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
4207
+ }
4208
+ else Object.assign(_json, file);
4209
+ };
4210
+ var successProcessor = (_schema, _ctx, json, _params) => {
4211
+ json.type = "boolean";
4212
+ };
4152
4213
  var customProcessor = (_schema, ctx, _json, _params) => {
4153
4214
  if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
4154
4215
  };
4216
+ var functionProcessor = (_schema, ctx, _json, _params) => {
4217
+ if (ctx.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema");
4218
+ };
4155
4219
  var transformProcessor = (_schema, ctx, _json, _params) => {
4156
4220
  if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
4157
4221
  };
4222
+ var mapProcessor = (_schema, ctx, _json, _params) => {
4223
+ if (ctx.unrepresentable === "throw") throw new Error("Map cannot be represented in JSON Schema");
4224
+ };
4225
+ var setProcessor = (_schema, ctx, _json, _params) => {
4226
+ if (ctx.unrepresentable === "throw") throw new Error("Set cannot be represented in JSON Schema");
4227
+ };
4158
4228
  var arrayProcessor = (schema, ctx, _json, params) => {
4159
4229
  const json = _json;
4160
4230
  const def = schema._zod.def;
@@ -4359,6 +4429,12 @@ var readonlyProcessor = (schema, ctx, json, params) => {
4359
4429
  seen.ref = def.innerType;
4360
4430
  json.readOnly = true;
4361
4431
  };
4432
+ var promiseProcessor = (schema, ctx, _json, params) => {
4433
+ const def = schema._zod.def;
4434
+ process(def.innerType, ctx, params);
4435
+ const seen = ctx.seen.get(schema);
4436
+ seen.ref = def.innerType;
4437
+ };
4362
4438
  var optionalProcessor = (schema, ctx, _json, params) => {
4363
4439
  const def = schema._zod.def;
4364
4440
  process(def.innerType, ctx, params);
@@ -4371,6 +4447,81 @@ var lazyProcessor = (schema, ctx, _json, params) => {
4371
4447
  const seen = ctx.seen.get(schema);
4372
4448
  seen.ref = innerType;
4373
4449
  };
4450
+ var allProcessors = {
4451
+ string: stringProcessor,
4452
+ number: numberProcessor,
4453
+ boolean: booleanProcessor,
4454
+ bigint: bigintProcessor,
4455
+ symbol: symbolProcessor,
4456
+ null: nullProcessor,
4457
+ undefined: undefinedProcessor,
4458
+ void: voidProcessor,
4459
+ never: neverProcessor,
4460
+ any: anyProcessor,
4461
+ unknown: unknownProcessor,
4462
+ date: dateProcessor,
4463
+ enum: enumProcessor,
4464
+ literal: literalProcessor,
4465
+ nan: nanProcessor,
4466
+ template_literal: templateLiteralProcessor,
4467
+ file: fileProcessor,
4468
+ success: successProcessor,
4469
+ custom: customProcessor,
4470
+ function: functionProcessor,
4471
+ transform: transformProcessor,
4472
+ map: mapProcessor,
4473
+ set: setProcessor,
4474
+ array: arrayProcessor,
4475
+ object: objectProcessor,
4476
+ union: unionProcessor,
4477
+ intersection: intersectionProcessor,
4478
+ tuple: tupleProcessor,
4479
+ record: recordProcessor,
4480
+ nullable: nullableProcessor,
4481
+ nonoptional: nonoptionalProcessor,
4482
+ default: defaultProcessor,
4483
+ prefault: prefaultProcessor,
4484
+ catch: catchProcessor,
4485
+ pipe: pipeProcessor,
4486
+ readonly: readonlyProcessor,
4487
+ promise: promiseProcessor,
4488
+ optional: optionalProcessor,
4489
+ lazy: lazyProcessor
4490
+ };
4491
+ function toJSONSchema(input, params) {
4492
+ if ("_idmap" in input) {
4493
+ const registry = input;
4494
+ const ctx = initializeContext({
4495
+ ...params,
4496
+ processors: allProcessors
4497
+ });
4498
+ const defs = {};
4499
+ for (const entry of registry._idmap.entries()) {
4500
+ const [_, schema] = entry;
4501
+ process(schema, ctx);
4502
+ }
4503
+ const schemas = {};
4504
+ ctx.external = {
4505
+ registry,
4506
+ uri: params?.uri,
4507
+ defs
4508
+ };
4509
+ for (const entry of registry._idmap.entries()) {
4510
+ const [key, schema] = entry;
4511
+ extractDefs(ctx, schema);
4512
+ schemas[key] = finalize(ctx, schema);
4513
+ }
4514
+ if (Object.keys(defs).length > 0) schemas.__shared = { [ctx.target === "draft-2020-12" ? "$defs" : "definitions"]: defs };
4515
+ return { schemas };
4516
+ }
4517
+ const ctx = initializeContext({
4518
+ ...params,
4519
+ processors: allProcessors
4520
+ });
4521
+ process(input, ctx);
4522
+ extractDefs(ctx, input);
4523
+ return finalize(ctx, input);
4524
+ }
4374
4525
  //#endregion
4375
4526
  //#region ../../node_modules/zod/v4/classic/iso.js
4376
4527
  var ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
@@ -5387,7 +5538,7 @@ var ZodIssueCode = {
5387
5538
  var ZodFirstPartyTypeKind;
5388
5539
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5389
5540
  //#endregion
5390
- //#region ../types/dist/sleep-bwsTj221.mjs
5541
+ //#region ../types/dist/sleep-BOjuyoPC.mjs
5391
5542
  /**
5392
5543
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5393
5544
  * window to float samples (D455).
@@ -5504,7 +5655,7 @@ function isKeychainStoredField(field) {
5504
5655
  var SECRET_CLEAR = { $secretClear: true };
5505
5656
  /** The `'***'` token D634 redaction writes for non-admins. */
5506
5657
  var LEGACY_DEVICE_REDACTION = "***";
5507
- function isRecord$2(value) {
5658
+ function isRecord$5(value) {
5508
5659
  return typeof value === "object" && value !== null && !Array.isArray(value);
5509
5660
  }
5510
5661
  function makeSecretMarker(ref) {
@@ -5515,12 +5666,12 @@ function makeSecretMarker(ref) {
5515
5666
  }
5516
5667
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5517
5668
  function isSecretMarker(value) {
5518
- if (!isRecord$2(value)) return false;
5669
+ if (!isRecord$5(value)) return false;
5519
5670
  const ref = value["$secret"];
5520
5671
  return typeof ref === "string" && ref.length > 0;
5521
5672
  }
5522
5673
  function isSecretClear(value) {
5523
- return isRecord$2(value) && value["$secretClear"] === true;
5674
+ return isRecord$5(value) && value["$secretClear"] === true;
5524
5675
  }
5525
5676
  /**
5526
5677
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6130,7 +6281,7 @@ var KeychainWriteRefusedError = class extends Error {
6130
6281
  }
6131
6282
  };
6132
6283
  var KEEP = { kind: "keep" };
6133
- function isRecord$1(value) {
6284
+ function isRecord$4(value) {
6134
6285
  return typeof value === "object" && value !== null && !Array.isArray(value);
6135
6286
  }
6136
6287
  function defaultMintId() {
@@ -6143,7 +6294,7 @@ function collectSecretMarkerRefs(value, out = []) {
6143
6294
  return out;
6144
6295
  }
6145
6296
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6146
- else if (isRecord$1(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6297
+ else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6147
6298
  return out;
6148
6299
  }
6149
6300
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6198,7 +6349,7 @@ function rowId(row, idKey) {
6198
6349
  return null;
6199
6350
  }
6200
6351
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6201
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$1) : [];
6352
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6202
6353
  if (!Array.isArray(incoming)) {
6203
6354
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6204
6355
  return {
@@ -6214,7 +6365,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6214
6365
  const kept = /* @__PURE__ */ new Set();
6215
6366
  const rows = [];
6216
6367
  for (const row of incoming) {
6217
- if (!isRecord$1(row)) {
6368
+ if (!isRecord$4(row)) {
6218
6369
  rows.push(row);
6219
6370
  continue;
6220
6371
  }
@@ -6239,7 +6390,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6239
6390
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6240
6391
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6241
6392
  case "object": {
6242
- if (!isRecord$1(incoming)) {
6393
+ if (!isRecord$4(incoming)) {
6243
6394
  if (incoming === void 0) return KEEP;
6244
6395
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6245
6396
  return {
@@ -6247,7 +6398,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6247
6398
  value: incoming
6248
6399
  };
6249
6400
  }
6250
- const storedObj = isRecord$1(stored) ? stored : {};
6401
+ const storedObj = isRecord$4(stored) ? stored : {};
6251
6402
  return {
6252
6403
  kind: "value",
6253
6404
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6370,7 +6521,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6370
6521
  value: items
6371
6522
  };
6372
6523
  }
6373
- if (isRecord$1(v)) {
6524
+ if (isRecord$4(v)) {
6374
6525
  const out = {};
6375
6526
  for (const [k, child] of Object.entries(v)) {
6376
6527
  const s = substitute(child);
@@ -6402,7 +6553,7 @@ var SecretOverwriteRefusedError = class extends Error {
6402
6553
  this.name = "SecretOverwriteRefusedError";
6403
6554
  }
6404
6555
  };
6405
- function isRecord(value) {
6556
+ function isRecord$3(value) {
6406
6557
  return typeof value === "object" && value !== null && !Array.isArray(value);
6407
6558
  }
6408
6559
  function resolvedValue(pass, marker) {
@@ -6431,7 +6582,7 @@ function inArray(pass, incoming, stored) {
6431
6582
  return incoming.map((item, index) => {
6432
6583
  const twin = stored[index];
6433
6584
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6434
- if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
6585
+ if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6435
6586
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6436
6587
  return item;
6437
6588
  });
@@ -6442,7 +6593,7 @@ function inArrayRow(pass, incoming, stored) {
6442
6593
  const twin = stored[key];
6443
6594
  if (isSecretMarker(twin)) {
6444
6595
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6445
- } else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
6596
+ } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6446
6597
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6447
6598
  }
6448
6599
  return out;
@@ -6450,7 +6601,7 @@ function inArrayRow(pass, incoming, stored) {
6450
6601
  async function walk(pass, incoming, stored) {
6451
6602
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6452
6603
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6453
- if (!isRecord(incoming) || !isRecord(stored)) return incoming;
6604
+ if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6454
6605
  const out = { ...incoming };
6455
6606
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6456
6607
  return out;
@@ -6481,7 +6632,7 @@ async function restoreUnchangedSecrets(input) {
6481
6632
  function isJsonEqual(a, b) {
6482
6633
  if (Object.is(a, b)) return true;
6483
6634
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6484
- if (isRecord(a) && isRecord(b)) {
6635
+ if (isRecord$3(a) && isRecord$3(b)) {
6485
6636
  const keys = Object.keys(a);
6486
6637
  if (keys.length !== Object.keys(b).length) return false;
6487
6638
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6505,7 +6656,7 @@ function markerKeysOf(blob, owner) {
6505
6656
  }
6506
6657
  function nodeFromStored(value, owner) {
6507
6658
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6508
- if (!isRecord(value)) return null;
6659
+ if (!isRecord$3(value)) return null;
6509
6660
  const children = /* @__PURE__ */ new Map();
6510
6661
  for (const [key, child] of Object.entries(value)) {
6511
6662
  const node = nodeFromStored(child, owner);
@@ -7293,7 +7444,7 @@ var BaseAddon = class {
7293
7444
  if (!ctx) return;
7294
7445
  const addonId = ctx.id;
7295
7446
  setImmediate(() => {
7296
- ctx.api.addons?.restartAddon?.mutate({ addonId }).then(() => {
7447
+ ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
7297
7448
  ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
7298
7449
  }).catch((err) => {
7299
7450
  ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
@@ -7787,6 +7938,356 @@ var PeerBytesTicketSchema = object({
7787
7938
  */
7788
7939
  declaredBytes: number().int().nonnegative().nullable()
7789
7940
  });
7941
+ /** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
7942
+ /** The files a kind may live in. `history` is device-history's (D850), never records. */
7943
+ var RECORD_DATABASES = ["settings", "events"];
7944
+ /** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
7945
+ var RECORD_CLASSES = [
7946
+ "config",
7947
+ "ledger",
7948
+ "audit",
7949
+ "mirror",
7950
+ "ephemeral"
7951
+ ];
7952
+ var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
7953
+ var RECORD_MAX_DATA_BYTES = 1024 * 1024;
7954
+ var RECORD_BATCH_MAX = 1e3;
7955
+ var RECORD_QUERY_MAX = 1e3;
7956
+ /** A kind in the `settings` file may not bound itself above this (D447: high volume is `events`). */
7957
+ var RECORD_SETTINGS_MAX_ROWS = 5e4;
7958
+ var PREFIX = "records/";
7959
+ /** The base of every records failure. `detail` is the human part of the message. */
7960
+ var RecordsError = class extends Error {
7961
+ code;
7962
+ detail;
7963
+ constructor(code, detail) {
7964
+ super(`${PREFIX}${code}: ${detail}`);
7965
+ this.name = "RecordsError";
7966
+ this.code = code;
7967
+ this.detail = detail;
7968
+ }
7969
+ };
7970
+ /** The keychain could not store or serve a value: explicit, never an empty string. */
7971
+ var RecordSecretUnavailableError = class extends RecordsError {
7972
+ constructor(detail) {
7973
+ super("secret-unavailable", detail);
7974
+ this.name = "RecordSecretUnavailableError";
7975
+ }
7976
+ };
7977
+ var InvalidRecordError = class extends RecordsError {
7978
+ constructor(detail) {
7979
+ super("invalid-record", detail);
7980
+ this.name = "InvalidRecordError";
7981
+ }
7982
+ };
7983
+ /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
7984
+ var DeclarationRefusedError = class extends RecordsError {
7985
+ constructor(detail) {
7986
+ super("declaration-refused", detail);
7987
+ this.name = "DeclarationRefusedError";
7988
+ }
7989
+ };
7990
+ function defOf(schema) {
7991
+ const zodBag = Reflect.get(schema, "_zod");
7992
+ if (typeof zodBag !== "object" || zodBag === null) return {};
7993
+ const def = Reflect.get(zodBag, "def");
7994
+ if (typeof def !== "object" || def === null) return {};
7995
+ return def;
7996
+ }
7997
+ function declaredHere(schema) {
7998
+ return globalRegistry.get(schema)?.secret === true;
7999
+ }
8000
+ /** Wrapper kinds whose `innerType` is the field itself. */
8001
+ var WRAPPERS = new Set([
8002
+ "optional",
8003
+ "nullable",
8004
+ "default",
8005
+ "prefault",
8006
+ "catch",
8007
+ "readonly",
8008
+ "nonoptional"
8009
+ ]);
8010
+ /**
8011
+ * The schema layers that make up ONE field: the schema itself and every
8012
+ * wrapper below it (optional / default / nullable / readonly / catch), plus
8013
+ * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8014
+ * `.transform` on `in`).
8015
+ */
8016
+ function layersOf(schema) {
8017
+ const out = [];
8018
+ const queue = [schema];
8019
+ while (queue.length > 0) {
8020
+ const s = queue.shift();
8021
+ if (!s || out.includes(s)) continue;
8022
+ out.push(s);
8023
+ const def = defOf(s);
8024
+ if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8025
+ if (def.type === "pipe") {
8026
+ if (def.in) queue.push(def.in);
8027
+ if (def.out) queue.push(def.out);
8028
+ }
8029
+ }
8030
+ return out;
8031
+ }
8032
+ /** True when any layer of this field declares `.meta({ secret: true })`. */
8033
+ function isZodSecret(schema) {
8034
+ return layersOf(schema).some(declaredHere);
8035
+ }
8036
+ /**
8037
+ * Every declared secret path in a config schema: dotted keys, `[]` for "each
8038
+ * element of this array" (`connection.password`, `rows[].token`). A declared
8039
+ * object or array is reported as one path and not descended into — everything
8040
+ * under it is secret.
8041
+ */
8042
+ function collectZodSecretPaths(schema, prefix = "") {
8043
+ if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8044
+ const paths = [];
8045
+ for (const layer of layersOf(schema)) {
8046
+ const def = defOf(layer);
8047
+ if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8048
+ else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8049
+ else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8050
+ else if (def.type === "intersection") {
8051
+ if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8052
+ if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8053
+ }
8054
+ }
8055
+ return [...new Set(paths)];
8056
+ }
8057
+ /**
8058
+ * Secret fields of a record, addressed the way a Zod schema declares them
8059
+ * (`collectZodSecretPaths`): dotted keys, `[]` for "each element of this array"
8060
+ * (`auth.accessToken`, `headers[].value`).
8061
+ *
8062
+ * Array elements are matched by a DECLARED id key (`secretArrayKeys`:
8063
+ * `{ headers: 'name' }`), never by index, so reordering a list keeps every
8064
+ * keychain ref (the same rule as `arrayItemFieldPath`). The concrete path of a
8065
+ * leaf names its element: `headers[X-Api].value`.
8066
+ *
8067
+ * Pure and browser-safe. Nothing here mutates: every transform returns a new value.
8068
+ */
8069
+ /** The array prefixes (declared form, e.g. `headers` or `a.headers`) of a path. */
8070
+ function parseSecretPath(path) {
8071
+ if (path.length === 0) throw new InvalidRecordError("an empty secret path");
8072
+ return path.split(".").map((raw) => {
8073
+ const each = raw.endsWith("[]");
8074
+ const key = each ? raw.slice(0, -2) : raw;
8075
+ if (key.length === 0) throw new InvalidRecordError(`secret path "${path}" has an empty segment`);
8076
+ return {
8077
+ key,
8078
+ each
8079
+ };
8080
+ });
8081
+ }
8082
+ /** The declared array prefixes of `path` that need an id key (`headers`, `a.rows`). */
8083
+ function secretArrayPrefixes(path) {
8084
+ const segments = parseSecretPath(path);
8085
+ const prefixes = [];
8086
+ const walked = [];
8087
+ for (const segment of segments) {
8088
+ walked.push(segment.key);
8089
+ if (segment.each) prefixes.push(walked.join("."));
8090
+ }
8091
+ return prefixes;
8092
+ }
8093
+ /**
8094
+ * Record kinds (D881): the declaration an addon makes of one kind of fact, the
8095
+ * Zod row schema that describes it, and the helper that turns the two into the
8096
+ * JSON the engine stores.
8097
+ *
8098
+ * A kind is declared ONCE, next to the code that owns it, and the engine's
8099
+ * reconciler creates its indexes - nothing creates DDL at runtime from a write.
8100
+ * Everything the generic machinery needs (secret fields, the entry descriptor)
8101
+ * is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
8102
+ * never a field name (D879).
8103
+ */
8104
+ /** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
8105
+ var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
8106
+ var RecordIndexSchema = object({
8107
+ name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
8108
+ fields: array(RecordFieldPathSchema).min(1).max(4),
8109
+ unique: boolean().optional()
8110
+ }).strict();
8111
+ var RecordRetentionSchema = union([
8112
+ object({
8113
+ ttlMs: number().int().positive(),
8114
+ from: _enum(["at", "write"])
8115
+ }).strict(),
8116
+ object({
8117
+ maxRows: number().int().positive().optional(),
8118
+ maxRowsPerDevice: number().int().positive().optional()
8119
+ }).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
8120
+ object({
8121
+ owner: string().min(1),
8122
+ reason: string().min(1)
8123
+ }).strict(),
8124
+ object({ none: string().min(1) }).strict()
8125
+ ]);
8126
+ /** The descriptor a generic entries UI reads (D881 "generic entries"). */
8127
+ var EntryDescriptorSchema = object({
8128
+ title: string().min(1),
8129
+ /** The record body field shown as the entry's name. */
8130
+ nameField: string().min(1),
8131
+ /** JSON Schema of the entry body; `secret: true` marks a password field. */
8132
+ fields: record(string(), unknown())
8133
+ }).strict();
8134
+ /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8135
+ var RecordKindDeclarationSchema = object({
8136
+ database: _enum(RECORD_DATABASES).default("settings"),
8137
+ class: _enum(RECORD_CLASSES),
8138
+ writeTrigger: string().min(1),
8139
+ device: _enum([
8140
+ "required",
8141
+ "optional",
8142
+ "none"
8143
+ ]).default("none"),
8144
+ at: _enum(["required", "none"]).default("none"),
8145
+ indexes: array(RecordIndexSchema).max(8).default([]),
8146
+ retention: RecordRetentionSchema,
8147
+ deviceRemoval: _enum(["delete", "none"]).default("none"),
8148
+ maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
8149
+ /** Derived from the Zod schema; never written by hand. */
8150
+ secretPaths: array(string().min(1)).default([]),
8151
+ /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8152
+ secretArrayKeys: record(string(), string()).default({}),
8153
+ /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8154
+ adoptsFrom: string().min(1).optional(),
8155
+ /** Kinds that must agree through `transact` sit in one file under one family name. */
8156
+ transactFamily: string().min(1).optional(),
8157
+ entry: EntryDescriptorSchema.optional()
8158
+ }).strict();
8159
+ /** The kind names: lower-case, dash separated, short enough for an index name. */
8160
+ var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
8161
+ /** Cross-field rules a declaration must satisfy. Throws {@link DeclarationRefusedError}. */
8162
+ function assertValidDeclaration(name, decl) {
8163
+ const refuse = (why) => {
8164
+ throw new DeclarationRefusedError(`kind "${name}": ${why}`);
8165
+ };
8166
+ if (!RecordKindNameSchema.safeParse(name).success) refuse("the name must be lower-case-dashed");
8167
+ const seen = /* @__PURE__ */ new Set();
8168
+ for (const index of decl.indexes) {
8169
+ if (seen.has(index.name)) refuse(`index name "${index.name}" is declared twice`);
8170
+ seen.add(index.name);
8171
+ }
8172
+ const { retention } = decl;
8173
+ const hasSecrets = decl.secretPaths.length > 0;
8174
+ if ("ttlMs" in retention) {
8175
+ if (retention.from === "at" && decl.at !== "required") refuse("a ttl from \"at\" needs at: \"required\"");
8176
+ if (hasSecrets) refuse("a kind with secret fields cannot use engine TTL (its keychain values would be orphaned)");
8177
+ }
8178
+ if ("maxRows" in retention || "maxRowsPerDevice" in retention) {
8179
+ if (retention.maxRowsPerDevice !== void 0 && decl.device !== "required") refuse("maxRowsPerDevice needs device: \"required\"");
8180
+ if (decl.at !== "required") refuse("a row bound trims the oldest \"at\": it needs at: \"required\"");
8181
+ if (hasSecrets) refuse("a kind with secret fields cannot use an engine row bound");
8182
+ const bound = Math.max(retention.maxRows ?? 0, retention.maxRowsPerDevice ?? 0);
8183
+ if (decl.database === "settings" && bound > 5e4) refuse(`a row bound above ${RECORD_SETTINGS_MAX_ROWS} belongs in database: "events" (a big delete on the settings thread stalls every configuration read)`);
8184
+ }
8185
+ if (decl.deviceRemoval === "delete" && decl.device === "none") refuse("deviceRemoval: \"delete\" needs a device: \"required\" or \"optional\"");
8186
+ for (const path of decl.secretPaths) for (const prefix of secretArrayPrefixes(path)) if (decl.secretArrayKeys[prefix] === void 0) refuse(`secret path "${path}" crosses the array "${prefix}": declare its id key in secretArrayKeys`);
8187
+ }
8188
+ function bodyFieldsOf(schema) {
8189
+ return { ...toJSONSchema(schema, {
8190
+ unrepresentable: "any",
8191
+ io: "input"
8192
+ }) };
8193
+ }
8194
+ function isRecordLike(value) {
8195
+ return typeof value === "object" && value !== null && !Array.isArray(value);
8196
+ }
8197
+ /** Does every branch of the body schema carry `field`? (A discriminated union has several.) */
8198
+ function hasNameField(json, field) {
8199
+ const branches = json["oneOf"] ?? json["anyOf"];
8200
+ if (Array.isArray(branches)) return branches.length > 0 && branches.every((b) => isRecordLike(b) && hasNameField(b, field));
8201
+ const properties = json["properties"];
8202
+ return isRecordLike(properties) && Object.prototype.hasOwnProperty.call(properties, field);
8203
+ }
8204
+ /**
8205
+ * Declare the kinds of a package. The keys are the kind names. The result is
8206
+ * what `ctx.records.declare` sends to the engine and what `ctx.records.kind`
8207
+ * types its handle from.
8208
+ */
8209
+ function defineRecordKinds(specs) {
8210
+ const out = {};
8211
+ for (const [name, spec] of Object.entries(specs)) {
8212
+ const secretPaths = collectZodSecretPaths(spec.schema);
8213
+ const nameField = spec.entry?.nameField ?? "name";
8214
+ const fields = bodyFieldsOf(spec.schema);
8215
+ if (spec.entry !== void 0 && !hasNameField(fields, nameField)) throw new DeclarationRefusedError(`kind "${name}": an entry kind's schema needs a "${nameField}" field`);
8216
+ const parsed = RecordKindDeclarationSchema.parse({
8217
+ database: spec.database,
8218
+ class: spec.class,
8219
+ writeTrigger: spec.writeTrigger,
8220
+ device: spec.device,
8221
+ at: spec.at,
8222
+ indexes: spec.indexes === void 0 ? void 0 : [...spec.indexes],
8223
+ retention: spec.retention,
8224
+ deviceRemoval: spec.deviceRemoval,
8225
+ maxDataBytes: spec.maxDataBytes,
8226
+ secretPaths: [...secretPaths],
8227
+ secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8228
+ adoptsFrom: spec.adoptsFrom,
8229
+ transactFamily: spec.transactFamily,
8230
+ entry: spec.entry === void 0 ? void 0 : {
8231
+ title: spec.entry.title,
8232
+ nameField,
8233
+ fields
8234
+ }
8235
+ });
8236
+ assertValidDeclaration(name, parsed);
8237
+ out[name] = {
8238
+ name,
8239
+ schema: spec.schema,
8240
+ declaration: parsed
8241
+ };
8242
+ }
8243
+ return out;
8244
+ }
8245
+ /**
8246
+ * Entry kinds (D881): every list of user-created entries (notification
8247
+ * targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
8248
+ * kind-specific body, and the admin UI lists/adds/edits/deletes all of them
8249
+ * through the `record-entries` capability with password fields derived from
8250
+ * the schema (`.meta({ secret: true })`).
8251
+ */
8252
+ /** The body of a plain entry: a name and the fields the kind adds. */
8253
+ function entryBody(shape) {
8254
+ return object({
8255
+ name: string().min(1),
8256
+ ...shape
8257
+ });
8258
+ }
8259
+ /**
8260
+ * Declare one entry kind. An entry is configuration: never trimmed by the
8261
+ * engine, never aged, belonging to no device.
8262
+ */
8263
+ function defineEntryKind(name, spec) {
8264
+ const defined = defineRecordKinds({ [name]: {
8265
+ schema: spec.schema,
8266
+ class: "config",
8267
+ writeTrigger: spec.writeTrigger ?? "an operator adds or edits an entry in the entries UI",
8268
+ retention: { none: "an entry goes only when the operator deletes it" },
8269
+ ...spec.database === void 0 ? {} : { database: spec.database },
8270
+ ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8271
+ ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8272
+ ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8273
+ entry: {
8274
+ title: spec.title,
8275
+ ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
8276
+ }
8277
+ } })[name];
8278
+ if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8279
+ return defined;
8280
+ }
8281
+ /**
8282
+ * Legacy source for broker entry adoption (B2): brokers live in addon-settings
8283
+ * as one row `<addonId>.brokers` whose value is an array until records-adopt
8284
+ * copies them into the entry kind.
8285
+ */
8286
+ var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
8287
+ /** The `adoptsFrom` value for an addon's broker entry kind. */
8288
+ function settingsBrokersAdoptsFrom(addonId) {
8289
+ return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
8290
+ }
7790
8291
  /** Shared Zod schemas used across streaming capabilities. */
7791
8292
  var CamProfileSchema = _enum([
7792
8293
  "high",
@@ -8310,75 +8811,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8310
8811
  kind: "mutation",
8311
8812
  auth: "admin"
8312
8813
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8313
- function defOf(schema) {
8314
- return schema._zod?.def ?? {};
8315
- }
8316
- function declaredHere(schema) {
8317
- return globalRegistry.get(schema)?.secret === true;
8318
- }
8319
- /** Wrapper kinds whose `innerType` is the field itself. */
8320
- var WRAPPERS = new Set([
8321
- "optional",
8322
- "nullable",
8323
- "default",
8324
- "prefault",
8325
- "catch",
8326
- "readonly",
8327
- "nonoptional"
8328
- ]);
8329
- /**
8330
- * The schema layers that make up ONE field: the schema itself and every
8331
- * wrapper below it (optional / default / nullable / readonly / catch), plus
8332
- * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8333
- * `.transform` on `in`).
8334
- */
8335
- function layersOf(schema) {
8336
- const out = [];
8337
- const queue = [schema];
8338
- while (queue.length > 0) {
8339
- const s = queue.shift();
8340
- if (!s || out.includes(s)) continue;
8341
- out.push(s);
8342
- const def = defOf(s);
8343
- if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8344
- if (def.type === "pipe") {
8345
- if (def.in) queue.push(def.in);
8346
- if (def.out) queue.push(def.out);
8347
- }
8348
- }
8349
- return out;
8350
- }
8351
- /** True when any layer of this field declares `.meta({ secret: true })`. */
8352
- function isZodSecret(schema) {
8353
- return layersOf(schema).some(declaredHere);
8354
- }
8355
- /**
8356
- * Every declared secret path in a config schema: dotted keys, `[]` for "each
8357
- * element of this array" (`connection.password`, `rows[].token`). A declared
8358
- * object or array is reported as one path and not descended into — everything
8359
- * under it is secret.
8360
- */
8361
- function collectZodSecretPaths(schema, prefix = "") {
8362
- if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8363
- const paths = [];
8364
- for (const layer of layersOf(schema)) {
8365
- const def = defOf(layer);
8366
- if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8367
- else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8368
- else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8369
- else if (def.type === "intersection") {
8370
- if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8371
- if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8372
- }
8373
- }
8374
- return [...new Set(paths)];
8375
- }
8376
8814
  object({
8377
8815
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8378
8816
  params: record(string(), union([string(), number()])).optional()
8379
8817
  });
8380
8818
  //#endregion
8381
- //#region ../types/dist/err-msg--2RrYiLO.mjs
8819
+ //#region ../types/dist/err-msg-BXKzRBwg.mjs
8382
8820
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8383
8821
  DeviceType["Camera"] = "camera";
8384
8822
  DeviceType["Hub"] = "hub";
@@ -8470,6 +8908,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
8470
8908
  * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
8471
8909
  * integrations sharing the same food/desiccant/hopper surface. */
8472
8910
  DeviceType["PetFeeder"] = "pet-feeder";
8911
+ /** Built-in dishwasher — program lifecycle, door / remote-start gates,
8912
+ * salt and rinse-aid levels. Installed with the `dishwasher` cap.
8913
+ * Sources: native Bosch Home Connect, reusable by similar integrations. */
8914
+ DeviceType["Dishwasher"] = "dishwasher";
8473
8915
  return DeviceType;
8474
8916
  }({});
8475
8917
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -8727,7 +9169,7 @@ function errMsg(err) {
8727
9169
  return String(err);
8728
9170
  }
8729
9171
  //#endregion
8730
- //#region ../types/dist/composition-DOwQB_Ua.mjs
9172
+ //#region ../types/dist/composition-CB6PMT9p.mjs
8731
9173
  /**
8732
9174
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8733
9175
  *
@@ -13276,8 +13718,13 @@ var AlertSeveritySchema = _enum([
13276
13718
  "info",
13277
13719
  "success",
13278
13720
  "warning",
13279
- "error"
13721
+ "error",
13722
+ "critical"
13280
13723
  ]);
13724
+ var AlertActionSchema = object({
13725
+ label: string(),
13726
+ href: string().optional()
13727
+ });
13281
13728
  var AlertStatusSchema = _enum([
13282
13729
  "active",
13283
13730
  "in-progress",
@@ -13295,6 +13742,7 @@ var AlertSchema = object({
13295
13742
  severity: AlertSeveritySchema,
13296
13743
  title: string(),
13297
13744
  message: string(),
13745
+ action: AlertActionSchema.optional(),
13298
13746
  status: AlertStatusSchema,
13299
13747
  progress: number().optional(),
13300
13748
  read: boolean(),
@@ -15879,6 +16327,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
15879
16327
  keyField: string()
15880
16328
  }).optional()
15881
16329
  })) });
16330
+ /**
16331
+ * The report of a one-shot "move this owner's plaintext secrets into the
16332
+ * keychain" run (D878). COUNTS only - never a value, never a ref.
16333
+ *
16334
+ * The owner runs it on its own rows, through its own write path; an operator
16335
+ * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
16336
+ * Dry run (`apply: false`) reports what WOULD move and changes nothing.
16337
+ */
16338
+ var RawSecretMigrationInputSchema = object({
16339
+ /** `false` (the default of the script) = report only. */
16340
+ apply: boolean() });
16341
+ var RawSecretMigrationReportSchema = object({
16342
+ apply: boolean(),
16343
+ /** Rows that can carry a secret (a profile, an enrolment). */
16344
+ rows: number().int(),
16345
+ /** Rows whose secret was plaintext when the run started. */
16346
+ raw: number().int(),
16347
+ /** Rows that already held a keychain marker when the run started. */
16348
+ markers: number().int(),
16349
+ /** Plaintext rows moved by THIS run (always 0 on a dry run). */
16350
+ migrated: number().int(),
16351
+ /** Plaintext rows left in place because the move or its read-back failed. */
16352
+ failed: number().int(),
16353
+ /** After the run: rows still holding plaintext. */
16354
+ remainingRaw: number().int(),
16355
+ /** After the run: markers the keychain could not resolve right now. */
16356
+ unresolvedMarkers: number().int(),
16357
+ /**
16358
+ * A second, redundant copy of the secrets' rows that the run found (and, on
16359
+ * `apply`, deleted after verifying the first). Owners with a single copy omit it.
16360
+ */
16361
+ redundantCopies: number().int().optional(),
16362
+ /** True when nothing is raw and every marker resolves. */
16363
+ verified: boolean()
16364
+ });
15882
16365
  /** Where a block runs. The operator chooses — a block driving a device on an
15883
16366
  * agent is the reason placement is not fixed to the hub. */
15884
16367
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -16105,6 +16588,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
16105
16588
  }), SettingsUpdateResultSchema, {
16106
16589
  kind: "mutation",
16107
16590
  auth: "admin"
16591
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
16592
+ kind: "mutation",
16593
+ auth: "admin"
16108
16594
  }), method(object({}), object({ libs: array(object({
16109
16595
  filePath: string(),
16110
16596
  content: string()
@@ -16367,6 +16853,222 @@ id: union([string(), number()]) }), {
16367
16853
  kind: "mutation",
16368
16854
  auth: "admin"
16369
16855
  });
16856
+ /**
16857
+ * records - an addon's own facts and documents (D881): ledgers, audit rows,
16858
+ * config documents, mirrors. The third storage API next to `ctx.settings`
16859
+ * (operator intent, D870) and device-history (numbers over time, D850).
16860
+ *
16861
+ * Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
16862
+ * crossed a process and stated by a hub in-process caller (`ctx.records` does
16863
+ * that with the addon id closed over). It is deliberately NOT in any input
16864
+ * schema, so a session can never supply it, and a call with no stamp is refused
16865
+ * `records/no-caller`. A kind is readable and writable only by its owner; other
16866
+ * addons go through the owner's capability.
16867
+ *
16868
+ * Every read is three-way: a row, `null`, or the call THROWS. A failed read is
16869
+ * never `[]`. Secret fields are never on the wire: a read shows the
16870
+ * redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
16871
+ * resolves itself, and a write may carry only a keychain marker bound to the
16872
+ * row's own ref.
16873
+ *
16874
+ * Internal: addons reach it through `ctx.records`, never directly.
16875
+ */
16876
+ var RecordIdSchema = string().min(1).max(256);
16877
+ /** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
16878
+ var RecordBodySchema = record(string(), unknown());
16879
+ var RecordInputSchema = object({
16880
+ id: RecordIdSchema,
16881
+ /** The device this row belongs to (D865 removal, per-device reads). */
16882
+ deviceId: number().int().optional(),
16883
+ /** The domain clock, ms: observed / created / opened. */
16884
+ at: number().int().optional(),
16885
+ /** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
16886
+ expiresAt: number().int().optional(),
16887
+ data: RecordBodySchema
16888
+ });
16889
+ var RecordViewSchema = object({
16890
+ id: string(),
16891
+ deviceId: number().int().nullable(),
16892
+ at: number().nullable(),
16893
+ expiresAt: number().nullable(),
16894
+ rev: number().int(),
16895
+ updatedAt: number(),
16896
+ data: RecordBodySchema
16897
+ });
16898
+ /** Declared index fields only. Anything else does not compile, by design. */
16899
+ var RecordWhereSchema = record(RecordFieldPathSchema, union([
16900
+ string(),
16901
+ number(),
16902
+ boolean(),
16903
+ object({ in: array(union([
16904
+ string(),
16905
+ number(),
16906
+ boolean()
16907
+ ])).min(1).max(RECORD_BATCH_MAX) }),
16908
+ object({
16909
+ gt: union([string(), number()]).optional(),
16910
+ gte: union([string(), number()]).optional(),
16911
+ lt: union([string(), number()]).optional(),
16912
+ lte: union([string(), number()]).optional()
16913
+ }).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
16914
+ ]));
16915
+ var KindShape = { kind: RecordKindNameSchema };
16916
+ var TimeWindowShape = {
16917
+ deviceId: number().int().optional(),
16918
+ atFrom: number().optional(),
16919
+ atTo: number().optional()
16920
+ };
16921
+ var RecordQueryInputSchema = object({
16922
+ ...KindShape,
16923
+ ...TimeWindowShape,
16924
+ where: RecordWhereSchema.optional(),
16925
+ /** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
16926
+ order: _enum(["at", "id"]).optional(),
16927
+ desc: boolean().optional(),
16928
+ limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
16929
+ /** Opaque keyset cursor from a previous answer. There is no offset. */
16930
+ cursor: string().min(1).optional()
16931
+ });
16932
+ var RecordQueryResultSchema = object({
16933
+ records: array(RecordViewSchema),
16934
+ nextCursor: string().nullable()
16935
+ });
16936
+ var RecordKindStateSchema = _enum([
16937
+ "created",
16938
+ "unchanged",
16939
+ "updated"
16940
+ ]);
16941
+ var DeclareKindResultSchema = object({
16942
+ kindId: number().int(),
16943
+ state: RecordKindStateSchema,
16944
+ createdIndexes: array(string()),
16945
+ /** The boot guard: the kind is empty while its legacy table still holds rows. */
16946
+ adoptionPending: object({
16947
+ legacyTable: string(),
16948
+ legacyRows: number().int()
16949
+ }).nullable()
16950
+ });
16951
+ /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16952
+ var SecretRefsList = array(string());
16953
+ var RecordSecretRefsSchema = record(string(), record(string(), string()));
16954
+ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
16955
+ kind: "mutation",
16956
+ auth: "admin"
16957
+ }), method(object({
16958
+ ...KindShape,
16959
+ id: RecordIdSchema
16960
+ }), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
16961
+ ...KindShape,
16962
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
16963
+ }), array(RecordViewSchema), { auth: "admin" }), method(object({
16964
+ ...KindShape,
16965
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
16966
+ }), RecordSecretRefsSchema, { auth: "admin" }), method(object({
16967
+ ...KindShape,
16968
+ record: RecordInputSchema,
16969
+ /** Compare-and-set. `0` means "the row must not exist". */
16970
+ ifRev: number().int().min(0).optional()
16971
+ }), object({
16972
+ rev: number().int(),
16973
+ releasedRefs: SecretRefsList
16974
+ }), {
16975
+ kind: "mutation",
16976
+ auth: "admin"
16977
+ }), method(object({
16978
+ ...KindShape,
16979
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
16980
+ }), object({
16981
+ count: number().int(),
16982
+ releasedRefs: SecretRefsList
16983
+ }), {
16984
+ kind: "mutation",
16985
+ auth: "admin"
16986
+ }), method(object({
16987
+ ...KindShape,
16988
+ id: RecordIdSchema,
16989
+ data: RecordBodySchema,
16990
+ at: number().int().nullable().optional(),
16991
+ expiresAt: number().int().nullable().optional(),
16992
+ ifRev: number().int().min(1).optional()
16993
+ }), object({
16994
+ rev: number().int(),
16995
+ releasedRefs: SecretRefsList
16996
+ }), {
16997
+ kind: "mutation",
16998
+ auth: "admin"
16999
+ }), method(object({
17000
+ ...KindShape,
17001
+ id: RecordIdSchema
17002
+ }), object({
17003
+ deleted: boolean(),
17004
+ secretRefs: SecretRefsList
17005
+ }), {
17006
+ kind: "mutation",
17007
+ auth: "admin"
17008
+ }), method(object({
17009
+ ...KindShape,
17010
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17011
+ }), object({
17012
+ deleted: number().int(),
17013
+ secretRefs: SecretRefsList
17014
+ }), {
17015
+ kind: "mutation",
17016
+ auth: "admin"
17017
+ }), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
17018
+ ...KindShape,
17019
+ ...TimeWindowShape,
17020
+ where: RecordWhereSchema.optional()
17021
+ }), object({ count: number().int() }), { auth: "admin" }), method(object({
17022
+ ...KindShape,
17023
+ deviceId: number().int().optional(),
17024
+ from: number(),
17025
+ to: number(),
17026
+ bucketMs: number().int().positive()
17027
+ }), object({ buckets: array(object({
17028
+ bucketStart: number(),
17029
+ count: number().int()
17030
+ })) }), { auth: "admin" }), method(object({
17031
+ ...KindShape,
17032
+ op: _enum([
17033
+ "sum",
17034
+ "min",
17035
+ "max",
17036
+ "count"
17037
+ ]),
17038
+ field: RecordFieldPathSchema.optional(),
17039
+ groupBy: RecordFieldPathSchema.optional(),
17040
+ where: RecordWhereSchema.optional()
17041
+ }), object({ rows: array(object({
17042
+ group: union([
17043
+ string(),
17044
+ number(),
17045
+ _null()
17046
+ ]),
17047
+ value: number().nullable()
17048
+ })) }), { auth: "admin" }), method(object({
17049
+ ...KindShape,
17050
+ deviceId: number().int().optional(),
17051
+ atBefore: number().optional(),
17052
+ where: RecordWhereSchema.optional()
17053
+ }), object({
17054
+ deleted: number().int(),
17055
+ secretRefs: SecretRefsList
17056
+ }), {
17057
+ kind: "mutation",
17058
+ auth: "admin"
17059
+ }), method(object({
17060
+ deviceId: number().int(),
17061
+ kinds: array(RecordKindNameSchema).optional()
17062
+ }), object({
17063
+ deleted: record(string(), number().int()),
17064
+ secretRefs: SecretRefsList
17065
+ }), {
17066
+ kind: "mutation",
17067
+ auth: "admin"
17068
+ }), method(object(KindShape), object({ id: number().int() }), {
17069
+ kind: "mutation",
17070
+ auth: "admin"
17071
+ });
16370
17072
  /** One table of the settings database. */
16371
17073
  var StorageTableSchema = object({
16372
17074
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -16379,6 +17081,28 @@ var StorageTableSchema = object({
16379
17081
  /** Declared by an addon since this engine process started (a running addon claims it). */
16380
17082
  declaredThisBoot: boolean()
16381
17083
  });
17084
+ /** One declared record kind (D881) as System -> Data shows it. */
17085
+ var StorageKindSchema = object({
17086
+ owner: string(),
17087
+ kind: string(),
17088
+ database: _enum(["settings", "events"]),
17089
+ class: string(),
17090
+ state: _enum([
17091
+ "declared",
17092
+ "orphaned",
17093
+ "dropped"
17094
+ ]),
17095
+ /** `null` when the caller asked for no counts (`counts: false`). */
17096
+ rows: number().int().nonnegative().nullable(),
17097
+ /** Rows x the average size of a sample; null for an empty kind. */
17098
+ bytesEstimate: number().int().nonnegative().nullable(),
17099
+ writeTrigger: string(),
17100
+ retention: RecordRetentionSchema,
17101
+ /** `true` when the kind is an entry kind (the generic entries UI lists it). */
17102
+ entry: boolean(),
17103
+ /** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
17104
+ declaration: RecordKindDeclarationSchema
17105
+ });
16382
17106
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
16383
17107
  collection: string().min(1),
16384
17108
  expectRows: number().int().nonnegative()
@@ -16388,6 +17112,87 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16388
17112
  }), {
16389
17113
  kind: "mutation",
16390
17114
  auth: "admin"
17115
+ }), method(object({
17116
+ owner: string().min(1).optional(),
17117
+ /** `false` skips the per-kind row count (a catalog read only). Default true. */
17118
+ counts: boolean().optional()
17119
+ }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17120
+ owner: string().min(1),
17121
+ kind: RecordKindNameSchema
17122
+ }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17123
+ owner: string().min(1),
17124
+ kind: RecordKindNameSchema,
17125
+ records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17126
+ /** The LAST batch: the copy is complete, the boot guard stops asking. */
17127
+ complete: boolean().optional()
17128
+ }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17129
+ kind: "mutation",
17130
+ auth: "admin"
17131
+ }), method(object({
17132
+ collection: string().min(1),
17133
+ cursor: string().optional(),
17134
+ limit: number().int().min(1).max(1e3).optional()
17135
+ }), object({
17136
+ rows: array(object({
17137
+ id: string(),
17138
+ data: record(string(), unknown())
17139
+ })),
17140
+ nextCursor: string().nullable()
17141
+ }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17142
+ /**
17143
+ * record-entries - the ONE admin surface for every list of user-created entries
17144
+ * (D881): notification targets, brokers, LLM profiles, anything an addon
17145
+ * declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
17146
+ *
17147
+ * The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
17148
+ * the entry body with `secret: true` on every credential field, so a password
17149
+ * field is derived from the schema and never from a name. `putEntry` takes the
17150
+ * redaction token for an untouched secret (the stored value is kept), a string
17151
+ * for a new one, and the clear instruction to remove one. A read never carries
17152
+ * a secret value, and a locked keychain refuses the write with
17153
+ * `records/secret-unavailable` instead of storing plaintext.
17154
+ *
17155
+ * Hub-only, served in-process (it acts for each entry's owner on the keychain).
17156
+ */
17157
+ var EntryKindInfoSchema = object({
17158
+ owner: string(),
17159
+ kind: RecordKindNameSchema,
17160
+ title: string(),
17161
+ nameField: string(),
17162
+ /** JSON Schema of the body; `secret: true` marks a password field. */
17163
+ fields: record(string(), unknown()),
17164
+ secretPaths: array(string()),
17165
+ rows: number().int().nonnegative()
17166
+ });
17167
+ var EntryViewSchema = object({
17168
+ id: RecordIdSchema,
17169
+ name: string(),
17170
+ rev: number().int(),
17171
+ updatedAt: number(),
17172
+ /** Secret fields hold the redaction token. */
17173
+ data: RecordBodySchema
17174
+ });
17175
+ var EntryAddress = {
17176
+ owner: string().min(1),
17177
+ kind: RecordKindNameSchema
17178
+ };
17179
+ method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
17180
+ ...EntryAddress,
17181
+ id: RecordIdSchema.optional(),
17182
+ data: RecordBodySchema,
17183
+ ifRev: number().int().min(1).optional()
17184
+ }), object({
17185
+ id: string(),
17186
+ rev: number().int()
17187
+ }), {
17188
+ kind: "mutation",
17189
+ auth: "admin"
17190
+ }), method(object({
17191
+ ...EntryAddress,
17192
+ id: RecordIdSchema
17193
+ }), object({ deleted: boolean() }), {
17194
+ kind: "mutation",
17195
+ auth: "admin"
16391
17196
  });
16392
17197
  /**
16393
17198
  * `keychain` — the hub's encrypted store of secret values (D787).
@@ -39835,6 +40640,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
39835
40640
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
39836
40641
  kind: "mutation",
39837
40642
  auth: "admin"
40643
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
40644
+ kind: "mutation",
40645
+ auth: "admin"
39838
40646
  }), method(ProfileRefInputSchema, _void(), {
39839
40647
  kind: "mutation",
39840
40648
  auth: "admin"
@@ -50382,6 +51190,41 @@ var ServerRollbackInfoSchema = object({
50382
51190
  atMs: number(),
50383
51191
  reason: string()
50384
51192
  });
51193
+ /**
51194
+ * The runner boot check (D877): the runners this node PLANNED (hub: one per
51195
+ * `resolveRunnerId` over its forked addons; agent: the runners its process
51196
+ * service holds, because only the hub plans) against the states the process
51197
+ * service reports. Kept in memory, recomputed by the same one-shot check after
51198
+ * every boot, served on `getServerPackageStatus`.
51199
+ *
51200
+ * `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
51201
+ * refusal (an addon that said "I will not start, and here is why"), `missing` a
51202
+ * planned runner the process service has no entry for.
51203
+ */
51204
+ var RunnerRefusalSchema = object({
51205
+ runnerId: string(),
51206
+ addonIds: array(string()),
51207
+ reason: string()
51208
+ });
51209
+ var RunnerBootCheckSchema = object({
51210
+ checkedAtMs: number(),
51211
+ /** Runners planned for this node. */
51212
+ expected: number(),
51213
+ /** Planned runners whose process is `running`. */
51214
+ running: number(),
51215
+ failed: array(string()),
51216
+ refused: array(RunnerRefusalSchema),
51217
+ missing: array(string()),
51218
+ /**
51219
+ * Runners still on their way: `starting`, or `crashed` waiting on a backoff
51220
+ * respawn. The check is FINAL only when this is empty; until then nothing is
51221
+ * pushed and the verdict is re-evaluated on the next runner state change.
51222
+ * Optional for version skew (absent = settled).
51223
+ */
51224
+ pending: array(string()).optional(),
51225
+ /** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
51226
+ planKnown: boolean()
51227
+ });
50385
51228
  var ServerPackageStatusSchema = object({
50386
51229
  /** Root package name (`@camstack/server` on the hub). */
50387
51230
  packageName: string(),
@@ -50444,7 +51287,14 @@ var ServerPackageStatusSchema = object({
50444
51287
  * for version skew: an older provider's payload simply omits it, and an
50445
51288
  * absent wrapper is unknown — never `native`.
50446
51289
  */
50447
- wrapper: WrapperIdentitySchema.optional()
51290
+ wrapper: WrapperIdentitySchema.optional(),
51291
+ /**
51292
+ * What this node PLANNED to run against what its process service reports
51293
+ * (D877). Absent until the one-shot boot check has run (~60 s after boot) and
51294
+ * on a provider that predates it. Absent is "not checked yet", never "all
51295
+ * well": a consumer that needs the answer treats it as pending.
51296
+ */
51297
+ runners: RunnerBootCheckSchema.optional()
50448
51298
  });
50449
51299
  var ServerUpdateCheckResultSchema = object({
50450
51300
  packageName: string(),
@@ -50495,6 +51345,13 @@ var ServerUpdateOutcomeSchema = _enum([
50495
51345
  "refused",
50496
51346
  "failed"
50497
51347
  ]);
51348
+ /** One addon the pre-flight found the target version would refuse (D877). */
51349
+ var UpdateBlockerSchema = object({
51350
+ addonId: string(),
51351
+ reason: string(),
51352
+ /** What the operator does about it. */
51353
+ remedy: string()
51354
+ });
50498
51355
  var ServerUpdateActionResultSchema = object({
50499
51356
  accepted: boolean(),
50500
51357
  targetVersion: string().nullable(),
@@ -50512,14 +51369,27 @@ var ServerUpdateActionResultSchema = object({
50512
51369
  * The failure itself, verbatim enough to act on (the npm output for a
50513
51370
  * staging install). Non-null only for `failed`.
50514
51371
  */
50515
- error: string().nullable().optional()
51372
+ error: string().nullable().optional(),
51373
+ /**
51374
+ * The addons the target version would refuse to start on this node's live
51375
+ * store (D877), present when the pre-flight refused the update
51376
+ * (`reason: 'addon-would-refuse'`). Optional for version skew.
51377
+ */
51378
+ blockers: array(UpdateBlockerSchema).optional()
50516
51379
  });
50517
51380
  method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
50518
51381
  kind: "mutation",
50519
51382
  auth: "admin"
50520
- }), method(object({
50521
- /** Explicit target version; omitted = latest from the registry. */
50522
- version: string().optional() }), ServerUpdateActionResultSchema, {
51383
+ }), method(object({
51384
+ /** Explicit target version; omitted = latest from the registry. */
51385
+ version: string().optional(),
51386
+ /**
51387
+ * Apply even though the pre-flight (D877) found addons the target would
51388
+ * refuse to start. Off by default: those addons stay down until the
51389
+ * remedy is run, which is the incident this gate exists to prevent.
51390
+ */
51391
+ acknowledgeRefusals: boolean().optional()
51392
+ }), ServerUpdateActionResultSchema, {
50523
51393
  kind: "mutation",
50524
51394
  auth: "admin",
50525
51395
  timeoutMs: 16 * 6e4
@@ -53037,7 +53907,9 @@ var ManifestShapeSchema = object({
53037
53907
  var AddonProcessSchema = object({
53038
53908
  pid: number().optional(),
53039
53909
  mode: string(),
53040
- state: string()
53910
+ state: string(),
53911
+ /** Why the runner is `refused` (an addon's own words), when it is (D877). */
53912
+ reason: string().optional()
53041
53913
  });
53042
53914
  /**
53043
53915
  * Per-addon health snapshot from the kernel's AddonHealthMonitor.
@@ -53805,7 +54677,8 @@ var batteryCapability = {
53805
54677
  DeviceType.Button,
53806
54678
  DeviceType.Switch,
53807
54679
  DeviceType.PetFeeder,
53808
- DeviceType.Container
54680
+ DeviceType.Container,
54681
+ DeviceType.Thermostat
53809
54682
  ],
53810
54683
  methods: {
53811
54684
  /**
@@ -55305,6 +56178,125 @@ onStatusChanged: { data: object({
55305
56178
  * whether persisting is worth a SQLite commit. */
55306
56179
  volatileStateFields: ["lastChangedAt"]
55307
56180
  };
56181
+ /**
56182
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
56183
+ * consumable levels (salt, rinse aid) and common program options.
56184
+ *
56185
+ * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
56186
+ * by any integration that exposes the same program / option surface.
56187
+ *
56188
+ * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
56189
+ * provider refreshes the slice on an interval and eagerly after commands.
56190
+ */
56191
+ var DishwasherStateSchema = _enum([
56192
+ "idle",
56193
+ "running",
56194
+ "paused",
56195
+ "finished",
56196
+ "error",
56197
+ "unavailable"
56198
+ ]);
56199
+ var DishwasherConsumableLevelSchema = _enum([
56200
+ "ok",
56201
+ "low",
56202
+ "empty"
56203
+ ]);
56204
+ var DishwasherStatusSchema = object({
56205
+ state: DishwasherStateSchema,
56206
+ /** Active program id/name, or null when none selected / unknown. */
56207
+ program: string().nullable(),
56208
+ /** Program tokens the hardware accepts — drives the UI selector. */
56209
+ availablePrograms: array(string()),
56210
+ /** Minutes remaining on the active cycle, or null when not running. */
56211
+ remainingMinutes: number().int().nonnegative().nullable(),
56212
+ /** Cycle completion 0..100, or null when not applicable. */
56213
+ progressPercent: number().min(0).max(100).nullable(),
56214
+ /** True when the door is reported open. */
56215
+ doorOpen: boolean(),
56216
+ /** True when remote start is allowed (door closed, power on, etc.). */
56217
+ remoteStartAllowed: boolean(),
56218
+ /** Main power / switched-on state. */
56219
+ powerOn: boolean(),
56220
+ saltLevel: DishwasherConsumableLevelSchema.nullable(),
56221
+ rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
56222
+ halfLoad: boolean(),
56223
+ hygienePlus: boolean(),
56224
+ errorCode: number().nullable(),
56225
+ errorLabel: string().nullable(),
56226
+ lastFetchedAt: number()
56227
+ });
56228
+ var dishwasherCapability = {
56229
+ name: "dishwasher",
56230
+ scope: "device",
56231
+ deviceNative: true,
56232
+ mode: "singleton",
56233
+ deviceTypes: [DeviceType.Dishwasher],
56234
+ methods: {
56235
+ start: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56236
+ kind: "mutation",
56237
+ auth: "protected"
56238
+ }),
56239
+ pause: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56240
+ kind: "mutation",
56241
+ auth: "protected"
56242
+ }),
56243
+ stop: method(object({ deviceId: number().int().nonnegative() }), _void(), {
56244
+ kind: "mutation",
56245
+ auth: "protected"
56246
+ }),
56247
+ setProgram: method(object({
56248
+ deviceId: number().int().nonnegative(),
56249
+ program: string().min(1)
56250
+ }), _void(), {
56251
+ kind: "mutation",
56252
+ auth: "protected"
56253
+ }),
56254
+ setPower: method(object({
56255
+ deviceId: number().int().nonnegative(),
56256
+ on: boolean()
56257
+ }), _void(), {
56258
+ kind: "mutation",
56259
+ auth: "protected"
56260
+ }),
56261
+ setHalfLoad: method(object({
56262
+ deviceId: number().int().nonnegative(),
56263
+ on: boolean()
56264
+ }), _void(), {
56265
+ kind: "mutation",
56266
+ auth: "protected"
56267
+ }),
56268
+ setHygienePlus: method(object({
56269
+ deviceId: number().int().nonnegative(),
56270
+ on: boolean()
56271
+ }), _void(), {
56272
+ kind: "mutation",
56273
+ auth: "protected"
56274
+ }),
56275
+ setOption: method(object({
56276
+ deviceId: number().int().nonnegative(),
56277
+ key: string().min(1),
56278
+ value: union([
56279
+ boolean(),
56280
+ string(),
56281
+ number()
56282
+ ])
56283
+ }), _void(), {
56284
+ kind: "mutation",
56285
+ auth: "protected"
56286
+ })
56287
+ },
56288
+ status: {
56289
+ schema: DishwasherStatusSchema,
56290
+ kind: "poll"
56291
+ },
56292
+ runtimeState: DishwasherStatusSchema,
56293
+ durability: "session",
56294
+ history: { fields: { progressPercent: {
56295
+ kind: "gauge",
56296
+ unit: "%",
56297
+ deadband: 2
56298
+ } } }
56299
+ };
55308
56300
  var DoorbellStatusSchema = object({
55309
56301
  /** Ms epoch of the last press. null = never observed since this provider started. */
55310
56302
  lastPressedAt: number().nullable(),
@@ -56107,6 +57099,32 @@ var gasCapability = {
56107
57099
  * whether persisting is worth a SQLite commit. */
56108
57100
  volatileStateFields: ["lastChangedAt"]
56109
57101
  };
57102
+ var HeatingValveStatusSchema = object({
57103
+ /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
57104
+ position: number().min(0).max(100).nullable(),
57105
+ /** Ms epoch when the slice was last updated (push or poll). */
57106
+ lastFetchedAt: number()
57107
+ });
57108
+ var heatingValveCapability = {
57109
+ name: "heating-valve",
57110
+ scope: "device",
57111
+ deviceNative: true,
57112
+ mode: "singleton",
57113
+ deviceTypes: [DeviceType.Thermostat],
57114
+ methods: {},
57115
+ status: {
57116
+ schema: HeatingValveStatusSchema,
57117
+ kind: "push"
57118
+ },
57119
+ runtimeState: HeatingValveStatusSchema,
57120
+ durability: "session",
57121
+ history: { fields: { position: {
57122
+ kind: "gauge",
57123
+ unit: "%",
57124
+ deadband: 1
57125
+ } } },
57126
+ volatileStateFields: ["lastFetchedAt"]
57127
+ };
56110
57128
  /**
56111
57129
  * Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
56112
57130
  * an on/off actuator with an optional target-humidity setpoint and an
@@ -63803,7 +64821,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
63803
64821
  kind: "mutation",
63804
64822
  auth: "admin",
63805
64823
  access: "delete"
63806
- }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(object({
64824
+ }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
64825
+ kind: "mutation",
64826
+ auth: "admin",
64827
+ access: "create"
64828
+ }), method(object({
63807
64829
  userId: string(),
63808
64830
  code: string()
63809
64831
  }), object({ valid: boolean() }), {
@@ -65523,6 +66545,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
65523
66545
  dayNight: dayNightCapability,
65524
66546
  deviceDiscovery: deviceDiscoveryCapability,
65525
66547
  deviceStatus: deviceStatusCapability,
66548
+ dishwasher: dishwasherCapability,
65526
66549
  doorbell: doorbellCapability,
65527
66550
  enumSensor: enumSensorCapability,
65528
66551
  eventEmitter: eventEmitterCapability,
@@ -65530,6 +66553,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
65530
66553
  featureProbe: featureProbeCapability,
65531
66554
  flood: floodCapability,
65532
66555
  gas: gasCapability,
66556
+ heatingValve: heatingValveCapability,
65533
66557
  humidifier: humidifierCapability,
65534
66558
  humiditySensor: humiditySensorCapability,
65535
66559
  image: imageCapability,
@@ -65615,13 +66639,14 @@ var BaseDevice = class {
65615
66639
  get state() {
65616
66640
  if (!this._stateProxyCache) {
65617
66641
  const cache = {};
65618
- const handler = { get: (_target, key) => {
66642
+ const handler = { get: (target, key) => {
65619
66643
  const k = key;
65620
- if (k in cache) return cache[k];
66644
+ const existing = Reflect.get(target, k);
66645
+ if (existing !== void 0) return existing;
65621
66646
  const cap = DEVICE_LOCAL_STATE_CAPS[k];
65622
66647
  if (!cap) return void 0;
65623
66648
  const proxy = this.sliceProxy(cap);
65624
- cache[k] = proxy;
66649
+ Reflect.set(target, k, proxy);
65625
66650
  return proxy;
65626
66651
  } };
65627
66652
  this._stateProxyCache = new Proxy(cache, handler);
@@ -65820,7 +66845,7 @@ var BaseDevice = class {
65820
66845
  async updateSourceInfo(patch) {
65821
66846
  const next = mergeSourceInfo(this.sourceInfo, patch);
65822
66847
  this._sourceInfoCache = Object.freeze({ ...next });
65823
- const action = this.ctx.api?.deviceManager?.setMetadata;
66848
+ const action = this.ctx.api.deviceManager?.setMetadata;
65824
66849
  if (action) try {
65825
66850
  await action.mutate({
65826
66851
  deviceId: this.id,
@@ -65855,7 +66880,7 @@ var BaseDevice = class {
65855
66880
  * device boot on a meta refresh.
65856
66881
  */
65857
66882
  async refreshFeatures() {
65858
- const action = this.ctx.api?.deviceManager?.registerDevice;
66883
+ const action = this.ctx.api.deviceManager?.registerDevice;
65859
66884
  if (!action) return;
65860
66885
  try {
65861
66886
  await action.mutate({
@@ -66254,6 +67279,12 @@ var BaseDeviceProvider = class extends BaseAddon {
66254
67279
  provider: this
66255
67280
  }];
66256
67281
  }
67282
+ /** Flatten `super.onInitialize()` whether it returned an array or an envelope. */
67283
+ providerRegistrationsFromSuper(result) {
67284
+ if (Array.isArray(result)) return result;
67285
+ if (result !== void 0 && result.providers !== void 0) return [...result.providers];
67286
+ return [];
67287
+ }
66257
67288
  async onShutdown() {
66258
67289
  this._restoreShuttingDown = true;
66259
67290
  this.cancelRestoreRetries();
@@ -66780,7 +67811,7 @@ var BaseDeviceProvider = class extends BaseAddon {
66780
67811
  return toDeviceSummary(device, this.addonId);
66781
67812
  }
66782
67813
  };
66783
- 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;
67814
+ 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;
66784
67815
  new Set(Object.values(DeviceType));
66785
67816
  Object.freeze({
66786
67817
  "accessories.getStatus": {
@@ -67929,6 +68960,12 @@ Object.freeze({
67929
68960
  addonId: null,
67930
68961
  access: "view"
67931
68962
  },
68963
+ "coreBlocks.migrateRawSecrets": {
68964
+ capName: "core-blocks",
68965
+ capScope: "system",
68966
+ addonId: null,
68967
+ access: "create"
68968
+ },
67932
68969
  "coreBlocks.restart": {
67933
68970
  capName: "core-blocks",
67934
68971
  capScope: "system",
@@ -69195,6 +70232,60 @@ Object.freeze({
69195
70232
  addonId: null,
69196
70233
  access: "view"
69197
70234
  },
70235
+ "dishwasher.getStatus": {
70236
+ capName: "dishwasher",
70237
+ capScope: "device",
70238
+ addonId: null,
70239
+ access: "view"
70240
+ },
70241
+ "dishwasher.pause": {
70242
+ capName: "dishwasher",
70243
+ capScope: "device",
70244
+ addonId: null,
70245
+ access: "create"
70246
+ },
70247
+ "dishwasher.setHalfLoad": {
70248
+ capName: "dishwasher",
70249
+ capScope: "device",
70250
+ addonId: null,
70251
+ access: "create"
70252
+ },
70253
+ "dishwasher.setHygienePlus": {
70254
+ capName: "dishwasher",
70255
+ capScope: "device",
70256
+ addonId: null,
70257
+ access: "create"
70258
+ },
70259
+ "dishwasher.setOption": {
70260
+ capName: "dishwasher",
70261
+ capScope: "device",
70262
+ addonId: null,
70263
+ access: "create"
70264
+ },
70265
+ "dishwasher.setPower": {
70266
+ capName: "dishwasher",
70267
+ capScope: "device",
70268
+ addonId: null,
70269
+ access: "create"
70270
+ },
70271
+ "dishwasher.setProgram": {
70272
+ capName: "dishwasher",
70273
+ capScope: "device",
70274
+ addonId: null,
70275
+ access: "create"
70276
+ },
70277
+ "dishwasher.start": {
70278
+ capName: "dishwasher",
70279
+ capScope: "device",
70280
+ addonId: null,
70281
+ access: "create"
70282
+ },
70283
+ "dishwasher.stop": {
70284
+ capName: "dishwasher",
70285
+ capScope: "device",
70286
+ addonId: null,
70287
+ access: "create"
70288
+ },
69198
70289
  "doorbell.getStatus": {
69199
70290
  capName: "doorbell",
69200
70291
  capScope: "device",
@@ -69405,6 +70496,12 @@ Object.freeze({
69405
70496
  addonId: null,
69406
70497
  access: "view"
69407
70498
  },
70499
+ "heatingValve.getStatus": {
70500
+ capName: "heating-valve",
70501
+ capScope: "device",
70502
+ addonId: null,
70503
+ access: "view"
70504
+ },
69408
70505
  "humidifier.getStatus": {
69409
70506
  capName: "humidifier",
69410
70507
  capScope: "device",
@@ -69789,6 +70886,12 @@ Object.freeze({
69789
70886
  addonId: null,
69790
70887
  access: "view"
69791
70888
  },
70889
+ "llm.migrateRawSecrets": {
70890
+ capName: "llm",
70891
+ capScope: "system",
70892
+ addonId: null,
70893
+ access: "create"
70894
+ },
69792
70895
  "llm.resolveModelRef": {
69793
70896
  capName: "llm",
69794
70897
  capScope: "system",
@@ -72675,6 +73778,30 @@ Object.freeze({
72675
73778
  addonId: null,
72676
73779
  access: "create"
72677
73780
  },
73781
+ "recordEntries.deleteEntry": {
73782
+ capName: "record-entries",
73783
+ capScope: "system",
73784
+ addonId: null,
73785
+ access: "delete"
73786
+ },
73787
+ "recordEntries.listEntries": {
73788
+ capName: "record-entries",
73789
+ capScope: "system",
73790
+ addonId: null,
73791
+ access: "view"
73792
+ },
73793
+ "recordEntries.listEntryKinds": {
73794
+ capName: "record-entries",
73795
+ capScope: "system",
73796
+ addonId: null,
73797
+ access: "view"
73798
+ },
73799
+ "recordEntries.putEntry": {
73800
+ capName: "record-entries",
73801
+ capScope: "system",
73802
+ addonId: null,
73803
+ access: "create"
73804
+ },
72678
73805
  "recording.getAvailability": {
72679
73806
  capName: "recording",
72680
73807
  capScope: "device",
@@ -72975,6 +74102,102 @@ Object.freeze({
72975
74102
  addonId: null,
72976
74103
  access: "view"
72977
74104
  },
74105
+ "records.aggregate": {
74106
+ capName: "records",
74107
+ capScope: "system",
74108
+ addonId: null,
74109
+ access: "view"
74110
+ },
74111
+ "records.allocateId": {
74112
+ capName: "records",
74113
+ capScope: "system",
74114
+ addonId: null,
74115
+ access: "create"
74116
+ },
74117
+ "records.count": {
74118
+ capName: "records",
74119
+ capScope: "system",
74120
+ addonId: null,
74121
+ access: "view"
74122
+ },
74123
+ "records.declareKinds": {
74124
+ capName: "records",
74125
+ capScope: "system",
74126
+ addonId: null,
74127
+ access: "create"
74128
+ },
74129
+ "records.delete": {
74130
+ capName: "records",
74131
+ capScope: "system",
74132
+ addonId: null,
74133
+ access: "delete"
74134
+ },
74135
+ "records.deleteDevice": {
74136
+ capName: "records",
74137
+ capScope: "system",
74138
+ addonId: null,
74139
+ access: "delete"
74140
+ },
74141
+ "records.deleteMany": {
74142
+ capName: "records",
74143
+ capScope: "system",
74144
+ addonId: null,
74145
+ access: "delete"
74146
+ },
74147
+ "records.deleteWhere": {
74148
+ capName: "records",
74149
+ capScope: "system",
74150
+ addonId: null,
74151
+ access: "delete"
74152
+ },
74153
+ "records.get": {
74154
+ capName: "records",
74155
+ capScope: "system",
74156
+ addonId: null,
74157
+ access: "view"
74158
+ },
74159
+ "records.getMany": {
74160
+ capName: "records",
74161
+ capScope: "system",
74162
+ addonId: null,
74163
+ access: "view"
74164
+ },
74165
+ "records.histogram": {
74166
+ capName: "records",
74167
+ capScope: "system",
74168
+ addonId: null,
74169
+ access: "view"
74170
+ },
74171
+ "records.patch": {
74172
+ capName: "records",
74173
+ capScope: "system",
74174
+ addonId: null,
74175
+ access: "create"
74176
+ },
74177
+ "records.put": {
74178
+ capName: "records",
74179
+ capScope: "system",
74180
+ addonId: null,
74181
+ access: "create"
74182
+ },
74183
+ "records.putMany": {
74184
+ capName: "records",
74185
+ capScope: "system",
74186
+ addonId: null,
74187
+ access: "create"
74188
+ },
74189
+ "records.query": {
74190
+ capName: "records",
74191
+ capScope: "system",
74192
+ addonId: null,
74193
+ access: "view"
74194
+ },
74195
+ "records.secretRefs": {
74196
+ capName: "records",
74197
+ capScope: "system",
74198
+ addonId: null,
74199
+ access: "view"
74200
+ },
72978
74201
  "sceneMonitor.captureReference": {
72979
74202
  capName: "scene-monitor",
72980
74203
  capScope: "device",
@@ -73407,18 +74630,48 @@ Object.freeze({
73407
74630
  addonId: null,
73408
74631
  access: "create"
73409
74632
  },
74633
+ "storageAdmin.adoptRecords": {
74634
+ capName: "storage-admin",
74635
+ capScope: "system",
74636
+ addonId: null,
74637
+ access: "create"
74638
+ },
73410
74639
  "storageAdmin.dropCollection": {
73411
74640
  capName: "storage-admin",
73412
74641
  capScope: "system",
73413
74642
  addonId: null,
73414
74643
  access: "delete"
73415
74644
  },
74645
+ "storageAdmin.isAdoptedLegacyTable": {
74646
+ capName: "storage-admin",
74647
+ capScope: "system",
74648
+ addonId: null,
74649
+ access: "view"
74650
+ },
74651
+ "storageAdmin.listKinds": {
74652
+ capName: "storage-admin",
74653
+ capScope: "system",
74654
+ addonId: null,
74655
+ access: "view"
74656
+ },
73416
74657
  "storageAdmin.listTables": {
73417
74658
  capName: "storage-admin",
73418
74659
  capScope: "system",
73419
74660
  addonId: null,
73420
74661
  access: "view"
73421
74662
  },
74663
+ "storageAdmin.readLegacyCollection": {
74664
+ capName: "storage-admin",
74665
+ capScope: "system",
74666
+ addonId: null,
74667
+ access: "view"
74668
+ },
74669
+ "storageAdmin.readRecords": {
74670
+ capName: "storage-admin",
74671
+ capScope: "system",
74672
+ addonId: null,
74673
+ access: "view"
74674
+ },
73422
74675
  "storageEvictable.evict": {
73423
74676
  capName: "storage-evictable",
73424
74677
  capScope: "system",
@@ -74331,6 +75584,12 @@ Object.freeze({
74331
75584
  addonId: null,
74332
75585
  access: "view"
74333
75586
  },
75587
+ "userManagement.migrateRawSecrets": {
75588
+ capName: "user-management",
75589
+ capScope: "system",
75590
+ addonId: null,
75591
+ access: "create"
75592
+ },
74334
75593
  "userManagement.oauthExchangeCode": {
74335
75594
  capName: "user-management",
74336
75595
  capScope: "system",
@@ -74830,7 +76089,7 @@ Object.freeze({
74830
76089
  access: "create"
74831
76090
  }
74832
76091
  });
74833
- 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;
76092
+ 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;
74834
76093
  DeviceFeature.BatteryOperated;
74835
76094
  Object.freeze({
74836
76095
  "accessories.getStatus": [{
@@ -75654,6 +76913,51 @@ Object.freeze({
75654
76913
  form: "single",
75655
76914
  optional: false
75656
76915
  }],
76916
+ "dishwasher.getStatus": [{
76917
+ name: "deviceId",
76918
+ form: "single",
76919
+ optional: false
76920
+ }],
76921
+ "dishwasher.pause": [{
76922
+ name: "deviceId",
76923
+ form: "single",
76924
+ optional: false
76925
+ }],
76926
+ "dishwasher.setHalfLoad": [{
76927
+ name: "deviceId",
76928
+ form: "single",
76929
+ optional: false
76930
+ }],
76931
+ "dishwasher.setHygienePlus": [{
76932
+ name: "deviceId",
76933
+ form: "single",
76934
+ optional: false
76935
+ }],
76936
+ "dishwasher.setOption": [{
76937
+ name: "deviceId",
76938
+ form: "single",
76939
+ optional: false
76940
+ }],
76941
+ "dishwasher.setPower": [{
76942
+ name: "deviceId",
76943
+ form: "single",
76944
+ optional: false
76945
+ }],
76946
+ "dishwasher.setProgram": [{
76947
+ name: "deviceId",
76948
+ form: "single",
76949
+ optional: false
76950
+ }],
76951
+ "dishwasher.start": [{
76952
+ name: "deviceId",
76953
+ form: "single",
76954
+ optional: false
76955
+ }],
76956
+ "dishwasher.stop": [{
76957
+ name: "deviceId",
76958
+ form: "single",
76959
+ optional: false
76960
+ }],
75657
76961
  "doorbell.getStatus": [{
75658
76962
  name: "deviceId",
75659
76963
  form: "single",
@@ -75723,6 +77027,11 @@ Object.freeze({
75723
77027
  form: "single",
75724
77028
  optional: false
75725
77029
  }],
77030
+ "heatingValve.getStatus": [{
77031
+ name: "deviceId",
77032
+ form: "single",
77033
+ optional: false
77034
+ }],
75726
77035
  "humidifier.getStatus": [{
75727
77036
  name: "deviceId",
75728
77037
  form: "single",
@@ -77007,6 +78316,37 @@ Object.freeze({
77007
78316
  form: "single",
77008
78317
  optional: false
77009
78318
  }],
78319
+ "records.count": [{
78320
+ name: "deviceId",
78321
+ form: "single",
78322
+ optional: true
78323
+ }],
78324
+ "records.deleteDevice": [{
78325
+ name: "deviceId",
78326
+ form: "single",
78327
+ optional: false
78328
+ }],
78329
+ "records.deleteWhere": [{
78330
+ name: "deviceId",
78331
+ form: "single",
78332
+ optional: true
78333
+ }],
78334
+ "records.histogram": [{
78335
+ name: "deviceId",
78336
+ form: "single",
78337
+ optional: true
78338
+ }],
78339
+ "records.putMany": [{
78340
+ name: "records",
78341
+ form: "object-array",
78342
+ optional: false,
78343
+ itemField: "deviceId"
78344
+ }],
78345
+ "records.query": [{
78346
+ name: "deviceId",
78347
+ form: "single",
78348
+ optional: true
78349
+ }],
77010
78350
  "sceneMonitor.captureReference": [{
77011
78351
  name: "deviceId",
77012
78352
  form: "single",
@@ -77123,6 +78463,17 @@ Object.freeze({
77123
78463
  form: "single",
77124
78464
  optional: false
77125
78465
  }],
78466
+ "storageAdmin.adoptRecords": [{
78467
+ name: "records",
78468
+ form: "object-array",
78469
+ optional: false,
78470
+ itemField: "deviceId"
78471
+ }],
78472
+ "storageAdmin.readRecords": [{
78473
+ name: "deviceId",
78474
+ form: "single",
78475
+ optional: true
78476
+ }],
77126
78477
  "streamBroker.acquireEgressTranscode": [{
77127
78478
  name: "deviceId",
77128
78479
  form: "single",
@@ -78922,6 +80273,12 @@ Object.defineProperty(exports, "MediaPlayerRepeatSchema", {
78922
80273
  return MediaPlayerRepeatSchema;
78923
80274
  }
78924
80275
  });
80276
+ Object.defineProperty(exports, "RecordSecretUnavailableError", {
80277
+ enumerable: true,
80278
+ get: function() {
80279
+ return RecordSecretUnavailableError;
80280
+ }
80281
+ });
78925
80282
  Object.defineProperty(exports, "TargetSchema", {
78926
80283
  enumerable: true,
78927
80284
  get: function() {
@@ -79084,6 +80441,18 @@ Object.defineProperty(exports, "createEvent", {
79084
80441
  return createEvent;
79085
80442
  }
79086
80443
  });
80444
+ Object.defineProperty(exports, "defineEntryKind", {
80445
+ enumerable: true,
80446
+ get: function() {
80447
+ return defineEntryKind;
80448
+ }
80449
+ });
80450
+ Object.defineProperty(exports, "defineRecordKinds", {
80451
+ enumerable: true,
80452
+ get: function() {
80453
+ return defineRecordKinds;
80454
+ }
80455
+ });
79087
80456
  Object.defineProperty(exports, "deviceAdminLinkCapability", {
79088
80457
  enumerable: true,
79089
80458
  get: function() {
@@ -79108,6 +80477,12 @@ Object.defineProperty(exports, "discriminatedUnion", {
79108
80477
  return discriminatedUnion;
79109
80478
  }
79110
80479
  });
80480
+ Object.defineProperty(exports, "entryBody", {
80481
+ enumerable: true,
80482
+ get: function() {
80483
+ return entryBody;
80484
+ }
80485
+ });
79111
80486
  Object.defineProperty(exports, "enumSensorCapability", {
79112
80487
  enumerable: true,
79113
80488
  get: function() {
@@ -79282,6 +80657,12 @@ Object.defineProperty(exports, "scriptRunnerCapability", {
79282
80657
  return scriptRunnerCapability;
79283
80658
  }
79284
80659
  });
80660
+ Object.defineProperty(exports, "settingsBrokersAdoptsFrom", {
80661
+ enumerable: true,
80662
+ get: function() {
80663
+ return settingsBrokersAdoptsFrom;
80664
+ }
80665
+ });
79285
80666
  Object.defineProperty(exports, "smokeCapability", {
79286
80667
  enumerable: true,
79287
80668
  get: function() {