@camstack/types 1.2.535 → 1.2.537

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 (45) hide show
  1. package/CHANGELOG.md +18 -9
  2. package/dist/addon.d.ts +1 -0
  3. package/dist/addon.js +5 -4
  4. package/dist/addon.mjs +3 -3
  5. package/dist/automation/action.d.ts +105 -0
  6. package/dist/automation/index.d.ts +1 -0
  7. package/dist/automation/recipe.d.ts +450 -6
  8. package/dist/automation/scheduler.d.ts +208 -0
  9. package/dist/automation/step-condition.d.ts +19 -0
  10. package/dist/automation/step-runner.d.ts +50 -5
  11. package/dist/automation/trace.d.ts +129 -0
  12. package/dist/capabilities/action-source.cap.d.ts +52 -0
  13. package/dist/capabilities/actions.cap.d.ts +406 -0
  14. package/dist/capabilities/core-blocks.cap.d.ts +3782 -120
  15. package/dist/capabilities/device-manager.cap.d.ts +97 -0
  16. package/dist/capabilities/fan-presets.cap.d.ts +312 -0
  17. package/dist/capabilities/hero-layout.cap.d.ts +12 -0
  18. package/dist/capabilities/index.d.ts +1 -1
  19. package/dist/capabilities/schedulers.cap.d.ts +458 -0
  20. package/dist/capabilities/timed-run.cap.d.ts +5 -0
  21. package/dist/client.d.ts +1 -1
  22. package/dist/client.js +45 -8
  23. package/dist/client.mjs +45 -9
  24. package/dist/{device-type-BfvqqzRp.js → composed-stable-id-C3J6LxC9.js} +14 -0
  25. package/dist/{device-type-DTTZKB2I.mjs → composed-stable-id-DLcPInGv.mjs} +9 -1
  26. package/dist/composition/composed-stable-id.d.ts +6 -0
  27. package/dist/composition/composition.d.ts +2 -2
  28. package/dist/{composition-C6TZGqUb.mjs → composition-BFJq1Y88.mjs} +2 -4
  29. package/dist/{composition-BxalDSTt.js → composition-BcVAbtBc.js} +4 -12
  30. package/dist/device/container-primary-child.d.ts +37 -5
  31. package/dist/device/device-context.d.ts +9 -2
  32. package/dist/device/hero/hero-model.d.ts +2 -0
  33. package/dist/device/hero/hero-row.d.ts +33 -2
  34. package/dist/expression/device-template.d.ts +80 -19
  35. package/dist/generated/addon-api.d.ts +14 -0
  36. package/dist/generated/method-access-map.d.ts +1 -1
  37. package/dist/generated/system-proxy.d.ts +1 -1
  38. package/dist/index.d.ts +4 -3
  39. package/dist/index.js +1564 -1024
  40. package/dist/index.mjs +705 -178
  41. package/dist/node.js +6 -6
  42. package/dist/node.mjs +2 -2
  43. package/dist/{sleep-DnVqHJc4.mjs → sleep-B36hHDDz.mjs} +1 -1
  44. package/dist/{sleep-CCAQ_PEp.js → sleep-DIg2Mx82.js} +36 -36
  45. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.537] - 2026-11-09
11
+
12
+ ### Changed
13
+
14
+ - Renaming a composed device keeps the new name after a restart.
15
+ - Renaming a composed device keeps the new name after a restart, whether the rename was made on the device page or in the composition editor.
16
+ - A device type can declare which child it stands for; a heat pump stands for itself, so its hero stays its own
17
+ - The heat pump hero shows the instantaneous COP as — when thermal or electrical power is unknown
18
+ - Choosing the child a device stands for requires that device's type
19
+
20
+ ## [1.2.536] - 2026-11-09
21
+
22
+ ### Added
23
+
24
+ - Action step arguments may carry device value templates, rendered at run time
25
+ - An action step can carry an if condition and an else list; a state that cannot be read runs neither side
26
+ - A device row shows a running timed run, with the time left and Run or Stop.
27
+
10
28
  ## [1.2.535] - 2026-11-09
11
29
 
12
30
  ### Changed
@@ -38,21 +56,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
38
56
  ### Changed
