@camstack/types 1.2.560 → 1.2.561
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 +10 -0
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/automation/recipe.d.ts +120 -120
- package/dist/capabilities/accessories.cap.d.ts +6 -0
- package/dist/capabilities/action-source.cap.d.ts +3 -0
- package/dist/capabilities/actions.cap.d.ts +3 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts +3 -0
- package/dist/capabilities/addon-pages.cap.d.ts +3 -0
- package/dist/capabilities/addon-routes.cap.d.ts +3 -0
- package/dist/capabilities/addon-settings.cap.d.ts +3 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts +3 -0
- package/dist/capabilities/addon-widgets.cap.d.ts +3 -0
- package/dist/capabilities/addons.cap.d.ts +3 -0
- package/dist/capabilities/admin-ui.cap.d.ts +3 -0
- package/dist/capabilities/air-quality-sensor.cap.d.ts +39 -0
- package/dist/capabilities/alarm-panel.cap.d.ts +60 -14
- package/dist/capabilities/alerts.cap.d.ts +3 -0
- package/dist/capabilities/ambient-light-sensor.cap.d.ts +12 -0
- package/dist/capabilities/audio-analysis.cap.d.ts +4 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts +3 -0
- package/dist/capabilities/audio-codec.cap.d.ts +3 -0
- package/dist/capabilities/audio-metrics.cap.d.ts +4 -0
- package/dist/capabilities/auth-provider.cap.d.ts +3 -0
- package/dist/capabilities/automation-control.cap.d.ts +19 -0
- package/dist/capabilities/backup.cap.d.ts +3 -0
- package/dist/capabilities/battery.cap.d.ts +53 -0
- package/dist/capabilities/binary.cap.d.ts +136 -0
- package/dist/capabilities/board-key-source.cap.d.ts +3 -0
- package/dist/capabilities/brightness.cap.d.ts +13 -0
- package/dist/capabilities/broker.cap.d.ts +3 -0
- package/dist/capabilities/button.cap.d.ts +4 -0
- package/dist/capabilities/calendar-source.cap.d.ts +3 -0
- package/dist/capabilities/calendars.cap.d.ts +3 -0
- package/dist/capabilities/camera-credentials.cap.d.ts +4 -0
- package/dist/capabilities/camera-grid-layout.cap.d.ts +4 -0
- package/dist/capabilities/camera-pipeline-config.cap.d.ts +4 -0
- package/dist/capabilities/camera-streams.cap.d.ts +4 -0
- package/dist/capabilities/capability-definition.d.ts +37 -8
- package/dist/capabilities/carbon-monoxide.cap.d.ts +12 -0
- package/dist/capabilities/climate-control.cap.d.ts +68 -12
- package/dist/capabilities/cluster-update.cap.d.ts +3 -0
- package/dist/capabilities/color.cap.d.ts +21 -0
- package/dist/capabilities/composer.cap.d.ts +3 -0
- package/dist/capabilities/connectivity.cap.d.ts +12 -0
- package/dist/capabilities/consumables.cap.d.ts +4 -0
- package/dist/capabilities/contact.cap.d.ts +12 -0
- package/dist/capabilities/control.cap.d.ts +15 -0
- package/dist/capabilities/core-blocks.cap.d.ts +3 -0
- package/dist/capabilities/cover.cap.d.ts +110 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +3 -0
- package/dist/capabilities/data-store-provider.cap.d.ts +3 -0
- package/dist/capabilities/database-snapshot.cap.d.ts +3 -0
- package/dist/capabilities/day-night.cap.d.ts +25 -0
- package/dist/capabilities/decoder.cap.d.ts +3 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts +4 -0
- package/dist/capabilities/device-admin-link.cap.d.ts +4 -0
- package/dist/capabilities/device-adoption.cap.d.ts +3 -0
- package/dist/capabilities/device-credentials.cap.d.ts +3 -0
- package/dist/capabilities/device-export.cap.d.ts +3 -0
- package/dist/capabilities/device-extension.cap.d.ts +4 -0
- package/dist/capabilities/device-history.cap.d.ts +3 -0
- package/dist/capabilities/device-manager.cap.d.ts +3 -0
- package/dist/capabilities/device-ops.cap.d.ts +4 -0
- package/dist/capabilities/device-provider.cap.d.ts +3 -0
- package/dist/capabilities/device-removal-hook.cap.d.ts +3 -0
- package/dist/capabilities/device-runs.cap.d.ts +6 -0
- package/dist/capabilities/device-state.cap.d.ts +3 -0
- package/dist/capabilities/device-status.cap.d.ts +25 -0
- package/dist/capabilities/device-transitions.cap.d.ts +4 -0
- package/dist/capabilities/dishwasher.cap.d.ts +60 -0
- package/dist/capabilities/display-palette.cap.d.ts +3 -0
- package/dist/capabilities/do-not-disturb.cap.d.ts +12 -0
- package/dist/capabilities/doorbell.cap.d.ts +11 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +3 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +10 -0
- package/dist/capabilities/event-emitter.cap.d.ts +11 -0
- package/dist/capabilities/face-gallery.cap.d.ts +3 -0
- package/dist/capabilities/failure-contribution.cap.d.ts +3 -0
- package/dist/capabilities/fan-control.cap.d.ts +19 -0
- package/dist/capabilities/fan-presets.cap.d.ts +3 -0
- package/dist/capabilities/feature-probe.cap.d.ts +5 -0
- package/dist/capabilities/filesystem-browse.cap.d.ts +3 -0
- package/dist/capabilities/flood.cap.d.ts +12 -0
- package/dist/capabilities/gas.cap.d.ts +12 -0
- package/dist/capabilities/group-active.cap.d.ts +4 -0
- package/dist/capabilities/group-commands.cap.d.ts +4 -0
- package/dist/capabilities/group-status.cap.d.ts +23 -0
- package/dist/capabilities/heat-pump-control.cap.d.ts +4 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
- package/dist/capabilities/heating-valve.cap.d.ts +12 -0
- package/dist/capabilities/hero-layout.cap.d.ts +3 -0
- package/dist/capabilities/humidifier.cap.d.ts +19 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +12 -0
- package/dist/capabilities/image-settings.cap.d.ts +4 -0
- package/dist/capabilities/image.cap.d.ts +4 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/integration-instances.cap.d.ts +3 -0
- package/dist/capabilities/integrations.cap.d.ts +3 -0
- package/dist/capabilities/intercom.cap.d.ts +13 -0
- package/dist/capabilities/ir-transmitter.cap.d.ts +101 -0
- package/dist/capabilities/keychain-admin.cap.d.ts +3 -0
- package/dist/capabilities/keychain.cap.d.ts +3 -0
- package/dist/capabilities/lawn-mower-control.cap.d.ts +36 -0
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -0
- package/dist/capabilities/llm.cap.d.ts +3 -0
- package/dist/capabilities/load-contribution.cap.d.ts +3 -0
- package/dist/capabilities/local-network.cap.d.ts +3 -0
- package/dist/capabilities/lock-control.cap.d.ts +35 -0
- package/dist/capabilities/log-channels.cap.d.ts +3 -0
- package/dist/capabilities/log-destination.cap.d.ts +3 -0
- package/dist/capabilities/login-method.cap.d.ts +3 -0
- package/dist/capabilities/media-player.cap.d.ts +66 -6
- package/dist/capabilities/mesh-network.cap.d.ts +3 -0
- package/dist/capabilities/meter.cap.d.ts +11 -0
- package/dist/capabilities/metrics-provider.cap.d.ts +3 -0
- package/dist/capabilities/migrations.cap.d.ts +3 -0
- package/dist/capabilities/model-convert.cap.d.ts +3 -0
- package/dist/capabilities/model-distributor.cap.d.ts +3 -0
- package/dist/capabilities/motion-detection.cap.d.ts +5 -0
- package/dist/capabilities/motion-trigger.cap.d.ts +13 -0
- package/dist/capabilities/motion-zones.cap.d.ts +4 -0
- package/dist/capabilities/motion.cap.d.ts +13 -0
- package/dist/capabilities/mqtt-broker.cap.d.ts +3 -0
- package/dist/capabilities/native-object-detection.cap.d.ts +19 -0
- package/dist/capabilities/navigation.cap.d.ts +36 -0
- package/dist/capabilities/network-access.cap.d.ts +3 -0
- package/dist/capabilities/network-link.cap.d.ts +31 -0
- package/dist/capabilities/network-quality.cap.d.ts +3 -0
- package/dist/capabilities/node-certificates.cap.d.ts +3 -0
- package/dist/capabilities/node-removal-hook.cap.d.ts +3 -0
- package/dist/capabilities/nodes.cap.d.ts +3 -0
- package/dist/capabilities/notification-output.cap.d.ts +3 -0
- package/dist/capabilities/notification-rules.cap.d.ts +3 -0
- package/dist/capabilities/notifier.cap.d.ts +5 -0
- package/dist/capabilities/numeric-sensor.cap.d.ts +11 -0
- package/dist/capabilities/oauth-integration.cap.d.ts +3 -0
- package/dist/capabilities/osd-manager.cap.d.ts +3 -0
- package/dist/capabilities/osd.cap.d.ts +5 -0
- package/dist/capabilities/pet-feeder.cap.d.ts +35 -9
- package/dist/capabilities/pet-fountain.cap.d.ts +19 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +35 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts +3 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +3 -0
- package/dist/capabilities/plate-gallery.cap.d.ts +3 -0
- package/dist/capabilities/platform-probe.cap.d.ts +3 -0
- package/dist/capabilities/power-meter.cap.d.ts +33 -0
- package/dist/capabilities/power-source.cap.d.ts +12 -0
- package/dist/capabilities/presence.cap.d.ts +11 -0
- package/dist/capabilities/pressure-sensor.cap.d.ts +12 -0
- package/dist/capabilities/privacy-mask.cap.d.ts +19 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts +13 -0
- package/dist/capabilities/ptz.cap.d.ts +11 -7
- package/dist/capabilities/pump-cycle.cap.d.ts +12 -0
- package/dist/capabilities/reboot.cap.d.ts +4 -0
- package/dist/capabilities/record-entries.cap.d.ts +3 -0
- package/dist/capabilities/recording-archive.cap.d.ts +3 -0
- package/dist/capabilities/recording-export.cap.d.ts +3 -0
- package/dist/capabilities/recording-onboard.cap.d.ts +12 -0
- package/dist/capabilities/recording-signal.cap.d.ts +12 -0
- package/dist/capabilities/recording.cap.d.ts +4 -0
- package/dist/capabilities/records.cap.d.ts +3 -0
- package/dist/capabilities/remote-layout-components.cap.d.ts +3 -0
- package/dist/capabilities/remote.cap.d.ts +3 -0
- package/dist/capabilities/running-state.cap.d.ts +77 -0
- package/dist/capabilities/scene-monitor.cap.d.ts +11 -0
- package/dist/capabilities/schedulers.cap.d.ts +3 -0
- package/dist/capabilities/script-runner.cap.d.ts +12 -0
- package/dist/capabilities/server-management.cap.d.ts +3 -0
- package/dist/capabilities/settings-store.cap.d.ts +3 -0
- package/dist/capabilities/smoke.cap.d.ts +12 -0
- package/dist/capabilities/smtp-provider.cap.d.ts +3 -0
- package/dist/capabilities/snapshot.cap.d.ts +4 -0
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
- package/dist/capabilities/storage-admin.cap.d.ts +3 -0
- package/dist/capabilities/storage-evictable.cap.d.ts +3 -0
- package/dist/capabilities/storage-migration.cap.d.ts +3 -0
- package/dist/capabilities/storage-occupancy.cap.d.ts +3 -0
- package/dist/capabilities/storage-provider.cap.d.ts +3 -0
- package/dist/capabilities/storage.cap.d.ts +3 -0
- package/dist/capabilities/stream-broker.cap.d.ts +3 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +4 -0
- package/dist/capabilities/stream-params.cap.d.ts +4 -0
- package/dist/capabilities/stream-signals.cap.d.ts +4 -0
- package/dist/capabilities/switch.cap.d.ts +208 -0
- package/dist/capabilities/system.cap.d.ts +3 -0
- package/dist/capabilities/tamper.cap.d.ts +12 -0
- package/dist/capabilities/temperature-sensor.cap.d.ts +12 -0
- package/dist/capabilities/template.cap.d.ts +3 -0
- package/dist/capabilities/terminal-session.cap.d.ts +3 -0
- package/dist/capabilities/timed-run.cap.d.ts +4 -0
- package/dist/capabilities/toast.cap.d.ts +3 -0
- package/dist/capabilities/training-provider.cap.d.ts +3 -0
- package/dist/capabilities/training.cap.d.ts +3 -0
- package/dist/capabilities/turn-provider.cap.d.ts +3 -0
- package/dist/capabilities/update.cap.d.ts +19 -0
- package/dist/capabilities/user-management.cap.d.ts +3 -0
- package/dist/capabilities/user-passkeys.cap.d.ts +3 -0
- package/dist/capabilities/vacuum-control.cap.d.ts +43 -0
- package/dist/capabilities/valve.cap.d.ts +38 -0
- package/dist/capabilities/vector-store.cap.d.ts +3 -0
- package/dist/capabilities/vibration.cap.d.ts +12 -0
- package/dist/capabilities/videoclips.cap.d.ts +4 -0
- package/dist/capabilities/viewer-ui.cap.d.ts +3 -0
- package/dist/capabilities/water-heater.cap.d.ts +33 -4
- package/dist/capabilities/weather.cap.d.ts +39 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +4 -0
- package/dist/capabilities/zone-analytics.cap.d.ts +11 -0
- package/dist/capabilities/zone-rules.cap.d.ts +4 -0
- package/dist/capabilities/zones.cap.d.ts +4 -0
- package/dist/client.js +178 -29
- package/dist/client.mjs +178 -29
- package/dist/device/cap-vocabulary/declaration.d.ts +107 -0
- package/dist/device/cap-vocabulary/index.d.ts +4 -2
- package/dist/device/cap-vocabulary/system-reasons.d.ts +17 -0
- package/dist/device/cap-vocabulary/types.d.ts +24 -6
- package/dist/device/cap-vocabulary/vocabulary.d.ts +15 -3
- package/dist/generated/addon-api.d.ts +52 -52
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-vocabulary.d.ts +7 -0
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +1 -0
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5238 -598
- package/dist/index.mjs +5232 -599
- package/dist/{sleep-BvVGLl30.mjs → sleep-C9PbO6Nb.mjs} +5669 -1691
- package/dist/{sleep-CyWfD1LJ.js → sleep-CcUFeK6k.js} +5674 -1690
- package/package.json +1 -1
- package/dist/device/cap-vocabulary/entries/actuators.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/appliances.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/camera.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +0 -4
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +0 -5
- package/dist/device/cap-vocabulary/entries/system.d.ts +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DeviceType } from '../device/device-type.js';
|
|
3
3
|
import { type InferProvider } from './capability-definition.js';
|
|
4
|
+
import { EventCategory } from '../enums/event-category.js';
|
|
4
5
|
/**
|
|
5
6
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
6
7
|
* processor on every inference result. Covers the full combinatorial
|
|
@@ -466,6 +467,16 @@ export declare const zoneAnalyticsCapability: {
|
|
|
466
467
|
* History (D850): none — occupancy is the addon series `pipeline-analytics/occupancy`; the rest is per-zone arrays keyed by runtime ids.
|
|
467
468
|
*/
|
|
468
469
|
readonly history: 'none';
|
|
470
|
+
readonly vocabulary: {
|
|
471
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
472
|
+
readonly order: 3350;
|
|
473
|
+
readonly extraEvents: readonly [{
|
|
474
|
+
readonly category: EventCategory.ZoneAnalyticsOccupancyChanged;
|
|
475
|
+
readonly label: import("../index.js").VocabL10n;
|
|
476
|
+
readonly phrase: import("../index.js").VocabL10n;
|
|
477
|
+
readonly icon: 'square-dashed';
|
|
478
|
+
}];
|
|
479
|
+
};
|
|
469
480
|
};
|
|
470
481
|
export type IZoneAnalyticsProvider = InferProvider<typeof zoneAnalyticsCapability>;
|
|
471
482
|
export { CameraOccupancySnapshotSchema as _CameraOccupancySnapshotSchema, HistoryPointSchema, HistoryRangeSchema, HistoryResolutionEnum, PerScopeBreakdownSchema, StationaryObjectSchema, ZoneScopeBreakdownSchema, };
|
|
@@ -170,5 +170,9 @@ export declare const zoneRulesCapability: {
|
|
|
170
170
|
* History (D850): none — configuration arrays.
|
|
171
171
|
*/
|
|
172
172
|
readonly history: 'none';
|
|
173
|
+
readonly vocabulary: {
|
|
174
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
175
|
+
readonly order: 3360;
|
|
176
|
+
};
|
|
173
177
|
};
|
|
174
178
|
export type IZoneRulesProvider = InferProvider<typeof zoneRulesCapability>;
|
|
@@ -157,5 +157,9 @@ export declare const zonesCapability: {
|
|
|
157
157
|
* History (D850): none — configuration arrays.
|
|
158
158
|
*/
|
|
159
159
|
readonly history: 'none';
|
|
160
|
+
readonly vocabulary: {
|
|
161
|
+
readonly noun: import("../index.js").VocabL10n;
|
|
162
|
+
readonly order: 3370;
|
|
163
|
+
};
|
|
160
164
|
};
|
|
161
165
|
export type IZonesProvider = InferProvider<typeof zonesCapability>;
|
package/dist/client.js
CHANGED
|
@@ -141,6 +141,8 @@ function method(input, output, options) {
|
|
|
141
141
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
142
142
|
...options?.role !== void 0 ? { role: options.role } : {},
|
|
143
143
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
144
|
+
...options?.actions !== void 0 ? { actions: options.actions } : {},
|
|
145
|
+
...options?.notOperatorFacing !== void 0 ? { notOperatorFacing: options.notOperatorFacing } : {},
|
|
144
146
|
timeoutMs: options?.timeoutMs
|
|
145
147
|
};
|
|
146
148
|
}
|
|
@@ -594,6 +596,25 @@ var PeerBytesTicketSchema = zod.z.object({
|
|
|
594
596
|
declaredBytes: zod.z.number().int().nonnegative().nullable()
|
|
595
597
|
});
|
|
596
598
|
//#endregion
|
|
599
|
+
//#region src/device/cap-vocabulary/system-reasons.ts
|
|
600
|
+
/**
|
|
601
|
+
* Why a system-scoped cap is never part of a device's vocabulary (D920): the
|
|
602
|
+
* reasons several caps share, named once. A cap's `vocabulary` block cites
|
|
603
|
+
* one (`vocabulary: { notOperatorFacing: NOT_A_DEVICE.STORAGE }`) or states
|
|
604
|
+
* its own.
|
|
605
|
+
*/
|
|
606
|
+
var NOT_A_DEVICE = {
|
|
607
|
+
UI_PLUMBING: "admin UI plumbing — pages, widgets and routes, not something a device does",
|
|
608
|
+
ADDON_ADMIN: "addon administration — installed and configured from the Addons page",
|
|
609
|
+
PIPELINE: "detection pipeline machinery — tuned on the pipeline pages, never actuated per device",
|
|
610
|
+
STORAGE: "storage administration — locations, retention and migrations, not a device action",
|
|
611
|
+
IDENTITY: "identity and access administration — users, sign-in and secrets",
|
|
612
|
+
NETWORK: "network administration of the cluster — addresses, mesh, tunnels",
|
|
613
|
+
CLUSTER: "cluster administration — nodes, server package, metrics",
|
|
614
|
+
ML: "model and training machinery — no device action",
|
|
615
|
+
INTERNAL: "internal plumbing between addons — never operator-facing"
|
|
616
|
+
};
|
|
617
|
+
//#endregion
|
|
597
618
|
//#region src/retrain-review.ts
|
|
598
619
|
/** Every status, in the order a summary lists them. */
|
|
599
620
|
var RETRAIN_REVIEW_STATUSES = [
|
|
@@ -1600,15 +1621,6 @@ zod.z.object({
|
|
|
1600
1621
|
app: AppLoginPathSchema.nullable()
|
|
1601
1622
|
});
|
|
1602
1623
|
//#endregion
|
|
1603
|
-
//#region src/device/cap-vocabulary/l10n.ts
|
|
1604
|
-
/** A string in English and Italian. */
|
|
1605
|
-
function t(en, it) {
|
|
1606
|
-
return {
|
|
1607
|
-
en,
|
|
1608
|
-
it
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
|
-
//#endregion
|
|
1612
1624
|
//#region src/device/icon-catalog.generated.ts
|
|
1613
1625
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
1614
1626
|
var ICON_CATEGORY_IDS = [
|
|
@@ -21753,6 +21765,15 @@ var COCO_TO_MACRO = {
|
|
|
21753
21765
|
preserveOriginal: false
|
|
21754
21766
|
};
|
|
21755
21767
|
//#endregion
|
|
21768
|
+
//#region src/device/cap-vocabulary/l10n.ts
|
|
21769
|
+
/** A string in English and Italian. */
|
|
21770
|
+
function t(en, it) {
|
|
21771
|
+
return {
|
|
21772
|
+
en,
|
|
21773
|
+
it
|
|
21774
|
+
};
|
|
21775
|
+
}
|
|
21776
|
+
//#endregion
|
|
21756
21777
|
//#region src/capabilities/alarm-panel.cap.ts
|
|
21757
21778
|
/**
|
|
21758
21779
|
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
@@ -21810,24 +21831,151 @@ zod.z.object({
|
|
|
21810
21831
|
/** Ms epoch when the slice was last updated. */
|
|
21811
21832
|
lastChangedAt: zod.z.number()
|
|
21812
21833
|
});
|
|
21813
|
-
DeviceType.AlarmPanel, method(zod.z.object({
|
|
21834
|
+
DeviceType.AlarmPanel, method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
21835
|
+
kind: "mutation",
|
|
21836
|
+
auth: "protected",
|
|
21837
|
+
actions: [{
|
|
21838
|
+
id: "alarm.trigger",
|
|
21839
|
+
label: t("Trigger alarm", "Fai scattare l’allarme"),
|
|
21840
|
+
phrase: t("Trigger the alarm on {device}", "Fai scattare l’allarme su {device}"),
|
|
21841
|
+
icon: "siren"
|
|
21842
|
+
}]
|
|
21843
|
+
}), method(zod.z.object({
|
|
21814
21844
|
deviceId: zod.z.number().int().nonnegative(),
|
|
21815
|
-
mode: AlarmArmModeSchema,
|
|
21816
|
-
/** Optional PIN code. Required when `requiresCode === true`.
|
|
21817
|
-
* Passed through to the upstream service; never persisted. */
|
|
21818
21845
|
code: zod.z.string().min(1).optional()
|
|
21819
21846
|
}), zod.z.void(), {
|
|
21820
21847
|
kind: "mutation",
|
|
21821
|
-
auth: "protected"
|
|
21848
|
+
auth: "protected",
|
|
21849
|
+
actions: [{
|
|
21850
|
+
id: "alarm.disarm",
|
|
21851
|
+
label: t("Disarm", "Disinserisci"),
|
|
21852
|
+
phrase: t("Disarm {device}", "Disinserisci {device}"),
|
|
21853
|
+
icon: "shield-off",
|
|
21854
|
+
effect: {
|
|
21855
|
+
field: "state",
|
|
21856
|
+
value: "disarmed"
|
|
21857
|
+
},
|
|
21858
|
+
openArgs: [{
|
|
21859
|
+
key: "code",
|
|
21860
|
+
label: t("PIN code", "Codice PIN"),
|
|
21861
|
+
offer: {
|
|
21862
|
+
kind: "text",
|
|
21863
|
+
secret: true
|
|
21864
|
+
},
|
|
21865
|
+
optional: true
|
|
21866
|
+
}]
|
|
21867
|
+
}]
|
|
21822
21868
|
}), method(zod.z.object({
|
|
21823
21869
|
deviceId: zod.z.number().int().nonnegative(),
|
|
21870
|
+
mode: AlarmArmModeSchema,
|
|
21871
|
+
/** Optional PIN code. Required when `requiresCode === true`.
|
|
21872
|
+
* Passed through to the upstream service; never persisted. */
|
|
21824
21873
|
code: zod.z.string().min(1).optional()
|
|
21825
21874
|
}), zod.z.void(), {
|
|
21826
21875
|
kind: "mutation",
|
|
21827
|
-
auth: "protected"
|
|
21828
|
-
|
|
21829
|
-
|
|
21830
|
-
|
|
21876
|
+
auth: "protected",
|
|
21877
|
+
actions: [
|
|
21878
|
+
{
|
|
21879
|
+
id: "alarm.arm.home",
|
|
21880
|
+
label: t("Arm home", "Inserisci in casa"),
|
|
21881
|
+
phrase: t("Arm {device} for home", "Inserisci {device} in modalità casa"),
|
|
21882
|
+
icon: "house",
|
|
21883
|
+
effect: {
|
|
21884
|
+
field: "state",
|
|
21885
|
+
value: "armed_home"
|
|
21886
|
+
},
|
|
21887
|
+
args: { mode: "home" },
|
|
21888
|
+
openArgs: [{
|
|
21889
|
+
key: "code",
|
|
21890
|
+
label: t("PIN code", "Codice PIN"),
|
|
21891
|
+
offer: {
|
|
21892
|
+
kind: "text",
|
|
21893
|
+
secret: true
|
|
21894
|
+
},
|
|
21895
|
+
optional: true
|
|
21896
|
+
}]
|
|
21897
|
+
},
|
|
21898
|
+
{
|
|
21899
|
+
id: "alarm.arm.away",
|
|
21900
|
+
label: t("Arm away", "Inserisci fuori casa"),
|
|
21901
|
+
phrase: t("Arm {device} for away", "Inserisci {device} in modalità fuori casa"),
|
|
21902
|
+
icon: "shield-check",
|
|
21903
|
+
effect: {
|
|
21904
|
+
field: "state",
|
|
21905
|
+
value: "armed_away"
|
|
21906
|
+
},
|
|
21907
|
+
args: { mode: "away" },
|
|
21908
|
+
openArgs: [{
|
|
21909
|
+
key: "code",
|
|
21910
|
+
label: t("PIN code", "Codice PIN"),
|
|
21911
|
+
offer: {
|
|
21912
|
+
kind: "text",
|
|
21913
|
+
secret: true
|
|
21914
|
+
},
|
|
21915
|
+
optional: true
|
|
21916
|
+
}]
|
|
21917
|
+
},
|
|
21918
|
+
{
|
|
21919
|
+
id: "alarm.arm.night",
|
|
21920
|
+
label: t("Arm night", "Inserisci notte"),
|
|
21921
|
+
phrase: t("Arm {device} for the night", "Inserisci {device} in modalità notte"),
|
|
21922
|
+
icon: "moon",
|
|
21923
|
+
effect: {
|
|
21924
|
+
field: "state",
|
|
21925
|
+
value: "armed_night"
|
|
21926
|
+
},
|
|
21927
|
+
args: { mode: "night" },
|
|
21928
|
+
openArgs: [{
|
|
21929
|
+
key: "code",
|
|
21930
|
+
label: t("PIN code", "Codice PIN"),
|
|
21931
|
+
offer: {
|
|
21932
|
+
kind: "text",
|
|
21933
|
+
secret: true
|
|
21934
|
+
},
|
|
21935
|
+
optional: true
|
|
21936
|
+
}]
|
|
21937
|
+
},
|
|
21938
|
+
{
|
|
21939
|
+
id: "alarm.arm.vacation",
|
|
21940
|
+
label: t("Arm vacation", "Inserisci vacanza"),
|
|
21941
|
+
phrase: t("Arm {device} for vacation", "Inserisci {device} in modalità vacanza"),
|
|
21942
|
+
icon: "plane",
|
|
21943
|
+
effect: {
|
|
21944
|
+
field: "state",
|
|
21945
|
+
value: "armed_vacation"
|
|
21946
|
+
},
|
|
21947
|
+
args: { mode: "vacation" },
|
|
21948
|
+
openArgs: [{
|
|
21949
|
+
key: "code",
|
|
21950
|
+
label: t("PIN code", "Codice PIN"),
|
|
21951
|
+
offer: {
|
|
21952
|
+
kind: "text",
|
|
21953
|
+
secret: true
|
|
21954
|
+
},
|
|
21955
|
+
optional: true
|
|
21956
|
+
}]
|
|
21957
|
+
},
|
|
21958
|
+
{
|
|
21959
|
+
id: "alarm.arm.custom_bypass",
|
|
21960
|
+
label: t("Arm custom bypass", "Inserisci con esclusioni"),
|
|
21961
|
+
phrase: t("Arm {device} with its custom bypass", "Inserisci {device} con le zone escluse"),
|
|
21962
|
+
icon: "shield-half",
|
|
21963
|
+
effect: {
|
|
21964
|
+
field: "state",
|
|
21965
|
+
value: "armed_custom_bypass"
|
|
21966
|
+
},
|
|
21967
|
+
args: { mode: "custom_bypass" },
|
|
21968
|
+
openArgs: [{
|
|
21969
|
+
key: "code",
|
|
21970
|
+
label: t("PIN code", "Codice PIN"),
|
|
21971
|
+
offer: {
|
|
21972
|
+
kind: "text",
|
|
21973
|
+
secret: true
|
|
21974
|
+
},
|
|
21975
|
+
optional: true
|
|
21976
|
+
}]
|
|
21977
|
+
}
|
|
21978
|
+
]
|
|
21831
21979
|
});
|
|
21832
21980
|
//#endregion
|
|
21833
21981
|
//#region src/remote/remote-roles.ts
|
|
@@ -22559,7 +22707,7 @@ method(zod.z.void(), zod.z.array(TopologyNodeSchema).readonly(), { auth: "admin"
|
|
|
22559
22707
|
}), zod.z.unknown(), {
|
|
22560
22708
|
kind: "mutation",
|
|
22561
22709
|
auth: "admin"
|
|
22562
|
-
});
|
|
22710
|
+
}), NOT_A_DEVICE.CLUSTER;
|
|
22563
22711
|
//#endregion
|
|
22564
22712
|
//#region src/catalogs/audio-classmap.ts
|
|
22565
22713
|
var AUDIO_MACRO_LABELS = [
|
|
@@ -27369,9 +27517,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27369
27517
|
};
|
|
27370
27518
|
const airQualitySensorInterface = { getStatus: (input) => dispatch("air-quality-sensor", "airQualitySensor", "getStatus", "query", input) };
|
|
27371
27519
|
const alarmPanelInterface = {
|
|
27372
|
-
arm: (input) => dispatch("alarm-panel", "alarmPanel", "arm", "mutation", input),
|
|
27373
|
-
disarm: (input) => dispatch("alarm-panel", "alarmPanel", "disarm", "mutation", input),
|
|
27374
27520
|
trigger: (input) => dispatch("alarm-panel", "alarmPanel", "trigger", "mutation", input),
|
|
27521
|
+
disarm: (input) => dispatch("alarm-panel", "alarmPanel", "disarm", "mutation", input),
|
|
27522
|
+
arm: (input) => dispatch("alarm-panel", "alarmPanel", "arm", "mutation", input),
|
|
27375
27523
|
getStatus: (input) => dispatch("alarm-panel", "alarmPanel", "getStatus", "query", input)
|
|
27376
27524
|
};
|
|
27377
27525
|
const ambientLightSensorInterface = { getStatus: (input) => dispatch("ambient-light-sensor", "ambientLightSensor", "getStatus", "query", input) };
|
|
@@ -27427,11 +27575,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27427
27575
|
const carbonMonoxideInterface = { getStatus: (input) => dispatch("carbon-monoxide", "carbonMonoxide", "getStatus", "query", input) };
|
|
27428
27576
|
const climateControlInterface = {
|
|
27429
27577
|
setMode: (input) => dispatch("climate-control", "climateControl", "setMode", "mutation", input),
|
|
27430
|
-
setFanMode: (input) => dispatch("climate-control", "climateControl", "setFanMode", "mutation", input),
|
|
27431
|
-
setPreset: (input) => dispatch("climate-control", "climateControl", "setPreset", "mutation", input),
|
|
27432
27578
|
setTarget: (input) => dispatch("climate-control", "climateControl", "setTarget", "mutation", input),
|
|
27433
27579
|
setTargetRange: (input) => dispatch("climate-control", "climateControl", "setTargetRange", "mutation", input),
|
|
27434
27580
|
setTargetHumidity: (input) => dispatch("climate-control", "climateControl", "setTargetHumidity", "mutation", input),
|
|
27581
|
+
setFanMode: (input) => dispatch("climate-control", "climateControl", "setFanMode", "mutation", input),
|
|
27582
|
+
setPreset: (input) => dispatch("climate-control", "climateControl", "setPreset", "mutation", input),
|
|
27435
27583
|
setSwingVertical: (input) => dispatch("climate-control", "climateControl", "setSwingVertical", "mutation", input),
|
|
27436
27584
|
setSwingHorizontal: (input) => dispatch("climate-control", "climateControl", "setSwingHorizontal", "mutation", input),
|
|
27437
27585
|
getStatus: (input) => dispatch("climate-control", "climateControl", "getStatus", "query", input)
|
|
@@ -27604,12 +27752,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27604
27752
|
stop: (input) => dispatch("media-player", "mediaPlayer", "stop", "mutation", input),
|
|
27605
27753
|
next: (input) => dispatch("media-player", "mediaPlayer", "next", "mutation", input),
|
|
27606
27754
|
previous: (input) => dispatch("media-player", "mediaPlayer", "previous", "mutation", input),
|
|
27607
|
-
seek: (input) => dispatch("media-player", "mediaPlayer", "seek", "mutation", input),
|
|
27608
27755
|
setVolume: (input) => dispatch("media-player", "mediaPlayer", "setVolume", "mutation", input),
|
|
27609
27756
|
setMute: (input) => dispatch("media-player", "mediaPlayer", "setMute", "mutation", input),
|
|
27610
27757
|
setShuffle: (input) => dispatch("media-player", "mediaPlayer", "setShuffle", "mutation", input),
|
|
27611
27758
|
setRepeat: (input) => dispatch("media-player", "mediaPlayer", "setRepeat", "mutation", input),
|
|
27612
27759
|
selectSource: (input) => dispatch("media-player", "mediaPlayer", "selectSource", "mutation", input),
|
|
27760
|
+
seek: (input) => dispatch("media-player", "mediaPlayer", "seek", "mutation", input),
|
|
27613
27761
|
playMedia: (input) => dispatch("media-player", "mediaPlayer", "playMedia", "mutation", input),
|
|
27614
27762
|
getStatus: (input) => dispatch("media-player", "mediaPlayer", "getStatus", "query", input)
|
|
27615
27763
|
};
|
|
@@ -27668,10 +27816,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27668
27816
|
const petFeederInterface = {
|
|
27669
27817
|
feed: (input) => dispatch("pet-feeder", "petFeeder", "feed", "mutation", input),
|
|
27670
27818
|
cancelFeed: (input) => dispatch("pet-feeder", "petFeeder", "cancelFeed", "mutation", input),
|
|
27671
|
-
resetDesiccant: (input) => dispatch("pet-feeder", "petFeeder", "resetDesiccant", "mutation", input),
|
|
27672
|
-
markFoodReplenished: (input) => dispatch("pet-feeder", "petFeeder", "markFoodReplenished", "mutation", input),
|
|
27673
27819
|
callPet: (input) => dispatch("pet-feeder", "petFeeder", "callPet", "mutation", input),
|
|
27674
27820
|
playSound: (input) => dispatch("pet-feeder", "petFeeder", "playSound", "mutation", input),
|
|
27821
|
+
resetDesiccant: (input) => dispatch("pet-feeder", "petFeeder", "resetDesiccant", "mutation", input),
|
|
27822
|
+
markFoodReplenished: (input) => dispatch("pet-feeder", "petFeeder", "markFoodReplenished", "mutation", input),
|
|
27675
27823
|
setChildLock: (input) => dispatch("pet-feeder", "petFeeder", "setChildLock", "mutation", input),
|
|
27676
27824
|
setIndicatorLight: (input) => dispatch("pet-feeder", "petFeeder", "setIndicatorLight", "mutation", input),
|
|
27677
27825
|
setFeedSound: (input) => dispatch("pet-feeder", "petFeeder", "setFeedSound", "mutation", input),
|
|
@@ -27791,13 +27939,13 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27791
27939
|
const ptzInterface = {
|
|
27792
27940
|
move: (input) => dispatch("ptz", "ptz", "move", "mutation", input),
|
|
27793
27941
|
continuousMove: (input) => dispatch("ptz", "ptz", "continuousMove", "mutation", input),
|
|
27794
|
-
|
|
27942
|
+
goHome: (input) => dispatch("ptz", "ptz", "goHome", "mutation", input),
|
|
27795
27943
|
getPresets: (input) => dispatch("ptz", "ptz", "getPresets", "query", input),
|
|
27796
27944
|
goToPreset: (input) => dispatch("ptz", "ptz", "goToPreset", "mutation", input),
|
|
27797
27945
|
savePreset: (input) => dispatch("ptz", "ptz", "savePreset", "mutation", input),
|
|
27798
27946
|
deletePreset: (input) => dispatch("ptz", "ptz", "deletePreset", "mutation", input),
|
|
27799
27947
|
getOptions: (input) => dispatch("ptz", "ptz", "getOptions", "query", input),
|
|
27800
|
-
|
|
27948
|
+
stop: (input) => dispatch("ptz", "ptz", "stop", "mutation", input),
|
|
27801
27949
|
getHomePreset: (input) => dispatch("ptz", "ptz", "getHomePreset", "query", input),
|
|
27802
27950
|
setHomePreset: (input) => dispatch("ptz", "ptz", "setHomePreset", "mutation", input),
|
|
27803
27951
|
captureHomeHere: (input) => dispatch("ptz", "ptz", "captureHomeHere", "mutation", input),
|
|
@@ -27915,9 +28063,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27915
28063
|
getPlaybackOptions: (input) => dispatch("videoclips", "videoclips", "getPlaybackOptions", "query", input)
|
|
27916
28064
|
};
|
|
27917
28065
|
const waterHeaterInterface = {
|
|
27918
|
-
setTargetTemp: (input) => dispatch("water-heater", "waterHeater", "setTargetTemp", "mutation", input),
|
|
27919
28066
|
setOperationMode: (input) => dispatch("water-heater", "waterHeater", "setOperationMode", "mutation", input),
|
|
27920
28067
|
setAway: (input) => dispatch("water-heater", "waterHeater", "setAway", "mutation", input),
|
|
28068
|
+
setTargetTemp: (input) => dispatch("water-heater", "waterHeater", "setTargetTemp", "mutation", input),
|
|
27921
28069
|
getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
|
|
27922
28070
|
};
|
|
27923
28071
|
const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
|
|
@@ -28161,6 +28309,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28161
28309
|
image: createSliceHandle(stateSource, binding.deviceId, "image"),
|
|
28162
28310
|
imageSettings: createSliceHandle(stateSource, binding.deviceId, "image-settings"),
|
|
28163
28311
|
intercom: createSliceHandle(stateSource, binding.deviceId, "intercom"),
|
|
28312
|
+
irTransmitter: createSliceHandle(stateSource, binding.deviceId, "ir-transmitter"),
|
|
28164
28313
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
28165
28314
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
28166
28315
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|