@camstack/types 1.2.423 → 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.
Files changed (46) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/composer.cap.d.ts +6 -0
  4. package/dist/capabilities/core-blocks.cap.d.ts +43 -0
  5. package/dist/capabilities/group-active.cap.d.ts +46 -0
  6. package/dist/capabilities/group-commands.cap.d.ts +1 -1
  7. package/dist/capabilities/group-status.cap.d.ts +1 -1
  8. package/dist/capabilities/index.d.ts +3 -1
  9. package/dist/capabilities/lock-control.cap.d.ts +1 -0
  10. package/dist/capabilities/switch.cap.d.ts +1 -1
  11. package/dist/client.js +3 -0
  12. package/dist/client.mjs +3 -0
  13. package/dist/composition/composition-report.d.ts +2 -0
  14. package/dist/composition/composition.d.ts +9 -0
  15. package/dist/composition/helpers/actuator-methods.d.ts +39 -0
  16. package/dist/composition/helpers/aggregate.d.ts +2 -0
  17. package/dist/composition/helpers/catalog.d.ts +7 -1
  18. package/dist/composition/helpers/compile-history.d.ts +16 -1
  19. package/dist/composition/helpers/compile-math.d.ts +9 -0
  20. package/dist/composition/helpers/history-math.d.ts +8 -0
  21. package/dist/composition/helpers/index.d.ts +6 -4
  22. package/dist/composition/helpers/source-pick.d.ts +8 -1
  23. package/dist/composition/helpers/spec.d.ts +49 -3
  24. package/dist/{composition-CpETZ4HL.mjs → composition-Bb8iwHEJ.mjs} +175 -5
  25. package/dist/{composition-CPRAP41h.js → composition-CpAc0YfQ.js} +228 -4
  26. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  27. package/dist/expression/builtins.d.ts +11 -2
  28. package/dist/expression/expression-source.d.ts +6 -1
  29. package/dist/generated/addon-api.d.ts +14 -0
  30. package/dist/generated/addon-cap-facts.d.ts +1 -1
  31. package/dist/generated/cap-status-types.d.ts +3 -1
  32. package/dist/generated/capability-router-map.d.ts +5 -2
  33. package/dist/generated/device-local-state.d.ts +3 -0
  34. package/dist/generated/device-proxy.d.ts +3 -0
  35. package/dist/generated/device-scoped-caps.d.ts +1 -1
  36. package/dist/generated/history-catalog.d.ts +1 -1
  37. package/dist/generated/method-access-map.d.ts +1 -1
  38. package/dist/generated/method-device-selectors.d.ts +1 -1
  39. package/dist/generated/runtime-state-durability.d.ts +1 -1
  40. package/dist/index.js +634 -33
  41. package/dist/index.mjs +611 -34
  42. package/dist/node.js +1 -1
  43. package/dist/node.mjs +1 -1
  44. package/dist/{sleep-0sD_LHLI.mjs → sleep--jXS9hWo.mjs} +10 -1
  45. package/dist/{sleep-CEKGW7A5.js → sleep-edKiOXLo.js} +10 -1
  46. 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-CEKGW7A5.js");
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-0sD_LHLI.mjs";
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;
@@ -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;
package/dist/client.js CHANGED
@@ -26847,6 +26847,7 @@ function createDeviceProxy(api, binding, opts) {
26847
26847
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
26848
26848
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
26849
26849
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
26850
+ const groupActiveInterface = { getStatus: (input) => dispatch("group-active", "groupActive", "getStatus", "query", input) };
26850
26851
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
26851
26852
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
26852
26853
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
@@ -27404,6 +27405,7 @@ function createDeviceProxy(api, binding, opts) {
27404
27405
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
27405
27406
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
27406
27407
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
27408
+ groupActive: createSliceHandle(stateSource, binding.deviceId, "group-active"),
27407
27409
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
27408
27410
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
27409
27411
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
@@ -27490,6 +27492,7 @@ function createDeviceProxy(api, binding, opts) {
27490
27492
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
27491
27493
  ...bound("flood") ? { flood: floodInterface } : {},
27492
27494
  ...bound("gas") ? { gas: gasInterface } : {},
27495
+ ...bound("group-active") ? { groupActive: groupActiveInterface } : {},
27493
27496
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
27494
27497
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
27495
27498
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
package/dist/client.mjs CHANGED
@@ -26846,6 +26846,7 @@ function createDeviceProxy(api, binding, opts) {
26846
26846
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
26847
26847
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
26848
26848
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
26849
+ const groupActiveInterface = { getStatus: (input) => dispatch("group-active", "groupActive", "getStatus", "query", input) };
26849
26850
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
26850
26851
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
26851
26852
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
@@ -27403,6 +27404,7 @@ function createDeviceProxy(api, binding, opts) {
27403
27404
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
27404
27405
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
27405
27406
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
27407
+ groupActive: createSliceHandle(stateSource, binding.deviceId, "group-active"),
27406
27408
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
27407
27409
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
27408
27410
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
@@ -27489,6 +27491,7 @@ function createDeviceProxy(api, binding, opts) {
27489
27491
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
27490
27492
  ...bound("flood") ? { flood: floodInterface } : {},
27491
27493
  ...bound("gas") ? { gas: gasInterface } : {},
27494
+ ...bound("group-active") ? { groupActive: groupActiveInterface } : {},
27492
27495
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
27493
27496
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
27494
27497
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
@@ -183,6 +183,7 @@ export declare const CompositionFieldPlanSchema: z.ZodObject<{
183
183
  cap: z.ZodString;
184
184
  fieldPath: z.ZodString;
185
185
  }, z.core.$strip>>;
186
+ activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
187
  publish: z.ZodEnum<{
187
188
  excluded: "excluded";
188
189
  included: "included";
@@ -361,6 +362,7 @@ export declare const CompositionValidationSchema: z.ZodObject<{
361
362
  cap: z.ZodString;
362
363
  fieldPath: z.ZodString;
363
364
  }, z.core.$strip>>;
365
+ activeWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
364
366
  publish: z.ZodEnum<{
365
367
  excluded: "excluded";
366
368
  included: "included";