@camstack/types 1.2.556 → 1.2.558

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/addon/fake-addon-context.d.ts +3 -0
  3. package/dist/addon.js +2 -2
  4. package/dist/addon.mjs +2 -2
  5. package/dist/automation/action-target.d.ts +8 -0
  6. package/dist/automation/action.d.ts +24 -54
  7. package/dist/automation/draft/draft-json.d.ts +1 -1
  8. package/dist/automation/draft/index.d.ts +0 -1
  9. package/dist/automation/index.d.ts +3 -2
  10. package/dist/automation/normalize-units.d.ts +3 -3
  11. package/dist/automation/offered.d.ts +18 -0
  12. package/dist/automation/recipe.d.ts +1156 -2598
  13. package/dist/automation/scheduler.d.ts +48 -108
  14. package/dist/automation/step-runner.d.ts +7 -0
  15. package/dist/capabilities/action-source.cap.d.ts +12 -27
  16. package/dist/capabilities/actions.cap.d.ts +84 -189
  17. package/dist/capabilities/device-export.cap.d.ts +36 -1
  18. package/dist/capabilities/hero-layout.cap.d.ts +92 -0
  19. package/dist/capabilities/index.d.ts +2 -2
  20. package/dist/capabilities/remote.cap.d.ts +2 -2
  21. package/dist/capabilities/scene-monitor.cap.d.ts +1 -1
  22. package/dist/capabilities/schedulers.cap.d.ts +96 -216
  23. package/dist/client.d.ts +1 -1
  24. package/dist/client.js +21 -3
  25. package/dist/client.mjs +20 -4
  26. package/dist/{composed-stable-id-CDNLq7Y8.js → composed-stable-id-BmJ_5GiE.js} +5 -0
  27. package/dist/{composed-stable-id-CPp3votu.mjs → composed-stable-id-iddnCQ51.mjs} +5 -0
  28. package/dist/composition/composition.d.ts +8 -0
  29. package/dist/composition/helpers/index.d.ts +1 -1
  30. package/dist/composition/helpers/save.d.ts +2 -0
  31. package/dist/composition/helpers/source-pick.d.ts +11 -5
  32. package/dist/composition/validate-composition.d.ts +2 -0
  33. package/dist/device/cap-vocabulary/action-index.d.ts +32 -0
  34. package/dist/device/cap-vocabulary/index.d.ts +2 -2
  35. package/dist/device/device-do-actions.d.ts +3 -105
  36. package/dist/device/device-kind.d.ts +36 -0
  37. package/dist/device/device-type.d.ts +5 -0
  38. package/dist/device/export-name.d.ts +65 -0
  39. package/dist/device/hero/hero-contribution-kit.d.ts +3 -0
  40. package/dist/device/hero/hero-fragment.d.ts +3 -0
  41. package/dist/device/hero/hero-look.d.ts +6 -0
  42. package/dist/device/hero/hero-measurement.d.ts +76 -0
  43. package/dist/device/hero/hero-model.d.ts +91 -0
  44. package/dist/device/hero/hero-row.d.ts +61 -0
  45. package/dist/device/hero/hero-scene.d.ts +1 -0
  46. package/dist/device/hero/index.d.ts +1 -0
  47. package/dist/device/index.d.ts +1 -1
  48. package/dist/generated/addon-api.d.ts +7 -0
  49. package/dist/generated/method-access-map.d.ts +1 -1
  50. package/dist/generated/system-proxy.d.ts +1 -1
  51. package/dist/{implemented-methods-5YMDeE3f.mjs → implemented-methods-CSTk6zYK.mjs} +147 -2
  52. package/dist/{implemented-methods-Cj65uy2F.js → implemented-methods-CfaRR_ki.js} +212 -1
  53. package/dist/index.d.ts +9 -8
  54. package/dist/index.js +3145 -2959
  55. package/dist/index.mjs +3095 -2936
  56. package/dist/node.js +2 -2
  57. package/dist/node.mjs +2 -2
  58. package/dist/notification/alarm-steps.d.ts +18 -0
  59. package/dist/remote/remote-config.d.ts +5 -5
  60. package/dist/{sleep-Czv-4wFH.mjs → sleep-BvVGLl30.mjs} +52 -2
  61. package/dist/{sleep-BRGFFgr9.js → sleep-CyWfD1LJ.js} +69 -1
  62. package/dist/testing.js +3 -3
  63. package/dist/testing.mjs +3 -3
  64. package/package.json +1 -1
@@ -265,6 +265,12 @@ export declare const HERO_LOOK_BY_ROLE: {
265
265
  background: "alert-wash" | "cool-fall" | "drum" | "glow" | "heat-rise" | "mist" | "plain" | "sky" | "water";
266
266
  animation: "blink" | "breathe" | "equalizer" | "fall" | "glow" | "halo" | "none" | "pulse" | "rise" | "spin" | "tumble" | "wave";
267
267
  }>>;