39
57
 
40
58
  - Removed the unused claimAction from the account-sign-in config field.
41
- ### Changed
42
-
43
-
44
59
  ## [1.2.532] - 2026-11-09
45
60
 
46
61
  ### Changed
47
62
 
48
63
  - A calendar names the integration-instances record that owns it (calendar-source CalendarInfo.instanceId, passed through the calendars listing)
49
64
  - Remote: an infrared source may leave its emitter out (the remote's default one is used), the power mode setting is gone, and the colour keys have one set of roles
50
- ### Changed
51
-
52
-
53
- ### Removed
54
-
55
-
56
65
  ## [1.2.531] - 2026-11-08
57
66
 
58
67
  ### Changed
package/dist/addon.d.ts CHANGED
@@ -40,6 +40,7 @@ export { deviceOpsCapability } from './capabilities/device-ops.cap.js';
40
40
  export type { IViewerUiProvider } from './capabilities/viewer-ui.cap.js';
41
41
  export { viewerUiCapability } from './capabilities/viewer-ui.cap.js';
42
42
  export { DEVICE_CHILDREN_BATCH_MAX } from './device/children-batch-max.js';
43
+ export { COMPOSED_DEVICE_STABLE_ID_PREFIX } from './composition/composed-stable-id.js';
43
44
  export { DeviceType } from './device/device-type.js';
44
45
  export { collectZodSecretPaths, isZodSecret } from './device/zod-secret.js';
45
46
  export { DisposerChain } from './disposer-chain.js';
package/dist/addon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CCAQ_PEp.js");
2
+ const require_sleep = require("./sleep-DIg2Mx82.js");
3
3
  const require_event_category = require("./event-category-BC4RRerT.js");
4
- const require_device_type = require("./device-type-BfvqqzRp.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
7
7
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -508,12 +508,13 @@ exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
508
508
  exports.CAP_METHOD_TIMEOUTS_MS = require_sleep.CAP_METHOD_TIMEOUTS_MS;
509
509
  exports.CAP_STATE_LEAVES = require_sleep.CAP_STATE_LEAVES;
510
510
  exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
511
+ exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX;
511
512
  exports.CommandOriginClaimSchema = require_sleep.CommandOriginClaimSchema;
512
513
  exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
513
514
  exports.DEVICE_CHILDREN_BATCH_MAX = require_sleep.DEVICE_CHILDREN_BATCH_MAX;
514
515
  exports.DEVICE_SCOPED_CAPS = require_sleep.DEVICE_SCOPED_CAPS;
515
516
  exports.DeclarationRefusedError = require_sleep.DeclarationRefusedError;
516
- exports.DeviceType = require_device_type.DeviceType;
517
+ exports.DeviceType = require_composed_stable_id.DeviceType;
517
518
  exports.DisposerChain = require_sleep.DisposerChain;
518
519
  exports.EntryDescriptorSchema = require_sleep.EntryDescriptorSchema;
519
520
  exports.ErrorI18nPayloadSchema = require_sleep.ErrorI18nPayloadSchema;
@@ -601,7 +602,7 @@ exports.describeCustomActions = require_sleep.describeCustomActions;
601
602
  exports.deviceOpsCapability = require_sleep.deviceOpsCapability;
602
603
  exports.emitReadiness = require_sleep.emitReadiness;
603
604
  exports.entryBody = require_sleep.entryBody;
604
- exports.errMsg = require_device_type.errMsg;
605
+ exports.errMsg = require_composed_stable_id.errMsg;
605
606
  exports.expandCapMethods = require_sleep.expandCapMethods;
606
607
  exports.findMigrationsBlocked = require_sleep.findMigrationsBlocked;
607
608
  exports.forgetKnownSecret = require_sleep.forgetKnownSecret;
package/dist/addon.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as RECORD_DELETE_BATCH, A as CAP_ADVANCE_FIELDS, Ai as RecordUniqueViolationError, Ar as resolvedValues, Bn as StoredRecordKindDeclarationSchema, Br as REMOVE_LEAF, Ci as InvalidRecordError, Cn as PEER_BYTES_CHUNK_BYTES, Ct as createDebugEmitter, Di as RecordNotFoundError, Dr as SCOPED_SETTINGS_SCOPES, Ei as RECORDS_ERROR_CODES, En as PEER_BYTES_TICKET_TTL_MS, F as withoutCallerStamp, Fi as UnknownRecordKindError, Fn as RecordFieldPathSchema, G as readNodePin, Gn as collectZodSecretPaths, Gr as recordSecretCollection, H as commandOrigin, Hn as declarationsOf, Hr as mapSecretLeaves, I as customAction, Ii as asRecordsError, In as RecordIndexSchema, J as PipelineRunResultBridge, Ji as emitReadiness, Jr as RECORD_BATCH_MAX, Kn as isZodSecret, Kr as recordSecretRef, L as defineCustomActions, Li as recordsErrorFromMessage, Ln as RecordKindDeclarationSchema, Mi as RevConflictError, Mn as defineEntryKind, N as CAP_STATE_LEAVES, Ni as TransactRefusedError, Nn as entryBody, O as HF_REPO, Oi as RecordSecretUnavailableError, On as CALLER_USERNAME_HEADER, Or as nodeIdOfScopedKey, P as CALLER_STAMPED_CAPABILITIES, Pi as UnindexedFilterError, Pn as EntryDescriptorSchema, Q as deviceOpsCapability, Qr as RECORD_DEFAULT_MAX_DATA_BYTES, R as describeCustomActions, Rn as RecordKindNameSchema, Si as ForeignSecretMarkerError, Sn as shortSecretRefHash, T as isCommand, Ti as PlaintextSecretError, Tn as PEER_BYTES_STALL_MS, U as nodePin, Un as defineRecordKinds, Ur as parseSecretPath, Vn as assertValidDeclaration, Vr as collectSecretLeaves, W as readCommandOrigin, Wr as recordArrayItemPath, X as MIGRATION_API_VERSION, Xr as RECORD_CLASSES, Y as PipelineStepInputSchema, Yr as RECORD_BATCH_MAX_BYTES, Zr as RECORD_DATABASES, _n as clearKnownSecrets, _r as normalizeAddonInitResult, aa as classifySecretWrite, ai as RECORD_SECRET_COLLECTION_PREFIX, ba as findMigrationsBlocked, bi as DeclarationRefusedError, bn as registerKnownSecret, c as asString, ca as isSecretMarker, ci as SECRET_REF_SCHEME, d as parseJsonUnknown, da as toSecretFieldView, di as formatSecretScope, dn as createRecordsAccess, dt as ReadinessRegistry, ei as RECORD_ID_MAX_LENGTH, er as expandCapMethods, et as adminUiCapability, f as hfModelUrl, fi as globalSecretScope, fn as assertTransactScope, fr as readErrorI18n, ft as ReadinessTimeoutError, g as createDeviceProxy, gn as MIN_SCRUBBED_LENGTH, h as isDeviceScopedCap, hi as parseSecretRef, hn as createSecretsAccess, ht as scopeKey, ia as SECRET_CLEAR, ii as RECORD_QUERY_MAX, j as CAP_METHOD_TIMEOUTS_MS, ji as RecordsError, jn as DisposerChain, ki as RecordTooLargeError, kn as DATAPLANE_SECRET_HEADER, kr as resolveDeviceSettings, la as isSecretMarkerLike, li as arrayItemFieldPath, ln as CommandOriginClaimSchema, lr as ErrorI18nPayloadSchema, m as DEVICE_SCOPED_CAPS, mi as normalizeSecretOwner, mn as REVALIDATE_AFTER_MS, mr as BaseAddon, ni as RECORD_MAX_INDEXES, nt as addonPagesSourceCapability, o as asJsonObject, oa as isSecretClear, oi as RECORD_SETTINGS_MAX_ROWS, p as BOOT_RECOVERY_BACKOFF_MS, pi as isSecretRef, pn as resolveSecretViewsIn, q as viewerUiCapability, qi as createEvent, qr as secretArrayPrefixes, r as maskUrlCredentials, ri as RECORD_MAX_INDEX_FIELDS, sa as isSecretFieldView, si as RECORD_SWEEP_INTERVAL_MS, t as sleep, ti as RECORD_MAX_DATA_BYTES, ua as makeSecretMarker, ui as buildSecretRef, un as makeInMemoryRecords, ut as MODEL_FORMATS, v as addonSliceHandleApi, vn as forgetKnownSecret, wi as NoCallerError, wn as PEER_BYTES_MAX_OUTSTANDING, xi as FilterRequiredError, xn as scrubKnownSecrets, y as createEventBusSliceSource, ya as AddonMigrationsBlockedError, yi as BatchTooLargeError, yn as knownSecretCount, zn as RecordRetentionSchema, zr as secretViewsOf } from "./sleep-DnVqHJc4.mjs";
1
+ import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as RECORD_DELETE_BATCH, A as CAP_ADVANCE_FIELDS, Ai as RecordUniqueViolationError, Ar as resolvedValues, Bn as StoredRecordKindDeclarationSchema, Br as REMOVE_LEAF, Ci as InvalidRecordError, Cn as PEER_BYTES_CHUNK_BYTES, Ct as createDebugEmitter, Di as RecordNotFoundError, Dr as SCOPED_SETTINGS_SCOPES, Ei as RECORDS_ERROR_CODES, En as PEER_BYTES_TICKET_TTL_MS, F as withoutCallerStamp, Fi as UnknownRecordKindError, Fn as RecordFieldPathSchema, G as readNodePin, Gn as collectZodSecretPaths, Gr as recordSecretCollection, H as commandOrigin, Hn as declarationsOf, Hr as mapSecretLeaves, I as customAction, Ii as asRecordsError, In as RecordIndexSchema, J as PipelineRunResultBridge, Ji as emitReadiness, Jr as RECORD_BATCH_MAX, Kn as isZodSecret, Kr as recordSecretRef, L as defineCustomActions, Li as recordsErrorFromMessage, Ln as RecordKindDeclarationSchema, Mi as RevConflictError, Mn as defineEntryKind, N as CAP_STATE_LEAVES, Ni as TransactRefusedError, Nn as entryBody, O as HF_REPO, Oi as RecordSecretUnavailableError, On as CALLER_USERNAME_HEADER, Or as nodeIdOfScopedKey, P as CALLER_STAMPED_CAPABILITIES, Pi as UnindexedFilterError, Pn as EntryDescriptorSchema, Q as deviceOpsCapability, Qr as RECORD_DEFAULT_MAX_DATA_BYTES, R as describeCustomActions, Rn as RecordKindNameSchema, Si as ForeignSecretMarkerError, Sn as shortSecretRefHash, T as isCommand, Ti as PlaintextSecretError, Tn as PEER_BYTES_STALL_MS, U as nodePin, Un as defineRecordKinds, Ur as parseSecretPath, Vn as assertValidDeclaration, Vr as collectSecretLeaves, W as readCommandOrigin, Wr as recordArrayItemPath, X as MIGRATION_API_VERSION, Xr as RECORD_CLASSES, Y as PipelineStepInputSchema, Yr as RECORD_BATCH_MAX_BYTES, Zr as RECORD_DATABASES, _n as clearKnownSecrets, _r as normalizeAddonInitResult, aa as classifySecretWrite, ai as RECORD_SECRET_COLLECTION_PREFIX, ba as findMigrationsBlocked, bi as DeclarationRefusedError, bn as registerKnownSecret, c as asString, ca as isSecretMarker, ci as SECRET_REF_SCHEME, d as parseJsonUnknown, da as toSecretFieldView, di as formatSecretScope, dn as createRecordsAccess, dt as ReadinessRegistry, ei as RECORD_ID_MAX_LENGTH, er as expandCapMethods, et as adminUiCapability, f as hfModelUrl, fi as globalSecretScope, fn as assertTransactScope, fr as readErrorI18n, ft as ReadinessTimeoutError, g as createDeviceProxy, gn as MIN_SCRUBBED_LENGTH, h as isDeviceScopedCap, hi as parseSecretRef, hn as createSecretsAccess, ht as scopeKey, ia as SECRET_CLEAR, ii as RECORD_QUERY_MAX, j as CAP_METHOD_TIMEOUTS_MS, ji as RecordsError, jn as DisposerChain, ki as RecordTooLargeError, kn as DATAPLANE_SECRET_HEADER, kr as resolveDeviceSettings, la as isSecretMarkerLike, li as arrayItemFieldPath, ln as CommandOriginClaimSchema, lr as ErrorI18nPayloadSchema, m as DEVICE_SCOPED_CAPS, mi as normalizeSecretOwner, mn as REVALIDATE_AFTER_MS, mr as BaseAddon, ni as RECORD_MAX_INDEXES, nt as addonPagesSourceCapability, o as asJsonObject, oa as isSecretClear, oi as RECORD_SETTINGS_MAX_ROWS, p as BOOT_RECOVERY_BACKOFF_MS, pi as isSecretRef, pn as resolveSecretViewsIn, q as viewerUiCapability, qi as createEvent, qr as secretArrayPrefixes, r as maskUrlCredentials, ri as RECORD_MAX_INDEX_FIELDS, sa as isSecretFieldView, si as RECORD_SWEEP_INTERVAL_MS, t as sleep, ti as RECORD_MAX_DATA_BYTES, ua as makeSecretMarker, ui as buildSecretRef, un as makeInMemoryRecords, ut as MODEL_FORMATS, v as addonSliceHandleApi, vn as forgetKnownSecret, wi as NoCallerError, wn as PEER_BYTES_MAX_OUTSTANDING, xi as FilterRequiredError, xn as scrubKnownSecrets, y as createEventBusSliceSource, ya as AddonMigrationsBlockedError, yi as BatchTooLargeError, yn as knownSecretCount, zn as RecordRetentionSchema, zr as secretViewsOf } from "./sleep-B36hHDDz.mjs";
2
2
  import { t as EventCategory } from "./event-category-78tcBemo.mjs";
