@camstack/types 1.2.422 → 1.2.424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/composer.cap.d.ts +6 -0
- package/dist/capabilities/core-blocks.cap.d.ts +43 -0
- package/dist/capabilities/group-active.cap.d.ts +46 -0
- package/dist/capabilities/group-commands.cap.d.ts +1 -1
- package/dist/capabilities/group-status.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/lock-control.cap.d.ts +1 -0
- package/dist/capabilities/notification-rules.cap.d.ts +12 -0
- package/dist/capabilities/switch.cap.d.ts +1 -1
- package/dist/client.js +17 -1
- package/dist/client.mjs +17 -1
- package/dist/composition/composition-report.d.ts +2 -0
- package/dist/composition/composition.d.ts +9 -0
- package/dist/composition/helpers/actuator-methods.d.ts +39 -0
- package/dist/composition/helpers/aggregate.d.ts +2 -0
- package/dist/composition/helpers/catalog.d.ts +7 -1
- package/dist/composition/helpers/compile-history.d.ts +16 -1
- package/dist/composition/helpers/compile-math.d.ts +9 -0
- package/dist/composition/helpers/history-math.d.ts +8 -0
- package/dist/composition/helpers/index.d.ts +6 -4
- package/dist/composition/helpers/source-pick.d.ts +8 -1
- package/dist/composition/helpers/spec.d.ts +49 -3
- package/dist/{composition-CpETZ4HL.mjs → composition-Bb8iwHEJ.mjs} +175 -5
- package/dist/{composition-CPRAP41h.js → composition-CpAc0YfQ.js} +228 -4
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
- package/dist/expression/builtins.d.ts +11 -2
- package/dist/expression/expression-source.d.ts +6 -1
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +5 -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/index.js +648 -34
- package/dist/index.mjs +625 -35
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-0sD_LHLI.mjs → sleep--jXS9hWo.mjs} +10 -1
- package/dist/{sleep-CEKGW7A5.js → sleep-edKiOXLo.js} +10 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-edKiOXLo.js");
|
|
3
3
|
const require_event_category = require("./event-category-Ave2VSxY.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-U7lLUMNz.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as expandCapMethods, $n as REVALIDATE_AFTER_MS, $r as isSecretMarker, $t as RecordFieldPathSchema, A as HF_REPO, An as RecordUniqueViolationError, Ar as buildSecretRef, B as withoutCallerStamp, Bn as RECORD_CLASSES, C as addonSliceHandleApi, Cn as InvalidRecordError, Dn as RecordNotFoundError, En as RECORDS_ERROR_CODES, Fn as UnknownRecordKindError, Fr as parseSecretRef, G as adminUiCapability, Gn as RECORD_MAX_DATA_BYTES, Hn as RECORD_DEFAULT_MAX_DATA_BYTES, I as deviceOpsCapability, In as asRecordsError, Jn as RECORD_QUERY_MAX, Jt as defineEntryKind, Kn as RECORD_MAX_INDEXES, L as viewerUiCapability, Ln as recordsErrorFromMessage, M as CAP_ADVANCE_FIELDS, Mn as RevConflictError, Mr as globalSecretScope, Nn as TransactRefusedError, Nr as isSecretRef, On as RecordSecretUnavailableError, Or as SECRET_REF_SCHEME, P as CAP_STATE_LEAVES, Pn as UnindexedFilterError, Pr as normalizeSecretOwner, Qn as resolveSecretViewsIn, Qr as isSecretFieldView, Qt as EntryDescriptorSchema, R as DEVICE_CHILDREN_BATCH_MAX, Rn as RECORD_BATCH_MAX, Rr as createEvent, Sn as ForeignSecretMarkerError, Tn as PlaintextSecretError, U as describeCustomActions, Un as RECORD_DELETE_BATCH, Vn as RECORD_DATABASES, Wn as RECORD_ID_MAX_LENGTH, Xn as RECORD_SETTINGS_MAX_ROWS, Xr as classifySecretWrite, Xt as createRecordsAccess, Yn as RECORD_SECRET_COLLECTION_PREFIX, Yr as SECRET_CLEAR, Yt as entryBody, Zn as RECORD_SWEEP_INTERVAL_MS, Zr as isSecretClear, Zt as assertTransactScope, _ as readErrorI18n, _n as collectZodSecretPaths, an as assertValidDeclaration, ar as registerKnownSecret, b as isDeviceScopedCap, bn as DeclarationRefusedError, c as asString, cn as REMOVE_LEAF, cr as PEER_BYTES_CHUNK_BYTES, ct as readNodePin, d as parseJsonUnknown, dn as parseSecretPath, dr as PEER_BYTES_TICKET_TTL_MS, dt as ReadinessRegistry, ei as isSecretMarkerLike, en as RecordIndexSchema, er as createSecretsAccess, f as hfModelUrl, fn as recordArrayItemPath, ft as ReadinessTimeoutError, g as ErrorI18nPayloadSchema, gr as BaseAddon, hn as secretArrayPrefixes, hr as DisposerChain, ht as scopeKey, in as StoredRecordKindDeclarationSchema, ir as knownSecretCount, jn as RecordsError, jr as formatSecretScope, kn as RecordTooLargeError, kr as arrayItemFieldPath, ln as collectSecretLeaves, lr as PEER_BYTES_MAX_OUTSTANDING, mn as recordSecretRef, ni as toSecretFieldView, nn as RecordKindNameSchema, nr as clearKnownSecrets, o as asJsonObject, on as declarationsOf, or as scrubKnownSecrets, p as BOOT_RECOVERY_BACKOFF_MS, pn as recordSecretCollection, pr as DATAPLANE_SECRET_HEADER, qn as RECORD_MAX_INDEX_FIELDS, qt as makeInMemoryRecords, r as maskUrlCredentials, rn as RecordRetentionSchema, rr as forgetKnownSecret, sn as defineRecordKinds, sr as shortSecretRefHash, st as nodePin, t as sleep, ti as makeSecretMarker, tn as RecordKindDeclarationSchema, tr as MIN_SCRUBBED_LENGTH, un as mapSecretLeaves, ur as PEER_BYTES_STALL_MS, ut as MODEL_FORMATS, vn as isZodSecret, vr as normalizeAddonInitResult, w as createEventBusSliceSource, wn as NoCallerError, x as createDeviceProxy, xn as FilterRequiredError, y as DEVICE_SCOPED_CAPS, yn as BatchTooLargeError, z as CALLER_STAMPED_CAPABILITIES, zn as RECORD_BATCH_MAX_BYTES, zr as emitReadiness } from "./sleep
|
|
1
|
+
import { $ as expandCapMethods, $n as REVALIDATE_AFTER_MS, $r as isSecretMarker, $t as RecordFieldPathSchema, A as HF_REPO, An as RecordUniqueViolationError, Ar as buildSecretRef, B as withoutCallerStamp, Bn as RECORD_CLASSES, C as addonSliceHandleApi, Cn as InvalidRecordError, Dn as RecordNotFoundError, En as RECORDS_ERROR_CODES, Fn as UnknownRecordKindError, Fr as parseSecretRef, G as adminUiCapability, Gn as RECORD_MAX_DATA_BYTES, Hn as RECORD_DEFAULT_MAX_DATA_BYTES, I as deviceOpsCapability, In as asRecordsError, Jn as RECORD_QUERY_MAX, Jt as defineEntryKind, Kn as RECORD_MAX_INDEXES, L as viewerUiCapability, Ln as recordsErrorFromMessage, M as CAP_ADVANCE_FIELDS, Mn as RevConflictError, Mr as globalSecretScope, Nn as TransactRefusedError, Nr as isSecretRef, On as RecordSecretUnavailableError, Or as SECRET_REF_SCHEME, P as CAP_STATE_LEAVES, Pn as UnindexedFilterError, Pr as normalizeSecretOwner, Qn as resolveSecretViewsIn, Qr as isSecretFieldView, Qt as EntryDescriptorSchema, R as DEVICE_CHILDREN_BATCH_MAX, Rn as RECORD_BATCH_MAX, Rr as createEvent, Sn as ForeignSecretMarkerError, Tn as PlaintextSecretError, U as describeCustomActions, Un as RECORD_DELETE_BATCH, Vn as RECORD_DATABASES, Wn as RECORD_ID_MAX_LENGTH, Xn as RECORD_SETTINGS_MAX_ROWS, Xr as classifySecretWrite, Xt as createRecordsAccess, Yn as RECORD_SECRET_COLLECTION_PREFIX, Yr as SECRET_CLEAR, Yt as entryBody, Zn as RECORD_SWEEP_INTERVAL_MS, Zr as isSecretClear, Zt as assertTransactScope, _ as readErrorI18n, _n as collectZodSecretPaths, an as assertValidDeclaration, ar as registerKnownSecret, b as isDeviceScopedCap, bn as DeclarationRefusedError, c as asString, cn as REMOVE_LEAF, cr as PEER_BYTES_CHUNK_BYTES, ct as readNodePin, d as parseJsonUnknown, dn as parseSecretPath, dr as PEER_BYTES_TICKET_TTL_MS, dt as ReadinessRegistry, ei as isSecretMarkerLike, en as RecordIndexSchema, er as createSecretsAccess, f as hfModelUrl, fn as recordArrayItemPath, ft as ReadinessTimeoutError, g as ErrorI18nPayloadSchema, gr as BaseAddon, hn as secretArrayPrefixes, hr as DisposerChain, ht as scopeKey, in as StoredRecordKindDeclarationSchema, ir as knownSecretCount, jn as RecordsError, jr as formatSecretScope, kn as RecordTooLargeError, kr as arrayItemFieldPath, ln as collectSecretLeaves, lr as PEER_BYTES_MAX_OUTSTANDING, mn as recordSecretRef, ni as toSecretFieldView, nn as RecordKindNameSchema, nr as clearKnownSecrets, o as asJsonObject, on as declarationsOf, or as scrubKnownSecrets, p as BOOT_RECOVERY_BACKOFF_MS, pn as recordSecretCollection, pr as DATAPLANE_SECRET_HEADER, qn as RECORD_MAX_INDEX_FIELDS, qt as makeInMemoryRecords, r as maskUrlCredentials, rn as RecordRetentionSchema, rr as forgetKnownSecret, sn as defineRecordKinds, sr as shortSecretRefHash, st as nodePin, t as sleep, ti as makeSecretMarker, tn as RecordKindDeclarationSchema, tr as MIN_SCRUBBED_LENGTH, un as mapSecretLeaves, ur as PEER_BYTES_STALL_MS, ut as MODEL_FORMATS, vn as isZodSecret, vr as normalizeAddonInitResult, w as createEventBusSliceSource, wn as NoCallerError, x as createDeviceProxy, xn as FilterRequiredError, y as DEVICE_SCOPED_CAPS, yn as BatchTooLargeError, z as CALLER_STAMPED_CAPABILITIES, zn as RECORD_BATCH_MAX_BYTES, zr as emitReadiness } from "./sleep--jXS9hWo.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-CT-hz5Rb.mjs";
|
|
3
3
|
import { a as DeviceType, t as errMsg } from "./err-msg-DIorGYeC.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -75,6 +75,7 @@ export declare const ComposerBlockSchema: z.ZodObject<{
|
|
|
75
75
|
cap: z.ZodString;
|
|
76
76
|
fieldPath: z.ZodString;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
79
|
publish: z.ZodEnum<{
|
|
79
80
|
excluded: "excluded";
|
|
80
81
|
included: "included";
|
|
@@ -155,6 +156,7 @@ export declare const ComposerBlockSchema: z.ZodObject<{
|
|
|
155
156
|
cap: z.ZodString;
|
|
156
157
|
fieldPath: z.ZodString;
|
|
157
158
|
}, z.core.$strip>>;
|
|
159
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
160
|
publish: z.ZodEnum<{
|
|
159
161
|
excluded: "excluded";
|
|
160
162
|
included: "included";
|
|
@@ -303,6 +305,7 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
|
|
|
303
305
|
cap: z.ZodString;
|
|
304
306
|
fieldPath: z.ZodString;
|
|
305
307
|
}, z.core.$strip>>;
|
|
308
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
309
|
publish: z.ZodEnum<{
|
|
307
310
|
excluded: "excluded";
|
|
308
311
|
included: "included";
|
|
@@ -383,6 +386,7 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
|
|
|
383
386
|
cap: z.ZodString;
|
|
384
387
|
fieldPath: z.ZodString;
|
|
385
388
|
}, z.core.$strip>>;
|
|
389
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
386
390
|
publish: z.ZodEnum<{
|
|
387
391
|
excluded: "excluded";
|
|
388
392
|
included: "included";
|
|
@@ -564,6 +568,7 @@ export declare const composerCapability: {
|
|
|
564
568
|
cap: z.ZodString;
|
|
565
569
|
fieldPath: z.ZodString;
|
|
566
570
|
}, z.core.$strip>>;
|
|
571
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
572
|
publish: z.ZodEnum<{
|
|
568
573
|
excluded: "excluded";
|
|
569
574
|
included: "included";
|
|
@@ -644,6 +649,7 @@ export declare const composerCapability: {
|
|
|
644
649
|
cap: z.ZodString;
|
|
645
650
|
fieldPath: z.ZodString;
|
|
646
651
|
}, z.core.$strip>>;
|
|
652
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
647
653
|
publish: z.ZodEnum<{
|
|
648
654
|
excluded: "excluded";
|
|
649
655
|
included: "included";
|
|
@@ -238,6 +238,7 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
238
238
|
cap: z.ZodString;
|
|
239
239
|
fieldPath: z.ZodString;
|
|
240
240
|
}, z.core.$strip>>;
|
|
241
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
242
|
publish: z.ZodEnum<{
|
|
242
243
|
excluded: "excluded";
|
|
243
244
|
included: "included";
|
|
@@ -318,6 +319,7 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
318
319
|
cap: z.ZodString;
|
|
319
320
|
fieldPath: z.ZodString;
|
|
320
321
|
}, z.core.$strip>>;
|
|
322
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
323
|
publish: z.ZodEnum<{
|
|
322
324
|
excluded: "excluded";
|
|
323
325
|
included: "included";
|
|
@@ -450,6 +452,7 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
|
|
|
450
452
|
cap: z.ZodString;
|
|
451
453
|
fieldPath: z.ZodString;
|
|
452
454
|
}, z.core.$strip>>;
|
|
455
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
453
456
|
publish: z.ZodEnum<{
|
|
454
457
|
excluded: "excluded";
|
|
455
458
|
included: "included";
|
|
@@ -530,6 +533,7 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
|
|
|
530
533
|
cap: z.ZodString;
|
|
531
534
|
fieldPath: z.ZodString;
|
|
532
535
|
}, z.core.$strip>>;
|
|
536
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
533
537
|
publish: z.ZodEnum<{
|
|
534
538
|
excluded: "excluded";
|
|
535
539
|
included: "included";
|
|
@@ -718,6 +722,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
|
|
|
718
722
|
cap: z.ZodString;
|
|
719
723
|
fieldPath: z.ZodString;
|
|
720
724
|
}, z.core.$strip>>;
|
|
725
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
721
726
|
publish: z.ZodEnum<{
|
|
722
727
|
excluded: "excluded";
|
|
723
728
|
included: "included";
|
|
@@ -798,6 +803,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
|
|
|
798
803
|
cap: z.ZodString;
|
|
799
804
|
fieldPath: z.ZodString;
|
|
800
805
|
}, z.core.$strip>>;
|
|
806
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
801
807
|
publish: z.ZodEnum<{
|
|
802
808
|
excluded: "excluded";
|
|
803
809
|
included: "included";
|
|
@@ -1026,6 +1032,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
|
|
|
1026
1032
|
cap: z.ZodString;
|
|
1027
1033
|
fieldPath: z.ZodString;
|
|
1028
1034
|
}, z.core.$strip>>;
|
|
1035
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1029
1036
|
publish: z.ZodEnum<{
|
|
1030
1037
|
excluded: "excluded";
|
|
1031
1038
|
included: "included";
|
|
@@ -1106,6 +1113,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
|
|
|
1106
1113
|
cap: z.ZodString;
|
|
1107
1114
|
fieldPath: z.ZodString;
|
|
1108
1115
|
}, z.core.$strip>>;
|
|
1116
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1109
1117
|
publish: z.ZodEnum<{
|
|
1110
1118
|
excluded: "excluded";
|
|
1111
1119
|
included: "included";
|
|
@@ -1332,6 +1340,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1332
1340
|
cap: z.ZodString;
|
|
1333
1341
|
fieldPath: z.ZodString;
|
|
1334
1342
|
}, z.core.$strip>>;
|
|
1343
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1335
1344
|
publish: z.ZodEnum<{
|
|
1336
1345
|
excluded: "excluded";
|
|
1337
1346
|
included: "included";
|
|
@@ -1412,6 +1421,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1412
1421
|
cap: z.ZodString;
|
|
1413
1422
|
fieldPath: z.ZodString;
|
|
1414
1423
|
}, z.core.$strip>>;
|
|
1424
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1415
1425
|
publish: z.ZodEnum<{
|
|
1416
1426
|
excluded: "excluded";
|
|
1417
1427
|
included: "included";
|
|
@@ -1642,6 +1652,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1642
1652
|
cap: z.ZodString;
|
|
1643
1653
|
fieldPath: z.ZodString;
|
|
1644
1654
|
}, z.core.$strip>>;
|
|
1655
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1645
1656
|
publish: z.ZodEnum<{
|
|
1646
1657
|
excluded: "excluded";
|
|
1647
1658
|
included: "included";
|
|
@@ -1722,6 +1733,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1722
1733
|
cap: z.ZodString;
|
|
1723
1734
|
fieldPath: z.ZodString;
|
|
1724
1735
|
}, z.core.$strip>>;
|
|
1736
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1725
1737
|
publish: z.ZodEnum<{
|
|
1726
1738
|
excluded: "excluded";
|
|
1727
1739
|
included: "included";
|
|
@@ -1953,6 +1965,7 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
|
|
|
1953
1965
|
cap: z.ZodString;
|
|
1954
1966
|
fieldPath: z.ZodString;
|
|
1955
1967
|
}, z.core.$strip>>;
|
|
1968
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1956
1969
|
publish: z.ZodEnum<{
|
|
1957
1970
|
excluded: "excluded";
|
|
1958
1971
|
included: "included";
|
|
@@ -2033,6 +2046,7 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
|
|
|
2033
2046
|
cap: z.ZodString;
|
|
2034
2047
|
fieldPath: z.ZodString;
|
|
2035
2048
|
}, z.core.$strip>>;
|
|
2049
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2036
2050
|
publish: z.ZodEnum<{
|
|
2037
2051
|
excluded: "excluded";
|
|
2038
2052
|
included: "included";
|
|
@@ -2284,6 +2298,7 @@ export declare const coreBlocksCapability: {
|
|
|
2284
2298
|
cap: z.ZodString;
|
|
2285
2299
|
fieldPath: z.ZodString;
|
|
2286
2300
|
}, z.core.$strip>>;
|
|
2301
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2287
2302
|
publish: z.ZodEnum<{
|
|
2288
2303
|
excluded: "excluded";
|
|
2289
2304
|
included: "included";
|
|
@@ -2364,6 +2379,7 @@ export declare const coreBlocksCapability: {
|
|
|
2364
2379
|
cap: z.ZodString;
|
|
2365
2380
|
fieldPath: z.ZodString;
|
|
2366
2381
|
}, z.core.$strip>>;
|
|
2382
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2367
2383
|
publish: z.ZodEnum<{
|
|
2368
2384
|
excluded: "excluded";
|
|
2369
2385
|
included: "included";
|
|
@@ -2554,6 +2570,7 @@ export declare const coreBlocksCapability: {
|
|
|
2554
2570
|
cap: z.ZodString;
|
|
2555
2571
|
fieldPath: z.ZodString;
|
|
2556
2572
|
}, z.core.$strip>>;
|
|
2573
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2557
2574
|
publish: z.ZodEnum<{
|
|
2558
2575
|
excluded: "excluded";
|
|
2559
2576
|
included: "included";
|
|
@@ -2634,6 +2651,7 @@ export declare const coreBlocksCapability: {
|
|
|
2634
2651
|
cap: z.ZodString;
|
|
2635
2652
|
fieldPath: z.ZodString;
|
|
2636
2653
|
}, z.core.$strip>>;
|
|
2654
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2637
2655
|
publish: z.ZodEnum<{
|
|
2638
2656
|
excluded: "excluded";
|
|
2639
2657
|
included: "included";
|
|
@@ -2838,6 +2856,7 @@ export declare const coreBlocksCapability: {
|
|
|
2838
2856
|
cap: z.ZodString;
|
|
2839
2857
|
fieldPath: z.ZodString;
|
|
2840
2858
|
}, z.core.$strip>>;
|
|
2859
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2841
2860
|
publish: z.ZodEnum<{
|
|
2842
2861
|
excluded: "excluded";
|
|
2843
2862
|
included: "included";
|
|
@@ -2918,6 +2937,7 @@ export declare const coreBlocksCapability: {
|
|
|
2918
2937
|
cap: z.ZodString;
|
|
2919
2938
|
fieldPath: z.ZodString;
|
|
2920
2939
|
}, z.core.$strip>>;
|
|
2940
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2921
2941
|
publish: z.ZodEnum<{
|
|
2922
2942
|
excluded: "excluded";
|
|
2923
2943
|
included: "included";
|
|
@@ -3120,6 +3140,7 @@ export declare const coreBlocksCapability: {
|
|
|
3120
3140
|
cap: z.ZodString;
|
|
3121
3141
|
fieldPath: z.ZodString;
|
|
3122
3142
|
}, z.core.$strip>>;
|
|
3143
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3123
3144
|
publish: z.ZodEnum<{
|
|
3124
3145
|
excluded: "excluded";
|
|
3125
3146
|
included: "included";
|
|
@@ -3200,6 +3221,7 @@ export declare const coreBlocksCapability: {
|
|
|
3200
3221
|
cap: z.ZodString;
|
|
3201
3222
|
fieldPath: z.ZodString;
|
|
3202
3223
|
}, z.core.$strip>>;
|
|
3224
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3203
3225
|
publish: z.ZodEnum<{
|
|
3204
3226
|
excluded: "excluded";
|
|
3205
3227
|
included: "included";
|
|
@@ -3398,6 +3420,7 @@ export declare const coreBlocksCapability: {
|
|
|
3398
3420
|
cap: z.ZodString;
|
|
3399
3421
|
fieldPath: z.ZodString;
|
|
3400
3422
|
}, z.core.$strip>>;
|
|
3423
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3401
3424
|
publish: z.ZodEnum<{
|
|
3402
3425
|
excluded: "excluded";
|
|
3403
3426
|
included: "included";
|
|
@@ -3478,6 +3501,7 @@ export declare const coreBlocksCapability: {
|
|
|
3478
3501
|
cap: z.ZodString;
|
|
3479
3502
|
fieldPath: z.ZodString;
|
|
3480
3503
|
}, z.core.$strip>>;
|
|
3504
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3481
3505
|
publish: z.ZodEnum<{
|
|
3482
3506
|
excluded: "excluded";
|
|
3483
3507
|
included: "included";
|
|
@@ -3681,6 +3705,7 @@ export declare const coreBlocksCapability: {
|
|
|
3681
3705
|
cap: z.ZodString;
|
|
3682
3706
|
fieldPath: z.ZodString;
|
|
3683
3707
|
}, z.core.$strip>>;
|
|
3708
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3684
3709
|
publish: z.ZodEnum<{
|
|
3685
3710
|
excluded: "excluded";
|
|
3686
3711
|
included: "included";
|
|
@@ -3761,6 +3786,7 @@ export declare const coreBlocksCapability: {
|
|
|
3761
3786
|
cap: z.ZodString;
|
|
3762
3787
|
fieldPath: z.ZodString;
|
|
3763
3788
|
}, z.core.$strip>>;
|
|
3789
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3764
3790
|
publish: z.ZodEnum<{
|
|
3765
3791
|
excluded: "excluded";
|
|
3766
3792
|
included: "included";
|
|
@@ -3991,6 +4017,7 @@ export declare const coreBlocksCapability: {
|
|
|
3991
4017
|
cap: z.ZodString;
|
|
3992
4018
|
fieldPath: z.ZodString;
|
|
3993
4019
|
}, z.core.$strip>>;
|
|
4020
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3994
4021
|
publish: z.ZodEnum<{
|
|
3995
4022
|
excluded: "excluded";
|
|
3996
4023
|
included: "included";
|
|
@@ -4071,6 +4098,7 @@ export declare const coreBlocksCapability: {
|
|
|
4071
4098
|
cap: z.ZodString;
|
|
4072
4099
|
fieldPath: z.ZodString;
|
|
4073
4100
|
}, z.core.$strip>>;
|
|
4101
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4074
4102
|
publish: z.ZodEnum<{
|
|
4075
4103
|
excluded: "excluded";
|
|
4076
4104
|
included: "included";
|
|
@@ -4257,6 +4285,7 @@ export declare const coreBlocksCapability: {
|
|
|
4257
4285
|
cap: z.ZodString;
|
|
4258
4286
|
fieldPath: z.ZodString;
|
|
4259
4287
|
}, z.core.$strip>>;
|
|
4288
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4260
4289
|
publish: z.ZodEnum<{
|
|
4261
4290
|
excluded: "excluded";
|
|
4262
4291
|
included: "included";
|
|
@@ -4337,6 +4366,7 @@ export declare const coreBlocksCapability: {
|
|
|
4337
4366
|
cap: z.ZodString;
|
|
4338
4367
|
fieldPath: z.ZodString;
|
|
4339
4368
|
}, z.core.$strip>>;
|
|
4369
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4340
4370
|
publish: z.ZodEnum<{
|
|
4341
4371
|
excluded: "excluded";
|
|
4342
4372
|
included: "included";
|
|
@@ -4471,6 +4501,7 @@ export declare const coreBlocksCapability: {
|
|
|
4471
4501
|
cap: z.ZodString;
|
|
4472
4502
|
fieldPath: z.ZodString;
|
|
4473
4503
|
}, z.core.$strip>>;
|
|
4504
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4474
4505
|
publish: z.ZodEnum<{
|
|
4475
4506
|
excluded: "excluded";
|
|
4476
4507
|
included: "included";
|
|
@@ -4551,6 +4582,7 @@ export declare const coreBlocksCapability: {
|
|
|
4551
4582
|
cap: z.ZodString;
|
|
4552
4583
|
fieldPath: z.ZodString;
|
|
4553
4584
|
}, z.core.$strip>>;
|
|
4585
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4554
4586
|
publish: z.ZodEnum<{
|
|
4555
4587
|
excluded: "excluded";
|
|
4556
4588
|
included: "included";
|
|
@@ -4737,6 +4769,7 @@ export declare const coreBlocksCapability: {
|
|
|
4737
4769
|
cap: z.ZodString;
|
|
4738
4770
|
fieldPath: z.ZodString;
|
|
4739
4771
|
}, z.core.$strip>>;
|
|
4772
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4740
4773
|
publish: z.ZodEnum<{
|
|
4741
4774
|
excluded: "excluded";
|
|
4742
4775
|
included: "included";
|
|
@@ -4817,6 +4850,7 @@ export declare const coreBlocksCapability: {
|
|
|
4817
4850
|
cap: z.ZodString;
|
|
4818
4851
|
fieldPath: z.ZodString;
|
|
4819
4852
|
}, z.core.$strip>>;
|
|
4853
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4820
4854
|
publish: z.ZodEnum<{
|
|
4821
4855
|
excluded: "excluded";
|
|
4822
4856
|
included: "included";
|
|
@@ -5012,6 +5046,7 @@ export declare const coreBlocksCapability: {
|
|
|
5012
5046
|
cap: z.ZodString;
|
|
5013
5047
|
fieldPath: z.ZodString;
|
|
5014
5048
|
}, z.core.$strip>>;
|
|
5049
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5015
5050
|
publish: z.ZodEnum<{
|
|
5016
5051
|
excluded: "excluded";
|
|
5017
5052
|
included: "included";
|
|
@@ -5092,6 +5127,7 @@ export declare const coreBlocksCapability: {
|
|
|
5092
5127
|
cap: z.ZodString;
|
|
5093
5128
|
fieldPath: z.ZodString;
|
|
5094
5129
|
}, z.core.$strip>>;
|
|
5130
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5095
5131
|
publish: z.ZodEnum<{
|
|
5096
5132
|
excluded: "excluded";
|
|
5097
5133
|
included: "included";
|
|
@@ -5321,6 +5357,7 @@ export declare const coreBlocksCapability: {
|
|
|
5321
5357
|
cap: z.ZodString;
|
|
5322
5358
|
fieldPath: z.ZodString;
|
|
5323
5359
|
}, z.core.$strip>>;
|
|
5360
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5324
5361
|
publish: z.ZodEnum<{
|
|
5325
5362
|
excluded: "excluded";
|
|
5326
5363
|
included: "included";
|
|
@@ -5401,6 +5438,7 @@ export declare const coreBlocksCapability: {
|
|
|
5401
5438
|
cap: z.ZodString;
|
|
5402
5439
|
fieldPath: z.ZodString;
|
|
5403
5440
|
}, z.core.$strip>>;
|
|
5441
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5404
5442
|
publish: z.ZodEnum<{
|
|
5405
5443
|
excluded: "excluded";
|
|
5406
5444
|
included: "included";
|
|
@@ -5637,6 +5675,7 @@ export declare const coreBlocksCapability: {
|
|
|
5637
5675
|
cap: z.ZodString;
|
|
5638
5676
|
fieldPath: z.ZodString;
|
|
5639
5677
|
}, z.core.$strip>>;
|
|
5678
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5640
5679
|
publish: z.ZodEnum<{
|
|
5641
5680
|
excluded: "excluded";
|
|
5642
5681
|
included: "included";
|
|
@@ -5717,6 +5756,7 @@ export declare const coreBlocksCapability: {
|
|
|
5717
5756
|
cap: z.ZodString;
|
|
5718
5757
|
fieldPath: z.ZodString;
|
|
5719
5758
|
}, z.core.$strip>>;
|
|
5759
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5720
5760
|
publish: z.ZodEnum<{
|
|
5721
5761
|
excluded: "excluded";
|
|
5722
5762
|
included: "included";
|
|
@@ -5912,6 +5952,7 @@ export declare const coreBlocksCapability: {
|
|
|
5912
5952
|
cap: z.ZodString;
|
|
5913
5953
|
fieldPath: z.ZodString;
|
|
5914
5954
|
}, z.core.$strip>>;
|
|
5955
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5915
5956
|
publish: z.ZodEnum<{
|
|
5916
5957
|
excluded: "excluded";
|
|
5917
5958
|
included: "included";
|
|
@@ -5992,6 +6033,7 @@ export declare const coreBlocksCapability: {
|
|
|
5992
6033
|
cap: z.ZodString;
|
|
5993
6034
|
fieldPath: z.ZodString;
|
|
5994
6035
|
}, z.core.$strip>>;
|
|
6036
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5995
6037
|
publish: z.ZodEnum<{
|
|
5996
6038
|
excluded: "excluded";
|
|
5997
6039
|
included: "included";
|
|
@@ -6160,6 +6202,7 @@ export declare const coreBlocksCapability: {
|
|
|
6160
6202
|
cap: z.ZodString;
|
|
6161
6203
|
fieldPath: z.ZodString;
|
|
6162
6204
|
}, z.core.$strip>>;
|
|
6205
|
+
activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6163
6206
|
publish: z.ZodEnum<{
|
|
6164
6207
|
excluded: "excluded";
|
|
6165
6208
|
included: "included";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DeviceType } from '../device/device-type.js';
|
|
3
|
+
import { type InferProvider } from './capability-definition.js';
|
|
4
|
+
/**
|
|
5
|
+
* Whether a helper actuator group counts as active (D944): at least one
|
|
6
|
+
* included member is, or every included member is. What "active" means is the
|
|
7
|
+
* type's: a cover is open, a lock is locked, a media player is playing, a
|
|
8
|
+
* climate device is not off. A group of lights, switches and fans reports
|
|
9
|
+
* `switch.on` instead; this cap is for the types whose own state is not a
|
|
10
|
+
* yes/no. Unknown members are left out (`group-status` counts them) and an
|
|
11
|
+
* empty included set takes the device offline, never `active: false`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const GroupActiveSchema: z.ZodObject<{
|
|
14
|
+
active: z.ZodBoolean;
|
|
15
|
+
lastChangedAt: z.ZodNumber;
|
|
16
|
+
}>;
|
|
17
|
+
export type GroupActive = z.infer<typeof GroupActiveSchema>;
|
|
18
|
+
export declare const groupActiveCapability: {
|
|
19
|
+
readonly name: 'group-active';
|
|
20
|
+
readonly scope: 'device';
|
|
21
|
+
readonly deviceNative: true;
|
|
22
|
+
readonly mode: 'singleton';
|
|
23
|
+
readonly deviceTypes: readonly [DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat];
|
|
24
|
+
readonly methods: {};
|
|
25
|
+
readonly status: {
|
|
26
|
+
readonly schema: z.ZodObject<{
|
|
27
|
+
active: z.ZodBoolean;
|
|
28
|
+
lastChangedAt: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
readonly kind: 'push';
|
|
31
|
+
};
|
|
32
|
+
readonly runtimeState: z.ZodObject<{
|
|
33
|
+
active: z.ZodBoolean;
|
|
34
|
+
lastChangedAt: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
/**
|
|
37
|
+
* Runtime-state durability: **session** — recomputed from the members on the
|
|
38
|
+
* next source event; a restored value would outlive the members it named.
|
|
39
|
+
*
|
|
40
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
41
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
42
|
+
*/
|
|
43
|
+
readonly durability: 'session';
|
|
44
|
+
readonly history: 'none';
|
|
45
|
+
};
|
|
46
|
+
export type IGroupActiveProvider = InferProvider<typeof groupActiveCapability>;
|
|
@@ -25,7 +25,7 @@ export declare const groupCommandsCapability: {
|
|
|
25
25
|
readonly scope: 'device';
|
|
26
26
|
readonly deviceNative: true;
|
|
27
27
|
readonly mode: 'singleton';
|
|
28
|
-
readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Light];
|
|
28
|
+
readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate];
|
|
29
29
|
readonly methods: {};
|
|
30
30
|
readonly status: {
|
|
31
31
|
readonly schema: z.ZodObject<{
|
|
@@ -18,7 +18,7 @@ export declare const groupStatusCapability: {
|
|
|
18
18
|
readonly scope: 'device';
|
|
19
19
|
readonly deviceNative: true;
|
|
20
20
|
readonly mode: 'singleton';
|
|
21
|
-
readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light];
|
|
21
|
+
readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate];
|
|
22
22
|
readonly methods: {};
|
|
23
23
|
readonly status: {
|
|
24
24
|
readonly schema: z.ZodObject<{
|
|
@@ -186,6 +186,7 @@ export { type FeatureProbeStatus, FeatureProbeStatusSchema, featureProbeCapabili
|
|
|
186
186
|
export { type FloodStatus, FloodStatusSchema, floodCapability, type IFloodProvider, } from './flood.cap.js';
|
|
187
187
|
export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } from './gas.cap.js';
|
|
188
188
|
export { type GroupCommandResult, GroupCommandResultSchema, type GroupCommands, GroupCommandsSchema, groupCommandsCapability, type IGroupCommandsProvider, } from './group-commands.cap.js';
|
|
189
|
+
export { type GroupActive, GroupActiveSchema, groupActiveCapability, type IGroupActiveProvider, } from './group-active.cap.js';
|
|
189
190
|
export { type GroupStatus, GroupStatusSchema, groupStatusCapability, type IGroupStatusProvider, } from './group-status.cap.js';
|
|
190
191
|
export { type HeatingValveStatus, HeatingValveStatusSchema, heatingValveCapability, type IHeatingValveProvider, } from './heating-valve.cap.js';
|
|
191
192
|
export { type HumidifierStatus, HumidifierStatusSchema, humidifierCapability, type IHumidifierProvider, } from './humidifier.cap.js';
|
|
@@ -339,6 +340,7 @@ import type { featureProbeCapability } from './feature-probe.cap.js';
|
|
|
339
340
|
import type { filesystemBrowseCapability } from './filesystem-browse.cap.js';
|
|
340
341
|
import type { floodCapability } from './flood.cap.js';
|
|
341
342
|
import type { gasCapability } from './gas.cap.js';
|
|
343
|
+
import type { groupActiveCapability } from './group-active.cap.js';
|
|
342
344
|
import type { groupCommandsCapability } from './group-commands.cap.js';
|
|
343
345
|
import type { groupStatusCapability } from './group-status.cap.js';
|
|
344
346
|
import type { heatingValveCapability } from './heating-valve.cap.js';
|
|
@@ -443,6 +445,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
|
443
445
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
444
446
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
445
447
|
import type { zonesCapability } from './zones.cap.js';
|
|
446
|
-
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 storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | 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 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 connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | 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 groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | 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 integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | 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 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;
|
|
448
|
+
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 storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | 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 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 connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | 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 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 integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | 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 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;
|
|
447
449
|
export type CapabilityName = AnyCapability['name'];
|
|
448
450
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -54,6 +54,7 @@ export declare const lockControlCapability: {
|
|
|
54
54
|
readonly unlock: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
55
55
|
deviceId: z.ZodNumber;
|
|
56
56
|
code: z.ZodOptional<z.ZodString>;
|
|
57
|
+
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
57
58
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
58
59
|
readonly open: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
59
60
|
deviceId: z.ZodNumber;
|
|
@@ -1616,6 +1616,7 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1616
1616
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
1617
1617
|
}, z.core.$strip>>;
|
|
1618
1618
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
1619
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
1619
1620
|
}, z.core.$strip>;
|
|
1620
1621
|
export type NcRuleInput = z.infer<typeof NcRuleInputSchema>;
|
|
1621
1622
|
/**
|
|
@@ -1789,6 +1790,7 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1789
1790
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
1790
1791
|
}, z.core.$strip>>>;
|
|
1791
1792
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1793
|
+
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1792
1794
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1793
1795
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1794
1796
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -2194,6 +2196,7 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
2194
2196
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
2195
2197
|
}, z.core.$strip>>>;
|
|
2196
2198
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2199
|
+
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2197
2200
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2198
2201
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2199
2202
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -2775,6 +2778,7 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
2775
2778
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
2776
2779
|
}, z.core.$strip>>;
|
|
2777
2780
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
2781
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
2778
2782
|
id: z.ZodString;
|
|
2779
2783
|
createdBy: z.ZodString;
|
|
2780
2784
|
createdAt: z.ZodNumber;
|
|
@@ -4933,6 +4937,7 @@ export declare const notificationRulesCapability: {
|
|
|
4933
4937
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
4934
4938
|
}, z.core.$strip>>;
|
|
4935
4939
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
4940
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
4936
4941
|
id: z.ZodString;
|
|
4937
4942
|
createdBy: z.ZodString;
|
|
4938
4943
|
createdAt: z.ZodNumber;
|
|
@@ -5306,6 +5311,7 @@ export declare const notificationRulesCapability: {
|
|
|
5306
5311
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
5307
5312
|
}, z.core.$strip>>;
|
|
5308
5313
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
5314
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
5309
5315
|
id: z.ZodString;
|
|
5310
5316
|
createdBy: z.ZodString;
|
|
5311
5317
|
createdAt: z.ZodNumber;
|
|
@@ -5677,6 +5683,7 @@ export declare const notificationRulesCapability: {
|
|
|
5677
5683
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
5678
5684
|
}, z.core.$strip>>;
|
|
5679
5685
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
5686
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
5680
5687
|
}, z.core.$strip>;
|
|
5681
5688
|
}, z.core.$strip>, z.ZodObject<{
|
|
5682
5689
|
rule: z.ZodObject<{
|
|
@@ -6042,6 +6049,7 @@ export declare const notificationRulesCapability: {
|
|
|
6042
6049
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
6043
6050
|
}, z.core.$strip>>;
|
|
6044
6051
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
6052
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
6045
6053
|
id: z.ZodString;
|
|
6046
6054
|
createdBy: z.ZodString;
|
|
6047
6055
|
createdAt: z.ZodNumber;
|
|
@@ -6215,6 +6223,7 @@ export declare const notificationRulesCapability: {
|
|
|
6215
6223
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
6216
6224
|
}, z.core.$strip>>>;
|
|
6217
6225
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
6226
|
+
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
6218
6227
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6219
6228
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
6220
6229
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -6794,6 +6803,7 @@ export declare const notificationRulesCapability: {
|
|
|
6794
6803
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
6795
6804
|
}, z.core.$strip>>;
|
|
6796
6805
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
6806
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
6797
6807
|
id: z.ZodString;
|
|
6798
6808
|
createdBy: z.ZodString;
|
|
6799
6809
|
createdAt: z.ZodNumber;
|
|
@@ -7358,6 +7368,7 @@ export declare const notificationRulesCapability: {
|
|
|
7358
7368
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
7359
7369
|
}, z.core.$strip>>;
|
|
7360
7370
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
7371
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
7361
7372
|
}, z.core.$strip>;
|
|
7362
7373
|
lookbackMinutes: z.ZodDefault<z.ZodNumber>;
|
|
7363
7374
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7748,6 +7759,7 @@ export declare const notificationRulesCapability: {
|
|
|
7748
7759
|
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
7749
7760
|
}, z.core.$strip>>;
|
|
7750
7761
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
7762
|
+
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
7751
7763
|
}, z.core.$strip>;
|
|
7752
7764
|
}, z.core.$strip>, z.ZodObject<{
|
|
7753
7765
|
empty: z.ZodBoolean;
|
|
@@ -18,7 +18,7 @@ export declare const switchCapability: {
|
|
|
18
18
|
readonly scope: 'device';
|
|
19
19
|
readonly deviceNative: true;
|
|
20
20
|
readonly mode: 'singleton';
|
|
21
|
-
readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Siren, DeviceType.Light];
|
|
21
|
+
readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan];
|
|
22
22
|
readonly methods: {
|
|
23
23
|
readonly setState: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
24
24
|
deviceId: z.ZodNumber;
|