268
+ readonly "switch-light": Readonly<Record<"alert" | "idle" | "off" | "offline" | "on" | "running" | "standby" | "unknown", {
269
+ icon: "a-arrow-down" | "a-arrow-up" | "a-large-small" | "accessibility" | "activity" | "air-vent" | "airplay" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "alarm-smoke" | "album" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ambulance" | "ampersand" | "ampersands" | "amphora" | "anchor" | "angry" | "annoyed" | "antenna" | "anvil" | "aperture" | "app-window" | "app-window-mac" | "apple" | "archive" | "archive-restore" | "archive-x" | "armchair" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-0-1" | "arrow-down-1-0" | "arrow-down-a-z" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-left" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-to-line" | "arrow-right" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-to-line" | "arrow-up" | "arrow-up-0-1" | "arrow-up-1-0" | "arrow-up-a-z" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-narrow-wide" | "arrow-up-right" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrows-up-from-line" | "asterisk" | "at-sign" | "atom" | "audio-lines" | "audio-waveform" | "award" | "axe" | "axis-3d" | "baby" | "backpack" | "badge" | "badge-alert" | "badge-cent" | "badge-check" | "badge-dollar-sign" | "badge-euro" | "badge-indian-rupee" | "badge-info" | "badge-japanese-yen" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-pound-sterling" | "badge-question-mark" | "badge-russian-ruble" | "badge-swiss-franc" | "badge-turkish-lira" | "badge-x" | "baggage-claim" | "balloon" | "ban" | "banana" | "bandage" | "banknote" | "banknote-arrow-down" | "banknote-arrow-up" | "banknote-x" | "barcode" | "barrel" | "baseline" | "bath" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-plus" | "battery-warning" | "beaker" | "bean" | "bean-off" | "bed" | "bed-double" | "bed-single" | "beef" | "beer" | "beer-off" | "bell" | "bell-dot" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "biceps-flexed" | "bike" | "binary" | "binoculars" | "biohazard" | "bird" | "birdhouse" | "bitcoin" | "blend" | "blinds" | "blocks" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "bold" | "bolt" | "bomb" | "bone" | "book" | "book-a" | "book-alert" | "book-audio" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-headphones" | "book-heart" | "book-image" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-search" | "book-text" | "book-type" | "book-up" | "book-up-2" | "book-user" | "book-x" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-plus" | "bookmark-x" | "boom-box" | "bot" | "bot-message-square" | "bot-off" | "bottle-wine" | "bow-arrow" | "box" | "boxes" | "braces" | "brackets" | "brain" | "brain-circuit" | "brain-cog" | "brick-wall" | "brick-wall-fire" | "brick-wall-shield" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "bring-to-front" | "brush" | "brush-cleaning" | "bubbles" | "bug" | "bug-off" | "bug-play" | "building" | "building-2" | "bus" | "bus-front" | "cable" | "cable-car" | "cake" | "cake-slice" | "calculator" | "calendar" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-fold" | "calendar-heart" | "calendar-minus" | "calendar-minus-2" | "calendar-off" | "calendar-plus" | "calendar-plus-2" | "calendar-range" | "calendar-search" | "calendar-sync" | "calendar-x" | "calendar-x-2" | "calendars" | "camera" | "camera-off" | "candy" | "candy-cane" | "candy-off" | "cannabis" | "cannabis-off" | "captions" | "captions-off" | "car" | "car-front" | "car-taxi-front" | "caravan" | "card-sim" | "carrot" | "case-lower" | "case-sensitive" | "case-upper" | "cassette-tape" | "cast" | "castle" | "cat" | "cctv" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "check" | "check-check" | "check-line" | "chef-hat" | "cherry" | "chess-bishop" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevron-down" | "chevron-first" | "chevron-last" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-left-right-ellipsis" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "church" | "cigarette" | "cigarette-off" | "circle" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-dashed" | "circle-divide" | "circle-dollar-sign" | "circle-dot" | "circle-dot-dashed" | "circle-ellipsis" | "circle-equal" | "circle-fading-arrow-up" | "circle-fading-plus" | "circle-gauge" | "circle-minus" | "circle-off" | "circle-parking" | "circle-parking-off" | "circle-pause" | "circle-percent" | "circle-pile" | "circle-play" | "circle-plus" | "circle-pound-sterling" | "circle-power" | "circle-question-mark" | "circle-slash" | "circle-slash-2" | "circle-small" | "circle-star" | "circle-stop" | "circle-user" | "circle-user-round" | "circle-x" | "circuit-board" | "citrus" | "clapperboard" | "clipboard" | "clipboard-check" | "clipboard-clock" | "clipboard-copy" | "clipboard-list" | "clipboard-minus" | "clipboard-paste" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-type" | "clipboard-x" | "clock" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-check" | "clock-fading" | "clock-plus" | "closed-caption" | "cloud" | "cloud-alert" | "cloud-backup" | "cloud-check" | "cloud-cog" | "cloud-download" | "cloud-drizzle" | "cloud-fog" | "cloud-hail" | "cloud-lightning" | "cloud-moon" | "cloud-moon-rain" | "cloud-off" | "cloud-rain" | "cloud-rain-wind" | "cloud-snow" | "cloud-sun" | "cloud-sun-rain" | "cloud-sync" | "cloud-upload" | "cloudy" | "clover" | "club" | "code" | "code-xml" | "coffee" | "cog" | "coins" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "combine" | "command" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-round" | "container" | "contrast" | "cookie" | "cooking-pot" | "copy" | "copy-check" | "copy-minus" | "copy-plus" | "copy-slash" | "copy-x" | "copyleft" | "copyright" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "creative-commons" | "credit-card" | "croissant" | "crop" | "cross" | "crosshair" | "crown" | "cuboid" | "cup-soda" | "currency" | "cylinder" | "dam" | "database" | "database-backup" | "database-search" | "database-zap" | "decimals-arrow-left" | "decimals-arrow-right" | "delete" | "dessert" | "diameter" | "diamond" | "diamond-minus" | "diamond-percent" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "dices" | "diff" | "disc" | "disc-2" | "disc-3" | "disc-album" | "divide" | "dna" | "dna-off" | "dock" | "dog" | "dollar-sign" | "donut" | "door-closed" | "door-closed-locked" | "door-open" | "dot" | "download" | "drafting-compass" | "drama" | "drill" | "drone" | "droplet" | "droplet-off" | "droplets" | "drum" | "drumstick" | "dumbbell" | "ear" | "ear-off" | "earth" | "earth-lock" | "eclipse" | "egg" | "egg-fried" | "egg-off" | "ellipsis" | "ellipsis-vertical" | "equal" | "equal-approximately" | "equal-not" | "eraser" | "ethernet-port" | "euro" | "ev-charger" | "expand" | "external-link" | "eye" | "eye-closed" | "eye-off" | "factory" | "fan" | "fast-forward" | "feather" | "fence" | "ferris-wheel" | "file" | "file-archive" | "file-axis-3d" | "file-badge" | "file-box" | "file-braces" | "file-braces-corner" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-check-corner" | "file-clock" | "file-code" | "file-code-corner" | "file-cog" | "file-diff" | "file-digit" | "file-down" | "file-exclamation-point" | "file-headphone" | "file-heart" | "file-image" | "file-input" | "file-key" | "file-lock" | "file-minus" | "file-minus-corner" | "file-music" | "file-output" | "file-pen" | "file-pen-line" | "file-play" | "file-plus" | "file-plus-corner" | "file-question-mark" | "file-scan" | "file-search" | "file-search-corner" | "file-signal" | "file-sliders" | "file-spreadsheet" | "file-stack" | "file-symlink" | "file-terminal" | "file-text" | "file-type" | "file-type-corner" | "file-up" | "file-user" | "file-video-camera" | "file-volume" | "file-x" | "file-x-corner" | "files" | "film" | "fingerprint-pattern" | "fire-extinguisher" | "fish" | "fish-off" | "fish-symbol" | "fishing-hook" | "fishing-rod" | "flag" | "flag-off" | "flag-triangle-left" | "flag-triangle-right" | "flame" | "flame-kindling" | "flashlight" | "flashlight-off" | "flask-conical" | "flask-conical-off" | "flask-round" | "flip-horizontal-2" | "flip-vertical-2" | "flower" | "flower-2" | "focus" | "fold-horizontal" | "fold-vertical" | "folder" | "folder-archive" | "folder-check" | "folder-clock" | "folder-closed" | "folder-code" | "folder-cog" | "folder-dot" | "folder-down" | "folder-git" | "folder-git-2" | "folder-heart" | "folder-input" | "folder-kanban" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-open-dot" | "folder-output" | "folder-pen" | "folder-plus" | "folder-root" | "folder-search" | "folder-search-2" | "folder-symlink" | "folder-sync" | "folder-tree" | "folder-up" | "folder-x" | "folders" | "footprints" | "forklift" | "form" | "forward" | "frame" | "frown" | "fuel" | "fullscreen" | "funnel" | "funnel-plus" | "funnel-x" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gamepad" | "gamepad-2" | "gamepad-directional" | "gauge" | "gavel" | "gem" | "georgian-lari" | "ghost" | "gift" | "git-branch" | "git-branch-minus" | "git-branch-plus" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-compare-arrows" | "git-fork" | "git-graph" | "git-merge" | "git-merge-conflict" | "git-pull-request" | "git-pull-request-arrow" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-create-arrow" | "git-pull-request-draft" | "glass-water" | "glasses" | "globe" | "globe-lock" | "globe-off" | "globe-x" | "goal" | "gpu" | "graduation-cap" | "grape" | "grid-2x2" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grid-3x2" | "grid-3x3" | "grip" | "grip-horizontal" | "grip-vertical" | "group" | "guitar" | "ham" | "hamburger" | "hammer" | "hand" | "hand-coins" | "hand-fist" | "hand-grab" | "hand-heart" | "hand-helping" | "hand-metal" | "hand-platter" | "handbag" | "handshake" | "hard-drive" | "hard-drive-download" | "hard-drive-upload" | "hard-hat" | "hash" | "hat-glasses" | "haze" | "hd" | "hdmi-port" | "heading" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "headphone-off" | "headphones" | "headset" | "heart" | "heart-crack" | "heart-handshake" | "heart-minus" | "heart-off" | "heart-plus" | "heart-pulse" | "heater" | "helicopter" | "hexagon" | "highlighter" | "history" | "hop" | "hop-off" | "hospital" | "hotel" | "hourglass" | "house" | "house-heart" | "house-plug" | "house-plus" | "house-wifi" | "ice-cream-bowl" | "ice-cream-cone" | "id-card" | "id-card-lanyard" | "image" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "image-upscale" | "images" | "import" | "inbox" | "indian-rupee" | "infinity" | "info" | "inspection-panel" | "italic" | "iteration-ccw" | "iteration-cw" | "japanese-yen" | "joystick" | "kanban" | "kayak" | "key" | "key-round" | "key-square" | "keyboard" | "keyboard-music" | "keyboard-off" | "lamp" | "lamp-ceiling" | "lamp-desk" | "lamp-floor" | "lamp-wall-down" | "lamp-wall-up" | "land-plot" | "landmark" | "languages" | "laptop" | "laptop-minimal" | "laptop-minimal-check" | "lasso" | "lasso-select" | "laugh" | "layers" | "layers-2" | "layers-plus" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "leaf" | "leafy-green" | "lectern" | "lens-concave" | "lens-convex" | "library" | "library-big" | "life-buoy" | "ligature" | "lightbulb" | "lightbulb-off" | "line-dot-right-horizontal" | "line-squiggle" | "link" | "link-2" | "link-2-off" | "list" | "list-check" | "list-checks" | "list-chevrons-down-up" | "list-chevrons-up-down" | "list-collapse" | "list-end" | "list-filter" | "list-filter-plus" | "list-indent-decrease" | "list-indent-increase" | "list-minus" | "list-music" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-tree" | "list-video" | "list-x" | "loader" | "loader-circle" | "loader-pinwheel" | "locate" | "locate-fixed" | "locate-off" | "lock" | "lock-keyhole" | "lock-keyhole-open" | "lock-open" | "log-in" | "log-out" | "logs" | "lollipop" | "luggage" | "magnet" | "mail" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question-mark" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "map" | "map-minus" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-off" | "map-pin-pen" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "map-plus" | "mars" | "mars-stroke" | "martini" | "maximize" | "maximize-2" | "medal" | "megaphone" | "megaphone-off" | "meh" | "memory-stick" | "menu" | "merge" | "message-circle" | "message-circle-check" | "message-circle-code" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-plus" | "message-circle-question-mark" | "message-circle-reply" | "message-circle-warning" | "message-circle-x" | "message-square" | "message-square-check" | "message-square-code" | "message-square-dashed" | "message-square-diff" | "message-square-dot" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-warning" | "message-square-x" | "messages-square" | "metronome" | "mic" | "mic-off" | "mic-vocal" | "microchip" | "microscope" | "microwave" | "milestone" | "milk" | "milk-off" | "minimize" | "minimize-2" | "minus" | "mirror-rectangular" | "mirror-round" | "monitor" | "monitor-check" | "monitor-cloud" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "moon" | "moon-star" | "motorbike" | "mountain" | "mountain-snow" | "mouse" | "mouse-left" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-2-off" | "mouse-pointer-ban" | "mouse-pointer-click" | "mouse-right" | "move" | "move-3d" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "music" | "music-2" | "music-3" | "music-4" | "navigation" | "navigation-2" | "navigation-2-off" | "navigation-off" | "network" | "newspaper" | "nfc" | "non-binary" | "notebook" | "notebook-pen" | "notebook-tabs" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "nut" | "nut-off" | "octagon" | "octagon-alert" | "octagon-minus" | "octagon-pause" | "octagon-x" | "omega" | "option" | "orbit" | "origami" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-vertical" | "palette" | "panda" | "panel-bottom" | "panel-bottom-close" | "panel-bottom-dashed" | "panel-bottom-open" | "panel-left" | "panel-left-close" | "panel-left-dashed" | "panel-left-open" | "panel-left-right-dashed" | "panel-right" | "panel-right-close" | "panel-right-dashed" | "panel-right-open" | "panel-top" | "panel-top-bottom-dashed" | "panel-top-close" | "panel-top-dashed" | "panel-top-open" | "panels-left-bottom" | "panels-right-bottom" | "panels-top-left" | "paperclip" | "parentheses" | "parking-meter" | "party-popper" | "pause" | "paw-print" | "pc-case" | "pen" | "pen-line" | "pen-off" | "pen-tool" | "pencil" | "pencil-line" | "pencil-off" | "pencil-ruler" | "pentagon" | "percent" | "person-standing" | "philippine-peso" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pi" | "piano" | "pickaxe" | "picture-in-picture" | "picture-in-picture-2" | "piggy-bank" | "pilcrow" | "pilcrow-left" | "pilcrow-right" | "pill" | "pill-bottle" | "pin" | "pin-off" | "pipette" | "pizza" | "plane" | "plane-landing" | "plane-takeoff" | "play" | "plug" | "plug-2" | "plug-zap" | "plus" | "pocket-knife" | "podcast" | "pointer" | "pointer-off" | "popcorn" | "popsicle" | "pound-sterling" | "power" | "power-off" | "presentation" | "printer" | "printer-check" | "printer-x" | "projector" | "proportions" | "puzzle" | "pyramid" | "qr-code" | "quote" | "rabbit" | "radar" | "radiation" | "radical" | "radio" | "radio-receiver" | "radio-tower" | "radius" | "rainbow" | "rat" | "ratio" | "receipt" | "receipt-cent" | "receipt-euro" | "receipt-indian-rupee" | "receipt-japanese-yen" | "receipt-pound-sterling" | "receipt-russian-ruble" | "receipt-swiss-franc" | "receipt-text" | "receipt-turkish-lira" | "rectangle-circle" | "rectangle-ellipsis" | "rectangle-goggles" | "rectangle-horizontal" | "rectangle-vertical" | "recycle" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "refrigerator" | "regex" | "remove-formatting" | "repeat" | "repeat-1" | "repeat-2" | "replace" | "replace-all" | "reply" | "reply-all" | "rewind" | "ribbon" | "rocket" | "rocking-chair" | "roller-coaster" | "rose" | "rotate-3d" | "rotate-ccw" | "rotate-ccw-key" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "route" | "route-off" | "router" | "rows-2" | "rows-3" | "rows-4" | "rss" | "ruler" | "ruler-dimension-line" | "russian-ruble" | "sailboat" | "salad" | "sandwich" | "satellite" | "satellite-dish" | "saudi-riyal" | "save" | "save-all" | "save-off" | "scale" | "scale-3d" | "scaling" | "scan" | "scan-barcode" | "scan-eye" | "scan-face" | "scan-heart" | "scan-line" | "scan-qr-code" | "scan-search" | "scan-text" | "school" | "scissors" | "scissors-line-dashed" | "scooter" | "screen-share" | "screen-share-off" | "scroll" | "scroll-text" | "search" | "search-alert" | "search-check" | "search-code" | "search-slash" | "search-x" | "section" | "send" | "send-horizontal" | "send-to-back" | "separator-horizontal" | "separator-vertical" | "server" | "server-cog" | "server-crash" | "server-off" | "settings" | "settings-2" | "shapes" | "share" | "share-2" | "sheet" | "shell" | "shelving-unit" | "shield" | "shield-alert" | "shield-ban" | "shield-check" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question-mark" | "shield-user" | "shield-x" | "ship" | "ship-wheel" | "shirt" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shovel" | "shower-head" | "shredder" | "shrimp" | "shrink" | "shrub" | "shuffle" | "sigma" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "signpost" | "signpost-big" | "siren" | "skip-back" | "skip-forward" | "skull" | "slash" | "slice" | "sliders-horizontal" | "sliders-vertical" | "smartphone" | "smartphone-charging" | "smartphone-nfc" | "smile" | "smile-plus" | "snail" | "snowflake" | "soap-dispenser-droplet" | "sofa" | "solar-panel" | "soup" | "space" | "spade" | "sparkle" | "sparkles" | "speaker" | "speech" | "spell-check" | "spell-check-2" | "spline" | "spline-pointer" | "split" | "spool" | "spotlight" | "spray-can" | "sprout" | "square" | "square-activity" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-right-enter" | "square-arrow-right-exit" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-asterisk" | "square-bottom-dashed-scissors" | "square-centerline-dashed-horizontal" | "square-centerline-dashed-vertical" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-code" | "square-dashed" | "square-dashed-bottom" | "square-dashed-bottom-code" | "square-dashed-kanban" | "square-dashed-mouse-pointer" | "square-dashed-top-solid" | "square-divide" | "square-dot" | "square-equal" | "square-function" | "square-kanban" | "square-library" | "square-m" | "square-menu" | "square-minus" | "square-mouse-pointer" | "square-parking" | "square-parking-off" | "square-pause" | "square-pen" | "square-percent" | "square-pi" | "square-pilcrow" | "square-play" | "square-plus" | "square-power" | "square-radical" | "square-round-corner" | "square-scissors" | "square-sigma" | "square-slash" | "square-split-horizontal" | "square-split-vertical" | "square-square" | "square-stack" | "square-star" | "square-stop" | "square-terminal" | "square-user" | "square-user-round" | "square-x" | "squares-exclude" | "squares-intersect" | "squares-subtract" | "squares-unite" | "squircle" | "squircle-dashed" | "squirrel" | "stamp" | "star" | "star-half" | "star-off" | "step-back" | "step-forward" | "stethoscope" | "sticker" | "sticky-note" | "stone" | "store" | "stretch-horizontal" | "stretch-vertical" | "strikethrough" | "subscript" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table" | "table-2" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-of-contents" | "table-properties" | "table-rows-split" | "tablet" | "tablet-smartphone" | "tablets" | "tag" | "tags" | "tally-1" | "tally-2" | "tally-3" | "tally-4" | "tally-5" | "tangent" | "target" | "telescope" | "tent" | "tent-tree" | "terminal" | "test-tube" | "test-tube-diagonal" | "test-tubes" | "text-align-center" | "text-align-end" | "text-align-justify" | "text-align-start" | "text-cursor" | "text-cursor-input" | "text-initial" | "text-quote" | "text-search" | "text-select" | "text-wrap" | "theater" | "thermometer" | "thermometer-snowflake" | "thermometer-sun" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-check" | "ticket-minus" | "ticket-percent" | "ticket-plus" | "ticket-slash" | "ticket-x" | "tickets" | "tickets-plane" | "timer" | "timer-off" | "timer-reset" | "toggle-left" | "toggle-right" | "toilet" | "tool-case" | "toolbox" | "tornado" | "torus" | "touchpad" | "touchpad-off" | "towel-rack" | "tower-control" | "toy-brick" | "tractor" | "traffic-cone" | "train-front" | "train-front-tunnel" | "train-track" | "tram-front" | "transgender" | "trash" | "trash-2" | "tree-deciduous" | "tree-palm" | "tree-pine" | "trees" | "trending-down" | "trending-up" | "trending-up-down" | "triangle" | "triangle-alert" | "triangle-dashed" | "triangle-right" | "trophy" | "truck" | "truck-electric" | "turkish-lira" | "turntable" | "turtle" | "tv" | "tv-minimal" | "tv-minimal-play" | "type" | "type-outline" | "umbrella" | "umbrella-off" | "underline" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "ungroup" | "university" | "unlink" | "unlink-2" | "unplug" | "upload" | "usb" | "user" | "user-check" | "user-cog" | "user-key" | "user-lock" | "user-minus" | "user-pen" | "user-plus" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-key" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-star" | "user-x" | "users" | "users-round" | "utensils" | "utensils-crossed" | "utility-pole" | "van" | "variable" | "vault" | "vector-square" | "vegan" | "venetian-mask" | "venus" | "venus-and-mars" | "vibrate" | "vibrate-off" | "video" | "video-off" | "videotape" | "view" | "voicemail" | "volleyball" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "vote" | "wallet" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "wand" | "wand-sparkles" | "warehouse" | "washing-machine" | "watch" | "waves" | "waves-arrow-down" | "waves-arrow-up" | "waves-ladder" | "waypoints" | "webcam" | "webhook" | "webhook-off" | "weight" | "weight-tilde" | "wheat" | "wheat-off" | "whole-word" | "wifi" | "wifi-cog" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-sync" | "wifi-zero" | "wind" | "wind-arrow-down" | "wine" | "wine-off" | "workflow" | "worm" | "wrench" | "x" | "x-line-top" | "zap" | "zap-off" | "zodiac-aquarius" | "zodiac-aries" | "zodiac-cancer" | "zodiac-capricorn" | "zodiac-gemini" | "zodiac-leo" | "zodiac-libra" | "zodiac-ophiuchus" | "zodiac-pisces" | "zodiac-sagittarius" | "zodiac-scorpio" | "zodiac-taurus" | "zodiac-virgo" | "zoom-in" | "zoom-out";
270
+ tone: "danger" | "info" | "muted" | "primary" | "success" | "warning";
271
+ background: "alert-wash" | "cool-fall" | "drum" | "glow" | "heat-rise" | "mist" | "plain" | "sky" | "water";
272
+ animation: "blink" | "breathe" | "equalizer" | "fall" | "glow" | "halo" | "none" | "pulse" | "rise" | "spin" | "tumble" | "wave";
273
+ }>>;
268
274
  readonly "climate-ac": 'inherit';