3
- import { i as DeviceType, o as errMsg } from "./device-type-DTTZKB2I.mjs";
3
+ import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-DLcPInGv.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
6
6
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -496,4 +496,4 @@ function isProviderOptionalMethodName(capName, method) {
496
496
  return methods !== void 0 && methods.includes(method);
497
497
  }
498
498
  //#endregion
499
- export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
499
+ export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
@@ -84,6 +84,32 @@ export declare const ActionEntrySchema: z.ZodObject<{
84
84
  steps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
85
85
  kind: z.ZodLiteral<"wait">;
86
86
  seconds: z.ZodNumber;
87
+ if: z.ZodOptional<z.ZodType<import("./when.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("./when.js").AutomationWhen, unknown>>>;
88
+ else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ kind: z.ZodLiteral<"wait">;
90
+ seconds: z.ZodNumber;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ kind: z.ZodLiteral<"cap">;
93
+ actionId: z.ZodOptional<z.ZodString>;
94
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
95
+ kind: z.ZodLiteral<"devices">;
96
+ ids: z.ZodArray<z.ZodNumber>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"domain">;
99
+ deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
100
+ roomId: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ kind: z.ZodLiteral<"var">;
103
+ name: z.ZodString;
104
+ }, z.core.$strip>], "kind">>;
105
+ deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
106
+ $var: z.ZodString;
107
+ }, z.core.$strip>]>>;
108
+ cap: z.ZodString;
109
+ method: z.ZodString;
110
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
+ argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112
+ }, z.core.$strip>], "kind">>>;
87
113
  }, z.core.$strip>, z.ZodObject<{
88
114
  kind: z.ZodLiteral<"cap">;
89
115
  actionId: z.ZodOptional<z.ZodString>;
@@ -105,6 +131,32 @@ export declare const ActionEntrySchema: z.ZodObject<{
105
131
  method: z.ZodString;
106
132
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
133
  argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
134
+ if: z.ZodOptional<z.ZodType<import("./when.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("./when.js").AutomationWhen, unknown>>>;
135
+ else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ kind: z.ZodLiteral<"wait">;
137
+ seconds: z.ZodNumber;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"cap">;
140
+ actionId: z.ZodOptional<z.ZodString>;
141
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
142
+ kind: z.ZodLiteral<"devices">;
143
+ ids: z.ZodArray<z.ZodNumber>;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"domain">;
146
+ deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
147
+ roomId: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ kind: z.ZodLiteral<"var">;
150
+ name: z.ZodString;
151
+ }, z.core.$strip>], "kind">>;
152
+ deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
153
+ $var: z.ZodString;
154
+ }, z.core.$strip>]>>;
155
+ cap: z.ZodString;
156
+ method: z.ZodString;
157
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
159
+ }, z.core.$strip>], "kind">>>;
108
160
  }, z.core.$strip>], "kind">>>;
