@camstack/types 1.2.266 → 1.2.268
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/dist/addon.js +4 -4
- package/dist/addon.mjs +3 -3
- package/dist/capabilities/battery.cap.d.ts +17 -2
- package/dist/capabilities/capability-definition.d.ts +22 -0
- package/dist/capabilities/composer.cap.d.ts +99 -0
- package/dist/capabilities/consumables.cap.d.ts +79 -0
- package/dist/capabilities/core-blocks.cap.d.ts +1149 -91
- package/dist/capabilities/device-extension.cap.d.ts +12 -13
- package/dist/capabilities/device-state.cap.d.ts +186 -2
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/pipeline-analytics.cap.d.ts +14 -0
- package/dist/composition/composition-graph.d.ts +42 -9
- package/dist/composition/composition-items.d.ts +25 -0
- package/dist/composition/composition-report.d.ts +93 -2
- package/dist/composition/composition.d.ts +154 -3
- package/dist/composition/customization-name.d.ts +6 -0
- package/dist/composition/evaluate-field.d.ts +12 -0
- package/dist/composition/examples.d.ts +33 -0
- package/dist/composition/field-kinds.d.ts +42 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/plan-result.d.ts +16 -0
- package/dist/composition/state-fields.d.ts +6 -0
- package/dist/composition/validate-composition.d.ts +44 -9
- package/dist/composition-CPFIlFfw.mjs +1759 -0
- package/dist/composition-QlOB7QTG.js +2184 -0
- package/dist/device/device-context.d.ts +9 -0
- package/dist/device/device-runtime-state.d.ts +15 -1
- package/dist/device/index.d.ts +1 -1
- package/dist/device-extension/slot-descriptor.d.ts +8 -11
- package/dist/device-extension/slot-provider.d.ts +0 -2
- package/dist/enums/event-category.d.ts +25 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/err-msg-DX6i_MY4.mjs +339 -0
- package/dist/err-msg-Dx2Kor0g.js +368 -0
- package/dist/{event-category-BVDXG4tB.mjs → event-category-C5xZWqz6.mjs} +31 -1
- package/dist/{event-category-BVfsrBYA.js → event-category-MbnB-6AN.js} +48 -0
- package/dist/generated/addon-api.d.ts +42 -0
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1548 -1660
- package/dist/index.mjs +1243 -1388
- package/dist/interfaces/kernel-abstractions.d.ts +16 -0
- package/dist/interfaces/status-overlay.d.ts +42 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +29 -8
- package/dist/node.mjs +23 -3
- package/dist/{sleep-8K9gue-H.js → sleep-BSzia-xT.js} +6 -352
- package/dist/{sleep-DC-wdyeS.mjs → sleep-jkRQgtSc.mjs} +7 -329
- package/package.json +1 -1
- package/dist/canonical-hash-CPK2Dy60.mjs +0 -715
- package/dist/canonical-hash-CSE4ioRi.js +0 -792
- package/dist/err-msg-COpsHMw2.js +0 -18
- package/dist/err-msg-IQTHeDzc.mjs +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-C5xZWqz6.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -2589,332 +2589,6 @@ var adminUiCapability = {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
//#endregion
|
|
2592
|
-
//#region src/device/device-type.ts
|
|
2593
|
-
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
2594
|
-
DeviceType["Camera"] = "camera";
|
|
2595
|
-
DeviceType["Hub"] = "hub";
|
|
2596
|
-
DeviceType["Light"] = "light";
|
|
2597
|
-
DeviceType["Siren"] = "siren";
|
|
2598
|
-
DeviceType["Switch"] = "switch";
|
|
2599
|
-
DeviceType["Sensor"] = "sensor";
|
|
2600
|
-
DeviceType["Thermostat"] = "thermostat";
|
|
2601
|
-
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
2602
|
-
* `climate-control` cap surface with `Thermostat` but renders a
|
|
2603
|
-
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
2604
|
-
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
2605
|
-
* reusable by other AC integrations. */
|
|
2606
|
-
DeviceType["Climate"] = "climate";
|
|
2607
|
-
DeviceType["Button"] = "button";
|
|
2608
|
-
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
2609
|
-
* event vocabulary verbatim (no normalization). Installed with the
|
|
2610
|
-
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
2611
|
-
* HA bus events (e.g. `zha_event`, generic). */
|
|
2612
|
-
DeviceType["EventEmitter"] = "event-emitter";
|
|
2613
|
-
/** Firmware/software update entity — current vs available version,
|
|
2614
|
-
* updatable flag, update state, and an install action. Installed with
|
|
2615
|
-
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
2616
|
-
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
2617
|
-
DeviceType["Update"] = "update";
|
|
2618
|
-
DeviceType["Generic"] = "generic";
|
|
2619
|
-
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
2620
|
-
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
2621
|
-
* endpoint; the `notifier` cap defines the send surface. */
|
|
2622
|
-
DeviceType["Notifier"] = "notifier";
|
|
2623
|
-
/** Pre-recorded action sequence with optional parameters
|
|
2624
|
-
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
2625
|
-
DeviceType["Script"] = "script";
|
|
2626
|
-
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
2627
|
-
* trigger surface exposed via `automation-control` cap. */
|
|
2628
|
-
DeviceType["Automation"] = "automation";
|
|
2629
|
-
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
2630
|
-
DeviceType["Lock"] = "lock";
|
|
2631
|
-
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
2632
|
-
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
2633
|
-
DeviceType["Cover"] = "cover";
|
|
2634
|
-
/** Pipe / water / gas valve with open/close/stop and optional
|
|
2635
|
-
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
2636
|
-
* modelled on the same open/closed lifecycle. */
|
|
2637
|
-
DeviceType["Valve"] = "valve";
|
|
2638
|
-
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
2639
|
-
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
2640
|
-
* modelled on the same target / mode lifecycle. */
|
|
2641
|
-
DeviceType["Humidifier"] = "humidifier";
|
|
2642
|
-
/** Water heater / boiler with target temperature + operation mode +
|
|
2643
|
-
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
2644
|
-
* climate-family actuator. */
|
|
2645
|
-
DeviceType["WaterHeater"] = "water-heater";
|
|
2646
|
-
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
2647
|
-
DeviceType["Fan"] = "fan";
|
|
2648
|
-
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
2649
|
-
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
2650
|
-
DeviceType["MediaPlayer"] = "media-player";
|
|
2651
|
-
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
2652
|
-
* `alarm-panel` cap. */
|
|
2653
|
-
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
2654
|
-
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
2655
|
-
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
2656
|
-
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
2657
|
-
* TextControl / DateTimeControl. */
|
|
2658
|
-
DeviceType["Control"] = "control";
|
|
2659
|
-
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
2660
|
-
* `presence` cap. */
|
|
2661
|
-
DeviceType["Presence"] = "presence";
|
|
2662
|
-
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
2663
|
-
* `weather` cap. */
|
|
2664
|
-
DeviceType["Weather"] = "weather";
|
|
2665
|
-
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
2666
|
-
DeviceType["Vacuum"] = "vacuum";
|
|
2667
|
-
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
2668
|
-
* `lawn-mower-control` cap. */
|
|
2669
|
-
DeviceType["LawnMower"] = "lawn-mower";
|
|
2670
|
-
/** Physical HA device group — parent container for entity-children
|
|
2671
|
-
* adopted from a single HA device entry. Not renderable as a
|
|
2672
|
-
* standalone device; exists only to anchor child entities. */
|
|
2673
|
-
DeviceType["Container"] = "container";
|
|
2674
|
-
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
2675
|
-
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
2676
|
-
DeviceType["Image"] = "image";
|
|
2677
|
-
/** Smart pet feeder — cloud-connected food dispenser with a bowl food
|
|
2678
|
-
* level, battery, desiccant life, feeding state and manual-feed /
|
|
2679
|
-
* call-pet / maintenance actions. Installed with the `pet-feeder` cap;
|
|
2680
|
-
* dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
|
|
2681
|
-
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
2682
|
-
* integrations sharing the same food/desiccant/hopper surface. */
|
|
2683
|
-
DeviceType["PetFeeder"] = "pet-feeder";
|
|
2684
|
-
return DeviceType;
|
|
2685
|
-
}({});
|
|
2686
|
-
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
2687
|
-
DeviceFeature["BatteryOperated"] = "battery-operated";
|
|
2688
|
-
DeviceFeature["Rebootable"] = "rebootable";
|
|
2689
|
-
/**
|
|
2690
|
-
* Device supports an on-demand re-sync of its derived spec with its
|
|
2691
|
-
* upstream source — drives the generic Re-sync button. The owning
|
|
2692
|
-
* provider implements the action via the `device-adoption.resync` cap.
|
|
2693
|
-
*/
|
|
2694
|
-
DeviceFeature["Resyncable"] = "resyncable";
|
|
2695
|
-
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
2696
|
-
DeviceFeature["DoorbellButton"] = "doorbell-button";
|
|
2697
|
-
DeviceFeature["TwoWayAudio"] = "two-way-audio";
|
|
2698
|
-
DeviceFeature["PanTiltZoom"] = "pan-tilt-zoom";
|
|
2699
|
-
/**
|
|
2700
|
-
* Camera supports the on-firmware autotrack subsystem (subject-
|
|
2701
|
-
* following). Distinct from `PanTiltZoom` because not every PTZ
|
|
2702
|
-
* camera ships autotrack — the admin UI uses this flag to gate
|
|
2703
|
-
* the autotrack toggle / settings card without re-deriving from
|
|
2704
|
-
* the cap registry. Mirrors `ptz-autotrack` cap registration:
|
|
2705
|
-
* driver sets this feature when probe confirms the firmware
|
|
2706
|
-
* surface, and registers the cap in the same code path.
|
|
2707
|
-
*/
|
|
2708
|
-
DeviceFeature["PtzAutotrack"] = "ptz-autotrack";
|
|
2709
|
-
/**
|
|
2710
|
-
* Accessory exposes a "trigger on motion" toggle — the parent camera's
|
|
2711
|
-
* motion detection automatically activates this device. Mirrors
|
|
2712
|
-
* `motion-trigger` cap registration: drivers set this feature in the
|
|
2713
|
-
* same code path that calls `ctx.registerNativeCap(motionTriggerCapability, ...)`.
|
|
2714
|
-
*
|
|
2715
|
-
* Used by admin UI (gate the in-hero `MotionTriggerToggle` against a
|
|
2716
|
-
* fast scalar without binding fetch), notifier rules, and `listAll`
|
|
2717
|
-
* filters that want "all devices with on-motion behaviour".
|
|
2718
|
-
*/
|
|
2719
|
-
DeviceFeature["MotionTrigger"] = "motion-trigger";
|
|
2720
|
-
/** Light supports rgb-triplet color via `color` cap. */
|
|
2721
|
-
DeviceFeature["LightColorRgb"] = "light-color-rgb";
|
|
2722
|
-
/** Light supports HSV color via `color` cap. */
|
|
2723
|
-
DeviceFeature["LightColorHsv"] = "light-color-hsv";
|
|
2724
|
-
/** Light supports color-temperature (mired) via `color` cap. */
|
|
2725
|
-
DeviceFeature["LightColorMired"] = "light-color-mired";
|
|
2726
|
-
/** Thermostat supports a `heat_cool` dual setpoint (targetLow +
|
|
2727
|
-
* targetHigh). Gates the range slider UI. */
|
|
2728
|
-
DeviceFeature["ClimateDualSetpoint"] = "climate-dual-setpoint";
|
|
2729
|
-
/** Thermostat exposes target humidity and/or current humidity
|
|
2730
|
-
* readings. Gates the humidity controls. */
|
|
2731
|
-
DeviceFeature["ClimateHumidity"] = "climate-humidity";
|
|
2732
|
-
/** Thermostat exposes a fan-mode selector. */
|
|
2733
|
-
DeviceFeature["ClimateFanMode"] = "climate-fan-mode";
|
|
2734
|
-
/** Thermostat exposes preset modes (eco / away / sleep / vendor). */
|
|
2735
|
-
DeviceFeature["ClimatePreset"] = "climate-preset";
|
|
2736
|
-
/** Thermostat exposes a vertical louver swing toggle. Gates the
|
|
2737
|
-
* vertical-swing switch in the climate UI. Independent of horizontal. */
|
|
2738
|
-
DeviceFeature["ClimateSwingVertical"] = "climate-swing-vertical";
|
|
2739
|
-
/** Thermostat exposes a horizontal louver swing toggle. Gates the
|
|
2740
|
-
* horizontal-swing switch in the climate UI. Independent of vertical. */
|
|
2741
|
-
DeviceFeature["ClimateSwingHorizontal"] = "climate-swing-horizontal";
|
|
2742
|
-
/** Cover exposes intermediate position control (0..100). Gates the
|
|
2743
|
-
* position slider UI. */
|
|
2744
|
-
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
2745
|
-
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
2746
|
-
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
2747
|
-
/** Valve exposes intermediate position control (0..100). Gates the
|
|
2748
|
-
* position slider / drag surface UI. */
|
|
2749
|
-
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
2750
|
-
/** Fan exposes a speed-percentage setter. Gates the speed slider UI. */
|
|
2751
|
-
DeviceFeature["FanSpeed"] = "fan-speed";
|
|
2752
|
-
/** Fan exposes a preset mode selector. */
|
|
2753
|
-
DeviceFeature["FanPreset"] = "fan-preset";
|
|
2754
|
-
/** Fan exposes blade direction (forward/reverse) — typical of
|
|
2755
|
-
* ceiling fans. */
|
|
2756
|
-
DeviceFeature["FanDirection"] = "fan-direction";
|
|
2757
|
-
/** Fan exposes an oscillation toggle. */
|
|
2758
|
-
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
2759
|
-
/** Lock requires a PIN code on lock/unlock. Gates the code-entry
|
|
2760
|
-
* field on the UI lock-controls panel. */
|
|
2761
|
-
DeviceFeature["LockPinRequired"] = "lock-pin-required";
|
|
2762
|
-
/** Lock supports a latch-release ("open door") action distinct from
|
|
2763
|
-
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
2764
|
-
* `supported_features`. Gates the Open Door button in the UI. */
|
|
2765
|
-
DeviceFeature["LockOpen"] = "lock-open";
|
|
2766
|
-
/** Media player exposes a seek-to-position surface. */
|
|
2767
|
-
DeviceFeature["MediaPlayerSeek"] = "media-player-seek";
|
|
2768
|
-
/** Media player exposes a volume-level setter. */
|
|
2769
|
-
DeviceFeature["MediaPlayerVolume"] = "media-player-volume";
|
|
2770
|
-
/** Media player exposes a mute toggle distinct from volume=0. */
|
|
2771
|
-
DeviceFeature["MediaPlayerMute"] = "media-player-mute";
|
|
2772
|
-
/** Media player exposes a shuffle toggle. */
|
|
2773
|
-
DeviceFeature["MediaPlayerShuffle"] = "media-player-shuffle";
|
|
2774
|
-
/** Media player exposes a repeat mode (off / all / one). */
|
|
2775
|
-
DeviceFeature["MediaPlayerRepeat"] = "media-player-repeat";
|
|
2776
|
-
/** Media player exposes a source / input selector. */
|
|
2777
|
-
DeviceFeature["MediaPlayerSelectSource"] = "media-player-select-source";
|
|
2778
|
-
/** Media player exposes a play-arbitrary-media surface (URL / id). */
|
|
2779
|
-
DeviceFeature["MediaPlayerPlayMedia"] = "media-player-play-media";
|
|
2780
|
-
/** Media player exposes next-track. */
|
|
2781
|
-
DeviceFeature["MediaPlayerNext"] = "media-player-next";
|
|
2782
|
-
/** Media player exposes previous-track. */
|
|
2783
|
-
DeviceFeature["MediaPlayerPrevious"] = "media-player-previous";
|
|
2784
|
-
/** Media player exposes stop distinct from pause. */
|
|
2785
|
-
DeviceFeature["MediaPlayerStop"] = "media-player-stop";
|
|
2786
|
-
/** Alarm panel requires a PIN code on arm/disarm. */
|
|
2787
|
-
DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
|
|
2788
|
-
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
2789
|
-
* addition to a textual location. */
|
|
2790
|
-
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
2791
|
-
/** Notifier accepts an inline / URL image attachment. */
|
|
2792
|
-
DeviceFeature["NotifierImage"] = "notifier-image";
|
|
2793
|
-
/** Notifier accepts a priority hint (high/normal/low). */
|
|
2794
|
-
DeviceFeature["NotifierPriority"] = "notifier-priority";
|
|
2795
|
-
/** Notifier accepts a free-form `data` payload for platform-specific
|
|
2796
|
-
* fields. */
|
|
2797
|
-
DeviceFeature["NotifierData"] = "notifier-data";
|
|
2798
|
-
/** Notifier supports interactive action buttons / callbacks. */
|
|
2799
|
-
DeviceFeature["NotifierActions"] = "notifier-actions";
|
|
2800
|
-
/** Notifier supports per-call recipient targeting (multi-user). */
|
|
2801
|
-
DeviceFeature["NotifierRecipients"] = "notifier-recipients";
|
|
2802
|
-
/** Script runner accepts a variables map on each run invocation. */
|
|
2803
|
-
DeviceFeature["ScriptVariables"] = "script-variables";
|
|
2804
|
-
/** Automation `trigger` accepts a skipCondition flag — fires the
|
|
2805
|
-
* automation's actions while bypassing its condition block. */
|
|
2806
|
-
DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
|
|
2807
|
-
/** Robot vacuum exposes a live cleaning map (image child). Gates the
|
|
2808
|
-
* map tile in the vacuum UI. */
|
|
2809
|
-
DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
|
|
2810
|
-
/** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
|
|
2811
|
-
* switches group. */
|
|
2812
|
-
DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
|
|
2813
|
-
/** Robot mower exposes a live mowing map (SVG image child). Gates the
|
|
2814
|
-
* mower map tile. */
|
|
2815
|
-
DeviceFeature["MowerHasMap"] = "mower-has-map";
|
|
2816
|
-
/** Robot mower exposes targeted mowing (all-area / zones / edges /
|
|
2817
|
-
* spots) — gates the Mow action + map selectors. */
|
|
2818
|
-
DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
|
|
2819
|
-
return DeviceFeature;
|
|
2820
|
-
}({});
|
|
2821
|
-
var ChargingStatus = /* @__PURE__ */ function(ChargingStatus) {
|
|
2822
|
-
ChargingStatus["ChargingDC"] = "charging-dc";
|
|
2823
|
-
ChargingStatus["ChargingSolar"] = "charging-solar";
|
|
2824
|
-
ChargingStatus["NotCharging"] = "not-charging";
|
|
2825
|
-
return ChargingStatus;
|
|
2826
|
-
}({});
|
|
2827
|
-
/**
|
|
2828
|
-
* Semantic role a device plays within its parent. Populated by driver
|
|
2829
|
-
* addons when creating accessory devices (Reolink siren/floodlight/
|
|
2830
|
-
* PIR/chime/autotrack/doorbell, ONVIF relay outputs, …). Used by the
|
|
2831
|
-
* admin UI to pick icons, labels, and widgets — a `Switch` with
|
|
2832
|
-
* `role: Floodlight` renders as a bulb with a brightness slider,
|
|
2833
|
-
* whereas a `Switch` with `role: Siren` renders as a klaxon.
|
|
2834
|
-
*
|
|
2835
|
-
* Undefined for top-level devices (cameras, NVRs, hubs). Persisted in
|
|
2836
|
-
* sqlite as a nullable TEXT column — old rows keep working unchanged.
|
|
2837
|
-
*/
|
|
2838
|
-
var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
2839
|
-
DeviceRole["Siren"] = "siren";
|
|
2840
|
-
DeviceRole["Floodlight"] = "floodlight";
|
|
2841
|
-
DeviceRole["Spotlight"] = "spotlight";
|
|
2842
|
-
DeviceRole["PirSensor"] = "pir-sensor";
|
|
2843
|
-
DeviceRole["Chime"] = "chime";
|
|
2844
|
-
DeviceRole["Autotrack"] = "autotrack";
|
|
2845
|
-
DeviceRole["Nightvision"] = "nightvision";
|
|
2846
|
-
DeviceRole["PrivacyMask"] = "privacy-mask";
|
|
2847
|
-
DeviceRole["Doorbell"] = "doorbell";
|
|
2848
|
-
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
2849
|
-
* real Switch device for UI rendering / export adapters. */
|
|
2850
|
-
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
2851
|
-
/** Generic motion / occupancy / moving event source. Distinct from
|
|
2852
|
-
* the camera accessory PirSensor role: that one is a camera child;
|
|
2853
|
-
* this is a standalone HA / 3rd-party motion sensor. */
|
|
2854
|
-
DeviceRole["MotionSensor"] = "motion-sensor";
|
|
2855
|
-
DeviceRole["ContactSensor"] = "contact-sensor";
|
|
2856
|
-
DeviceRole["LeakSensor"] = "leak-sensor";
|
|
2857
|
-
DeviceRole["SmokeSensor"] = "smoke-sensor";
|
|
2858
|
-
DeviceRole["COSensor"] = "co-sensor";
|
|
2859
|
-
DeviceRole["GasSensor"] = "gas-sensor";
|
|
2860
|
-
DeviceRole["TamperSensor"] = "tamper-sensor";
|
|
2861
|
-
DeviceRole["VibrationSensor"] = "vibration-sensor";
|
|
2862
|
-
DeviceRole["ConnectivitySensor"] = "connectivity-sensor";
|
|
2863
|
-
DeviceRole["SoundSensor"] = "sound-sensor";
|
|
2864
|
-
/** Fallback for `binary_sensor` without a known `device_class`. */
|
|
2865
|
-
DeviceRole["BinarySensor"] = "binary-sensor";
|
|
2866
|
-
DeviceRole["TemperatureSensor"] = "temperature-sensor";
|
|
2867
|
-
DeviceRole["HumiditySensor"] = "humidity-sensor";
|
|
2868
|
-
DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
|
|
2869
|
-
DeviceRole["PressureSensor"] = "pressure-sensor";
|
|
2870
|
-
/** Wind speed or direction (weather-station `wind-sensor` cap). */
|
|
2871
|
-
DeviceRole["WindSensor"] = "wind-sensor";
|
|
2872
|
-
/** Rain accumulation or rate (weather-station `rain-sensor` cap). */
|
|
2873
|
-
DeviceRole["RainSensor"] = "rain-sensor";
|
|
2874
|
-
/** UV index (weather-station `uv-sensor` cap). */
|
|
2875
|
-
DeviceRole["UvSensor"] = "uv-sensor";
|
|
2876
|
-
/** Solar irradiance W/m² (weather-station `solar-radiation-sensor` cap).
|
|
2877
|
-
* Distinct from AmbientLightSensor (lux). */
|
|
2878
|
-
DeviceRole["SolarRadiationSensor"] = "solar-radiation-sensor";
|
|
2879
|
-
/** Soil moisture % (garden/weather `soil-moisture-sensor` cap). */
|
|
2880
|
-
DeviceRole["SoilMoistureSensor"] = "soil-moisture-sensor";
|
|
2881
|
-
DeviceRole["PowerSensor"] = "power-sensor";
|
|
2882
|
-
DeviceRole["EnergySensor"] = "energy-sensor";
|
|
2883
|
-
DeviceRole["VoltageSensor"] = "voltage-sensor";
|
|
2884
|
-
DeviceRole["CurrentSensor"] = "current-sensor";
|
|
2885
|
-
DeviceRole["AirQualitySensor"] = "air-quality-sensor";
|
|
2886
|
-
/** Battery level (numeric % via `sensor` OR low-bool via
|
|
2887
|
-
* `binary_sensor` — the cap distinguishes via the value type). */
|
|
2888
|
-
DeviceRole["BatterySensor"] = "battery-sensor";
|
|
2889
|
-
/** Fallback for `sensor` numeric without a known `device_class`. */
|
|
2890
|
-
DeviceRole["NumericSensor"] = "numeric-sensor";
|
|
2891
|
-
/** String / enum state (HA `sensor` with `state_class: enum` or
|
|
2892
|
-
* `attributes.options`). */
|
|
2893
|
-
DeviceRole["EnumSensor"] = "enum-sensor";
|
|
2894
|
-
/** Date / timestamp state (HA `sensor` with `device_class: timestamp`
|
|
2895
|
-
* or `date`). The slice carries the raw ISO string verbatim (hosted on
|
|
2896
|
-
* the `enum-sensor` cap); the UI renders it locale-formatted. */
|
|
2897
|
-
DeviceRole["DateTimeSensor"] = "datetime-sensor";
|
|
2898
|
-
/** Last-resort fallback when nothing else matches. */
|
|
2899
|
-
DeviceRole["GenericSensor"] = "generic-sensor";
|
|
2900
|
-
DeviceRole["NumericControl"] = "numeric-control";
|
|
2901
|
-
DeviceRole["SelectControl"] = "select-control";
|
|
2902
|
-
DeviceRole["TextControl"] = "text-control";
|
|
2903
|
-
DeviceRole["DateTimeControl"] = "datetime-control";
|
|
2904
|
-
/** Mobile push notifier (HA `notify.mobile_app_*`) — supports
|
|
2905
|
-
* rich features (image, priority, channel routing). */
|
|
2906
|
-
DeviceRole["MobilePushNotifier"] = "mobile-push-notifier";
|
|
2907
|
-
/** Chat / messaging service (HA `notify.telegram_*`,
|
|
2908
|
-
* `notify.discord_*`, etc.). */
|
|
2909
|
-
DeviceRole["MessagingNotifier"] = "messaging-notifier";
|
|
2910
|
-
/** Email-based delivery (HA `notify.smtp`, etc.). */
|
|
2911
|
-
DeviceRole["EmailNotifier"] = "email-notifier";
|
|
2912
|
-
/** Fallback when the notifier service name doesn't match a known
|
|
2913
|
-
* pattern. */
|
|
2914
|
-
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
2915
|
-
return DeviceRole;
|
|
2916
|
-
}({});
|
|
2917
|
-
//#endregion
|
|
2918
2592
|
//#region src/capabilities/custom-actions.ts
|
|
2919
2593
|
/**
|
|
2920
2594
|
* Identity — preserves literal types for downstream inference.
|
|
@@ -4083,7 +3757,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
4083
3757
|
deviceState: {
|
|
4084
3758
|
getSnapshot: (input) => dispatchSystem("deviceState", "getSnapshot", "query", input),
|
|
4085
3759
|
getCapSlice: (input) => dispatchSystem("deviceState", "getCapSlice", "query", input),
|
|
4086
|
-
setCapSlice: (input) => dispatchSystem("deviceState", "setCapSlice", "mutation", input)
|
|
3760
|
+
setCapSlice: (input) => dispatchSystem("deviceState", "setCapSlice", "mutation", input),
|
|
3761
|
+
claimFields: (input) => dispatchSystem("deviceState", "claimFields", "mutation", input),
|
|
3762
|
+
patchOwnedFields: (input) => dispatchSystem("deviceState", "patchOwnedFields", "mutation", input),
|
|
3763
|
+
releaseClaim: (input) => dispatchSystem("deviceState", "releaseClaim", "mutation", input),
|
|
3764
|
+
getNativeCapSlice: (input) => dispatchSystem("deviceState", "getNativeCapSlice", "query", input)
|
|
4087
3765
|
},
|
|
4088
3766
|
faceGallery: {
|
|
4089
3767
|
listRecentFaces: (input) => dispatchSystem("faceGallery", "listRecentFaces", "query", input),
|
|
@@ -4441,4 +4119,4 @@ function sleepCancellable(ms, signal) {
|
|
|
4441
4119
|
});
|
|
4442
4120
|
}
|
|
4443
4121
|
//#endregion
|
|
4444
|
-
export {
|
|
4122
|
+
export { CamProfileSchema as $, DEVICE_STATUS_METHOD as A, normalizeAddonInitResult as At, nodePin as B, hydrateSchema as Bt, customAction as C, PEER_BYTES_STALL_MS as Ct, adminUiCapability as D, SHARE_VIEW_KINDS as Dt, deviceCustomAction as E, DATAPLANE_SECRET_HEADER as Et, method as F, isEvent as Ft, emitDownForOwnedCaps as G, isAudioChunkFormat as Gt, toNodeId as H, AUDIO_CHUNK_FORMATS as Ht, optionalMethod as I, WELL_KNOWN_TABS as It, AudioChunkFormatSchema as J, readinessKey as K, resolveCapMount as L, WELL_KNOWN_TAB_MAP as Lt, event as M, createDurableState as Mt, expandCapMethods as N, createEvent as Nt, DEFAULT_RUNTIME_STATE_DURABILITY as O, DisposerChain as Ot, isDeviceConfigCap as P, emitReadiness as Pt, CAM_PROFILE_ORDER as Q, systemMethod as R, collectHydratedFieldEntries as Rt, DEVICE_CHILDREN_BATCH_MAX as S, PEER_BYTES_MAX_OUTSTANDING as St, describeCustomActions as T, PeerBytesTicketSchema as Tt, ReadinessRegistry as U, audioChunkBytesPerSample as Ut, readNodePin as V, resolveHydratedFieldValue as Vt, ReadinessTimeoutError as W, expandAudioChunkToF32le as Wt, BrokerStatsSchema as X, AudioStreamPickSchema as Y, BrokerStatusSchema as Z, createMirrorSource as _, makeProfileBrokerId as _t, asJsonObject as a, EncodedPacketSchema as at, deviceOpsCapability as b, selectAssignedProfileSlots as bt, parseJsonArray as c, ProfileRtspEntrySchema as ct, BOOT_RECOVERY_BACKOFF_MS as d, StreamSourceEntrySchema$1 as dt, CamStreamKindSchema as et, DEVICE_SCOPED_CAPS as f, StreamSourceSchema as ft, createLazyTrpcSource as g, SubscribeFramesResultSchema as gt, createEventBusSliceSource as h, SubscribeFramesInputSchema as ht, asJsonArray as i, DecodedFrameSchema as it, PROVIDER_PIN_FIELD as j, normalizeNodeId as jt, DEVICE_SETTINGS_CONTRIBUTION_METHODS as k, BaseAddon as kt, parseJsonObject as l, ProfileSlotSchema as lt, createDeviceProxy as m, SubscribeAudioChunksResultSchema as mt, sleepCancellable as n, CameraStreamSchema as nt, asNumber as o, FrameHandleFormatSchema as ot, isDeviceScopedCap as p, SubscribeAudioChunksInputSchema as pt, scopeKey as q, asBoolean as r, DecodedAudioChunkSchema as rt, asString as s, FrameHandleSchema as st, sleep as t, CamStreamResolutionSchema as tt, parseJsonUnknown as u, ProfileSlotStatusSchema as ut, createSliceHandle as v, makeSourceBrokerId as vt, defineCustomActions as w, PEER_BYTES_TICKET_TTL_MS as wt, viewerUiCapability as x, PEER_BYTES_CHUNK_BYTES as xt, RawStateResultSchema as y, parseProfileBrokerId as yt, CAP_NODE_PIN_CONTEXT_KEY as z, collectHydratedFieldValues as zt };
|