269
275
  readonly "climate-thermostat": 'inherit';
270
276
  readonly "climate-floor": 'inherit';
@@ -0,0 +1,76 @@
1
+ /**
2
+ * The ONE measurement a simple sensor shows (card wave, phase 1).
3
+ *
4
+ * A sensor that measures a single quantity (a temperature, a humidity, a power,
5
+ * a contact, a text state) is drawn as that reading, once, big, inside a scene
6
+ * whose motion says what the number means: heat rising when hot, flakes when
7
+ * cold, a wire flowing at the speed of the power, a ring while a window is
8
+ * open. Everything the card draws is decided here; a client only paints it.
9
+ */
10
+ import { z } from 'zod';
11
+ import { type IconKey } from '../icon-catalog.js';
12
+ import { type ReadingQuantity } from '../../units/quantity.js';
13
+ import { type HeroTone } from './hero-state.js';
14
+ import { type HeroText } from './hero-text.js';
15
+ export declare const HERO_MEASUREMENT_QUANTITIES: readonly ['temperature', 'humidity', 'power', 'contact', 'text'];
16
+ export type HeroMeasurementQuantity = (typeof HERO_MEASUREMENT_QUANTITIES)[number];
17
+ /** How a temperature reads to a person; drives the heat or the cold scene. */
18
+ export declare const HERO_MEASUREMENT_BANDS: readonly ['hot', 'mild', 'cold'];
19
+ export type HeroMeasurementBand = (typeof HERO_MEASUREMENT_BANDS)[number];
20
+ /** `updated` = the value was last read then ("2 min ago"); `changed` = it has held since then ("for 12 min"). */
21
+ export declare const HERO_MEASUREMENT_SINCE_KINDS: readonly ['updated', 'changed'];
22
+ export type HeroMeasurementSinceKind = (typeof HERO_MEASUREMENT_SINCE_KINDS)[number];
23
+ /**
24
+ * The number behind a measurement, in its quantity's BASE unit (°C, %, W). A client
25
+ * draws it through the operator's display resolution (unit preference, per-device
26
+ * and per-role overrides, precision) — `value` / `unit` are the base rendering for a
27
+ * client that has none.
28
+ */
29
+ export interface HeroMeasurementReading {
30
+ readonly value: number;
31
+ readonly quantity: ReadingQuantity;
32
+ }
33
+ export declare const HeroMeasurementReadingSchema: z.ZodType<HeroMeasurementReading>;
34
+ export interface HeroMeasurement {
35
+ readonly quantity: HeroMeasurementQuantity;
36
+ /** The base-unit number to format for display; `null` = not a number (a contact, a text). */
37
+ readonly reading: HeroMeasurementReading | null;
38
+ /** The quantity's icon beside the value; `null` = a text state, no icon. */
39
+ readonly icon: IconKey | null;
40
+ /** The value, without its unit: "48", "1221", "Open", "Eco". */
41
+ readonly value: HeroText;
42
+ /** Drawn small and muted after the value; `null` = none. */
43
+ readonly unit: string | null;
44
+ /** A temperature's band; `null` for every other quantity. */
45
+ readonly band: HeroMeasurementBand | null;
46
+ /**
47
+ * How strongly the scene moves, 0..1: the power's share of the scale (0 = still),
48
+ * the humidity, the open contact (1). `null` = the quantity has no strength.
49
+ */
50
+ readonly level: number | null;
51
+ /** The state corner's word: "Hot", "Active", "Open", "Changed". */
52
+ readonly word: HeroText;
53
+ readonly tone: HeroTone;
54
+ /** Ms epoch of the `sinceKind` moment; `null` = never observed. */
55
+ readonly since: number | null;
56
+ readonly sinceKind: HeroMeasurementSinceKind;
57
+ /** The history series a trend line reads (`cap:<cap>.<field>`); `null` = not a number over time. */
58
+ readonly historyKey: string | null;
59
+ }
60
+ export declare const HeroMeasurementSchema: z.ZodType<HeroMeasurement>;
61
+ /** Below this a temperature reads cold, above `HOT_ABOVE_C` hot (°C). */
62
+ export declare const COLD_BELOW_C = 12;
63
+ export declare const HOT_ABOVE_C = 28;
64
+ /** The power at which the wire runs at full speed (W). */
65
+ export declare const POWER_FULL_SCALE_W = 3000;
66
+ /** Below / above these a humidity reads dry / humid (%). */
67
+ export declare const DRY_BELOW_PCT = 30;
68
+ export declare const HUMID_ABOVE_PCT = 70;
69
+ export declare function temperatureBand(celsius: number): HeroMeasurementBand;
70
+ export declare function temperatureMeasurement(celsius: number, since: number | null): HeroMeasurement;
71
+ export declare function humidityMeasurement(percent: number, since: number | null): HeroMeasurement;
72
+ export declare function powerMeasurement(watts: number, since: number | null): HeroMeasurement;
73
+ export declare function contactMeasurement(open: boolean, since: number | null): HeroMeasurement;
74
+ export declare function textMeasurement(text: string, since: number | null): HeroMeasurement;
75
+ /** Whether `m` is the reading a device of `role` shows. */
76
+ export declare function measurementFitsRole(m: HeroMeasurement, role: string | null): boolean;
@@ -165,6 +165,36 @@ export declare const HeroControlSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
165
165
  args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
