@camstack/addon-training 0.1.54 → 0.1.57

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 (23) hide show
  1. package/dist/{MotionZonesSettings-DyDTHPys.mjs → MotionZonesSettings-B1MFjLvT.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-axajI4sK.mjs → PrivacyMaskSettings-BsCT1qXL.mjs} +2 -2
  3. package/dist/{SceneMonitorEditor-BjLJsI6P.mjs → SceneMonitorEditor-DYTrCHNh.mjs} +1 -1
  4. package/dist/_stub.js +6159 -5653
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CTdPJIbP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-Bas5pktv.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-o-C5PmDm.mjs +26 -0
  7. package/dist/addon-training.css +1 -1
  8. package/dist/{dist-91Rnxphf.mjs → dist-CQWU7Lpk.js} +874 -29
  9. package/dist/{dist-21g95f5X.js → dist-RNhXRDvn.mjs} +662 -211
  10. package/dist/{hostInit-CTK-hcBi.mjs → hostInit-jpGr5jVe.mjs} +3 -3
  11. package/dist/{icons-BnErSNU6.mjs → icons-DG9GIB-J.mjs} +1386 -1448
  12. package/dist/index.js +1 -1
  13. package/dist/orchestrator/training.addon.js +64 -104
  14. package/dist/orchestrator/training.addon.mjs +64 -104
  15. package/dist/{player-overlays-B4kmFVR9.mjs → player-overlays-Cdh_GNzb.mjs} +1 -1
  16. package/dist/providers/modal/training-modal.addon.js +22 -1
  17. package/dist/providers/modal/training-modal.addon.mjs +19 -1
  18. package/dist/remoteEntry.js +1 -1
  19. package/dist/{responsive-9DT2DlLH.mjs → responsive-DzwIz4dK.mjs} +1 -1
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-Cui1iZ9z.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CxB3fjqQ.mjs} +1 -1
  21. package/dist/{zoom-out-hR5SOKZW.mjs → zoom-out-BqtOwgKe.mjs} +170 -108
  22. package/package.json +1 -1
  23. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-bhLaA3pg.mjs +0 -26
@@ -1,37 +1,4 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
- var __exportAll = (all, no_symbols) => {
11
- let target = {};
12
- for (var name in all) __defProp(target, name, {
13
- get: all[name],
14
- enumerable: true
15
- });
16
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
- return target;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
- key = keys[i];
22
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
- get: ((k) => from[k]).bind(null, key),
24
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
- });
26
- }
27
- return to;
28
- };
29
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
- require("node:crypto");
1
+ import "node:crypto";
35
2
  //#region ../types/dist/event-category-BvOFi6PY.mjs
36
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
37
4
  EventCategory["SystemBoot"] = "system.boot";
