@camstack/addon-export-hap 1.2.197 → 1.2.198

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.
@@ -842,7 +842,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
842
842
  return EventCategory;
843
843
  }({});
844
844
  //#endregion
845
- //#region ../types/dist/device-type-D1fH5kaC.mjs
845
+ //#region ../types/dist/device-type-DxCT0krO.mjs
846
846
  /**
847
847
  import { errMsg } from '@camstack/types'
848
848
  * Extract a human-readable message from an unknown error value.
@@ -1004,6 +1004,13 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1004
1004
  * filters that want "all devices with on-motion behaviour".
1005
1005
  */
1006
1006
  DeviceFeature["MotionTrigger"] = "motion-trigger";
1007
+ /**
1008
+ * Device can be run for a chosen time and then stopped. Mirrors the
1009
+ * `timed-run` wrapper cap — the cap is bound by the core-blocks addon, not by
1010
+ * a driver, so the flag is derived from the device's bindings
1011
+ * (`featuresOfBoundCaps`). Gates the quick-run control in the viewer.
1012
+ */
1013
+ DeviceFeature["TimedRun"] = "timed-run";
1007
1014
  /** Light supports rgb-triplet color via `color` cap. */
1008
1015
  DeviceFeature["LightColorRgb"] = "light-color-rgb";
1009
1016
  /** Light supports HSV color via `color` cap. */