166
166
  }, z.core.$strip>;
167
167
  valueArg: z.ZodString;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"number">;
170
+ id: z.ZodString;
171
+ label: z.ZodObject<{
172
+ en: z.ZodString;
173
+ it: z.ZodString;
174
+ }, z.core.$strip>;
175
+ value: z.ZodNullable<z.ZodNumber>;
176
+ step: z.ZodNullable<z.ZodNumber>;
177
+ unit: z.ZodString;
178
+ call: z.ZodObject<{
179
+ cap: z.ZodString;
180
+ method: z.ZodString;
181
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
182
+ }, z.core.$strip>;
183
+ valueArg: z.ZodString;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ kind: z.ZodLiteral<"text">;
186
+ id: z.ZodString;
187
+ label: z.ZodObject<{
188
+ en: z.ZodString;
189
+ it: z.ZodString;
190
+ }, z.core.$strip>;
191
+ value: z.ZodNullable<z.ZodString>;
192
+ call: z.ZodObject<{
193
+ cap: z.ZodString;
194
+ method: z.ZodString;
195
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
196
+ }, z.core.$strip>;
197
+ valueArg: z.ZodString;
168
198
  }, z.core.$strip>], "kind">;
169
199
  export type HeroControl = z.infer<typeof HeroControlSchema>;