@@ -4156,6 +4123,12 @@ var numberProcessor = (schema, ctx, _json, _params) => {
4156
4123
  var booleanProcessor = (_schema, _ctx, json, _params) => {
4157
4124
  json.type = "boolean";
4158
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
+ };
4159
4132
  var nullProcessor = (_schema, ctx, json, _params) => {
4160
4133
  if (ctx.target === "openapi-3.0") {
4161
4134
  json.type = "string";
@@ -4163,12 +4136,17 @@ var nullProcessor = (_schema, ctx, json, _params) => {
4163
4136
  json.enum = [null];
4164
4137
  } else json.type = "null";
4165
4138
  };
4139
+ var undefinedProcessor = (_schema, ctx, _json, _params) => {
4140
+ if (ctx.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema");
4141
+ };
4166
4142
  var voidProcessor = (_schema, ctx, _json, _params) => {
4167
4143
  if (ctx.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema");
4168
4144
  };
4169
4145
  var neverProcessor = (_schema, _ctx, json, _params) => {
4170
4146
  json.not = {};
4171
4147
  };
4148
+ var anyProcessor = (_schema, _ctx, _json, _params) => {};
4149
+ var unknownProcessor = (_schema, _ctx, _json, _params) => {};
4172
4150
  var dateProcessor = (_schema, ctx, _json, _params) => {
4173
4151
  if (ctx.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema");
4174
4152
  };
@@ -4200,12 +4178,53 @@ var literalProcessor = (schema, ctx, json, _params) => {
4200
4178
  json.enum = vals;
4201
4179
  }
4202
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
+ };
4203
4213
  var customProcessor = (_schema, ctx, _json, _params) => {
4204
4214
  if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
4205
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
+ };
4206
4219
  var transformProcessor = (_schema, ctx, _json, _params) => {
4207
4220
  if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
4208
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
+ };
4209
4228
  var arrayProcessor = (schema, ctx, _json, params) => {
4210
4229
  const json = _json;
4211
4230
  const def = schema._zod.def;
@@ -4410,6 +4429,12 @@ var readonlyProcessor = (schema, ctx, json, params) => {
4410
4429
  seen.ref = def.innerType;
4411
4430
  json.readOnly = true;
4412
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
+ };
4413
4438
  var optionalProcessor = (schema, ctx, _json, params) => {
4414
4439
  const def = schema._zod.def;
4415
4440
  process(def.innerType, ctx, params);
@@ -4422,6 +4447,81 @@ var lazyProcessor = (schema, ctx, _json, params) => {
4422
4447
  const seen = ctx.seen.get(schema);
4423
4448
  seen.ref = innerType;
4424
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
+ }
4425
4525
  //#endregion
4426
4526
  //#region ../../node_modules/zod/v4/classic/iso.js
4427
4527
  var ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
@@ -5438,7 +5538,7 @@ var ZodIssueCode = {
5438
5538
  var ZodFirstPartyTypeKind;
5439
5539
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5440
5540
  //#endregion
5441
- //#region ../types/dist/sleep-WsrozGDL.mjs
5541
+ //#region ../types/dist/sleep-BOjuyoPC.mjs
5442
5542
  /**
5443
5543
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5444
5544
  * window to float samples (D455).
@@ -5555,7 +5655,7 @@ function isKeychainStoredField(field) {
5555
5655
  var SECRET_CLEAR = { $secretClear: true };
5556
5656
  /** The `'***'` token D634 redaction writes for non-admins. */
5557
5657
  var LEGACY_DEVICE_REDACTION = "***";
5558
- function isRecord$4(value) {
5658
+ function isRecord$5(value) {
5559
5659
  return typeof value === "object" && value !== null && !Array.isArray(value);
5560
5660
  }
5561
5661
  function makeSecretMarker(ref) {
@@ -5566,12 +5666,12 @@ function makeSecretMarker(ref) {
5566
5666
  }
5567
5667
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5568
5668
  function isSecretMarker(value) {
5569
- if (!isRecord$4(value)) return false;
5669
+ if (!isRecord$5(value)) return false;
5570
5670
  const ref = value["$secret"];
5571
5671
  return typeof ref === "string" && ref.length > 0;
5572
5672
  }
5573
5673
  function isSecretClear(value) {
5574
- return isRecord$4(value) && value["$secretClear"] === true;
5674
+ return isRecord$5(value) && value["$secretClear"] === true;
5575
5675
  }
5576
5676
  /**
5577
5677
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6181,7 +6281,7 @@ var KeychainWriteRefusedError = class extends Error {
6181
6281
  }
6182
6282
  };
6183
6283
  var KEEP = { kind: "keep" };
6184
- function isRecord$3(value) {
6284
+ function isRecord$4(value) {
6185
6285
  return typeof value === "object" && value !== null && !Array.isArray(value);
6186
6286
  }
6187
6287
  function defaultMintId() {
@@ -6194,7 +6294,7 @@ function collectSecretMarkerRefs(value, out = []) {
6194
6294
  return out;
6195
6295
  }
6196
6296
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6197
- else if (isRecord$3(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);
6198
6298
  return out;
6199
6299
  }
6200
6300
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6249,7 +6349,7 @@ function rowId(row, idKey) {
6249
6349
  return null;
6250
6350
  }
6251
6351
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6252
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$3) : [];
6352
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6253
6353
  if (!Array.isArray(incoming)) {
6254
6354
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6255
6355
  return {
@@ -6265,7 +6365,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6265
6365
  const kept = /* @__PURE__ */ new Set();
6266
6366
  const rows = [];
6267
6367
  for (const row of incoming) {
6268
- if (!isRecord$3(row)) {
6368
+ if (!isRecord$4(row)) {
6269
6369
  rows.push(row);
6270
6370
  continue;
6271
6371
  }
@@ -6290,7 +6390,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6290
6390
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6291
6391
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6292
6392
  case "object": {
6293
- if (!isRecord$3(incoming)) {
6393
+ if (!isRecord$4(incoming)) {
6294
6394
  if (incoming === void 0) return KEEP;
6295
6395
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6296
6396
  return {
@@ -6298,7 +6398,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6298
6398
  value: incoming
6299
6399
  };
6300
6400
  }
6301
- const storedObj = isRecord$3(stored) ? stored : {};
6401
+ const storedObj = isRecord$4(stored) ? stored : {};
6302
6402
  return {
6303
6403
  kind: "value",
6304
6404
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6421,7 +6521,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6421
6521
  value: items
6422
6522
  };
6423
6523
  }
6424
- if (isRecord$3(v)) {
6524
+ if (isRecord$4(v)) {
6425
6525
  const out = {};
6426
6526
  for (const [k, child] of Object.entries(v)) {
6427
6527
  const s = substitute(child);
@@ -6453,7 +6553,7 @@ var SecretOverwriteRefusedError = class extends Error {
6453
6553
  this.name = "SecretOverwriteRefusedError";
6454
6554
  }
6455
6555
  };
6456
- function isRecord$2(value) {
6556
+ function isRecord$3(value) {
6457
6557
  return typeof value === "object" && value !== null && !Array.isArray(value);
6458
6558
  }
6459
6559
  function resolvedValue(pass, marker) {
@@ -6482,7 +6582,7 @@ function inArray(pass, incoming, stored) {
6482
6582
  return incoming.map((item, index) => {
6483
6583
  const twin = stored[index];
6484
6584
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6485
- if (isRecord$2(item) && isRecord$2(twin)) return inArrayRow(pass, item, twin);
6585
+ if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6486
6586
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6487
6587
  return item;
6488
6588
  });
@@ -6493,7 +6593,7 @@ function inArrayRow(pass, incoming, stored) {
6493
6593
  const twin = stored[key];
6494
6594
  if (isSecretMarker(twin)) {
6495
6595
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6496
- } else if (isRecord$2(value) && isRecord$2(twin)) out[key] = inArrayRow(pass, value, twin);
6596
+ } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6497
6597
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6498
6598
  }
6499
6599
  return out;
@@ -6501,7 +6601,7 @@ function inArrayRow(pass, incoming, stored) {
6501
6601
  async function walk(pass, incoming, stored) {
6502
6602
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6503
6603
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6504
- if (!isRecord$2(incoming) || !isRecord$2(stored)) return incoming;
6604
+ if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6505
6605
  const out = { ...incoming };
6506
6606
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6507
6607
  return out;
@@ -6532,7 +6632,7 @@ async function restoreUnchangedSecrets(input) {
6532
6632
  function isJsonEqual(a, b) {
6533
6633
  if (Object.is(a, b)) return true;
6534
6634
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6535
- if (isRecord$2(a) && isRecord$2(b)) {
6635
+ if (isRecord$3(a) && isRecord$3(b)) {
6536
6636
  const keys = Object.keys(a);
6537
6637
  if (keys.length !== Object.keys(b).length) return false;
6538
6638
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6556,7 +6656,7 @@ function markerKeysOf(blob, owner) {
6556
6656
  }
6557
6657
  function nodeFromStored(value, owner) {
6558
6658
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6559
- if (!isRecord$2(value)) return null;
6659
+ if (!isRecord$3(value)) return null;
6560
6660
  const children = /* @__PURE__ */ new Map();
6561
6661
  for (const [key, child] of Object.entries(value)) {
6562
6662
  const node = nodeFromStored(child, owner);
@@ -7344,7 +7444,7 @@ var BaseAddon = class {
7344
7444
  if (!ctx) return;
7345
7445
  const addonId = ctx.id;
7346
7446
  setImmediate(() => {
7347
- ctx.api.addons?.restartAddon?.mutate({ addonId }).then(() => {
7447
+ ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
7348
7448
  ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
7349
7449
  }).catch((err) => {
7350
7450
  ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
@@ -7853,6 +7953,136 @@ var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
7853
7953
  var RECORD_MAX_DATA_BYTES = 1024 * 1024;
7854
7954
  var RECORD_BATCH_MAX = 1e3;
7855
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
+ var InvalidRecordError = class extends RecordsError {
7971
+ constructor(detail) {
7972
+ super("invalid-record", detail);
7973
+ this.name = "InvalidRecordError";
7974
+ }
7975
+ };
7976
+ /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
7977
+ var DeclarationRefusedError = class extends RecordsError {
7978
+ constructor(detail) {
7979
+ super("declaration-refused", detail);
7980
+ this.name = "DeclarationRefusedError";
7981
+ }
7982
+ };
7983
+ function defOf(schema) {
7984
+ const zodBag = Reflect.get(schema, "_zod");
7985
+ if (typeof zodBag !== "object" || zodBag === null) return {};
7986
+ const def = Reflect.get(zodBag, "def");
7987
+ if (typeof def !== "object" || def === null) return {};
7988
+ return def;
7989
+ }
7990
+ function declaredHere(schema) {
7991
+ return globalRegistry.get(schema)?.secret === true;
7992
+ }
7993
+ /** Wrapper kinds whose `innerType` is the field itself. */
7994
+ var WRAPPERS = new Set([
7995
+ "optional",
7996
+ "nullable",
7997
+ "default",
7998
+ "prefault",
7999
+ "catch",
8000
+ "readonly",
8001
+ "nonoptional"
8002
+ ]);
8003
+ /**
8004
+ * The schema layers that make up ONE field: the schema itself and every
8005
+ * wrapper below it (optional / default / nullable / readonly / catch), plus
8006
+ * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8007
+ * `.transform` on `in`).
8008
+ */
8009
+ function layersOf(schema) {
8010
+ const out = [];
8011
+ const queue = [schema];
8012
+ while (queue.length > 0) {
8013
+ const s = queue.shift();
8014
+ if (!s || out.includes(s)) continue;
8015
+ out.push(s);
8016
+ const def = defOf(s);
8017
+ if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8018
+ if (def.type === "pipe") {
8019
+ if (def.in) queue.push(def.in);
8020
+ if (def.out) queue.push(def.out);
8021
+ }
8022
+ }
8023
+ return out;
8024
+ }
8025
+ /** True when any layer of this field declares `.meta({ secret: true })`. */
8026
+ function isZodSecret(schema) {
8027
+ return layersOf(schema).some(declaredHere);
8028
+ }
8029
+ /**
8030
+ * Every declared secret path in a config schema: dotted keys, `[]` for "each
8031
+ * element of this array" (`connection.password`, `rows[].token`). A declared
8032
+ * object or array is reported as one path and not descended into — everything
8033
+ * under it is secret.
8034
+ */
8035
+ function collectZodSecretPaths(schema, prefix = "") {
8036
+ if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8037
+ const paths = [];
8038
+ for (const layer of layersOf(schema)) {
8039
+ const def = defOf(layer);
8040
+ if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8041
+ else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8042
+ else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8043
+ else if (def.type === "intersection") {
8044
+ if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8045
+ if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8046
+ }
8047
+ }
8048
+ return [...new Set(paths)];
8049
+ }
8050
+ /**
8051
+ * Secret fields of a record, addressed the way a Zod schema declares them
8052
+ * (`collectZodSecretPaths`): dotted keys, `[]` for "each element of this array"
8053
+ * (`auth.accessToken`, `headers[].value`).
8054
+ *
8055
+ * Array elements are matched by a DECLARED id key (`secretArrayKeys`:
8056
+ * `{ headers: 'name' }`), never by index, so reordering a list keeps every
8057
+ * keychain ref (the same rule as `arrayItemFieldPath`). The concrete path of a
8058
+ * leaf names its element: `headers[X-Api].value`.
8059
+ *
8060
+ * Pure and browser-safe. Nothing here mutates: every transform returns a new value.
8061
+ */
8062
+ /** The array prefixes (declared form, e.g. `headers` or `a.headers`) of a path. */
8063
+ function parseSecretPath(path) {
8064
+ if (path.length === 0) throw new InvalidRecordError("an empty secret path");
8065
+ return path.split(".").map((raw) => {
8066
+ const each = raw.endsWith("[]");
8067
+ const key = each ? raw.slice(0, -2) : raw;
8068
+ if (key.length === 0) throw new InvalidRecordError(`secret path "${path}" has an empty segment`);
8069
+ return {
8070
+ key,
8071
+ each
8072
+ };
8073
+ });
8074
+ }
8075
+ /** The declared array prefixes of `path` that need an id key (`headers`, `a.rows`). */
8076
+ function secretArrayPrefixes(path) {
8077
+ const segments = parseSecretPath(path);
8078
+ const prefixes = [];
8079
+ const walked = [];
8080
+ for (const segment of segments) {
8081
+ walked.push(segment.key);
8082
+ if (segment.each) prefixes.push(walked.join("."));
8083
+ }
8084
+ return prefixes;
8085
+ }
7856
8086
  /**
7857
8087
  * Record kinds (D881): the declaration an addon makes of one kind of fact, the
7858
8088
  * Zod row schema that describes it, and the helper that turns the two into the
@@ -7921,6 +8151,135 @@ var RecordKindDeclarationSchema = object({
7921
8151
  }).strict();
7922
8152
  /** The kind names: lower-case, dash separated, short enough for an index name. */
7923
8153
  var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
8154
+ /** Cross-field rules a declaration must satisfy. Throws {@link DeclarationRefusedError}. */
8155
+ function assertValidDeclaration(name, decl) {
8156
+ const refuse = (why) => {
8157
+ throw new DeclarationRefusedError(`kind "${name}": ${why}`);
8158
+ };
8159
+ if (!RecordKindNameSchema.safeParse(name).success) refuse("the name must be lower-case-dashed");
8160
+ const seen = /* @__PURE__ */ new Set();
8161
+ for (const index of decl.indexes) {
8162
+ if (seen.has(index.name)) refuse(`index name "${index.name}" is declared twice`);
8163
+ seen.add(index.name);
8164
+ }
8165
+ const { retention } = decl;
8166
+ const hasSecrets = decl.secretPaths.length > 0;
8167
+ if ("ttlMs" in retention) {
8168
+ if (retention.from === "at" && decl.at !== "required") refuse("a ttl from \"at\" needs at: \"required\"");
8169
+ if (hasSecrets) refuse("a kind with secret fields cannot use engine TTL (its keychain values would be orphaned)");
8170
+ }
8171
+ if ("maxRows" in retention || "maxRowsPerDevice" in retention) {
8172
+ if (retention.maxRowsPerDevice !== void 0 && decl.device !== "required") refuse("maxRowsPerDevice needs device: \"required\"");
8173
+ if (decl.at !== "required") refuse("a row bound trims the oldest \"at\": it needs at: \"required\"");
8174
+ if (hasSecrets) refuse("a kind with secret fields cannot use an engine row bound");
8175
+ const bound = Math.max(retention.maxRows ?? 0, retention.maxRowsPerDevice ?? 0);
8176
+ 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)`);
8177
+ }
8178
+ if (decl.deviceRemoval === "delete" && decl.device === "none") refuse("deviceRemoval: \"delete\" needs a device: \"required\" or \"optional\"");
8179
+ 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`);
8180
+ }
8181
+ function bodyFieldsOf(schema) {
8182
+ return { ...toJSONSchema(schema, {
8183
+ unrepresentable: "any",
8184
+ io: "input"
8185
+ }) };
8186
+ }
8187
+ function isRecordLike(value) {
8188
+ return typeof value === "object" && value !== null && !Array.isArray(value);
8189
+ }
8190
+ /** Does every branch of the body schema carry `field`? (A discriminated union has several.) */
8191
+ function hasNameField(json, field) {
8192
+ const branches = json["oneOf"] ?? json["anyOf"];
8193
+ if (Array.isArray(branches)) return branches.length > 0 && branches.every((b) => isRecordLike(b) && hasNameField(b, field));
8194
+ const properties = json["properties"];
8195
+ return isRecordLike(properties) && Object.prototype.hasOwnProperty.call(properties, field);
8196
+ }
8197
+ /**
8198
+ * Declare the kinds of a package. The keys are the kind names. The result is
8199
+ * what `ctx.records.declare` sends to the engine and what `ctx.records.kind`
8200
+ * types its handle from.
8201
+ */
8202
+ function defineRecordKinds(specs) {
8203
+ const out = {};
8204
+ for (const [name, spec] of Object.entries(specs)) {
8205
+ const secretPaths = collectZodSecretPaths(spec.schema);
8206
+ const nameField = spec.entry?.nameField ?? "name";
8207
+ const fields = bodyFieldsOf(spec.schema);
8208
+ if (spec.entry !== void 0 && !hasNameField(fields, nameField)) throw new DeclarationRefusedError(`kind "${name}": an entry kind's schema needs a "${nameField}" field`);
8209
+ const parsed = RecordKindDeclarationSchema.parse({
8210
+ database: spec.database,
8211
+ class: spec.class,
8212
+ writeTrigger: spec.writeTrigger,
8213
+ device: spec.device,
8214
+ at: spec.at,
8215
+ indexes: spec.indexes === void 0 ? void 0 : [...spec.indexes],
8216
+ retention: spec.retention,
8217
+ deviceRemoval: spec.deviceRemoval,
8218
+ maxDataBytes: spec.maxDataBytes,
8219
+ secretPaths: [...secretPaths],
8220
+ secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8221
+ adoptsFrom: spec.adoptsFrom,
8222
+ transactFamily: spec.transactFamily,
8223
+ entry: spec.entry === void 0 ? void 0 : {
8224
+ title: spec.entry.title,
8225
+ nameField,
8226
+ fields
8227
+ }
8228
+ });
8229
+ assertValidDeclaration(name, parsed);
8230
+ out[name] = {
8231
+ name,
8232
+ schema: spec.schema,
8233
+ declaration: parsed
8234
+ };
8235
+ }
8236
+ return out;
8237
+ }
8238
+ /**
8239
+ * Entry kinds (D881): every list of user-created entries (notification
8240
+ * targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
8241
+ * kind-specific body, and the admin UI lists/adds/edits/deletes all of them
8242
+ * through the `record-entries` capability with password fields derived from
8243
+ * the schema (`.meta({ secret: true })`).
8244
+ */
8245
+ /** The body of a plain entry: a name and the fields the kind adds. */
8246
+ function entryBody(shape) {
8247
+ return object({
8248
+ name: string().min(1),
8249
+ ...shape
8250
+ });
8251
+ }
8252
+ /**
8253
+ * Declare one entry kind. An entry is configuration: never trimmed by the
8254
+ * engine, never aged, belonging to no device.
8255
+ */
8256
+ function defineEntryKind(name, spec) {
8257
+ const defined = defineRecordKinds({ [name]: {
8258
+ schema: spec.schema,
8259
+ class: "config",
8260
+ writeTrigger: spec.writeTrigger ?? "an operator adds or edits an entry in the entries UI",
8261
+ retention: { none: "an entry goes only when the operator deletes it" },
8262
+ ...spec.database === void 0 ? {} : { database: spec.database },
8263
+ ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8264
+ ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8265
+ ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8266
+ entry: {
8267
+ title: spec.title,
8268
+ ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
8269
+ }
8270
+ } })[name];
8271
+ if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8272
+ return defined;
8273
+ }
8274
+ /**
8275
+ * Legacy source for entry adoption (B3): a list stored under addon-settings
8276
+ * `<addonId>.<key>` until records-adopt copies rows into the entry kind.
8277
+ */
8278
+ var SETTINGS_ARRAY_ADOPTS_PREFIX = "@settings-array/";
8279
+ /** The `adoptsFrom` value for an addon-settings array field. */
8280
+ function settingsArrayAdoptsFrom(addonId, settingsKey) {
8281
+ return `${SETTINGS_ARRAY_ADOPTS_PREFIX}${addonId}/${settingsKey}`;
8282
+ }
7924
8283
  /** Shared Zod schemas used across streaming capabilities. */
7925
8284
  var CamProfileSchema = _enum([
7926
8285
  "high",
@@ -8386,7 +8745,7 @@ object({
8386
8745
  params: record(string(), union([string(), number()])).optional()
8387
8746
  });
8388
8747
  //#endregion
8389
- //#region ../types/dist/err-msg--2RrYiLO.mjs
8748
+ //#region ../types/dist/err-msg-BXKzRBwg.mjs
8390
8749
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8391
8750
  DeviceType["Camera"] = "camera";
8392
8751
  DeviceType["Hub"] = "hub";
@@ -8478,6 +8837,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
8478
8837
  * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
8479
8838
  * integrations sharing the same food/desiccant/hopper surface. */
8480
8839
  DeviceType["PetFeeder"] = "pet-feeder";
8840
+ /** Built-in dishwasher — program lifecycle, door / remote-start gates,
8841
+ * salt and rinse-aid levels. Installed with the `dishwasher` cap.
8842
+ * Sources: native Bosch Home Connect, reusable by similar integrations. */
8843
+ DeviceType["Dishwasher"] = "dishwasher";
8481
8844
  return DeviceType;
8482
8845
  }({});
8483
8846
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -8725,7 +9088,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8725
9088
  return DeviceRole;
8726
9089
  }({});
8727
9090
  //#endregion
8728
- //#region ../types/dist/composition-DOwQB_Ua.mjs
9091
+ //#region ../types/dist/composition-CB6PMT9p.mjs
8729
9092
  /**
8730
9093
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8731
9094
  *
@@ -13146,8 +13509,13 @@ var AlertSeveritySchema = _enum([
13146
13509
  "info",
13147
13510
  "success",
13148
13511
  "warning",
13149
- "error"
13512
+ "error",
13513
+ "critical"
13150
13514
  ]);
13515
+ var AlertActionSchema = object({
13516
+ label: string(),
13517
+ href: string().optional()
13518
+ });
13151
13519
  var AlertStatusSchema = _enum([
13152
13520
  "active",
13153
13521
  "in-progress",
@@ -13165,6 +13533,7 @@ var AlertSchema = object({
13165
13533
  severity: AlertSeveritySchema,
13166
13534
  title: string(),
13167
13535
  message: string(),
13536
+ action: AlertActionSchema.optional(),
13168
13537
  status: AlertStatusSchema,
13169
13538
  progress: number().optional(),
13170
13539
  read: boolean(),
@@ -16389,13 +16758,23 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16389
16758
  }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16390
16759
  owner: string().min(1),
16391
16760
  kind: RecordKindNameSchema,
16392
- records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX),
16761
+ records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16393
16762
  /** The LAST batch: the copy is complete, the boot guard stops asking. */
16394
16763
  complete: boolean().optional()
16395
- }), object({ adopted: number().int() }), {
16764
+ }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16396
16765
  kind: "mutation",
16397
16766
  auth: "admin"
16398
- });
16767
+ }), method(object({
16768
+ collection: string().min(1),
16769
+ cursor: string().optional(),
16770
+ limit: number().int().min(1).max(1e3).optional()
16771
+ }), object({
16772
+ rows: array(object({
16773
+ id: string(),
16774
+ data: record(string(), unknown())
16775
+ })),
16776
+ nextCursor: string().nullable()
16777
+ }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16399
16778
  /**
16400
16779
  * record-entries - the ONE admin surface for every list of user-created entries
16401
16780
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -53089,7 +53468,7 @@ var BatteryStatusSchema = object({
53089
53468
  */
53090
53469
  binary: boolean().optional()
53091
53470
  });
53092
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, method(object({
53471
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
53093
53472
  deviceId: number(),
53094
53473
  /** Bound on the wait. Sensible range 3000–10000ms. */
53095
53474
  timeoutMs: number().int().min(500).max(3e4).default(8e3)
@@ -53965,6 +54344,98 @@ object({
53965
54344
  deviceId: number(),
53966
54345
  status: DeviceStatusSchema
53967
54346
  });
54347
+ /**
54348
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54349
+ * consumable levels (salt, rinse aid) and common program options.
54350
+ *
54351
+ * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54352
+ * by any integration that exposes the same program / option surface.
54353
+ *
54354
+ * `kind: 'poll'` — cloud REST APIs typically have no push channel; the
54355
+ * provider refreshes the slice on an interval and eagerly after commands.
54356
+ */
54357
+ var DishwasherStateSchema = _enum([
54358
+ "idle",
54359
+ "running",
54360
+ "paused",
54361
+ "finished",
54362
+ "error",
54363
+ "unavailable"
54364
+ ]);
54365
+ var DishwasherConsumableLevelSchema = _enum([
54366
+ "ok",
54367
+ "low",
54368
+ "empty"
54369
+ ]);
54370
+ object({
54371
+ state: DishwasherStateSchema,
54372
+ /** Active program id/name, or null when none selected / unknown. */
54373
+ program: string().nullable(),
54374
+ /** Program tokens the hardware accepts — drives the UI selector. */
54375
+ availablePrograms: array(string()),
54376
+ /** Minutes remaining on the active cycle, or null when not running. */
54377
+ remainingMinutes: number().int().nonnegative().nullable(),
54378
+ /** Cycle completion 0..100, or null when not applicable. */
54379
+ progressPercent: number().min(0).max(100).nullable(),
54380
+ /** True when the door is reported open. */
54381
+ doorOpen: boolean(),
54382
+ /** True when remote start is allowed (door closed, power on, etc.). */
54383
+ remoteStartAllowed: boolean(),
54384
+ /** Main power / switched-on state. */
54385
+ powerOn: boolean(),
54386
+ saltLevel: DishwasherConsumableLevelSchema.nullable(),
54387
+ rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54388
+ halfLoad: boolean(),
54389
+ hygienePlus: boolean(),
54390
+ errorCode: number().nullable(),
54391
+ errorLabel: string().nullable(),
54392
+ lastFetchedAt: number()
54393
+ });
54394
+ DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
54395
+ kind: "mutation",
54396
+ auth: "protected"
54397
+ }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
54398
+ kind: "mutation",
54399
+ auth: "protected"
54400
+ }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
54401
+ kind: "mutation",
54402
+ auth: "protected"
54403
+ }), method(object({
54404
+ deviceId: number().int().nonnegative(),
54405
+ program: string().min(1)
54406
+ }), _void(), {
54407
+ kind: "mutation",
54408
+ auth: "protected"
54409
+ }), method(object({
54410
+ deviceId: number().int().nonnegative(),
54411
+ on: boolean()
54412
+ }), _void(), {
54413
+ kind: "mutation",
54414
+ auth: "protected"
54415
+ }), method(object({
54416
+ deviceId: number().int().nonnegative(),
54417
+ on: boolean()
54418
+ }), _void(), {
54419
+ kind: "mutation",
54420
+ auth: "protected"
54421
+ }), method(object({
54422
+ deviceId: number().int().nonnegative(),
54423
+ on: boolean()
54424
+ }), _void(), {
54425
+ kind: "mutation",
54426
+ auth: "protected"
54427
+ }), method(object({
54428
+ deviceId: number().int().nonnegative(),
54429
+ key: string().min(1),
54430
+ value: union([
54431
+ boolean(),
54432
+ string(),
54433
+ number()
54434
+ ])
54435
+ }), _void(), {
54436
+ kind: "mutation",
54437
+ auth: "protected"
54438
+ });
53968
54439
  object({
53969
54440
  /** Ms epoch of the last press. null = never observed since this provider started. */
53970
54441
  lastPressedAt: number().nullable(),
@@ -54530,6 +55001,13 @@ object({
54530
55001
  lastChangedAt: number()
54531
55002
  });
54532
55003
  DeviceType.Sensor;
55004
+ object({
55005
+ /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
55006
+ position: number().min(0).max(100).nullable(),
55007
+ /** Ms epoch when the slice was last updated (push or poll). */
55008
+ lastFetchedAt: number()
55009
+ });
55010
+ DeviceType.Thermostat;
54533
55011
  object({
54534
55012
  /** Whether the humidifier is currently on. */
54535
55013
  on: boolean(),
@@ -61696,7 +62174,7 @@ var AccessoryKind = {
61696
62174
  PrivacyMask: DeviceRole.PrivacyMask
61697
62175
  };
61698
62176
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
61699
- 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;
62177
+ 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;
61700
62178
  new Set(Object.values(DeviceType));
61701
62179
  Object.freeze({
61702
62180
  "accessories.getStatus": {
@@ -64117,6 +64595,60 @@ Object.freeze({
64117
64595
  addonId: null,
64118
64596
  access: "view"
64119
64597
  },
64598
+ "dishwasher.getStatus": {
64599
+ capName: "dishwasher",
64600
+ capScope: "device",
64601
+ addonId: null,
64602
+ access: "view"
64603
+ },
64604
+ "dishwasher.pause": {
64605
+ capName: "dishwasher",
64606
+ capScope: "device",
64607
+ addonId: null,
64608
+ access: "create"
64609
+ },
64610
+ "dishwasher.setHalfLoad": {
64611
+ capName: "dishwasher",
64612
+ capScope: "device",
64613
+ addonId: null,
64614
+ access: "create"
64615
+ },
64616
+ "dishwasher.setHygienePlus": {
64617
+ capName: "dishwasher",
64618
+ capScope: "device",
64619
+ addonId: null,
64620
+ access: "create"
64621
+ },
64622
+ "dishwasher.setOption": {
64623
+ capName: "dishwasher",
64624
+ capScope: "device",
64625
+ addonId: null,
64626
+ access: "create"
64627
+ },
64628
+ "dishwasher.setPower": {
64629
+ capName: "dishwasher",
64630
+ capScope: "device",
64631
+ addonId: null,
64632
+ access: "create"
64633
+ },
64634
+ "dishwasher.setProgram": {
64635
+ capName: "dishwasher",
64636
+ capScope: "device",
64637
+ addonId: null,
64638
+ access: "create"
64639
+ },
64640
+ "dishwasher.start": {
64641
+ capName: "dishwasher",
64642
+ capScope: "device",
64643
+ addonId: null,
64644
+ access: "create"
64645
+ },
64646
+ "dishwasher.stop": {
64647
+ capName: "dishwasher",
64648
+ capScope: "device",
64649
+ addonId: null,
64650
+ access: "create"
64651
+ },
64120
64652
  "doorbell.getStatus": {
64121
64653
  capName: "doorbell",
64122
64654
  capScope: "device",
@@ -64327,6 +64859,12 @@ Object.freeze({
64327
64859
  addonId: null,
64328
64860
  access: "view"
64329
64861
  },
64862
+ "heatingValve.getStatus": {
64863
+ capName: "heating-valve",
64864
+ capScope: "device",
64865
+ addonId: null,
64866
+ access: "view"
64867
+ },
64330
64868
  "humidifier.getStatus": {
64331
64869
  capName: "humidifier",
64332
64870
  capScope: "device",
@@ -68467,6 +69005,12 @@ Object.freeze({
68467
69005
  addonId: null,
68468
69006
  access: "delete"
68469
69007
  },
69008
+ "storageAdmin.isAdoptedLegacyTable": {
69009
+ capName: "storage-admin",
69010
+ capScope: "system",
69011
+ addonId: null,
69012
+ access: "view"
69013
+ },
68470
69014
  "storageAdmin.listKinds": {
68471
69015
  capName: "storage-admin",
68472
69016
  capScope: "system",
@@ -68479,6 +69023,12 @@ Object.freeze({
68479
69023
  addonId: null,
68480
69024
  access: "view"
68481
69025
  },
69026
+ "storageAdmin.readLegacyCollection": {
69027
+ capName: "storage-admin",
69028
+ capScope: "system",
69029
+ addonId: null,
69030
+ access: "view"
69031
+ },
68482
69032
  "storageAdmin.readRecords": {
68483
69033
  capName: "storage-admin",
68484
69034
  capScope: "system",
@@ -69902,7 +70452,7 @@ Object.freeze({
69902
70452
  access: "create"
69903
70453
  }
69904
70454
  });
69905
- 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;
70455
+ 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;
69906
70456
  DeviceFeature.BatteryOperated;
69907
70457
  Object.freeze({
69908
70458
  "accessories.getStatus": [{
@@ -70726,6 +71276,51 @@ Object.freeze({
70726
71276
  form: "single",
70727
71277
  optional: false
70728
71278
  }],
71279
+ "dishwasher.getStatus": [{
71280
+ name: "deviceId",
71281
+ form: "single",
71282
+ optional: false
71283
+ }],
71284
+ "dishwasher.pause": [{
71285
+ name: "deviceId",
71286
+ form: "single",
71287
+ optional: false
71288
+ }],
71289
+ "dishwasher.setHalfLoad": [{
71290
+ name: "deviceId",
71291
+ form: "single",
71292
+ optional: false
71293
+ }],
71294
+ "dishwasher.setHygienePlus": [{
71295
+ name: "deviceId",
71296
+ form: "single",
71297
+ optional: false
71298
+ }],
71299
+ "dishwasher.setOption": [{
71300
+ name: "deviceId",
71301
+ form: "single",
71302
+ optional: false
71303
+ }],
71304
+ "dishwasher.setPower": [{
71305
+ name: "deviceId",
71306
+ form: "single",
71307
+ optional: false
71308
+ }],
71309
+ "dishwasher.setProgram": [{
71310
+ name: "deviceId",
71311
+ form: "single",
71312
+ optional: false
71313
+ }],
71314
+ "dishwasher.start": [{
71315
+ name: "deviceId",
71316
+ form: "single",
71317
+ optional: false
71318
+ }],
71319
+ "dishwasher.stop": [{
71320
+ name: "deviceId",
71321
+ form: "single",
71322
+ optional: false
71323
+ }],
70729
71324
  "doorbell.getStatus": [{
70730
71325
  name: "deviceId",
70731
71326
  form: "single",
@@ -70795,6 +71390,11 @@ Object.freeze({
70795
71390
  form: "single",
70796
71391
  optional: false
70797
71392
  }],
71393
+ "heatingValve.getStatus": [{
71394
+ name: "deviceId",
71395
+ form: "single",
71396
+ optional: false
71397
+ }],
70798
71398
  "humidifier.getStatus": [{
70799
71399
  name: "deviceId",
70800
71400
  form: "single",
@@ -73687,153 +74287,4 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
73687
74287
  var MB = 1024 * 1024;
73688
74288
  1024 * MB, 3072 * MB;
73689
74289
  //#endregion
73690
- Object.defineProperty(exports, "BaseAddon", {
73691
- enumerable: true,
73692
- get: function() {
73693
- return BaseAddon;
73694
- }
73695
- });
73696
- Object.defineProperty(exports, "SECRET_CLEAR", {
73697
- enumerable: true,
73698
- get: function() {
73699
- return SECRET_CLEAR;
73700
- }
73701
- });
73702
- Object.defineProperty(exports, "TRAINING_JOB_SCHEMA", {
73703
- enumerable: true,
73704
- get: function() {
73705
- return TRAINING_JOB_SCHEMA;
73706
- }
73707
- });
73708
- Object.defineProperty(exports, "TrainingJobSchema", {
73709
- enumerable: true,
73710
- get: function() {
73711
- return TrainingJobSchema;
73712
- }
73713
- });
73714
- Object.defineProperty(exports, "TrainingJobSpecSchema", {
73715
- enumerable: true,
73716
- get: function() {
73717
- return TrainingJobSpecSchema;
73718
- }
73719
- });
73720
- Object.defineProperty(exports, "TrainingResultSchema", {
73721
- enumerable: true,
73722
- get: function() {
73723
- return TrainingResultSchema;
73724
- }
73725
- });
73726
- Object.defineProperty(exports, "__commonJSMin", {
73727
- enumerable: true,
73728
- get: function() {
73729
- return __commonJSMin;
73730
- }
73731
- });
73732
- Object.defineProperty(exports, "__esmMin", {
73733
- enumerable: true,
73734
- get: function() {
73735
- return __esmMin;
73736
- }
73737
- });
73738
- Object.defineProperty(exports, "__exportAll", {
73739
- enumerable: true,
73740
- get: function() {
73741
- return __exportAll;
73742
- }
73743
- });
73744
- Object.defineProperty(exports, "__toCommonJS", {
73745
- enumerable: true,
73746
- get: function() {
73747
- return __toCommonJS;
73748
- }
73749
- });
73750
- Object.defineProperty(exports, "__toESM", {
73751
- enumerable: true,
73752
- get: function() {
73753
- return __toESM;
73754
- }
73755
- });
73756
- Object.defineProperty(exports, "addonPagesSourceCapability", {
73757
- enumerable: true,
73758
- get: function() {
73759
- return addonPagesSourceCapability;
73760
- }
73761
- });
73762
- Object.defineProperty(exports, "arrayItemFieldPath", {
73763
- enumerable: true,
73764
- get: function() {
73765
- return arrayItemFieldPath;
73766
- }
73767
- });
73768
- Object.defineProperty(exports, "boolean", {
73769
- enumerable: true,
73770
- get: function() {
73771
- return boolean;
73772
- }
73773
- });
73774
- Object.defineProperty(exports, "globalSecretScope", {
73775
- enumerable: true,
73776
- get: function() {
73777
- return globalSecretScope;
73778
- }
73779
- });
73780
- Object.defineProperty(exports, "isSecretClear", {
73781
- enumerable: true,
73782
- get: function() {
73783
- return isSecretClear;
73784
- }
73785
- });
73786
- Object.defineProperty(exports, "isSecretMarker", {
73787
- enumerable: true,
73788
- get: function() {
73789
- return isSecretMarker;
73790
- }
73791
- });
73792
- Object.defineProperty(exports, "number", {
73793
- enumerable: true,
73794
- get: function() {
73795
- return number;
73796
- }
73797
- });
73798
- Object.defineProperty(exports, "object", {
73799
- enumerable: true,
73800
- get: function() {
73801
- return object;
73802
- }
73803
- });
73804
- Object.defineProperty(exports, "parseTrainingEventLine", {
73805
- enumerable: true,
73806
- get: function() {
73807
- return parseTrainingEventLine;
73808
- }
73809
- });
73810
- Object.defineProperty(exports, "record", {
73811
- enumerable: true,
73812
- get: function() {
73813
- return record;
73814
- }
73815
- });
73816
- Object.defineProperty(exports, "string", {
73817
- enumerable: true,
73818
- get: function() {
73819
- return string;
73820
- }
73821
- });
73822
- Object.defineProperty(exports, "toSecretFieldView", {
73823
- enumerable: true,
73824
- get: function() {
73825
- return toSecretFieldView;
73826
- }
73827
- });
73828
- Object.defineProperty(exports, "trainingCapability", {
73829
- enumerable: true,
73830
- get: function() {
73831
- return trainingCapability;
73832
- }
73833
- });
73834
- Object.defineProperty(exports, "trainingProviderCapability", {
73835
- enumerable: true,
73836
- get: function() {
73837
- return trainingProviderCapability;
73838
- }
73839
- });
74290
+ export { object as C, number as S, string as T, isSecretClear as _, addonPagesSourceCapability as a, toSecretFieldView as b, trainingProviderCapability as c, SECRET_CLEAR as d, arrayItemFieldPath as f, globalSecretScope as g, entryBody as h, TrainingResultSchema as i, BaseAddon as l, defineRecordKinds as m, TrainingJobSchema as n, parseTrainingEventLine as o, defineEntryKind as p, TrainingJobSpecSchema as r, trainingCapability as s, TRAINING_JOB_SCHEMA as t, RECORD_MAX_DATA_BYTES as u, isSecretMarker as v, record as w, boolean as x, settingsArrayAdoptsFrom as y };