@@ -6038,7 +6045,7 @@ var ZodIssueCode = {
6038
6045
  var ZodFirstPartyTypeKind;
6039
6046
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6040
6047
  //#endregion
6041
- //#region ../types/dist/sleep-CQP-REJp.mjs
6048
+ //#region ../types/dist/sleep-CGPZyzB5.mjs
6042
6049
  /**
6043
6050
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6044
6051
  * window to float samples (D455).
@@ -7254,6 +7261,7 @@ var RecordIntegrationInstances = class {
7254
7261
  this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
7255
7262
  this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
7256
7263
  this.nameField = kind.declaration.entry?.nameField ?? "name";
7264
+ if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
7257
7265
  }
7258
7266
  /**
7259
7267
  * One instance read for the addon's own runtime; null when absent. When the keychain is
@@ -7295,10 +7303,21 @@ var RecordIntegrationInstances = class {
7295
7303
  }
7296
7304
  return out;
7297
7305
  }
7306
+ /** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
7307
+ kindOfBody(body) {
7308
+ if (this.hooks.kindOf !== void 0) {
7309
+ const id = this.hooks.kindOf(body);
7310
+ if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
7311
+ return id;
7312
+ }
7313
+ const only = this.hooks.description.kinds[0];
7314
+ if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
7315
+ return only.id;
7316
+ }
7298
7317
  viewOf(record) {
7299
7318
  const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
7300
7319
  const rawName = record.data[this.nameField];
7301
- const kind = this.hooks.kindOf?.(record.data);
7320
+ const kind = this.kindOfBody(record.data);
7302
7321
  const health = this.hooks.health?.(record.data, record.id);
7303
7322
  return {
7304
7323
  id: record.id,
@@ -7306,7 +7325,7 @@ var RecordIntegrationInstances = class {
7306
7325
  configured: this.hooks.configured(record.data),
7307
7326
  enabled: isInstanceEnabled(record.data),
7308
7327
  formValues: shown,
7309
- ...kind !== void 0 ? { kind } : {},
7328
+ kind,
7310
7329
  ...health?.status !== void 0 ? { status: health.status } : {},
7311
7330
  ...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
7312
7331
  };
@@ -8407,7 +8426,7 @@ function boundOf(list) {
8407
8426
  * Base class for CamStack addons. Eliminates settings boilerplate:
8408
8427
  *
8409
8428
  * - Typed `config` property with automatic resolution from store + defaults
8410
- * - `getGlobalSettings()` / `updateGlobalSettings()` auto-implemented
8429
+ * - the scoped settings API (`clusterSettings` / `nodeSettings` / `deviceDefaults`) auto-implemented
8411
8430
  * - `getAddonSettings()` / `updateAddonSettings()` auto-implemented
8412
8431
  * - `getDeviceSettings()` / `updateDeviceSettings()` auto-implemented
8413
8432
  * - `ctx` accessor for the AddonContext (no manual `this.ctxRef` storage)
@@ -8417,7 +8436,7 @@ function boundOf(list) {
8417
8436
  * Subclasses override:
8418
8437
  * - `onInitialize()` — addon-specific init logic, return ProviderRegistration[]
8419
8438
  * - `onShutdown()` — cleanup
8420
- * - `globalSettingsSchema()` / `deviceSettingsSchema()` — UI schemas
8439
+ * - `clusterSettingsSchema()` / `nodeSettingsSchema()` / `deviceSettingsSchema()` — UI schemas
8421
8440
  *
8422
8441
  * @example
8423
8442
  * ```ts
@@ -8431,7 +8450,7 @@ function boundOf(list) {
8431
8450
  * super({ maxRetries: 3, endpoint: 'http://localhost' })
8432
8451
  * }
8433
8452
  *
8434
- * protected globalSettingsSchema() {
8453
+ * protected clusterSettingsSchema() {
8435
8454
  * return this.schema({
8436
8455
  * sections: [{
8437
8456
  * id: 'main', title: 'Settings',
@@ -8474,7 +8493,7 @@ var BaseAddon = class {
8474
8493
  defaults;
8475
8494
  /**
8476
8495
  * Hidden-state paths that hold secrets (D787) — values the addon writes
8477
- * itself (`updateGlobalSettings`, `state()`) that no form field declares.
8496
+ * itself (`state()`, the scoped writers) that no form field declares.
8478
8497
  * Stored in the keychain exactly like a `password` field. Syntax:
8479
8498
  * `'snapshotSigningKey'`, `'identity.pincode'`, `'tokens[userId].accessToken'`
8480
8499
  * (`key[<id field>]` addresses array items by id, never by index).
@@ -8484,7 +8503,7 @@ var BaseAddon = class {
8484
8503
  /**
8485
8504
  * D986 M4: the scoped schemas this addon declared, resolved once per capability
8486
8505
  * (`loadScopedSchemas`) so the sync readers (`perNodeKeys`, the secret tree, the restart check)
8487
- * see them. Empty until loaded: the readers then fall back to {@link globalSettingsSchema}.
8506
+ * see them. Empty until loaded.
8488
8507
  */
8489
8508
  _scopedByCap = /* @__PURE__ */ new Map();
8490
8509
  _nodeKeysByCap = /* @__PURE__ */ new Map();
@@ -8670,7 +8689,7 @@ var BaseAddon = class {
8670
8689
  /** Addon-specific cleanup. Override if needed. */
8671
8690
  async onShutdown() {}
8672
8691
  /**
8673
- * Called after config is resolved during updateGlobalSettings/updateAddonSettings.
8692
+ * Called after config is resolved during a settings write.
8674
8693
  * Override to react to config changes (e.g. restart a sampler, reconnect a service).
8675
8694
  * Not called during initialize() — use onInitialize() for initial setup.
8676
8695
  */
@@ -8699,82 +8718,12 @@ var BaseAddon = class {
8699
8718
  scopedSettingsCapabilities() {
8700
8719
  return [];
8701
8720
  }
8702
- /** Override to provide global-level settings UI schema. */
8703
- globalSettingsSchema(_cap) {
8704
- return null;
8705
- }
8706
8721
  /** Override to provide device-level settings UI schema. */
8707
8722
  deviceSettingsSchema() {
8708
8723
  return null;
8709
8724
  }
8710
8725
  /**
8711
- * INTEGRATION-LEVEL SETTINGS — declare which of this addon's global sections
8712
- * ARE the configuration of its integration.
8713
- *
8714
- * Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
8715
- * operator should find on the addon's integration page (System →
8716
- * Integrations → <name>) rather than only in the cluster-wide list of every
8717
- * addon. Empty (the default) means the addon has no integration-level
8718
- * settings and no such surface is offered — this is opt-in, because whether
8719
- * an addon's configuration IS its integration's configuration depends on the
8720
- * nature of the integration.
8721
- *
8722
- * WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
8723
- * the ONE global schema, in the ONE addon store, written by the ONE
8724
- * `updateGlobalSettings` path. There is deliberately no
8725
- * `updateIntegrationSettings`: a second write path is how a surface acquires
8726
- * a second store key, and this repo has shipped that twice (`btmPath@hub`,
8727
- * D266). Selecting sections cannot introduce a key that selecting cannot.
8728
- *
8729
- * WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
8730
- * `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
8731
- * removed with the reason recorded at
8732
- * `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
8733
- * determined by WHICH schema it lives in, not by a field-level marker."* A
8734
- * marker sprinkled across sections also has to borrow a field that already
8735
- * means something else; borrowing `section.tab` put the literal word
8736
- * "integration" into an operator-facing tab bar, because `tab` means "how to
8737
- * GROUP this visually" and cannot also mean "where this lives" (D269
8738
- * supersedes D268). One declaration, in one place, next to the schema whose
8739
- * ids it names.
8740
- */
8741
- integrationSettingSections() {
8742
- return [];
8743
- }
8744
- async getGlobalSettings(overlay, cap, nodeId) {
8745
- await this.loadScopedSchemas(cap);
8746
- const schema = this.globalSettingsSchema(cap) ?? this.scopedFormSchema(cap);
8747
- if (!schema) return { sections: [] };
8748
- const projected = await this.readRawProjectedStore(nodeId, cap);
8749
- return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(projected, overlay) : projected, { inlineSecretsAsViews: true });
8750
- }
8751
- /**
8752
- * The integration-level view of this addon's settings: exactly the sections
8753
- * named by {@link integrationSettingSections}, hydrated from the SAME store
8754
- * `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
8755
- *
8756
- * Returns `null` when the addon declared nothing — an addon that opts out has
8757
- * no integration settings surface at all, rather than an empty one that reads
8758
- * as a failed load.
8759
- *
8760
- * Three properties hold BY CONSTRUCTION, which is why they are here in core
8761
- * and not in whichever UI happens to render this:
8762
- *
8763
- * 1. **One key.** The payload is a SUBSET of the global schema, so a field
8764
- * shown here is the same field, with the same bare key, that the addon's
8765
- * own page shows. There is no integration-specific writer — callers save
8766
- * through `updateGlobalSettings` — so a second store key is unreachable,
8767
- * not merely discouraged.
8768
- * 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
8769
- * is `<key>@<nodeId>` and an integration is not a node; whichever node
8770
- * such a field silently picked would be a wrong answer for the operator
8771
- * who opened the page (D266).
8772
- * 3. **No silent typo.** A declared id that names no section throws. The
8773
- * alternative — skip it — turns a rename into a surface that quietly
8774
- * empties, which looks exactly like an addon with nothing to configure.
8775
- */
8776
- /**
8777
- * The form schema of ONE integration instance, or `null` to use {@link globalSettingsSchema}.
8726
+ * The form schema of ONE integration instance, or `null` to use the scoped form.
8778
8727
  *
8779
8728
  * Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
8780
8729
  * needs its connection fields, the default integration the addon's own sections. It is the
@@ -8947,6 +8896,19 @@ var BaseAddon = class {
8947
8896
  const overlay = await this.scopedSettingsOverlay(scope, cap, nodeId);
8948
8897
  return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(stored, overlay) : stored, { inlineSecretsAsViews: true });
8949
8898
  }
8899
+ /**
8900
+ * The scoped schemas this addon serves: one entry per loaded (capability, scope), capabilities
8901
+ * in declaration order, scopes in {@link SCOPED_SETTINGS_SCOPES} order. `[]` when it declares
8902
+ * nothing.
8903
+ */
8904
+ async listScopedSettings() {
8905
+ await this.loadScopedSchemas();
8906
+ return [...this._scopedByCap].flatMap(([cap, entries]) => entries.map((entry) => ({
8907
+ cap,
8908
+ scope: entry.scope,
8909
+ sectionIds: entry.schema.sections.map((section) => section.id)
8910
+ })));
8911
+ }
8950
8912
  /** The OPERATOR's write of declared keys of one scope (D787 secret semantics). */
8951
8913
  async updateScopedSettings(scope, cap, patch, nodeId) {
8952
8914
  this._operatorWriteDepth++;
@@ -8972,32 +8934,15 @@ var BaseAddon = class {
8972
8934
  */
8973
8935
  async getIntegrationFormSchema(instance, nodeId) {
8974
8936
  const scoped = await this.integrationFormSchema(instance);
8975
- if (scoped === null) return this.getGlobalSettings(void 0, void 0, nodeId);
8937
+ if (scoped === null) return this.scopedForm(nodeId);
8976
8938
  return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
8977
8939
  }
8978
- async getIntegrationSettings(nodeId) {
8979
- const declared = this.integrationSettingSections();
8980
- if (declared.length === 0) return null;
8981
- const schema = this.globalSettingsSchema();
8982
- if (!schema) throw new Error(`${this.constructor.name}: integrationSettingSections() names [${declared.join(", ")}] but globalSettingsSchema() returns null.`);
8983
- const byId = new Map(schema.sections.map((section) => [section.id, section]));
8984
- const sections = [];
8985
- for (const id of declared) {
8986
- const section = byId.get(id);
8987
- if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
8988
- const fields = dropPerNodeFields(section.fields);
8989
- if (fields.length === 0) continue;
8990
- sections.push({
8991
- ...section,
8992
- fields
8993
- });
8994
- }
8995
- if (sections.length === 0) return null;
8996
- const projected = await this.readRawProjectedStore(nodeId);
8997
- return hydrateSchema({
8998
- ...schema,
8999
- sections
9000
- }, projected, { inlineSecretsAsViews: true });
8940
+ /** The form of the scoped schemas this addon declared, hydrated from its store. */
8941
+ async scopedForm(nodeId) {
8942
+ await this.loadScopedSchemas();
8943
+ const schema = this.scopedFormSchema();
8944
+ if (!schema) return { sections: [] };
8945
+ return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
9001
8946
  }
9002
8947
  /**
9003
8948
  * The raw addon store PROJECTED onto the target node's bare per-node keys:
@@ -9006,8 +8951,8 @@ var BaseAddon = class {
9006
8951
  * bare fallback), all `@`-scoped and stray bare per-node keys are dropped.
9007
8952
  * A no-op passthrough when the schema declares no `perNode` field.
9008
8953
  *
9009
- * This is the sanctioned way for a `getGlobalSettings` OVERRIDE that needs
9010
- * the store for custom option logic (option narrowing, value snapping) to
8954
+ * This is the sanctioned way for an addon that needs
8955
+ * the store for custom logic (option narrowing, value snapping) to
9011
8956
  * read it per-node — never `ctx.settings.readAddonStore()` directly.
9012
8957
  * `nodeId` omitted ⇒ the local node (node-blind injection from ctx).
9013
8958
  *
@@ -9059,7 +9004,7 @@ var BaseAddon = class {
9059
9004
  }
9060
9005
  /**
9061
9006
  * Whether ONE global key of this addon's store was written, read three-way
9062
- * (D651). For a question a hydrated view cannot answer: `getGlobalSettings`
9007
+ * (D651). For a question a hydrated view cannot answer: a hydrated form
9063
9008
  * reports `value ?? default`, so "the operator chose the default" and "nobody
9064
9009
  * chose" look the same, and a failed read looks like both. A `perNode` key is
9065
9010
  * not supported here: its stored name is scoped.
@@ -9093,7 +9038,7 @@ var BaseAddon = class {
9093
9038
  }
9094
9039
  /**
9095
9040
  * The OPERATOR's write — a settings form or an admin API call, dispatched by
9096
- * the kernel. Identical to {@link updateGlobalSettings}, except that a secret
9041
+ * the kernel. The one in-process write of the addon blob that is not a scoped write; a secret
9097
9042
  * the operator sends is stored as sent even when it equals a pre-keychain
9098
9043
  * inline value: the operator re-entering a password is a change, an addon
9099
9044
  * writing back what it read is not (D787).
@@ -9106,9 +9051,6 @@ var BaseAddon = class {
9106
9051
  this._operatorWriteDepth--;
9107
9052
  }
9108
9053
  }
9109
- async updateGlobalSettings(patch, nodeId) {
9110
- await this.applyGlobalPatch(patch, nodeId);
9111
- }
9112
9054
  /**
9113
9055
  * REMOVE stored secrets — their keychain values and their markers (D787).
9114
9056
  *
@@ -9151,8 +9093,7 @@ var BaseAddon = class {
9151
9093
  await this.resolveConfig();
9152
9094
  await this.onConfigChanged();
9153
9095
  this.emitLifecycle(EventCategory.AddonUpdated, { level: "global" });
9154
- const legacy = this.globalSettingsSchema();
9155
- this.maybeAutoRestart(Object.keys(barePatch), [...legacy === null ? [] : [legacy], ...this.loadedScopedSchemas().map((entry) => entry.schema)]);
9096
+ this.maybeAutoRestart(Object.keys(barePatch), this.loadedScopedSchemas().map((entry) => entry.schema));
9156
9097
  return true;
9157
9098
  }
9158
9099
  /**
@@ -9190,10 +9131,7 @@ var BaseAddon = class {
9190
9131
  this._nodeKeysByCap = /* @__PURE__ */ new Map();
9191
9132
  this._addonSecretTree = null;
9192
9133
  }
9193
- /**
9194
- * The form the settings API serves while an addon declares no {@link globalSettingsSchema}: the
9195
- * sections of its scoped schemas, so dropping the old hook does not blank the form.
9196
- */
9134
+ /** The form of an addon's scoped schemas: their sections, each shown once. */
9197
9135
  scopedFormSchema(cap) {
9198
9136
  const byId = /* @__PURE__ */ new Map();
9199
9137
  for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
@@ -9205,8 +9143,7 @@ var BaseAddon = class {
9205
9143
  return [...this._scopedByCap.values()].flat();
9206
9144
  }
9207
9145
  /**
9208
- * The field keys that are stored per node: every field of a {@link nodeSettingsSchema}, plus
9209
- * the fields the legacy {@link globalSettingsSchema} still marks `perNode: true`. Derived once
9146
+ * The field keys that are stored per node: every field of a {@link nodeSettingsSchema}. Derived once
9210
9147
  * per `cap` argument and memoized (schemas are static declarations). Empty set ⇒ every
9211
9148
  * per-node code path is bypassed and the settings API behaves like the node-agnostic one.
9212
9149
  * Call {@link loadScopedSchemas} first (the async seams do).
@@ -9215,8 +9152,7 @@ var BaseAddon = class {
9215
9152
  const cacheKey = cap ?? "";
9216
9153
  const cached = this._nodeKeysByCap.get(cacheKey);
9217
9154
  if (cached) return cached;
9218
- const legacy = this.globalSettingsSchema(cap);
9219
- const keys = new Set(legacy ? legacy.sections.flatMap((section) => collectPerNodeFieldKeys(section.fields)) : []);
9155
+ const keys = /* @__PURE__ */ new Set();
9220
9156
  for (const { scope, schema } of this.loadedScopedSchemas(cap)) {
9221
9157
  if (scope !== "node") continue;
9222
9158
  for (const section of schema.sections) for (const key of collectValueFieldKeys(section.fields)) keys.add(key);
@@ -9434,8 +9370,6 @@ var BaseAddon = class {
9434
9370
  }
9435
9371
  declaredKeySet() {
9436
9372
  const keys = new Set(Object.keys(this.defaults));
9437
- const schema = this.globalSettingsSchema();
9438
- if (schema) for (const section of schema.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
9439
9373
  for (const { schema: scoped } of this.loadedScopedSchemas()) for (const section of scoped.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
9440
9374
  for (const key of this._declaredStateKeys) keys.add(key);
9441
9375
  for (const path of this.secretStatePaths) {
@@ -9533,7 +9467,7 @@ var BaseAddon = class {
9533
9467
  /** The addon store's secret tree: schema fields by TYPE, plus `secretStatePaths`. */
9534
9468
  addonSecretTree() {
9535
9469
  if (this._addonSecretTree === null) {
9536
- const tree = new Map(secretTreeFromSchema(this.globalSettingsSchema()));
9470
+ const tree = /* @__PURE__ */ new Map();
9537
9471
  for (const { schema } of this.loadedScopedSchemas()) for (const [key, node] of secretTreeFromSchema(schema)) tree.set(key, node);
9538
9472
  this._addonSecretTree = mergeSecretStatePaths(tree, this.secretStatePaths);
9539
9473
  }
@@ -9745,47 +9679,6 @@ function classifyStoreError(err) {
9745
9679
  if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
9746
9680
  return "permanent";
9747
9681
  }
9748
- /**
9749
- * Collect the keys of every field marked `perNode: true`, recursing into
9750
- * layout containers (`group` fields and `sub-tabs` tabs) the same way
9751
- * `hydrateSchema` does. Valueless structural fields (separator/info/…)
9752
- * don't declare `perNode` and are excluded by the `in` narrowing.
9753
- */
9754
- /**
9755
- * The same fields with every `perNode: true` one removed, recursing into layout
9756
- * containers exactly as {@link collectPerNodeFieldKeys} does. A container left
9757
- * with no child is dropped rather than rendered empty.
9758
- *
9759
- * Used by `getIntegrationSettings`: an integration is not a node, so a field
9760
- * whose store key is `<key>@<nodeId>` has no node to belong to there.
9761
- */
9762
- function dropPerNodeFields(fields) {
9763
- const kept = [];
9764
- for (const field of fields) {
9765
- if (field.type === "group") {
9766
- const inner = dropPerNodeFields(field.fields);
9767
- if (inner.length > 0) kept.push({
9768
- ...field,
9769
- fields: inner
9770
- });
9771
- continue;
9772
- }
9773
- if (field.type === "sub-tabs") {
9774
- const tabs = field.tabs.map((tab) => ({
9775
- ...tab,
9776
- fields: dropPerNodeFields(tab.fields)
9777
- })).filter((tab) => tab.fields.length > 0);
9778
- if (tabs.length > 0) kept.push({
9779
- ...field,
9780
- tabs
9781
- });
9782
- continue;
9783
- }
9784
- if ("perNode" in field && field.perNode === true) continue;
9785
- kept.push(field);
9786
- }
9787
- return kept;
9788
- }
9789
9682
  /** The keys of the value-holding fields, recursing into layout containers. */
9790
9683
  function collectValueFieldKeys(fields) {
9791
9684
  const collected = [];
@@ -9818,21 +9711,6 @@ function collectFieldKeys(fields) {
9818
9711
  }
9819
9712
  return collected;
9820
9713
  }
9821
- function collectPerNodeFieldKeys(fields) {
9822
- const collected = [];
9823
- for (const field of fields) {
9824
- if (field.type === "group") {
9825
- collected.push(...collectPerNodeFieldKeys(field.fields));
9826
- continue;
9827
- }
9828
- if (field.type === "sub-tabs") {
9829
- for (const tab of field.tabs) collected.push(...collectPerNodeFieldKeys(tab.fields));
9830
- continue;
9831
- }
9832
- if ("perNode" in field && field.perNode === true) collected.push(field.key);
9833
- }
9834
- return collected;
9835
- }
9836
9714
  /**
9837
9715
  * Normalize an `ICamstackAddon.initialize()` return value into the
9838
9716
  * `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
@@ -12655,13 +12533,25 @@ Object.freeze({
12655
12533
  "path": "temperature",
12656
12534
  "valueType": "number"
12657
12535
  }],
12658
- "timed-run": [{
12659
- "path": "activeUntil",
12660
- "valueType": "number"
12661
- }, {
12662
- "path": "requestedBy",
12663
- "valueType": "string"
12664
- }],
12536
+ "timed-run": [
12537
+ {
12538
+ "path": "activeUntil",
12539
+ "valueType": "number"
12540
+ },
12541
+ {
12542
+ "path": "requestedBy",
12543
+ "valueType": "string"
12544
+ },
12545
+ {
12546
+ "path": "quickRun.duration",
12547
+ "valueType": "number"
12548
+ },
12549
+ {
12550
+ "path": "quickRun.unit",
12551
+ "valueType": "enum",
12552
+ "enumValues": ["s", "min"]
12553
+ }
12554
+ ],
12665
12555
  "update": [
12666
12556
  {
12667
12557
  "path": "currentVersion",
@@ -12885,7 +12775,7 @@ object({
12885
12775
  params: record(string(), union([string(), number()])).optional()
12886
12776
  });
12887
12777
  //#endregion
12888
- //#region ../types/dist/composition-BmBHuDTQ.mjs
12778
+ //#region ../types/dist/composition-Bx0JvKUU.mjs
12889
12779
  var AUDIO_ENCODER_BY_CODEC = {
12890
12780
  opus: "libopus",
12891
12781
  aac: "aac",
@@ -14643,6 +14533,387 @@ var NodeColorIdSchema = _enum([
14643
14533
  "node-h"
14644
14534
  ]);
14645
14535
  //#endregion
14536
+ //#region ../types/dist/convert-BAzH15HU.mjs
14537
+ /**
14538
+ * Frozen unit → spec table. `•` in the doc marks each dimension's canonical
14539
+ * unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
14540
+ * `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
14541
+ * decimals). K derives from `°C = K − 273.15`.
14542
+ */
14543
+ var UNIT_TABLE = {
14544
+ "°C": {
14545
+ dimension: "temperature",
14546
+ factor: 1,
14547
+ offset: 0
14548
+ },
14549
+ "°F": {
14550
+ dimension: "temperature",
14551
+ factor: 5 / 9,
14552
+ offset: -160 / 9
14553
+ },
14554
+ K: {
14555
+ dimension: "temperature",
14556
+ factor: 1,
14557
+ offset: -273.15
14558
+ },
14559
+ hPa: {
14560
+ dimension: "pressure",
14561
+ factor: 1,
14562
+ offset: 0
14563
+ },
14564
+ kPa: {
14565
+ dimension: "pressure",
14566
+ factor: 10,
14567
+ offset: 0
14568
+ },
14569
+ Pa: {
14570
+ dimension: "pressure",
14571
+ factor: .01,
14572
+ offset: 0
14573
+ },
14574
+ mbar: {
14575
+ dimension: "pressure",
14576
+ factor: 1,
14577
+ offset: 0
14578
+ },
14579
+ bar: {
14580
+ dimension: "pressure",
14581
+ factor: 1e3,
14582
+ offset: 0
14583
+ },
14584
+ inHg: {
14585
+ dimension: "pressure",
14586
+ factor: 33.8639,
14587
+ offset: 0
14588
+ },
14589
+ mmHg: {
14590
+ dimension: "pressure",
14591
+ factor: 1.33322,
14592
+ offset: 0
14593
+ },
14594
+ psi: {
14595
+ dimension: "pressure",
14596
+ factor: 68.9476,
14597
+ offset: 0
14598
+ },
14599
+ "m/s": {
14600
+ dimension: "speed",
14601
+ factor: 1,
14602
+ offset: 0
14603
+ },
14604
+ "km/h": {
14605
+ dimension: "speed",
14606
+ factor: 1 / 3.6,
14607
+ offset: 0
14608
+ },
14609
+ mph: {
14610
+ dimension: "speed",
14611
+ factor: .44704,
14612
+ offset: 0
14613
+ },
14614
+ kn: {
14615
+ dimension: "speed",
14616
+ factor: .514444,
14617
+ offset: 0
14618
+ },
14619
+ "mm/h": {
14620
+ dimension: "precipitation-rate",
14621
+ factor: 1,
14622
+ offset: 0
14623
+ },
14624
+ "in/h": {
14625
+ dimension: "precipitation-rate",
14626
+ factor: 25.4,
14627
+ offset: 0
14628
+ },
14629
+ m: {
14630
+ dimension: "length",
14631
+ factor: 1,
14632
+ offset: 0
14633
+ },
14634
+ mm: {
14635
+ dimension: "length",
14636
+ factor: .001,
14637
+ offset: 0
14638
+ },
14639
+ cm: {
14640
+ dimension: "length",
14641
+ factor: .01,
14642
+ offset: 0
14643
+ },
14644
+ km: {
14645
+ dimension: "length",
14646
+ factor: 1e3,
14647
+ offset: 0
14648
+ },
14649
+ in: {
14650
+ dimension: "length",
14651
+ factor: .0254,
14652
+ offset: 0
14653
+ },
14654
+ ft: {
14655
+ dimension: "length",
14656
+ factor: .3048,
14657
+ offset: 0
14658
+ },
14659
+ mi: {
14660
+ dimension: "length",
14661
+ factor: 1609.344,
14662
+ offset: 0
14663
+ },
14664
+ "m²": {
14665
+ dimension: "area",
14666
+ factor: 1,
14667
+ offset: 0
14668
+ },
14669
+ lx: {
14670
+ dimension: "illuminance",
14671
+ factor: 1,
14672
+ offset: 0
14673
+ },
14674
+ "W/m²": {
14675
+ dimension: "irradiance",
14676
+ factor: 1,
14677
+ offset: 0
14678
+ },
14679
+ W: {
14680
+ dimension: "power",
14681
+ factor: 1,
14682
+ offset: 0
14683
+ },
14684
+ kW: {
14685
+ dimension: "power",
14686
+ factor: 1e3,
14687
+ offset: 0
14688
+ },
14689
+ VA: {
14690
+ dimension: "apparent-power",
14691
+ factor: 1,
14692
+ offset: 0
14693
+ },
14694
+ Wh: {
14695
+ dimension: "energy",
14696
+ factor: 1,
14697
+ offset: 0
14698
+ },
14699
+ kWh: {
14700
+ dimension: "energy",
14701
+ factor: 1e3,
14702
+ offset: 0
14703
+ },
14704
+ MWh: {
14705
+ dimension: "energy",
14706
+ factor: 1e6,
14707
+ offset: 0
14708
+ },
14709
+ V: {
14710
+ dimension: "voltage",
14711
+ factor: 1,
14712
+ offset: 0
14713
+ },
14714
+ mV: {
14715
+ dimension: "voltage",
14716
+ factor: .001,
14717
+ offset: 0
14718
+ },
14719
+ A: {
14720
+ dimension: "current",
14721
+ factor: 1,
14722
+ offset: 0
14723
+ },
14724
+ mA: {
14725
+ dimension: "current",
14726
+ factor: .001,
14727
+ offset: 0
14728
+ },
14729
+ ppm: {
14730
+ dimension: "concentration-volume",
14731
+ factor: 1,
14732
+ offset: 0
14733
+ },
14734
+ ppb: {
14735
+ dimension: "concentration-volume",
14736
+ factor: .001,
14737
+ offset: 0
14738
+ },
14739
+ "µg/m³": {
14740
+ dimension: "concentration-mass",
14741
+ factor: 1,
14742
+ offset: 0
14743
+ },
14744
+ "mg/m³": {
14745
+ dimension: "concentration-mass",
14746
+ factor: 1e3,
14747
+ offset: 0
14748
+ },
14749
+ kg: {
14750
+ dimension: "mass",
14751
+ factor: 1,
14752
+ offset: 0
14753
+ },
14754
+ g: {
14755
+ dimension: "mass",
14756
+ factor: .001,
14757
+ offset: 0
14758
+ },
14759
+ lb: {
14760
+ dimension: "mass",
14761
+ factor: .453592,
14762
+ offset: 0
14763
+ },
14764
+ oz: {
14765
+ dimension: "mass",
14766
+ factor: .0283495,
14767
+ offset: 0
14768
+ },
14769
+ "%": {
14770
+ dimension: "percentage",
14771
+ factor: 1,
14772
+ offset: 0
14773
+ },
14774
+ L: {
14775
+ dimension: "volume",
14776
+ factor: 1,
14777
+ offset: 0
14778
+ },
14779
+ mL: {
14780
+ dimension: "volume",
14781
+ factor: .001,
14782
+ offset: 0
14783
+ },
14784
+ gal: {
14785
+ dimension: "volume",
14786
+ factor: 3.785411784,
14787
+ offset: 0
14788
+ },
14789
+ s: {
14790
+ dimension: "duration",
14791
+ factor: 1,
14792
+ offset: 0
14793
+ },
14794
+ ms: {
14795
+ dimension: "duration",
14796
+ factor: .001,
14797
+ offset: 0
14798
+ },
14799
+ min: {
14800
+ dimension: "duration",
14801
+ factor: 60,
14802
+ offset: 0
14803
+ },
14804
+ h: {
14805
+ dimension: "duration",
14806
+ factor: 3600,
14807
+ offset: 0
14808
+ },
14809
+ d: {
14810
+ dimension: "duration",
14811
+ factor: 86400,
14812
+ offset: 0
14813
+ },
14814
+ B: {
14815
+ dimension: "information",
14816
+ factor: 1,
14817
+ offset: 0
14818
+ },
14819
+ KiB: {
14820
+ dimension: "information",
14821
+ factor: 1024,
14822
+ offset: 0
14823
+ },
14824
+ MiB: {
14825
+ dimension: "information",
14826
+ factor: 1024 ** 2,
14827
+ offset: 0
14828
+ },
14829
+ GiB: {
14830
+ dimension: "information",
14831
+ factor: 1024 ** 3,
14832
+ offset: 0
14833
+ },
14834
+ TiB: {
14835
+ dimension: "information",
14836
+ factor: 1024 ** 4,
14837
+ offset: 0
14838
+ },
14839
+ kB: {
14840
+ dimension: "information",
14841
+ factor: 1e3,
14842
+ offset: 0
14843
+ },
14844
+ MB: {
14845
+ dimension: "information",
14846
+ factor: 1e6,
14847
+ offset: 0
14848
+ },
14849
+ GB: {
14850
+ dimension: "information",
14851
+ factor: 1e9,
14852
+ offset: 0
14853
+ },
14854
+ "°": {
14855
+ dimension: "angle",
14856
+ factor: 1,
14857
+ offset: 0
14858
+ },
14859
+ dBFS: {
14860
+ dimension: "sound-level",
14861
+ factor: 1,
14862
+ offset: 0
14863
+ },
14864
+ dBm: {
14865
+ dimension: "signal-level",
14866
+ factor: 1,
14867
+ offset: 0
14868
+ },
14869
+ mired: {
14870
+ dimension: "colour-temperature",
14871
+ factor: 1,
14872
+ offset: 0
14873
+ },
14874
+ kbps: {
14875
+ dimension: "bitrate",
14876
+ factor: 1,
14877
+ offset: 0
14878
+ },
14879
+ Mbps: {
14880
+ dimension: "bitrate",
14881
+ factor: 1e3,
14882
+ offset: 0
14883
+ },
14884
+ fps: {
14885
+ dimension: "rate",
14886
+ factor: 1,
14887
+ offset: 0
14888
+ }
14889
+ };
14890
+ /** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
14891
+ function specFor(unit) {
14892
+ return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
14893
+ }
14894
+ /** Value in `spec`'s unit → its dimension's canonical unit. */
14895
+ function toCanonical(value, spec) {
14896
+ return value * spec.factor + spec.offset;
14897
+ }
14898
+ /** Canonical-unit value → the unit described by `spec`. */
14899
+ function fromCanonical(canonical, spec) {
14900
+ return (canonical - spec.offset) / spec.factor;
14901
+ }
14902
+ /**
14903
+ * Graceful variant for the render path: returns the converted value, or
14904
+ * `undefined` when the conversion is refused (unknown unit / cross-dimension).
14905
+ * Never throws — a render caller falls back to the raw value + source unit.
14906
+ */
14907
+ function tryConvertUnit(value, from, to) {
14908
+ if (from === to) return value;
14909
+ const fromSpec = specFor(from);
14910
+ if (!fromSpec) return void 0;
14911
+ const toSpec = specFor(to);
14912
+ if (!toSpec) return void 0;
14913
+ if (fromSpec.dimension !== toSpec.dimension) return void 0;
14914
+ return fromCanonical(toCanonical(value, fromSpec), toSpec);
14915
+ }
14916
+ //#endregion
14646
14917
  //#region ../types/dist/index.mjs
14647
14918
  var SMTP_INBOUND_DEFAULT_PORT = 2525;
14648
14919
  var SMTP_INBOUND_DEFAULT_DOMAIN = "camstack.local";
@@ -43741,6 +44012,7 @@ var ExpressionBindingSourceSchema = union([
43741
44012
  object({
43742
44013
  kind: literal("global"),
43743
44014
  sourceStableId: string(),
44015
+ addonId: string().optional(),
43744
44016
  cap: string(),
43745
44017
  fieldPath: string()
43746
44018
  })
@@ -43807,385 +44079,6 @@ var SourceInfoSchema = object({
43807
44079
  raw: record(string(), unknown()).optional()
43808
44080
  });
43809
44081
  /**
43810
- * Frozen unit → spec table. `•` in the doc marks each dimension's canonical
43811
- * unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
43812
- * `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
43813
- * decimals). K derives from `°C = K − 273.15`.
43814
- */
43815
- var UNIT_TABLE = {
43816
- "°C": {
43817
- dimension: "temperature",
43818
- factor: 1,
43819
- offset: 0
43820
- },
43821
- "°F": {
43822
- dimension: "temperature",
43823
- factor: 5 / 9,
43824
- offset: -160 / 9
43825
- },
43826
- K: {
43827
- dimension: "temperature",
43828
- factor: 1,
43829
- offset: -273.15
43830
- },
43831
- hPa: {
43832
- dimension: "pressure",
43833
- factor: 1,
43834
- offset: 0
43835
- },
43836
- kPa: {
43837
- dimension: "pressure",
43838
- factor: 10,
43839
- offset: 0
43840
- },
43841
- Pa: {
43842
- dimension: "pressure",
43843
- factor: .01,
43844
- offset: 0
43845
- },
43846
- mbar: {
43847
- dimension: "pressure",
43848
- factor: 1,
43849
- offset: 0
43850
- },
43851
- bar: {
43852
- dimension: "pressure",
43853
- factor: 1e3,
43854
- offset: 0
43855
- },
43856
- inHg: {
43857
- dimension: "pressure",
43858
- factor: 33.8639,
43859
- offset: 0
43860
- },
43861
- mmHg: {
43862
- dimension: "pressure",
43863
- factor: 1.33322,
43864
- offset: 0
43865
- },
43866
- psi: {
43867
- dimension: "pressure",
43868
- factor: 68.9476,
43869
- offset: 0
43870
- },
43871
- "m/s": {
43872
- dimension: "speed",
43873
- factor: 1,
43874
- offset: 0
43875
- },
43876
- "km/h": {
43877
- dimension: "speed",
43878
- factor: 1 / 3.6,
43879
- offset: 0
43880
- },
43881
- mph: {
43882
- dimension: "speed",
43883
- factor: .44704,
43884
- offset: 0
43885
- },
43886
- kn: {
43887
- dimension: "speed",
43888
- factor: .514444,
43889
- offset: 0
43890
- },
43891
- "mm/h": {
43892
- dimension: "precipitation-rate",
43893
- factor: 1,
43894
- offset: 0
43895
- },
43896
- "in/h": {
43897
- dimension: "precipitation-rate",
43898
- factor: 25.4,
43899
- offset: 0
43900
- },
43901
- m: {
43902
- dimension: "length",
43903
- factor: 1,
43904
- offset: 0
43905
- },
43906
- mm: {
43907
- dimension: "length",
43908
- factor: .001,
43909
- offset: 0
43910
- },
43911
- cm: {
43912
- dimension: "length",
43913
- factor: .01,
43914
- offset: 0
43915
- },
43916
- km: {
43917
- dimension: "length",
43918
- factor: 1e3,
43919
- offset: 0
43920
- },
43921
- in: {
43922
- dimension: "length",
43923
- factor: .0254,
43924
- offset: 0
43925
- },
43926
- ft: {
43927
- dimension: "length",
43928
- factor: .3048,
43929
- offset: 0
43930
- },
43931
- mi: {
43932
- dimension: "length",
43933
- factor: 1609.344,
43934
- offset: 0
43935
- },
43936
- "m²": {
43937
- dimension: "area",
43938
- factor: 1,
43939
- offset: 0
43940
- },
43941
- lx: {
43942
- dimension: "illuminance",
43943
- factor: 1,
43944
- offset: 0
43945
- },
43946
- "W/m²": {
43947
- dimension: "irradiance",
43948
- factor: 1,
43949
- offset: 0
43950
- },
43951
- W: {
43952
- dimension: "power",
43953
- factor: 1,
43954
- offset: 0
43955
- },
43956
- kW: {
43957
- dimension: "power",
43958
- factor: 1e3,
43959
- offset: 0
43960
- },
43961
- VA: {
43962
- dimension: "apparent-power",
43963
- factor: 1,
43964
- offset: 0
43965
- },
43966
- Wh: {
43967
- dimension: "energy",
43968
- factor: 1,
43969
- offset: 0
43970
- },
43971
- kWh: {
43972
- dimension: "energy",
43973
- factor: 1e3,
43974
- offset: 0
43975
- },
43976
- MWh: {
43977
- dimension: "energy",
43978
- factor: 1e6,
43979
- offset: 0
43980
- },
43981
- V: {
43982
- dimension: "voltage",
43983
- factor: 1,
43984
- offset: 0
43985
- },
43986
- mV: {
43987
- dimension: "voltage",
43988
- factor: .001,
43989
- offset: 0
43990
- },
43991
- A: {
43992
- dimension: "current",
43993
- factor: 1,
43994
- offset: 0
43995
- },
43996
- mA: {
43997
- dimension: "current",
43998
- factor: .001,
43999
- offset: 0
44000
- },
44001
- ppm: {
44002
- dimension: "concentration-volume",
44003
- factor: 1,
44004
- offset: 0
44005
- },
44006
- ppb: {
44007
- dimension: "concentration-volume",
44008
- factor: .001,
44009
- offset: 0
44010
- },
44011
- "µg/m³": {
44012
- dimension: "concentration-mass",
44013
- factor: 1,
44014
- offset: 0
44015
- },
44016
- "mg/m³": {
44017
- dimension: "concentration-mass",
44018
- factor: 1e3,
44019
- offset: 0
44020
- },
44021
- kg: {
44022
- dimension: "mass",
44023
- factor: 1,
44024
- offset: 0
44025
- },
44026
- g: {
44027
- dimension: "mass",
44028
- factor: .001,
44029
- offset: 0
44030
- },
44031
- lb: {
44032
- dimension: "mass",
44033
- factor: .453592,
44034
- offset: 0
44035
- },
44036
- oz: {
44037
- dimension: "mass",
44038
- factor: .0283495,
44039
- offset: 0
44040
- },
44041
- "%": {
44042
- dimension: "percentage",
44043
- factor: 1,
44044
- offset: 0
44045
- },
44046
- L: {
44047
- dimension: "volume",
44048
- factor: 1,
44049
- offset: 0
44050
- },
44051
- mL: {
44052
- dimension: "volume",
44053
- factor: .001,
44054
- offset: 0
44055
- },
44056
- gal: {
44057
- dimension: "volume",
44058
- factor: 3.785411784,
44059
- offset: 0
44060
- },
44061
- s: {
44062
- dimension: "duration",
44063
- factor: 1,
44064
- offset: 0
44065
- },
44066
- ms: {
44067
- dimension: "duration",
44068
- factor: .001,
44069
- offset: 0
44070
- },
44071
- min: {
44072
- dimension: "duration",
44073
- factor: 60,
44074
- offset: 0
44075
- },
44076
- h: {
44077
- dimension: "duration",
44078
- factor: 3600,
44079
- offset: 0
44080
- },
44081
- d: {
44082
- dimension: "duration",
44083
- factor: 86400,
44084
- offset: 0
44085
- },
44086
- B: {
44087
- dimension: "information",
44088
- factor: 1,
44089
- offset: 0
44090
- },
44091
- KiB: {
44092
- dimension: "information",
44093
- factor: 1024,
44094
- offset: 0
44095
- },
44096
- MiB: {
44097
- dimension: "information",
44098
- factor: 1024 ** 2,
44099
- offset: 0
44100
- },
44101
- GiB: {
44102
- dimension: "information",
44103
- factor: 1024 ** 3,
44104
- offset: 0
44105
- },
44106
- TiB: {
44107
- dimension: "information",
44108
- factor: 1024 ** 4,
44109
- offset: 0
44110
- },
44111
- kB: {
44112
- dimension: "information",
44113
- factor: 1e3,
44114
- offset: 0
44115
- },
44116
- MB: {
44117
- dimension: "information",
44118
- factor: 1e6,
44119
- offset: 0
44120
- },
44121
- GB: {
44122
- dimension: "information",
44123
- factor: 1e9,
44124
- offset: 0
44125
- },
44126
- "°": {
44127
- dimension: "angle",
44128
- factor: 1,
44129
- offset: 0
44130
- },
44131
- dBFS: {
44132
- dimension: "sound-level",
44133
- factor: 1,
44134
- offset: 0
44135
- },
44136
- dBm: {
44137
- dimension: "signal-level",
44138
- factor: 1,
44139
- offset: 0
44140
- },
44141
- mired: {
44142
- dimension: "colour-temperature",
44143
- factor: 1,
44144
- offset: 0
44145
- },
44146
- kbps: {
44147
- dimension: "bitrate",
44148
- factor: 1,
44149
- offset: 0
44150
- },
44151
- Mbps: {
44152
- dimension: "bitrate",
44153
- factor: 1e3,
44154
- offset: 0
44155
- },
44156
- fps: {
44157
- dimension: "rate",
44158
- factor: 1,
44159
- offset: 0
44160
- }
44161
- };
44162
- /** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
44163
- function specFor(unit) {
44164
- return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
44165
- }
44166
- /** Value in `spec`'s unit → its dimension's canonical unit. */
44167
- function toCanonical(value, spec) {
44168
- return value * spec.factor + spec.offset;
44169
- }
44170
- /** Canonical-unit value → the unit described by `spec`. */
44171
- function fromCanonical(canonical, spec) {
44172
- return (canonical - spec.offset) / spec.factor;
44173
- }
44174
- /**
44175
- * Graceful variant for the render path: returns the converted value, or
44176
- * `undefined` when the conversion is refused (unknown unit / cross-dimension).
44177
- * Never throws — a render caller falls back to the raw value + source unit.
44178
- */
44179
- function tryConvertUnit(value, from, to) {
44180
- if (from === to) return value;
44181
- const fromSpec = specFor(from);
44182
- if (!fromSpec) return void 0;
44183
- const toSpec = specFor(to);
44184
- if (!toSpec) return void 0;
44185
- if (fromSpec.dimension !== toSpec.dimension) return void 0;
44186
- return fromCanonical(toCanonical(value, fromSpec), toSpec);
44187
- }
44188
- /**
44189
44082
  * A number a person types for a physical quantity — the input side of the
44190
44083
  * value + unit contract (D972).
44191
44084
  *
@@ -45947,26 +45840,23 @@ var SettingsSchemaWithValuesSchema = object({
45947
45840
  var SettingsPatchSchema = record(string(), unknown());
45948
45841
  /** The scope of a scoped-settings call (D986): where the capability declared the values. */
45949
45842
  var ScopedSettingsScopeSchema = _enum(SCOPED_SETTINGS_SCOPES);
45843
+ /** One scoped schema an addon serves: its capability, scope and section ids. */
45844
+ var ScopedSettingsDeclarationSchema = object({
45845
+ cap: string(),
45846
+ scope: ScopedSettingsScopeSchema,
45847
+ sectionIds: array(string())
45848
+ });
45950
45849
  /** Standard success response for update operations. */
45951
45850
  var SettingsUpdateResultSchema = object({ success: literal(true) });
45952
45851
  method(object({
45953
- addonId: string(),
45954
- nodeId: string().optional(),
45955
- overlay: record(string(), unknown()).optional(),
45956
- cap: string().optional()
45957
- }), SettingsSchemaWithValuesSchema.nullable()), method(object({
45958
- addonId: string(),
45959
- nodeId: string().optional(),
45960
- patch: SettingsPatchSchema
45961
- }), SettingsUpdateResultSchema, {
45962
- kind: "mutation",
45963
- auth: "admin"
45964
- }), method(object({
45965
45852
  addonId: string(),
45966
45853
  cap: string(),
45967
45854
  scope: ScopedSettingsScopeSchema,
45968
45855
  nodeId: string().optional()
45969
45856
  }), SettingsSchemaWithValuesSchema.nullable()), method(object({
45857
+ addonId: string(),
45858
+ nodeId: string().optional()
45859
+ }), array(ScopedSettingsDeclarationSchema).nullable()), method(object({
45970
45860
  addonId: string(),
45971
45861
  cap: string(),
45972
45862
  scope: ScopedSettingsScopeSchema,
@@ -45981,9 +45871,6 @@ method(object({
45981
45871
  scope: ScopedSettingsScopeSchema,
45982
45872
  nodeId: string().optional()
45983
45873
  }), record(string(), unknown()).nullable()), method(object({
45984
- addonId: string(),
45985
- nodeId: string().optional()
45986
- }), SettingsSchemaWithValuesSchema.nullable()), method(object({
45987
45874
  addonId: string(),
45988
45875
  nodeId: string().optional(),
45989
45876
  instance: IntegrationInstanceRefSchema
@@ -47327,7 +47214,7 @@ var BackupDestinationInfoSchema = object({
47327
47214
  id: string(),
47328
47215
  /**
47329
47216
  * Manifest id of the owning addon. The Settings button on the
47330
- * destination card opens that addon's `globalSettingsSchema` panel.
47217
+ * destination card opens that addon's scoped settings panel.
47331
47218
  */
47332
47219
  addonId: string(),
47333
47220
  /** Operator-toggled enable flag from the destination-policy table. */
@@ -49914,7 +49801,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
49914
49801
  kind: "mutation",
49915
49802
  auth: "protected"
49916
49803
  });
49917
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, 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.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater;
49804
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, 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.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
49918
49805
  var NUMBER = {
49919
49806
  kind: "fixed",
49920
49807
  result: ["number"]
@@ -51207,7 +51094,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
51207
51094
  });
51208
51095
  /**
51209
51096
  * Stable UI option list for the `hwaccel` setting. Decoder addons
51210
- * reuse this for `globalSettingsSchema()` so the dropdown is
51097
+ * reuse this in their scoped settings form so the dropdown is
51211
51098
  * identical everywhere. Order: auto → off → common backends by
51212
51099
  * platform affinity (macOS, NVIDIA, Intel/AMD, Windows, Linux).
51213
51100
  */
@@ -51890,6 +51777,7 @@ var deviceExportCapability = {
51890
51777
  })
51891
51778
  }
51892
51779
  };
51780
+ var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
51893
51781
  /**
51894
51782
  * A SITE ZONE — a named part of the property that several locations belong to.
51895
51783
  *
@@ -52283,6 +52171,12 @@ var DeviceInfoSchema = object({
52283
52171
  addonId: string(),
52284
52172
  type: _enum(DeviceType),
52285
52173
  name: string(),
52174
+ /** The name a value template uses for this device (`{{ stufa_veranda.temperature }}`),
52175
+ * entity_id style. Generated once from the name at first registration, unique
52176
+ * cluster-wide, editable through `setAlias`, NOT changed by a rename (D1021).
52177
+ * Optional: a record produced by an older build omits it until the boot
52178
+ * backfill has run. */
52179
+ alias: DeviceAliasSchema.optional(),
52286
52180
  /** Operator-organisational location label. `null` when unset. */
52287
52181
  location: string().nullable(),
52288
52182
  /** Soft-disabled flag. */
@@ -52602,6 +52496,25 @@ method(object({
52602
52496
  }), _void(), {
52603
52497
  kind: "mutation",
52604
52498
  auth: "admin"
52499
+ }), method(object({
52500
+ deviceId: number(),
52501
+ alias: string()
52502
+ }), discriminatedUnion("ok", [object({
52503
+ ok: literal(true),
52504
+ alias: DeviceAliasSchema
52505
+ }), object({
52506
+ ok: literal(false),
52507
+ reason: _enum([
52508
+ "empty",
52509
+ "too-long",
52510
+ "grammar",
52511
+ "reserved",
52512
+ "taken"
52513
+ ]),
52514
+ takenBy: number().optional()
52515
+ })]), {
52516
+ kind: "mutation",
52517
+ auth: "admin"
52605
52518
  }), method(object({
52606
52519
  deviceId: number(),
52607
52520
  location: string().nullable()
@@ -55739,10 +55652,11 @@ var IntegrationInstanceDescriptionSchema = object({
55739
55652
  /** True when `testInstance` really probes the remote. */
55740
55653
  canTest: boolean(),
55741
55654
  /**
55742
- * The kinds an instance can be of. Absent or one entry: nothing to choose; more than one: the
55743
- * Add flow asks which first and sends it as `createInstance.kind`.
55655
+ * The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
55656
+ * nothing to choose; more than one: the Add flow asks which first and sends it as
55657
+ * `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
55744
55658
  */
55745
- kinds: array(IntegrationInstanceKindSchema).optional(),
55659
+ kinds: array(IntegrationInstanceKindSchema).min(1),
55746
55660
  /**
55747
55661
  * The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
55748
55662
  * devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
@@ -55778,8 +55692,8 @@ var IntegrationInstanceSchema = object({
55778
55692
  * the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
55779
55693
  */
55780
55694
  enabled: boolean().optional(),
55781
- /** The kind of this instance (one of `describe().kinds[].id`), when the provider has kinds. */
55782
- kind: string().optional(),
55695
+ /** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
55696
+ kind: string().min(1),
55783
55697
  /** Values for the instance form; a secret is a `SecretFieldView`, never text. */
55784
55698
  formValues: record(string(), unknown()),
55785
55699
  status: IntegrationInstanceStatusSchema.optional(),
@@ -65349,6 +65263,11 @@ var NcScheduleSchema = object({
65349
65263
  * as a STATE SUMMARY at the end of each window of `schedule`.
65350
65264
  */
65351
65265
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
65266
+ _enum([
65267
+ "activation",
65268
+ "deactivation",
65269
+ "schedule"
65270
+ ]);
65352
65271
  /**
65353
65272
  * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
65354
65273
  * every section; `section` = one notification per section with something to
@@ -65365,11 +65284,26 @@ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
65365
65284
  * midnight crossing); the send time is each window's END. Refused on the
65366
65285
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
65367
65286
  */
65368
- var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
65369
- mode: literal("summary"),
65370
- schedule: NcScheduleSchema,
65371
- split: NcStateSummarySplitSchema.optional()
65372
- })]);
65287
+ var NcSystemEventDeliverySchema = discriminatedUnion("mode", [
65288
+ object({ mode: literal("instant") }),
65289
+ object({
65290
+ mode: literal("summary"),
65291
+ schedule: NcScheduleSchema,
65292
+ split: NcStateSummarySplitSchema.optional()
65293
+ }),
65294
+ object({
65295
+ mode: literal("modes"),
65296
+ /** The bad edge, and every kind that has a single edge. */
65297
+ onActivation: boolean(),
65298
+ /** The recovery edges of the classes of the selected kinds (derived, never stored per kind). */
65299
+ onDeactivation: boolean(),
65300
+ /** A state summary at the end of each window; absent = no summary. */
65301
+ onSchedule: object({
65302
+ schedule: NcScheduleSchema,
65303
+ grouping: NcStateSummarySplitSchema
65304
+ }).optional()
65305
+ })
65306
+ ]);
65373
65307
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
65374
65308
  var NcPlateMatcherSchema = object({
65375
65309
  /**
@@ -72889,6 +72823,7 @@ var RemoteLayoutComponentSchema = object({
72889
72823
  });
72890
72824
  });
72891
72825
  method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
72826
+ DeviceType.MediaPlayer;
72892
72827
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
72893
72828
  object({
72894
72829
  /** null = unknown — never coerced to false (D393). */
@@ -75324,7 +75259,7 @@ var TerminalInstanceInfoSchema = object({
75324
75259
  /**
75325
75260
  * False while the node the instance is bound to is not in the cluster
75326
75261
  * topology (forgotten, renamed, re-paired). The instance is kept; the
75327
- * operator re-points it with `updateInstance({ targetNodeId })`.
75262
+ * operator re-points it on the Terminal page.
75328
75263
  */
75329
75264
  nodeInCluster: boolean(),
75330
75265
  profileId: string(),
@@ -75362,41 +75297,7 @@ var TerminalOutputBatchSchema = object({
75362
75297
  snapshot: string().optional(),
75363
75298
  events: array(TerminalOutputEventSchema).readonly()
75364
75299
  });
75365
- method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
75366
- targetNodeId: string().min(1),
75367
- profileId: string().min(1),
75368
- name: string().trim().min(1).max(160).optional(),
75369
- executable: string().max(1024).optional(),
75370
- args: array(string().max(2048)).max(64).optional(),
75371
- cwd: string().max(1024).optional(),
75372
- environment: array(string().max(4096)).max(64).optional(),
75373
- profileSettings: ProfileSettingsBagSchema.optional()
75374
- }), TerminalInstanceInfoSchema, {
75375
- kind: "mutation",
75376
- auth: "admin"
75377
- }), method(object({
75378
- instanceId: string().min(1),
75379
- /** Re-point the instance to another node; the profile must exist there. */
75380
- targetNodeId: string().min(1).max(256).optional(),
75381
- name: string().trim().min(1).max(160).optional(),
75382
- executable: string().max(1024).optional(),
75383
- args: array(string().max(2048)).max(64).optional(),
75384
- cwd: string().max(1024).optional(),
75385
- environment: array(string().max(4096)).max(64).optional(),
75386
- profileSettings: ProfileSettingsBagSchema.optional()
75387
- }), TerminalInstanceInfoSchema, {
75388
- kind: "mutation",
75389
- auth: "admin"
75390
- }), method(object({ instanceId: string().min(1) }), _void(), {
75391
- kind: "mutation",
75392
- auth: "admin"
75393
- }), method(object({
75394
- instanceId: string().min(1),
75395
- enabled: boolean()
75396
- }), TerminalInstanceInfoSchema, {
75397
- kind: "mutation",
75398
- auth: "admin"
75399
- }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
75300
+ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
75400
75301
  stableId: string().min(1),
75401
75302
  name: string().trim().min(1).max(160).optional()
75402
75303
  }), TerminalInstanceInfoSchema, {
@@ -75465,6 +75366,11 @@ var TimedRunUnitSchema = _enum(["s", "min"]);
75465
75366
  _enum(["switch", "pet-fountain"]);
75466
75367
  DeviceType.Heater, DeviceType.PetFountain;
75467
75368
  DeviceType.Heater, DeviceType.PetFountain;
75369
+ /** One duration, as the one-tap run asks for it. */
75370
+ var TimedRunQuickRunSchema = object({
75371
+ duration: number().positive().finite(),
75372
+ unit: TimedRunUnitSchema
75373
+ });
75468
75374
  /** Why a request was not carried out. Typed, so a caller can say it in words. */
75469
75375
  var TimedRunRefusalSchema = _enum([
75470
75376
  "unsupported-device",
@@ -75485,9 +75391,30 @@ object({
75485
75391
  activeUntil: number().nullable(),
75486
75392
  /** Who asked for the run (a user id or an addon id); `null` when nothing is armed or it did not say. */
75487
75393
  requestedBy: string().nullable(),
75394
+ /**
75395
+ * The one-tap run of THIS device: what a "Run" button on any surface starts. `null` when
75396
+ * the device is gone or its type has no timed run; a status from before this field
75397
+ * existed has none, and a surface falls back to the type's default.
75398
+ */
75399
+ quickRun: TimedRunQuickRunSchema.nullable(),
75488
75400
  lastFetchedAt: number()
75489
75401
  });
75490
- method(object({
75402
+ /** What the settings form needs: the unit, the bounds and the type's default. */
75403
+ var TimedRunOptionsSchema = object({
75404
+ unit: TimedRunUnitSchema,
75405
+ /** The longest run, in `unit`. */
75406
+ maxDuration: number(),
75407
+ defaultDuration: number()
75408
+ });
75409
+ /** The one-tap run duration, in the type's unit; `null` returns to the type's default. */
75410
+ var TimedRunSettingsPatchSchema = object({ quickRunDuration: number().positive().finite().nullable().optional() });
75411
+ method(object({ deviceId: number().int() }), TimedRunOptionsSchema), method(object({
75412
+ deviceId: number().int(),
75413
+ settings: TimedRunSettingsPatchSchema
75414
+ }), _void(), {
75415
+ kind: "mutation",
75416
+ auth: "admin"
75417
+ }), method(object({
75491
75418
  deviceId: number().int(),
75492
75419
  duration: number().positive().finite(),
75493
75420
  unit: TimedRunUnitSchema
@@ -78193,13 +78120,6 @@ Object.freeze({
78193
78120
  access: "view",
78194
78121
  role: "admin"
78195
78122
  },
78196
- "addonSettings.getGlobalSettings": {
78197
- capName: "addon-settings",
78198
- capScope: "system",
78199
- addonId: null,
78200
- access: "view",
78201
- role: "admin"
78202
- },
78203
78123
  "addonSettings.getIntegrationFormSchema": {
78204
78124
  capName: "addon-settings",
78205
78125
  capScope: "system",
@@ -78207,14 +78127,14 @@ Object.freeze({
78207
78127
  access: "view",
78208
78128
  role: "admin"
78209
78129
  },
78210
- "addonSettings.getIntegrationSettings": {
78130
+ "addonSettings.getScopedSettings": {
78211
78131
  capName: "addon-settings",
78212
78132
  capScope: "system",
78213
78133
  addonId: null,
78214
78134
  access: "view",
78215
78135
  role: "admin"
78216
78136
  },
78217
- "addonSettings.getScopedSettings": {
78137
+ "addonSettings.listScopedSettings": {
78218
78138
  capName: "addon-settings",
78219
78139
  capScope: "system",
78220
78140
  addonId: null,
@@ -78242,13 +78162,6 @@ Object.freeze({
78242
78162
  access: "create",
78243
78163
  role: "admin"
78244
78164
  },
78245
- "addonSettings.updateGlobalSettings": {
78246
- capName: "addon-settings",
78247
- capScope: "system",
78248
- addonId: null,
78249
- access: "create",
78250
- role: "admin"
78251
- },
78252
78165
  "addonSettings.updateScopedSettings": {
78253
78166
  capName: "addon-settings",
78254
78167
  capScope: "system",
@@ -80419,6 +80332,13 @@ Object.freeze({
80419
80332
  access: "create",
80420
80333
  role: "admin"
80421
80334
  },
80335
+ "deviceManager.setAlias": {
80336
+ capName: "device-manager",
80337
+ capScope: "system",
80338
+ addonId: null,
80339
+ access: "create",
80340
+ role: "admin"
80341
+ },
80422
80342
  "deviceManager.setChildLayout": {
80423
80343
  capName: "device-manager",
80424
80344
  capScope: "system",
@@ -87146,27 +87066,6 @@ Object.freeze({
87146
87066
  access: "create",
87147
87067
  role: "admin"
87148
87068
  },
87149
- "terminalSession.createInstance": {
87150
- capName: "terminal-session",
87151
- capScope: "system",
87152
- addonId: null,
87153
- access: "create",
87154
- role: "admin"
87155
- },
87156
- "terminalSession.deleteInstance": {
87157
- capName: "terminal-session",
87158
- capScope: "system",
87159
- addonId: null,
87160
- access: "delete",
87161
- role: "admin"
87162
- },
87163
- "terminalSession.listInstances": {
87164
- capName: "terminal-session",
87165
- capScope: "system",
87166
- addonId: null,
87167
- access: "view",
87168
- role: "admin"
87169
- },
87170
87069
  "terminalSession.listLegacyCameras": {
87171
87070
  capName: "terminal-session",
87172
87071
  capScope: "system",
@@ -87209,20 +87108,6 @@ Object.freeze({
87209
87108
  access: "create",
87210
87109
  role: "admin"
87211
87110
  },
87212
- "terminalSession.setInstanceEnabled": {
87213
- capName: "terminal-session",
87214
- capScope: "system",
87215
- addonId: null,
87216
- access: "create",
87217
- role: "admin"
87218
- },
87219
- "terminalSession.updateInstance": {
87220
- capName: "terminal-session",
87221
- capScope: "system",
87222
- addonId: null,
87223
- access: "create",
87224
- role: "admin"
87225
- },
87226
87111
  "terminalSession.writeInput": {
87227
87112
  capName: "terminal-session",
87228
87113
  capScope: "system",
@@ -87237,6 +87122,13 @@ Object.freeze({
87237
87122
  access: "create",
87238
87123
  role: "viewer"
87239
87124
  },
87125
+ "timedRun.getOptions": {
87126
+ capName: "timed-run",
87127
+ capScope: "device",
87128
+ addonId: null,
87129
+ access: "view",
87130
+ role: "viewer"
87131
+ },
87240
87132
  "timedRun.getStatus": {
87241
87133
  capName: "timed-run",
87242
87134
  capScope: "device",
@@ -87251,6 +87143,13 @@ Object.freeze({
87251
87143
  access: "create",
87252
87144
  role: "viewer"
87253
87145
  },
87146
+ "timedRun.setSettings": {
87147
+ capName: "timed-run",
87148
+ capScope: "device",
87149
+ addonId: null,
87150
+ access: "create",
87151
+ role: "admin"
87152
+ },
87254
87153
  "toast.onToast": {
87255
87154
  capName: "toast",
87256
87155
  capScope: "system",
@@ -88206,6 +88105,7 @@ function applianceExport(ecosystem, deviceType) {
88206
88105
  if (!isPlugApplianceType(deviceType)) return null;
88207
88106
  return APPLIANCE_EXPORT[ecosystem][deviceType];
88208
88107
  }
88108
+ string().min(1).max(4096);
88209
88109
  Object.freeze({
88210
88110
  "accessories.getStatus": [{
88211
88111
  name: "deviceId",
@@ -88889,6 +88789,11 @@ Object.freeze({
88889
88789
  form: "single",
88890
88790
  optional: false
88891
88791
  }],
88792
+ "deviceManager.setAlias": [{
88793
+ name: "deviceId",
88794
+ form: "single",
88795
+ optional: false
88796
+ }],
88892
88797
  "deviceManager.setChildLayout": [{
88893
88798
  name: "deviceId",
88894
88799
  form: "single",
@@ -90953,6 +90858,11 @@ Object.freeze({
90953
90858
  form: "single",
90954
90859
  optional: false
90955
90860
  }],
90861
+ "timedRun.getOptions": [{
90862
+ name: "deviceId",
90863
+ form: "single",
90864
+ optional: false
90865
+ }],
90956
90866
  "timedRun.getStatus": [{
90957
90867
  name: "deviceId",
90958
90868
  form: "single",
@@ -90963,6 +90873,11 @@ Object.freeze({
90963
90873
  form: "single",
90964
90874
  optional: false
90965
90875
  }],
90876
+ "timedRun.setSettings": [{
90877
+ name: "deviceId",
90878
+ form: "single",
90879
+ optional: false
90880
+ }],
90966
90881
  "update.getStatus": [{
90967
90882
  name: "deviceId",
90968
90883
  form: "single",
@@ -91825,6 +91740,7 @@ var STATE_SUMMARY_VARS = [
91825
91740
  [...RULE_TEXT],
91826
91741
  [...RULE_TEXT],
91827
91742
  [...RULE_TEXT],
91743
+ [...RULE_TEXT],
91828
91744
  [...RULE_BODY_ONLY],
91829
91745
  [...RULE_TEXT],
91830
91746
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
@@ -159850,7 +159766,13 @@ var ExportHapAddon = class extends BaseAddon {
159850
159766
  role: "services",
159851
159767
  instanceMode: "multiple",
159852
159768
  kind: "bridge",
159853
- canTest: false
159769
+ canTest: false,
159770
+ kinds: [{
159771
+ id: "bridge",
159772
+ label: "HomeKit bridge",
159773
+ functionCap: "device-export",
159774
+ role: "services"
159775
+ }]
159854
159776
  },
159855
159777
  formSchema: (id) => this.bridgeForm(id),
159856
159778
  initialBody: (name) => ({