170
200
  /** One value drawn as a pill: an icon, the words, a tone. `null` icon = text only. */
@@ -290,6 +320,36 @@ export declare const HeroRowSchema: z.ZodObject<{
290
320
  args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
291
321
  }, z.core.$strip>;
292
322
  valueArg: z.ZodString;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ kind: z.ZodLiteral<"number">;
325
+ id: z.ZodString;
326
+ label: z.ZodObject<{
327
+ en: z.ZodString;
328
+ it: z.ZodString;
329
+ }, z.core.$strip>;
330
+ value: z.ZodNullable<z.ZodNumber>;
331
+ step: z.ZodNullable<z.ZodNumber>;
332
+ unit: z.ZodString;
333
+ call: z.ZodObject<{
334
+ cap: z.ZodString;
335
+ method: z.ZodString;
336
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
337
+ }, z.core.$strip>;
338
+ valueArg: z.ZodString;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ kind: z.ZodLiteral<"text">;
341
+ id: z.ZodString;
342
+ label: z.ZodObject<{
343
+ en: z.ZodString;
344
+ it: z.ZodString;
345
+ }, z.core.$strip>;
346
+ value: z.ZodNullable<z.ZodString>;
347
+ call: z.ZodObject<{
348
+ cap: z.ZodString;
349
+ method: z.ZodString;
350
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
351
+ }, z.core.$strip>;
352
+ valueArg: z.ZodString;
293
353
  }, z.core.$strip>], "kind">>;