109
161
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
162
  name: z.ZodString;
@@ -132,6 +184,32 @@ export declare const ActionInputSchema: z.ZodObject<{
132
184
  steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
133
185
  kind: z.ZodLiteral<"wait">;
134
186
  seconds: z.ZodNumber;
187
+ if: z.ZodOptional<z.ZodType<import("./when.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("./when.js").AutomationWhen, unknown>>>;
188
+ else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
189
+ kind: z.ZodLiteral<"wait">;
190
+ seconds: z.ZodNumber;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ kind: z.ZodLiteral<"cap">;
193
+ actionId: z.ZodOptional<z.ZodString>;
194
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ kind: z.ZodLiteral<"devices">;
196
+ ids: z.ZodArray<z.ZodNumber>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ kind: z.ZodLiteral<"domain">;
199
+ deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
200
+ roomId: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ kind: z.ZodLiteral<"var">;
203
+ name: z.ZodString;
204
+ }, z.core.$strip>], "kind">>;
205
+ deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
206
+ $var: z.ZodString;
207
+ }, z.core.$strip>]>>;
208
+ cap: z.ZodString;
209
+ method: z.ZodString;
210
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
211
+ argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
212
+ }, z.core.$strip>], "kind">>>;
135
213
  }, z.core.$strip>, z.ZodObject<{
136
214
  kind: z.ZodLiteral<"cap">;
137
215
  actionId: z.ZodOptional<z.ZodString>;
@@ -153,6 +231,32 @@ export declare const ActionInputSchema: z.ZodObject<{
153
231
  method: z.ZodString;
154
232
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
155
233
  argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
234
+ if: z.ZodOptional<z.ZodType<import("./when.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("./when.js").AutomationWhen, unknown>>>;
235
+ else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
236
+ kind: z.ZodLiteral<"wait">;
237
+ seconds: z.ZodNumber;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"cap">;
240
+ actionId: z.ZodOptional<z.ZodString>;
241
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ kind: z.ZodLiteral<"devices">;
243
+ ids: z.ZodArray<z.ZodNumber>;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ kind: z.ZodLiteral<"domain">;
246
+ deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
247
+ roomId: z.ZodOptional<z.ZodString>;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ kind: z.ZodLiteral<"var">;
250
+ name: z.ZodString;
251
+ }, z.core.$strip>], "kind">>;
252
+ deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
253
+ $var: z.ZodString;
254
+ }, z.core.$strip>]>>;
255
+ cap: z.ZodString;
256
+ method: z.ZodString;
257
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
+ argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
259
+ }, z.core.$strip>], "kind">>>;
156
260
  }, z.core.$strip>], "kind">>;
157
261
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
262
  name: z.ZodString;
@@ -209,6 +313,7 @@ export declare const ActionErrorCodeSchema: z.ZodEnum<{
209
313
  "not-found": "not-found";
210
314
  "not-linked": "not-linked";
211
315
  "read-only": "read-only";
316
+ "template-scope": "template-scope";
212
317
  }>;
213
318
  export type ActionErrorCode = z.infer<typeof ActionErrorCodeSchema>;
214
319
  /**
@@ -33,6 +33,7 @@ export { anySubjectMatches, DETECTION_LABEL_SOURCES, DetectionSubjectSchema, des
33
33
  export * from './action.js';
34
34
  export * from './action-target.js';
35
35
  export * from './nc-action-target.js';
36
+ export * from './step-condition.js';
36
37
  export * from './step-runner.js';
37
38
  export { UnitWarningSchema, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, } from './normalize-units.js';
38
39
  export type { UnitResolver, UnitWarning, UnitsNormalized } from './normalize-units.js';