@camstack/addon-admin-ui 1.2.633 → 1.2.635
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 +19 -0
- package/dist/assets/Addons-it-7xyWO.js +5 -0
- package/dist/assets/{AdminPage-qJOk9zLV.js → AdminPage-C28MWSEJ.js} +1 -1
- package/dist/assets/{AdminSectionedPage-6ia7-NOq.js → AdminSectionedPage-N7ZzoaCA.js} +1 -1
- package/dist/assets/AiProfiles-DvvGmPqc.js +3 -0
- package/dist/assets/Authentication-CdkAuFpQ.js +1 -0
- package/dist/assets/Build-Dj-J_LDL.js +39 -0
- package/dist/assets/Calendars-Bl2YxKcY.js +1 -0
- package/dist/assets/{CameraGrids-6qF94V5t.js → CameraGrids-BmuQfQwD.js} +1 -1
- package/dist/assets/Cluster-BHVazygn.js +1 -0
- package/dist/assets/CompositionBlockEditor-BJo6-Hg-.js +2 -0
- package/dist/assets/{CompositionEditorPage-CWZ3xs4r.js → CompositionEditorPage-CSgC3j3b.js} +1 -1
- package/dist/assets/Data-DMpGwsud.js +2 -0
- package/dist/assets/DeviceDetail-C5qPLFqX.js +2 -0
- package/dist/assets/{Devices-BOH8vYTs.js → Devices-DfUS0XHQ.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-C_vCpba9.js → EmbedPlayerPage-CXqkku3M.js} +1 -1
- package/dist/assets/History-Bu9dClRP.js +1 -0
- package/dist/assets/Identity-P-9FfQY9.js +1 -0
- package/dist/assets/InstancesTable-D2wYEpEv.js +1 -0
- package/dist/assets/IntegrationDetail-Ckv-pM-X.js +1 -0
- package/dist/assets/Integrations-BAN_fC9m.js +1 -0
- package/dist/assets/Integrations-DM8ICLWP.js +2 -0
- package/dist/assets/{Library-CjMpU1z4.js → Library-Boz_glAa.js} +1 -1
- package/dist/assets/Locations-G2ggYLH1.js +3 -0
- package/dist/assets/{Logs-DdYenNXH.js → Logs-BUWUMnM2.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-BUlGep7c.js → MaskShapeCanvas-GSzxL0sb.js} +1 -1
- package/dist/assets/{MotionZonesSettings-D-p5zCf3.js → MotionZonesSettings-zuXI8WDy.js} +1 -1
- package/dist/assets/MyAccess-BEvsl84G.js +2 -0
- package/dist/assets/Network-Q3AVjSDy.js +1 -0
- package/dist/assets/NodeAddonsSettingsPanel-DY9KrknX.js +1 -0
- package/dist/assets/Notifications-B09FRQLf.js +1 -0
- package/dist/assets/{Pipeline-6wFxNxvt.js → Pipeline-DzMkRdB8.js} +1 -1
- package/dist/assets/{PrivacyMaskSettings-Dg6-TYO8.js → PrivacyMaskSettings-B4NUHvPx.js} +1 -1
- package/dist/assets/Recordings-d918Fao6.js +1 -0
- package/dist/assets/{ScanSubnetEditor-OCs9fxGF.js → ScanSubnetEditor-C7Np_Myd.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-BN2MUyfb.js → SceneMonitorEditor-D5EfTLG4.js} +1 -1
- package/dist/assets/SessionsList--ByXUdry.js +2 -0
- package/dist/assets/{Showroom-WT2aGukX.js → Showroom-CpQU2YYQ.js} +1 -1
- package/dist/assets/{StorageLocationsTable-v7uRI6wX.js → StorageLocationsTable-Cb-zvsAa.js} +1 -1
- package/dist/assets/{System-C-Wi0R37.js → System-c-od2eUi.js} +1 -1
- package/dist/assets/{Templates-BM9fxZRe.js → Templates-DbOHcEoP.js} +1 -1
- package/dist/assets/{Terminal-C847xq6i.js → Terminal-vgjKTZ6i.js} +3 -3
- package/dist/assets/{TrainingProviders-BH0hkh_G.js → TrainingProviders-DwApoYD1.js} +1 -1
- package/dist/assets/{Viewer-QrN8oh5h.js → Viewer-wmQSDFx4.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CwnnOJMX.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BJYMJYN7.js} +1 -1
- package/dist/assets/{action-draft-Crz0i79d.js → action-draft-SrqFGFVW.js} +1 -1
- package/dist/assets/{ai-page.helpers-Be8k9kZ4.js → ai-page.helpers-C_Yr1xBa.js} +1 -1
- package/dist/assets/{archive-DGPpEtwM.js → archive-CnD3EIbI.js} +1 -1
- package/dist/assets/{assignment-candidates-ClbN3vh0.js → assignment-candidates-JnnkKMNk.js} +1 -1
- package/dist/assets/{authed-media-CUTTPdjp.js → authed-media-b_KsU6o6.js} +1 -1
- package/dist/assets/{bell-off-BaiHllVH.js → bell-off-DXoIeft3.js} +1 -1
- package/dist/assets/{board-model-Ccqx56nE.js → board-model-Dhq6ifuR.js} +1 -1
- package/dist/assets/{boxes-DnnTX6mW.js → boxes-2HiFvbRi.js} +1 -1
- package/dist/assets/{calendar-clock-NTy1EQqz.js → calendar-clock-BdVpCjGZ.js} +1 -1
- package/dist/assets/{circle-arrow-up-Cllm80_u.js → circle-arrow-up-DtE1a3jK.js} +1 -1
- package/dist/assets/circle-slash-DD5DGeBE.js +1 -0
- package/dist/assets/client-DtixJSIH.js +839 -0
- package/dist/assets/create-composition-CdHcgM5T.js +2 -0
- package/dist/assets/crop-DtJsKDRR.js +1 -0
- package/dist/assets/{database-zap-A6aYF05g.js → database-zap-hwvWqFAr.js} +1 -1
- package/dist/assets/{device-integration-icon-DVMYz-vI.js → device-integration-icon-JcbJW-sx.js} +1 -1
- package/dist/assets/device-picker-model-BhZ3nUKX.js +1 -0
- package/dist/assets/dist-DN98Ncd8.js +839 -0
- package/dist/assets/{dist-Bc83aezd.js → dist-DtXy-_hV.js} +1 -1
- package/dist/assets/{eraser-CPpEl9FB.js → eraser-0igUeEn4.js} +1 -1
- package/dist/assets/{file-up-EKvcLASy.js → file-up-Bim5lEKk.js} +1 -1
- package/dist/assets/{format-BvHHmnnW.js → format-ClefNnBA.js} +1 -1
- package/dist/assets/{framework-packages-DoBKjjer.js → framework-packages-B0ugw-Ay.js} +1 -1
- package/dist/assets/{hard-drive-download-CBedquYl.js → hard-drive-download-BqaDoqeT.js} +1 -1
- package/dist/assets/{hostInit-BGVjaa92.js → hostInit-Zt1c3yOY.js} +1 -1
- package/dist/assets/i18n-xBJb_nV7.js +1 -0
- package/dist/assets/icons-DWvhrrHw.js +1 -0
- package/dist/assets/index-BZIzoUuI.css +2 -0
- package/dist/assets/index-IUYaCNr3.js +4 -0
- package/dist/assets/{key-Dks99Kuc.js → key-OpPYfUdn.js} +1 -1
- package/dist/assets/{languages-D8mCMm-X.js → languages-NKFv36FH.js} +1 -1
- package/dist/assets/{layers-CyOvLvrD.js → layers-BYYEeSk8.js} +1 -1
- package/dist/assets/{link-2-off-CCNPt42m.js → link-2-off-BQUSK1Q1.js} +1 -1
- package/dist/assets/{linked-devices-model-xeSRaZ5b.js → linked-devices-model-CNibZiAj.js} +1 -1
- package/dist/assets/{memory-stick-RflhALyu.js → memory-stick-FrjSgbSx.js} +1 -1
- package/dist/assets/{message-square-plus-sPbUjNji.js → message-square-plus-R1KzFT_3.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-85ddd095.js → mf-entry-bootstrap-0-b11ec2f0.js} +2 -2
- package/dist/assets/{mic-off-Cf-DmhrZ.js → mic-off-D-uv270W.js} +1 -1
- package/dist/assets/{monitor-off-DGKq_9gK.js → monitor-off-23GJfNCk.js} +1 -1
- package/dist/assets/{monitor-smartphone-DBKTTNaQ.js → monitor-smartphone-Bv9btLO7.js} +1 -1
- package/dist/assets/mount-BhZ3nUKX.js +1 -0
- package/dist/assets/{notification-rule-status-Dr5Ltfqw.js → notification-rule-status-CSdUF_tS.js} +1 -1
- package/dist/assets/{player-overlays-BKIlLQtG.js → player-overlays-DS6dT7SD.js} +1 -1
- package/dist/assets/remoteEntry-C8Nu6Wkp.js +1 -0
- package/dist/assets/{ruler-B8ZZMxwR.js → ruler-B5-PAq3K.js} +1 -1
- package/dist/assets/{scan-eye-D1ZsIGgI.js → scan-eye-B6Jzl98g.js} +1 -1
- package/dist/assets/{scissors-DwgJrnip.js → scissors-DSuf9Nu7.js} +1 -1
- package/dist/assets/{search-x-Bj7fMm_4.js → search-x-DikQGG4z.js} +1 -1
- package/dist/assets/{send-DyRREUxn.js → send-DjOMX7BE.js} +1 -1
- package/dist/assets/{settings-2-B8eP_-6i.js → settings-2-RGt6KSqH.js} +1 -1
- package/dist/assets/{shapes-4U4P5B81.js → shapes-C2fW7MJb.js} +1 -1
- package/dist/assets/{sigma-HiZmJE9-.js → sigma-BhKqPZ7F.js} +1 -1
- package/dist/assets/src-D1sUPCi1.js +169 -0
- package/dist/assets/{sso-popup-C4lkcIhh.js → sso-popup-C1hR2YBu.js} +1 -1
- package/dist/assets/{step-inspector-model-lh7rNx6M.js → step-inspector-model-BuQhYJra.js} +1 -1
- package/dist/assets/{table-2-CiaXJiWX.js → table-2-CMyjawoR.js} +1 -1
- package/dist/assets/{timer-reset-Ceu_GJmW.js → timer-reset-B7vcTXYk.js} +1 -1
- package/dist/assets/{ungroup-ErdVuJVk.js → ungroup-cZrrI4SI.js} +1 -1
- package/dist/assets/{unlink-BPj-qE3a.js → unlink-CU8i3fPe.js} +1 -1
- package/dist/assets/{usb-CcWPr3D2.js → usb-CZTccxRm.js} +1 -1
- package/dist/assets/{use-scenes-feed-GqqV5spb.js → use-scenes-feed-DzJr-F4l.js} +1 -1
- package/dist/assets/{use-stationary-objects-cBSXDbXO.js → use-stationary-objects-DWdYOvvX.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-Cdkfxxp-.js → useAdminDeviceRemoval-BRmWRglP.js} +1 -1
- package/dist/assets/useEventInvalidation-BhZ3nUKX.js +1 -0
- package/dist/assets/useNodeUrlSelection-BHycntFj.js +1 -0
- package/dist/assets/useTemplateSave-BIt_84s3.js +1 -0
- package/dist/assets/user-round-Cdt6x46z.js +1 -0
- package/dist/assets/{user-x-DEwjaZ8m.js → user-x-C8J-JEQi.js} +1 -1
- package/dist/assets/{variable-BRyqOw_Y.js → variable-B1tjLNN5.js} +1 -1
- package/dist/assets/{video-KcKb1EGQ.js → video-lKXIQOeO.js} +1 -1
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DYoAuAOy.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-aKVCr1TV.js} +2 -2
- package/dist/index.html +10 -10
- package/dist/server/addon.js +487 -190
- package/package.json +2 -2
- package/dist/assets/Addons-DAtKqTxT.js +0 -5
- package/dist/assets/AiProfiles-DXlOmw6q.js +0 -3
- package/dist/assets/Authentication-DG_r2ZOT.js +0 -1
- package/dist/assets/Build-BWUDROVR.js +0 -39
- package/dist/assets/Calendars-wR9C5_Q6.js +0 -1
- package/dist/assets/Cluster-BBoz1LE8.js +0 -1
- package/dist/assets/CompositionBlockEditor-DXLfPQlx.js +0 -2
- package/dist/assets/Data-g7Kbrph5.js +0 -2
- package/dist/assets/DeviceDetail-B2c4ckLc.js +0 -2
- package/dist/assets/History-BsjInzOS.js +0 -1
- package/dist/assets/Identity-BgGgOHnB.js +0 -1
- package/dist/assets/InstanceSwitchCell-BQoXIdUa.js +0 -1
- package/dist/assets/InstancesTable-CNSVtHMp.js +0 -1
- package/dist/assets/IntegrationDetail-BrNTNbjW.js +0 -1
- package/dist/assets/IntegrationHub-Bf1lt0KM.js +0 -1
- package/dist/assets/Integrations-93yE-RaT.js +0 -2
- package/dist/assets/Integrations-Cr9Rw6WQ.js +0 -1
- package/dist/assets/Locations-C1_w99Cs.js +0 -3
- package/dist/assets/MyAccess-D0-76Kec.js +0 -2
- package/dist/assets/Network-DbuDxhSk.js +0 -1
- package/dist/assets/NodeAddonsSettingsPanel-CsKoP3i9.js +0 -1
- package/dist/assets/Notifications-CEA9sMPD.js +0 -1
- package/dist/assets/Recordings-BetXUQK1.js +0 -1
- package/dist/assets/SessionsList-CYT6gOnD.js +0 -2
- package/dist/assets/circle-slash-no8PPK_r.js +0 -1
- package/dist/assets/client-DOy-5eny.js +0 -839
- package/dist/assets/create-composition-sKLGvMam.js +0 -2
- package/dist/assets/crop-DgEmL35-.js +0 -1
- package/dist/assets/device-picker-model-B5S9Xa-E.js +0 -1
- package/dist/assets/dist-V2fdBIvE.js +0 -839
- package/dist/assets/i18n-DS8SDP-9.js +0 -1
- package/dist/assets/icons-BPWrt0Wo.js +0 -1
- package/dist/assets/index-Bs8L45gs.js +0 -4
- package/dist/assets/index-CYCJ_V8d.css +0 -2
- package/dist/assets/key-square-BkCelpwh.js +0 -1
- package/dist/assets/mount-B5S9Xa-E.js +0 -1
- package/dist/assets/remoteEntry-Cl4QxImR.js +0 -1
- package/dist/assets/src-LHvMQiO5.js +0 -169
- package/dist/assets/useEventInvalidation-B5S9Xa-E.js +0 -1
- package/dist/assets/useNodeUrlSelection-DGJHAY81.js +0 -1
- package/dist/assets/useTemplateSave-CSxF4TWe.js +0 -1
- package/dist/assets/user-round-D-hD-jsE.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -803,7 +803,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
803
803
|
return EventCategory;
|
|
804
804
|
}({});
|
|
805
805
|
//#endregion
|
|
806
|
-
//#region ../types/dist/composed-stable-id-
|
|
806
|
+
//#region ../types/dist/composed-stable-id-jnvhwGoH.mjs
|
|
807
807
|
/**
|
|
808
808
|
import { errMsg } from '@camstack/types'
|
|
809
809
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -1091,6 +1091,10 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1091
1091
|
/** Robot mower exposes targeted mowing (all-area / zones / edges /
|
|
1092
1092
|
* spots) — gates the Mow action + map selectors. */
|
|
1093
1093
|
DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
|
|
1094
|
+
/** The device has a drive/navigation surface (`navigation` cap): a robot camera. */
|
|
1095
|
+
DeviceFeature["Navigation"] = "navigation";
|
|
1096
|
+
/** The device has a network-link reading (`network-link` cap). */
|
|
1097
|
+
DeviceFeature["NetworkLink"] = "network-link";
|
|
1094
1098
|
return DeviceFeature;
|
|
1095
1099
|
}({});
|
|
1096
1100
|
/**
|
|
@@ -5890,7 +5894,7 @@ var ZodIssueCode = {
|
|
|
5890
5894
|
var ZodFirstPartyTypeKind;
|
|
5891
5895
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5892
5896
|
//#endregion
|
|
5893
|
-
//#region ../types/dist/sleep-
|
|
5897
|
+
//#region ../types/dist/sleep-Cw1uUXvl.mjs
|
|
5894
5898
|
/**
|
|
5895
5899
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5896
5900
|
* window to float samples (D455).
|
|
@@ -14121,6 +14125,7 @@ var SYSTEM_CAP_VOCABULARY = {
|
|
|
14121
14125
|
backup: system("system backups — run and restored from the Backups page"),
|
|
14122
14126
|
broker: system("message-broker connections — configured, not actuated"),
|
|
14123
14127
|
"calendar-source": system(INTERNAL),
|
|
14128
|
+
"cluster-update": system(CLUSTER),
|
|
14124
14129
|
calendars: system("calendars feed schedules and conditions, not device actions"),
|
|
14125
14130
|
composer: system("device composition — an authoring tool, not an action"),
|
|
14126
14131
|
"core-blocks": system(INTERNAL),
|
|
@@ -14406,6 +14411,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
14406
14411
|
"camera-streams",
|
|
14407
14412
|
"carbon-monoxide",
|
|
14408
14413
|
"climate-control",
|
|
14414
|
+
"cluster-update",
|
|
14409
14415
|
"color",
|
|
14410
14416
|
"composer",
|
|
14411
14417
|
"connectivity",
|
|
@@ -16503,7 +16509,7 @@ Object.freeze({
|
|
|
16503
16509
|
}
|
|
16504
16510
|
});
|
|
16505
16511
|
//#endregion
|
|
16506
|
-
//#region ../types/dist/
|
|
16512
|
+
//#region ../types/dist/implemented-methods-OitwyO1Y.mjs
|
|
16507
16513
|
/**
|
|
16508
16514
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
16509
16515
|
*
|
|
@@ -18439,18 +18445,43 @@ var TargetKindLevelSchema = object({
|
|
|
18439
18445
|
requires: array(string()).optional(),
|
|
18440
18446
|
description: string().optional()
|
|
18441
18447
|
});
|
|
18448
|
+
/** Attachment capabilities for a kind (drives the degrade engine + test panel). */
|
|
18449
|
+
var TargetKindAttachmentsCapsSchema = object({
|
|
18450
|
+
mediaTypes: array(AttachmentMediaTypeSchema),
|
|
18451
|
+
mode: _enum([
|
|
18452
|
+
"url",
|
|
18453
|
+
"bytes",
|
|
18454
|
+
"both"
|
|
18455
|
+
]),
|
|
18456
|
+
max: number$1().int().nonnegative(),
|
|
18457
|
+
maxBytes: number$1().int().positive().optional()
|
|
18458
|
+
});
|
|
18459
|
+
/**
|
|
18460
|
+
* Which TEXT fields a kind delivers (#483). Alexa speaks a title and nothing
|
|
18461
|
+
* else; a push service shows both.
|
|
18462
|
+
*
|
|
18463
|
+
* `.optional()` on the caps block, never defaulted: absent = both, which is
|
|
18464
|
+
* what every kind declared before this field meant (D938's rule for a Zod
|
|
18465
|
+
* default on the addon cap path).
|
|
18466
|
+
*/
|
|
18467
|
+
var TargetKindTextCapsSchema = object({
|
|
18468
|
+
title: boolean(),
|
|
18469
|
+
body: boolean()
|
|
18470
|
+
});
|
|
18471
|
+
_enum([
|
|
18472
|
+
"title",
|
|
18473
|
+
"body",
|
|
18474
|
+
"attachments",
|
|
18475
|
+
"actions",
|
|
18476
|
+
"priority",
|
|
18477
|
+
"sound",
|
|
18478
|
+
"clickUrl"
|
|
18479
|
+
]);
|
|
18442
18480
|
/** The full capability block consulted before dispatch. */
|
|
18443
18481
|
var TargetKindCapsSchema = object({
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
"url",
|
|
18448
|
-
"bytes",
|
|
18449
|
-
"both"
|
|
18450
|
-
]),
|
|
18451
|
-
max: number$1().int().nonnegative(),
|
|
18452
|
-
maxBytes: number$1().int().positive().optional()
|
|
18453
|
-
}),
|
|
18482
|
+
/** Text fields this kind delivers (#483). Absent = title AND body. */
|
|
18483
|
+
text: TargetKindTextCapsSchema.optional(),
|
|
18484
|
+
attachments: TargetKindAttachmentsCapsSchema,
|
|
18454
18485
|
/** Max action buttons (0 = none). */
|
|
18455
18486
|
actions: number$1().int().nonnegative(),
|
|
18456
18487
|
/**
|
|
@@ -47601,13 +47632,13 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
|
47601
47632
|
}), _void(), {
|
|
47602
47633
|
kind: "mutation",
|
|
47603
47634
|
auth: "protected"
|
|
47604
|
-
}),
|
|
47635
|
+
}), optionalMethod(object({
|
|
47605
47636
|
deviceId: number$1().int().nonnegative(),
|
|
47606
47637
|
fanMode: string().min(1)
|
|
47607
47638
|
}), _void(), {
|
|
47608
47639
|
kind: "mutation",
|
|
47609
47640
|
auth: "protected"
|
|
47610
|
-
}),
|
|
47641
|
+
}), optionalMethod(object({
|
|
47611
47642
|
deviceId: number$1().int().nonnegative(),
|
|
47612
47643
|
preset: string().min(1)
|
|
47613
47644
|
}), _void(), {
|
|
@@ -47619,26 +47650,26 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
|
47619
47650
|
}), _void(), {
|
|
47620
47651
|
kind: "mutation",
|
|
47621
47652
|
auth: "protected"
|
|
47622
|
-
}),
|
|
47653
|
+
}), optionalMethod(object({
|
|
47623
47654
|
deviceId: number$1().int().nonnegative(),
|
|
47624
47655
|
targetLow: number$1(),
|
|
47625
47656
|
targetHigh: number$1()
|
|
47626
47657
|
}), _void(), {
|
|
47627
47658
|
kind: "mutation",
|
|
47628
47659
|
auth: "protected"
|
|
47629
|
-
}),
|
|
47660
|
+
}), optionalMethod(object({
|
|
47630
47661
|
deviceId: number$1().int().nonnegative(),
|
|
47631
47662
|
targetHumidity: number$1().min(0).max(100)
|
|
47632
47663
|
}), _void(), {
|
|
47633
47664
|
kind: "mutation",
|
|
47634
47665
|
auth: "protected"
|
|
47635
|
-
}),
|
|
47666
|
+
}), optionalMethod(object({
|
|
47636
47667
|
deviceId: number$1().int().nonnegative(),
|
|
47637
47668
|
on: boolean()
|
|
47638
47669
|
}), _void(), {
|
|
47639
47670
|
kind: "mutation",
|
|
47640
47671
|
auth: "protected"
|
|
47641
|
-
}),
|
|
47672
|
+
}), optionalMethod(object({
|
|
47642
47673
|
deviceId: number$1().int().nonnegative(),
|
|
47643
47674
|
on: boolean()
|
|
47644
47675
|
}), _void(), {
|
|
@@ -47646,6 +47677,140 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
|
47646
47677
|
auth: "protected"
|
|
47647
47678
|
});
|
|
47648
47679
|
/**
|
|
47680
|
+
* cluster-update — the ONE flow that brings the whole cluster to a release
|
|
47681
|
+
* (planning#493). Hub-provided (`server-provided`), hub-only: the hub runs
|
|
47682
|
+
* the sequence itself, so the admin UI, the MCP and the CLI all start the same
|
|
47683
|
+
* job and read the same report instead of each driving their own loop.
|
|
47684
|
+
*
|
|
47685
|
+
* 1. backup (`backup.trigger`) — skipped only when the caller says so
|
|
47686
|
+
* 2. the hub's server closure (`applyServerUpdate`); the hub restarts and the
|
|
47687
|
+
* job RESUMES on the new boot, verified against the hub's running version
|
|
47688
|
+
* 3. every online agent behind the target, one at a time, verified: runs the
|
|
47689
|
+
* target, settled, online, and its capabilities registered (D848) — an
|
|
47690
|
+
* agent that comes back capless is a FAILED step, never a done one
|
|
47691
|
+
* 4. every stale addon on the hub (`addons.updatePackage`); agents follow by
|
|
47692
|
+
* reconciliation, which is verified, never pushed
|
|
47693
|
+
*
|
|
47694
|
+
* The job stops on the first failed step with a typed reason (D877). Its state
|
|
47695
|
+
* is durable on the hub and read by RPC (`getClusterUpdateJob`) — events are
|
|
47696
|
+
* telemetry and never carry it (D8, D11).
|
|
47697
|
+
*/
|
|
47698
|
+
/** The steps, in the order they run. */
|
|
47699
|
+
var ClusterUpdateStepKindSchema = _enum([
|
|
47700
|
+
"backup",
|
|
47701
|
+
"hub-server",
|
|
47702
|
+
"agent-server",
|
|
47703
|
+
"addons"
|
|
47704
|
+
]);
|
|
47705
|
+
/**
|
|
47706
|
+
* - `pending` — not reached yet.
|
|
47707
|
+
* - `running` — in progress (for `hub-server`: possibly across the restart).
|
|
47708
|
+
* - `ok` — done AND verified.
|
|
47709
|
+
* - `failed` — did not land; `reason` + `detail` say why. Stops the job.
|
|
47710
|
+
* - `skipped` — not run: nothing to do, opted out, the node is offline, or a
|
|
47711
|
+
* step before it failed. `detail` says which.
|
|
47712
|
+
*/
|
|
47713
|
+
var ClusterUpdateStepStatusSchema = _enum([
|
|
47714
|
+
"pending",
|
|
47715
|
+
"running",
|
|
47716
|
+
"ok",
|
|
47717
|
+
"failed",
|
|
47718
|
+
"skipped"
|
|
47719
|
+
]);
|
|
47720
|
+
/**
|
|
47721
|
+
* Why a step (and with it the job) failed. Stable, greppable; `detail` carries
|
|
47722
|
+
* the prose.
|
|
47723
|
+
*/
|
|
47724
|
+
var ClusterUpdateFailureReasonSchema = _enum([
|
|
47725
|
+
"backup-unavailable",
|
|
47726
|
+
"backup-failed",
|
|
47727
|
+
"server-refused",
|
|
47728
|
+
"server-not-on-target",
|
|
47729
|
+
"node-capless",
|
|
47730
|
+
"status-unreadable",
|
|
47731
|
+
"addon-update-failed",
|
|
47732
|
+
"addons-not-converged",
|
|
47733
|
+
"interrupted"
|
|
47734
|
+
]);
|
|
47735
|
+
var ClusterUpdateStepSchema = object({
|
|
47736
|
+
kind: ClusterUpdateStepKindSchema,
|
|
47737
|
+
/** The node the step acts on; absent for `backup` and `addons`. */
|
|
47738
|
+
nodeId: string().optional(),
|
|
47739
|
+
status: ClusterUpdateStepStatusSchema,
|
|
47740
|
+
/** One line for the operator: what happened, or why not. */
|
|
47741
|
+
detail: string(),
|
|
47742
|
+
reason: ClusterUpdateFailureReasonSchema.optional(),
|
|
47743
|
+
/** `hub-server` / `agent-server`: the version the node ran before. */
|
|
47744
|
+
fromVersion: string().nullable().optional(),
|
|
47745
|
+
/** `addons`: the packages this step updates, `name from -> to`. */
|
|
47746
|
+
packages: array(string()).readonly().optional(),
|
|
47747
|
+
startedAt: number$1().optional(),
|
|
47748
|
+
finishedAt: number$1().optional()
|
|
47749
|
+
});
|
|
47750
|
+
var ClusterUpdateJobStateSchema = _enum([
|
|
47751
|
+
"running",
|
|
47752
|
+
"succeeded",
|
|
47753
|
+
"failed"
|
|
47754
|
+
]);
|
|
47755
|
+
var ClusterUpdateJobSchema = object({
|
|
47756
|
+
id: string(),
|
|
47757
|
+
state: ClusterUpdateJobStateSchema,
|
|
47758
|
+
/** The server version every node is brought to. */
|
|
47759
|
+
targetVersion: string(),
|
|
47760
|
+
/** Who started it (the user name, or `system`). */
|
|
47761
|
+
requestedBy: string(),
|
|
47762
|
+
startedAt: number$1(),
|
|
47763
|
+
finishedAt: number$1().optional(),
|
|
47764
|
+
/** Every step, in run order; later steps stay `pending` while it runs. */
|
|
47765
|
+
steps: array(ClusterUpdateStepSchema).readonly(),
|
|
47766
|
+
/** On `failed`: the step that stopped it (`nodeId` or the step kind). */
|
|
47767
|
+
stoppedAt: string().optional(),
|
|
47768
|
+
reason: ClusterUpdateFailureReasonSchema.optional(),
|
|
47769
|
+
/** Agents offline when the plan was read: never touched. */
|
|
47770
|
+
skippedOffline: array(string()).readonly()
|
|
47771
|
+
});
|
|
47772
|
+
var ClusterUpdateOptionsSchema = object({
|
|
47773
|
+
/** Explicit server target; omitted = the hub's latest registry check. */
|
|
47774
|
+
version: string().optional(),
|
|
47775
|
+
/** Update the addons too (default true). */
|
|
47776
|
+
addons: boolean().optional(),
|
|
47777
|
+
/**
|
|
47778
|
+
* Back up before touching anything (default true). `false` is an explicit
|
|
47779
|
+
* operator opt-out; a missing backup provider is otherwise a failure.
|
|
47780
|
+
*/
|
|
47781
|
+
backup: boolean().optional()
|
|
47782
|
+
});
|
|
47783
|
+
/** Why a plan cannot start. */
|
|
47784
|
+
var ClusterUpdateBlockerSchema = _enum([
|
|
47785
|
+
"no-target",
|
|
47786
|
+
"node-busy",
|
|
47787
|
+
"job-running",
|
|
47788
|
+
"nothing-to-do",
|
|
47789
|
+
"status-unreadable"
|
|
47790
|
+
]);
|
|
47791
|
+
var ClusterUpdatePlanSchema = object({
|
|
47792
|
+
/** `null` when no target could be resolved (`blocker: 'no-target'`). */
|
|
47793
|
+
targetVersion: string().nullable(),
|
|
47794
|
+
/** The steps the job WOULD run, all `pending` (or `skipped` with a reason). */
|
|
47795
|
+
steps: array(ClusterUpdateStepSchema).readonly(),
|
|
47796
|
+
skippedOffline: array(string()).readonly(),
|
|
47797
|
+
/** `null` = the plan can start. */
|
|
47798
|
+
blocker: ClusterUpdateBlockerSchema.nullable(),
|
|
47799
|
+
/** Prose for `blocker`. */
|
|
47800
|
+
blockerDetail: string().nullable()
|
|
47801
|
+
});
|
|
47802
|
+
var StartClusterUpdateResultSchema = object({
|
|
47803
|
+
accepted: boolean(),
|
|
47804
|
+
/** The job to follow with `getClusterUpdateJob`; `null` when refused. */
|
|
47805
|
+
jobId: string().nullable(),
|
|
47806
|
+
blocker: ClusterUpdateBlockerSchema.nullable(),
|
|
47807
|
+
message: string()
|
|
47808
|
+
});
|
|
47809
|
+
method(ClusterUpdateOptionsSchema, ClusterUpdatePlanSchema, { auth: "admin" }), method(ClusterUpdateOptionsSchema, StartClusterUpdateResultSchema, {
|
|
47810
|
+
kind: "mutation",
|
|
47811
|
+
auth: "admin"
|
|
47812
|
+
}), method(object({ jobId: string().optional() }), ClusterUpdateJobSchema.nullable(), { auth: "admin" });
|
|
47813
|
+
/**
|
|
47649
47814
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
47650
47815
|
* (level) on the same device — `switch` toggles the bulb, `brightness`
|
|
47651
47816
|
* sets the dim level, this cap sets the chromaticity.
|
|
@@ -48504,22 +48669,22 @@ var stepInput = object({
|
|
|
48504
48669
|
steps: number$1().int().min(1).max(50).default(1)
|
|
48505
48670
|
});
|
|
48506
48671
|
var deviceOnly = object({ deviceId: number$1().int().nonnegative() });
|
|
48507
|
-
DeviceType.MediaPlayer,
|
|
48672
|
+
DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
|
|
48508
48673
|
kind: "mutation",
|
|
48509
48674
|
auth: "protected"
|
|
48510
|
-
}),
|
|
48675
|
+
}), optionalMethod(deviceOnly, _void(), {
|
|
48511
48676
|
kind: "mutation",
|
|
48512
48677
|
auth: "protected"
|
|
48513
|
-
}),
|
|
48678
|
+
}), optionalMethod(stepInput, _void(), {
|
|
48514
48679
|
kind: "mutation",
|
|
48515
48680
|
auth: "protected"
|
|
48516
|
-
}),
|
|
48681
|
+
}), optionalMethod(stepInput, _void(), {
|
|
48517
48682
|
kind: "mutation",
|
|
48518
48683
|
auth: "protected"
|
|
48519
|
-
}),
|
|
48684
|
+
}), optionalMethod(stepInput, _void(), {
|
|
48520
48685
|
kind: "mutation",
|
|
48521
48686
|
auth: "protected"
|
|
48522
|
-
}),
|
|
48687
|
+
}), optionalMethod(stepInput, _void(), {
|
|
48523
48688
|
kind: "mutation",
|
|
48524
48689
|
auth: "protected"
|
|
48525
48690
|
}), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
@@ -48528,52 +48693,52 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
48528
48693
|
}), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
48529
48694
|
kind: "mutation",
|
|
48530
48695
|
auth: "protected"
|
|
48531
|
-
}),
|
|
48696
|
+
}), optionalMethod(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
48532
48697
|
kind: "mutation",
|
|
48533
48698
|
auth: "protected"
|
|
48534
|
-
}),
|
|
48699
|
+
}), optionalMethod(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
48535
48700
|
kind: "mutation",
|
|
48536
48701
|
auth: "protected"
|
|
48537
|
-
}),
|
|
48702
|
+
}), optionalMethod(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
48538
48703
|
kind: "mutation",
|
|
48539
48704
|
auth: "protected"
|
|
48540
|
-
}),
|
|
48705
|
+
}), optionalMethod(object({
|
|
48541
48706
|
deviceId: number$1().int().nonnegative(),
|
|
48542
48707
|
position: number$1().int().nonnegative()
|
|
48543
48708
|
}), _void(), {
|
|
48544
48709
|
kind: "mutation",
|
|
48545
48710
|
auth: "protected"
|
|
48546
|
-
}),
|
|
48711
|
+
}), optionalMethod(object({
|
|
48547
48712
|
deviceId: number$1().int().nonnegative(),
|
|
48548
48713
|
volumeLevel: number$1().min(0).max(100)
|
|
48549
48714
|
}), _void(), {
|
|
48550
48715
|
kind: "mutation",
|
|
48551
48716
|
auth: "protected"
|
|
48552
|
-
}),
|
|
48717
|
+
}), optionalMethod(object({
|
|
48553
48718
|
deviceId: number$1().int().nonnegative(),
|
|
48554
48719
|
muted: boolean()
|
|
48555
48720
|
}), _void(), {
|
|
48556
48721
|
kind: "mutation",
|
|
48557
48722
|
auth: "protected"
|
|
48558
|
-
}),
|
|
48723
|
+
}), optionalMethod(object({
|
|
48559
48724
|
deviceId: number$1().int().nonnegative(),
|
|
48560
48725
|
shuffle: boolean()
|
|
48561
48726
|
}), _void(), {
|
|
48562
48727
|
kind: "mutation",
|
|
48563
48728
|
auth: "protected"
|
|
48564
|
-
}),
|
|
48729
|
+
}), optionalMethod(object({
|
|
48565
48730
|
deviceId: number$1().int().nonnegative(),
|
|
48566
48731
|
repeat: MediaPlayerRepeatSchema
|
|
48567
48732
|
}), _void(), {
|
|
48568
48733
|
kind: "mutation",
|
|
48569
48734
|
auth: "protected"
|
|
48570
|
-
}),
|
|
48735
|
+
}), optionalMethod(object({
|
|
48571
48736
|
deviceId: number$1().int().nonnegative(),
|
|
48572
48737
|
source: string().min(1)
|
|
48573
48738
|
}), _void(), {
|
|
48574
48739
|
kind: "mutation",
|
|
48575
48740
|
auth: "protected"
|
|
48576
|
-
}),
|
|
48741
|
+
}), optionalMethod(object({
|
|
48577
48742
|
deviceId: number$1().int().nonnegative(),
|
|
48578
48743
|
/** Media identifier / URL. */
|
|
48579
48744
|
mediaId: string().min(1),
|
|
@@ -49554,16 +49719,16 @@ DeviceType.Cover, method(object({ deviceId: number$1().int().nonnegative() }), _
|
|
|
49554
49719
|
}), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
49555
49720
|
kind: "mutation",
|
|
49556
49721
|
auth: "protected"
|
|
49557
|
-
}),
|
|
49722
|
+
}), optionalMethod(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
49558
49723
|
kind: "mutation",
|
|
49559
49724
|
auth: "protected"
|
|
49560
|
-
}),
|
|
49725
|
+
}), optionalMethod(object({
|
|
49561
49726
|
deviceId: number$1().int().nonnegative(),
|
|
49562
49727
|
position: number$1().min(0).max(100)
|
|
49563
49728
|
}), _void(), {
|
|
49564
49729
|
kind: "mutation",
|
|
49565
49730
|
auth: "protected"
|
|
49566
|
-
}),
|
|
49731
|
+
}), optionalMethod(object({
|
|
49567
49732
|
deviceId: number$1().int().nonnegative(),
|
|
49568
49733
|
tiltPosition: number$1().min(0).max(100)
|
|
49569
49734
|
}), _void(), {
|
|
@@ -50457,6 +50622,22 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
|
|
|
50457
50622
|
});
|
|
50458
50623
|
var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
50459
50624
|
var DeviceTemplateSchema = string().min(1).max(4096);
|
|
50625
|
+
/** One value a caller hands the renderer for `thisDevice`. */
|
|
50626
|
+
var DeviceTemplateValueSchema = union([
|
|
50627
|
+
string(),
|
|
50628
|
+
number$1(),
|
|
50629
|
+
boolean()
|
|
50630
|
+
]);
|
|
50631
|
+
/**
|
|
50632
|
+
* The device a render is FOR (`camera` in the text) and the values the caller
|
|
50633
|
+
* knows about it that no capability carries, for example `lastPerson` and
|
|
50634
|
+
* `lastPlate`. `values` read as `camera.<name>`; a name a capability also carries
|
|
50635
|
+
* is `ambiguous` and is written `camera.values.<name>`.
|
|
50636
|
+
*/
|
|
50637
|
+
var DeviceTemplateThisDeviceSchema = object({
|
|
50638
|
+
deviceId: number$1().int(),
|
|
50639
|
+
values: record(string().min(1).max(64), DeviceTemplateValueSchema).optional()
|
|
50640
|
+
});
|
|
50460
50641
|
var DeviceTemplateRefusalSchema = object({
|
|
50461
50642
|
reason: _enum([
|
|
50462
50643
|
"too-long",
|
|
@@ -50542,6 +50723,90 @@ var SiteZoneSchema = object({
|
|
|
50542
50723
|
* the ones that most want grouping. */
|
|
50543
50724
|
locationKeys: array(string())
|
|
50544
50725
|
});
|
|
50726
|
+
var DeviceSearchRequiresSchema = object({
|
|
50727
|
+
/** Capability names the field wants a value of. */
|
|
50728
|
+
caps: array(string()).readonly(),
|
|
50729
|
+
/** `any` (default): a device with one of them is compatible. `all`: it must hold every one. */
|
|
50730
|
+
mode: _enum(["any", "all"]).optional()
|
|
50731
|
+
});
|
|
50732
|
+
var DeviceSearchFiltersSchema = object({
|
|
50733
|
+
locations: array(string()).readonly().optional(),
|
|
50734
|
+
integrationIds: array(string()).readonly().optional(),
|
|
50735
|
+
types: array(string()).readonly().optional()
|
|
50736
|
+
});
|
|
50737
|
+
var DeviceSearchInputSchema = object({
|
|
50738
|
+
/** Matches name, location, type, integration (id and label) and id. Case-insensitive. */
|
|
50739
|
+
text: string().optional(),
|
|
50740
|
+
requires: DeviceSearchRequiresSchema.optional(),
|
|
50741
|
+
filters: DeviceSearchFiltersSchema.optional(),
|
|
50742
|
+
/** List the devices that do not provide the required cap too (greyed, not pickable). */
|
|
50743
|
+
includeIncompatible: boolean().optional(),
|
|
50744
|
+
/** The device the field belongs to: its location drives `suggested`. */
|
|
50745
|
+
contextDeviceId: number$1().optional(),
|
|
50746
|
+
/**
|
|
50747
|
+
* Resolve exactly these devices, regardless of every filter, so a picked
|
|
50748
|
+
* value can be rendered. When given, `items` is these devices in the order
|
|
50749
|
+
* asked (no paging, `nextCursor` null) and the ones that do not exist are
|
|
50750
|
+
* listed in `missingIds`.
|
|
50751
|
+
*/
|
|
50752
|
+
ids: array(number$1()).readonly().optional(),
|
|
50753
|
+
cursor: string().nullable().optional(),
|
|
50754
|
+
limit: number$1().int().min(1).max(200).optional()
|
|
50755
|
+
});
|
|
50756
|
+
var DeviceValueOptionSchema = object({
|
|
50757
|
+
cap: string(),
|
|
50758
|
+
/** Status-schema field path inside the cap (same paths as `getWireableFields`). */
|
|
50759
|
+
path: string(),
|
|
50760
|
+
label: string(),
|
|
50761
|
+
/** The current value as text; `null` when it is unknown or the read FAILED — never `0`. */
|
|
50762
|
+
reading: string().nullable(),
|
|
50763
|
+
unit: string().nullable().optional(),
|
|
50764
|
+
/** The field's measured quantity, when the cap declares one, so a client can format the reading. */
|
|
50765
|
+
quantity: ReadingQuantitySchema.optional()
|
|
50766
|
+
});
|
|
50767
|
+
var DeviceSearchItemSchema = object({
|
|
50768
|
+
id: number$1(),
|
|
50769
|
+
name: string(),
|
|
50770
|
+
type: _enum(DeviceType),
|
|
50771
|
+
location: string().nullable(),
|
|
50772
|
+
integrationId: string().nullable(),
|
|
50773
|
+
integrationLabel: string().nullable(),
|
|
50774
|
+
online: boolean().nullable(),
|
|
50775
|
+
disabled: boolean(),
|
|
50776
|
+
compatible: boolean(),
|
|
50777
|
+
/** Only the required caps' fields; empty when nothing was required or the device is incompatible. */
|
|
50778
|
+
values: array(DeviceValueOptionSchema).readonly()
|
|
50779
|
+
});
|
|
50780
|
+
var DeviceSearchFacetValueSchema = object({
|
|
50781
|
+
value: string(),
|
|
50782
|
+
count: number$1()
|
|
50783
|
+
});
|
|
50784
|
+
var DeviceSearchFacetIntegrationSchema = object({
|
|
50785
|
+
id: string(),
|
|
50786
|
+
label: string(),
|
|
50787
|
+
count: number$1()
|
|
50788
|
+
});
|
|
50789
|
+
var DeviceSearchFacetsSchema = object({
|
|
50790
|
+
locations: array(DeviceSearchFacetValueSchema).readonly(),
|
|
50791
|
+
integrations: array(DeviceSearchFacetIntegrationSchema).readonly(),
|
|
50792
|
+
types: array(DeviceSearchFacetValueSchema).readonly()
|
|
50793
|
+
});
|
|
50794
|
+
var DeviceSearchResultSchema = object({
|
|
50795
|
+
items: array(DeviceSearchItemSchema).readonly(),
|
|
50796
|
+
nextCursor: string().nullable(),
|
|
50797
|
+
/** Devices listed by this query across all pages (filters + text applied; incompatible counted only when `includeIncompatible`). */
|
|
50798
|
+
total: number$1(),
|
|
50799
|
+
/** Compatible devices after filters + text. */
|
|
50800
|
+
compatibleTotal: number$1(),
|
|
50801
|
+
/** Every device the caller's fleet holds, before anything is applied. */
|
|
50802
|
+
fleetTotal: number$1(),
|
|
50803
|
+
/** Incompatible devices after filters + text — the K of "show the K that don't". */
|
|
50804
|
+
hiddenIncompatible: number$1(),
|
|
50805
|
+
facets: DeviceSearchFacetsSchema,
|
|
50806
|
+
/** Same location as `contextDeviceId`; first page only. */
|
|
50807
|
+
suggested: array(DeviceSearchItemSchema).readonly(),
|
|
50808
|
+
missingIds: array(number$1()).readonly()
|
|
50809
|
+
});
|
|
50545
50810
|
var ProviderStatusSchema = object({
|
|
50546
50811
|
connected: boolean(),
|
|
50547
50812
|
deviceCount: number$1(),
|
|
@@ -50934,6 +51199,9 @@ var DeviceInfoSchema = object({
|
|
|
50934
51199
|
* named accordion sections (with optional intra-section order). See
|
|
50935
51200
|
* `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
|
|
50936
51201
|
childLayout: array(ChildLayoutEntrySchema).readonly().optional(),
|
|
51202
|
+
/** The children a container stands for, most preferred first, by accessory
|
|
51203
|
+
* `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
|
|
51204
|
+
primaryChildPreference: array(string()).readonly().optional(),
|
|
50937
51205
|
/** Operator-authored per-device display override. See `DeviceMeta.display`. */
|
|
50938
51206
|
display: DeviceDisplayOverrideSchema.optional()
|
|
50939
51207
|
});
|
|
@@ -50995,7 +51263,9 @@ var DeviceBindingsForDeviceSchema = object({
|
|
|
50995
51263
|
kind: _enum(["native", "wrapped"]),
|
|
50996
51264
|
providerAddonId: string(),
|
|
50997
51265
|
providerNodeId: string(),
|
|
50998
|
-
nativeAddonId: string()
|
|
51266
|
+
nativeAddonId: string(),
|
|
51267
|
+
/** The cap's methods the native provider implements; absent = all. */
|
|
51268
|
+
implementedMethods: array(string()).optional()
|
|
50999
51269
|
}))
|
|
51000
51270
|
});
|
|
51001
51271
|
/**
|
|
@@ -51080,6 +51350,9 @@ var DeviceMetaSchema = object({
|
|
|
51080
51350
|
* accordion sections (with optional intra-section order). See
|
|
51081
51351
|
* `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
|
|
51082
51352
|
childLayout: array(ChildLayoutEntrySchema).readonly().optional(),
|
|
51353
|
+
/** The children a container stands for, most preferred first, by accessory
|
|
51354
|
+
* `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
|
|
51355
|
+
primaryChildPreference: array(string()).readonly().optional(),
|
|
51083
51356
|
/** Semantic role string (`DeviceRole`) — propagated from the spawn pre-seed.
|
|
51084
51357
|
* Optional: only present for accessory children that carry a known role. */
|
|
51085
51358
|
role: string().nullable().optional(),
|
|
@@ -51238,17 +51511,24 @@ method(object({
|
|
|
51238
51511
|
auth: "admin"
|
|
51239
51512
|
}), method(object({
|
|
51240
51513
|
templates: array(DeviceTemplateSchema).max(64),
|
|
51241
|
-
allowedDeviceIds: array(number$1().int()).optional()
|
|
51514
|
+
allowedDeviceIds: array(number$1().int()).optional(),
|
|
51515
|
+
/** The device `camera` names in the texts, and the values the caller knows of it. */
|
|
51516
|
+
thisDevice: DeviceTemplateThisDeviceSchema.optional()
|
|
51242
51517
|
}), object({ results: array(DeviceTemplateRenderSchema) }), { auth: "admin" }), method(object({
|
|
51243
51518
|
templates: array(string()).max(64),
|
|
51244
|
-
allowedDeviceIds: array(number$1().int()).optional()
|
|
51519
|
+
allowedDeviceIds: array(number$1().int()).optional(),
|
|
51520
|
+
thisDevice: DeviceTemplateThisDeviceSchema.optional()
|
|
51245
51521
|
}), object({ results: array(discriminatedUnion("ok", [object({
|
|
51246
51522
|
ok: literal(true),
|
|
51247
51523
|
aliases: array(object({
|
|
51248
51524
|
alias: string(),
|
|
51249
51525
|
deviceId: number$1().int().nullable(),
|
|
51250
|
-
allowed: boolean()
|
|
51251
|
-
|
|
51526
|
+
allowed: boolean(),
|
|
51527
|
+
/** The fields the text reads on this alias, as written (`temperature`, `cap.field`). */
|
|
51528
|
+
reads: array(string())
|
|
51529
|
+
})),
|
|
51530
|
+
/** Whether the text reads the clock (`now`): it changes every minute. */
|
|
51531
|
+
readsClock: boolean()
|
|
51252
51532
|
}), object({
|
|
51253
51533
|
ok: literal(false),
|
|
51254
51534
|
refusal: DeviceTemplateRefusalSchema
|
|
@@ -51288,6 +51568,12 @@ method(object({
|
|
|
51288
51568
|
}), _void(), {
|
|
51289
51569
|
kind: "mutation",
|
|
51290
51570
|
auth: "admin"
|
|
51571
|
+
}), method(object({
|
|
51572
|
+
deviceId: number$1(),
|
|
51573
|
+
primaryChildPreference: array(string()).readonly()
|
|
51574
|
+
}), _void(), {
|
|
51575
|
+
kind: "mutation",
|
|
51576
|
+
auth: "admin"
|
|
51291
51577
|
}), method(object({
|
|
51292
51578
|
deviceId: number$1(),
|
|
51293
51579
|
display: DeviceDisplayOverrideSchema.nullable()
|
|
@@ -51425,7 +51711,7 @@ method(object({
|
|
|
51425
51711
|
* it answers today and the caller filters as it already does.
|
|
51426
51712
|
*/
|
|
51427
51713
|
deviceIds: array(number$1()).optional()
|
|
51428
|
-
}), array(DeviceInfoSchema), { role: "viewer" }), method(object({ deviceId: number$1() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number$1() }), array(DeviceInfoSchema), { role: "viewer" }), method(object({ parentDeviceIds: array(number$1()).max(256) }), record(string(), array(DeviceInfoSchema))), method(object({ deviceId: number$1() }), object({
|
|
51714
|
+
}), array(DeviceInfoSchema), { role: "viewer" }), method(DeviceSearchInputSchema, DeviceSearchResultSchema, { role: "viewer" }), method(object({ deviceId: number$1() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number$1() }), array(DeviceInfoSchema), { role: "viewer" }), method(object({ parentDeviceIds: array(number$1()).max(256) }), record(string(), array(DeviceInfoSchema))), method(object({ deviceId: number$1() }), object({
|
|
51429
51715
|
mode: LinkedDevicesModeSchema,
|
|
51430
51716
|
devices: array(LinkedDeviceSchema)
|
|
51431
51717
|
}), { role: "viewer" }), method(object({ deviceIds: array(number$1()) }), array(LinkedDevicesForDeviceSchema), { role: "viewer" }), method(object({ deviceId: number$1() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number$1() }), array(ConfigEntrySchema)), method(object({ deviceId: number$1() }), ConfigUISchemaOutput), method(object({
|
|
@@ -53713,25 +53999,25 @@ var FanControlStatusSchema = object({
|
|
|
53713
53999
|
/** Ms epoch when the slice was last updated. */
|
|
53714
54000
|
lastChangedAt: number$1()
|
|
53715
54001
|
});
|
|
53716
|
-
DeviceType.Fan,
|
|
54002
|
+
DeviceType.Fan, optionalMethod(object({
|
|
53717
54003
|
deviceId: number$1().int().nonnegative(),
|
|
53718
54004
|
speed: number$1().min(0).max(100)
|
|
53719
54005
|
}), _void(), {
|
|
53720
54006
|
kind: "mutation",
|
|
53721
54007
|
auth: "protected"
|
|
53722
|
-
}),
|
|
54008
|
+
}), optionalMethod(object({
|
|
53723
54009
|
deviceId: number$1().int().nonnegative(),
|
|
53724
54010
|
preset: string().min(1)
|
|
53725
54011
|
}), _void(), {
|
|
53726
54012
|
kind: "mutation",
|
|
53727
54013
|
auth: "protected"
|
|
53728
|
-
}),
|
|
54014
|
+
}), optionalMethod(object({
|
|
53729
54015
|
deviceId: number$1().int().nonnegative(),
|
|
53730
54016
|
direction: FanDirectionSchema
|
|
53731
54017
|
}), _void(), {
|
|
53732
54018
|
kind: "mutation",
|
|
53733
54019
|
auth: "protected"
|
|
53734
|
-
}),
|
|
54020
|
+
}), optionalMethod(object({
|
|
53735
54021
|
deviceId: number$1().int().nonnegative(),
|
|
53736
54022
|
oscillating: boolean()
|
|
53737
54023
|
}), _void(), {
|
|
@@ -54510,6 +54796,8 @@ var HeroPillSchema = object({
|
|
|
54510
54796
|
});
|
|
54511
54797
|
var HeroRowSchema = object({
|
|
54512
54798
|
id: HeroRowIdSchema,
|
|
54799
|
+
/** `scene`: the row's action and slider controls are drawn on the scene. Absent: an ordinary row. */
|
|
54800
|
+
placement: _enum(["row", "scene"]).optional(),
|
|
54513
54801
|
/** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
|
|
54514
54802
|
label: HeroTextSchema.optional(),
|
|
54515
54803
|
/** A group header drawn above the row when it differs from the previous row's ("System"). */
|
|
@@ -57095,7 +57383,7 @@ DeviceType.Lock, method(object({
|
|
|
57095
57383
|
}), _void(), {
|
|
57096
57384
|
kind: "mutation",
|
|
57097
57385
|
auth: "protected"
|
|
57098
|
-
}),
|
|
57386
|
+
}), optionalMethod(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
57099
57387
|
kind: "mutation",
|
|
57100
57388
|
auth: "protected"
|
|
57101
57389
|
});
|
|
@@ -58237,7 +58525,7 @@ object({
|
|
|
58237
58525
|
deviceId: number$1().int().optional(),
|
|
58238
58526
|
atBefore: number$1().optional(),
|
|
58239
58527
|
where: RecordWhereSchema.optional()
|
|
58240
|
-
}), object({ count: number$1().int().nonnegative() }), object({}), object({ store: Rows }), object({ patch: Rows }), object({}), object({ keys: array(string().min(1)) }), object({ removed: array(string()) }), object({ refs: array(string()) }), object({ values: record(string(), string().nullable()) }), object({
|
|
58528
|
+
}), object({ count: number$1().int().nonnegative() }), object({}), object({ store: Rows }), object({ patch: Rows }), object({}), object({ keys: array(string().min(1)) }), object({ removed: array(string()) }), object({}), object({ deviceIds: array(number$1().int()) }), object({ deviceIds: array(number$1().int()) }), object({ blobs: record(string(), Rows) }), object({ refs: array(string()) }), object({ values: record(string(), string().nullable()) }), object({
|
|
58241
58529
|
ref: string().min(1),
|
|
58242
58530
|
value: string()
|
|
58243
58531
|
}), object({}), object({ refs: array(string()) }), object({ deleted: number$1().int().nonnegative() }), object({}), object({ integrations: array(MigrationIntegrationSchema) }), object({ id: string().min(1) }), MigrationIntegrationSchema.nullable(), object({
|
|
@@ -58248,7 +58536,7 @@ object({
|
|
|
58248
58536
|
integrationId: string().nullable(),
|
|
58249
58537
|
/** Whether the device carries any stored config; its content is not offered. */
|
|
58250
58538
|
hasConfig: boolean()
|
|
58251
|
-
}).nullable(), object({
|
|
58539
|
+
}).nullable(), object({ deviceIds: array(number$1().int()) }), object({ aliases: record(string(), string()) }), object({
|
|
58252
58540
|
deviceId: number$1().int(),
|
|
58253
58541
|
integrationId: string().min(1)
|
|
58254
58542
|
}), object({}), object({}), object({ nodeId: string() }), object({}), object({});
|
|
@@ -65450,6 +65738,26 @@ var NcRuleTargetSchema = object({
|
|
|
65450
65738
|
*/
|
|
65451
65739
|
params: record(string(), unknown()).optional()
|
|
65452
65740
|
});
|
|
65741
|
+
/** Which picture kind one target receives (#487). */
|
|
65742
|
+
var NcTargetAttachmentSchema = _enum([
|
|
65743
|
+
"none",
|
|
65744
|
+
"image",
|
|
65745
|
+
"clip",
|
|
65746
|
+
"gif"
|
|
65747
|
+
]);
|
|
65748
|
+
var NcTargetOverrideSchema = object({
|
|
65749
|
+
template: object({
|
|
65750
|
+
title: string().max(500).optional(),
|
|
65751
|
+
body: string().max(2e3).optional()
|
|
65752
|
+
}).optional(),
|
|
65753
|
+
schedule: NcScheduleSchema.optional(),
|
|
65754
|
+
priority: number$1().int().min(1).max(5).optional(),
|
|
65755
|
+
attachment: NcTargetAttachmentSchema.optional(),
|
|
65756
|
+
/** `false` = no buttons for this target; `true` is the same as absent. */
|
|
65757
|
+
actions: boolean().optional()
|
|
65758
|
+
});
|
|
65759
|
+
/** Per-target settings keyed by target id (#487). */
|
|
65760
|
+
var NcTargetOverridesSchema = record(string(), NcTargetOverrideSchema);
|
|
65453
65761
|
/**
|
|
65454
65762
|
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
65455
65763
|
*
|
|
@@ -65731,6 +66039,13 @@ var NcRuleInputSchema = object({
|
|
|
65731
66039
|
* targets.
|
|
65732
66040
|
*/
|
|
65733
66041
|
targetUsers: array(string()).optional(),
|
|
66042
|
+
/**
|
|
66043
|
+
* Per-target settings keyed by target id (#487): texts, schedule, priority.
|
|
66044
|
+
* Absent (and an absent entry) = the rule's own values. A patch that omits
|
|
66045
|
+
* the key keeps the stored map; a patch that names it REPLACES it whole —
|
|
66046
|
+
* `{}` empties it.
|
|
66047
|
+
*/
|
|
66048
|
+
targetOverrides: NcTargetOverridesSchema.optional(),
|
|
65734
66049
|
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
65735
66050
|
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
65736
66051
|
media: NcMediaPolicySchema.default({}),
|
|
@@ -67202,53 +67517,41 @@ DeviceType.Camera, method(object({
|
|
|
67202
67517
|
deviceId: number$1(),
|
|
67203
67518
|
status: OsdStatusSchema
|
|
67204
67519
|
});
|
|
67205
|
-
_enum([
|
|
67206
|
-
"value",
|
|
67207
|
-
"unit",
|
|
67208
|
-
"full"
|
|
67209
|
-
]);
|
|
67210
|
-
_enum([
|
|
67211
|
-
"value+unit",
|
|
67212
|
-
"value",
|
|
67213
|
-
"unit"
|
|
67214
|
-
]);
|
|
67215
67520
|
/**
|
|
67216
|
-
*
|
|
67217
|
-
*
|
|
67218
|
-
*
|
|
67521
|
+
* `osd-manager` — the ORCHESTRATOR over the device-scope `osd` cap.
|
|
67522
|
+
*
|
|
67523
|
+
* The `osd` cap is the firmware contract: it probes a camera's overlay
|
|
67524
|
+
* SLOTS and writes literal text into one. It has no idea WHERE that text
|
|
67525
|
+
* comes from, and it must not — a driver that grew a "show the temperature
|
|
67526
|
+
* here" feature would grow it once per vendor.
|
|
67527
|
+
*
|
|
67528
|
+
* This cap owns the other half: a per-(camera, slot) BINDING that says
|
|
67529
|
+
* which value feeds the slot, how it is formatted, and under which
|
|
67530
|
+
* conditions it is shown at all. Named TEMPLATES combine many device
|
|
67531
|
+
* fields into one overlay string (plugin catalog OSD Manager parity).
|
|
67219
67532
|
*/
|
|
67220
|
-
var OsdTemplatePickSchema = object({
|
|
67221
|
-
containerId: number$1().int().optional(),
|
|
67222
|
-
deviceId: number$1().int()
|
|
67223
|
-
});
|
|
67224
67533
|
/**
|
|
67225
|
-
*
|
|
67226
|
-
*
|
|
67227
|
-
* `{
|
|
67228
|
-
*
|
|
67534
|
+
* The text of a named template: a device template (D1021) —
|
|
67535
|
+
* `{{ camera.temperature | round(1) }}`, `{{ now | time('HH:mm') }}`,
|
|
67536
|
+
* `{% if camera.motion %}MOTION{% endif %}` — rendered by the ONE hub renderer
|
|
67537
|
+
* (`device-manager.renderDeviceTemplates`), never by this addon.
|
|
67538
|
+
*
|
|
67539
|
+
* Two names belong to the render rather than to a device:
|
|
67540
|
+
* - `now` is the clock; `time('HH:mm')` prints it in the server's zone.
|
|
67541
|
+
* - `camera` is the camera the overlay is on, so one template serves every
|
|
67542
|
+
* camera. `camera.lastPerson` and `camera.lastPlate` are the most recent
|
|
67543
|
+
* recognition persisted for it (empty text until there is one, with
|
|
67544
|
+
* `| default('')`).
|
|
67229
67545
|
*/
|
|
67230
|
-
var
|
|
67231
|
-
/** Token stem in the parser, e.g. `t` → `{t}` / `{t.value}`. Unique within the template. */
|
|
67232
|
-
alias: string().min(1).max(32).regex(/^[A-Za-z][A-Za-z0-9_-]*$/, "alias must start with a letter"),
|
|
67233
|
-
pick: OsdTemplatePickSchema,
|
|
67234
|
-
capName: string().min(1).max(64),
|
|
67235
|
-
valuePath: string().min(1).max(64),
|
|
67236
|
-
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
67237
|
-
displayUnit: string().max(16).optional(),
|
|
67238
|
-
maxDecimals: number$1().int().min(0).max(4).default(1),
|
|
67239
|
-
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
67240
|
-
valueMap: record(string(), string()).optional()
|
|
67241
|
-
});
|
|
67546
|
+
var OSD_TEMPLATE_TEXT_MAX = 1024;
|
|
67242
67547
|
/**
|
|
67243
|
-
* A named template:
|
|
67244
|
-
*
|
|
67548
|
+
* A named template: the unit of reuse. A slot points at one by id; editing it
|
|
67549
|
+
* changes every slot that points at it, on every camera.
|
|
67245
67550
|
*/
|
|
67246
67551
|
var OsdNamedTemplateSchema = object({
|
|
67247
67552
|
id: string().min(1).max(64),
|
|
67248
67553
|
name: string().min(1).max(64),
|
|
67249
|
-
|
|
67250
|
-
/** Parser with alias placeholders, e.g. `{t.value} {t.unit} / {h}`. */
|
|
67251
|
-
parser: string().max(256).default("")
|
|
67554
|
+
text: string().max(OSD_TEMPLATE_TEXT_MAX).default("")
|
|
67252
67555
|
});
|
|
67253
67556
|
/** Where a slot's value comes from. */
|
|
67254
67557
|
var OsdSourceSchema = discriminatedUnion("kind", [
|
|
@@ -67257,26 +67560,6 @@ var OsdSourceSchema = discriminatedUnion("kind", [
|
|
|
67257
67560
|
kind: literal("static"),
|
|
67258
67561
|
text: string().max(64)
|
|
67259
67562
|
}),
|
|
67260
|
-
object({
|
|
67261
|
-
kind: literal("clock"),
|
|
67262
|
-
/** Token pattern: `YYYY MM DD HH mm ss`. Everything else is literal. */
|
|
67263
|
-
pattern: string().min(1).max(32).default("HH:mm"),
|
|
67264
|
-
/** IANA zone. Omitted = the server's zone. */
|
|
67265
|
-
timezone: string().min(1).max(64).optional()
|
|
67266
|
-
}),
|
|
67267
|
-
object({
|
|
67268
|
-
kind: literal("device-state"),
|
|
67269
|
-
deviceId: number$1().int().optional(),
|
|
67270
|
-
capName: string().min(1).max(64),
|
|
67271
|
-
/** Dot path inside the slice, e.g. `detected`, `value`, `mode`. */
|
|
67272
|
-
valuePath: string().min(1).max(64),
|
|
67273
|
-
/** Convert TO this unit at render. Absent = no conversion. */
|
|
67274
|
-
displayUnit: string().max(16).optional()
|
|
67275
|
-
}),
|
|
67276
|
-
object({
|
|
67277
|
-
kind: literal("latest-recognition"),
|
|
67278
|
-
recognition: _enum(["person", "plate"])
|
|
67279
|
-
}),
|
|
67280
67563
|
object({
|
|
67281
67564
|
kind: literal("template"),
|
|
67282
67565
|
templateId: string().min(1).max(64)
|
|
@@ -67286,15 +67569,6 @@ var OsdSlotBindingSchema = object({
|
|
|
67286
67569
|
/** Off = the manager stops driving this slot. It does NOT clear it. */
|
|
67287
67570
|
enabled: boolean().default(true),
|
|
67288
67571
|
source: OsdSourceSchema,
|
|
67289
|
-
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
67290
|
-
template: string().max(96).default("${value}"),
|
|
67291
|
-
/**
|
|
67292
|
-
* Decimal places for a numeric value. `0` yields an integer — the
|
|
67293
|
-
* documented workaround for firmwares that reject `.` in overlay text.
|
|
67294
|
-
*/
|
|
67295
|
-
maxDecimals: number$1().int().min(0).max(4).default(1),
|
|
67296
|
-
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
67297
|
-
valueMap: record(string(), string()).optional(),
|
|
67298
67572
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
67299
67573
|
schedule: NcScheduleSchema.optional(),
|
|
67300
67574
|
/**
|
|
@@ -67336,31 +67610,21 @@ var OsdRenderResultSchema = object({
|
|
|
67336
67610
|
/** Why, whenever the outcome is not a plain write. Never silent. */
|
|
67337
67611
|
reason: string().optional()
|
|
67338
67612
|
});
|
|
67339
|
-
var OsdSourceValueTypeEnum = _enum([
|
|
67340
|
-
"number",
|
|
67341
|
-
"boolean",
|
|
67342
|
-
"string",
|
|
67343
|
-
"enum"
|
|
67344
|
-
]);
|
|
67345
67613
|
/**
|
|
67346
|
-
*
|
|
67347
|
-
*
|
|
67348
|
-
*
|
|
67614
|
+
* A template rendered for one camera without being saved: what the editor
|
|
67615
|
+
* previews. `text` is what the overlay would carry; a refused render has a
|
|
67616
|
+
* `reason` and an empty text.
|
|
67349
67617
|
*/
|
|
67350
|
-
var
|
|
67351
|
-
|
|
67352
|
-
|
|
67353
|
-
|
|
67354
|
-
|
|
67355
|
-
label: string(),
|
|
67356
|
-
valueType: OsdSourceValueTypeEnum,
|
|
67357
|
-
/** Present for `enum`; the editor offers these as `valueMap` keys. */
|
|
67358
|
-
enumValues: array(string()).readonly().optional()
|
|
67618
|
+
var OsdTemplatePreviewSchema = object({
|
|
67619
|
+
ok: boolean(),
|
|
67620
|
+
text: string(),
|
|
67621
|
+
/** The refusal, or `ref: reason` per value that printed `—`. */
|
|
67622
|
+
notes: array(string())
|
|
67359
67623
|
});
|
|
67360
67624
|
method(object({ deviceId: number$1().int() }), object({
|
|
67361
67625
|
supported: boolean(),
|
|
67362
67626
|
slots: array(OsdSlotViewSchema)
|
|
67363
|
-
}), { auth: "admin" }), method(object({
|
|
67627
|
+
}), { auth: "admin" }), method(object({}), object({
|
|
67364
67628
|
supported: array(string()),
|
|
67365
67629
|
catalog: array(NcConditionDescriptorSchema)
|
|
67366
67630
|
}), { auth: "admin" }), method(object({
|
|
@@ -67402,6 +67666,12 @@ method(object({ deviceId: number$1().int() }), object({
|
|
|
67402
67666
|
}), OsdRenderResultSchema, {
|
|
67403
67667
|
kind: "mutation",
|
|
67404
67668
|
auth: "admin"
|
|
67669
|
+
}), method(object({
|
|
67670
|
+
deviceId: number$1().int(),
|
|
67671
|
+
text: string().max(OSD_TEMPLATE_TEXT_MAX)
|
|
67672
|
+
}), OsdTemplatePreviewSchema, {
|
|
67673
|
+
kind: "mutation",
|
|
67674
|
+
auth: "admin"
|
|
67405
67675
|
}), method(object({ deviceId: number$1().int() }), object({ results: array(OsdRenderResultSchema) }), {
|
|
67406
67676
|
kind: "mutation",
|
|
67407
67677
|
auth: "admin"
|
|
@@ -69163,15 +69433,15 @@ object({
|
|
|
69163
69433
|
});
|
|
69164
69434
|
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;
|
|
69165
69435
|
var deviceInput$1 = object({ deviceId: number$1().int().nonnegative() });
|
|
69166
|
-
systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "
|
|
69436
|
+
systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
69167
69437
|
kind: "mutation",
|
|
69168
|
-
auth: "
|
|
69438
|
+
auth: "protected"
|
|
69169
69439
|
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
69170
69440
|
kind: "mutation",
|
|
69171
|
-
auth: "
|
|
69441
|
+
auth: "protected"
|
|
69172
69442
|
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
69173
69443
|
kind: "mutation",
|
|
69174
|
-
auth: "
|
|
69444
|
+
auth: "protected"
|
|
69175
69445
|
});
|
|
69176
69446
|
/**
|
|
69177
69447
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -75784,7 +76054,7 @@ DeviceType.Valve, method(object({ deviceId: number$1().int().nonnegative() }), _
|
|
|
75784
76054
|
}), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
|
|
75785
76055
|
kind: "mutation",
|
|
75786
76056
|
auth: "protected"
|
|
75787
|
-
}),
|
|
76057
|
+
}), optionalMethod(object({
|
|
75788
76058
|
deviceId: number$1().int().nonnegative(),
|
|
75789
76059
|
position: number$1().min(0).max(100)
|
|
75790
76060
|
}), _void(), {
|
|
@@ -81055,6 +81325,27 @@ Object.freeze({
|
|
|
81055
81325
|
access: "create",
|
|
81056
81326
|
role: "viewer"
|
|
81057
81327
|
},
|
|
81328
|
+
"clusterUpdate.getClusterUpdateJob": {
|
|
81329
|
+
capName: "cluster-update",
|
|
81330
|
+
capScope: "system",
|
|
81331
|
+
addonId: null,
|
|
81332
|
+
access: "view",
|
|
81333
|
+
role: "admin"
|
|
81334
|
+
},
|
|
81335
|
+
"clusterUpdate.previewClusterUpdate": {
|
|
81336
|
+
capName: "cluster-update",
|
|
81337
|
+
capScope: "system",
|
|
81338
|
+
addonId: null,
|
|
81339
|
+
access: "view",
|
|
81340
|
+
role: "admin"
|
|
81341
|
+
},
|
|
81342
|
+
"clusterUpdate.startClusterUpdate": {
|
|
81343
|
+
capName: "cluster-update",
|
|
81344
|
+
capScope: "system",
|
|
81345
|
+
addonId: null,
|
|
81346
|
+
access: "create",
|
|
81347
|
+
role: "admin"
|
|
81348
|
+
},
|
|
81058
81349
|
"color.getStatus": {
|
|
81059
81350
|
capName: "color",
|
|
81060
81351
|
capScope: "device",
|
|
@@ -82427,6 +82718,13 @@ Object.freeze({
|
|
|
82427
82718
|
access: "create",
|
|
82428
82719
|
role: "admin"
|
|
82429
82720
|
},
|
|
82721
|
+
"deviceManager.search": {
|
|
82722
|
+
capName: "device-manager",
|
|
82723
|
+
capScope: "system",
|
|
82724
|
+
addonId: null,
|
|
82725
|
+
access: "view",
|
|
82726
|
+
role: "viewer"
|
|
82727
|
+
},
|
|
82430
82728
|
"deviceManager.setAlias": {
|
|
82431
82729
|
capName: "device-manager",
|
|
82432
82730
|
capScope: "system",
|
|
@@ -82518,6 +82816,13 @@ Object.freeze({
|
|
|
82518
82816
|
access: "create",
|
|
82519
82817
|
role: "admin"
|
|
82520
82818
|
},
|
|
82819
|
+
"deviceManager.setPrimaryChildPreference": {
|
|
82820
|
+
capName: "device-manager",
|
|
82821
|
+
capScope: "system",
|
|
82822
|
+
addonId: null,
|
|
82823
|
+
access: "create",
|
|
82824
|
+
role: "admin"
|
|
82825
|
+
},
|
|
82521
82826
|
"deviceManager.setRole": {
|
|
82522
82827
|
capName: "device-manager",
|
|
82523
82828
|
capScope: "system",
|
|
@@ -85199,13 +85504,6 @@ Object.freeze({
|
|
|
85199
85504
|
access: "create",
|
|
85200
85505
|
role: "admin"
|
|
85201
85506
|
},
|
|
85202
|
-
"notificationRules.createSequence": {
|
|
85203
|
-
capName: "notification-rules",
|
|
85204
|
-
capScope: "system",
|
|
85205
|
-
addonId: null,
|
|
85206
|
-
access: "create",
|
|
85207
|
-
role: "admin"
|
|
85208
|
-
},
|
|
85209
85507
|
"notificationRules.createSnooze": {
|
|
85210
85508
|
capName: "notification-rules",
|
|
85211
85509
|
capScope: "system",
|
|
@@ -85227,13 +85525,6 @@ Object.freeze({
|
|
|
85227
85525
|
access: "delete",
|
|
85228
85526
|
role: "admin"
|
|
85229
85527
|
},
|
|
85230
|
-
"notificationRules.deleteSequence": {
|
|
85231
|
-
capName: "notification-rules",
|
|
85232
|
-
capScope: "system",
|
|
85233
|
-
addonId: null,
|
|
85234
|
-
access: "delete",
|
|
85235
|
-
role: "admin"
|
|
85236
|
-
},
|
|
85237
85528
|
"notificationRules.getAlarmConfig": {
|
|
85238
85529
|
capName: "notification-rules",
|
|
85239
85530
|
capScope: "system",
|
|
@@ -85283,13 +85574,6 @@ Object.freeze({
|
|
|
85283
85574
|
access: "view",
|
|
85284
85575
|
role: "admin"
|
|
85285
85576
|
},
|
|
85286
|
-
"notificationRules.getSequence": {
|
|
85287
|
-
capName: "notification-rules",
|
|
85288
|
-
capScope: "system",
|
|
85289
|
-
addonId: null,
|
|
85290
|
-
access: "view",
|
|
85291
|
-
role: "admin"
|
|
85292
|
-
},
|
|
85293
85577
|
"notificationRules.getTemplateCatalog": {
|
|
85294
85578
|
capName: "notification-rules",
|
|
85295
85579
|
capScope: "system",
|
|
@@ -85311,13 +85595,6 @@ Object.freeze({
|
|
|
85311
85595
|
access: "view",
|
|
85312
85596
|
role: "admin"
|
|
85313
85597
|
},
|
|
85314
|
-
"notificationRules.listSequences": {
|
|
85315
|
-
capName: "notification-rules",
|
|
85316
|
-
capScope: "system",
|
|
85317
|
-
addonId: null,
|
|
85318
|
-
access: "view",
|
|
85319
|
-
role: "admin"
|
|
85320
|
-
},
|
|
85321
85598
|
"notificationRules.listSnoozes": {
|
|
85322
85599
|
capName: "notification-rules",
|
|
85323
85600
|
capScope: "system",
|
|
@@ -85388,13 +85665,6 @@ Object.freeze({
|
|
|
85388
85665
|
access: "create",
|
|
85389
85666
|
role: "admin"
|
|
85390
85667
|
},
|
|
85391
|
-
"notificationRules.updateSequence": {
|
|
85392
|
-
capName: "notification-rules",
|
|
85393
|
-
capScope: "system",
|
|
85394
|
-
addonId: null,
|
|
85395
|
-
access: "create",
|
|
85396
|
-
role: "admin"
|
|
85397
|
-
},
|
|
85398
85668
|
"notifier.cancel": {
|
|
85399
85669
|
capName: "notifier",
|
|
85400
85670
|
capScope: "device",
|
|
@@ -85479,21 +85749,21 @@ Object.freeze({
|
|
|
85479
85749
|
access: "view",
|
|
85480
85750
|
role: "admin"
|
|
85481
85751
|
},
|
|
85482
|
-
"osdManager.
|
|
85752
|
+
"osdManager.listTemplates": {
|
|
85483
85753
|
capName: "osd-manager",
|
|
85484
85754
|
capScope: "system",
|
|
85485
85755
|
addonId: null,
|
|
85486
85756
|
access: "view",
|
|
85487
85757
|
role: "admin"
|
|
85488
85758
|
},
|
|
85489
|
-
"osdManager.
|
|
85759
|
+
"osdManager.previewSlot": {
|
|
85490
85760
|
capName: "osd-manager",
|
|
85491
85761
|
capScope: "system",
|
|
85492
85762
|
addonId: null,
|
|
85493
|
-
access: "
|
|
85763
|
+
access: "create",
|
|
85494
85764
|
role: "admin"
|
|
85495
85765
|
},
|
|
85496
|
-
"osdManager.
|
|
85766
|
+
"osdManager.previewTemplate": {
|
|
85497
85767
|
capName: "osd-manager",
|
|
85498
85768
|
capScope: "system",
|
|
85499
85769
|
addonId: null,
|
|
@@ -87192,28 +87462,28 @@ Object.freeze({
|
|
|
87192
87462
|
capScope: "device",
|
|
87193
87463
|
addonId: null,
|
|
87194
87464
|
access: "create",
|
|
87195
|
-
role: "
|
|
87465
|
+
role: "viewer"
|
|
87196
87466
|
},
|
|
87197
87467
|
"powerSource.getStatus": {
|
|
87198
87468
|
capName: "power-source",
|
|
87199
87469
|
capScope: "device",
|
|
87200
87470
|
addonId: null,
|
|
87201
87471
|
access: "view",
|
|
87202
|
-
role: "
|
|
87472
|
+
role: "viewer"
|
|
87203
87473
|
},
|
|
87204
87474
|
"powerSource.powerOff": {
|
|
87205
87475
|
capName: "power-source",
|
|
87206
87476
|
capScope: "device",
|
|
87207
87477
|
addonId: null,
|
|
87208
87478
|
access: "create",
|
|
87209
|
-
role: "
|
|
87479
|
+
role: "viewer"
|
|
87210
87480
|
},
|
|
87211
87481
|
"powerSource.powerOn": {
|
|
87212
87482
|
capName: "power-source",
|
|
87213
87483
|
capScope: "device",
|
|
87214
87484
|
addonId: null,
|
|
87215
87485
|
access: "create",
|
|
87216
|
-
role: "
|
|
87486
|
+
role: "viewer"
|
|
87217
87487
|
},
|
|
87218
87488
|
"presence.getStatus": {
|
|
87219
87489
|
capName: "presence",
|
|
@@ -90283,6 +90553,24 @@ function projectAction(cap, action) {
|
|
|
90283
90553
|
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
90284
90554
|
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.HeatPump, 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.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
90285
90555
|
DeviceFeature.BatteryOperated;
|
|
90556
|
+
function bound(cap, methods = [], authority = "reported") {
|
|
90557
|
+
return {
|
|
90558
|
+
kind: "cap",
|
|
90559
|
+
cap,
|
|
90560
|
+
methods,
|
|
90561
|
+
authority
|
|
90562
|
+
};
|
|
90563
|
+
}
|
|
90564
|
+
function derived(cap, methods = []) {
|
|
90565
|
+
return bound(cap, methods, "derived");
|
|
90566
|
+
}
|
|
90567
|
+
DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
|
|
90568
|
+
"startTalkSession",
|
|
90569
|
+
"pushTalkAudio",
|
|
90570
|
+
"endTalkSession"
|
|
90571
|
+
]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockPinRequired, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.AlarmPinRequired, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasMap, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasMap, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
|
|
90572
|
+
var ALL_FEATURES = Object.values(DeviceFeature);
|
|
90573
|
+
new Set(ALL_FEATURES);
|
|
90286
90574
|
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
90287
90575
|
var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
|
|
90288
90576
|
var HOMEKIT_REASON = "HomeKit has no laundry-appliance service. The export tab would pair an accessory with nothing on it: running-state is withheld until a null reading can be unavailable, and power is not a HomeKit service this export honours.";
|
|
@@ -91059,6 +91347,11 @@ Object.freeze({
|
|
|
91059
91347
|
form: "single",
|
|
91060
91348
|
optional: false
|
|
91061
91349
|
}],
|
|
91350
|
+
"deviceManager.setPrimaryChildPreference": [{
|
|
91351
|
+
name: "deviceId",
|
|
91352
|
+
form: "single",
|
|
91353
|
+
optional: false
|
|
91354
|
+
}],
|
|
91062
91355
|
"deviceManager.setRole": [{
|
|
91063
91356
|
name: "deviceId",
|
|
91064
91357
|
form: "single",
|
|
@@ -91938,12 +92231,12 @@ Object.freeze({
|
|
|
91938
92231
|
form: "single",
|
|
91939
92232
|
optional: false
|
|
91940
92233
|
}],
|
|
91941
|
-
"osdManager.
|
|
92234
|
+
"osdManager.previewSlot": [{
|
|
91942
92235
|
name: "deviceId",
|
|
91943
92236
|
form: "single",
|
|
91944
92237
|
optional: false
|
|
91945
92238
|
}],
|
|
91946
|
-
"osdManager.
|
|
92239
|
+
"osdManager.previewTemplate": [{
|
|
91947
92240
|
name: "deviceId",
|
|
91948
92241
|
form: "single",
|
|
91949
92242
|
optional: false
|
|
@@ -94527,7 +94820,9 @@ var TimelapseRuleInputSchema = object({
|
|
|
94527
94820
|
/** Classes the notification counts — see {@link ReportClassesField}. */
|
|
94528
94821
|
reportClasses: ReportClassesField.optional(),
|
|
94529
94822
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
94530
|
-
priority: PriorityField.default(3)
|
|
94823
|
+
priority: PriorityField.default(3),
|
|
94824
|
+
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
94825
|
+
targetOverrides: NcTargetOverridesSchema.optional()
|
|
94531
94826
|
});
|
|
94532
94827
|
object({
|
|
94533
94828
|
name: NameField.optional(),
|
|
@@ -94543,7 +94838,9 @@ object({
|
|
|
94543
94838
|
previewText: PreviewTextField.optional(),
|
|
94544
94839
|
previewMode: PreviewModeField.optional(),
|
|
94545
94840
|
reportClasses: ReportClassesField.optional(),
|
|
94546
|
-
priority: PriorityField.optional()
|
|
94841
|
+
priority: PriorityField.optional(),
|
|
94842
|
+
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
94843
|
+
targetOverrides: NcTargetOverridesSchema.optional()
|
|
94547
94844
|
});
|
|
94548
94845
|
TimelapseRuleInputSchema.extend({
|
|
94549
94846
|
id: string(),
|
|
@@ -94796,7 +95093,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
94796
95093
|
capability: adminUiCapability,
|
|
94797
95094
|
provider: {
|
|
94798
95095
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
94799
|
-
getVersion: async () => ({ version: "1.2.
|
|
95096
|
+
getVersion: async () => ({ version: "1.2.635" })
|
|
94800
95097
|
}
|
|
94801
95098
|
}];
|
|
94802
95099
|
}
|