294
354
  progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
295
355
  }, z.core.$strip>;
@@ -1038,9 +1098,40 @@ export declare const HeroModelSchema: z.ZodObject<{
1038
1098
  args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
1039
1099
  }, z.core.$strip>;
1040
1100
  valueArg: z.ZodString;
1101
+ }, z.core.$strip>, z.ZodObject<{
1102
+ kind: z.ZodLiteral<"number">;
1103
+ id: z.ZodString;
1104
+ label: z.ZodObject<{
1105
+ en: z.ZodString;
1106
+ it: z.ZodString;
1107
+ }, z.core.$strip>;
1108
+ value: z.ZodNullable<z.ZodNumber>;
1109
+ step: z.ZodNullable<z.ZodNumber>;
1110
+ unit: z.ZodString;
1111
+ call: z.ZodObject<{
1112
+ cap: z.ZodString;
1113
+ method: z.ZodString;
1114
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
1115
+ }, z.core.$strip>;
1116
+ valueArg: z.ZodString;
1117
+ }, z.core.$strip>, z.ZodObject<{
1118
+ kind: z.ZodLiteral<"text">;
1119
+ id: z.ZodString;
1120
+ label: z.ZodObject<{
1121
+ en: z.ZodString;
1122
+ it: z.ZodString;
1123
+ }, z.core.$strip>;
1124
+ value: z.ZodNullable<z.ZodString>;
1125
+ call: z.ZodObject<{
1126
+ cap: z.ZodString;
1127
+ method: z.ZodString;
1128
+ args: z.ZodRecord<z.ZodString, z.ZodType<HeroArgValue, unknown, z.core.$ZodTypeInternals<HeroArgValue, unknown>>>;
1129
+ }, z.core.$strip>;
1130
+ valueArg: z.ZodString;
1041
1131
  }, z.core.$strip>], "kind">>;
