@camstack/addon-admin-ui 1.2.613 → 1.2.614
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 +7 -0
- package/dist/assets/Addons-BJfkLwLO.js +5 -0
- package/dist/assets/{AdminPage-CQKqrawX.js → AdminPage-CFwzuQZq.js} +1 -1
- package/dist/assets/{AdminSectionedPage-DwIVrzMv.js → AdminSectionedPage-CLelstTQ.js} +1 -1
- package/dist/assets/{AiProfiles-BmANABOn.js → AiProfiles-BRWqnNZw.js} +2 -2
- package/dist/assets/{Authentication-C2KfbF99.js → Authentication-DnTfdKv0.js} +1 -1
- package/dist/assets/Build-Dcb2pWJ3.js +39 -0
- package/dist/assets/{Calendars-C3xWZQbZ.js → Calendars-e6-I6axd.js} +1 -1
- package/dist/assets/{CameraGrids-BBCAyFtL.js → CameraGrids-B50NWiaX.js} +1 -1
- package/dist/assets/{Cluster-Cnoc9etN.js → Cluster-D9cpYS50.js} +1 -1
- package/dist/assets/{CompositionBlockEditor-DnMSvA7o.js → CompositionBlockEditor-B6jhi4aP.js} +2 -2
- package/dist/assets/{CompositionEditorPage-72libfQe.js → CompositionEditorPage-BNCoZYmk.js} +1 -1
- package/dist/assets/{Data-BsFgvDDc.js → Data-BFkaT-HN.js} +2 -2
- package/dist/assets/DeviceDetail-CRQXzGOA.js +2 -0
- package/dist/assets/{DeviceDoActionFields-B5up4yrq.js → DeviceDoActionFields-Ck7XT6eT.js} +1 -1
- package/dist/assets/{Devices-D6FHREfO.js → Devices-BheZyJ-P.js} +1 -1
- package/dist/assets/{EditTemplateButton-DPX0WOqP.js → EditTemplateButton-DfaR1xaE.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-C-RZWQie.js → EmbedPlayerPage-BLyprrLe.js} +1 -1
- package/dist/assets/History-CMAcE6-w.js +1 -0
- package/dist/assets/Identity-BLgJKNk9.js +1 -0
- package/dist/assets/{InstancesTable-CmdXLlKr.js → InstancesTable-D2yWNUaZ.js} +1 -1
- package/dist/assets/IntegrationDetail-xN1LX9eo.js +1 -0
- package/dist/assets/{IntegrationHub-B9BtSaMu.js → IntegrationHub-C2lol4OL.js} +1 -1
- package/dist/assets/{Integrations-DFWCDQ4i.js → Integrations-DcQm6Aj2.js} +2 -2
- package/dist/assets/Integrations-g-niY6cn.js +1 -0
- package/dist/assets/{Library-0JeelG3C.js → Library-CyT_JYCP.js} +1 -1
- package/dist/assets/{Locations-idlnsvni.js → Locations-EQv-h_uV.js} +2 -2
- package/dist/assets/{Logs-9-5UvjLl.js → Logs-DnrXua_L.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-DlWfqm1o.js → MaskShapeCanvas-C6oPs8v9.js} +1 -1
- package/dist/assets/{MotionZonesSettings-Dsogfste.js → MotionZonesSettings-CQDdomka.js} +1 -1
- package/dist/assets/MyAccess-B_zQMOku.js +2 -0
- package/dist/assets/{Network-fU18SAUw.js → Network-6hbESyUy.js} +1 -1
- package/dist/assets/NodeAddonsSettingsPanel-cxbuP4ql.js +1 -0
- package/dist/assets/Notifications-NBpKEuZV.js +1 -0
- package/dist/assets/Pipeline-BvFoujQo.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-GEXILi7D.js → PrivacyMaskSettings-B393FBCM.js} +1 -1
- package/dist/assets/Recordings-D5nf9HZf.js +1 -0
- package/dist/assets/{ScanSubnetEditor-D8DeFgGd.js → ScanSubnetEditor-DDCY_Smw.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-DNjCVEYZ.js → SceneMonitorEditor-C4SLNj7I.js} +1 -1
- package/dist/assets/{SessionsList-hKb6VChZ.js → SessionsList-DpwHjjFs.js} +2 -2
- package/dist/assets/{Showroom-DpUejfiW.js → Showroom-CAKlBSf_.js} +1 -1
- package/dist/assets/{StorageLocationsTable-BTWBlLcF.js → StorageLocationsTable-CqPhkqVL.js} +1 -1
- package/dist/assets/System-tBNwbwSw.js +1 -0
- package/dist/assets/{Templates-sjHTHHlU.js → Templates-15bFODqK.js} +1 -1
- package/dist/assets/{Terminal-k7iMG1o7.js → Terminal-CKF5OWVY.js} +3 -3
- package/dist/assets/{TrainingProviders-CLlxgUAb.js → TrainingProviders-TZdkLaIZ.js} +1 -1
- package/dist/assets/{Viewer-CkbwufzS.js → Viewer-DFYKi9Wb.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DC97HC4f.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BP4WbWeD.js} +1 -1
- package/dist/assets/{addon-icons-context-C0tNs6xW.js → addon-icons-context-BATuZHTE.js} +1 -1
- package/dist/assets/{archive-q0nUTtLZ.js → archive-BoBKxtQ-.js} +1 -1
- package/dist/assets/{assignment-candidates-BSthRvB4.js → assignment-candidates-CxG90bWr.js} +1 -1
- package/dist/assets/{authed-media-BKgp95tT.js → authed-media-DnXUvZXJ.js} +1 -1
- package/dist/assets/{bell-off-CAtUxhvq.js → bell-off-BzoeiUVh.js} +1 -1
- package/dist/assets/{boxes-B_Eu0xYD.js → boxes-C6W6e-rK.js} +1 -1
- package/dist/assets/{calendar-clock-dlTytvhp.js → calendar-clock-pwKTUpB4.js} +1 -1
- package/dist/assets/circle-slash-B2xq8hu-.js +1 -0
- package/dist/assets/client-Dd2wRwgL.js +809 -0
- package/dist/assets/create-composition-D1HcJt41.js +2 -0
- package/dist/assets/crop-DdLH59eG.js +1 -0
- package/dist/assets/{database-zap-DSRFTyhx.js → database-zap-BixS9sEU.js} +1 -1
- package/dist/assets/{device-integration-icon-DJJlbRLB.js → device-integration-icon-B20WxJ4F.js} +1 -1
- package/dist/assets/device-picker-model-DVfMULL6.js +1 -0
- package/dist/assets/{dist-B4-yMFSq.js → dist-BGAl5BvD.js} +1 -1
- package/dist/assets/dist-Cs_aK-Rt.js +809 -0
- package/dist/assets/{eraser-CUhE6HSY.js → eraser-BgUWN8pT.js} +1 -1
- package/dist/assets/{file-up-CXWI0vro.js → file-up-DH881GrF.js} +1 -1
- package/dist/assets/{grip-vertical-BXgHxWsV.js → grip-vertical-_jfdera5.js} +1 -1
- package/dist/assets/{hard-drive-download-VeG-eE4r.js → hard-drive-download-BGhjVh74.js} +1 -1
- package/dist/assets/{hostInit-C1WJ96M_.js → hostInit-CO036Kz-.js} +1 -1
- package/dist/assets/{icons-VDLpNA-_.js → icons-BUi4kBRk.js} +1 -1
- package/dist/assets/{index-DbICehF2.js → index-BCsJtJDS.js} +3 -3
- package/dist/assets/{key-P9Z4k-0x.js → key-4O6zcP-D.js} +1 -1
- package/dist/assets/{key-square-DIbfpLYV.js → key-square-45doQ7Dg.js} +1 -1
- package/dist/assets/{layers-550lFq3G.js → layers-DaT1iT13.js} +1 -1
- package/dist/assets/{link-2-off-BdR1HwXS.js → link-2-off-DtNWZ97C.js} +1 -1
- package/dist/assets/{linked-devices-model-CgT70tWv.js → linked-devices-model-BxWV-O4v.js} +1 -1
- package/dist/assets/{list-ordered-DkmlIGQW.js → list-ordered-cIv3ExKb.js} +1 -1
- package/dist/assets/{memory-stick-C7a1pnZA.js → memory-stick-PjDavRx_.js} +1 -1
- package/dist/assets/{message-square-plus-BbSNBLpN.js → message-square-plus-DXescy-B.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-1031b78a.js → mf-entry-bootstrap-0-f77a2fc3.js} +2 -2
- package/dist/assets/{mic-off-BQRhIJ6Z.js → mic-off-BXQSysjl.js} +1 -1
- package/dist/assets/{monitor-off-Dnx5Uidp.js → monitor-off-DBW86jnf.js} +1 -1
- package/dist/assets/{monitor-smartphone-C08yRk5k.js → monitor-smartphone-BuyeEe1i.js} +1 -1
- package/dist/assets/mount-DVfMULL6.js +1 -0
- package/dist/assets/{player-overlays-ywd6nvhM.js → player-overlays-DRJ5jYka.js} +1 -1
- package/dist/assets/remoteEntry-BvXi9rH1.js +1 -0
- package/dist/assets/{ruler-DLPl8aKF.js → ruler-Bu3N8rrH.js} +1 -1
- package/dist/assets/{scan-eye-C7Kvo33Q.js → scan-eye-BZaxSxlS.js} +1 -1
- package/dist/assets/{scissors-D9pfuljG.js → scissors-DJgb5Dpv.js} +1 -1
- package/dist/assets/{search-x-CyWzUJHP.js → search-x-CXApjOId.js} +1 -1
- package/dist/assets/{send-DHAuefQL.js → send-SWldcTuN.js} +1 -1
- package/dist/assets/{settings-2-C0E3sNyV.js → settings-2-CWXy2awV.js} +1 -1
- package/dist/assets/{shapes-DUA5YHLG.js → shapes-BmXpqq30.js} +1 -1
- package/dist/assets/{sigma-BDlc8TxF.js → sigma-DiGmvY8h.js} +1 -1
- package/dist/assets/{speaker-D8B2puzu.js → speaker-B8m2jKCq.js} +1 -1
- package/dist/assets/src-He9Tsysa.js +100 -0
- package/dist/assets/{step-inspector-model-BQR3F7Jg.js → step-inspector-model-qn2KNkFH.js} +1 -1
- package/dist/assets/{table-2-Cjb75Gi9.js → table-2-D4kzIxer.js} +1 -1
- package/dist/assets/{timer-reset-H8wqMb8F.js → timer-reset-kOifM6eK.js} +1 -1
- package/dist/assets/{unlink-BQ-yuMty.js → unlink-C_Ulygv5.js} +1 -1
- package/dist/assets/{usb-DDx9zAx4.js → usb-CkkUZj4I.js} +1 -1
- package/dist/assets/{use-device-bound-caps-BZuh_-FO.js → use-device-bound-caps-CZpFb_Qq.js} +1 -1
- package/dist/assets/{use-scenes-feed-CYqbMC8a.js → use-scenes-feed-Cu_zC57R.js} +1 -1
- package/dist/assets/{use-stationary-objects-BRzkuAzf.js → use-stationary-objects-Q5PKhCS6.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-B3-kERGS.js → useAdminDeviceRemoval-Bz4WkutY.js} +1 -1
- package/dist/assets/useEventInvalidation-DVfMULL6.js +1 -0
- package/dist/assets/{useNodeUrlSelection-ndIqCMdG.js → useNodeUrlSelection-tdR3ldN7.js} +1 -1
- package/dist/assets/user-round-DjzMluaj.js +1 -0
- package/dist/assets/{user-x-ACxq5S24.js → user-x-BLftkftU.js} +1 -1
- package/dist/assets/{variable-DE3g0D48.js → variable-DjMixfBE.js} +1 -1
- package/dist/assets/{video-BvnxG-kU.js → video-CYBcnY0R.js} +1 -1
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Kr7hlZBe.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-C8oQmSMS.js} +2 -2
- package/dist/index.html +8 -8
- package/dist/server/addon.js +447 -595
- package/package.json +2 -2
- package/dist/assets/Addons-CqYKVI-X.js +0 -5
- package/dist/assets/Build-D7fMtVOm.js +0 -39
- package/dist/assets/DeviceDetail-xmvg__cy.js +0 -2
- package/dist/assets/History-DWl0AFGJ.js +0 -1
- package/dist/assets/Identity-DTaZ5LwU.js +0 -1
- package/dist/assets/IntegrationDetail-Dy7KkoXf.js +0 -1
- package/dist/assets/Integrations-Db97Y6T6.js +0 -1
- package/dist/assets/MyAccess-B1AP34J3.js +0 -2
- package/dist/assets/NodeAddonsSettingsPanel-z9e763EA.js +0 -1
- package/dist/assets/Notifications-Do0-oVK9.js +0 -1
- package/dist/assets/Pipeline-prDhU2J4.js +0 -1
- package/dist/assets/Recordings-DsJl2FhW.js +0 -1
- package/dist/assets/System-BXb83rJF.js +0 -1
- package/dist/assets/circle-slash-w9FRTZfM.js +0 -1
- package/dist/assets/client-mCEzjXIR.js +0 -809
- package/dist/assets/create-composition-Qtc7PTdK.js +0 -2
- package/dist/assets/crop-D5ieSxDF.js +0 -1
- package/dist/assets/device-picker-model-D7WYy-h_.js +0 -1
- package/dist/assets/dist-1KrVcdTB.js +0 -809
- package/dist/assets/mount-D7WYy-h_.js +0 -1
- package/dist/assets/remoteEntry-LTVk7I4e.js +0 -1
- package/dist/assets/src-DmG3r3oz.js +0 -100
- package/dist/assets/useEventInvalidation-D7WYy-h_.js +0 -1
- package/dist/assets/user-round-BcQrMUco.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -5873,7 +5873,7 @@ var ZodIssueCode = {
|
|
|
5873
5873
|
var ZodFirstPartyTypeKind;
|
|
5874
5874
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5875
5875
|
//#endregion
|
|
5876
|
-
//#region ../types/dist/sleep-
|
|
5876
|
+
//#region ../types/dist/sleep-7El4r5Bl.mjs
|
|
5877
5877
|
/**
|
|
5878
5878
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5879
5879
|
* window to float samples (D455).
|
|
@@ -7707,7 +7707,7 @@ function boundOf(list) {
|
|
|
7707
7707
|
* Base class for CamStack addons. Eliminates settings boilerplate:
|
|
7708
7708
|
*
|
|
7709
7709
|
* - Typed `config` property with automatic resolution from store + defaults
|
|
7710
|
-
* -
|
|
7710
|
+
* - the scoped settings API (`clusterSettings` / `nodeSettings` / `deviceDefaults`) auto-implemented
|
|
7711
7711
|
* - `getAddonSettings()` / `updateAddonSettings()` auto-implemented
|
|
7712
7712
|
* - `getDeviceSettings()` / `updateDeviceSettings()` auto-implemented
|
|
7713
7713
|
* - `ctx` accessor for the AddonContext (no manual `this.ctxRef` storage)
|
|
@@ -7717,7 +7717,7 @@ function boundOf(list) {
|
|
|
7717
7717
|
* Subclasses override:
|
|
7718
7718
|
* - `onInitialize()` — addon-specific init logic, return ProviderRegistration[]
|
|
7719
7719
|
* - `onShutdown()` — cleanup
|
|
7720
|
-
* - `
|
|
7720
|
+
* - `clusterSettingsSchema()` / `nodeSettingsSchema()` / `deviceSettingsSchema()` — UI schemas
|
|
7721
7721
|
*
|
|
7722
7722
|
* @example
|
|
7723
7723
|
* ```ts
|
|
@@ -7731,7 +7731,7 @@ function boundOf(list) {
|
|
|
7731
7731
|
* super({ maxRetries: 3, endpoint: 'http://localhost' })
|
|
7732
7732
|
* }
|
|
7733
7733
|
*
|
|
7734
|
-
* protected
|
|
7734
|
+
* protected clusterSettingsSchema() {
|
|
7735
7735
|
* return this.schema({
|
|
7736
7736
|
* sections: [{
|
|
7737
7737
|
* id: 'main', title: 'Settings',
|
|
@@ -7774,7 +7774,7 @@ var BaseAddon = class {
|
|
|
7774
7774
|
defaults;
|
|
7775
7775
|
/**
|
|
7776
7776
|
* Hidden-state paths that hold secrets (D787) — values the addon writes
|
|
7777
|
-
* itself (`
|
|
7777
|
+
* itself (`state()`, the scoped writers) that no form field declares.
|
|
7778
7778
|
* Stored in the keychain exactly like a `password` field. Syntax:
|
|
7779
7779
|
* `'snapshotSigningKey'`, `'identity.pincode'`, `'tokens[userId].accessToken'`
|
|
7780
7780
|
* (`key[<id field>]` addresses array items by id, never by index).
|
|
@@ -7784,7 +7784,7 @@ var BaseAddon = class {
|
|
|
7784
7784
|
/**
|
|
7785
7785
|
* D986 M4: the scoped schemas this addon declared, resolved once per capability
|
|
7786
7786
|
* (`loadScopedSchemas`) so the sync readers (`perNodeKeys`, the secret tree, the restart check)
|
|
7787
|
-
* see them. Empty until loaded
|
|
7787
|
+
* see them. Empty until loaded.
|
|
7788
7788
|
*/
|
|
7789
7789
|
_scopedByCap = /* @__PURE__ */ new Map();
|
|
7790
7790
|
_nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
@@ -7970,7 +7970,7 @@ var BaseAddon = class {
|
|
|
7970
7970
|
/** Addon-specific cleanup. Override if needed. */
|
|
7971
7971
|
async onShutdown() {}
|
|
7972
7972
|
/**
|
|
7973
|
-
* Called after config is resolved during
|
|
7973
|
+
* Called after config is resolved during a settings write.
|
|
7974
7974
|
* Override to react to config changes (e.g. restart a sampler, reconnect a service).
|
|
7975
7975
|
* Not called during initialize() — use onInitialize() for initial setup.
|
|
7976
7976
|
*/
|
|
@@ -7999,82 +7999,12 @@ var BaseAddon = class {
|
|
|
7999
7999
|
scopedSettingsCapabilities() {
|
|
8000
8000
|
return [];
|
|
8001
8001
|
}
|
|
8002
|
-
/** Override to provide global-level settings UI schema. */
|
|
8003
|
-
globalSettingsSchema(_cap) {
|
|
8004
|
-
return null;
|
|
8005
|
-
}
|
|
8006
8002
|
/** Override to provide device-level settings UI schema. */
|
|
8007
8003
|
deviceSettingsSchema() {
|
|
8008
8004
|
return null;
|
|
8009
8005
|
}
|
|
8010
8006
|
/**
|
|
8011
|
-
*
|
|
8012
|
-
* ARE the configuration of its integration.
|
|
8013
|
-
*
|
|
8014
|
-
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
8015
|
-
* operator should find on the addon's integration page (System →
|
|
8016
|
-
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
8017
|
-
* addon. Empty (the default) means the addon has no integration-level
|
|
8018
|
-
* settings and no such surface is offered — this is opt-in, because whether
|
|
8019
|
-
* an addon's configuration IS its integration's configuration depends on the
|
|
8020
|
-
* nature of the integration.
|
|
8021
|
-
*
|
|
8022
|
-
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
8023
|
-
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
8024
|
-
* `updateGlobalSettings` path. There is deliberately no
|
|
8025
|
-
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
8026
|
-
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
8027
|
-
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
8028
|
-
*
|
|
8029
|
-
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
8030
|
-
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
8031
|
-
* removed with the reason recorded at
|
|
8032
|
-
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
8033
|
-
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
8034
|
-
* marker sprinkled across sections also has to borrow a field that already
|
|
8035
|
-
* means something else; borrowing `section.tab` put the literal word
|
|
8036
|
-
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
8037
|
-
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
8038
|
-
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
8039
|
-
* ids it names.
|
|
8040
|
-
*/
|
|
8041
|
-
integrationSettingSections() {
|
|
8042
|
-
return [];
|
|
8043
|
-
}
|
|
8044
|
-
async getGlobalSettings(overlay, cap, nodeId) {
|
|
8045
|
-
await this.loadScopedSchemas(cap);
|
|
8046
|
-
const schema = this.globalSettingsSchema(cap) ?? this.scopedFormSchema(cap);
|
|
8047
|
-
if (!schema) return { sections: [] };
|
|
8048
|
-
const projected = await this.readRawProjectedStore(nodeId, cap);
|
|
8049
|
-
return hydrateSchema(schema, overlay ? await this.overlayKeepingMarkers(projected, overlay) : projected, { inlineSecretsAsViews: true });
|
|
8050
|
-
}
|
|
8051
|
-
/**
|
|
8052
|
-
* The integration-level view of this addon's settings: exactly the sections
|
|
8053
|
-
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
8054
|
-
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
8055
|
-
*
|
|
8056
|
-
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
8057
|
-
* no integration settings surface at all, rather than an empty one that reads
|
|
8058
|
-
* as a failed load.
|
|
8059
|
-
*
|
|
8060
|
-
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
8061
|
-
* and not in whichever UI happens to render this:
|
|
8062
|
-
*
|
|
8063
|
-
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
8064
|
-
* shown here is the same field, with the same bare key, that the addon's
|
|
8065
|
-
* own page shows. There is no integration-specific writer — callers save
|
|
8066
|
-
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
8067
|
-
* not merely discouraged.
|
|
8068
|
-
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
8069
|
-
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
8070
|
-
* such a field silently picked would be a wrong answer for the operator
|
|
8071
|
-
* who opened the page (D266).
|
|
8072
|
-
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
8073
|
-
* alternative — skip it — turns a rename into a surface that quietly
|
|
8074
|
-
* empties, which looks exactly like an addon with nothing to configure.
|
|
8075
|
-
*/
|
|
8076
|
-
/**
|
|
8077
|
-
* The form schema of ONE integration instance, or `null` to use {@link globalSettingsSchema}.
|
|
8007
|
+
* The form schema of ONE integration instance, or `null` to use the scoped form.
|
|
8078
8008
|
*
|
|
8079
8009
|
* Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
|
|
8080
8010
|
* needs its connection fields, the default integration the addon's own sections. It is the
|
|
@@ -8285,32 +8215,15 @@ var BaseAddon = class {
|
|
|
8285
8215
|
*/
|
|
8286
8216
|
async getIntegrationFormSchema(instance, nodeId) {
|
|
8287
8217
|
const scoped = await this.integrationFormSchema(instance);
|
|
8288
|
-
if (scoped === null) return this.
|
|
8218
|
+
if (scoped === null) return this.scopedForm(nodeId);
|
|
8289
8219
|
return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
|
|
8290
8220
|
}
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
const schema = this.
|
|
8295
|
-
if (!schema)
|
|
8296
|
-
|
|
8297
|
-
const sections = [];
|
|
8298
|
-
for (const id of declared) {
|
|
8299
|
-
const section = byId.get(id);
|
|
8300
|
-
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
8301
|
-
const fields = dropPerNodeFields(section.fields);
|
|
8302
|
-
if (fields.length === 0) continue;
|
|
8303
|
-
sections.push({
|
|
8304
|
-
...section,
|
|
8305
|
-
fields
|
|
8306
|
-
});
|
|
8307
|
-
}
|
|
8308
|
-
if (sections.length === 0) return null;
|
|
8309
|
-
const projected = await this.readRawProjectedStore(nodeId);
|
|
8310
|
-
return hydrateSchema({
|
|
8311
|
-
...schema,
|
|
8312
|
-
sections
|
|
8313
|
-
}, projected, { inlineSecretsAsViews: true });
|
|
8221
|
+
/** The form of the scoped schemas this addon declared, hydrated from its store. */
|
|
8222
|
+
async scopedForm(nodeId) {
|
|
8223
|
+
await this.loadScopedSchemas();
|
|
8224
|
+
const schema = this.scopedFormSchema();
|
|
8225
|
+
if (!schema) return { sections: [] };
|
|
8226
|
+
return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
|
|
8314
8227
|
}
|
|
8315
8228
|
/**
|
|
8316
8229
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
@@ -8319,8 +8232,8 @@ var BaseAddon = class {
|
|
|
8319
8232
|
* bare fallback), all `@`-scoped and stray bare per-node keys are dropped.
|
|
8320
8233
|
* A no-op passthrough when the schema declares no `perNode` field.
|
|
8321
8234
|
*
|
|
8322
|
-
* This is the sanctioned way for
|
|
8323
|
-
* the store for custom
|
|
8235
|
+
* This is the sanctioned way for an addon that needs
|
|
8236
|
+
* the store for custom logic (option narrowing, value snapping) to
|
|
8324
8237
|
* read it per-node — never `ctx.settings.readAddonStore()` directly.
|
|
8325
8238
|
* `nodeId` omitted ⇒ the local node (node-blind injection from ctx).
|
|
8326
8239
|
*
|
|
@@ -8372,7 +8285,7 @@ var BaseAddon = class {
|
|
|
8372
8285
|
}
|
|
8373
8286
|
/**
|
|
8374
8287
|
* Whether ONE global key of this addon's store was written, read three-way
|
|
8375
|
-
* (D651). For a question a hydrated view cannot answer:
|
|
8288
|
+
* (D651). For a question a hydrated view cannot answer: a hydrated form
|
|
8376
8289
|
* reports `value ?? default`, so "the operator chose the default" and "nobody
|
|
8377
8290
|
* chose" look the same, and a failed read looks like both. A `perNode` key is
|
|
8378
8291
|
* not supported here: its stored name is scoped.
|
|
@@ -8406,7 +8319,7 @@ var BaseAddon = class {
|
|
|
8406
8319
|
}
|
|
8407
8320
|
/**
|
|
8408
8321
|
* The OPERATOR's write — a settings form or an admin API call, dispatched by
|
|
8409
|
-
* the kernel.
|
|
8322
|
+
* the kernel. The one in-process write of the addon blob that is not a scoped write; a secret
|
|
8410
8323
|
* the operator sends is stored as sent even when it equals a pre-keychain
|
|
8411
8324
|
* inline value: the operator re-entering a password is a change, an addon
|
|
8412
8325
|
* writing back what it read is not (D787).
|
|
@@ -8419,9 +8332,6 @@ var BaseAddon = class {
|
|
|
8419
8332
|
this._operatorWriteDepth--;
|
|
8420
8333
|
}
|
|
8421
8334
|
}
|
|
8422
|
-
async updateGlobalSettings(patch, nodeId) {
|
|
8423
|
-
await this.applyGlobalPatch(patch, nodeId);
|
|
8424
|
-
}
|
|
8425
8335
|
/**
|
|
8426
8336
|
* REMOVE stored secrets — their keychain values and their markers (D787).
|
|
8427
8337
|
*
|
|
@@ -8464,8 +8374,7 @@ var BaseAddon = class {
|
|
|
8464
8374
|
await this.resolveConfig();
|
|
8465
8375
|
await this.onConfigChanged();
|
|
8466
8376
|
this.emitLifecycle(EventCategory.AddonUpdated, { level: "global" });
|
|
8467
|
-
|
|
8468
|
-
this.maybeAutoRestart(Object.keys(barePatch), [...legacy === null ? [] : [legacy], ...this.loadedScopedSchemas().map((entry) => entry.schema)]);
|
|
8377
|
+
this.maybeAutoRestart(Object.keys(barePatch), this.loadedScopedSchemas().map((entry) => entry.schema));
|
|
8469
8378
|
return true;
|
|
8470
8379
|
}
|
|
8471
8380
|
/**
|
|
@@ -8503,10 +8412,7 @@ var BaseAddon = class {
|
|
|
8503
8412
|
this._nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
8504
8413
|
this._addonSecretTree = null;
|
|
8505
8414
|
}
|
|
8506
|
-
/**
|
|
8507
|
-
* The form the settings API serves while an addon declares no {@link globalSettingsSchema}: the
|
|
8508
|
-
* sections of its scoped schemas, so dropping the old hook does not blank the form.
|
|
8509
|
-
*/
|
|
8415
|
+
/** The form of an addon's scoped schemas: their sections, each shown once. */
|
|
8510
8416
|
scopedFormSchema(cap) {
|
|
8511
8417
|
const byId = /* @__PURE__ */ new Map();
|
|
8512
8418
|
for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
|
|
@@ -8518,8 +8424,7 @@ var BaseAddon = class {
|
|
|
8518
8424
|
return [...this._scopedByCap.values()].flat();
|
|
8519
8425
|
}
|
|
8520
8426
|
/**
|
|
8521
|
-
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}
|
|
8522
|
-
* the fields the legacy {@link globalSettingsSchema} still marks `perNode: true`. Derived once
|
|
8427
|
+
* The field keys that are stored per node: every field of a {@link nodeSettingsSchema}. Derived once
|
|
8523
8428
|
* per `cap` argument and memoized (schemas are static declarations). Empty set ⇒ every
|
|
8524
8429
|
* per-node code path is bypassed and the settings API behaves like the node-agnostic one.
|
|
8525
8430
|
* Call {@link loadScopedSchemas} first (the async seams do).
|
|
@@ -8528,8 +8433,7 @@ var BaseAddon = class {
|
|
|
8528
8433
|
const cacheKey = cap ?? "";
|
|
8529
8434
|
const cached = this._nodeKeysByCap.get(cacheKey);
|
|
8530
8435
|
if (cached) return cached;
|
|
8531
|
-
const
|
|
8532
|
-
const keys = new Set(legacy ? legacy.sections.flatMap((section) => collectPerNodeFieldKeys(section.fields)) : []);
|
|
8436
|
+
const keys = /* @__PURE__ */ new Set();
|
|
8533
8437
|
for (const { scope, schema } of this.loadedScopedSchemas(cap)) {
|
|
8534
8438
|
if (scope !== "node") continue;
|
|
8535
8439
|
for (const section of schema.sections) for (const key of collectValueFieldKeys(section.fields)) keys.add(key);
|
|
@@ -8747,8 +8651,6 @@ var BaseAddon = class {
|
|
|
8747
8651
|
}
|
|
8748
8652
|
declaredKeySet() {
|
|
8749
8653
|
const keys = new Set(Object.keys(this.defaults));
|
|
8750
|
-
const schema = this.globalSettingsSchema();
|
|
8751
|
-
if (schema) for (const section of schema.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
8752
8654
|
for (const { schema: scoped } of this.loadedScopedSchemas()) for (const section of scoped.sections) for (const key of collectFieldKeys(section.fields)) keys.add(key);
|
|
8753
8655
|
for (const key of this._declaredStateKeys) keys.add(key);
|
|
8754
8656
|
for (const path of this.secretStatePaths) {
|
|
@@ -8846,7 +8748,7 @@ var BaseAddon = class {
|
|
|
8846
8748
|
/** The addon store's secret tree: schema fields by TYPE, plus `secretStatePaths`. */
|
|
8847
8749
|
addonSecretTree() {
|
|
8848
8750
|
if (this._addonSecretTree === null) {
|
|
8849
|
-
const tree = new Map(
|
|
8751
|
+
const tree = /* @__PURE__ */ new Map();
|
|
8850
8752
|
for (const { schema } of this.loadedScopedSchemas()) for (const [key, node] of secretTreeFromSchema(schema)) tree.set(key, node);
|
|
8851
8753
|
this._addonSecretTree = mergeSecretStatePaths(tree, this.secretStatePaths);
|
|
8852
8754
|
}
|
|
@@ -9058,47 +8960,6 @@ function classifyStoreError(err) {
|
|
|
9058
8960
|
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
9059
8961
|
return "permanent";
|
|
9060
8962
|
}
|
|
9061
|
-
/**
|
|
9062
|
-
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
9063
|
-
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
9064
|
-
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
9065
|
-
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
9066
|
-
*/
|
|
9067
|
-
/**
|
|
9068
|
-
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
9069
|
-
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
9070
|
-
* with no child is dropped rather than rendered empty.
|
|
9071
|
-
*
|
|
9072
|
-
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
9073
|
-
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
9074
|
-
*/
|
|
9075
|
-
function dropPerNodeFields(fields) {
|
|
9076
|
-
const kept = [];
|
|
9077
|
-
for (const field of fields) {
|
|
9078
|
-
if (field.type === "group") {
|
|
9079
|
-
const inner = dropPerNodeFields(field.fields);
|
|
9080
|
-
if (inner.length > 0) kept.push({
|
|
9081
|
-
...field,
|
|
9082
|
-
fields: inner
|
|
9083
|
-
});
|
|
9084
|
-
continue;
|
|
9085
|
-
}
|
|
9086
|
-
if (field.type === "sub-tabs") {
|
|
9087
|
-
const tabs = field.tabs.map((tab) => ({
|
|
9088
|
-
...tab,
|
|
9089
|
-
fields: dropPerNodeFields(tab.fields)
|
|
9090
|
-
})).filter((tab) => tab.fields.length > 0);
|
|
9091
|
-
if (tabs.length > 0) kept.push({
|
|
9092
|
-
...field,
|
|
9093
|
-
tabs
|
|
9094
|
-
});
|
|
9095
|
-
continue;
|
|
9096
|
-
}
|
|
9097
|
-
if ("perNode" in field && field.perNode === true) continue;
|
|
9098
|
-
kept.push(field);
|
|
9099
|
-
}
|
|
9100
|
-
return kept;
|
|
9101
|
-
}
|
|
9102
8963
|
/** The keys of the value-holding fields, recursing into layout containers. */
|
|
9103
8964
|
function collectValueFieldKeys(fields) {
|
|
9104
8965
|
const collected = [];
|
|
@@ -9131,21 +8992,6 @@ function collectFieldKeys(fields) {
|
|
|
9131
8992
|
}
|
|
9132
8993
|
return collected;
|
|
9133
8994
|
}
|
|
9134
|
-
function collectPerNodeFieldKeys(fields) {
|
|
9135
|
-
const collected = [];
|
|
9136
|
-
for (const field of fields) {
|
|
9137
|
-
if (field.type === "group") {
|
|
9138
|
-
collected.push(...collectPerNodeFieldKeys(field.fields));
|
|
9139
|
-
continue;
|
|
9140
|
-
}
|
|
9141
|
-
if (field.type === "sub-tabs") {
|
|
9142
|
-
for (const tab of field.tabs) collected.push(...collectPerNodeFieldKeys(tab.fields));
|
|
9143
|
-
continue;
|
|
9144
|
-
}
|
|
9145
|
-
if ("perNode" in field && field.perNode === true) collected.push(field.key);
|
|
9146
|
-
}
|
|
9147
|
-
return collected;
|
|
9148
|
-
}
|
|
9149
8995
|
/**
|
|
9150
8996
|
* Normalize an `ICamstackAddon.initialize()` return value into the
|
|
9151
8997
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
@@ -13134,6 +12980,387 @@ var NodeColorIdSchema = _enum([
|
|
|
13134
12980
|
"node-h"
|
|
13135
12981
|
]);
|
|
13136
12982
|
//#endregion
|
|
12983
|
+
//#region ../types/dist/convert-BAzH15HU.mjs
|
|
12984
|
+
/**
|
|
12985
|
+
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
12986
|
+
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
12987
|
+
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
12988
|
+
* decimals). K derives from `°C = K − 273.15`.
|
|
12989
|
+
*/
|
|
12990
|
+
var UNIT_TABLE = {
|
|
12991
|
+
"°C": {
|
|
12992
|
+
dimension: "temperature",
|
|
12993
|
+
factor: 1,
|
|
12994
|
+
offset: 0
|
|
12995
|
+
},
|
|
12996
|
+
"°F": {
|
|
12997
|
+
dimension: "temperature",
|
|
12998
|
+
factor: 5 / 9,
|
|
12999
|
+
offset: -160 / 9
|
|
13000
|
+
},
|
|
13001
|
+
K: {
|
|
13002
|
+
dimension: "temperature",
|
|
13003
|
+
factor: 1,
|
|
13004
|
+
offset: -273.15
|
|
13005
|
+
},
|
|
13006
|
+
hPa: {
|
|
13007
|
+
dimension: "pressure",
|
|
13008
|
+
factor: 1,
|
|
13009
|
+
offset: 0
|
|
13010
|
+
},
|
|
13011
|
+
kPa: {
|
|
13012
|
+
dimension: "pressure",
|
|
13013
|
+
factor: 10,
|
|
13014
|
+
offset: 0
|
|
13015
|
+
},
|
|
13016
|
+
Pa: {
|
|
13017
|
+
dimension: "pressure",
|
|
13018
|
+
factor: .01,
|
|
13019
|
+
offset: 0
|
|
13020
|
+
},
|
|
13021
|
+
mbar: {
|
|
13022
|
+
dimension: "pressure",
|
|
13023
|
+
factor: 1,
|
|
13024
|
+
offset: 0
|
|
13025
|
+
},
|
|
13026
|
+
bar: {
|
|
13027
|
+
dimension: "pressure",
|
|
13028
|
+
factor: 1e3,
|
|
13029
|
+
offset: 0
|
|
13030
|
+
},
|
|
13031
|
+
inHg: {
|
|
13032
|
+
dimension: "pressure",
|
|
13033
|
+
factor: 33.8639,
|
|
13034
|
+
offset: 0
|
|
13035
|
+
},
|
|
13036
|
+
mmHg: {
|
|
13037
|
+
dimension: "pressure",
|
|
13038
|
+
factor: 1.33322,
|
|
13039
|
+
offset: 0
|
|
13040
|
+
},
|
|
13041
|
+
psi: {
|
|
13042
|
+
dimension: "pressure",
|
|
13043
|
+
factor: 68.9476,
|
|
13044
|
+
offset: 0
|
|
13045
|
+
},
|
|
13046
|
+
"m/s": {
|
|
13047
|
+
dimension: "speed",
|
|
13048
|
+
factor: 1,
|
|
13049
|
+
offset: 0
|
|
13050
|
+
},
|
|
13051
|
+
"km/h": {
|
|
13052
|
+
dimension: "speed",
|
|
13053
|
+
factor: 1 / 3.6,
|
|
13054
|
+
offset: 0
|
|
13055
|
+
},
|
|
13056
|
+
mph: {
|
|
13057
|
+
dimension: "speed",
|
|
13058
|
+
factor: .44704,
|
|
13059
|
+
offset: 0
|
|
13060
|
+
},
|
|
13061
|
+
kn: {
|
|
13062
|
+
dimension: "speed",
|
|
13063
|
+
factor: .514444,
|
|
13064
|
+
offset: 0
|
|
13065
|
+
},
|
|
13066
|
+
"mm/h": {
|
|
13067
|
+
dimension: "precipitation-rate",
|
|
13068
|
+
factor: 1,
|
|
13069
|
+
offset: 0
|
|
13070
|
+
},
|
|
13071
|
+
"in/h": {
|
|
13072
|
+
dimension: "precipitation-rate",
|
|
13073
|
+
factor: 25.4,
|
|
13074
|
+
offset: 0
|
|
13075
|
+
},
|
|
13076
|
+
m: {
|
|
13077
|
+
dimension: "length",
|
|
13078
|
+
factor: 1,
|
|
13079
|
+
offset: 0
|
|
13080
|
+
},
|
|
13081
|
+
mm: {
|
|
13082
|
+
dimension: "length",
|
|
13083
|
+
factor: .001,
|
|
13084
|
+
offset: 0
|
|
13085
|
+
},
|
|
13086
|
+
cm: {
|
|
13087
|
+
dimension: "length",
|
|
13088
|
+
factor: .01,
|
|
13089
|
+
offset: 0
|
|
13090
|
+
},
|
|
13091
|
+
km: {
|
|
13092
|
+
dimension: "length",
|
|
13093
|
+
factor: 1e3,
|
|
13094
|
+
offset: 0
|
|
13095
|
+
},
|
|
13096
|
+
in: {
|
|
13097
|
+
dimension: "length",
|
|
13098
|
+
factor: .0254,
|
|
13099
|
+
offset: 0
|
|
13100
|
+
},
|
|
13101
|
+
ft: {
|
|
13102
|
+
dimension: "length",
|
|
13103
|
+
factor: .3048,
|
|
13104
|
+
offset: 0
|
|
13105
|
+
},
|
|
13106
|
+
mi: {
|
|
13107
|
+
dimension: "length",
|
|
13108
|
+
factor: 1609.344,
|
|
13109
|
+
offset: 0
|
|
13110
|
+
},
|
|
13111
|
+
"m²": {
|
|
13112
|
+
dimension: "area",
|
|
13113
|
+
factor: 1,
|
|
13114
|
+
offset: 0
|
|
13115
|
+
},
|
|
13116
|
+
lx: {
|
|
13117
|
+
dimension: "illuminance",
|
|
13118
|
+
factor: 1,
|
|
13119
|
+
offset: 0
|
|
13120
|
+
},
|
|
13121
|
+
"W/m²": {
|
|
13122
|
+
dimension: "irradiance",
|
|
13123
|
+
factor: 1,
|
|
13124
|
+
offset: 0
|
|
13125
|
+
},
|
|
13126
|
+
W: {
|
|
13127
|
+
dimension: "power",
|
|
13128
|
+
factor: 1,
|
|
13129
|
+
offset: 0
|
|
13130
|
+
},
|
|
13131
|
+
kW: {
|
|
13132
|
+
dimension: "power",
|
|
13133
|
+
factor: 1e3,
|
|
13134
|
+
offset: 0
|
|
13135
|
+
},
|
|
13136
|
+
VA: {
|
|
13137
|
+
dimension: "apparent-power",
|
|
13138
|
+
factor: 1,
|
|
13139
|
+
offset: 0
|
|
13140
|
+
},
|
|
13141
|
+
Wh: {
|
|
13142
|
+
dimension: "energy",
|
|
13143
|
+
factor: 1,
|
|
13144
|
+
offset: 0
|
|
13145
|
+
},
|
|
13146
|
+
kWh: {
|
|
13147
|
+
dimension: "energy",
|
|
13148
|
+
factor: 1e3,
|
|
13149
|
+
offset: 0
|
|
13150
|
+
},
|
|
13151
|
+
MWh: {
|
|
13152
|
+
dimension: "energy",
|
|
13153
|
+
factor: 1e6,
|
|
13154
|
+
offset: 0
|
|
13155
|
+
},
|
|
13156
|
+
V: {
|
|
13157
|
+
dimension: "voltage",
|
|
13158
|
+
factor: 1,
|
|
13159
|
+
offset: 0
|
|
13160
|
+
},
|
|
13161
|
+
mV: {
|
|
13162
|
+
dimension: "voltage",
|
|
13163
|
+
factor: .001,
|
|
13164
|
+
offset: 0
|
|
13165
|
+
},
|
|
13166
|
+
A: {
|
|
13167
|
+
dimension: "current",
|
|
13168
|
+
factor: 1,
|
|
13169
|
+
offset: 0
|
|
13170
|
+
},
|
|
13171
|
+
mA: {
|
|
13172
|
+
dimension: "current",
|
|
13173
|
+
factor: .001,
|
|
13174
|
+
offset: 0
|
|
13175
|
+
},
|
|
13176
|
+
ppm: {
|
|
13177
|
+
dimension: "concentration-volume",
|
|
13178
|
+
factor: 1,
|
|
13179
|
+
offset: 0
|
|
13180
|
+
},
|
|
13181
|
+
ppb: {
|
|
13182
|
+
dimension: "concentration-volume",
|
|
13183
|
+
factor: .001,
|
|
13184
|
+
offset: 0
|
|
13185
|
+
},
|
|
13186
|
+
"µg/m³": {
|
|
13187
|
+
dimension: "concentration-mass",
|
|
13188
|
+
factor: 1,
|
|
13189
|
+
offset: 0
|
|
13190
|
+
},
|
|
13191
|
+
"mg/m³": {
|
|
13192
|
+
dimension: "concentration-mass",
|
|
13193
|
+
factor: 1e3,
|
|
13194
|
+
offset: 0
|
|
13195
|
+
},
|
|
13196
|
+
kg: {
|
|
13197
|
+
dimension: "mass",
|
|
13198
|
+
factor: 1,
|
|
13199
|
+
offset: 0
|
|
13200
|
+
},
|
|
13201
|
+
g: {
|
|
13202
|
+
dimension: "mass",
|
|
13203
|
+
factor: .001,
|
|
13204
|
+
offset: 0
|
|
13205
|
+
},
|
|
13206
|
+
lb: {
|
|
13207
|
+
dimension: "mass",
|
|
13208
|
+
factor: .453592,
|
|
13209
|
+
offset: 0
|
|
13210
|
+
},
|
|
13211
|
+
oz: {
|
|
13212
|
+
dimension: "mass",
|
|
13213
|
+
factor: .0283495,
|
|
13214
|
+
offset: 0
|
|
13215
|
+
},
|
|
13216
|
+
"%": {
|
|
13217
|
+
dimension: "percentage",
|
|
13218
|
+
factor: 1,
|
|
13219
|
+
offset: 0
|
|
13220
|
+
},
|
|
13221
|
+
L: {
|
|
13222
|
+
dimension: "volume",
|
|
13223
|
+
factor: 1,
|
|
13224
|
+
offset: 0
|
|
13225
|
+
},
|
|
13226
|
+
mL: {
|
|
13227
|
+
dimension: "volume",
|
|
13228
|
+
factor: .001,
|
|
13229
|
+
offset: 0
|
|
13230
|
+
},
|
|
13231
|
+
gal: {
|
|
13232
|
+
dimension: "volume",
|
|
13233
|
+
factor: 3.785411784,
|
|
13234
|
+
offset: 0
|
|
13235
|
+
},
|
|
13236
|
+
s: {
|
|
13237
|
+
dimension: "duration",
|
|
13238
|
+
factor: 1,
|
|
13239
|
+
offset: 0
|
|
13240
|
+
},
|
|
13241
|
+
ms: {
|
|
13242
|
+
dimension: "duration",
|
|
13243
|
+
factor: .001,
|
|
13244
|
+
offset: 0
|
|
13245
|
+
},
|
|
13246
|
+
min: {
|
|
13247
|
+
dimension: "duration",
|
|
13248
|
+
factor: 60,
|
|
13249
|
+
offset: 0
|
|
13250
|
+
},
|
|
13251
|
+
h: {
|
|
13252
|
+
dimension: "duration",
|
|
13253
|
+
factor: 3600,
|
|
13254
|
+
offset: 0
|
|
13255
|
+
},
|
|
13256
|
+
d: {
|
|
13257
|
+
dimension: "duration",
|
|
13258
|
+
factor: 86400,
|
|
13259
|
+
offset: 0
|
|
13260
|
+
},
|
|
13261
|
+
B: {
|
|
13262
|
+
dimension: "information",
|
|
13263
|
+
factor: 1,
|
|
13264
|
+
offset: 0
|
|
13265
|
+
},
|
|
13266
|
+
KiB: {
|
|
13267
|
+
dimension: "information",
|
|
13268
|
+
factor: 1024,
|
|
13269
|
+
offset: 0
|
|
13270
|
+
},
|
|
13271
|
+
MiB: {
|
|
13272
|
+
dimension: "information",
|
|
13273
|
+
factor: 1024 ** 2,
|
|
13274
|
+
offset: 0
|
|
13275
|
+
},
|
|
13276
|
+
GiB: {
|
|
13277
|
+
dimension: "information",
|
|
13278
|
+
factor: 1024 ** 3,
|
|
13279
|
+
offset: 0
|
|
13280
|
+
},
|
|
13281
|
+
TiB: {
|
|
13282
|
+
dimension: "information",
|
|
13283
|
+
factor: 1024 ** 4,
|
|
13284
|
+
offset: 0
|
|
13285
|
+
},
|
|
13286
|
+
kB: {
|
|
13287
|
+
dimension: "information",
|
|
13288
|
+
factor: 1e3,
|
|
13289
|
+
offset: 0
|
|
13290
|
+
},
|
|
13291
|
+
MB: {
|
|
13292
|
+
dimension: "information",
|
|
13293
|
+
factor: 1e6,
|
|
13294
|
+
offset: 0
|
|
13295
|
+
},
|
|
13296
|
+
GB: {
|
|
13297
|
+
dimension: "information",
|
|
13298
|
+
factor: 1e9,
|
|
13299
|
+
offset: 0
|
|
13300
|
+
},
|
|
13301
|
+
"°": {
|
|
13302
|
+
dimension: "angle",
|
|
13303
|
+
factor: 1,
|
|
13304
|
+
offset: 0
|
|
13305
|
+
},
|
|
13306
|
+
dBFS: {
|
|
13307
|
+
dimension: "sound-level",
|
|
13308
|
+
factor: 1,
|
|
13309
|
+
offset: 0
|
|
13310
|
+
},
|
|
13311
|
+
dBm: {
|
|
13312
|
+
dimension: "signal-level",
|
|
13313
|
+
factor: 1,
|
|
13314
|
+
offset: 0
|
|
13315
|
+
},
|
|
13316
|
+
mired: {
|
|
13317
|
+
dimension: "colour-temperature",
|
|
13318
|
+
factor: 1,
|
|
13319
|
+
offset: 0
|
|
13320
|
+
},
|
|
13321
|
+
kbps: {
|
|
13322
|
+
dimension: "bitrate",
|
|
13323
|
+
factor: 1,
|
|
13324
|
+
offset: 0
|
|
13325
|
+
},
|
|
13326
|
+
Mbps: {
|
|
13327
|
+
dimension: "bitrate",
|
|
13328
|
+
factor: 1e3,
|
|
13329
|
+
offset: 0
|
|
13330
|
+
},
|
|
13331
|
+
fps: {
|
|
13332
|
+
dimension: "rate",
|
|
13333
|
+
factor: 1,
|
|
13334
|
+
offset: 0
|
|
13335
|
+
}
|
|
13336
|
+
};
|
|
13337
|
+
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
13338
|
+
function specFor(unit) {
|
|
13339
|
+
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
13340
|
+
}
|
|
13341
|
+
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
13342
|
+
function toCanonical(value, spec) {
|
|
13343
|
+
return value * spec.factor + spec.offset;
|
|
13344
|
+
}
|
|
13345
|
+
/** Canonical-unit value → the unit described by `spec`. */
|
|
13346
|
+
function fromCanonical(canonical, spec) {
|
|
13347
|
+
return (canonical - spec.offset) / spec.factor;
|
|
13348
|
+
}
|
|
13349
|
+
/**
|
|
13350
|
+
* Graceful variant for the render path: returns the converted value, or
|
|
13351
|
+
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
13352
|
+
* Never throws — a render caller falls back to the raw value + source unit.
|
|
13353
|
+
*/
|
|
13354
|
+
function tryConvertUnit(value, from, to) {
|
|
13355
|
+
if (from === to) return value;
|
|
13356
|
+
const fromSpec = specFor(from);
|
|
13357
|
+
if (!fromSpec) return void 0;
|
|
13358
|
+
const toSpec = specFor(to);
|
|
13359
|
+
if (!toSpec) return void 0;
|
|
13360
|
+
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
13361
|
+
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
13362
|
+
}
|
|
13363
|
+
//#endregion
|
|
13137
13364
|
//#region ../types/dist/index.mjs
|
|
13138
13365
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
13139
13366
|
var SMTP_INBOUND_DEFAULT_DOMAIN = "camstack.local";
|
|
@@ -41998,6 +42225,7 @@ var ExpressionBindingSourceSchema = union([
|
|
|
41998
42225
|
object({
|
|
41999
42226
|
kind: literal("global"),
|
|
42000
42227
|
sourceStableId: string(),
|
|
42228
|
+
addonId: string().optional(),
|
|
42001
42229
|
cap: string(),
|
|
42002
42230
|
fieldPath: string()
|
|
42003
42231
|
})
|
|
@@ -42064,385 +42292,6 @@ var SourceInfoSchema = object({
|
|
|
42064
42292
|
raw: record(string(), unknown()).optional()
|
|
42065
42293
|
});
|
|
42066
42294
|
/**
|
|
42067
|
-
* Frozen unit → spec table. `•` in the doc marks each dimension's canonical
|
|
42068
|
-
* unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
|
|
42069
|
-
* `factor = 5/9`, `offset = -160/9` (kept as exact expressions, not rounded
|
|
42070
|
-
* decimals). K derives from `°C = K − 273.15`.
|
|
42071
|
-
*/
|
|
42072
|
-
var UNIT_TABLE = {
|
|
42073
|
-
"°C": {
|
|
42074
|
-
dimension: "temperature",
|
|
42075
|
-
factor: 1,
|
|
42076
|
-
offset: 0
|
|
42077
|
-
},
|
|
42078
|
-
"°F": {
|
|
42079
|
-
dimension: "temperature",
|
|
42080
|
-
factor: 5 / 9,
|
|
42081
|
-
offset: -160 / 9
|
|
42082
|
-
},
|
|
42083
|
-
K: {
|
|
42084
|
-
dimension: "temperature",
|
|
42085
|
-
factor: 1,
|
|
42086
|
-
offset: -273.15
|
|
42087
|
-
},
|
|
42088
|
-
hPa: {
|
|
42089
|
-
dimension: "pressure",
|
|
42090
|
-
factor: 1,
|
|
42091
|
-
offset: 0
|
|
42092
|
-
},
|
|
42093
|
-
kPa: {
|
|
42094
|
-
dimension: "pressure",
|
|
42095
|
-
factor: 10,
|
|
42096
|
-
offset: 0
|
|
42097
|
-
},
|
|
42098
|
-
Pa: {
|
|
42099
|
-
dimension: "pressure",
|
|
42100
|
-
factor: .01,
|
|
42101
|
-
offset: 0
|
|
42102
|
-
},
|
|
42103
|
-
mbar: {
|
|
42104
|
-
dimension: "pressure",
|
|
42105
|
-
factor: 1,
|
|
42106
|
-
offset: 0
|
|
42107
|
-
},
|
|
42108
|
-
bar: {
|
|
42109
|
-
dimension: "pressure",
|
|
42110
|
-
factor: 1e3,
|
|
42111
|
-
offset: 0
|
|
42112
|
-
},
|
|
42113
|
-
inHg: {
|
|
42114
|
-
dimension: "pressure",
|
|
42115
|
-
factor: 33.8639,
|
|
42116
|
-
offset: 0
|
|
42117
|
-
},
|
|
42118
|
-
mmHg: {
|
|
42119
|
-
dimension: "pressure",
|
|
42120
|
-
factor: 1.33322,
|
|
42121
|
-
offset: 0
|
|
42122
|
-
},
|
|
42123
|
-
psi: {
|
|
42124
|
-
dimension: "pressure",
|
|
42125
|
-
factor: 68.9476,
|
|
42126
|
-
offset: 0
|
|
42127
|
-
},
|
|
42128
|
-
"m/s": {
|
|
42129
|
-
dimension: "speed",
|
|
42130
|
-
factor: 1,
|
|
42131
|
-
offset: 0
|
|
42132
|
-
},
|
|
42133
|
-
"km/h": {
|
|
42134
|
-
dimension: "speed",
|
|
42135
|
-
factor: 1 / 3.6,
|
|
42136
|
-
offset: 0
|
|
42137
|
-
},
|
|
42138
|
-
mph: {
|
|
42139
|
-
dimension: "speed",
|
|
42140
|
-
factor: .44704,
|
|
42141
|
-
offset: 0
|
|
42142
|
-
},
|
|
42143
|
-
kn: {
|
|
42144
|
-
dimension: "speed",
|
|
42145
|
-
factor: .514444,
|
|
42146
|
-
offset: 0
|
|
42147
|
-
},
|
|
42148
|
-
"mm/h": {
|
|
42149
|
-
dimension: "precipitation-rate",
|
|
42150
|
-
factor: 1,
|
|
42151
|
-
offset: 0
|
|
42152
|
-
},
|
|
42153
|
-
"in/h": {
|
|
42154
|
-
dimension: "precipitation-rate",
|
|
42155
|
-
factor: 25.4,
|
|
42156
|
-
offset: 0
|
|
42157
|
-
},
|
|
42158
|
-
m: {
|
|
42159
|
-
dimension: "length",
|
|
42160
|
-
factor: 1,
|
|
42161
|
-
offset: 0
|
|
42162
|
-
},
|
|
42163
|
-
mm: {
|
|
42164
|
-
dimension: "length",
|
|
42165
|
-
factor: .001,
|
|
42166
|
-
offset: 0
|
|
42167
|
-
},
|
|
42168
|
-
cm: {
|
|
42169
|
-
dimension: "length",
|
|
42170
|
-
factor: .01,
|
|
42171
|
-
offset: 0
|
|
42172
|
-
},
|
|
42173
|
-
km: {
|
|
42174
|
-
dimension: "length",
|
|
42175
|
-
factor: 1e3,
|
|
42176
|
-
offset: 0
|
|
42177
|
-
},
|
|
42178
|
-
in: {
|
|
42179
|
-
dimension: "length",
|
|
42180
|
-
factor: .0254,
|
|
42181
|
-
offset: 0
|
|
42182
|
-
},
|
|
42183
|
-
ft: {
|
|
42184
|
-
dimension: "length",
|
|
42185
|
-
factor: .3048,
|
|
42186
|
-
offset: 0
|
|
42187
|
-
},
|
|
42188
|
-
mi: {
|
|
42189
|
-
dimension: "length",
|
|
42190
|
-
factor: 1609.344,
|
|
42191
|
-
offset: 0
|
|
42192
|
-
},
|
|
42193
|
-
"m²": {
|
|
42194
|
-
dimension: "area",
|
|
42195
|
-
factor: 1,
|
|
42196
|
-
offset: 0
|
|
42197
|
-
},
|
|
42198
|
-
lx: {
|
|
42199
|
-
dimension: "illuminance",
|
|
42200
|
-
factor: 1,
|
|
42201
|
-
offset: 0
|
|
42202
|
-
},
|
|
42203
|
-
"W/m²": {
|
|
42204
|
-
dimension: "irradiance",
|
|
42205
|
-
factor: 1,
|
|
42206
|
-
offset: 0
|
|
42207
|
-
},
|
|
42208
|
-
W: {
|
|
42209
|
-
dimension: "power",
|
|
42210
|
-
factor: 1,
|
|
42211
|
-
offset: 0
|
|
42212
|
-
},
|
|
42213
|
-
kW: {
|
|
42214
|
-
dimension: "power",
|
|
42215
|
-
factor: 1e3,
|
|
42216
|
-
offset: 0
|
|
42217
|
-
},
|
|
42218
|
-
VA: {
|
|
42219
|
-
dimension: "apparent-power",
|
|
42220
|
-
factor: 1,
|
|
42221
|
-
offset: 0
|
|
42222
|
-
},
|
|
42223
|
-
Wh: {
|
|
42224
|
-
dimension: "energy",
|
|
42225
|
-
factor: 1,
|
|
42226
|
-
offset: 0
|
|
42227
|
-
},
|
|
42228
|
-
kWh: {
|
|
42229
|
-
dimension: "energy",
|
|
42230
|
-
factor: 1e3,
|
|
42231
|
-
offset: 0
|
|
42232
|
-
},
|
|
42233
|
-
MWh: {
|
|
42234
|
-
dimension: "energy",
|
|
42235
|
-
factor: 1e6,
|
|
42236
|
-
offset: 0
|
|
42237
|
-
},
|
|
42238
|
-
V: {
|
|
42239
|
-
dimension: "voltage",
|
|
42240
|
-
factor: 1,
|
|
42241
|
-
offset: 0
|
|
42242
|
-
},
|
|
42243
|
-
mV: {
|
|
42244
|
-
dimension: "voltage",
|
|
42245
|
-
factor: .001,
|
|
42246
|
-
offset: 0
|
|
42247
|
-
},
|
|
42248
|
-
A: {
|
|
42249
|
-
dimension: "current",
|
|
42250
|
-
factor: 1,
|
|
42251
|
-
offset: 0
|
|
42252
|
-
},
|
|
42253
|
-
mA: {
|
|
42254
|
-
dimension: "current",
|
|
42255
|
-
factor: .001,
|
|
42256
|
-
offset: 0
|
|
42257
|
-
},
|
|
42258
|
-
ppm: {
|
|
42259
|
-
dimension: "concentration-volume",
|
|
42260
|
-
factor: 1,
|
|
42261
|
-
offset: 0
|
|
42262
|
-
},
|
|
42263
|
-
ppb: {
|
|
42264
|
-
dimension: "concentration-volume",
|
|
42265
|
-
factor: .001,
|
|
42266
|
-
offset: 0
|
|
42267
|
-
},
|
|
42268
|
-
"µg/m³": {
|
|
42269
|
-
dimension: "concentration-mass",
|
|
42270
|
-
factor: 1,
|
|
42271
|
-
offset: 0
|
|
42272
|
-
},
|
|
42273
|
-
"mg/m³": {
|
|
42274
|
-
dimension: "concentration-mass",
|
|
42275
|
-
factor: 1e3,
|
|
42276
|
-
offset: 0
|
|
42277
|
-
},
|
|
42278
|
-
kg: {
|
|
42279
|
-
dimension: "mass",
|
|
42280
|
-
factor: 1,
|
|
42281
|
-
offset: 0
|
|
42282
|
-
},
|
|
42283
|
-
g: {
|
|
42284
|
-
dimension: "mass",
|
|
42285
|
-
factor: .001,
|
|
42286
|
-
offset: 0
|
|
42287
|
-
},
|
|
42288
|
-
lb: {
|
|
42289
|
-
dimension: "mass",
|
|
42290
|
-
factor: .453592,
|
|
42291
|
-
offset: 0
|
|
42292
|
-
},
|
|
42293
|
-
oz: {
|
|
42294
|
-
dimension: "mass",
|
|
42295
|
-
factor: .0283495,
|
|
42296
|
-
offset: 0
|
|
42297
|
-
},
|
|
42298
|
-
"%": {
|
|
42299
|
-
dimension: "percentage",
|
|
42300
|
-
factor: 1,
|
|
42301
|
-
offset: 0
|
|
42302
|
-
},
|
|
42303
|
-
L: {
|
|
42304
|
-
dimension: "volume",
|
|
42305
|
-
factor: 1,
|
|
42306
|
-
offset: 0
|
|
42307
|
-
},
|
|
42308
|
-
mL: {
|
|
42309
|
-
dimension: "volume",
|
|
42310
|
-
factor: .001,
|
|
42311
|
-
offset: 0
|
|
42312
|
-
},
|
|
42313
|
-
gal: {
|
|
42314
|
-
dimension: "volume",
|
|
42315
|
-
factor: 3.785411784,
|
|
42316
|
-
offset: 0
|
|
42317
|
-
},
|
|
42318
|
-
s: {
|
|
42319
|
-
dimension: "duration",
|
|
42320
|
-
factor: 1,
|
|
42321
|
-
offset: 0
|
|
42322
|
-
},
|
|
42323
|
-
ms: {
|
|
42324
|
-
dimension: "duration",
|
|
42325
|
-
factor: .001,
|
|
42326
|
-
offset: 0
|
|
42327
|
-
},
|
|
42328
|
-
min: {
|
|
42329
|
-
dimension: "duration",
|
|
42330
|
-
factor: 60,
|
|
42331
|
-
offset: 0
|
|
42332
|
-
},
|
|
42333
|
-
h: {
|
|
42334
|
-
dimension: "duration",
|
|
42335
|
-
factor: 3600,
|
|
42336
|
-
offset: 0
|
|
42337
|
-
},
|
|
42338
|
-
d: {
|
|
42339
|
-
dimension: "duration",
|
|
42340
|
-
factor: 86400,
|
|
42341
|
-
offset: 0
|
|
42342
|
-
},
|
|
42343
|
-
B: {
|
|
42344
|
-
dimension: "information",
|
|
42345
|
-
factor: 1,
|
|
42346
|
-
offset: 0
|
|
42347
|
-
},
|
|
42348
|
-
KiB: {
|
|
42349
|
-
dimension: "information",
|
|
42350
|
-
factor: 1024,
|
|
42351
|
-
offset: 0
|
|
42352
|
-
},
|
|
42353
|
-
MiB: {
|
|
42354
|
-
dimension: "information",
|
|
42355
|
-
factor: 1024 ** 2,
|
|
42356
|
-
offset: 0
|
|
42357
|
-
},
|
|
42358
|
-
GiB: {
|
|
42359
|
-
dimension: "information",
|
|
42360
|
-
factor: 1024 ** 3,
|
|
42361
|
-
offset: 0
|
|
42362
|
-
},
|
|
42363
|
-
TiB: {
|
|
42364
|
-
dimension: "information",
|
|
42365
|
-
factor: 1024 ** 4,
|
|
42366
|
-
offset: 0
|
|
42367
|
-
},
|
|
42368
|
-
kB: {
|
|
42369
|
-
dimension: "information",
|
|
42370
|
-
factor: 1e3,
|
|
42371
|
-
offset: 0
|
|
42372
|
-
},
|
|
42373
|
-
MB: {
|
|
42374
|
-
dimension: "information",
|
|
42375
|
-
factor: 1e6,
|
|
42376
|
-
offset: 0
|
|
42377
|
-
},
|
|
42378
|
-
GB: {
|
|
42379
|
-
dimension: "information",
|
|
42380
|
-
factor: 1e9,
|
|
42381
|
-
offset: 0
|
|
42382
|
-
},
|
|
42383
|
-
"°": {
|
|
42384
|
-
dimension: "angle",
|
|
42385
|
-
factor: 1,
|
|
42386
|
-
offset: 0
|
|
42387
|
-
},
|
|
42388
|
-
dBFS: {
|
|
42389
|
-
dimension: "sound-level",
|
|
42390
|
-
factor: 1,
|
|
42391
|
-
offset: 0
|
|
42392
|
-
},
|
|
42393
|
-
dBm: {
|
|
42394
|
-
dimension: "signal-level",
|
|
42395
|
-
factor: 1,
|
|
42396
|
-
offset: 0
|
|
42397
|
-
},
|
|
42398
|
-
mired: {
|
|
42399
|
-
dimension: "colour-temperature",
|
|
42400
|
-
factor: 1,
|
|
42401
|
-
offset: 0
|
|
42402
|
-
},
|
|
42403
|
-
kbps: {
|
|
42404
|
-
dimension: "bitrate",
|
|
42405
|
-
factor: 1,
|
|
42406
|
-
offset: 0
|
|
42407
|
-
},
|
|
42408
|
-
Mbps: {
|
|
42409
|
-
dimension: "bitrate",
|
|
42410
|
-
factor: 1e3,
|
|
42411
|
-
offset: 0
|
|
42412
|
-
},
|
|
42413
|
-
fps: {
|
|
42414
|
-
dimension: "rate",
|
|
42415
|
-
factor: 1,
|
|
42416
|
-
offset: 0
|
|
42417
|
-
}
|
|
42418
|
-
};
|
|
42419
|
-
/** Resolve a unit's `UnitSpec`, or `undefined` when the spelling is unknown. */
|
|
42420
|
-
function specFor(unit) {
|
|
42421
|
-
return Object.hasOwn(UNIT_TABLE, unit) ? UNIT_TABLE[unit] : void 0;
|
|
42422
|
-
}
|
|
42423
|
-
/** Value in `spec`'s unit → its dimension's canonical unit. */
|
|
42424
|
-
function toCanonical(value, spec) {
|
|
42425
|
-
return value * spec.factor + spec.offset;
|
|
42426
|
-
}
|
|
42427
|
-
/** Canonical-unit value → the unit described by `spec`. */
|
|
42428
|
-
function fromCanonical(canonical, spec) {
|
|
42429
|
-
return (canonical - spec.offset) / spec.factor;
|
|
42430
|
-
}
|
|
42431
|
-
/**
|
|
42432
|
-
* Graceful variant for the render path: returns the converted value, or
|
|
42433
|
-
* `undefined` when the conversion is refused (unknown unit / cross-dimension).
|
|
42434
|
-
* Never throws — a render caller falls back to the raw value + source unit.
|
|
42435
|
-
*/
|
|
42436
|
-
function tryConvertUnit(value, from, to) {
|
|
42437
|
-
if (from === to) return value;
|
|
42438
|
-
const fromSpec = specFor(from);
|
|
42439
|
-
if (!fromSpec) return void 0;
|
|
42440
|
-
const toSpec = specFor(to);
|
|
42441
|
-
if (!toSpec) return void 0;
|
|
42442
|
-
if (fromSpec.dimension !== toSpec.dimension) return void 0;
|
|
42443
|
-
return fromCanonical(toCanonical(value, fromSpec), toSpec);
|
|
42444
|
-
}
|
|
42445
|
-
/**
|
|
42446
42295
|
* A number a person types for a physical quantity — the input side of the
|
|
42447
42296
|
* value + unit contract (D972).
|
|
42448
42297
|
*
|
|
@@ -44130,18 +43979,6 @@ var ScopedSettingsDeclarationSchema = object({
|
|
|
44130
43979
|
/** Standard success response for update operations. */
|
|
44131
43980
|
var SettingsUpdateResultSchema = object({ success: literal(true) });
|
|
44132
43981
|
method(object({
|
|
44133
|
-
addonId: string(),
|
|
44134
|
-
nodeId: string().optional(),
|
|
44135
|
-
overlay: record(string(), unknown()).optional(),
|
|
44136
|
-
cap: string().optional()
|
|
44137
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
44138
|
-
addonId: string(),
|
|
44139
|
-
nodeId: string().optional(),
|
|
44140
|
-
patch: SettingsPatchSchema
|
|
44141
|
-
}), SettingsUpdateResultSchema, {
|
|
44142
|
-
kind: "mutation",
|
|
44143
|
-
auth: "admin"
|
|
44144
|
-
}), method(object({
|
|
44145
43982
|
addonId: string(),
|
|
44146
43983
|
cap: string(),
|
|
44147
43984
|
scope: ScopedSettingsScopeSchema,
|
|
@@ -44164,9 +44001,6 @@ method(object({
|
|
|
44164
44001
|
scope: ScopedSettingsScopeSchema,
|
|
44165
44002
|
nodeId: string().optional()
|
|
44166
44003
|
}), record(string(), unknown()).nullable()), method(object({
|
|
44167
|
-
addonId: string(),
|
|
44168
|
-
nodeId: string().optional()
|
|
44169
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
44170
44004
|
addonId: string(),
|
|
44171
44005
|
nodeId: string().optional(),
|
|
44172
44006
|
instance: IntegrationInstanceRefSchema
|
|
@@ -45506,7 +45340,7 @@ var BackupDestinationInfoSchema = object({
|
|
|
45506
45340
|
id: string(),
|
|
45507
45341
|
/**
|
|
45508
45342
|
* Manifest id of the owning addon. The Settings button on the
|
|
45509
|
-
* destination card opens that addon's
|
|
45343
|
+
* destination card opens that addon's scoped settings panel.
|
|
45510
45344
|
*/
|
|
45511
45345
|
addonId: string(),
|
|
45512
45346
|
/** Operator-toggled enable flag from the destination-policy table. */
|
|
@@ -49948,6 +49782,7 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
|
|
|
49948
49782
|
kind: "mutation",
|
|
49949
49783
|
auth: "admin"
|
|
49950
49784
|
});
|
|
49785
|
+
var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
49951
49786
|
/**
|
|
49952
49787
|
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
49953
49788
|
*
|
|
@@ -50341,6 +50176,12 @@ var DeviceInfoSchema = object({
|
|
|
50341
50176
|
addonId: string(),
|
|
50342
50177
|
type: _enum(DeviceType),
|
|
50343
50178
|
name: string(),
|
|
50179
|
+
/** The name a value template uses for this device (`{{ stufa_veranda.temperature }}`),
|
|
50180
|
+
* entity_id style. Generated once from the name at first registration, unique
|
|
50181
|
+
* cluster-wide, editable through `setAlias`, NOT changed by a rename (D1021).
|
|
50182
|
+
* Optional: a record produced by an older build omits it until the boot
|
|
50183
|
+
* backfill has run. */
|
|
50184
|
+
alias: DeviceAliasSchema.optional(),
|
|
50344
50185
|
/** Operator-organisational location label. `null` when unset. */
|
|
50345
50186
|
location: string().nullable(),
|
|
50346
50187
|
/** Soft-disabled flag. */
|
|
@@ -50660,6 +50501,25 @@ method(object({
|
|
|
50660
50501
|
}), _void(), {
|
|
50661
50502
|
kind: "mutation",
|
|
50662
50503
|
auth: "admin"
|
|
50504
|
+
}), method(object({
|
|
50505
|
+
deviceId: number(),
|
|
50506
|
+
alias: string()
|
|
50507
|
+
}), discriminatedUnion("ok", [object({
|
|
50508
|
+
ok: literal(true),
|
|
50509
|
+
alias: DeviceAliasSchema
|
|
50510
|
+
}), object({
|
|
50511
|
+
ok: literal(false),
|
|
50512
|
+
reason: _enum([
|
|
50513
|
+
"empty",
|
|
50514
|
+
"too-long",
|
|
50515
|
+
"grammar",
|
|
50516
|
+
"reserved",
|
|
50517
|
+
"taken"
|
|
50518
|
+
]),
|
|
50519
|
+
takenBy: number().optional()
|
|
50520
|
+
})]), {
|
|
50521
|
+
kind: "mutation",
|
|
50522
|
+
auth: "admin"
|
|
50663
50523
|
}), method(object({
|
|
50664
50524
|
deviceId: number(),
|
|
50665
50525
|
location: string().nullable()
|
|
@@ -76007,13 +75867,6 @@ Object.freeze({
|
|
|
76007
75867
|
access: "view",
|
|
76008
75868
|
role: "admin"
|
|
76009
75869
|
},
|
|
76010
|
-
"addonSettings.getGlobalSettings": {
|
|
76011
|
-
capName: "addon-settings",
|
|
76012
|
-
capScope: "system",
|
|
76013
|
-
addonId: null,
|
|
76014
|
-
access: "view",
|
|
76015
|
-
role: "admin"
|
|
76016
|
-
},
|
|
76017
75870
|
"addonSettings.getIntegrationFormSchema": {
|
|
76018
75871
|
capName: "addon-settings",
|
|
76019
75872
|
capScope: "system",
|
|
@@ -76021,13 +75874,6 @@ Object.freeze({
|
|
|
76021
75874
|
access: "view",
|
|
76022
75875
|
role: "admin"
|
|
76023
75876
|
},
|
|
76024
|
-
"addonSettings.getIntegrationSettings": {
|
|
76025
|
-
capName: "addon-settings",
|
|
76026
|
-
capScope: "system",
|
|
76027
|
-
addonId: null,
|
|
76028
|
-
access: "view",
|
|
76029
|
-
role: "admin"
|
|
76030
|
-
},
|
|
76031
75877
|
"addonSettings.getScopedSettings": {
|
|
76032
75878
|
capName: "addon-settings",
|
|
76033
75879
|
capScope: "system",
|
|
@@ -76063,13 +75909,6 @@ Object.freeze({
|
|
|
76063
75909
|
access: "create",
|
|
76064
75910
|
role: "admin"
|
|
76065
75911
|
},
|
|
76066
|
-
"addonSettings.updateGlobalSettings": {
|
|
76067
|
-
capName: "addon-settings",
|
|
76068
|
-
capScope: "system",
|
|
76069
|
-
addonId: null,
|
|
76070
|
-
access: "create",
|
|
76071
|
-
role: "admin"
|
|
76072
|
-
},
|
|
76073
75912
|
"addonSettings.updateScopedSettings": {
|
|
76074
75913
|
capName: "addon-settings",
|
|
76075
75914
|
capScope: "system",
|
|
@@ -78240,6 +78079,13 @@ Object.freeze({
|
|
|
78240
78079
|
access: "create",
|
|
78241
78080
|
role: "admin"
|
|
78242
78081
|
},
|
|
78082
|
+
"deviceManager.setAlias": {
|
|
78083
|
+
capName: "device-manager",
|
|
78084
|
+
capScope: "system",
|
|
78085
|
+
addonId: null,
|
|
78086
|
+
access: "create",
|
|
78087
|
+
role: "admin"
|
|
78088
|
+
},
|
|
78243
78089
|
"deviceManager.setChildLayout": {
|
|
78244
78090
|
capName: "device-manager",
|
|
78245
78091
|
capScope: "system",
|
|
@@ -85981,6 +85827,7 @@ function offered(received) {
|
|
|
85981
85827
|
};
|
|
85982
85828
|
}
|
|
85983
85829
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
85830
|
+
string().min(1).max(4096);
|
|
85984
85831
|
Object.freeze({
|
|
85985
85832
|
"accessories.getStatus": [{
|
|
85986
85833
|
name: "deviceId",
|
|
@@ -86664,6 +86511,11 @@ Object.freeze({
|
|
|
86664
86511
|
form: "single",
|
|
86665
86512
|
optional: false
|
|
86666
86513
|
}],
|
|
86514
|
+
"deviceManager.setAlias": [{
|
|
86515
|
+
name: "deviceId",
|
|
86516
|
+
form: "single",
|
|
86517
|
+
optional: false
|
|
86518
|
+
}],
|
|
86667
86519
|
"deviceManager.setChildLayout": [{
|
|
86668
86520
|
name: "deviceId",
|
|
86669
86521
|
form: "single",
|
|
@@ -90349,7 +90201,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
90349
90201
|
capability: adminUiCapability,
|
|
90350
90202
|
provider: {
|
|
90351
90203
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
90352
|
-
getVersion: async () => ({ version: "1.2.
|
|
90204
|
+
getVersion: async () => ({ version: "1.2.614" })
|
|
90353
90205
|
}
|
|
90354
90206
|
}];
|
|
90355
90207
|
}
|