@camstack/types 1.2.567 → 1.2.569
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 +18 -0
- package/dist/addon.js +15 -5
- package/dist/addon.mjs +15 -5
- package/dist/capabilities/climate-control.cap.d.ts +48 -0
- package/dist/capabilities/control-select-navigation.d.ts +59 -0
- package/dist/capabilities/control.cap.d.ts +32 -0
- package/dist/capabilities/core-blocks.cap.d.ts +11 -0
- package/dist/capabilities/index.d.ts +5 -2
- package/dist/capabilities/notification-rules.cap.d.ts +46 -0
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/capabilities/weather-station.cap.d.ts +255 -0
- package/dist/client.js +62 -4
- package/dist/client.mjs +62 -4
- package/dist/{composed-stable-id-BzXh1Swk.js → composed-stable-id-C3NfRTj8.js} +3 -0
- package/dist/{composed-stable-id-COP6zOXx.mjs → composed-stable-id-RvQIEpqg.mjs} +3 -0
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-type.d.ts +3 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/enums/event-category.d.ts +12 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-Dv-Gcv1f.mjs → event-category-Dhcd0TRH.mjs} +12 -0
- package/dist/{event-category-Ps2LC8dN.js → event-category-d9kiqCqC.js} +12 -0
- package/dist/generated/addon-api.d.ts +42 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +55 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/{implemented-methods-0xxMOekw.mjs → implemented-methods-C5FMXLGP.mjs} +1 -1
- package/dist/{implemented-methods-D4F6RWkO.js → implemented-methods-C7ScGvEz.js} +1 -1
- package/dist/index.js +491 -29
- package/dist/index.mjs +487 -30
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-mEzgbYFJ.js → sleep-DR76P1OE.js} +322 -4
- package/dist/{sleep-B5XPl2YP.mjs → sleep-DbhT0DWV.mjs} +322 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,11 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.569] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- A physical weather station is its own device type, with one nullable reading for temperature, wind, rain, pressure, UV and dew point.
|
|
15
|
+
|
|
16
|
+
## [1.2.568] - 2026-11-14
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- control cap: next/previous/first/last for select controls (script- and automation-driven cycling with wrap-around)
|
|
21
|
+
- Added two system events for a draining storage location: a regular progress ping (#538) and a one-time completion event.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Thermostats can report what they are doing (heating, cooling, idle) and a room sensor can be linked to replace a thermostat's temperature and humidity
|
|
26
|
+
|
|
10
27
|
## [1.2.567] - 2026-11-14
|
|
11
28
|
|
|
12
29
|
### Changed
|
|
13
30
|
|
|
14
31
|
- Remote: the source last sent by an infrared remote is no longer kept as state
|
|
32
|
+
### Changed
|
|
15
33
|
|
|
16
34
|
## [1.2.566] - 2026-11-14
|
|
17
35
|
|
package/dist/addon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
2
|
+
const require_sleep = require("./sleep-DR76P1OE.js");
|
|
3
|
+
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -16,7 +16,7 @@ const require_composed_stable_id = require("./composed-stable-id-BzXh1Swk.js");
|
|
|
16
16
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
17
17
|
* (~144MB RSS per runner — D28).
|
|
18
18
|
*
|
|
19
|
-
* Coverage:
|
|
19
|
+
* Coverage: 35 caps, 87 methods with defaults.
|
|
20
20
|
*/
|
|
21
21
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
22
22
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -35,6 +35,10 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
35
35
|
"pullPcm": { "maxCount": 8 }
|
|
36
36
|
},
|
|
37
37
|
"battery": { "wakeForStream": { "timeoutMs": 8e3 } },
|
|
38
|
+
"control": {
|
|
39
|
+
"next": { "cycle": true },
|
|
40
|
+
"previous": { "cycle": true }
|
|
41
|
+
},
|
|
38
42
|
"device-adoption": { "listCandidates": {
|
|
39
43
|
"page": 1,
|
|
40
44
|
"pageSize": 50
|
|
@@ -453,7 +457,7 @@ function isCollectionArrayMethodName(capName, method) {
|
|
|
453
457
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
454
458
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
455
459
|
*
|
|
456
|
-
* Coverage:
|
|
460
|
+
* Coverage: 12 caps, 49 methods.
|
|
457
461
|
*/
|
|
458
462
|
var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
459
463
|
"climate-control": [
|
|
@@ -464,6 +468,12 @@ var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
|
464
468
|
"setTargetHumidity",
|
|
465
469
|
"setTargetRange"
|
|
466
470
|
],
|
|
471
|
+
"control": [
|
|
472
|
+
"first",
|
|
473
|
+
"last",
|
|
474
|
+
"next",
|
|
475
|
+
"previous"
|
|
476
|
+
],
|
|
467
477
|
"cover": [
|
|
468
478
|
"setPosition",
|
|
469
479
|
"setTiltPosition",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-
|
|
2
|
-
import { t as EventCategory } from "./event-category-
|
|
3
|
-
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-DbhT0DWV.mjs";
|
|
2
|
+
import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
3
|
+
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
6
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -15,7 +15,7 @@ import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } f
|
|
|
15
15
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
16
16
|
* (~144MB RSS per runner — D28).
|
|
17
17
|
*
|
|
18
|
-
* Coverage:
|
|
18
|
+
* Coverage: 35 caps, 87 methods with defaults.
|
|
19
19
|
*/
|
|
20
20
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
21
21
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -34,6 +34,10 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
34
34
|
"pullPcm": { "maxCount": 8 }
|
|
35
35
|
},
|
|
36
36
|
"battery": { "wakeForStream": { "timeoutMs": 8e3 } },
|
|
37
|
+
"control": {
|
|
38
|
+
"next": { "cycle": true },
|
|
39
|
+
"previous": { "cycle": true }
|
|
40
|
+
},
|
|
37
41
|
"device-adoption": { "listCandidates": {
|
|
38
42
|
"page": 1,
|
|
39
43
|
"pageSize": 50
|
|
@@ -452,7 +456,7 @@ function isCollectionArrayMethodName(capName, method) {
|
|
|
452
456
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
453
457
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
454
458
|
*
|
|
455
|
-
* Coverage:
|
|
459
|
+
* Coverage: 12 caps, 49 methods.
|
|
456
460
|
*/
|
|
457
461
|
var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
458
462
|
"climate-control": [
|
|
@@ -463,6 +467,12 @@ var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
|
463
467
|
"setTargetHumidity",
|
|
464
468
|
"setTargetRange"
|
|
465
469
|
],
|
|
470
|
+
"control": [
|
|
471
|
+
"first",
|
|
472
|
+
"last",
|
|
473
|
+
"next",
|
|
474
|
+
"previous"
|
|
475
|
+
],
|
|
466
476
|
"cover": [
|
|
467
477
|
"setPosition",
|
|
468
478
|
"setTiltPosition",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import type { ScalarCustomizeTarget } from './customize-spec.js';
|
|
3
4
|
import { DeviceType } from '../device/device-type.js';
|
|
4
5
|
/**
|
|
5
6
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -42,6 +43,21 @@ export declare const HvacModeSchema: z.ZodEnum<{
|
|
|
42
43
|
off: "off";
|
|
43
44
|
}>;
|
|
44
45
|
export type HvacMode = z.infer<typeof HvacModeSchema>;
|
|
46
|
+
/**
|
|
47
|
+
* What the device is DOING right now, as opposed to the mode it is set to
|
|
48
|
+
* (`mode: 'heat'` with the valve shut is `idle`). Optional and nullable: a
|
|
49
|
+
* device that does not say leaves it absent or null, and a consumer reads that
|
|
50
|
+
* as "unknown", never as `idle` (D393).
|
|
51
|
+
*/
|
|
52
|
+
export declare const ClimateActionSchema: z.ZodEnum<{
|
|
53
|
+
cooling: "cooling";
|
|
54
|
+
drying: "drying";
|
|
55
|
+
fan: "fan";
|
|
56
|
+
heating: "heating";
|
|
57
|
+
idle: "idle";
|
|
58
|
+
off: "off";
|
|
59
|
+
}>;
|
|
60
|
+
export type ClimateAction = z.infer<typeof ClimateActionSchema>;
|
|
45
61
|
export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
46
62
|
mode: z.ZodEnum<{
|
|
47
63
|
auto: "auto";
|
|
@@ -52,6 +68,14 @@ export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
|
52
68
|
heat_cool: "heat_cool";
|
|
53
69
|
off: "off";
|
|
54
70
|
}>;
|
|
71
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
72
|
+
cooling: "cooling";
|
|
73
|
+
drying: "drying";
|
|
74
|
+
fan: "fan";
|
|
75
|
+
heating: "heating";
|
|
76
|
+
idle: "idle";
|
|
77
|
+
off: "off";
|
|
78
|
+
}>>>;
|
|
55
79
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
56
80
|
auto: "auto";
|
|
57
81
|
cool: "cool";
|
|
@@ -166,6 +190,14 @@ export declare const climateControlCapability: {
|
|
|
166
190
|
heat_cool: "heat_cool";
|
|
167
191
|
off: "off";
|
|
168
192
|
}>;
|
|
193
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
194
|
+
cooling: "cooling";
|
|
195
|
+
drying: "drying";
|
|
196
|
+
fan: "fan";
|
|
197
|
+
heating: "heating";
|
|
198
|
+
idle: "idle";
|
|
199
|
+
off: "off";
|
|
200
|
+
}>>>;
|
|
169
201
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
170
202
|
auto: "auto";
|
|
171
203
|
cool: "cool";
|
|
@@ -217,6 +249,14 @@ export declare const climateControlCapability: {
|
|
|
217
249
|
heat_cool: "heat_cool";
|
|
218
250
|
off: "off";
|
|
219
251
|
}>;
|
|
252
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
253
|
+
cooling: "cooling";
|
|
254
|
+
drying: "drying";
|
|
255
|
+
fan: "fan";
|
|
256
|
+
heating: "heating";
|
|
257
|
+
idle: "idle";
|
|
258
|
+
off: "off";
|
|
259
|
+
}>>>;
|
|
220
260
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
221
261
|
auto: "auto";
|
|
222
262
|
cool: "cool";
|
|
@@ -251,6 +291,14 @@ export declare const climateControlCapability: {
|
|
|
251
291
|
}>>;
|
|
252
292
|
lastFetchedAt: z.ZodNumber;
|
|
253
293
|
}, z.core.$strip>;
|
|
294
|
+
readonly customize: {
|
|
295
|
+
readonly version: 1;
|
|
296
|
+
readonly overridable: {
|
|
297
|
+
path: string;
|
|
298
|
+
by: string;
|
|
299
|
+
}[];
|
|
300
|
+
readonly targets: readonly ScalarCustomizeTarget[];
|
|
301
|
+
};
|
|
254
302
|
/**
|
|
255
303
|
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
256
304
|
*
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic stepping math for a `control` cap of `kind: 'select'` — `next` /
|
|
3
|
+
* `previous` / `first` / `last`, computed ONCE here on top of the option
|
|
4
|
+
* list + the current value, so every select provider (HA, Dreame, Tuya, …)
|
|
5
|
+
* shares the same semantics instead of re-deriving it in its own device
|
|
6
|
+
* class (issue #544).
|
|
7
|
+
*
|
|
8
|
+
* Pure (`resolveSelectStep`): no I/O, no device calls — trivially testable
|
|
9
|
+
* and the single source of truth the discriminating specs pin. The provider
|
|
10
|
+
* wiring (`selectNavigationMethods`) layers it on top of the TWO methods
|
|
11
|
+
* every `control` provider already has (`getStatus`, `setValue`), so a
|
|
12
|
+
* select-kind provider adds one spread instead of its own copy of the math.
|
|
13
|
+
*/
|
|
14
|
+
import type { ControlStatus } from './control.cap.js';
|
|
15
|
+
import type { controlCapability } from './control.cap.js';
|
|
16
|
+
import type { InferNativeProvider } from './capability-definition.js';
|
|
17
|
+
export type SelectStepDirection = 'next' | 'previous' | 'first' | 'last';
|
|
18
|
+
/**
|
|
19
|
+
* Resolve the option a step lands on, given the select's current option
|
|
20
|
+
* list and value.
|
|
21
|
+
*
|
|
22
|
+
* - `first` / `last` ignore `current` entirely — they only need a non-empty
|
|
23
|
+
* option list.
|
|
24
|
+
* - `next` / `previous` walk from `current`'s index. Past either end:
|
|
25
|
+
* `cycle: true` wraps to the other end (HA `select_next` / `select_previous`
|
|
26
|
+
* default); `cycle: false` STOPS — returns `null`, a no-op the caller must
|
|
27
|
+
* not mistake for an error.
|
|
28
|
+
*
|
|
29
|
+
* Throws when the list is empty (nothing to select) or — for `next` /
|
|
30
|
+
* `previous` only — when `current` is not one of `options` (there is no
|
|
31
|
+
* index to step from; `first` / `last` never throw this one).
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveSelectStep(options: readonly string[], current: string, direction: SelectStepDirection, cycle: boolean): string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The four native methods {@link selectNavigationMethods} answers — `Required`
|
|
36
|
+
* because the cap declares them `providerOptional` (so a non-select control
|
|
37
|
+
* can omit them), but this helper always returns every one.
|
|
38
|
+
*/
|
|
39
|
+
type SelectNavigationNativeMethods = Required<Pick<InferNativeProvider<typeof controlCapability>, 'next' | 'previous' | 'first' | 'last'>>;
|
|
40
|
+
/**
|
|
41
|
+
* The generic `next` / `previous` / `first` / `last` native-provider
|
|
42
|
+
* implementation. A select-kind `control` provider calls this with its OWN
|
|
43
|
+
* `getStatus` / `setValue` (every provider already has both) instead of
|
|
44
|
+
* re-implementing the stepping math:
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* const provider: InferNativeProvider<typeof controlCapability> = {
|
|
48
|
+
* getStatus,
|
|
49
|
+
* setValue,
|
|
50
|
+
* ...selectNavigationMethods(getStatus, (value) => setValue({ control: { kind: 'select', value } })),
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* Throws when `getStatus` answers a non-`select` slice — that is a provider
|
|
55
|
+
* wiring mistake (only select-kind providers should spread this in), never a
|
|
56
|
+
* runtime condition a script should handle.
|
|
57
|
+
*/
|
|
58
|
+
export declare function selectNavigationMethods(getStatus: () => Promise<ControlStatus>, setValue: (value: string) => Promise<void>): SelectNavigationNativeMethods;
|
|
59
|
+
export {};
|
|
@@ -102,6 +102,38 @@ export declare const controlCapability: {
|
|
|
102
102
|
value: z.ZodString;
|
|
103
103
|
}, z.core.$strip>], "kind">;
|
|
104
104
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
105
|
+
/**
|
|
106
|
+
* Select one step forward through `options` (#544). `providerOptional`
|
|
107
|
+
* (hence `optionalMethod`): only a `kind: 'select'` provider implements
|
|
108
|
+
* it — the stepping math is NOT re-derived per provider, it is the one
|
|
109
|
+
* shared helper `selectNavigationMethods` (`control-select-navigation.ts`)
|
|
110
|
+
* every select-kind driver spreads in.
|
|
111
|
+
*/
|
|
112
|
+
readonly next: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
113
|
+
deviceId: z.ZodNumber;
|
|
114
|
+
cycle: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
116
|
+
readonly providerOptional: true;
|
|
117
|
+
};
|
|
118
|
+
/** Select one step backward through `options` (#544) — mirrors `next`. */
|
|
119
|
+
readonly previous: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
120
|
+
deviceId: z.ZodNumber;
|
|
121
|
+
cycle: z.ZodDefault<z.ZodBoolean>;
|
|
122
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
123
|
+
readonly providerOptional: true;
|
|
124
|
+
};
|
|
125
|
+
/** Select the first entry of `options` (#544). */
|
|
126
|
+
readonly first: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
127
|
+
deviceId: z.ZodNumber;
|
|
128
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
129
|
+
readonly providerOptional: true;
|
|
130
|
+
};
|
|
131
|
+
/** Select the last entry of `options` (#544). */
|
|
132
|
+
readonly last: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
133
|
+
deviceId: z.ZodNumber;
|
|
134
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
135
|
+
readonly providerOptional: true;
|
|
136
|
+
};
|
|
105
137
|
};
|
|
106
138
|
readonly status: {
|
|
107
139
|
readonly schema: z.ZodObject<{
|
|
@@ -21,6 +21,17 @@ import { type InferProvider } from './capability-definition.js';
|
|
|
21
21
|
* so a block that throws or never returns is marked `failed` and visible
|
|
22
22
|
* instead of taking the hub with it (D6). Every method here is admin-only, and
|
|
23
23
|
* must stay so.
|
|
24
|
+
*
|
|
25
|
+
* **Calling a device cap from a block.** `ctx.api.<cap>.<method>.mutate(...)`
|
|
26
|
+
* is the same call an addon makes — e.g. driving a `select` / `input_select`
|
|
27
|
+
* device through `control` (#544, a UniFi-triggered script cycling a scene
|
|
28
|
+
* selector):
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* await ctx.api.control.next.mutate({ deviceId, cycle: true })
|
|
32
|
+
* await ctx.api.control.first.mutate({ deviceId })
|
|
33
|
+
* const status = await ctx.api.control.getStatus.query({ deviceId })
|
|
34
|
+
* ```
|
|
24
35
|
*/
|
|
25
36
|
/**
|
|
26
37
|
* Prefix for a block's generated addon id AND its runner id — one addon, one
|
|
@@ -184,12 +184,13 @@ export { CalendarColorSchema, CalendarEntrySchema, CalendarPreferenceEntrySchema
|
|
|
184
184
|
export { type CameraCredentials, CameraCredentialsSchema, type CameraCredentialsStatus, CameraCredentialsStatusSchema, cameraCredentialsCapability, type ICameraCredentialsProvider, } from './camera-credentials.cap.js';
|
|
185
185
|
export { cameraGridLayoutCapability, type GridLayoutCell, type GridLayoutPatch, GridLayoutPatchSchema, type GridLayoutView, GridLayoutViewSchema, type GridNormalizedRect, type GridProfileOffer, type ICameraGridLayoutProvider, type ICameraGridLayoutSettingsProvider, } from './camera-grid-layout.cap.js';
|
|
186
186
|
export { type CarbonMonoxideStatus, CarbonMonoxideStatusSchema, carbonMonoxideCapability, type ICarbonMonoxideProvider, } from './carbon-monoxide.cap.js';
|
|
187
|
-
export { type ClimateControlStatus, ClimateControlStatusSchema, climateControlCapability, type HvacMode, HvacModeSchema, type IClimateControlProvider, } from './climate-control.cap.js';
|
|
187
|
+
export { type ClimateAction, ClimateActionSchema, type ClimateControlStatus, ClimateControlStatusSchema, climateControlCapability, type HvacMode, HvacModeSchema, type IClimateControlProvider, } from './climate-control.cap.js';
|
|
188
188
|
export { type ColorHsvTriplet, type ColorInput, parseColorInput, type ColorRgbTriplet, type ColorStatus, ColorStatusSchema, colorCapability, type IColorProvider, } from './color.cap.js';
|
|
189
189
|
export { type ConnectivityStatus, ConnectivityStatusSchema, connectivityCapability, type IConnectivityProvider, } from './connectivity.cap.js';
|
|
190
190
|
export { type ConsumableItem, ConsumableItemSchema, type ConsumableForm, ConsumableFormSchema, consumableFormOf, type ConsumableKind, ConsumableKindSchema, type ConsumableLevel, ConsumableLevelSchema, type ConsumableStatus, ConsumableStatusSchema, consumableKindOf, type ConsumableRemaining, ConsumableRemainingSchema, type ConsumableRemainingKind, ConsumableRemainingKindSchema, type ConsumablesStatus, ConsumablesStatusSchema, consumablesCapability, type IConsumablesProvider, } from './consumables.cap.js';
|
|
191
191
|
export { type ContactStatus, ContactStatusSchema, contactCapability, type IContactProvider, } from './contact.cap.js';
|
|
192
192
|
export { type ControlKind, ControlKindSchema, type ControlSetValueInput, type ControlStatus, ControlStatusSchema, controlCapability, type IControlProvider, } from './control.cap.js';
|
|
193
|
+
export { resolveSelectStep, selectNavigationMethods, type SelectStepDirection, } from './control-select-navigation.js';
|
|
193
194
|
export { type CoverState, CoverStateSchema, type CoverStatus, CoverStatusSchema, coverCapability, type ICoverProvider, } from './cover.cap.js';
|
|
194
195
|
export { type DayNightMode, DayNightModeSchema, type DayNightOptions, DayNightOptionsSchema, type DayNightSettingsPatch, DayNightSettingsPatchSchema, type DayNightStatus, DayNightStatusSchema, dayNightCapability, type IDayNightProvider, } from './day-night.cap.js';
|
|
195
196
|
export { deviceOpsCapability, type IDeviceOpsProvider, type RawStateResult, RawStateResultSchema, } from './device-ops.cap.js';
|
|
@@ -279,6 +280,7 @@ export { type IValveProvider, type ValveState, ValveStateSchema, type ValveStatu
|
|
|
279
280
|
export { type IVibrationProvider, type VibrationStatus, VibrationStatusSchema, vibrationCapability, } from './vibration.cap.js';
|
|
280
281
|
export { type IWaterHeaterProvider, type WaterHeaterStatus, WaterHeaterStatusSchema, waterHeaterCapability, } from './water-heater.cap.js';
|
|
281
282
|
export { type IWeatherProvider, type WeatherStatus, WeatherStatusSchema, weatherCapability, } from './weather.cap.js';
|
|
283
|
+
export { type IWeatherStationProvider, type WeatherStationStatus, WeatherStationStatusSchema, weatherStationCapability, } from './weather-station.cap.js';
|
|
282
284
|
export { type CameraOccupancySnapshot, type CameraOccupancySnapshotForDevice, CameraOccupancySnapshotForDeviceSchema, type HistoryPoint, HistoryPointSchema, type HistoryResolution, HistoryResolutionEnum, type IZoneAnalyticsProvider, type PerScopeBreakdown, PerScopeBreakdownSchema, type StationaryObject, StationaryObjectSchema, type ZoneScopeBreakdown, ZoneScopeBreakdownSchema, zoneAnalyticsCapability, } from './zone-analytics.cap.js';
|
|
283
285
|
export { type IZoneRulesProvider, type ZoneRuleStage, ZoneRuleStageEnum, zoneRulesCapability, } from './zone-rules.cap.js';
|
|
284
286
|
export { type IZonesProvider, type PolygonPoint, PolygonPointSchema, type Zone, type ZoneKind, ZoneKindEnum, ZoneSchema, zonesCapability, } from './zones.cap.js';
|
|
@@ -487,12 +489,13 @@ import type { videoclipsCapability } from './videoclips.cap.js';
|
|
|
487
489
|
import type { viewerUiCapability } from './viewer-ui.cap.js';
|
|
488
490
|
import type { waterHeaterCapability } from './water-heater.cap.js';
|
|
489
491
|
import type { weatherCapability } from './weather.cap.js';
|
|
492
|
+
import type { weatherStationCapability } from './weather-station.cap.js';
|
|
490
493
|
import type { webrtcSessionCapability } from './webrtc-session.cap.js';
|
|
491
494
|
import type { trainingCapability } from './training.cap.js';
|
|
492
495
|
import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
493
496
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
494
497
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
495
498
|
import type { zonesCapability } from './zones.cap.js';
|
|
496
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
499
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof weatherStationCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
497
500
|
export type CapabilityName = AnyCapability['name'];
|
|
498
501
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -115,6 +115,8 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
115
115
|
"rule-repaired": "rule-repaired";
|
|
116
116
|
"server-update-available": "server-update-available";
|
|
117
117
|
"server-updated": "server-updated";
|
|
118
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
119
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
118
120
|
"storage-location-critical": "storage-location-critical";
|
|
119
121
|
"storage-location-low": "storage-location-low";
|
|
120
122
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -233,6 +235,8 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
233
235
|
"rule-repaired": "rule-repaired";
|
|
234
236
|
"server-update-available": "server-update-available";
|
|
235
237
|
"server-updated": "server-updated";
|
|
238
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
239
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
236
240
|
"storage-location-critical": "storage-location-critical";
|
|
237
241
|
"storage-location-low": "storage-location-low";
|
|
238
242
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -806,6 +810,8 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
806
810
|
"rule-repaired": "rule-repaired";
|
|
807
811
|
"server-update-available": "server-update-available";
|
|
808
812
|
"server-updated": "server-updated";
|
|
813
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
814
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
809
815
|
"storage-location-critical": "storage-location-critical";
|
|
810
816
|
"storage-location-low": "storage-location-low";
|
|
811
817
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -1335,6 +1341,8 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1335
1341
|
"rule-repaired": "rule-repaired";
|
|
1336
1342
|
"server-update-available": "server-update-available";
|
|
1337
1343
|
"server-updated": "server-updated";
|
|
1344
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
1345
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
1338
1346
|
"storage-location-critical": "storage-location-critical";
|
|
1339
1347
|
"storage-location-low": "storage-location-low";
|
|
1340
1348
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -1848,6 +1856,8 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1848
1856
|
"rule-repaired": "rule-repaired";
|
|
1849
1857
|
"server-update-available": "server-update-available";
|
|
1850
1858
|
"server-updated": "server-updated";
|
|
1859
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
1860
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
1851
1861
|
"storage-location-critical": "storage-location-critical";
|
|
1852
1862
|
"storage-location-low": "storage-location-low";
|
|
1853
1863
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -2254,6 +2264,8 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
2254
2264
|
"rule-repaired": "rule-repaired";
|
|
2255
2265
|
"server-update-available": "server-update-available";
|
|
2256
2266
|
"server-updated": "server-updated";
|
|
2267
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
2268
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
2257
2269
|
"storage-location-critical": "storage-location-critical";
|
|
2258
2270
|
"storage-location-low": "storage-location-low";
|
|
2259
2271
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -2497,6 +2509,8 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
2497
2509
|
"rule-repaired": "rule-repaired";
|
|
2498
2510
|
"server-update-available": "server-update-available";
|
|
2499
2511
|
"server-updated": "server-updated";
|
|
2512
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
2513
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
2500
2514
|
"storage-location-critical": "storage-location-critical";
|
|
2501
2515
|
"storage-location-low": "storage-location-low";
|
|
2502
2516
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -3066,6 +3080,8 @@ export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
|
3066
3080
|
"rule-repaired": "rule-repaired";
|
|
3067
3081
|
"server-update-available": "server-update-available";
|
|
3068
3082
|
"server-updated": "server-updated";
|
|
3083
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
3084
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
3069
3085
|
"storage-location-critical": "storage-location-critical";
|
|
3070
3086
|
"storage-location-low": "storage-location-low";
|
|
3071
3087
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -3163,6 +3179,8 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
|
3163
3179
|
"rule-repaired": "rule-repaired";
|
|
3164
3180
|
"server-update-available": "server-update-available";
|
|
3165
3181
|
"server-updated": "server-updated";
|
|
3182
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
3183
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
3166
3184
|
"storage-location-critical": "storage-location-critical";
|
|
3167
3185
|
"storage-location-low": "storage-location-low";
|
|
3168
3186
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -3257,6 +3275,8 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
|
3257
3275
|
"rule-repaired": "rule-repaired";
|
|
3258
3276
|
"server-update-available": "server-update-available";
|
|
3259
3277
|
"server-updated": "server-updated";
|
|
3278
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
3279
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
3260
3280
|
"storage-location-critical": "storage-location-critical";
|
|
3261
3281
|
"storage-location-low": "storage-location-low";
|
|
3262
3282
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -3433,6 +3453,8 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
3433
3453
|
"rule-repaired": "rule-repaired";
|
|
3434
3454
|
"server-update-available": "server-update-available";
|
|
3435
3455
|
"server-updated": "server-updated";
|
|
3456
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
3457
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
3436
3458
|
"storage-location-critical": "storage-location-critical";
|
|
3437
3459
|
"storage-location-low": "storage-location-low";
|
|
3438
3460
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -3546,6 +3568,8 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
3546
3568
|
"rule-repaired": "rule-repaired";
|
|
3547
3569
|
"server-update-available": "server-update-available";
|
|
3548
3570
|
"server-updated": "server-updated";
|
|
3571
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
3572
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
3549
3573
|
"storage-location-critical": "storage-location-critical";
|
|
3550
3574
|
"storage-location-low": "storage-location-low";
|
|
3551
3575
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -4691,6 +4715,8 @@ export declare const notificationRulesCapability: {
|
|
|
4691
4715
|
"rule-repaired": "rule-repaired";
|
|
4692
4716
|
"server-update-available": "server-update-available";
|
|
4693
4717
|
"server-updated": "server-updated";
|
|
4718
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
4719
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
4694
4720
|
"storage-location-critical": "storage-location-critical";
|
|
4695
4721
|
"storage-location-low": "storage-location-low";
|
|
4696
4722
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -5065,6 +5091,8 @@ export declare const notificationRulesCapability: {
|
|
|
5065
5091
|
"rule-repaired": "rule-repaired";
|
|
5066
5092
|
"server-update-available": "server-update-available";
|
|
5067
5093
|
"server-updated": "server-updated";
|
|
5094
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
5095
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
5068
5096
|
"storage-location-critical": "storage-location-critical";
|
|
5069
5097
|
"storage-location-low": "storage-location-low";
|
|
5070
5098
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -5437,6 +5465,8 @@ export declare const notificationRulesCapability: {
|
|
|
5437
5465
|
"rule-repaired": "rule-repaired";
|
|
5438
5466
|
"server-update-available": "server-update-available";
|
|
5439
5467
|
"server-updated": "server-updated";
|
|
5468
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
5469
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
5440
5470
|
"storage-location-critical": "storage-location-critical";
|
|
5441
5471
|
"storage-location-low": "storage-location-low";
|
|
5442
5472
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -5803,6 +5833,8 @@ export declare const notificationRulesCapability: {
|
|
|
5803
5833
|
"rule-repaired": "rule-repaired";
|
|
5804
5834
|
"server-update-available": "server-update-available";
|
|
5805
5835
|
"server-updated": "server-updated";
|
|
5836
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
5837
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
5806
5838
|
"storage-location-critical": "storage-location-critical";
|
|
5807
5839
|
"storage-location-low": "storage-location-low";
|
|
5808
5840
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -6316,6 +6348,8 @@ export declare const notificationRulesCapability: {
|
|
|
6316
6348
|
"rule-repaired": "rule-repaired";
|
|
6317
6349
|
"server-update-available": "server-update-available";
|
|
6318
6350
|
"server-updated": "server-updated";
|
|
6351
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
6352
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
6319
6353
|
"storage-location-critical": "storage-location-critical";
|
|
6320
6354
|
"storage-location-low": "storage-location-low";
|
|
6321
6355
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -6557,6 +6591,8 @@ export declare const notificationRulesCapability: {
|
|
|
6557
6591
|
"rule-repaired": "rule-repaired";
|
|
6558
6592
|
"server-update-available": "server-update-available";
|
|
6559
6593
|
"server-updated": "server-updated";
|
|
6594
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
6595
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
6560
6596
|
"storage-location-critical": "storage-location-critical";
|
|
6561
6597
|
"storage-location-low": "storage-location-low";
|
|
6562
6598
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -7011,6 +7047,8 @@ export declare const notificationRulesCapability: {
|
|
|
7011
7047
|
"rule-repaired": "rule-repaired";
|
|
7012
7048
|
"server-update-available": "server-update-available";
|
|
7013
7049
|
"server-updated": "server-updated";
|
|
7050
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
7051
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
7014
7052
|
"storage-location-critical": "storage-location-critical";
|
|
7015
7053
|
"storage-location-low": "storage-location-low";
|
|
7016
7054
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -7402,6 +7440,8 @@ export declare const notificationRulesCapability: {
|
|
|
7402
7440
|
"rule-repaired": "rule-repaired";
|
|
7403
7441
|
"server-update-available": "server-update-available";
|
|
7404
7442
|
"server-updated": "server-updated";
|
|
7443
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
7444
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
7405
7445
|
"storage-location-critical": "storage-location-critical";
|
|
7406
7446
|
"storage-location-low": "storage-location-low";
|
|
7407
7447
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -7876,6 +7916,8 @@ export declare const notificationRulesCapability: {
|
|
|
7876
7916
|
"rule-repaired": "rule-repaired";
|
|
7877
7917
|
"server-update-available": "server-update-available";
|
|
7878
7918
|
"server-updated": "server-updated";
|
|
7919
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
7920
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
7879
7921
|
"storage-location-critical": "storage-location-critical";
|
|
7880
7922
|
"storage-location-low": "storage-location-low";
|
|
7881
7923
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -7996,6 +8038,8 @@ export declare const notificationRulesCapability: {
|
|
|
7996
8038
|
"rule-repaired": "rule-repaired";
|
|
7997
8039
|
"server-update-available": "server-update-available";
|
|
7998
8040
|
"server-updated": "server-updated";
|
|
8041
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
8042
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
7999
8043
|
"storage-location-critical": "storage-location-critical";
|
|
8000
8044
|
"storage-location-low": "storage-location-low";
|
|
8001
8045
|
"storage-location-ok": "storage-location-ok";
|
|
@@ -8128,6 +8172,8 @@ export declare const notificationRulesCapability: {
|
|
|
8128
8172
|
"rule-repaired": "rule-repaired";
|
|
8129
8173
|
"server-update-available": "server-update-available";
|
|
8130
8174
|
"server-updated": "server-updated";
|
|
8175
|
+
"storage-drain-complete": "storage-drain-complete";
|
|
8176
|
+
"storage-drain-progress": "storage-drain-progress";
|
|
8131
8177
|
"storage-location-critical": "storage-location-critical";
|
|
8132
8178
|
"storage-location-low": "storage-location-low";
|
|
8133
8179
|
"storage-location-ok": "storage-location-ok";
|