1042
1132
  progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1043
1133
  }, z.core.$strip>>;
1134
+ measurement: z.ZodOptional<z.ZodType<import("./hero-measurement.js").HeroMeasurement, unknown, z.core.$ZodTypeInternals<import("./hero-measurement.js").HeroMeasurement, unknown>>>;
1044
1135
  gated: z.ZodArray<z.ZodString>;
1045
1136
  provenance: z.ZodArray<z.ZodObject<{
1046
1137
  partId: z.ZodString;
@@ -203,6 +203,36 @@ export declare const HeroRowModelSchema: z.ZodObject<{
203
203
  args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
204
204
  }, z.core.$strip>;
205
205
  valueArg: z.ZodString;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ kind: z.ZodLiteral<"number">;
208
+ id: z.ZodString;
209
+ label: z.ZodObject<{
210
+ en: z.ZodString;
211
+ it: z.ZodString;
212
+ }, z.core.$strip>;
213
+ value: z.ZodNullable<z.ZodNumber>;
214
+ step: z.ZodNullable<z.ZodNumber>;
215
+ unit: z.ZodString;
216
+ call: z.ZodObject<{
217
+ cap: z.ZodString;
218
+ method: z.ZodString;
219
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
220
+ }, z.core.$strip>;
221
+ valueArg: z.ZodString;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ kind: z.ZodLiteral<"text">;
224
+ id: z.ZodString;
225
+ label: z.ZodObject<{
226
+ en: z.ZodString;
227
+ it: z.ZodString;
228
+ }, z.core.$strip>;
229
+ value: z.ZodNullable<z.ZodString>;
230
+ call: z.ZodObject<{
231
+ cap: z.ZodString;
232
+ method: z.ZodString;
233
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
234
+ }, z.core.$strip>;
235
+ valueArg: z.ZodString;
206
236
  }, z.core.$strip>], "kind">>;
207
237
  timedRun: z.ZodNullable<z.ZodObject<{
208
238
  id: z.ZodEnum<{
@@ -265,6 +295,36 @@ export declare const HeroRowModelSchema: z.ZodObject<{
265
295
  args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
266
296
  }, z.core.$strip>;
267
297
  valueArg: z.ZodString;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ kind: z.ZodLiteral<"number">;
300
+ id: z.ZodString;
301
+ label: z.ZodObject<{
302
+ en: z.ZodString;
303
+ it: z.ZodString;
304
+ }, z.core.$strip>;
305
+ value: z.ZodNullable<z.ZodNumber>;
306
+ step: z.ZodNullable<z.ZodNumber>;
307
+ unit: z.ZodString;
308
+ call: z.ZodObject<{
309
+ cap: z.ZodString;
310
+ method: z.ZodString;
311
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
312
+ }, z.core.$strip>;
313
+ valueArg: z.ZodString;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"text">;
316
+ id: z.ZodString;
317
+ label: z.ZodObject<{
318
+ en: z.ZodString;
319
+ it: z.ZodString;
320
+ }, z.core.$strip>;
321
+ value: z.ZodNullable<z.ZodString>;
322
+ call: z.ZodObject<{
323
+ cap: z.ZodString;
324
+ method: z.ZodString;
325
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./hero-model.js").HeroArgValue, unknown, z.core.$ZodTypeInternals<import("./hero-model.js").HeroArgValue, unknown>>>;
326
+ }, z.core.$strip>;
327
+ valueArg: z.ZodString;
268
328
  }, z.core.$strip>], "kind">>>;
269
329
  trailing: z.ZodNullable<z.ZodObject<{
270
330
  id: z.ZodEnum<{
@@ -308,6 +368,7 @@ export declare const HeroRowModelSchema: z.ZodObject<{
308
368
  warning: "warning";
309
369
  }>;
310
370
  }, z.core.$strip>>;
371
+ measurement: z.ZodOptional<z.ZodType<import("./hero-measurement.js").HeroMeasurement, unknown, z.core.$ZodTypeInternals<import("./hero-measurement.js").HeroMeasurement, unknown>>>;
311
372
  }, z.core.$strip>;
