@camstack/addon-export-alexa 1.2.188 → 1.2.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/export-alexa.addon.js +606 -684
- package/dist/export-alexa.addon.mjs +606 -684
- package/package.json +2 -2
|
@@ -808,7 +808,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
808
808
|
return EventCategory;
|
|
809
809
|
}({});
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../types/dist/device-type-
|
|
811
|
+
//#region ../types/dist/device-type-DxCT0krO.mjs
|
|
812
812
|
/**
|
|
813
813
|
import { errMsg } from '@camstack/types'
|
|
814
814
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -970,6 +970,13 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
970
970
|
* filters that want "all devices with on-motion behaviour".
|
|
971
971
|
*/
|
|
972
972
|
DeviceFeature["MotionTrigger"] = "motion-trigger";
|
|
973
|
+
/**
|
|
974
|
+
* Device can be run for a chosen time and then stopped. Mirrors the
|
|
975
|
+
* `timed-run` wrapper cap — the cap is bound by the core-blocks addon, not by
|
|
976
|
+
* a driver, so the flag is derived from the device's bindings
|
|
977
|
+
* (`featuresOfBoundCaps`). Gates the quick-run control in the viewer.
|
|
978
|
+
*/
|
|
979
|
+
DeviceFeature["TimedRun"] = "timed-run";
|
|
973
980
|
/** Light supports rgb-triplet color via `color` cap. */
|
|
974
981
|
DeviceFeature["LightColorRgb"] = "light-color-rgb";
|
|
975
982
|
/** Light supports HSV color via `color` cap. */
|
|
@@ -6004,7 +6011,7 @@ var ZodIssueCode = {
|
|
|
6004
6011
|
var ZodFirstPartyTypeKind;
|
|
6005
6012
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6006
6013
|
//#endregion
|
|
6007
|
-
//#region ../types/dist/sleep-
|
|
6014
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6008
6015
|
/**
|
|
6009
6016
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6010
6017
|
* window to float samples (D455).
|
|
@@ -7220,6 +7227,7 @@ var RecordIntegrationInstances = class {
|
|
|
7220
7227
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7221
7228
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7222
7229
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7230
|
+
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`);
|
|
7223
7231
|
}
|
|
7224
7232
|
/**
|
|
7225
7233
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7261,10 +7269,21 @@ var RecordIntegrationInstances = class {
|
|
|
7261
7269
|
}
|
|
7262
7270
|
return out;
|
|
7263
7271
|
}
|
|
7272
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7273
|
+
kindOfBody(body) {
|
|
7274
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7275
|
+
const id = this.hooks.kindOf(body);
|
|
7276
|
+
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)`);
|
|
7277
|
+
return id;
|
|
7278
|
+
}
|
|
7279
|
+
const only = this.hooks.description.kinds[0];
|
|
7280
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7281
|
+
return only.id;
|
|
7282
|
+
}
|
|
7264
7283
|
viewOf(record) {
|
|
7265
7284
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7266
7285
|
const rawName = record.data[this.nameField];
|
|
7267
|
-
const kind = this.
|
|
7286
|
+
const kind = this.kindOfBody(record.data);
|
|
7268
7287
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7269
7288
|
return {
|
|
7270
7289
|
id: record.id,
|
|
@@ -7272,7 +7291,7 @@ var RecordIntegrationInstances = class {
|
|
|
7272
7291
|
configured: this.hooks.configured(record.data),
|
|
7273
7292
|
enabled: isInstanceEnabled(record.data),
|
|
7274
7293
|
formValues: shown,
|
|
7275
|
-
|
|
7294
|
+
kind,
|
|
7276
7295
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7277
7296
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7278
7297
|
};
|
|
@@ -8373,7 +8392,7 @@ function boundOf(list) {
|
|
|
8373
8392
|
* Base class for CamStack addons. Eliminates settings boilerplate:
|
|
8374
8393
|
*
|
|
8375
8394
|
* - Typed `config` property with automatic resolution from store + defaults
|
|
8376
|
-
* -
|
|
8395
|
+
* - the scoped settings API (`clusterSettings` / `nodeSettings` / `deviceDefaults`) auto-implemented
|
|
8377
8396
|
* - `getAddonSettings()` / `updateAddonSettings()` auto-implemented
|
|
8378
8397
|
* - `getDeviceSettings()` / `updateDeviceSettings()` auto-implemented
|
|
8379
8398
|
* - `ctx` accessor for the AddonContext (no manual `this.ctxRef` storage)
|
|
@@ -8383,7 +8402,7 @@ function boundOf(list) {
|
|
|
8383
8402
|
* Subclasses override:
|
|
8384
8403
|
* - `onInitialize()` — addon-specific init logic, return ProviderRegistration[]
|
|
8385
8404
|
* - `onShutdown()` — cleanup
|
|
8386
|
-
* - `
|
|
8405
|
+
* - `clusterSettingsSchema()` / `nodeSettingsSchema()` / `deviceSettingsSchema()` — UI schemas
|
|
8387
8406
|
*
|
|
8388
8407
|
* @example
|
|
8389
8408
|
* ```ts
|
|
@@ -8397,7 +8416,7 @@ function boundOf(list) {
|
|
|
8397
8416
|
* super({ maxRetries: 3, endpoint: 'http://localhost' })
|
|
8398
8417
|
* }
|
|
8399
8418
|
*
|
|
8400
|
-
* protected
|
|
8419
|
+
* protected clusterSettingsSchema() {
|
|
8401
8420
|
* return this.schema({
|
|
8402
8421
|
* sections: [{
|
|
8403
8422
|
* id: 'main', title: 'Settings',
|
|
@@ -8440,7 +8459,7 @@ var BaseAddon = class {
|
|
|
8440
8459
|
defaults;
|
|
8441
8460
|
/**
|
|
8442
8461
|
* Hidden-state paths that hold secrets (D787) — values the addon writes
|
|
8443
|
-
* itself (`
|
|
8462
|
+
* itself (`state()`, the scoped writers) that no form field declares.
|
|
8444
8463
|
* Stored in the keychain exactly like a `password` field. Syntax:
|
|
8445
8464
|
* `'snapshotSigningKey'`, `'identity.pincode'`, `'tokens[userId].accessToken'`
|
|
8446
8465
|
* (`key[<id field>]` addresses array items by id, never by index).
|
|
@@ -8450,7 +8469,7 @@ var BaseAddon = class {
|
|
|
8450
8469
|
/**
|
|
8451
8470
|
* D986 M4: the scoped schemas this addon declared, resolved once per capability
|
|
8452
8471
|
* (`loadScopedSchemas`) so the sync readers (`perNodeKeys`, the secret tree, the restart check)
|
|
8453
|
-
* see them. Empty until loaded
|
|
8472
|
+
* see them. Empty until loaded.
|
|
8454
8473
|
*/
|
|
8455
8474
|
_scopedByCap = /* @__PURE__ */ new Map();
|
|
8456
8475
|
_nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
@@ -8636,7 +8655,7 @@ var BaseAddon = class {
|
|
|
8636
8655
|
/** Addon-specific cleanup. Override if needed. */
|
|
8637
8656
|
async onShutdown() {}
|
|
8638
8657
|
/**
|
|
8639
|
-
* Called after config is resolved during
|
|
8658
|
+
* Called after config is resolved during a settings write.
|
|
8640
8659
|
* Override to react to config changes (e.g. restart a sampler, reconnect a service).
|
|
8641
8660
|
* Not called during initialize() — use onInitialize() for initial setup.
|
|
8642
8661
|
*/
|
|
@@ -8665,82 +8684,12 @@ var BaseAddon = class {
|
|
|
8665
8684
|
scopedSettingsCapabilities() {
|
|
8666
8685
|
return [];
|
|
8667
8686
|
}
|
|
8668
|
-
/** Override to provide global-level settings UI schema. */
|
|
8669
|
-
globalSettingsSchema(_cap) {
|
|
8670
|
-
return null;
|
|
8671
|
-
}
|
|
8672
8687
|
/** Override to provide device-level settings UI schema. */
|
|
8673
8688
|
deviceSettingsSchema() {
|
|
8674
8689
|
return null;
|
|
8675
8690
|
}
|
|
8676
8691
|
/**
|
|
8677
|
-
*
|
|
8678
|
-
* ARE the configuration of its integration.
|
|
8679
|
-
*
|
|
8680
|
-
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
8681
|
-
* operator should find on the addon's integration page (System →
|
|
8682
|
-
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
8683
|
-
* addon. Empty (the default) means the addon has no integration-level
|
|
8684
|
-
* settings and no such surface is offered — this is opt-in, because whether
|
|
8685
|
-
* an addon's configuration IS its integration's configuration depends on the
|
|
8686
|
-
* nature of the integration.
|
|
8687
|
-
*
|
|
8688
|
-
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
8689
|
-
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
8690
|
-
* `updateGlobalSettings` path. There is deliberately no
|
|
8691
|
-
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
8692
|
-
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
8693
|
-
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
8694
|
-
*
|
|
8695
|
-
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
8696
|
-
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
8697
|
-
* removed with the reason recorded at
|
|
8698
|
-
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
8699
|
-
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
8700
|
-
* marker sprinkled across sections also has to borrow a field that already
|
|
8701
|
-
* means something else; borrowing `section.tab` put the literal word
|
|
8702
|
-
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
8703
|
-
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
8704
|
-
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
8705
|
-
* ids it names.
|
|
8706
|
-
*/
|
|
8707
|
-
integrationSettingSections() {
|
|
8708
|
-
return [];
|
|
8709
|
-
}
|
|
8710
|
-
async getGlobalSettings(overlay, cap, nodeId) {
|
|
8711
|
-
await this.loadScopedSchemas(cap);
|
|
8712
|
-
const schema = this.globalSettingsSchema(cap) ?? this.scopedFormSchema(cap);
|
|
8713
|
-
if (!schema) return { sections: [] };
|
|
8714
|
-
const projected = await this.readRawProjectedStore(nodeId, cap);
|
|
8715
|
-
return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(projected, overlay) : projected, { inlineSecretsAsViews: true });
|
|
8716
|
-
}
|
|
8717
|
-
/**
|
|
8718
|
-
* The integration-level view of this addon's settings: exactly the sections
|
|
8719
|
-
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
8720
|
-
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
8721
|
-
*
|
|
8722
|
-
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
8723
|
-
* no integration settings surface at all, rather than an empty one that reads
|
|
8724
|
-
* as a failed load.
|
|
8725
|
-
*
|
|
8726
|
-
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
8727
|
-
* and not in whichever UI happens to render this:
|
|
8728
|
-
*
|
|
8729
|
-
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
8730
|
-
* shown here is the same field, with the same bare key, that the addon's
|
|
8731
|
-
* own page shows. There is no integration-specific writer — callers save
|
|
8732
|
-
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
8733
|
-
* not merely discouraged.
|
|
8734
|
-
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
8735
|
-
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
8736
|
-
* such a field silently picked would be a wrong answer for the operator
|
|
8737
|
-
* who opened the page (D266).
|
|
8738
|
-
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
8739
|
-
* alternative — skip it — turns a rename into a surface that quietly
|
|
8740
|
-
* empties, which looks exactly like an addon with nothing to configure.
|
|
8741
|
-
*/
|
|
8742
|
-
/**
|
|
8743
|
-
* The form schema of ONE integration instance, or `null` to use {@link globalSettingsSchema}.
|
|
8692
|
+
* The form schema of ONE integration instance, or `null` to use the scoped form.
|
|
8744
8693
|
*
|
|
8745
8694
|
* Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
|
|
8746
8695
|
* needs its connection fields, the default integration the addon's own sections. It is the
|
|
@@ -8913,6 +8862,19 @@ var BaseAddon = class {
|
|
|
8913
8862
|
const overlay = await this.scopedSettingsOverlay(scope, cap, nodeId);
|
|
8914
8863
|
return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(stored, overlay) : stored, { inlineSecretsAsViews: true });
|
|
8915
8864
|
}
|
|
8865
|
+
/**
|
|
8866
|
+
* The scoped schemas this addon serves: one entry per loaded (capability, scope), capabilities
|
|
8867
|
+
* in declaration order, scopes in {@link SCOPED_SETTINGS_SCOPES} order. `[]` when it declares
|
|
8868
|
+
* nothing.
|
|
8869
|
+
*/
|
|
8870
|
+
async listScopedSettings() {
|
|
8871
|
+
await this.loadScopedSchemas();
|
|
8872
|
+
return [...this._scopedByCap].flatMap(([cap, entries]) => entries.map((entry) => ({
|
|
8873
|
+
cap,
|
|
8874
|
+
scope: entry.scope,
|
|
8875
|
+
sectionIds: entry.schema.sections.map((section) => section.id)
|
|
8876
|
+
})));
|
|
8877
|
+
}
|
|
8916
8878
|
/** The OPERATOR's write of declared keys of one scope (D787 secret semantics). */
|
|
8917
8879
|
async updateScopedSettings(scope, cap, patch, nodeId) {
|
|
8918
8880
|
this._operatorWriteDepth++;
|
|
@@ -8938,32 +8900,15 @@ var BaseAddon = class {
|
|
|
8938
8900
|
*/
|
|
8939
8901
|
async getIntegrationFormSchema(instance, nodeId) {
|
|
8940
8902
|
const scoped = await this.integrationFormSchema(instance);
|
|
8941
|
-
if (scoped === null) return this.
|
|
8903
|
+
if (scoped === null) return this.scopedForm(nodeId);
|
|
8942
8904
|
return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
|
|
8943
8905
|
}
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
const schema = this.
|
|
8948
|
-
if (!schema)
|
|
8949
|
-
|
|
8950
|
-
const sections = [];
|
|
8951
|
-
for (const id of declared) {
|
|
8952
|
-
const section = byId.get(id);
|
|
8953
|
-
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
8954
|
-
const fields = dropPerNodeFields(section.fields);
|
|
8955
|
-
if (fields.length === 0) continue;
|
|
8956
|
-
sections.push({
|
|
8957
|
-
...section,
|
|
8958
|
-
fields
|
|
8959
|
-
});
|
|
8960
|
-
}
|
|
8961
|
-
if (sections.length === 0) return null;
|
|
8962
|
-
const projected = await this.readRawProjectedStore(nodeId);
|
|
8963
|
-
return hydrateSchema({
|
|
8964
|
-
...schema,
|
|
8965
|
-
sections
|
|
8966
|
-
}, projected, { inlineSecretsAsViews: true });
|
|
8906
|
+
/** The form of the scoped schemas this addon declared, hydrated from its store. */
|
|
8907
|
+
async scopedForm(nodeId) {
|
|
8908
|
+
await this.loadScopedSchemas();
|
|
8909
|
+
const schema = this.scopedFormSchema();
|
|
8910
|
+
if (!schema) return { sections: [] };
|
|
8911
|
+
return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
|
|
8967
8912
|
}
|
|
8968
8913
|
/**
|
|
8969
8914
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
@@ -8972,8 +8917,8 @@ var BaseAddon = class {
|
|
|
8972
8917
|
* bare fallback), all `@`-scoped and stray bare per-node keys are dropped.
|
|
8973
8918
|
* A no-op passthrough when the schema declares no `perNode` field.
|
|
8974
8919
|
*
|
|
8975
|
-
* This is the sanctioned way for
|
|
8976
|
-
* the store for custom
|
|
8920
|
+
* This is the sanctioned way for an addon that needs
|
|
8921
|
+
* the store for custom logic (option narrowing, value snapping) to
|
|
8977
8922
|
* read it per-node — never `ctx.settings.readAddonStore()` directly.
|
|
8978
8923
|
* `nodeId` omitted ⇒ the local node (node-blind injection from ctx).
|
|
8979
8924
|
*
|
|
@@ -9025,7 +8970,7 @@ var BaseAddon = class {
|
|
|
9025
8970
|
}
|
|
9026
8971
|
/**
|
|
9027
8972
|
* Whether ONE global key of this addon's store was written, read three-way
|
|
9028
|
-
* (D651). For a question a hydrated view cannot answer:
|
|
8973
|
+
* (D651). For a question a hydrated view cannot answer: a hydrated form
|
|
9029
8974
|
* reports `value ?? default`, so "the operator chose the default" and "nobody
|
|
9030
8975
|
* chose" look the same, and a failed read looks like both. A `perNode` key is
|
|
9031
8976
|
* not supported here: its stored name is scoped.
|
|
@@ -9059,7 +9004,7 @@ var BaseAddon = class {
|
|
|
9059
9004
|
}
|
|
9060
9005
|
/**
|
|
9061
9006
|
* The OPERATOR's write — a settings form or an admin API call, dispatched by
|
|
9062
|
-
* the kernel.
|
|
9007
|
+
* the kernel. The one in-process write of the addon blob that is not a scoped write; a secret
|
|
9063
9008
|
* the operator sends is stored as sent even when it equals a pre-keychain
|
|
9064
9009
|
* inline value: the operator re-entering a password is a change, an addon
|
|
9065
9010
|
* writing back what it read is not (D787).
|
|
@@ -9072,9 +9017,6 @@ var BaseAddon = class {
|
|
|
9072
9017
|
this._operatorWriteDepth--;
|
|
9073
9018
|
}
|
|
9074
9019
|
}
|
|
9075
|
-
async updateGlobalSettings(patch, nodeId) {
|
|
9076
|
-
await this.applyGlobalPatch(patch, nodeId);
|
|
9077
|
-
}
|
|
9078
9020
|
/**
|
|
9079
9021
|
* REMOVE stored secrets — their keychain values and their markers (D787).
|
|
9080
9022
|
*
|
|
@@ -9117,8 +9059,7 @@ var BaseAddon = class {
|
|
|
9117
9059
|
await this.resolveConfig();
|
|
9118
9060
|
await this.onConfigChanged();
|
|
9119
9061
|
this.emitLifecycle(EventCategory.AddonUpdated, { level: "global" });
|
|
9120
|
-
|
|
9121
|
-
this.maybeAutoRestart(Object.keys(barePatch), [...legacy === null ? [] : [legacy], ...this.loadedScopedSchemas().map((entry) => entry.schema)]);
|
|
9062
|
+
this.maybeAutoRestart(Object.keys(barePatch), this.loadedScopedSchemas().map((entry) => entry.schema));
|
|
9122
9063
|
return true;
|
|
9123
9064
|
}
|
|
9124
9065
|
/**
|
|
@@ -9156,10 +9097,7 @@ var BaseAddon = class {
|
|
|
9156
9097
|
this._nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
9157
9098
|
this._addonSecretTree = null;
|
|
9158
9099
|
}
|
|
9159
|
-
/**
|
|
9160
|
-
* The form the settings API serves while an addon declares no {@link globalSettingsSchema}: the
|
|
9161
|
-
* sections of its scoped schemas, so dropping the old hook does not blank the form.
|
|
9162
|
-
*/
|
|
9100
|
+
/** The form of an addon's scoped schemas: their sections, each shown once. */
|
|
9163
9101
|
scopedFormSchema(cap) {
|
|
9164
9102
|
const byId = /* @__PURE__ */ new Map();
|
|
9165
9103
|
for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
|
|
@@ -9171,8 +9109,7 @@ var BaseAddon = class {
|
|
|
9171
9109
|
return [...this._scopedByCap.values()].flat();
|
|
9172
9110
|
}
|
|
9173
9111
|
/**
|
|
9174
|
-
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}
|
|
9175
|
-
* the fields the legacy {@link globalSettingsSchema} still marks `perNode: true`. Derived once
|
|
9112
|
+
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}. Derived once
|
|
9176
9113
|
* per `cap` argument and memoized (schemas are static declarations). Empty set ⇒ every
|
|
9177
9114
|
* per-node code path is bypassed and the settings API behaves like the node-agnostic one.
|
|
9178
9115
|
* Call {@link loadScopedSchemas} first (the async seams do).
|
|
@@ -9181,8 +9118,7 @@ var BaseAddon = class {
|
|
|
9181
9118
|
const cacheKey = cap ?? "";
|
|
9182
9119
|
const cached = this._nodeKeysByCap.get(cacheKey);
|
|
9183
9120
|
if (cached) return cached;
|
|
9184
|
-
const
|
|
9185
|
-
const keys = new Set(legacy ? legacy.sections.flatMap((section) => collectPerNodeFieldKeys(section.fields)) : []);
|
|
9121
|
+
const keys = /* @__PURE__ */ new Set();
|
|
9186
9122
|
for (const { scope, schema } of this.loadedScopedSchemas(cap)) {
|
|
9187
9123
|
if (scope !== "node") continue;
|
|
9188
9124
|
for (const section of schema.sections) for (const key of collectValueFieldKeys(section.fields)) keys.add(key);
|
|
@@ -9400,8 +9336,6 @@ var BaseAddon = class {
|
|
|
9400
9336
|
}
|
|
9401
9337
|
declaredKeySet() {
|
|
9402
9338
|
const keys = new Set(Object.keys(this.defaults));
|
|
9403
|
-
const schema = this.globalSettingsSchema();
|
|
9404
|
-
if (schema) for (const section of schema.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
9405
9339
|
for (const { schema: scoped } of this.loadedScopedSchemas()) for (const section of scoped.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
9406
9340
|
for (const key of this._declaredStateKeys) keys.add(key);
|
|
9407
9341
|
for (const path of this.secretStatePaths) {
|
|
@@ -9499,7 +9433,7 @@ var BaseAddon = class {
|
|
|
9499
9433
|
/** The addon store's secret tree: schema fields by TYPE, plus `secretStatePaths`. */
|
|
9500
9434
|
addonSecretTree() {
|
|
9501
9435
|
if (this._addonSecretTree === null) {
|
|
9502
|
-
const tree = new Map(
|
|
9436
|
+
const tree = /* @__PURE__ */ new Map();
|
|
9503
9437
|
for (const { schema } of this.loadedScopedSchemas()) for (const [key, node] of secretTreeFromSchema(schema)) tree.set(key, node);
|
|
9504
9438
|
this._addonSecretTree = mergeSecretStatePaths(tree, this.secretStatePaths);
|
|
9505
9439
|
}
|
|
@@ -9711,47 +9645,6 @@ function classifyStoreError(err) {
|
|
|
9711
9645
|
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
9712
9646
|
return "permanent";
|
|
9713
9647
|
}
|
|
9714
|
-
/**
|
|
9715
|
-
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
9716
|
-
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
9717
|
-
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
9718
|
-
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
9719
|
-
*/
|
|
9720
|
-
/**
|
|
9721
|
-
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
9722
|
-
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
9723
|
-
* with no child is dropped rather than rendered empty.
|
|
9724
|
-
*
|
|
9725
|
-
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
9726
|
-
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
9727
|
-
*/
|
|
9728
|
-
function dropPerNodeFields(fields) {
|
|
9729
|
-
const kept = [];
|
|
9730
|
-
for (const field of fields) {
|
|
9731
|
-
if (field.type === "group") {
|
|
9732
|
-
const inner = dropPerNodeFields(field.fields);
|
|
9733
|
-
if (inner.length > 0) kept.push({
|
|
9734
|
-
...field,
|
|
9735
|
-
fields: inner
|
|
9736
|
-
});
|
|
9737
|
-
continue;
|
|
9738
|
-
}
|
|
9739
|
-
if (field.type === "sub-tabs") {
|
|
9740
|
-
const tabs = field.tabs.map((tab) => ({
|
|
9741
|
-
...tab,
|
|
9742
|
-
fields: dropPerNodeFields(tab.fields)
|
|
9743
|
-
})).filter((tab) => tab.fields.length > 0);
|
|
9744
|
-
if (tabs.length > 0) kept.push({
|
|
9745
|
-
...field,
|
|
9746
|
-
tabs
|
|
9747
|
-
});
|
|
9748
|
-
continue;
|
|
9749
|
-
}
|
|
9750
|
-
if ("perNode" in field && field.perNode === true) continue;
|
|
9751
|
-
kept.push(field);
|
|
9752
|
-
}
|
|
9753
|
-
return kept;
|
|
9754
|
-
}
|
|
9755
9648
|
/** The keys of the value-holding fields, recursing into layout containers. */
|
|
9756
9649
|
function collectValueFieldKeys(fields) {
|
|
9757
9650
|
const collected = [];
|
|
@@ -9784,21 +9677,6 @@ function collectFieldKeys(fields) {
|
|
|
9784
9677
|
}
|
|
9785
9678
|
return collected;
|
|
9786
9679
|
}
|
|
9787
|
-
function collectPerNodeFieldKeys(fields) {
|
|
9788
|
-
const collected = [];
|
|
9789
|
-
for (const field of fields) {
|
|
9790
|
-
if (field.type === "group") {
|
|
9791
|
-
collected.push(...collectPerNodeFieldKeys(field.fields));
|
|
9792
|
-
continue;
|
|
9793
|
-
}
|
|
9794
|
-
if (field.type === "sub-tabs") {
|
|
9795
|
-
for (const tab of field.tabs) collected.push(...collectPerNodeFieldKeys(tab.fields));
|
|
9796
|
-
continue;
|
|
9797
|
-
}
|
|
9798
|
-
if ("perNode" in field && field.perNode === true) collected.push(field.key);
|
|
9799
|
-
}
|
|
9800
|
-
return collected;
|
|
9801
|
-
}
|
|
9802
9680
|
/**
|
|
9803
9681
|
* Normalize an `ICamstackAddon.initialize()` return value into the
|
|
9804
9682
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
@@ -12562,13 +12440,25 @@ Object.freeze({
|
|
|
12562
12440
|
"path": "temperature",
|
|
12563
12441
|
"valueType": "number"
|
|
12564
12442
|
}],
|
|
12565
|
-
"timed-run": [
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12443
|
+
"timed-run": [
|
|
12444
|
+
{
|
|
12445
|
+
"path": "activeUntil",
|
|
12446
|
+
"valueType": "number"
|
|
12447
|
+
},
|
|
12448
|
+
{
|
|
12449
|
+
"path": "requestedBy",
|
|
12450
|
+
"valueType": "string"
|
|
12451
|
+
},
|
|
12452
|
+
{
|
|
12453
|
+
"path": "quickRun.duration",
|
|
12454
|
+
"valueType": "number"
|
|
12455
|
+
},
|
|
12456
|
+
{
|
|
12457
|
+
"path": "quickRun.unit",
|
|
12458
|
+
"valueType": "enum",
|
|
12459
|
+
"enumValues": ["s", "min"]
|
|
12460
|
+
}
|
|
12461
|
+
],
|
|
12572
12462
|
"update": [
|
|
12573
12463
|
{
|
|
12574
12464
|
"path": "currentVersion",
|
|
@@ -12792,7 +12682,7 @@ object({
|
|
|
12792
12682
|
params: record(string(), union([string(), number()])).optional()
|
|
12793
12683
|
});
|
|
12794
12684
|
//#endregion
|
|
12795
|
-
//#region ../types/dist/composition-
|
|
12685
|
+
//#region ../types/dist/composition-Bx0JvKUU.mjs
|
|
12796
12686
|
/**
|
|
12797
12687
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
12798
12688
|
*
|
|
@@ -13954,6 +13844,387 @@ var NodeColorIdSchema = _enum([
|
|
|
13954
13844
|
"node-h"
|
|
13955
13845
|
]);
|
|
13956
13846
|
//#endregion
|
|
13847
|
+
//#region ../types/dist/convert-BAzH15HU.mjs
|
|
13848
|
+
/**
|
|
13849
|
+
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
13850
|
+
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
13851
|
+
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
13852
|
+
* decimals). K derives from `°C = K − 273.15`.
|
|
13853
|
+
*/
|
|
13854
|
+
var UNIT_TABLE = {
|
|
13855
|
+
"°C": {
|
|
13856
|
+
dimension: "temperature",
|
|
13857
|
+
factor: 1,
|
|
13858
|
+
offset: 0
|
|
13859
|
+
},
|
|
13860
|
+
"°F": {
|
|
13861
|
+
dimension: "temperature",
|
|
13862
|
+
factor: 5 / 9,
|
|
13863
|
+
offset: -160 / 9
|
|
13864
|
+
},
|
|
13865
|
+
K: {
|
|
13866
|
+
dimension: "temperature",
|
|
13867
|
+
factor: 1,
|
|
13868
|
+
offset: -273.15
|
|
13869
|
+
},
|
|
13870
|
+
hPa: {
|
|
13871
|
+
dimension: "pressure",
|
|
13872
|
+
factor: 1,
|
|
13873
|
+
offset: 0
|
|
13874
|
+
},
|
|
13875
|
+
kPa: {
|
|
13876
|
+
dimension: "pressure",
|
|
13877
|
+
factor: 10,
|
|
13878
|
+
offset: 0
|
|
13879
|
+
},
|
|
13880
|
+
Pa: {
|
|
13881
|
+
dimension: "pressure",
|
|
13882
|
+
factor: .01,
|
|
13883
|
+
offset: 0
|
|
13884
|
+
},
|
|
13885
|
+
mbar: {
|
|
13886
|
+
dimension: "pressure",
|
|
13887
|
+
factor: 1,
|
|
13888
|
+
offset: 0
|
|
13889
|
+
},
|
|
13890
|
+
bar: {
|
|
13891
|
+
dimension: "pressure",
|
|
13892
|
+
factor: 1e3,
|
|
13893
|
+
offset: 0
|
|
13894
|
+
},
|
|
13895
|
+
inHg: {
|
|
13896
|
+
dimension: "pressure",
|
|
13897
|
+
factor: 33.8639,
|
|
13898
|
+
offset: 0
|
|
13899
|
+
},
|
|
13900
|
+
mmHg: {
|
|
13901
|
+
dimension: "pressure",
|
|
13902
|
+
factor: 1.33322,
|
|
13903
|
+
offset: 0
|
|
13904
|
+
},
|
|
13905
|
+
psi: {
|
|
13906
|
+
dimension: "pressure",
|
|
13907
|
+
factor: 68.9476,
|
|
13908
|
+
offset: 0
|
|
13909
|
+
},
|
|
13910
|
+
"m/s": {
|
|
13911
|
+
dimension: "speed",
|
|
13912
|
+
factor: 1,
|
|
13913
|
+
offset: 0
|
|
13914
|
+
},
|
|
13915
|
+
"km/h": {
|
|
13916
|
+
dimension: "speed",
|
|
13917
|
+
factor: 1 / 3.6,
|
|
13918
|
+
offset: 0
|
|
13919
|
+
},
|
|
13920
|
+
mph: {
|
|
13921
|
+
dimension: "speed",
|
|
13922
|
+
factor: .44704,
|
|
13923
|
+
offset: 0
|
|
13924
|
+
},
|
|
13925
|
+
kn: {
|
|
13926
|
+
dimension: "speed",
|
|
13927
|
+
factor: .514444,
|
|
13928
|
+
offset: 0
|
|
13929
|
+
},
|
|
13930
|
+
"mm/h": {
|
|
13931
|
+
dimension: "precipitation-rate",
|
|
13932
|
+
factor: 1,
|
|
13933
|
+
offset: 0
|
|
13934
|
+
},
|
|
13935
|
+
"in/h": {
|
|
13936
|
+
dimension: "precipitation-rate",
|
|
13937
|
+
factor: 25.4,
|
|
13938
|
+
offset: 0
|
|
13939
|
+
},
|
|
13940
|
+
m: {
|
|
13941
|
+
dimension: "length",
|
|
13942
|
+
factor: 1,
|
|
13943
|
+
offset: 0
|
|
13944
|
+
},
|
|
13945
|
+
mm: {
|
|
13946
|
+
dimension: "length",
|
|
13947
|
+
factor: .001,
|
|
13948
|
+
offset: 0
|
|
13949
|
+
},
|
|
13950
|
+
cm: {
|
|
13951
|
+
dimension: "length",
|
|
13952
|
+
factor: .01,
|
|
13953
|
+
offset: 0
|
|
13954
|
+
},
|
|
13955
|
+
km: {
|
|
13956
|
+
dimension: "length",
|
|
13957
|
+
factor: 1e3,
|
|
13958
|
+
offset: 0
|
|
13959
|
+
},
|
|
13960
|
+
in: {
|
|
13961
|
+
dimension: "length",
|
|
13962
|
+
factor: .0254,
|
|
13963
|
+
offset: 0
|
|
13964
|
+
},
|
|
13965
|
+
ft: {
|
|
13966
|
+
dimension: "length",
|
|
13967
|
+
factor: .3048,
|
|
13968
|
+
offset: 0
|
|
13969
|
+
},
|
|
13970
|
+
mi: {
|
|
13971
|
+
dimension: "length",
|
|
13972
|
+
factor: 1609.344,
|
|
13973
|
+
offset: 0
|
|
13974
|
+
},
|
|
13975
|
+
"m²": {
|
|
13976
|
+
dimension: "area",
|
|
13977
|
+
factor: 1,
|
|
13978
|
+
offset: 0
|
|
13979
|
+
},
|
|
13980
|
+
lx: {
|
|
13981
|
+
dimension: "illuminance",
|
|
13982
|
+
factor: 1,
|
|
13983
|
+
offset: 0
|
|
13984
|
+
},
|
|
13985
|
+
"W/m²": {
|
|
13986
|
+
dimension: "irradiance",
|
|
13987
|
+
factor: 1,
|
|
13988
|
+
offset: 0
|
|
13989
|
+
},
|
|
13990
|
+
W: {
|
|
13991
|
+
dimension: "power",
|
|
13992
|
+
factor: 1,
|
|
13993
|
+
offset: 0
|
|
13994
|
+
},
|
|
13995
|
+
kW: {
|
|
13996
|
+
dimension: "power",
|
|
13997
|
+
factor: 1e3,
|
|
13998
|
+
offset: 0
|
|
13999
|
+
},
|
|
14000
|
+
VA: {
|
|
14001
|
+
dimension: "apparent-power",
|
|
14002
|
+
factor: 1,
|
|
14003
|
+
offset: 0
|
|
14004
|
+
},
|
|
14005
|
+
Wh: {
|
|
14006
|
+
dimension: "energy",
|
|
14007
|
+
factor: 1,
|
|
14008
|
+
offset: 0
|
|
14009
|
+
},
|
|
14010
|
+
kWh: {
|
|
14011
|
+
dimension: "energy",
|
|
14012
|
+
factor: 1e3,
|
|
14013
|
+
offset: 0
|
|
14014
|
+
},
|
|
14015
|
+
MWh: {
|
|
14016
|
+
dimension: "energy",
|
|
14017
|
+
factor: 1e6,
|
|
14018
|
+
offset: 0
|
|
14019
|
+
},
|
|
14020
|
+
V: {
|
|
14021
|
+
dimension: "voltage",
|
|
14022
|
+
factor: 1,
|
|
14023
|
+
offset: 0
|
|
14024
|
+
},
|
|
14025
|
+
mV: {
|
|
14026
|
+
dimension: "voltage",
|
|
14027
|
+
factor: .001,
|
|
14028
|
+
offset: 0
|
|
14029
|
+
},
|
|
14030
|
+
A: {
|
|
14031
|
+
dimension: "current",
|
|
14032
|
+
factor: 1,
|
|
14033
|
+
offset: 0
|
|
14034
|
+
},
|
|
14035
|
+
mA: {
|
|
14036
|
+
dimension: "current",
|
|
14037
|
+
factor: .001,
|
|
14038
|
+
offset: 0
|
|
14039
|
+
},
|
|
14040
|
+
ppm: {
|
|
14041
|
+
dimension: "concentration-volume",
|
|
14042
|
+
factor: 1,
|
|
14043
|
+
offset: 0
|
|
14044
|
+
},
|
|
14045
|
+
ppb: {
|
|
14046
|
+
dimension: "concentration-volume",
|
|
14047
|
+
factor: .001,
|
|
14048
|
+
offset: 0
|
|
14049
|
+
},
|
|
14050
|
+
"µg/m³": {
|
|
14051
|
+
dimension: "concentration-mass",
|
|
14052
|
+
factor: 1,
|
|
14053
|
+
offset: 0
|
|
14054
|
+
},
|
|
14055
|
+
"mg/m³": {
|
|
14056
|
+
dimension: "concentration-mass",
|
|
14057
|
+
factor: 1e3,
|
|
14058
|
+
offset: 0
|
|
14059
|
+
},
|
|
14060
|
+
kg: {
|
|
14061
|
+
dimension: "mass",
|
|
14062
|
+
factor: 1,
|
|
14063
|
+
offset: 0
|
|
14064
|
+
},
|
|
14065
|
+
g: {
|
|
14066
|
+
dimension: "mass",
|
|
14067
|
+
factor: .001,
|
|
14068
|
+
offset: 0
|
|
14069
|
+
},
|
|
14070
|
+
lb: {
|
|
14071
|
+
dimension: "mass",
|
|
14072
|
+
factor: .453592,
|
|
14073
|
+
offset: 0
|
|
14074
|
+
},
|
|
14075
|
+
oz: {
|
|
14076
|
+
dimension: "mass",
|
|
14077
|
+
factor: .0283495,
|
|
14078
|
+
offset: 0
|
|
14079
|
+
},
|
|
14080
|
+
"%": {
|
|
14081
|
+
dimension: "percentage",
|
|
14082
|
+
factor: 1,
|
|
14083
|
+
offset: 0
|
|
14084
|
+
},
|
|
14085
|
+
L: {
|
|
14086
|
+
dimension: "volume",
|
|
14087
|
+
factor: 1,
|
|
14088
|
+
offset: 0
|
|
14089
|
+
},
|
|
14090
|
+
mL: {
|
|
14091
|
+
dimension: "volume",
|
|
14092
|
+
factor: .001,
|
|
14093
|
+
offset: 0
|
|
14094
|
+
},
|
|
14095
|
+
gal: {
|
|
14096
|
+
dimension: "volume",
|
|
14097
|
+
factor: 3.785411784,
|
|
14098
|
+
offset: 0
|
|
14099
|
+
},
|
|
14100
|
+
s: {
|
|
14101
|
+
dimension: "duration",
|
|
14102
|
+
factor: 1,
|
|
14103
|
+
offset: 0
|
|
14104
|
+
},
|
|
14105
|
+
ms: {
|
|
14106
|
+
dimension: "duration",
|
|
14107
|
+
factor: .001,
|
|
14108
|
+
offset: 0
|
|
14109
|
+
},
|
|
14110
|
+
min: {
|
|
14111
|
+
dimension: "duration",
|
|
14112
|
+
factor: 60,
|
|
14113
|
+
offset: 0
|
|
14114
|
+
},
|
|
14115
|
+
h: {
|
|
14116
|
+
dimension: "duration",
|
|
14117
|
+
factor: 3600,
|
|
14118
|
+
offset: 0
|
|
14119
|
+
},
|
|
14120
|
+
d: {
|
|
14121
|
+
dimension: "duration",
|
|
14122
|
+
factor: 86400,
|
|
14123
|
+
offset: 0
|
|
14124
|
+
},
|
|
14125
|
+
B: {
|
|
14126
|
+
dimension: "information",
|
|
14127
|
+
factor: 1,
|
|
14128
|
+
offset: 0
|
|
14129
|
+
},
|
|
14130
|
+
KiB: {
|
|
14131
|
+
dimension: "information",
|
|
14132
|
+
factor: 1024,
|
|
14133
|
+
offset: 0
|
|
14134
|
+
},
|
|
14135
|
+
MiB: {
|
|
14136
|
+
dimension: "information",
|
|
14137
|
+
factor: 1024 ** 2,
|
|
14138
|
+
offset: 0
|
|
14139
|
+
},
|
|
14140
|
+
GiB: {
|
|
14141
|
+
dimension: "information",
|
|
14142
|
+
factor: 1024 ** 3,
|
|
14143
|
+
offset: 0
|
|
14144
|
+
},
|
|
14145
|
+
TiB: {
|
|
14146
|
+
dimension: "information",
|
|
14147
|
+
factor: 1024 ** 4,
|
|
14148
|
+
offset: 0
|
|
14149
|
+
},
|
|
14150
|
+
kB: {
|
|
14151
|
+
dimension: "information",
|
|
14152
|
+
factor: 1e3,
|
|
14153
|
+
offset: 0
|
|
14154
|
+
},
|
|
14155
|
+
MB: {
|
|
14156
|
+
dimension: "information",
|
|
14157
|
+
factor: 1e6,
|
|
14158
|
+
offset: 0
|
|
14159
|
+
},
|
|
14160
|
+
GB: {
|
|
14161
|
+
dimension: "information",
|
|
14162
|
+
factor: 1e9,
|
|
14163
|
+
offset: 0
|
|
14164
|
+
},
|
|
14165
|
+
"°": {
|
|
14166
|
+
dimension: "angle",
|
|
14167
|
+
factor: 1,
|
|
14168
|
+
offset: 0
|
|
14169
|
+
},
|
|
14170
|
+
dBFS: {
|
|
14171
|
+
dimension: "sound-level",
|
|
14172
|
+
factor: 1,
|
|
14173
|
+
offset: 0
|
|
14174
|
+
},
|
|
14175
|
+
dBm: {
|
|
14176
|
+
dimension: "signal-level",
|
|
14177
|
+
factor: 1,
|
|
14178
|
+
offset: 0
|
|
14179
|
+
},
|
|
14180
|
+
mired: {
|
|
14181
|
+
dimension: "colour-temperature",
|
|
14182
|
+
factor: 1,
|
|
14183
|
+
offset: 0
|
|
14184
|
+
},
|
|
14185
|
+
kbps: {
|
|
14186
|
+
dimension: "bitrate",
|
|
14187
|
+
factor: 1,
|
|
14188
|
+
offset: 0
|
|
14189
|
+
},
|
|
14190
|
+
Mbps: {
|
|
14191
|
+
dimension: "bitrate",
|
|
14192
|
+
factor: 1e3,
|
|
14193
|
+
offset: 0
|
|
14194
|
+
},
|
|
14195
|
+
fps: {
|
|
14196
|
+
dimension: "rate",
|
|
14197
|
+
factor: 1,
|
|
14198
|
+
offset: 0
|
|
14199
|
+
}
|
|
14200
|
+
};
|
|
14201
|
+
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
14202
|
+
function specFor(unit) {
|
|
14203
|
+
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
14204
|
+
}
|
|
14205
|
+
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
14206
|
+
function toCanonical(value, spec) {
|
|
14207
|
+
return value * spec.factor + spec.offset;
|
|
14208
|
+
}
|
|
14209
|
+
/** Canonical-unit value → the unit described by `spec`. */
|
|
14210
|
+
function fromCanonical(canonical, spec) {
|
|
14211
|
+
return (canonical - spec.offset) / spec.factor;
|
|
14212
|
+
}
|
|
14213
|
+
/**
|
|
14214
|
+
* Graceful variant for the render path: returns the converted value, or
|
|
14215
|
+
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
14216
|
+
* Never throws — a render caller falls back to the raw value + source unit.
|
|
14217
|
+
*/
|
|
14218
|
+
function tryConvertUnit(value, from, to) {
|
|
14219
|
+
if (from === to) return value;
|
|
14220
|
+
const fromSpec = specFor(from);
|
|
14221
|
+
if (!fromSpec) return void 0;
|
|
14222
|
+
const toSpec = specFor(to);
|
|
14223
|
+
if (!toSpec) return void 0;
|
|
14224
|
+
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
14225
|
+
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
14226
|
+
}
|
|
14227
|
+
//#endregion
|
|
13957
14228
|
//#region ../types/dist/index.mjs
|
|
13958
14229
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
13959
14230
|
var SMTP_INBOUND_DEFAULT_DOMAIN = "camstack.local";
|
|
@@ -43115,6 +43386,7 @@ var ExpressionBindingSourceSchema = union([
|
|
|
43115
43386
|
object({
|
|
43116
43387
|
kind: literal("global"),
|
|
43117
43388
|
sourceStableId: string(),
|
|
43389
|
+
addonId: string().optional(),
|
|
43118
43390
|
cap: string(),
|
|
43119
43391
|
fieldPath: string()
|
|
43120
43392
|
})
|
|
@@ -43181,385 +43453,6 @@ var SourceInfoSchema = object({
|
|
|
43181
43453
|
raw: record(string(), unknown()).optional()
|
|
43182
43454
|
});
|
|
43183
43455
|
/**
|
|
43184
|
-
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
43185
|
-
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
43186
|
-
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
43187
|
-
* decimals). K derives from `°C = K − 273.15`.
|
|
43188
|
-
*/
|
|
43189
|
-
var UNIT_TABLE = {
|
|
43190
|
-
"°C": {
|
|
43191
|
-
dimension: "temperature",
|
|
43192
|
-
factor: 1,
|
|
43193
|
-
offset: 0
|
|
43194
|
-
},
|
|
43195
|
-
"°F": {
|
|
43196
|
-
dimension: "temperature",
|
|
43197
|
-
factor: 5 / 9,
|
|
43198
|
-
offset: -160 / 9
|
|
43199
|
-
},
|
|
43200
|
-
K: {
|
|
43201
|
-
dimension: "temperature",
|
|
43202
|
-
factor: 1,
|
|
43203
|
-
offset: -273.15
|
|
43204
|
-
},
|
|
43205
|
-
hPa: {
|
|
43206
|
-
dimension: "pressure",
|
|
43207
|
-
factor: 1,
|
|
43208
|
-
offset: 0
|
|
43209
|
-
},
|
|
43210
|
-
kPa: {
|
|
43211
|
-
dimension: "pressure",
|
|
43212
|
-
factor: 10,
|
|
43213
|
-
offset: 0
|
|
43214
|
-
},
|
|
43215
|
-
Pa: {
|
|
43216
|
-
dimension: "pressure",
|
|
43217
|
-
factor: .01,
|
|
43218
|
-
offset: 0
|
|
43219
|
-
},
|
|
43220
|
-
mbar: {
|
|
43221
|
-
dimension: "pressure",
|
|
43222
|
-
factor: 1,
|
|
43223
|
-
offset: 0
|
|
43224
|
-
},
|
|
43225
|
-
bar: {
|
|
43226
|
-
dimension: "pressure",
|
|
43227
|
-
factor: 1e3,
|
|
43228
|
-
offset: 0
|
|
43229
|
-
},
|
|
43230
|
-
inHg: {
|
|
43231
|
-
dimension: "pressure",
|
|
43232
|
-
factor: 33.8639,
|
|
43233
|
-
offset: 0
|
|
43234
|
-
},
|
|
43235
|
-
mmHg: {
|
|
43236
|
-
dimension: "pressure",
|
|
43237
|
-
factor: 1.33322,
|
|
43238
|
-
offset: 0
|
|
43239
|
-
},
|
|
43240
|
-
psi: {
|
|
43241
|
-
dimension: "pressure",
|
|
43242
|
-
factor: 68.9476,
|
|
43243
|
-
offset: 0
|
|
43244
|
-
},
|
|
43245
|
-
"m/s": {
|
|
43246
|
-
dimension: "speed",
|
|
43247
|
-
factor: 1,
|
|
43248
|
-
offset: 0
|
|
43249
|
-
},
|
|
43250
|
-
"km/h": {
|
|
43251
|
-
dimension: "speed",
|
|
43252
|
-
factor: 1 / 3.6,
|
|
43253
|
-
offset: 0
|
|
43254
|
-
},
|
|
43255
|
-
mph: {
|
|
43256
|
-
dimension: "speed",
|
|
43257
|
-
factor: .44704,
|
|
43258
|
-
offset: 0
|
|
43259
|
-
},
|
|
43260
|
-
kn: {
|
|
43261
|
-
dimension: "speed",
|
|
43262
|
-
factor: .514444,
|
|
43263
|
-
offset: 0
|
|
43264
|
-
},
|
|
43265
|
-
"mm/h": {
|
|
43266
|
-
dimension: "precipitation-rate",
|
|
43267
|
-
factor: 1,
|
|
43268
|
-
offset: 0
|
|
43269
|
-
},
|
|
43270
|
-
"in/h": {
|
|
43271
|
-
dimension: "precipitation-rate",
|
|
43272
|
-
factor: 25.4,
|
|
43273
|
-
offset: 0
|
|
43274
|
-
},
|
|
43275
|
-
m: {
|
|
43276
|
-
dimension: "length",
|
|
43277
|
-
factor: 1,
|
|
43278
|
-
offset: 0
|
|
43279
|
-
},
|
|
43280
|
-
mm: {
|
|
43281
|
-
dimension: "length",
|
|
43282
|
-
factor: .001,
|
|
43283
|
-
offset: 0
|
|
43284
|
-
},
|
|
43285
|
-
cm: {
|
|
43286
|
-
dimension: "length",
|
|
43287
|
-
factor: .01,
|
|
43288
|
-
offset: 0
|
|
43289
|
-
},
|
|
43290
|
-
km: {
|
|
43291
|
-
dimension: "length",
|
|
43292
|
-
factor: 1e3,
|
|
43293
|
-
offset: 0
|
|
43294
|
-
},
|
|
43295
|
-
in: {
|
|
43296
|
-
dimension: "length",
|
|
43297
|
-
factor: .0254,
|
|
43298
|
-
offset: 0
|
|
43299
|
-
},
|
|
43300
|
-
ft: {
|
|
43301
|
-
dimension: "length",
|
|
43302
|
-
factor: .3048,
|
|
43303
|
-
offset: 0
|
|
43304
|
-
},
|
|
43305
|
-
mi: {
|
|
43306
|
-
dimension: "length",
|
|
43307
|
-
factor: 1609.344,
|
|
43308
|
-
offset: 0
|
|
43309
|
-
},
|
|
43310
|
-
"m²": {
|
|
43311
|
-
dimension: "area",
|
|
43312
|
-
factor: 1,
|
|
43313
|
-
offset: 0
|
|
43314
|
-
},
|
|
43315
|
-
lx: {
|
|
43316
|
-
dimension: "illuminance",
|
|
43317
|
-
factor: 1,
|
|
43318
|
-
offset: 0
|
|
43319
|
-
},
|
|
43320
|
-
"W/m²": {
|
|
43321
|
-
dimension: "irradiance",
|
|
43322
|
-
factor: 1,
|
|
43323
|
-
offset: 0
|
|
43324
|
-
},
|
|
43325
|
-
W: {
|
|
43326
|
-
dimension: "power",
|
|
43327
|
-
factor: 1,
|
|
43328
|
-
offset: 0
|
|
43329
|
-
},
|
|
43330
|
-
kW: {
|
|
43331
|
-
dimension: "power",
|
|
43332
|
-
factor: 1e3,
|
|
43333
|
-
offset: 0
|
|
43334
|
-
},
|
|
43335
|
-
VA: {
|
|
43336
|
-
dimension: "apparent-power",
|
|
43337
|
-
factor: 1,
|
|
43338
|
-
offset: 0
|
|
43339
|
-
},
|
|
43340
|
-
Wh: {
|
|
43341
|
-
dimension: "energy",
|
|
43342
|
-
factor: 1,
|
|
43343
|
-
offset: 0
|
|
43344
|
-
},
|
|
43345
|
-
kWh: {
|
|
43346
|
-
dimension: "energy",
|
|
43347
|
-
factor: 1e3,
|
|
43348
|
-
offset: 0
|
|
43349
|
-
},
|
|
43350
|
-
MWh: {
|
|
43351
|
-
dimension: "energy",
|
|
43352
|
-
factor: 1e6,
|
|
43353
|
-
offset: 0
|
|
43354
|
-
},
|
|
43355
|
-
V: {
|
|
43356
|
-
dimension: "voltage",
|
|
43357
|
-
factor: 1,
|
|
43358
|
-
offset: 0
|
|
43359
|
-
},
|
|
43360
|
-
mV: {
|
|
43361
|
-
dimension: "voltage",
|
|
43362
|
-
factor: .001,
|
|
43363
|
-
offset: 0
|
|
43364
|
-
},
|
|
43365
|
-
A: {
|
|
43366
|
-
dimension: "current",
|
|
43367
|
-
factor: 1,
|
|
43368
|
-
offset: 0
|
|
43369
|
-
},
|
|
43370
|
-
mA: {
|
|
43371
|
-
dimension: "current",
|
|
43372
|
-
factor: .001,
|
|
43373
|
-
offset: 0
|
|
43374
|
-
},
|
|
43375
|
-
ppm: {
|
|
43376
|
-
dimension: "concentration-volume",
|
|
43377
|
-
factor: 1,
|
|
43378
|
-
offset: 0
|
|
43379
|
-
},
|
|
43380
|
-
ppb: {
|
|
43381
|
-
dimension: "concentration-volume",
|
|
43382
|
-
factor: .001,
|
|
43383
|
-
offset: 0
|
|
43384
|
-
},
|
|
43385
|
-
"µg/m³": {
|
|
43386
|
-
dimension: "concentration-mass",
|
|
43387
|
-
factor: 1,
|
|
43388
|
-
offset: 0
|
|
43389
|
-
},
|
|
43390
|
-
"mg/m³": {
|
|
43391
|
-
dimension: "concentration-mass",
|
|
43392
|
-
factor: 1e3,
|
|
43393
|
-
offset: 0
|
|
43394
|
-
},
|
|
43395
|
-
kg: {
|
|
43396
|
-
dimension: "mass",
|
|
43397
|
-
factor: 1,
|
|
43398
|
-
offset: 0
|
|
43399
|
-
},
|
|
43400
|
-
g: {
|
|
43401
|
-
dimension: "mass",
|
|
43402
|
-
factor: .001,
|
|
43403
|
-
offset: 0
|
|
43404
|
-
},
|
|
43405
|
-
lb: {
|
|
43406
|
-
dimension: "mass",
|
|
43407
|
-
factor: .453592,
|
|
43408
|
-
offset: 0
|
|
43409
|
-
},
|
|
43410
|
-
oz: {
|
|
43411
|
-
dimension: "mass",
|
|
43412
|
-
factor: .0283495,
|
|
43413
|
-
offset: 0
|
|
43414
|
-
},
|
|
43415
|
-
"%": {
|
|
43416
|
-
dimension: "percentage",
|
|
43417
|
-
factor: 1,
|
|
43418
|
-
offset: 0
|
|
43419
|
-
},
|
|
43420
|
-
L: {
|
|
43421
|
-
dimension: "volume",
|
|
43422
|
-
factor: 1,
|
|
43423
|
-
offset: 0
|
|
43424
|
-
},
|
|
43425
|
-
mL: {
|
|
43426
|
-
dimension: "volume",
|
|
43427
|
-
factor: .001,
|
|
43428
|
-
offset: 0
|
|
43429
|
-
},
|
|
43430
|
-
gal: {
|
|
43431
|
-
dimension: "volume",
|
|
43432
|
-
factor: 3.785411784,
|
|
43433
|
-
offset: 0
|
|
43434
|
-
},
|
|
43435
|
-
s: {
|
|
43436
|
-
dimension: "duration",
|
|
43437
|
-
factor: 1,
|
|
43438
|
-
offset: 0
|
|
43439
|
-
},
|
|
43440
|
-
ms: {
|
|
43441
|
-
dimension: "duration",
|
|
43442
|
-
factor: .001,
|
|
43443
|
-
offset: 0
|
|
43444
|
-
},
|
|
43445
|
-
min: {
|
|
43446
|
-
dimension: "duration",
|
|
43447
|
-
factor: 60,
|
|
43448
|
-
offset: 0
|
|
43449
|
-
},
|
|
43450
|
-
h: {
|
|
43451
|
-
dimension: "duration",
|
|
43452
|
-
factor: 3600,
|
|
43453
|
-
offset: 0
|
|
43454
|
-
},
|
|
43455
|
-
d: {
|
|
43456
|
-
dimension: "duration",
|
|
43457
|
-
factor: 86400,
|
|
43458
|
-
offset: 0
|
|
43459
|
-
},
|
|
43460
|
-
B: {
|
|
43461
|
-
dimension: "information",
|
|
43462
|
-
factor: 1,
|
|
43463
|
-
offset: 0
|
|
43464
|
-
},
|
|
43465
|
-
KiB: {
|
|
43466
|
-
dimension: "information",
|
|
43467
|
-
factor: 1024,
|
|
43468
|
-
offset: 0
|
|
43469
|
-
},
|
|
43470
|
-
MiB: {
|
|
43471
|
-
dimension: "information",
|
|
43472
|
-
factor: 1024 ** 2,
|
|
43473
|
-
offset: 0
|
|
43474
|
-
},
|
|
43475
|
-
GiB: {
|
|
43476
|
-
dimension: "information",
|
|
43477
|
-
factor: 1024 ** 3,
|
|
43478
|
-
offset: 0
|
|
43479
|
-
},
|
|
43480
|
-
TiB: {
|
|
43481
|
-
dimension: "information",
|
|
43482
|
-
factor: 1024 ** 4,
|
|
43483
|
-
offset: 0
|
|
43484
|
-
},
|
|
43485
|
-
kB: {
|
|
43486
|
-
dimension: "information",
|
|
43487
|
-
factor: 1e3,
|
|
43488
|
-
offset: 0
|
|
43489
|
-
},
|
|
43490
|
-
MB: {
|
|
43491
|
-
dimension: "information",
|
|
43492
|
-
factor: 1e6,
|
|
43493
|
-
offset: 0
|
|
43494
|
-
},
|
|
43495
|
-
GB: {
|
|
43496
|
-
dimension: "information",
|
|
43497
|
-
factor: 1e9,
|
|
43498
|
-
offset: 0
|
|
43499
|
-
},
|
|
43500
|
-
"°": {
|
|
43501
|
-
dimension: "angle",
|
|
43502
|
-
factor: 1,
|
|
43503
|
-
offset: 0
|
|
43504
|
-
},
|
|
43505
|
-
dBFS: {
|
|
43506
|
-
dimension: "sound-level",
|
|
43507
|
-
factor: 1,
|
|
43508
|
-
offset: 0
|
|
43509
|
-
},
|
|
43510
|
-
dBm: {
|
|
43511
|
-
dimension: "signal-level",
|
|
43512
|
-
factor: 1,
|
|
43513
|
-
offset: 0
|
|
43514
|
-
},
|
|
43515
|
-
mired: {
|
|
43516
|
-
dimension: "colour-temperature",
|
|
43517
|
-
factor: 1,
|
|
43518
|
-
offset: 0
|
|
43519
|
-
},
|
|
43520
|
-
kbps: {
|
|
43521
|
-
dimension: "bitrate",
|
|
43522
|
-
factor: 1,
|
|
43523
|
-
offset: 0
|
|
43524
|
-
},
|
|
43525
|
-
Mbps: {
|
|
43526
|
-
dimension: "bitrate",
|
|
43527
|
-
factor: 1e3,
|
|
43528
|
-
offset: 0
|
|
43529
|
-
},
|
|
43530
|
-
fps: {
|
|
43531
|
-
dimension: "rate",
|
|
43532
|
-
factor: 1,
|
|
43533
|
-
offset: 0
|
|
43534
|
-
}
|
|
43535
|
-
};
|
|
43536
|
-
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
43537
|
-
function specFor(unit) {
|
|
43538
|
-
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
43539
|
-
}
|
|
43540
|
-
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
43541
|
-
function toCanonical(value, spec) {
|
|
43542
|
-
return value * spec.factor + spec.offset;
|
|
43543
|
-
}
|
|
43544
|
-
/** Canonical-unit value → the unit described by `spec`. */
|
|
43545
|
-
function fromCanonical(canonical, spec) {
|
|
43546
|
-
return (canonical - spec.offset) / spec.factor;
|
|
43547
|
-
}
|
|
43548
|
-
/**
|
|
43549
|
-
* Graceful variant for the render path: returns the converted value, or
|
|
43550
|
-
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
43551
|
-
* Never throws — a render caller falls back to the raw value + source unit.
|
|
43552
|
-
*/
|
|
43553
|
-
function tryConvertUnit(value, from, to) {
|
|
43554
|
-
if (from === to) return value;
|
|
43555
|
-
const fromSpec = specFor(from);
|
|
43556
|
-
if (!fromSpec) return void 0;
|
|
43557
|
-
const toSpec = specFor(to);
|
|
43558
|
-
if (!toSpec) return void 0;
|
|
43559
|
-
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
43560
|
-
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
43561
|
-
}
|
|
43562
|
-
/**
|
|
43563
43456
|
* A number a person types for a physical quantity — the input side of the
|
|
43564
43457
|
* value + unit contract (D972).
|
|
43565
43458
|
*
|
|
@@ -45340,26 +45233,23 @@ var SettingsSchemaWithValuesSchema = object({
|
|
|
45340
45233
|
var SettingsPatchSchema = record(string(), unknown());
|
|
45341
45234
|
/** The scope of a scoped-settings call (D986): where the capability declared the values. */
|
|
45342
45235
|
var ScopedSettingsScopeSchema = _enum(SCOPED_SETTINGS_SCOPES);
|
|
45236
|
+
/** One scoped schema an addon serves: its capability, scope and section ids. */
|
|
45237
|
+
var ScopedSettingsDeclarationSchema = object({
|
|
45238
|
+
cap: string(),
|
|
45239
|
+
scope: ScopedSettingsScopeSchema,
|
|
45240
|
+
sectionIds: array(string())
|
|
45241
|
+
});
|
|
45343
45242
|
/** Standard success response for update operations. */
|
|
45344
45243
|
var SettingsUpdateResultSchema = object({ success: literal(true) });
|
|
45345
45244
|
method(object({
|
|
45346
|
-
addonId: string(),
|
|
45347
|
-
nodeId: string().optional(),
|
|
45348
|
-
overlay: record(string(), unknown()).optional(),
|
|
45349
|
-
cap: string().optional()
|
|
45350
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45351
|
-
addonId: string(),
|
|
45352
|
-
nodeId: string().optional(),
|
|
45353
|
-
patch: SettingsPatchSchema
|
|
45354
|
-
}), SettingsUpdateResultSchema, {
|
|
45355
|
-
kind: "mutation",
|
|
45356
|
-
auth: "admin"
|
|
45357
|
-
}), method(object({
|
|
45358
45245
|
addonId: string(),
|
|
45359
45246
|
cap: string(),
|
|
45360
45247
|
scope: ScopedSettingsScopeSchema,
|
|
45361
45248
|
nodeId: string().optional()
|
|
45362
45249
|
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45250
|
+
addonId: string(),
|
|
45251
|
+
nodeId: string().optional()
|
|
45252
|
+
}), array(ScopedSettingsDeclarationSchema).nullable()), method(object({
|
|
45363
45253
|
addonId: string(),
|
|
45364
45254
|
cap: string(),
|
|
45365
45255
|
scope: ScopedSettingsScopeSchema,
|
|
@@ -45374,9 +45264,6 @@ method(object({
|
|
|
45374
45264
|
scope: ScopedSettingsScopeSchema,
|
|
45375
45265
|
nodeId: string().optional()
|
|
45376
45266
|
}), record(string(), unknown()).nullable()), method(object({
|
|
45377
|
-
addonId: string(),
|
|
45378
|
-
nodeId: string().optional()
|
|
45379
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45380
45267
|
addonId: string(),
|
|
45381
45268
|
nodeId: string().optional(),
|
|
45382
45269
|
instance: IntegrationInstanceRefSchema
|
|
@@ -46716,7 +46603,7 @@ var BackupDestinationInfoSchema = object({
|
|
|
46716
46603
|
id: string(),
|
|
46717
46604
|
/**
|
|
46718
46605
|
* Manifest id of the owning addon. The Settings button on the
|
|
46719
|
-
* destination card opens that addon's
|
|
46606
|
+
* destination card opens that addon's scoped settings panel.
|
|
46720
46607
|
*/
|
|
46721
46608
|
addonId: string(),
|
|
46722
46609
|
/** Operator-toggled enable flag from the destination-policy table. */
|
|
@@ -49311,7 +49198,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49311
49198
|
kind: "mutation",
|
|
49312
49199
|
auth: "protected"
|
|
49313
49200
|
});
|
|
49314
|
-
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;
|
|
49201
|
+
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;
|
|
49315
49202
|
var NUMBER = {
|
|
49316
49203
|
kind: "fixed",
|
|
49317
49204
|
result: ["number"]
|
|
@@ -51231,6 +51118,7 @@ var deviceExportCapability = {
|
|
|
51231
51118
|
})
|
|
51232
51119
|
}
|
|
51233
51120
|
};
|
|
51121
|
+
var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
51234
51122
|
/**
|
|
51235
51123
|
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
51236
51124
|
*
|
|
@@ -51624,6 +51512,12 @@ var DeviceInfoSchema = object({
|
|
|
51624
51512
|
addonId: string(),
|
|
51625
51513
|
type: _enum(DeviceType),
|
|
51626
51514
|
name: string(),
|
|
51515
|
+
/** The name a value template uses for this device (`{{ stufa_veranda.temperature }}`),
|
|
51516
|
+
* entity_id style. Generated once from the name at first registration, unique
|
|
51517
|
+
* cluster-wide, editable through `setAlias`, NOT changed by a rename (D1021).
|
|
51518
|
+
* Optional: a record produced by an older build omits it until the boot
|
|
51519
|
+
* backfill has run. */
|
|
51520
|
+
alias: DeviceAliasSchema.optional(),
|
|
51627
51521
|
/** Operator-organisational location label. `null` when unset. */
|
|
51628
51522
|
location: string().nullable(),
|
|
51629
51523
|
/** Soft-disabled flag. */
|
|
@@ -51943,6 +51837,25 @@ method(object({
|
|
|
51943
51837
|
}), _void(), {
|
|
51944
51838
|
kind: "mutation",
|
|
51945
51839
|
auth: "admin"
|
|
51840
|
+
}), method(object({
|
|
51841
|
+
deviceId: number(),
|
|
51842
|
+
alias: string()
|
|
51843
|
+
}), discriminatedUnion("ok", [object({
|
|
51844
|
+
ok: literal(true),
|
|
51845
|
+
alias: DeviceAliasSchema
|
|
51846
|
+
}), object({
|
|
51847
|
+
ok: literal(false),
|
|
51848
|
+
reason: _enum([
|
|
51849
|
+
"empty",
|
|
51850
|
+
"too-long",
|
|
51851
|
+
"grammar",
|
|
51852
|
+
"reserved",
|
|
51853
|
+
"taken"
|
|
51854
|
+
]),
|
|
51855
|
+
takenBy: number().optional()
|
|
51856
|
+
})]), {
|
|
51857
|
+
kind: "mutation",
|
|
51858
|
+
auth: "admin"
|
|
51946
51859
|
}), method(object({
|
|
51947
51860
|
deviceId: number(),
|
|
51948
51861
|
location: string().nullable()
|
|
@@ -55072,10 +54985,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
55072
54985
|
/** True when `testInstance` really probes the remote. */
|
|
55073
54986
|
canTest: boolean(),
|
|
55074
54987
|
/**
|
|
55075
|
-
* The kinds an instance can be of
|
|
55076
|
-
* Add flow asks which first and sends it as
|
|
54988
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
54989
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
54990
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
55077
54991
|
*/
|
|
55078
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
54992
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
55079
54993
|
/**
|
|
55080
54994
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
55081
54995
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -55111,8 +55025,8 @@ var IntegrationInstanceSchema = object({
|
|
|
55111
55025
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
55112
55026
|
*/
|
|
55113
55027
|
enabled: boolean().optional(),
|
|
55114
|
-
/** The kind of this instance
|
|
55115
|
-
kind: string().
|
|
55028
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
55029
|
+
kind: string().min(1),
|
|
55116
55030
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
55117
55031
|
formValues: record(string(), unknown()),
|
|
55118
55032
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -64682,6 +64596,11 @@ var NcScheduleSchema = object({
|
|
|
64682
64596
|
* as a STATE SUMMARY at the end of each window of `schedule`.
|
|
64683
64597
|
*/
|
|
64684
64598
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
64599
|
+
_enum([
|
|
64600
|
+
"activation",
|
|
64601
|
+
"deactivation",
|
|
64602
|
+
"schedule"
|
|
64603
|
+
]);
|
|
64685
64604
|
/**
|
|
64686
64605
|
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
64687
64606
|
* every section; `section` = one notification per section with something to
|
|
@@ -64698,11 +64617,26 @@ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
|
64698
64617
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
64699
64618
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
64700
64619
|
*/
|
|
64701
|
-
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [
|
|
64702
|
-
mode: literal("
|
|
64703
|
-
|
|
64704
|
-
|
|
64705
|
-
|
|
64620
|
+
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [
|
|
64621
|
+
object({ mode: literal("instant") }),
|
|
64622
|
+
object({
|
|
64623
|
+
mode: literal("summary"),
|
|
64624
|
+
schedule: NcScheduleSchema,
|
|
64625
|
+
split: NcStateSummarySplitSchema.optional()
|
|
64626
|
+
}),
|
|
64627
|
+
object({
|
|
64628
|
+
mode: literal("modes"),
|
|
64629
|
+
/** The bad edge, and every kind that has a single edge. */
|
|
64630
|
+
onActivation: boolean(),
|
|
64631
|
+
/** The recovery edges of the classes of the selected kinds (derived, never stored per kind). */
|
|
64632
|
+
onDeactivation: boolean(),
|
|
64633
|
+
/** A state summary at the end of each window; absent = no summary. */
|
|
64634
|
+
onSchedule: object({
|
|
64635
|
+
schedule: NcScheduleSchema,
|
|
64636
|
+
grouping: NcStateSummarySplitSchema
|
|
64637
|
+
}).optional()
|
|
64638
|
+
})
|
|
64639
|
+
]);
|
|
64706
64640
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
64707
64641
|
var NcPlateMatcherSchema = object({
|
|
64708
64642
|
/**
|
|
@@ -72045,6 +71979,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
72045
71979
|
});
|
|
72046
71980
|
});
|
|
72047
71981
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
71982
|
+
DeviceType.MediaPlayer;
|
|
72048
71983
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
72049
71984
|
object({
|
|
72050
71985
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -74478,7 +74413,7 @@ var TerminalInstanceInfoSchema = object({
|
|
|
74478
74413
|
/**
|
|
74479
74414
|
* False while the node the instance is bound to is not in the cluster
|
|
74480
74415
|
* topology (forgotten, renamed, re-paired). The instance is kept; the
|
|
74481
|
-
* operator re-points it
|
|
74416
|
+
* operator re-points it on the Terminal page.
|
|
74482
74417
|
*/
|
|
74483
74418
|
nodeInCluster: boolean(),
|
|
74484
74419
|
profileId: string(),
|
|
@@ -74516,41 +74451,7 @@ var TerminalOutputBatchSchema = object({
|
|
|
74516
74451
|
snapshot: string().optional(),
|
|
74517
74452
|
events: array(TerminalOutputEventSchema).readonly()
|
|
74518
74453
|
});
|
|
74519
|
-
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(
|
|
74520
|
-
targetNodeId: string().min(1),
|
|
74521
|
-
profileId: string().min(1),
|
|
74522
|
-
name: string().trim().min(1).max(160).optional(),
|
|
74523
|
-
executable: string().max(1024).optional(),
|
|
74524
|
-
args: array(string().max(2048)).max(64).optional(),
|
|
74525
|
-
cwd: string().max(1024).optional(),
|
|
74526
|
-
environment: array(string().max(4096)).max(64).optional(),
|
|
74527
|
-
profileSettings: ProfileSettingsBagSchema.optional()
|
|
74528
|
-
}), TerminalInstanceInfoSchema, {
|
|
74529
|
-
kind: "mutation",
|
|
74530
|
-
auth: "admin"
|
|
74531
|
-
}), method(object({
|
|
74532
|
-
instanceId: string().min(1),
|
|
74533
|
-
/** Re-point the instance to another node; the profile must exist there. */
|
|
74534
|
-
targetNodeId: string().min(1).max(256).optional(),
|
|
74535
|
-
name: string().trim().min(1).max(160).optional(),
|
|
74536
|
-
executable: string().max(1024).optional(),
|
|
74537
|
-
args: array(string().max(2048)).max(64).optional(),
|
|
74538
|
-
cwd: string().max(1024).optional(),
|
|
74539
|
-
environment: array(string().max(4096)).max(64).optional(),
|
|
74540
|
-
profileSettings: ProfileSettingsBagSchema.optional()
|
|
74541
|
-
}), TerminalInstanceInfoSchema, {
|
|
74542
|
-
kind: "mutation",
|
|
74543
|
-
auth: "admin"
|
|
74544
|
-
}), method(object({ instanceId: string().min(1) }), _void(), {
|
|
74545
|
-
kind: "mutation",
|
|
74546
|
-
auth: "admin"
|
|
74547
|
-
}), method(object({
|
|
74548
|
-
instanceId: string().min(1),
|
|
74549
|
-
enabled: boolean()
|
|
74550
|
-
}), TerminalInstanceInfoSchema, {
|
|
74551
|
-
kind: "mutation",
|
|
74552
|
-
auth: "admin"
|
|
74553
|
-
}), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
|
|
74454
|
+
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
|
|
74554
74455
|
stableId: string().min(1),
|
|
74555
74456
|
name: string().trim().min(1).max(160).optional()
|
|
74556
74457
|
}), TerminalInstanceInfoSchema, {
|
|
@@ -74619,6 +74520,11 @@ var TimedRunUnitSchema = _enum(["s", "min"]);
|
|
|
74619
74520
|
_enum(["switch", "pet-fountain"]);
|
|
74620
74521
|
DeviceType.Heater, DeviceType.PetFountain;
|
|
74621
74522
|
DeviceType.Heater, DeviceType.PetFountain;
|
|
74523
|
+
/** One duration, as the one-tap run asks for it. */
|
|
74524
|
+
var TimedRunQuickRunSchema = object({
|
|
74525
|
+
duration: number().positive().finite(),
|
|
74526
|
+
unit: TimedRunUnitSchema
|
|
74527
|
+
});
|
|
74622
74528
|
/** Why a request was not carried out. Typed, so a caller can say it in words. */
|
|
74623
74529
|
var TimedRunRefusalSchema = _enum([
|
|
74624
74530
|
"unsupported-device",
|
|
@@ -74639,9 +74545,30 @@ object({
|
|
|
74639
74545
|
activeUntil: number().nullable(),
|
|
74640
74546
|
/** Who asked for the run (a user id or an addon id); `null` when nothing is armed or it did not say. */
|
|
74641
74547
|
requestedBy: string().nullable(),
|
|
74548
|
+
/**
|
|
74549
|
+
* The one-tap run of THIS device: what a "Run" button on any surface starts. `null` when
|
|
74550
|
+
* the device is gone or its type has no timed run; a status from before this field
|
|
74551
|
+
* existed has none, and a surface falls back to the type's default.
|
|
74552
|
+
*/
|
|
74553
|
+
quickRun: TimedRunQuickRunSchema.nullable(),
|
|
74642
74554
|
lastFetchedAt: number()
|
|
74643
74555
|
});
|
|
74644
|
-
|
|
74556
|
+
/** What the settings form needs: the unit, the bounds and the type's default. */
|
|
74557
|
+
var TimedRunOptionsSchema = object({
|
|
74558
|
+
unit: TimedRunUnitSchema,
|
|
74559
|
+
/** The longest run, in `unit`. */
|
|
74560
|
+
maxDuration: number(),
|
|
74561
|
+
defaultDuration: number()
|
|
74562
|
+
});
|
|
74563
|
+
/** The one-tap run duration, in the type's unit; `null` returns to the type's default. */
|
|
74564
|
+
var TimedRunSettingsPatchSchema = object({ quickRunDuration: number().positive().finite().nullable().optional() });
|
|
74565
|
+
method(object({ deviceId: number().int() }), TimedRunOptionsSchema), method(object({
|
|
74566
|
+
deviceId: number().int(),
|
|
74567
|
+
settings: TimedRunSettingsPatchSchema
|
|
74568
|
+
}), _void(), {
|
|
74569
|
+
kind: "mutation",
|
|
74570
|
+
auth: "admin"
|
|
74571
|
+
}), method(object({
|
|
74645
74572
|
deviceId: number().int(),
|
|
74646
74573
|
duration: number().positive().finite(),
|
|
74647
74574
|
unit: TimedRunUnitSchema
|
|
@@ -77347,13 +77274,6 @@ Object.freeze({
|
|
|
77347
77274
|
access: "view",
|
|
77348
77275
|
role: "admin"
|
|
77349
77276
|
},
|
|
77350
|
-
"addonSettings.getGlobalSettings": {
|
|
77351
|
-
capName: "addon-settings",
|
|
77352
|
-
capScope: "system",
|
|
77353
|
-
addonId: null,
|
|
77354
|
-
access: "view",
|
|
77355
|
-
role: "admin"
|
|
77356
|
-
},
|
|
77357
77277
|
"addonSettings.getIntegrationFormSchema": {
|
|
77358
77278
|
capName: "addon-settings",
|
|
77359
77279
|
capScope: "system",
|
|
@@ -77361,14 +77281,14 @@ Object.freeze({
|
|
|
77361
77281
|
access: "view",
|
|
77362
77282
|
role: "admin"
|
|
77363
77283
|
},
|
|
77364
|
-
"addonSettings.
|
|
77284
|
+
"addonSettings.getScopedSettings": {
|
|
77365
77285
|
capName: "addon-settings",
|
|
77366
77286
|
capScope: "system",
|
|
77367
77287
|
addonId: null,
|
|
77368
77288
|
access: "view",
|
|
77369
77289
|
role: "admin"
|
|
77370
77290
|
},
|
|
77371
|
-
"addonSettings.
|
|
77291
|
+
"addonSettings.listScopedSettings": {
|
|
77372
77292
|
capName: "addon-settings",
|
|
77373
77293
|
capScope: "system",
|
|
77374
77294
|
addonId: null,
|
|
@@ -77396,13 +77316,6 @@ Object.freeze({
|
|
|
77396
77316
|
access: "create",
|
|
77397
77317
|
role: "admin"
|
|
77398
77318
|
},
|
|
77399
|
-
"addonSettings.updateGlobalSettings": {
|
|
77400
|
-
capName: "addon-settings",
|
|
77401
|
-
capScope: "system",
|
|
77402
|
-
addonId: null,
|
|
77403
|
-
access: "create",
|
|
77404
|
-
role: "admin"
|
|
77405
|
-
},
|
|
77406
77319
|
"addonSettings.updateScopedSettings": {
|
|
77407
77320
|
capName: "addon-settings",
|
|
77408
77321
|
capScope: "system",
|
|
@@ -79573,6 +79486,13 @@ Object.freeze({
|
|
|
79573
79486
|
access: "create",
|
|
79574
79487
|
role: "admin"
|
|
79575
79488
|
},
|
|
79489
|
+
"deviceManager.setAlias": {
|
|
79490
|
+
capName: "device-manager",
|
|
79491
|
+
capScope: "system",
|
|
79492
|
+
addonId: null,
|
|
79493
|
+
access: "create",
|
|
79494
|
+
role: "admin"
|
|
79495
|
+
},
|
|
79576
79496
|
"deviceManager.setChildLayout": {
|
|
79577
79497
|
capName: "device-manager",
|
|
79578
79498
|
capScope: "system",
|
|
@@ -86300,27 +86220,6 @@ Object.freeze({
|
|
|
86300
86220
|
access: "create",
|
|
86301
86221
|
role: "admin"
|
|
86302
86222
|
},
|
|
86303
|
-
"terminalSession.createInstance": {
|
|
86304
|
-
capName: "terminal-session",
|
|
86305
|
-
capScope: "system",
|
|
86306
|
-
addonId: null,
|
|
86307
|
-
access: "create",
|
|
86308
|
-
role: "admin"
|
|
86309
|
-
},
|
|
86310
|
-
"terminalSession.deleteInstance": {
|
|
86311
|
-
capName: "terminal-session",
|
|
86312
|
-
capScope: "system",
|
|
86313
|
-
addonId: null,
|
|
86314
|
-
access: "delete",
|
|
86315
|
-
role: "admin"
|
|
86316
|
-
},
|
|
86317
|
-
"terminalSession.listInstances": {
|
|
86318
|
-
capName: "terminal-session",
|
|
86319
|
-
capScope: "system",
|
|
86320
|
-
addonId: null,
|
|
86321
|
-
access: "view",
|
|
86322
|
-
role: "admin"
|
|
86323
|
-
},
|
|
86324
86223
|
"terminalSession.listLegacyCameras": {
|
|
86325
86224
|
capName: "terminal-session",
|
|
86326
86225
|
capScope: "system",
|
|
@@ -86363,20 +86262,6 @@ Object.freeze({
|
|
|
86363
86262
|
access: "create",
|
|
86364
86263
|
role: "admin"
|
|
86365
86264
|
},
|
|
86366
|
-
"terminalSession.setInstanceEnabled": {
|
|
86367
|
-
capName: "terminal-session",
|
|
86368
|
-
capScope: "system",
|
|
86369
|
-
addonId: null,
|
|
86370
|
-
access: "create",
|
|
86371
|
-
role: "admin"
|
|
86372
|
-
},
|
|
86373
|
-
"terminalSession.updateInstance": {
|
|
86374
|
-
capName: "terminal-session",
|
|
86375
|
-
capScope: "system",
|
|
86376
|
-
addonId: null,
|
|
86377
|
-
access: "create",
|
|
86378
|
-
role: "admin"
|
|
86379
|
-
},
|
|
86380
86265
|
"terminalSession.writeInput": {
|
|
86381
86266
|
capName: "terminal-session",
|
|
86382
86267
|
capScope: "system",
|
|
@@ -86391,6 +86276,13 @@ Object.freeze({
|
|
|
86391
86276
|
access: "create",
|
|
86392
86277
|
role: "viewer"
|
|
86393
86278
|
},
|
|
86279
|
+
"timedRun.getOptions": {
|
|
86280
|
+
capName: "timed-run",
|
|
86281
|
+
capScope: "device",
|
|
86282
|
+
addonId: null,
|
|
86283
|
+
access: "view",
|
|
86284
|
+
role: "viewer"
|
|
86285
|
+
},
|
|
86394
86286
|
"timedRun.getStatus": {
|
|
86395
86287
|
capName: "timed-run",
|
|
86396
86288
|
capScope: "device",
|
|
@@ -86405,6 +86297,13 @@ Object.freeze({
|
|
|
86405
86297
|
access: "create",
|
|
86406
86298
|
role: "viewer"
|
|
86407
86299
|
},
|
|
86300
|
+
"timedRun.setSettings": {
|
|
86301
|
+
capName: "timed-run",
|
|
86302
|
+
capScope: "device",
|
|
86303
|
+
addonId: null,
|
|
86304
|
+
access: "create",
|
|
86305
|
+
role: "admin"
|
|
86306
|
+
},
|
|
86408
86307
|
"toast.onToast": {
|
|
86409
86308
|
capName: "toast",
|
|
86410
86309
|
capScope: "system",
|
|
@@ -87360,6 +87259,7 @@ function applianceExport(ecosystem, deviceType) {
|
|
|
87360
87259
|
if (!isPlugApplianceType(deviceType)) return null;
|
|
87361
87260
|
return APPLIANCE_EXPORT[ecosystem][deviceType];
|
|
87362
87261
|
}
|
|
87262
|
+
string().min(1).max(4096);
|
|
87363
87263
|
Object.freeze({
|
|
87364
87264
|
"accessories.getStatus": [{
|
|
87365
87265
|
name: "deviceId",
|
|
@@ -88043,6 +87943,11 @@ Object.freeze({
|
|
|
88043
87943
|
form: "single",
|
|
88044
87944
|
optional: false
|
|
88045
87945
|
}],
|
|
87946
|
+
"deviceManager.setAlias": [{
|
|
87947
|
+
name: "deviceId",
|
|
87948
|
+
form: "single",
|
|
87949
|
+
optional: false
|
|
87950
|
+
}],
|
|
88046
87951
|
"deviceManager.setChildLayout": [{
|
|
88047
87952
|
name: "deviceId",
|
|
88048
87953
|
form: "single",
|
|
@@ -90107,6 +90012,11 @@ Object.freeze({
|
|
|
90107
90012
|
form: "single",
|
|
90108
90013
|
optional: false
|
|
90109
90014
|
}],
|
|
90015
|
+
"timedRun.getOptions": [{
|
|
90016
|
+
name: "deviceId",
|
|
90017
|
+
form: "single",
|
|
90018
|
+
optional: false
|
|
90019
|
+
}],
|
|
90110
90020
|
"timedRun.getStatus": [{
|
|
90111
90021
|
name: "deviceId",
|
|
90112
90022
|
form: "single",
|
|
@@ -90117,6 +90027,11 @@ Object.freeze({
|
|
|
90117
90027
|
form: "single",
|
|
90118
90028
|
optional: false
|
|
90119
90029
|
}],
|
|
90030
|
+
"timedRun.setSettings": [{
|
|
90031
|
+
name: "deviceId",
|
|
90032
|
+
form: "single",
|
|
90033
|
+
optional: false
|
|
90034
|
+
}],
|
|
90120
90035
|
"update.getStatus": [{
|
|
90121
90036
|
name: "deviceId",
|
|
90122
90037
|
form: "single",
|
|
@@ -90979,6 +90894,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
90979
90894
|
[...RULE_TEXT],
|
|
90980
90895
|
[...RULE_TEXT],
|
|
90981
90896
|
[...RULE_TEXT],
|
|
90897
|
+
[...RULE_TEXT],
|
|
90982
90898
|
[...RULE_BODY_ONLY],
|
|
90983
90899
|
[...RULE_TEXT],
|
|
90984
90900
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
@@ -105857,7 +105773,13 @@ var ExportAlexaAddon = class extends BaseAddon {
|
|
|
105857
105773
|
role: "services",
|
|
105858
105774
|
instanceMode: "multiple",
|
|
105859
105775
|
kind: "skills",
|
|
105860
|
-
canTest: false
|
|
105776
|
+
canTest: false,
|
|
105777
|
+
kinds: [{
|
|
105778
|
+
id: "skills",
|
|
105779
|
+
label: "Alexa skill",
|
|
105780
|
+
functionCap: "device-export",
|
|
105781
|
+
role: "services"
|
|
105782
|
+
}]
|
|
105861
105783
|
},
|
|
105862
105784
|
formSchema: (id) => this.skillForm(id),
|
|
105863
105785
|
initialBody: (name) => ({
|