@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
|
@@ -837,7 +837,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
837
837
|
return EventCategory;
|
|
838
838
|
}({});
|
|
839
839
|
//#endregion
|
|
840
|
-
//#region ../types/dist/device-type-
|
|
840
|
+
//#region ../types/dist/device-type-DxCT0krO.mjs
|
|
841
841
|
/**
|
|
842
842
|
import { errMsg } from '@camstack/types'
|
|
843
843
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -999,6 +999,13 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
999
999
|
* filters that want "all devices with on-motion behaviour".
|
|
1000
1000
|
*/
|
|
1001
1001
|
DeviceFeature["MotionTrigger"] = "motion-trigger";
|
|
1002
|
+
/**
|
|
1003
|
+
* Device can be run for a chosen time and then stopped. Mirrors the
|
|
1004
|
+
* `timed-run` wrapper cap — the cap is bound by the core-blocks addon, not by
|
|
1005
|
+
* a driver, so the flag is derived from the device's bindings
|
|
1006
|
+
* (`featuresOfBoundCaps`). Gates the quick-run control in the viewer.
|
|
1007
|
+
*/
|
|
1008
|
+
DeviceFeature["TimedRun"] = "timed-run";
|
|
1002
1009
|
/** Light supports rgb-triplet color via `color` cap. */
|
|
1003
1010
|
DeviceFeature["LightColorRgb"] = "light-color-rgb";
|
|
1004
1011
|
/** Light supports HSV color via `color` cap. */
|
|
@@ -6033,7 +6040,7 @@ var ZodIssueCode = {
|
|
|
6033
6040
|
var ZodFirstPartyTypeKind;
|
|
6034
6041
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6035
6042
|
//#endregion
|
|
6036
|
-
//#region ../types/dist/sleep-
|
|
6043
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6037
6044
|
/**
|
|
6038
6045
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6039
6046
|
* window to float samples (D455).
|
|
@@ -7249,6 +7256,7 @@ var RecordIntegrationInstances = class {
|
|
|
7249
7256
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7250
7257
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7251
7258
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7259
|
+
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`);
|
|
7252
7260
|
}
|
|
7253
7261
|
/**
|
|
7254
7262
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7290,10 +7298,21 @@ var RecordIntegrationInstances = class {
|
|
|
7290
7298
|
}
|
|
7291
7299
|
return out;
|
|
7292
7300
|
}
|
|
7301
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7302
|
+
kindOfBody(body) {
|
|
7303
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7304
|
+
const id = this.hooks.kindOf(body);
|
|
7305
|
+
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)`);
|
|
7306
|
+
return id;
|
|
7307
|
+
}
|
|
7308
|
+
const only = this.hooks.description.kinds[0];
|
|
7309
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7310
|
+
return only.id;
|
|
7311
|
+
}
|
|
7293
7312
|
viewOf(record) {
|
|
7294
7313
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7295
7314
|
const rawName = record.data[this.nameField];
|
|
7296
|
-
const kind = this.
|
|
7315
|
+
const kind = this.kindOfBody(record.data);
|
|
7297
7316
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7298
7317
|
return {
|
|
7299
7318
|
id: record.id,
|
|
@@ -7301,7 +7320,7 @@ var RecordIntegrationInstances = class {
|
|
|
7301
7320
|
configured: this.hooks.configured(record.data),
|
|
7302
7321
|
enabled: isInstanceEnabled(record.data),
|
|
7303
7322
|
formValues: shown,
|
|
7304
|
-
|
|
7323
|
+
kind,
|
|
7305
7324
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7306
7325
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7307
7326
|
};
|
|
@@ -8402,7 +8421,7 @@ function boundOf(list) {
|
|
|
8402
8421
|
* Base class for CamStack addons. Eliminates settings boilerplate:
|
|
8403
8422
|
*
|
|
8404
8423
|
* - Typed `config` property with automatic resolution from store + defaults
|
|
8405
|
-
* -
|
|
8424
|
+
* - the scoped settings API (`clusterSettings` / `nodeSettings` / `deviceDefaults`) auto-implemented
|
|
8406
8425
|
* - `getAddonSettings()` / `updateAddonSettings()` auto-implemented
|
|
8407
8426
|
* - `getDeviceSettings()` / `updateDeviceSettings()` auto-implemented
|
|
8408
8427
|
* - `ctx` accessor for the AddonContext (no manual `this.ctxRef` storage)
|
|
@@ -8412,7 +8431,7 @@ function boundOf(list) {
|
|
|
8412
8431
|
* Subclasses override:
|
|
8413
8432
|
* - `onInitialize()` — addon-specific init logic, return ProviderRegistration[]
|
|
8414
8433
|
* - `onShutdown()` — cleanup
|
|
8415
|
-
* - `
|
|
8434
|
+
* - `clusterSettingsSchema()` / `nodeSettingsSchema()` / `deviceSettingsSchema()` — UI schemas
|
|
8416
8435
|
*
|
|
8417
8436
|
* @example
|
|
8418
8437
|
* ```ts
|
|
@@ -8426,7 +8445,7 @@ function boundOf(list) {
|
|
|
8426
8445
|
* super({ maxRetries: 3, endpoint: 'http://localhost' })
|
|
8427
8446
|
* }
|
|
8428
8447
|
*
|
|
8429
|
-
* protected
|
|
8448
|
+
* protected clusterSettingsSchema() {
|
|
8430
8449
|
* return this.schema({
|
|
8431
8450
|
* sections: [{
|
|
8432
8451
|
* id: 'main', title: 'Settings',
|
|
@@ -8469,7 +8488,7 @@ var BaseAddon = class {
|
|
|
8469
8488
|
defaults;
|
|
8470
8489
|
/**
|
|
8471
8490
|
* Hidden-state paths that hold secrets (D787) — values the addon writes
|
|
8472
|
-
* itself (`
|
|
8491
|
+
* itself (`state()`, the scoped writers) that no form field declares.
|
|
8473
8492
|
* Stored in the keychain exactly like a `password` field. Syntax:
|
|
8474
8493
|
* `'snapshotSigningKey'`, `'identity.pincode'`, `'tokens[userId].accessToken'`
|
|
8475
8494
|
* (`key[<id field>]` addresses array items by id, never by index).
|
|
@@ -8479,7 +8498,7 @@ var BaseAddon = class {
|
|
|
8479
8498
|
/**
|
|
8480
8499
|
* D986 M4: the scoped schemas this addon declared, resolved once per capability
|
|
8481
8500
|
* (`loadScopedSchemas`) so the sync readers (`perNodeKeys`, the secret tree, the restart check)
|
|
8482
|
-
* see them. Empty until loaded
|
|
8501
|
+
* see them. Empty until loaded.
|
|
8483
8502
|
*/
|
|
8484
8503
|
_scopedByCap = /* @__PURE__ */ new Map();
|
|
8485
8504
|
_nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
@@ -8665,7 +8684,7 @@ var BaseAddon = class {
|
|
|
8665
8684
|
/** Addon-specific cleanup. Override if needed. */
|
|
8666
8685
|
async onShutdown() {}
|
|
8667
8686
|
/**
|
|
8668
|
-
* Called after config is resolved during
|
|
8687
|
+
* Called after config is resolved during a settings write.
|
|
8669
8688
|
* Override to react to config changes (e.g. restart a sampler, reconnect a service).
|
|
8670
8689
|
* Not called during initialize() — use onInitialize() for initial setup.
|
|
8671
8690
|
*/
|
|
@@ -8694,82 +8713,12 @@ var BaseAddon = class {
|
|
|
8694
8713
|
scopedSettingsCapabilities() {
|
|
8695
8714
|
return [];
|
|
8696
8715
|
}
|
|
8697
|
-
/** Override to provide global-level settings UI schema. */
|
|
8698
|
-
globalSettingsSchema(_cap) {
|
|
8699
|
-
return null;
|
|
8700
|
-
}
|
|
8701
8716
|
/** Override to provide device-level settings UI schema. */
|
|
8702
8717
|
deviceSettingsSchema() {
|
|
8703
8718
|
return null;
|
|
8704
8719
|
}
|
|
8705
8720
|
/**
|
|
8706
|
-
*
|
|
8707
|
-
* ARE the configuration of its integration.
|
|
8708
|
-
*
|
|
8709
|
-
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
8710
|
-
* operator should find on the addon's integration page (System →
|
|
8711
|
-
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
8712
|
-
* addon. Empty (the default) means the addon has no integration-level
|
|
8713
|
-
* settings and no such surface is offered — this is opt-in, because whether
|
|
8714
|
-
* an addon's configuration IS its integration's configuration depends on the
|
|
8715
|
-
* nature of the integration.
|
|
8716
|
-
*
|
|
8717
|
-
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
8718
|
-
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
8719
|
-
* `updateGlobalSettings` path. There is deliberately no
|
|
8720
|
-
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
8721
|
-
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
8722
|
-
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
8723
|
-
*
|
|
8724
|
-
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
8725
|
-
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
8726
|
-
* removed with the reason recorded at
|
|
8727
|
-
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
8728
|
-
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
8729
|
-
* marker sprinkled across sections also has to borrow a field that already
|
|
8730
|
-
* means something else; borrowing `section.tab` put the literal word
|
|
8731
|
-
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
8732
|
-
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
8733
|
-
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
8734
|
-
* ids it names.
|
|
8735
|
-
*/
|
|
8736
|
-
integrationSettingSections() {
|
|
8737
|
-
return [];
|
|
8738
|
-
}
|
|
8739
|
-
async getGlobalSettings(overlay, cap, nodeId) {
|
|
8740
|
-
await this.loadScopedSchemas(cap);
|
|
8741
|
-
const schema = this.globalSettingsSchema(cap) ?? this.scopedFormSchema(cap);
|
|
8742
|
-
if (!schema) return { sections: [] };
|
|
8743
|
-
const projected = await this.readRawProjectedStore(nodeId, cap);
|
|
8744
|
-
return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(projected, overlay) : projected, { inlineSecretsAsViews: true });
|
|
8745
|
-
}
|
|
8746
|
-
/**
|
|
8747
|
-
* The integration-level view of this addon's settings: exactly the sections
|
|
8748
|
-
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
8749
|
-
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
8750
|
-
*
|
|
8751
|
-
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
8752
|
-
* no integration settings surface at all, rather than an empty one that reads
|
|
8753
|
-
* as a failed load.
|
|
8754
|
-
*
|
|
8755
|
-
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
8756
|
-
* and not in whichever UI happens to render this:
|
|
8757
|
-
*
|
|
8758
|
-
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
8759
|
-
* shown here is the same field, with the same bare key, that the addon's
|
|
8760
|
-
* own page shows. There is no integration-specific writer — callers save
|
|
8761
|
-
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
8762
|
-
* not merely discouraged.
|
|
8763
|
-
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
8764
|
-
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
8765
|
-
* such a field silently picked would be a wrong answer for the operator
|
|
8766
|
-
* who opened the page (D266).
|
|
8767
|
-
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
8768
|
-
* alternative — skip it — turns a rename into a surface that quietly
|
|
8769
|
-
* empties, which looks exactly like an addon with nothing to configure.
|
|
8770
|
-
*/
|
|
8771
|
-
/**
|
|
8772
|
-
* The form schema of ONE integration instance, or `null` to use {@link globalSettingsSchema}.
|
|
8721
|
+
* The form schema of ONE integration instance, or `null` to use the scoped form.
|
|
8773
8722
|
*
|
|
8774
8723
|
* Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
|
|
8775
8724
|
* needs its connection fields, the default integration the addon's own sections. It is the
|
|
@@ -8942,6 +8891,19 @@ var BaseAddon = class {
|
|
|
8942
8891
|
const overlay = await this.scopedSettingsOverlay(scope, cap, nodeId);
|
|
8943
8892
|
return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(stored, overlay) : stored, { inlineSecretsAsViews: true });
|
|
8944
8893
|
}
|
|
8894
|
+
/**
|
|
8895
|
+
* The scoped schemas this addon serves: one entry per loaded (capability, scope), capabilities
|
|
8896
|
+
* in declaration order, scopes in {@link SCOPED_SETTINGS_SCOPES} order. `[]` when it declares
|
|
8897
|
+
* nothing.
|
|
8898
|
+
*/
|
|
8899
|
+
async listScopedSettings() {
|
|
8900
|
+
await this.loadScopedSchemas();
|
|
8901
|
+
return [...this._scopedByCap].flatMap(([cap, entries]) => entries.map((entry) => ({
|
|
8902
|
+
cap,
|
|
8903
|
+
scope: entry.scope,
|
|
8904
|
+
sectionIds: entry.schema.sections.map((section) => section.id)
|
|
8905
|
+
})));
|
|
8906
|
+
}
|
|
8945
8907
|
/** The OPERATOR's write of declared keys of one scope (D787 secret semantics). */
|
|
8946
8908
|
async updateScopedSettings(scope, cap, patch, nodeId) {
|
|
8947
8909
|
this._operatorWriteDepth++;
|
|
@@ -8967,32 +8929,15 @@ var BaseAddon = class {
|
|
|
8967
8929
|
*/
|
|
8968
8930
|
async getIntegrationFormSchema(instance, nodeId) {
|
|
8969
8931
|
const scoped = await this.integrationFormSchema(instance);
|
|
8970
|
-
if (scoped === null) return this.
|
|
8932
|
+
if (scoped === null) return this.scopedForm(nodeId);
|
|
8971
8933
|
return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
|
|
8972
8934
|
}
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
const schema = this.
|
|
8977
|
-
if (!schema)
|
|
8978
|
-
|
|
8979
|
-
const sections = [];
|
|
8980
|
-
for (const id of declared) {
|
|
8981
|
-
const section = byId.get(id);
|
|
8982
|
-
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
8983
|
-
const fields = dropPerNodeFields(section.fields);
|
|
8984
|
-
if (fields.length === 0) continue;
|
|
8985
|
-
sections.push({
|
|
8986
|
-
...section,
|
|
8987
|
-
fields
|
|
8988
|
-
});
|
|
8989
|
-
}
|
|
8990
|
-
if (sections.length === 0) return null;
|
|
8991
|
-
const projected = await this.readRawProjectedStore(nodeId);
|
|
8992
|
-
return hydrateSchema({
|
|
8993
|
-
...schema,
|
|
8994
|
-
sections
|
|
8995
|
-
}, projected, { inlineSecretsAsViews: true });
|
|
8935
|
+
/** The form of the scoped schemas this addon declared, hydrated from its store. */
|
|
8936
|
+
async scopedForm(nodeId) {
|
|
8937
|
+
await this.loadScopedSchemas();
|
|
8938
|
+
const schema = this.scopedFormSchema();
|
|
8939
|
+
if (!schema) return { sections: [] };
|
|
8940
|
+
return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
|
|
8996
8941
|
}
|
|
8997
8942
|
/**
|
|
8998
8943
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
@@ -9001,8 +8946,8 @@ var BaseAddon = class {
|
|
|
9001
8946
|
* bare fallback), all `@`-scoped and stray bare per-node keys are dropped.
|
|
9002
8947
|
* A no-op passthrough when the schema declares no `perNode` field.
|
|
9003
8948
|
*
|
|
9004
|
-
* This is the sanctioned way for
|
|
9005
|
-
* the store for custom
|
|
8949
|
+
* This is the sanctioned way for an addon that needs
|
|
8950
|
+
* the store for custom logic (option narrowing, value snapping) to
|
|
9006
8951
|
* read it per-node — never `ctx.settings.readAddonStore()` directly.
|
|
9007
8952
|
* `nodeId` omitted ⇒ the local node (node-blind injection from ctx).
|
|
9008
8953
|
*
|
|
@@ -9054,7 +8999,7 @@ var BaseAddon = class {
|
|
|
9054
8999
|
}
|
|
9055
9000
|
/**
|
|
9056
9001
|
* Whether ONE global key of this addon's store was written, read three-way
|
|
9057
|
-
* (D651). For a question a hydrated view cannot answer:
|
|
9002
|
+
* (D651). For a question a hydrated view cannot answer: a hydrated form
|
|
9058
9003
|
* reports `value ?? default`, so "the operator chose the default" and "nobody
|
|
9059
9004
|
* chose" look the same, and a failed read looks like both. A `perNode` key is
|
|
9060
9005
|
* not supported here: its stored name is scoped.
|
|
@@ -9088,7 +9033,7 @@ var BaseAddon = class {
|
|
|
9088
9033
|
}
|
|
9089
9034
|
/**
|
|
9090
9035
|
* The OPERATOR's write — a settings form or an admin API call, dispatched by
|
|
9091
|
-
* the kernel.
|
|
9036
|
+
* the kernel. The one in-process write of the addon blob that is not a scoped write; a secret
|
|
9092
9037
|
* the operator sends is stored as sent even when it equals a pre-keychain
|
|
9093
9038
|
* inline value: the operator re-entering a password is a change, an addon
|
|
9094
9039
|
* writing back what it read is not (D787).
|
|
@@ -9101,9 +9046,6 @@ var BaseAddon = class {
|
|
|
9101
9046
|
this._operatorWriteDepth--;
|
|
9102
9047
|
}
|
|
9103
9048
|
}
|
|
9104
|
-
async updateGlobalSettings(patch, nodeId) {
|
|
9105
|
-
await this.applyGlobalPatch(patch, nodeId);
|
|
9106
|
-
}
|
|
9107
9049
|
/**
|
|
9108
9050
|
* REMOVE stored secrets — their keychain values and their markers (D787).
|
|
9109
9051
|
*
|
|
@@ -9146,8 +9088,7 @@ var BaseAddon = class {
|
|
|
9146
9088
|
await this.resolveConfig();
|
|
9147
9089
|
await this.onConfigChanged();
|
|
9148
9090
|
this.emitLifecycle(EventCategory.AddonUpdated, { level: "global" });
|
|
9149
|
-
|
|
9150
|
-
this.maybeAutoRestart(Object.keys(barePatch), [...legacy === null ? [] : [legacy], ...this.loadedScopedSchemas().map((entry) => entry.schema)]);
|
|
9091
|
+
this.maybeAutoRestart(Object.keys(barePatch), this.loadedScopedSchemas().map((entry) => entry.schema));
|
|
9151
9092
|
return true;
|
|
9152
9093
|
}
|
|
9153
9094
|
/**
|
|
@@ -9185,10 +9126,7 @@ var BaseAddon = class {
|
|
|
9185
9126
|
this._nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
9186
9127
|
this._addonSecretTree = null;
|
|
9187
9128
|
}
|
|
9188
|
-
/**
|
|
9189
|
-
* The form the settings API serves while an addon declares no {@link globalSettingsSchema}: the
|
|
9190
|
-
* sections of its scoped schemas, so dropping the old hook does not blank the form.
|
|
9191
|
-
*/
|
|
9129
|
+
/** The form of an addon's scoped schemas: their sections, each shown once. */
|
|
9192
9130
|
scopedFormSchema(cap) {
|
|
9193
9131
|
const byId = /* @__PURE__ */ new Map();
|
|
9194
9132
|
for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
|
|
@@ -9200,8 +9138,7 @@ var BaseAddon = class {
|
|
|
9200
9138
|
return [...this._scopedByCap.values()].flat();
|
|
9201
9139
|
}
|
|
9202
9140
|
/**
|
|
9203
|
-
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}
|
|
9204
|
-
* the fields the legacy {@link globalSettingsSchema} still marks `perNode: true`. Derived once
|
|
9141
|
+
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}. Derived once
|
|
9205
9142
|
* per `cap` argument and memoized (schemas are static declarations). Empty set ⇒ every
|
|
9206
9143
|
* per-node code path is bypassed and the settings API behaves like the node-agnostic one.
|
|
9207
9144
|
* Call {@link loadScopedSchemas} first (the async seams do).
|
|
@@ -9210,8 +9147,7 @@ var BaseAddon = class {
|
|
|
9210
9147
|
const cacheKey = cap ?? "";
|
|
9211
9148
|
const cached = this._nodeKeysByCap.get(cacheKey);
|
|
9212
9149
|
if (cached) return cached;
|
|
9213
|
-
const
|
|
9214
|
-
const keys = new Set(legacy ? legacy.sections.flatMap((section) => collectPerNodeFieldKeys(section.fields)) : []);
|
|
9150
|
+
const keys = /* @__PURE__ */ new Set();
|
|
9215
9151
|
for (const { scope, schema } of this.loadedScopedSchemas(cap)) {
|
|
9216
9152
|
if (scope !== "node") continue;
|
|
9217
9153
|
for (const section of schema.sections) for (const key of collectValueFieldKeys(section.fields)) keys.add(key);
|
|
@@ -9429,8 +9365,6 @@ var BaseAddon = class {
|
|
|
9429
9365
|
}
|
|
9430
9366
|
declaredKeySet() {
|
|
9431
9367
|
const keys = new Set(Object.keys(this.defaults));
|
|
9432
|
-
const schema = this.globalSettingsSchema();
|
|
9433
|
-
if (schema) for (const section of schema.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
9434
9368
|
for (const { schema: scoped } of this.loadedScopedSchemas()) for (const section of scoped.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
9435
9369
|
for (const key of this._declaredStateKeys) keys.add(key);
|
|
9436
9370
|
for (const path of this.secretStatePaths) {
|
|
@@ -9528,7 +9462,7 @@ var BaseAddon = class {
|
|
|
9528
9462
|
/** The addon store's secret tree: schema fields by TYPE, plus `secretStatePaths`. */
|
|
9529
9463
|
addonSecretTree() {
|
|
9530
9464
|
if (this._addonSecretTree === null) {
|
|
9531
|
-
const tree = new Map(
|
|
9465
|
+
const tree = /* @__PURE__ */ new Map();
|
|
9532
9466
|
for (const { schema } of this.loadedScopedSchemas()) for (const [key, node] of secretTreeFromSchema(schema)) tree.set(key, node);
|
|
9533
9467
|
this._addonSecretTree = mergeSecretStatePaths(tree, this.secretStatePaths);
|
|
9534
9468
|
}
|
|
@@ -9740,47 +9674,6 @@ function classifyStoreError(err) {
|
|
|
9740
9674
|
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
9741
9675
|
return "permanent";
|
|
9742
9676
|
}
|
|
9743
|
-
/**
|
|
9744
|
-
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
9745
|
-
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
9746
|
-
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
9747
|
-
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
9748
|
-
*/
|
|
9749
|
-
/**
|
|
9750
|
-
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
9751
|
-
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
9752
|
-
* with no child is dropped rather than rendered empty.
|
|
9753
|
-
*
|
|
9754
|
-
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
9755
|
-
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
9756
|
-
*/
|
|
9757
|
-
function dropPerNodeFields(fields) {
|
|
9758
|
-
const kept = [];
|
|
9759
|
-
for (const field of fields) {
|
|
9760
|
-
if (field.type === "group") {
|
|
9761
|
-
const inner = dropPerNodeFields(field.fields);
|
|
9762
|
-
if (inner.length > 0) kept.push({
|
|
9763
|
-
...field,
|
|
9764
|
-
fields: inner
|
|
9765
|
-
});
|
|
9766
|
-
continue;
|
|
9767
|
-
}
|
|
9768
|
-
if (field.type === "sub-tabs") {
|
|
9769
|
-
const tabs = field.tabs.map((tab) => ({
|
|
9770
|
-
...tab,
|
|
9771
|
-
fields: dropPerNodeFields(tab.fields)
|
|
9772
|
-
})).filter((tab) => tab.fields.length > 0);
|
|
9773
|
-
if (tabs.length > 0) kept.push({
|
|
9774
|
-
...field,
|
|
9775
|
-
tabs
|
|
9776
|
-
});
|
|
9777
|
-
continue;
|
|
9778
|
-
}
|
|
9779
|
-
if ("perNode" in field && field.perNode === true) continue;
|
|
9780
|
-
kept.push(field);
|
|
9781
|
-
}
|
|
9782
|
-
return kept;
|
|
9783
|
-
}
|
|
9784
9677
|
/** The keys of the value-holding fields, recursing into layout containers. */
|
|
9785
9678
|
function collectValueFieldKeys(fields) {
|
|
9786
9679
|
const collected = [];
|
|
@@ -9813,21 +9706,6 @@ function collectFieldKeys(fields) {
|
|
|
9813
9706
|
}
|
|
9814
9707
|
return collected;
|
|
9815
9708
|
}
|
|
9816
|
-
function collectPerNodeFieldKeys(fields) {
|
|
9817
|
-
const collected = [];
|
|
9818
|
-
for (const field of fields) {
|
|
9819
|
-
if (field.type === "group") {
|
|
9820
|
-
collected.push(...collectPerNodeFieldKeys(field.fields));
|
|
9821
|
-
continue;
|
|
9822
|
-
}
|
|
9823
|
-
if (field.type === "sub-tabs") {
|
|
9824
|
-
for (const tab of field.tabs) collected.push(...collectPerNodeFieldKeys(tab.fields));
|
|
9825
|
-
continue;
|
|
9826
|
-
}
|
|
9827
|
-
if ("perNode" in field && field.perNode === true) collected.push(field.key);
|
|
9828
|
-
}
|
|
9829
|
-
return collected;
|
|
9830
|
-
}
|
|
9831
9709
|
/**
|
|
9832
9710
|
* Normalize an `ICamstackAddon.initialize()` return value into the
|
|
9833
9711
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
@@ -12591,13 +12469,25 @@ Object.freeze({
|
|
|
12591
12469
|
"path": "temperature",
|
|
12592
12470
|
"valueType": "number"
|
|
12593
12471
|
}],
|
|
12594
|
-
"timed-run": [
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12472
|
+
"timed-run": [
|
|
12473
|
+
{
|
|
12474
|
+
"path": "activeUntil",
|
|
12475
|
+
"valueType": "number"
|
|
12476
|
+
},
|
|
12477
|
+
{
|
|
12478
|
+
"path": "requestedBy",
|
|
12479
|
+
"valueType": "string"
|
|
12480
|
+
},
|
|
12481
|
+
{
|
|
12482
|
+
"path": "quickRun.duration",
|
|
12483
|
+
"valueType": "number"
|
|
12484
|
+
},
|
|
12485
|
+
{
|
|
12486
|
+
"path": "quickRun.unit",
|
|
12487
|
+
"valueType": "enum",
|
|
12488
|
+
"enumValues": ["s", "min"]
|
|
12489
|
+
}
|
|
12490
|
+
],
|
|
12601
12491
|
"update": [
|
|
12602
12492
|
{
|
|
12603
12493
|
"path": "currentVersion",
|
|
@@ -12821,7 +12711,7 @@ object({
|
|
|
12821
12711
|
params: record(string(), union([string(), number()])).optional()
|
|
12822
12712
|
});
|
|
12823
12713
|
//#endregion
|
|
12824
|
-
//#region ../types/dist/composition-
|
|
12714
|
+
//#region ../types/dist/composition-Bx0JvKUU.mjs
|
|
12825
12715
|
/**
|
|
12826
12716
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
12827
12717
|
*
|
|
@@ -13983,6 +13873,387 @@ var NodeColorIdSchema = _enum([
|
|
|
13983
13873
|
"node-h"
|
|
13984
13874
|
]);
|
|
13985
13875
|
//#endregion
|
|
13876
|
+
//#region ../types/dist/convert-BAzH15HU.mjs
|
|
13877
|
+
/**
|
|
13878
|
+
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
13879
|
+
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
13880
|
+
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
13881
|
+
* decimals). K derives from `°C = K − 273.15`.
|
|
13882
|
+
*/
|
|
13883
|
+
var UNIT_TABLE = {
|
|
13884
|
+
"°C": {
|
|
13885
|
+
dimension: "temperature",
|
|
13886
|
+
factor: 1,
|
|
13887
|
+
offset: 0
|
|
13888
|
+
},
|
|
13889
|
+
"°F": {
|
|
13890
|
+
dimension: "temperature",
|
|
13891
|
+
factor: 5 / 9,
|
|
13892
|
+
offset: -160 / 9
|
|
13893
|
+
},
|
|
13894
|
+
K: {
|
|
13895
|
+
dimension: "temperature",
|
|
13896
|
+
factor: 1,
|
|
13897
|
+
offset: -273.15
|
|
13898
|
+
},
|
|
13899
|
+
hPa: {
|
|
13900
|
+
dimension: "pressure",
|
|
13901
|
+
factor: 1,
|
|
13902
|
+
offset: 0
|
|
13903
|
+
},
|
|
13904
|
+
kPa: {
|
|
13905
|
+
dimension: "pressure",
|
|
13906
|
+
factor: 10,
|
|
13907
|
+
offset: 0
|
|
13908
|
+
},
|
|
13909
|
+
Pa: {
|
|
13910
|
+
dimension: "pressure",
|
|
13911
|
+
factor: .01,
|
|
13912
|
+
offset: 0
|
|
13913
|
+
},
|
|
13914
|
+
mbar: {
|
|
13915
|
+
dimension: "pressure",
|
|
13916
|
+
factor: 1,
|
|
13917
|
+
offset: 0
|
|
13918
|
+
},
|
|
13919
|
+
bar: {
|
|
13920
|
+
dimension: "pressure",
|
|
13921
|
+
factor: 1e3,
|
|
13922
|
+
offset: 0
|
|
13923
|
+
},
|
|
13924
|
+
inHg: {
|
|
13925
|
+
dimension: "pressure",
|
|
13926
|
+
factor: 33.8639,
|
|
13927
|
+
offset: 0
|
|
13928
|
+
},
|
|
13929
|
+
mmHg: {
|
|
13930
|
+
dimension: "pressure",
|
|
13931
|
+
factor: 1.33322,
|
|
13932
|
+
offset: 0
|
|
13933
|
+
},
|
|
13934
|
+
psi: {
|
|
13935
|
+
dimension: "pressure",
|
|
13936
|
+
factor: 68.9476,
|
|
13937
|
+
offset: 0
|
|
13938
|
+
},
|
|
13939
|
+
"m/s": {
|
|
13940
|
+
dimension: "speed",
|
|
13941
|
+
factor: 1,
|
|
13942
|
+
offset: 0
|
|
13943
|
+
},
|
|
13944
|
+
"km/h": {
|
|
13945
|
+
dimension: "speed",
|
|
13946
|
+
factor: 1 / 3.6,
|
|
13947
|
+
offset: 0
|
|
13948
|
+
},
|
|
13949
|
+
mph: {
|
|
13950
|
+
dimension: "speed",
|
|
13951
|
+
factor: .44704,
|
|
13952
|
+
offset: 0
|
|
13953
|
+
},
|
|
13954
|
+
kn: {
|
|
13955
|
+
dimension: "speed",
|
|
13956
|
+
factor: .514444,
|
|
13957
|
+
offset: 0
|
|
13958
|
+
},
|
|
13959
|
+
"mm/h": {
|
|
13960
|
+
dimension: "precipitation-rate",
|
|
13961
|
+
factor: 1,
|
|
13962
|
+
offset: 0
|
|
13963
|
+
},
|
|
13964
|
+
"in/h": {
|
|
13965
|
+
dimension: "precipitation-rate",
|
|
13966
|
+
factor: 25.4,
|
|
13967
|
+
offset: 0
|
|
13968
|
+
},
|
|
13969
|
+
m: {
|
|
13970
|
+
dimension: "length",
|
|
13971
|
+
factor: 1,
|
|
13972
|
+
offset: 0
|
|
13973
|
+
},
|
|
13974
|
+
mm: {
|
|
13975
|
+
dimension: "length",
|
|
13976
|
+
factor: .001,
|
|
13977
|
+
offset: 0
|
|
13978
|
+
},
|
|
13979
|
+
cm: {
|
|
13980
|
+
dimension: "length",
|
|
13981
|
+
factor: .01,
|
|
13982
|
+
offset: 0
|
|
13983
|
+
},
|
|
13984
|
+
km: {
|
|
13985
|
+
dimension: "length",
|
|
13986
|
+
factor: 1e3,
|
|
13987
|
+
offset: 0
|
|
13988
|
+
},
|
|
13989
|
+
in: {
|
|
13990
|
+
dimension: "length",
|
|
13991
|
+
factor: .0254,
|
|
13992
|
+
offset: 0
|
|
13993
|
+
},
|
|
13994
|
+
ft: {
|
|
13995
|
+
dimension: "length",
|
|
13996
|
+
factor: .3048,
|
|
13997
|
+
offset: 0
|
|
13998
|
+
},
|
|
13999
|
+
mi: {
|
|
14000
|
+
dimension: "length",
|
|
14001
|
+
factor: 1609.344,
|
|
14002
|
+
offset: 0
|
|
14003
|
+
},
|
|
14004
|
+
"m²": {
|
|
14005
|
+
dimension: "area",
|
|
14006
|
+
factor: 1,
|
|
14007
|
+
offset: 0
|
|
14008
|
+
},
|
|
14009
|
+
lx: {
|
|
14010
|
+
dimension: "illuminance",
|
|
14011
|
+
factor: 1,
|
|
14012
|
+
offset: 0
|
|
14013
|
+
},
|
|
14014
|
+
"W/m²": {
|
|
14015
|
+
dimension: "irradiance",
|
|
14016
|
+
factor: 1,
|
|
14017
|
+
offset: 0
|
|
14018
|
+
},
|
|
14019
|
+
W: {
|
|
14020
|
+
dimension: "power",
|
|
14021
|
+
factor: 1,
|
|
14022
|
+
offset: 0
|
|
14023
|
+
},
|
|
14024
|
+
kW: {
|
|
14025
|
+
dimension: "power",
|
|
14026
|
+
factor: 1e3,
|
|
14027
|
+
offset: 0
|
|
14028
|
+
},
|
|
14029
|
+
VA: {
|
|
14030
|
+
dimension: "apparent-power",
|
|
14031
|
+
factor: 1,
|
|
14032
|
+
offset: 0
|
|
14033
|
+
},
|
|
14034
|
+
Wh: {
|
|
14035
|
+
dimension: "energy",
|
|
14036
|
+
factor: 1,
|
|
14037
|
+
offset: 0
|
|
14038
|
+
},
|
|
14039
|
+
kWh: {
|
|
14040
|
+
dimension: "energy",
|
|
14041
|
+
factor: 1e3,
|
|
14042
|
+
offset: 0
|
|
14043
|
+
},
|
|
14044
|
+
MWh: {
|
|
14045
|
+
dimension: "energy",
|
|
14046
|
+
factor: 1e6,
|
|
14047
|
+
offset: 0
|
|
14048
|
+
},
|
|
14049
|
+
V: {
|
|
14050
|
+
dimension: "voltage",
|
|
14051
|
+
factor: 1,
|
|
14052
|
+
offset: 0
|
|
14053
|
+
},
|
|
14054
|
+
mV: {
|
|
14055
|
+
dimension: "voltage",
|
|
14056
|
+
factor: .001,
|
|
14057
|
+
offset: 0
|
|
14058
|
+
},
|
|
14059
|
+
A: {
|
|
14060
|
+
dimension: "current",
|
|
14061
|
+
factor: 1,
|
|
14062
|
+
offset: 0
|
|
14063
|
+
},
|
|
14064
|
+
mA: {
|
|
14065
|
+
dimension: "current",
|
|
14066
|
+
factor: .001,
|
|
14067
|
+
offset: 0
|
|
14068
|
+
},
|
|
14069
|
+
ppm: {
|
|
14070
|
+
dimension: "concentration-volume",
|
|
14071
|
+
factor: 1,
|
|
14072
|
+
offset: 0
|
|
14073
|
+
},
|
|
14074
|
+
ppb: {
|
|
14075
|
+
dimension: "concentration-volume",
|
|
14076
|
+
factor: .001,
|
|
14077
|
+
offset: 0
|
|
14078
|
+
},
|
|
14079
|
+
"µg/m³": {
|
|
14080
|
+
dimension: "concentration-mass",
|
|
14081
|
+
factor: 1,
|
|
14082
|
+
offset: 0
|
|
14083
|
+
},
|
|
14084
|
+
"mg/m³": {
|
|
14085
|
+
dimension: "concentration-mass",
|
|
14086
|
+
factor: 1e3,
|
|
14087
|
+
offset: 0
|
|
14088
|
+
},
|
|
14089
|
+
kg: {
|
|
14090
|
+
dimension: "mass",
|
|
14091
|
+
factor: 1,
|
|
14092
|
+
offset: 0
|
|
14093
|
+
},
|
|
14094
|
+
g: {
|
|
14095
|
+
dimension: "mass",
|
|
14096
|
+
factor: .001,
|
|
14097
|
+
offset: 0
|
|
14098
|
+
},
|
|
14099
|
+
lb: {
|
|
14100
|
+
dimension: "mass",
|
|
14101
|
+
factor: .453592,
|
|
14102
|
+
offset: 0
|
|
14103
|
+
},
|
|
14104
|
+
oz: {
|
|
14105
|
+
dimension: "mass",
|
|
14106
|
+
factor: .0283495,
|
|
14107
|
+
offset: 0
|
|
14108
|
+
},
|
|
14109
|
+
"%": {
|
|
14110
|
+
dimension: "percentage",
|
|
14111
|
+
factor: 1,
|
|
14112
|
+
offset: 0
|
|
14113
|
+
},
|
|
14114
|
+
L: {
|
|
14115
|
+
dimension: "volume",
|
|
14116
|
+
factor: 1,
|
|
14117
|
+
offset: 0
|
|
14118
|
+
},
|
|
14119
|
+
mL: {
|
|
14120
|
+
dimension: "volume",
|
|
14121
|
+
factor: .001,
|
|
14122
|
+
offset: 0
|
|
14123
|
+
},
|
|
14124
|
+
gal: {
|
|
14125
|
+
dimension: "volume",
|
|
14126
|
+
factor: 3.785411784,
|
|
14127
|
+
offset: 0
|
|
14128
|
+
},
|
|
14129
|
+
s: {
|
|
14130
|
+
dimension: "duration",
|
|
14131
|
+
factor: 1,
|
|
14132
|
+
offset: 0
|
|
14133
|
+
},
|
|
14134
|
+
ms: {
|
|
14135
|
+
dimension: "duration",
|
|
14136
|
+
factor: .001,
|
|
14137
|
+
offset: 0
|
|
14138
|
+
},
|
|
14139
|
+
min: {
|
|
14140
|
+
dimension: "duration",
|
|
14141
|
+
factor: 60,
|
|
14142
|
+
offset: 0
|
|
14143
|
+
},
|
|
14144
|
+
h: {
|
|
14145
|
+
dimension: "duration",
|
|
14146
|
+
factor: 3600,
|
|
14147
|
+
offset: 0
|
|
14148
|
+
},
|
|
14149
|
+
d: {
|
|
14150
|
+
dimension: "duration",
|
|
14151
|
+
factor: 86400,
|
|
14152
|
+
offset: 0
|
|
14153
|
+
},
|
|
14154
|
+
B: {
|
|
14155
|
+
dimension: "information",
|
|
14156
|
+
factor: 1,
|
|
14157
|
+
offset: 0
|
|
14158
|
+
},
|
|
14159
|
+
KiB: {
|
|
14160
|
+
dimension: "information",
|
|
14161
|
+
factor: 1024,
|
|
14162
|
+
offset: 0
|
|
14163
|
+
},
|
|
14164
|
+
MiB: {
|
|
14165
|
+
dimension: "information",
|
|
14166
|
+
factor: 1024 ** 2,
|
|
14167
|
+
offset: 0
|
|
14168
|
+
},
|
|
14169
|
+
GiB: {
|
|
14170
|
+
dimension: "information",
|
|
14171
|
+
factor: 1024 ** 3,
|
|
14172
|
+
offset: 0
|
|
14173
|
+
},
|
|
14174
|
+
TiB: {
|
|
14175
|
+
dimension: "information",
|
|
14176
|
+
factor: 1024 ** 4,
|
|
14177
|
+
offset: 0
|
|
14178
|
+
},
|
|
14179
|
+
kB: {
|
|
14180
|
+
dimension: "information",
|
|
14181
|
+
factor: 1e3,
|
|
14182
|
+
offset: 0
|
|
14183
|
+
},
|
|
14184
|
+
MB: {
|
|
14185
|
+
dimension: "information",
|
|
14186
|
+
factor: 1e6,
|
|
14187
|
+
offset: 0
|
|
14188
|
+
},
|
|
14189
|
+
GB: {
|
|
14190
|
+
dimension: "information",
|
|
14191
|
+
factor: 1e9,
|
|
14192
|
+
offset: 0
|
|
14193
|
+
},
|
|
14194
|
+
"°": {
|
|
14195
|
+
dimension: "angle",
|
|
14196
|
+
factor: 1,
|
|
14197
|
+
offset: 0
|
|
14198
|
+
},
|
|
14199
|
+
dBFS: {
|
|
14200
|
+
dimension: "sound-level",
|
|
14201
|
+
factor: 1,
|
|
14202
|
+
offset: 0
|
|
14203
|
+
},
|
|
14204
|
+
dBm: {
|
|
14205
|
+
dimension: "signal-level",
|
|
14206
|
+
factor: 1,
|
|
14207
|
+
offset: 0
|
|
14208
|
+
},
|
|
14209
|
+
mired: {
|
|
14210
|
+
dimension: "colour-temperature",
|
|
14211
|
+
factor: 1,
|
|
14212
|
+
offset: 0
|
|
14213
|
+
},
|
|
14214
|
+
kbps: {
|
|
14215
|
+
dimension: "bitrate",
|
|
14216
|
+
factor: 1,
|
|
14217
|
+
offset: 0
|
|
14218
|
+
},
|
|
14219
|
+
Mbps: {
|
|
14220
|
+
dimension: "bitrate",
|
|
14221
|
+
factor: 1e3,
|
|
14222
|
+
offset: 0
|
|
14223
|
+
},
|
|
14224
|
+
fps: {
|
|
14225
|
+
dimension: "rate",
|
|
14226
|
+
factor: 1,
|
|
14227
|
+
offset: 0
|
|
14228
|
+
}
|
|
14229
|
+
};
|
|
14230
|
+
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
14231
|
+
function specFor(unit) {
|
|
14232
|
+
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
14233
|
+
}
|
|
14234
|
+
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
14235
|
+
function toCanonical(value, spec) {
|
|
14236
|
+
return value * spec.factor + spec.offset;
|
|
14237
|
+
}
|
|
14238
|
+
/** Canonical-unit value → the unit described by `spec`. */
|
|
14239
|
+
function fromCanonical(canonical, spec) {
|
|
14240
|
+
return (canonical - spec.offset) / spec.factor;
|
|
14241
|
+
}
|
|
14242
|
+
/**
|
|
14243
|
+
* Graceful variant for the render path: returns the converted value, or
|
|
14244
|
+
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
14245
|
+
* Never throws — a render caller falls back to the raw value + source unit.
|
|
14246
|
+
*/
|
|
14247
|
+
function tryConvertUnit(value, from, to) {
|
|
14248
|
+
if (from === to) return value;
|
|
14249
|
+
const fromSpec = specFor(from);
|
|
14250
|
+
if (!fromSpec) return void 0;
|
|
14251
|
+
const toSpec = specFor(to);
|
|
14252
|
+
if (!toSpec) return void 0;
|
|
14253
|
+
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
14254
|
+
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
14255
|
+
}
|
|
14256
|
+
//#endregion
|
|
13986
14257
|
//#region ../types/dist/index.mjs
|
|
13987
14258
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
13988
14259
|
var SMTP_INBOUND_DEFAULT_DOMAIN = "camstack.local";
|
|
@@ -43144,6 +43415,7 @@ var ExpressionBindingSourceSchema = union([
|
|
|
43144
43415
|
object({
|
|
43145
43416
|
kind: literal("global"),
|
|
43146
43417
|
sourceStableId: string(),
|
|
43418
|
+
addonId: string().optional(),
|
|
43147
43419
|
cap: string(),
|
|
43148
43420
|
fieldPath: string()
|
|
43149
43421
|
})
|
|
@@ -43210,385 +43482,6 @@ var SourceInfoSchema = object({
|
|
|
43210
43482
|
raw: record(string(), unknown()).optional()
|
|
43211
43483
|
});
|
|
43212
43484
|
/**
|
|
43213
|
-
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
43214
|
-
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
43215
|
-
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
43216
|
-
* decimals). K derives from `°C = K − 273.15`.
|
|
43217
|
-
*/
|
|
43218
|
-
var UNIT_TABLE = {
|
|
43219
|
-
"°C": {
|
|
43220
|
-
dimension: "temperature",
|
|
43221
|
-
factor: 1,
|
|
43222
|
-
offset: 0
|
|
43223
|
-
},
|
|
43224
|
-
"°F": {
|
|
43225
|
-
dimension: "temperature",
|
|
43226
|
-
factor: 5 / 9,
|
|
43227
|
-
offset: -160 / 9
|
|
43228
|
-
},
|
|
43229
|
-
K: {
|
|
43230
|
-
dimension: "temperature",
|
|
43231
|
-
factor: 1,
|
|
43232
|
-
offset: -273.15
|
|
43233
|
-
},
|
|
43234
|
-
hPa: {
|
|
43235
|
-
dimension: "pressure",
|
|
43236
|
-
factor: 1,
|
|
43237
|
-
offset: 0
|
|
43238
|
-
},
|
|
43239
|
-
kPa: {
|
|
43240
|
-
dimension: "pressure",
|
|
43241
|
-
factor: 10,
|
|
43242
|
-
offset: 0
|
|
43243
|
-
},
|
|
43244
|
-
Pa: {
|
|
43245
|
-
dimension: "pressure",
|
|
43246
|
-
factor: .01,
|
|
43247
|
-
offset: 0
|
|
43248
|
-
},
|
|
43249
|
-
mbar: {
|
|
43250
|
-
dimension: "pressure",
|
|
43251
|
-
factor: 1,
|
|
43252
|
-
offset: 0
|
|
43253
|
-
},
|
|
43254
|
-
bar: {
|
|
43255
|
-
dimension: "pressure",
|
|
43256
|
-
factor: 1e3,
|
|
43257
|
-
offset: 0
|
|
43258
|
-
},
|
|
43259
|
-
inHg: {
|
|
43260
|
-
dimension: "pressure",
|
|
43261
|
-
factor: 33.8639,
|
|
43262
|
-
offset: 0
|
|
43263
|
-
},
|
|
43264
|
-
mmHg: {
|
|
43265
|
-
dimension: "pressure",
|
|
43266
|
-
factor: 1.33322,
|
|
43267
|
-
offset: 0
|
|
43268
|
-
},
|
|
43269
|
-
psi: {
|
|
43270
|
-
dimension: "pressure",
|
|
43271
|
-
factor: 68.9476,
|
|
43272
|
-
offset: 0
|
|
43273
|
-
},
|
|
43274
|
-
"m/s": {
|
|
43275
|
-
dimension: "speed",
|
|
43276
|
-
factor: 1,
|
|
43277
|
-
offset: 0
|
|
43278
|
-
},
|
|
43279
|
-
"km/h": {
|
|
43280
|
-
dimension: "speed",
|
|
43281
|
-
factor: 1 / 3.6,
|
|
43282
|
-
offset: 0
|
|
43283
|
-
},
|
|
43284
|
-
mph: {
|
|
43285
|
-
dimension: "speed",
|
|
43286
|
-
factor: .44704,
|
|
43287
|
-
offset: 0
|
|
43288
|
-
},
|
|
43289
|
-
kn: {
|
|
43290
|
-
dimension: "speed",
|
|
43291
|
-
factor: .514444,
|
|
43292
|
-
offset: 0
|
|
43293
|
-
},
|
|
43294
|
-
"mm/h": {
|
|
43295
|
-
dimension: "precipitation-rate",
|
|
43296
|
-
factor: 1,
|
|
43297
|
-
offset: 0
|
|
43298
|
-
},
|
|
43299
|
-
"in/h": {
|
|
43300
|
-
dimension: "precipitation-rate",
|
|
43301
|
-
factor: 25.4,
|
|
43302
|
-
offset: 0
|
|
43303
|
-
},
|
|
43304
|
-
m: {
|
|
43305
|
-
dimension: "length",
|
|
43306
|
-
factor: 1,
|
|
43307
|
-
offset: 0
|
|
43308
|
-
},
|
|
43309
|
-
mm: {
|
|
43310
|
-
dimension: "length",
|
|
43311
|
-
factor: .001,
|
|
43312
|
-
offset: 0
|
|
43313
|
-
},
|
|
43314
|
-
cm: {
|
|
43315
|
-
dimension: "length",
|
|
43316
|
-
factor: .01,
|
|
43317
|
-
offset: 0
|
|
43318
|
-
},
|
|
43319
|
-
km: {
|
|
43320
|
-
dimension: "length",
|
|
43321
|
-
factor: 1e3,
|
|
43322
|
-
offset: 0
|
|
43323
|
-
},
|
|
43324
|
-
in: {
|
|
43325
|
-
dimension: "length",
|
|
43326
|
-
factor: .0254,
|
|
43327
|
-
offset: 0
|
|
43328
|
-
},
|
|
43329
|
-
ft: {
|
|
43330
|
-
dimension: "length",
|
|
43331
|
-
factor: .3048,
|
|
43332
|
-
offset: 0
|
|
43333
|
-
},
|
|
43334
|
-
mi: {
|
|
43335
|
-
dimension: "length",
|
|
43336
|
-
factor: 1609.344,
|
|
43337
|
-
offset: 0
|
|
43338
|
-
},
|
|
43339
|
-
"m²": {
|
|
43340
|
-
dimension: "area",
|
|
43341
|
-
factor: 1,
|
|
43342
|
-
offset: 0
|
|
43343
|
-
},
|
|
43344
|
-
lx: {
|
|
43345
|
-
dimension: "illuminance",
|
|
43346
|
-
factor: 1,
|
|
43347
|
-
offset: 0
|
|
43348
|
-
},
|
|
43349
|
-
"W/m²": {
|
|
43350
|
-
dimension: "irradiance",
|
|
43351
|
-
factor: 1,
|
|
43352
|
-
offset: 0
|
|
43353
|
-
},
|
|
43354
|
-
W: {
|
|
43355
|
-
dimension: "power",
|
|
43356
|
-
factor: 1,
|
|
43357
|
-
offset: 0
|
|
43358
|
-
},
|
|
43359
|
-
kW: {
|
|
43360
|
-
dimension: "power",
|
|
43361
|
-
factor: 1e3,
|
|
43362
|
-
offset: 0
|
|
43363
|
-
},
|
|
43364
|
-
VA: {
|
|
43365
|
-
dimension: "apparent-power",
|
|
43366
|
-
factor: 1,
|
|
43367
|
-
offset: 0
|
|
43368
|
-
},
|
|
43369
|
-
Wh: {
|
|
43370
|
-
dimension: "energy",
|
|
43371
|
-
factor: 1,
|
|
43372
|
-
offset: 0
|
|
43373
|
-
},
|
|
43374
|
-
kWh: {
|
|
43375
|
-
dimension: "energy",
|
|
43376
|
-
factor: 1e3,
|
|
43377
|
-
offset: 0
|
|
43378
|
-
},
|
|
43379
|
-
MWh: {
|
|
43380
|
-
dimension: "energy",
|
|
43381
|
-
factor: 1e6,
|
|
43382
|
-
offset: 0
|
|
43383
|
-
},
|
|
43384
|
-
V: {
|
|
43385
|
-
dimension: "voltage",
|
|
43386
|
-
factor: 1,
|
|
43387
|
-
offset: 0
|
|
43388
|
-
},
|
|
43389
|
-
mV: {
|
|
43390
|
-
dimension: "voltage",
|
|
43391
|
-
factor: .001,
|
|
43392
|
-
offset: 0
|
|
43393
|
-
},
|
|
43394
|
-
A: {
|
|
43395
|
-
dimension: "current",
|
|
43396
|
-
factor: 1,
|
|
43397
|
-
offset: 0
|
|
43398
|
-
},
|
|
43399
|
-
mA: {
|
|
43400
|
-
dimension: "current",
|
|
43401
|
-
factor: .001,
|
|
43402
|
-
offset: 0
|
|
43403
|
-
},
|
|
43404
|
-
ppm: {
|
|
43405
|
-
dimension: "concentration-volume",
|
|
43406
|
-
factor: 1,
|
|
43407
|
-
offset: 0
|
|
43408
|
-
},
|
|
43409
|
-
ppb: {
|
|
43410
|
-
dimension: "concentration-volume",
|
|
43411
|
-
factor: .001,
|
|
43412
|
-
offset: 0
|
|
43413
|
-
},
|
|
43414
|
-
"µg/m³": {
|
|
43415
|
-
dimension: "concentration-mass",
|
|
43416
|
-
factor: 1,
|
|
43417
|
-
offset: 0
|
|
43418
|
-
},
|
|
43419
|
-
"mg/m³": {
|
|
43420
|
-
dimension: "concentration-mass",
|
|
43421
|
-
factor: 1e3,
|
|
43422
|
-
offset: 0
|
|
43423
|
-
},
|
|
43424
|
-
kg: {
|
|
43425
|
-
dimension: "mass",
|
|
43426
|
-
factor: 1,
|
|
43427
|
-
offset: 0
|
|
43428
|
-
},
|
|
43429
|
-
g: {
|
|
43430
|
-
dimension: "mass",
|
|
43431
|
-
factor: .001,
|
|
43432
|
-
offset: 0
|
|
43433
|
-
},
|
|
43434
|
-
lb: {
|
|
43435
|
-
dimension: "mass",
|
|
43436
|
-
factor: .453592,
|
|
43437
|
-
offset: 0
|
|
43438
|
-
},
|
|
43439
|
-
oz: {
|
|
43440
|
-
dimension: "mass",
|
|
43441
|
-
factor: .0283495,
|
|
43442
|
-
offset: 0
|
|
43443
|
-
},
|
|
43444
|
-
"%": {
|
|
43445
|
-
dimension: "percentage",
|
|
43446
|
-
factor: 1,
|
|
43447
|
-
offset: 0
|
|
43448
|
-
},
|
|
43449
|
-
L: {
|
|
43450
|
-
dimension: "volume",
|
|
43451
|
-
factor: 1,
|
|
43452
|
-
offset: 0
|
|
43453
|
-
},
|
|
43454
|
-
mL: {
|
|
43455
|
-
dimension: "volume",
|
|
43456
|
-
factor: .001,
|
|
43457
|
-
offset: 0
|
|
43458
|
-
},
|
|
43459
|
-
gal: {
|
|
43460
|
-
dimension: "volume",
|
|
43461
|
-
factor: 3.785411784,
|
|
43462
|
-
offset: 0
|
|
43463
|
-
},
|
|
43464
|
-
s: {
|
|
43465
|
-
dimension: "duration",
|
|
43466
|
-
factor: 1,
|
|
43467
|
-
offset: 0
|
|
43468
|
-
},
|
|
43469
|
-
ms: {
|
|
43470
|
-
dimension: "duration",
|
|
43471
|
-
factor: .001,
|
|
43472
|
-
offset: 0
|
|
43473
|
-
},
|
|
43474
|
-
min: {
|
|
43475
|
-
dimension: "duration",
|
|
43476
|
-
factor: 60,
|
|
43477
|
-
offset: 0
|
|
43478
|
-
},
|
|
43479
|
-
h: {
|
|
43480
|
-
dimension: "duration",
|
|
43481
|
-
factor: 3600,
|
|
43482
|
-
offset: 0
|
|
43483
|
-
},
|
|
43484
|
-
d: {
|
|
43485
|
-
dimension: "duration",
|
|
43486
|
-
factor: 86400,
|
|
43487
|
-
offset: 0
|
|
43488
|
-
},
|
|
43489
|
-
B: {
|
|
43490
|
-
dimension: "information",
|
|
43491
|
-
factor: 1,
|
|
43492
|
-
offset: 0
|
|
43493
|
-
},
|
|
43494
|
-
KiB: {
|
|
43495
|
-
dimension: "information",
|
|
43496
|
-
factor: 1024,
|
|
43497
|
-
offset: 0
|
|
43498
|
-
},
|
|
43499
|
-
MiB: {
|
|
43500
|
-
dimension: "information",
|
|
43501
|
-
factor: 1024 ** 2,
|
|
43502
|
-
offset: 0
|
|
43503
|
-
},
|
|
43504
|
-
GiB: {
|
|
43505
|
-
dimension: "information",
|
|
43506
|
-
factor: 1024 ** 3,
|
|
43507
|
-
offset: 0
|
|
43508
|
-
},
|
|
43509
|
-
TiB: {
|
|
43510
|
-
dimension: "information",
|
|
43511
|
-
factor: 1024 ** 4,
|
|
43512
|
-
offset: 0
|
|
43513
|
-
},
|
|
43514
|
-
kB: {
|
|
43515
|
-
dimension: "information",
|
|
43516
|
-
factor: 1e3,
|
|
43517
|
-
offset: 0
|
|
43518
|
-
},
|
|
43519
|
-
MB: {
|
|
43520
|
-
dimension: "information",
|
|
43521
|
-
factor: 1e6,
|
|
43522
|
-
offset: 0
|
|
43523
|
-
},
|
|
43524
|
-
GB: {
|
|
43525
|
-
dimension: "information",
|
|
43526
|
-
factor: 1e9,
|
|
43527
|
-
offset: 0
|
|
43528
|
-
},
|
|
43529
|
-
"°": {
|
|
43530
|
-
dimension: "angle",
|
|
43531
|
-
factor: 1,
|
|
43532
|
-
offset: 0
|
|
43533
|
-
},
|
|
43534
|
-
dBFS: {
|
|
43535
|
-
dimension: "sound-level",
|
|
43536
|
-
factor: 1,
|
|
43537
|
-
offset: 0
|
|
43538
|
-
},
|
|
43539
|
-
dBm: {
|
|
43540
|
-
dimension: "signal-level",
|
|
43541
|
-
factor: 1,
|
|
43542
|
-
offset: 0
|
|
43543
|
-
},
|
|
43544
|
-
mired: {
|
|
43545
|
-
dimension: "colour-temperature",
|
|
43546
|
-
factor: 1,
|
|
43547
|
-
offset: 0
|
|
43548
|
-
},
|
|
43549
|
-
kbps: {
|
|
43550
|
-
dimension: "bitrate",
|
|
43551
|
-
factor: 1,
|
|
43552
|
-
offset: 0
|
|
43553
|
-
},
|
|
43554
|
-
Mbps: {
|
|
43555
|
-
dimension: "bitrate",
|
|
43556
|
-
factor: 1e3,
|
|
43557
|
-
offset: 0
|
|
43558
|
-
},
|
|
43559
|
-
fps: {
|
|
43560
|
-
dimension: "rate",
|
|
43561
|
-
factor: 1,
|
|
43562
|
-
offset: 0
|
|
43563
|
-
}
|
|
43564
|
-
};
|
|
43565
|
-
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
43566
|
-
function specFor(unit) {
|
|
43567
|
-
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
43568
|
-
}
|
|
43569
|
-
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
43570
|
-
function toCanonical(value, spec) {
|
|
43571
|
-
return value * spec.factor + spec.offset;
|
|
43572
|
-
}
|
|
43573
|
-
/** Canonical-unit value → the unit described by `spec`. */
|
|
43574
|
-
function fromCanonical(canonical, spec) {
|
|
43575
|
-
return (canonical - spec.offset) / spec.factor;
|
|
43576
|
-
}
|
|
43577
|
-
/**
|
|
43578
|
-
* Graceful variant for the render path: returns the converted value, or
|
|
43579
|
-
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
43580
|
-
* Never throws — a render caller falls back to the raw value + source unit.
|
|
43581
|
-
*/
|
|
43582
|
-
function tryConvertUnit(value, from, to) {
|
|
43583
|
-
if (from === to) return value;
|
|
43584
|
-
const fromSpec = specFor(from);
|
|
43585
|
-
if (!fromSpec) return void 0;
|
|
43586
|
-
const toSpec = specFor(to);
|
|
43587
|
-
if (!toSpec) return void 0;
|
|
43588
|
-
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
43589
|
-
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
43590
|
-
}
|
|
43591
|
-
/**
|
|
43592
43485
|
* A number a person types for a physical quantity — the input side of the
|
|
43593
43486
|
* value + unit contract (D972).
|
|
43594
43487
|
*
|
|
@@ -45369,26 +45262,23 @@ var SettingsSchemaWithValuesSchema = object({
|
|
|
45369
45262
|
var SettingsPatchSchema = record(string(), unknown());
|
|
45370
45263
|
/** The scope of a scoped-settings call (D986): where the capability declared the values. */
|
|
45371
45264
|
var ScopedSettingsScopeSchema = _enum(SCOPED_SETTINGS_SCOPES);
|
|
45265
|
+
/** One scoped schema an addon serves: its capability, scope and section ids. */
|
|
45266
|
+
var ScopedSettingsDeclarationSchema = object({
|
|
45267
|
+
cap: string(),
|
|
45268
|
+
scope: ScopedSettingsScopeSchema,
|
|
45269
|
+
sectionIds: array(string())
|
|
45270
|
+
});
|
|
45372
45271
|
/** Standard success response for update operations. */
|
|
45373
45272
|
var SettingsUpdateResultSchema = object({ success: literal(true) });
|
|
45374
45273
|
method(object({
|
|
45375
|
-
addonId: string(),
|
|
45376
|
-
nodeId: string().optional(),
|
|
45377
|
-
overlay: record(string(), unknown()).optional(),
|
|
45378
|
-
cap: string().optional()
|
|
45379
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45380
|
-
addonId: string(),
|
|
45381
|
-
nodeId: string().optional(),
|
|
45382
|
-
patch: SettingsPatchSchema
|
|
45383
|
-
}), SettingsUpdateResultSchema, {
|
|
45384
|
-
kind: "mutation",
|
|
45385
|
-
auth: "admin"
|
|
45386
|
-
}), method(object({
|
|
45387
45274
|
addonId: string(),
|
|
45388
45275
|
cap: string(),
|
|
45389
45276
|
scope: ScopedSettingsScopeSchema,
|
|
45390
45277
|
nodeId: string().optional()
|
|
45391
45278
|
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45279
|
+
addonId: string(),
|
|
45280
|
+
nodeId: string().optional()
|
|
45281
|
+
}), array(ScopedSettingsDeclarationSchema).nullable()), method(object({
|
|
45392
45282
|
addonId: string(),
|
|
45393
45283
|
cap: string(),
|
|
45394
45284
|
scope: ScopedSettingsScopeSchema,
|
|
@@ -45403,9 +45293,6 @@ method(object({
|
|
|
45403
45293
|
scope: ScopedSettingsScopeSchema,
|
|
45404
45294
|
nodeId: string().optional()
|
|
45405
45295
|
}), record(string(), unknown()).nullable()), method(object({
|
|
45406
|
-
addonId: string(),
|
|
45407
|
-
nodeId: string().optional()
|
|
45408
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45409
45296
|
addonId: string(),
|
|
45410
45297
|
nodeId: string().optional(),
|
|
45411
45298
|
instance: IntegrationInstanceRefSchema
|
|
@@ -46745,7 +46632,7 @@ var BackupDestinationInfoSchema = object({
|
|
|
46745
46632
|
id: string(),
|
|
46746
46633
|
/**
|
|
46747
46634
|
* Manifest id of the owning addon. The Settings button on the
|
|
46748
|
-
* destination card opens that addon's
|
|
46635
|
+
* destination card opens that addon's scoped settings panel.
|
|
46749
46636
|
*/
|
|
46750
46637
|
addonId: string(),
|
|
46751
46638
|
/** Operator-toggled enable flag from the destination-policy table. */
|
|
@@ -49340,7 +49227,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49340
49227
|
kind: "mutation",
|
|
49341
49228
|
auth: "protected"
|
|
49342
49229
|
});
|
|
49343
|
-
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;
|
|
49230
|
+
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;
|
|
49344
49231
|
var NUMBER = {
|
|
49345
49232
|
kind: "fixed",
|
|
49346
49233
|
result: ["number"]
|
|
@@ -51260,6 +51147,7 @@ var deviceExportCapability = {
|
|
|
51260
51147
|
})
|
|
51261
51148
|
}
|
|
51262
51149
|
};
|
|
51150
|
+
var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
51263
51151
|
/**
|
|
51264
51152
|
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
51265
51153
|
*
|
|
@@ -51653,6 +51541,12 @@ var DeviceInfoSchema = object({
|
|
|
51653
51541
|
addonId: string(),
|
|
51654
51542
|
type: _enum(DeviceType),
|
|
51655
51543
|
name: string(),
|
|
51544
|
+
/** The name a value template uses for this device (`{{ stufa_veranda.temperature }}`),
|
|
51545
|
+
* entity_id style. Generated once from the name at first registration, unique
|
|
51546
|
+
* cluster-wide, editable through `setAlias`, NOT changed by a rename (D1021).
|
|
51547
|
+
* Optional: a record produced by an older build omits it until the boot
|
|
51548
|
+
* backfill has run. */
|
|
51549
|
+
alias: DeviceAliasSchema.optional(),
|
|
51656
51550
|
/** Operator-organisational location label. `null` when unset. */
|
|
51657
51551
|
location: string().nullable(),
|
|
51658
51552
|
/** Soft-disabled flag. */
|
|
@@ -51972,6 +51866,25 @@ method(object({
|
|
|
51972
51866
|
}), _void(), {
|
|
51973
51867
|
kind: "mutation",
|
|
51974
51868
|
auth: "admin"
|
|
51869
|
+
}), method(object({
|
|
51870
|
+
deviceId: number(),
|
|
51871
|
+
alias: string()
|
|
51872
|
+
}), discriminatedUnion("ok", [object({
|
|
51873
|
+
ok: literal(true),
|
|
51874
|
+
alias: DeviceAliasSchema
|
|
51875
|
+
}), object({
|
|
51876
|
+
ok: literal(false),
|
|
51877
|
+
reason: _enum([
|
|
51878
|
+
"empty",
|
|
51879
|
+
"too-long",
|
|
51880
|
+
"grammar",
|
|
51881
|
+
"reserved",
|
|
51882
|
+
"taken"
|
|
51883
|
+
]),
|
|
51884
|
+
takenBy: number().optional()
|
|
51885
|
+
})]), {
|
|
51886
|
+
kind: "mutation",
|
|
51887
|
+
auth: "admin"
|
|
51975
51888
|
}), method(object({
|
|
51976
51889
|
deviceId: number(),
|
|
51977
51890
|
location: string().nullable()
|
|
@@ -55101,10 +55014,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
55101
55014
|
/** True when `testInstance` really probes the remote. */
|
|
55102
55015
|
canTest: boolean(),
|
|
55103
55016
|
/**
|
|
55104
|
-
* The kinds an instance can be of
|
|
55105
|
-
* Add flow asks which first and sends it as
|
|
55017
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
55018
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
55019
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
55106
55020
|
*/
|
|
55107
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
55021
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
55108
55022
|
/**
|
|
55109
55023
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
55110
55024
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -55140,8 +55054,8 @@ var IntegrationInstanceSchema = object({
|
|
|
55140
55054
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
55141
55055
|
*/
|
|
55142
55056
|
enabled: boolean().optional(),
|
|
55143
|
-
/** The kind of this instance
|
|
55144
|
-
kind: string().
|
|
55057
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
55058
|
+
kind: string().min(1),
|
|
55145
55059
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
55146
55060
|
formValues: record(string(), unknown()),
|
|
55147
55061
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -64711,6 +64625,11 @@ var NcScheduleSchema = object({
|
|
|
64711
64625
|
* as a STATE SUMMARY at the end of each window of `schedule`.
|
|
64712
64626
|
*/
|
|
64713
64627
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
64628
|
+
_enum([
|
|
64629
|
+
"activation",
|
|
64630
|
+
"deactivation",
|
|
64631
|
+
"schedule"
|
|
64632
|
+
]);
|
|
64714
64633
|
/**
|
|
64715
64634
|
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
64716
64635
|
* every section; `section` = one notification per section with something to
|
|
@@ -64727,11 +64646,26 @@ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
|
64727
64646
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
64728
64647
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
64729
64648
|
*/
|
|
64730
|
-
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [
|
|
64731
|
-
mode: literal("
|
|
64732
|
-
|
|
64733
|
-
|
|
64734
|
-
|
|
64649
|
+
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [
|
|
64650
|
+
object({ mode: literal("instant") }),
|
|
64651
|
+
object({
|
|
64652
|
+
mode: literal("summary"),
|
|
64653
|
+
schedule: NcScheduleSchema,
|
|
64654
|
+
split: NcStateSummarySplitSchema.optional()
|
|
64655
|
+
}),
|
|
64656
|
+
object({
|
|
64657
|
+
mode: literal("modes"),
|
|
64658
|
+
/** The bad edge, and every kind that has a single edge. */
|
|
64659
|
+
onActivation: boolean(),
|
|
64660
|
+
/** The recovery edges of the classes of the selected kinds (derived, never stored per kind). */
|
|
64661
|
+
onDeactivation: boolean(),
|
|
64662
|
+
/** A state summary at the end of each window; absent = no summary. */
|
|
64663
|
+
onSchedule: object({
|
|
64664
|
+
schedule: NcScheduleSchema,
|
|
64665
|
+
grouping: NcStateSummarySplitSchema
|
|
64666
|
+
}).optional()
|
|
64667
|
+
})
|
|
64668
|
+
]);
|
|
64735
64669
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
64736
64670
|
var NcPlateMatcherSchema = object({
|
|
64737
64671
|
/**
|
|
@@ -72074,6 +72008,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
72074
72008
|
});
|
|
72075
72009
|
});
|
|
72076
72010
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
72011
|
+
DeviceType.MediaPlayer;
|
|
72077
72012
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
72078
72013
|
object({
|
|
72079
72014
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -74507,7 +74442,7 @@ var TerminalInstanceInfoSchema = object({
|
|
|
74507
74442
|
/**
|
|
74508
74443
|
* False while the node the instance is bound to is not in the cluster
|
|
74509
74444
|
* topology (forgotten, renamed, re-paired). The instance is kept; the
|
|
74510
|
-
* operator re-points it
|
|
74445
|
+
* operator re-points it on the Terminal page.
|
|
74511
74446
|
*/
|
|
74512
74447
|
nodeInCluster: boolean(),
|
|
74513
74448
|
profileId: string(),
|
|
@@ -74545,41 +74480,7 @@ var TerminalOutputBatchSchema = object({
|
|
|
74545
74480
|
snapshot: string().optional(),
|
|
74546
74481
|
events: array(TerminalOutputEventSchema).readonly()
|
|
74547
74482
|
});
|
|
74548
|
-
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(
|
|
74549
|
-
targetNodeId: string().min(1),
|
|
74550
|
-
profileId: string().min(1),
|
|
74551
|
-
name: string().trim().min(1).max(160).optional(),
|
|
74552
|
-
executable: string().max(1024).optional(),
|
|
74553
|
-
args: array(string().max(2048)).max(64).optional(),
|
|
74554
|
-
cwd: string().max(1024).optional(),
|
|
74555
|
-
environment: array(string().max(4096)).max(64).optional(),
|
|
74556
|
-
profileSettings: ProfileSettingsBagSchema.optional()
|
|
74557
|
-
}), TerminalInstanceInfoSchema, {
|
|
74558
|
-
kind: "mutation",
|
|
74559
|
-
auth: "admin"
|
|
74560
|
-
}), method(object({
|
|
74561
|
-
instanceId: string().min(1),
|
|
74562
|
-
/** Re-point the instance to another node; the profile must exist there. */
|
|
74563
|
-
targetNodeId: string().min(1).max(256).optional(),
|
|
74564
|
-
name: string().trim().min(1).max(160).optional(),
|
|
74565
|
-
executable: string().max(1024).optional(),
|
|
74566
|
-
args: array(string().max(2048)).max(64).optional(),
|
|
74567
|
-
cwd: string().max(1024).optional(),
|
|
74568
|
-
environment: array(string().max(4096)).max(64).optional(),
|
|
74569
|
-
profileSettings: ProfileSettingsBagSchema.optional()
|
|
74570
|
-
}), TerminalInstanceInfoSchema, {
|
|
74571
|
-
kind: "mutation",
|
|
74572
|
-
auth: "admin"
|
|
74573
|
-
}), method(object({ instanceId: string().min(1) }), _void(), {
|
|
74574
|
-
kind: "mutation",
|
|
74575
|
-
auth: "admin"
|
|
74576
|
-
}), method(object({
|
|
74577
|
-
instanceId: string().min(1),
|
|
74578
|
-
enabled: boolean()
|
|
74579
|
-
}), TerminalInstanceInfoSchema, {
|
|
74580
|
-
kind: "mutation",
|
|
74581
|
-
auth: "admin"
|
|
74582
|
-
}), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
|
|
74483
|
+
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
|
|
74583
74484
|
stableId: string().min(1),
|
|
74584
74485
|
name: string().trim().min(1).max(160).optional()
|
|
74585
74486
|
}), TerminalInstanceInfoSchema, {
|
|
@@ -74648,6 +74549,11 @@ var TimedRunUnitSchema = _enum(["s", "min"]);
|
|
|
74648
74549
|
_enum(["switch", "pet-fountain"]);
|
|
74649
74550
|
DeviceType.Heater, DeviceType.PetFountain;
|
|
74650
74551
|
DeviceType.Heater, DeviceType.PetFountain;
|
|
74552
|
+
/** One duration, as the one-tap run asks for it. */
|
|
74553
|
+
var TimedRunQuickRunSchema = object({
|
|
74554
|
+
duration: number().positive().finite(),
|
|
74555
|
+
unit: TimedRunUnitSchema
|
|
74556
|
+
});
|
|
74651
74557
|
/** Why a request was not carried out. Typed, so a caller can say it in words. */
|
|
74652
74558
|
var TimedRunRefusalSchema = _enum([
|
|
74653
74559
|
"unsupported-device",
|
|
@@ -74668,9 +74574,30 @@ object({
|
|
|
74668
74574
|
activeUntil: number().nullable(),
|
|
74669
74575
|
/** Who asked for the run (a user id or an addon id); `null` when nothing is armed or it did not say. */
|
|
74670
74576
|
requestedBy: string().nullable(),
|
|
74577
|
+
/**
|
|
74578
|
+
* The one-tap run of THIS device: what a "Run" button on any surface starts. `null` when
|
|
74579
|
+
* the device is gone or its type has no timed run; a status from before this field
|
|
74580
|
+
* existed has none, and a surface falls back to the type's default.
|
|
74581
|
+
*/
|
|
74582
|
+
quickRun: TimedRunQuickRunSchema.nullable(),
|
|
74671
74583
|
lastFetchedAt: number()
|
|
74672
74584
|
});
|
|
74673
|
-
|
|
74585
|
+
/** What the settings form needs: the unit, the bounds and the type's default. */
|
|
74586
|
+
var TimedRunOptionsSchema = object({
|
|
74587
|
+
unit: TimedRunUnitSchema,
|
|
74588
|
+
/** The longest run, in `unit`. */
|
|
74589
|
+
maxDuration: number(),
|
|
74590
|
+
defaultDuration: number()
|
|
74591
|
+
});
|
|
74592
|
+
/** The one-tap run duration, in the type's unit; `null` returns to the type's default. */
|
|
74593
|
+
var TimedRunSettingsPatchSchema = object({ quickRunDuration: number().positive().finite().nullable().optional() });
|
|
74594
|
+
method(object({ deviceId: number().int() }), TimedRunOptionsSchema), method(object({
|
|
74595
|
+
deviceId: number().int(),
|
|
74596
|
+
settings: TimedRunSettingsPatchSchema
|
|
74597
|
+
}), _void(), {
|
|
74598
|
+
kind: "mutation",
|
|
74599
|
+
auth: "admin"
|
|
74600
|
+
}), method(object({
|
|
74674
74601
|
deviceId: number().int(),
|
|
74675
74602
|
duration: number().positive().finite(),
|
|
74676
74603
|
unit: TimedRunUnitSchema
|
|
@@ -77376,13 +77303,6 @@ Object.freeze({
|
|
|
77376
77303
|
access: "view",
|
|
77377
77304
|
role: "admin"
|
|
77378
77305
|
},
|
|
77379
|
-
"addonSettings.getGlobalSettings": {
|
|
77380
|
-
capName: "addon-settings",
|
|
77381
|
-
capScope: "system",
|
|
77382
|
-
addonId: null,
|
|
77383
|
-
access: "view",
|
|
77384
|
-
role: "admin"
|
|
77385
|
-
},
|
|
77386
77306
|
"addonSettings.getIntegrationFormSchema": {
|
|
77387
77307
|
capName: "addon-settings",
|
|
77388
77308
|
capScope: "system",
|
|
@@ -77390,14 +77310,14 @@ Object.freeze({
|
|
|
77390
77310
|
access: "view",
|
|
77391
77311
|
role: "admin"
|
|
77392
77312
|
},
|
|
77393
|
-
"addonSettings.
|
|
77313
|
+
"addonSettings.getScopedSettings": {
|
|
77394
77314
|
capName: "addon-settings",
|
|
77395
77315
|
capScope: "system",
|
|
77396
77316
|
addonId: null,
|
|
77397
77317
|
access: "view",
|
|
77398
77318
|
role: "admin"
|
|
77399
77319
|
},
|
|
77400
|
-
"addonSettings.
|
|
77320
|
+
"addonSettings.listScopedSettings": {
|
|
77401
77321
|
capName: "addon-settings",
|
|
77402
77322
|
capScope: "system",
|
|
77403
77323
|
addonId: null,
|
|
@@ -77425,13 +77345,6 @@ Object.freeze({
|
|
|
77425
77345
|
access: "create",
|
|
77426
77346
|
role: "admin"
|
|
77427
77347
|
},
|
|
77428
|
-
"addonSettings.updateGlobalSettings": {
|
|
77429
|
-
capName: "addon-settings",
|
|
77430
|
-
capScope: "system",
|
|
77431
|
-
addonId: null,
|
|
77432
|
-
access: "create",
|
|
77433
|
-
role: "admin"
|
|
77434
|
-
},
|
|
77435
77348
|
"addonSettings.updateScopedSettings": {
|
|
77436
77349
|
capName: "addon-settings",
|
|
77437
77350
|
capScope: "system",
|
|
@@ -79602,6 +79515,13 @@ Object.freeze({
|
|
|
79602
79515
|
access: "create",
|
|
79603
79516
|
role: "admin"
|
|
79604
79517
|
},
|
|
79518
|
+
"deviceManager.setAlias": {
|
|
79519
|
+
capName: "device-manager",
|
|
79520
|
+
capScope: "system",
|
|
79521
|
+
addonId: null,
|
|
79522
|
+
access: "create",
|
|
79523
|
+
role: "admin"
|
|
79524
|
+
},
|
|
79605
79525
|
"deviceManager.setChildLayout": {
|
|
79606
79526
|
capName: "device-manager",
|
|
79607
79527
|
capScope: "system",
|
|
@@ -86329,27 +86249,6 @@ Object.freeze({
|
|
|
86329
86249
|
access: "create",
|
|
86330
86250
|
role: "admin"
|
|
86331
86251
|
},
|
|
86332
|
-
"terminalSession.createInstance": {
|
|
86333
|
-
capName: "terminal-session",
|
|
86334
|
-
capScope: "system",
|
|
86335
|
-
addonId: null,
|
|
86336
|
-
access: "create",
|
|
86337
|
-
role: "admin"
|
|
86338
|
-
},
|
|
86339
|
-
"terminalSession.deleteInstance": {
|
|
86340
|
-
capName: "terminal-session",
|
|
86341
|
-
capScope: "system",
|
|
86342
|
-
addonId: null,
|
|
86343
|
-
access: "delete",
|
|
86344
|
-
role: "admin"
|
|
86345
|
-
},
|
|
86346
|
-
"terminalSession.listInstances": {
|
|
86347
|
-
capName: "terminal-session",
|
|
86348
|
-
capScope: "system",
|
|
86349
|
-
addonId: null,
|
|
86350
|
-
access: "view",
|
|
86351
|
-
role: "admin"
|
|
86352
|
-
},
|
|
86353
86252
|
"terminalSession.listLegacyCameras": {
|
|
86354
86253
|
capName: "terminal-session",
|
|
86355
86254
|
capScope: "system",
|
|
@@ -86392,20 +86291,6 @@ Object.freeze({
|
|
|
86392
86291
|
access: "create",
|
|
86393
86292
|
role: "admin"
|
|
86394
86293
|
},
|
|
86395
|
-
"terminalSession.setInstanceEnabled": {
|
|
86396
|
-
capName: "terminal-session",
|
|
86397
|
-
capScope: "system",
|
|
86398
|
-
addonId: null,
|
|
86399
|
-
access: "create",
|
|
86400
|
-
role: "admin"
|
|
86401
|
-
},
|
|
86402
|
-
"terminalSession.updateInstance": {
|
|
86403
|
-
capName: "terminal-session",
|
|
86404
|
-
capScope: "system",
|
|
86405
|
-
addonId: null,
|
|
86406
|
-
access: "create",
|
|
86407
|
-
role: "admin"
|
|
86408
|
-
},
|
|
86409
86294
|
"terminalSession.writeInput": {
|
|
86410
86295
|
capName: "terminal-session",
|
|
86411
86296
|
capScope: "system",
|
|
@@ -86420,6 +86305,13 @@ Object.freeze({
|
|
|
86420
86305
|
access: "create",
|
|
86421
86306
|
role: "viewer"
|
|
86422
86307
|
},
|
|
86308
|
+
"timedRun.getOptions": {
|
|
86309
|
+
capName: "timed-run",
|
|
86310
|
+
capScope: "device",
|
|
86311
|
+
addonId: null,
|
|
86312
|
+
access: "view",
|
|
86313
|
+
role: "viewer"
|
|
86314
|
+
},
|
|
86423
86315
|
"timedRun.getStatus": {
|
|
86424
86316
|
capName: "timed-run",
|
|
86425
86317
|
capScope: "device",
|
|
@@ -86434,6 +86326,13 @@ Object.freeze({
|
|
|
86434
86326
|
access: "create",
|
|
86435
86327
|
role: "viewer"
|
|
86436
86328
|
},
|
|
86329
|
+
"timedRun.setSettings": {
|
|
86330
|
+
capName: "timed-run",
|
|
86331
|
+
capScope: "device",
|
|
86332
|
+
addonId: null,
|
|
86333
|
+
access: "create",
|
|
86334
|
+
role: "admin"
|
|
86335
|
+
},
|
|
86437
86336
|
"toast.onToast": {
|
|
86438
86337
|
capName: "toast",
|
|
86439
86338
|
capScope: "system",
|
|
@@ -87389,6 +87288,7 @@ function applianceExport(ecosystem, deviceType) {
|
|
|
87389
87288
|
if (!isPlugApplianceType(deviceType)) return null;
|
|
87390
87289
|
return APPLIANCE_EXPORT[ecosystem][deviceType];
|
|
87391
87290
|
}
|
|
87291
|
+
string().min(1).max(4096);
|
|
87392
87292
|
Object.freeze({
|
|
87393
87293
|
"accessories.getStatus": [{
|
|
87394
87294
|
name: "deviceId",
|
|
@@ -88072,6 +87972,11 @@ Object.freeze({
|
|
|
88072
87972
|
form: "single",
|
|
88073
87973
|
optional: false
|
|
88074
87974
|
}],
|
|
87975
|
+
"deviceManager.setAlias": [{
|
|
87976
|
+
name: "deviceId",
|
|
87977
|
+
form: "single",
|
|
87978
|
+
optional: false
|
|
87979
|
+
}],
|
|
88075
87980
|
"deviceManager.setChildLayout": [{
|
|
88076
87981
|
name: "deviceId",
|
|
88077
87982
|
form: "single",
|
|
@@ -90136,6 +90041,11 @@ Object.freeze({
|
|
|
90136
90041
|
form: "single",
|
|
90137
90042
|
optional: false
|
|
90138
90043
|
}],
|
|
90044
|
+
"timedRun.getOptions": [{
|
|
90045
|
+
name: "deviceId",
|
|
90046
|
+
form: "single",
|
|
90047
|
+
optional: false
|
|
90048
|
+
}],
|
|
90139
90049
|
"timedRun.getStatus": [{
|
|
90140
90050
|
name: "deviceId",
|
|
90141
90051
|
form: "single",
|
|
@@ -90146,6 +90056,11 @@ Object.freeze({
|
|
|
90146
90056
|
form: "single",
|
|
90147
90057
|
optional: false
|
|
90148
90058
|
}],
|
|
90059
|
+
"timedRun.setSettings": [{
|
|
90060
|
+
name: "deviceId",
|
|
90061
|
+
form: "single",
|
|
90062
|
+
optional: false
|
|
90063
|
+
}],
|
|
90149
90064
|
"update.getStatus": [{
|
|
90150
90065
|
name: "deviceId",
|
|
90151
90066
|
form: "single",
|
|
@@ -91008,6 +90923,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
91008
90923
|
[...RULE_TEXT],
|
|
91009
90924
|
[...RULE_TEXT],
|
|
91010
90925
|
[...RULE_TEXT],
|
|
90926
|
+
[...RULE_TEXT],
|
|
91011
90927
|
[...RULE_BODY_ONLY],
|
|
91012
90928
|
[...RULE_TEXT],
|
|
91013
90929
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
@@ -105886,7 +105802,13 @@ var ExportAlexaAddon = class extends BaseAddon {
|
|
|
105886
105802
|
role: "services",
|
|
105887
105803
|
instanceMode: "multiple",
|
|
105888
105804
|
kind: "skills",
|
|
105889
|
-
canTest: false
|
|
105805
|
+
canTest: false,
|
|
105806
|
+
kinds: [{
|
|
105807
|
+
id: "skills",
|
|
105808
|
+
label: "Alexa skill",
|
|
105809
|
+
functionCap: "device-export",
|
|
105810
|
+
role: "services"
|
|
105811
|
+
}]
|
|
105890
105812
|
},
|
|
105891
105813
|
formSchema: (id) => this.skillForm(id),
|
|
105892
105814
|
initialBody: (name) => ({
|