312
373
  export type HeroRowModel = z.infer<typeof HeroRowModelSchema>;
313
374
  /** The most facts a row's status line carries after its head: the line never wraps. */
@@ -172,6 +172,7 @@ export declare const HERO_SCENE_BY_ROLE: {
172
172
  readonly outlet: 'plug';
173
173
  readonly "switch-heater": 'heater';
174
174
  readonly "switch-fan": 'fan';
175
+ readonly "switch-light": 'light';
175
176
  readonly "climate-ac": 'ac';
176
177
  readonly "climate-thermostat": 'inherit';
177
178
  readonly "climate-floor": 'inherit';
@@ -9,6 +9,7 @@ export { HERO_ROW_IDS, HERO_ROW_LABELS, heroArgsWithValue, type HeroAction, type
9
9
  export { HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_STATES, HERO_TONES, type HeroAnimation, type HeroBackgroundToken, type HeroLook, type HeroState, type HeroTone, type StateLook, } from './hero-state.js';
10
10
  export { HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENES, HERO_SCENE_MODES, resolveHeroSceneId, type HeroScene, type HeroSceneId, type HeroSceneMode, } from './hero-scene.js';
11
11
  export { HeroRowModelSchema, projectDeviceRow, type HeroRowModel, } from './hero-row.js';
12
+ export { HERO_MEASUREMENT_BANDS, HERO_MEASUREMENT_QUANTITIES, HERO_MEASUREMENT_SINCE_KINDS, HeroMeasurementReadingSchema, HeroMeasurementSchema, contactMeasurement, measurementFitsRole, humidityMeasurement, powerMeasurement, temperatureBand, temperatureMeasurement, textMeasurement, type HeroMeasurement, type HeroMeasurementBand, type HeroMeasurementQuantity, type HeroMeasurementReading, type HeroMeasurementSinceKind, } from './hero-measurement.js';
12
13
  export { heroText, type HeroText } from './hero-text.js';
13
14
  export * from './media-player-view.js';
14
15
  export { resolveOwnPower } from './own-power.js';
@@ -18,7 +18,7 @@ export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, Pipeline
18
18
  export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device-profile.js';
19
19
  export type { IDeviceRuntimeState, Snapshot as RuntimeStateSnapshot, } from './device-runtime-state.js';
20
20
  export { ChargingStatus, DeviceFeature, DeviceRole, DeviceType, featuresOfBoundCaps, } from './device-type.js';
21
- export { capAppliesToDeviceKind, canonicalStoredDeviceType, CLIMATE_ROLES, climateRoleOf, isAirConditioner, type ClimateRole, type DeviceKindGate, } from './device-kind.js';
21
+ export { capAppliesToDeviceKind, canonicalStoredDeviceType, CLIMATE_ROLES, StoredDeviceTypeSchema, climateRoleOf, isAirConditioner, isOutlet, isSwitchFan, isSwitchHeater, isSwitchLight, type ClimateRole, type DeviceKindGate, } from './device-kind.js';
22
22
  export type { IBatteryOperated, IDoorbellButton, INativeSnapshot, IPanTiltZoom, IRebootable, ITwoWayAudio, } from './features.js';
23
23
  export type { IconCategoryId, IconEntry, IconHit, IconKey, } from './icon-catalog.js';
24
24
  export { ICON_CATALOG_SOURCE, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IconKeySchema, canonicalIconKey, iconCategoryLabel, iconEntry, iconsInCategory, isIconKey, resolveIconKey, searchIcons, } from './icon-catalog.js';
@@ -2424,6 +2424,13 @@ export type AppRouter = TrpcCoreRouter<{
2424
2424
  output: z.infer<typeof deviceExportCapability.methods.unexposeDevice.output>;
2425
2425
  meta: object;
2426
2426
  }>;
2427
+ setExposedName: TRPCMutationProcedure<{
2428
+ input: {
2429
+ [x: string]: unknown;
2430
+ } & z.input<typeof deviceExportCapability.methods.setExposedName.input>;
2431
+ output: z.infer<typeof deviceExportCapability.methods.setExposedName.output>;
2432
+ meta: object;
2433
+ }>;
2427
2434
  listSupportedEntityKinds: TRPCQueryProcedure<{
2428
2435
  input: {
2429
2436
  nodeId?: string | undefined;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1484 method paths across 205 capabilities.
9
+ * Coverage: 1485 method paths across 205 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
@@ -91,7 +91,7 @@ export interface SystemProxy {
91
91
  readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'getInfo' | 'reprobeHwaccel'>;
92
92
  readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
93
93
  readonly deviceCredentials: Pick<InferProvider<typeof deviceCredentialsCapability>, 'listDeviceCredentials' | 'startEnrollment' | 'revokeDeviceCredential' | 'getDeviceCertificateSettings' | 'setDeviceCertificateSettings' | 'deleteDeviceCredential' | 'getDeviceCaStatus' | 'renameDeviceCredential'>;
94
- readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listInstances' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice' | 'listSupportedEntityKinds' | 'listExposedEntities' | 'exposeEntity' | 'unexposeEntity'>;
94
+ readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listInstances' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice' | 'setExposedName' | 'listSupportedEntityKinds' | 'listExposedEntities' | 'exposeEntity' | 'unexposeEntity'>;
95
95
  readonly deviceHistory: Pick<InferProvider<typeof deviceHistoryCapability>, 'listNodeSeries' | 'queryNode' | 'queryMany' | 'declareSeries' | 'record' | 'recordBuckets' | 'getStatus' | 'listOrphanSeries' | 'deleteOrphanSeries'>;
96
96
  readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'renderDeviceTemplates' | 'checkDeviceTemplates' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'search' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'listDeletedSince' | 'cleanupDeletedDevicesData' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'listDiscoveryProposals' | 'dismissDiscoveryProposal' | 'reportDiscoveryObservations' | 'runDiscoverySweep' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
97
97
  readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'reloadDevice' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryModes' | 'classifyDiscoveryHits' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;