@camstack/types 1.2.611 → 1.2.612

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 (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/addon.js +2 -2
  3. package/dist/addon.mjs +2 -2
  4. package/dist/automation/action.d.ts +12 -0
  5. package/dist/automation/index.d.ts +2 -2
  6. package/dist/automation/recipe.d.ts +3473 -0
  7. package/dist/automation/scheduler.d.ts +24 -0
  8. package/dist/automation/step-runner.d.ts +4 -0
  9. package/dist/capabilities/action-source.cap.d.ts +6 -0
  10. package/dist/capabilities/actions.cap.d.ts +42 -0
  11. package/dist/capabilities/camera-streams.cap.d.ts +2 -0
  12. package/dist/capabilities/error.cap.d.ts +44 -1
  13. package/dist/capabilities/index.d.ts +1 -1
  14. package/dist/capabilities/notification-rules.cap.d.ts +14 -0
  15. package/dist/capabilities/osd-manager.cap.d.ts +6 -0
  16. package/dist/capabilities/schedulers.cap.d.ts +48 -0
  17. package/dist/capabilities/schemas/streaming-shared.d.ts +1 -0
  18. package/dist/capabilities/stream-broker.cap.d.ts +8 -0
  19. package/dist/capabilities/stream-catalog.cap.d.ts +4 -0
  20. package/dist/client.js +55 -3
  21. package/dist/client.mjs +55 -3
  22. package/dist/device/base-device.d.ts +10 -1
  23. package/dist/enums/event-category.d.ts +8 -0
  24. package/dist/enums.js +2 -1
  25. package/dist/enums.mjs +2 -1
  26. package/dist/{event-category-7P4A3bYA.mjs → event-category-BEsBTS72.mjs} +8 -0
  27. package/dist/{event-category-CMA0-jGW.js → event-category-CbY1jgIP.js} +8 -0
  28. package/dist/generated/addon-api.d.ts +8 -0
  29. package/dist/generated/method-access-map.d.ts +1 -1
  30. package/dist/generated/method-device-selectors.d.ts +1 -1
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +207 -12
  33. package/dist/index.mjs +203 -13
  34. package/dist/interfaces/event-bus.d.ts +11 -0
  35. package/dist/interfaces/stream-broker.d.ts +7 -0
  36. package/dist/notification/alert-episode.d.ts +8 -0
  37. package/dist/notification/system-event-filters.d.ts +1 -1
  38. package/dist/{runtime-capabilities-CK6y0W5U.mjs → runtime-capabilities-CG61dYnO.mjs} +14 -2
  39. package/dist/{runtime-capabilities-1FIC5jNX.js → runtime-capabilities-LaTKVCAw.js} +14 -2
  40. package/package.json +1 -1
package/dist/client.mjs CHANGED
@@ -926,6 +926,15 @@ z.object({
926
926
  */
927
927
  autoEligible: z.boolean().optional(),
928
928
  /**
929
+ * The longest continuous session the SOURCE will keep open, in ms, declared by
930
+ * the provider that knows it (a hub that cuts every child's session on a
931
+ * timer). Absent = no limit. The broker re-dials a live source a little
932
+ * BEFORE this elapses, on its own terms and announced to consumers, so the
933
+ * source's cut never lands mid-recording. Declare slightly under what was
934
+ * observed.
935
+ */
936
+ maxSessionMs: z.number().int().positive().optional(),
937
+ /**
929
938
  * The profile slot the PUBLISHER says this stream is: `low` for a stream
930
939
  * whose only sensible role is the low-bandwidth one, `high` for a main
931
940
  * stream. Consulted by the broker's automatic ranking
@@ -23646,6 +23655,13 @@ var NcSystemEventConditionSchema = z.object({
23646
23655
  * pick from. The hub refuses an id the action index does not know.
23647
23656
  */
23648
23657
  commandActions: z.array(z.string().min(1)).min(1).optional(),
23658
+ /**
23659
+ * `device-attention-*` only: the fault CODES this rule speaks about (the
23660
+ * integration declares them through `error.listFaultTypes`; free text is
23661
+ * accepted too). Absent or empty = any fault. The rule matches when any
23662
+ * fault of the episode is in the list.
23663
+ */
23664
+ faultCodes: z.array(z.string().min(1)).optional(),
23649
23665
  /** `device-command` only: how the command settled. A device's own change is not a command. */
23650
23666
  commandOutcomes: z.array(z.enum([
23651
23667
  "confirmed",
@@ -27923,7 +27939,10 @@ function createDeviceProxy(api, binding, opts) {
27923
27939
  const doorbellInterface = { getStatus: (input, options) => dispatch("doorbell", "doorbell", "getStatus", "query", input, void 0, options) };
27924
27940
  const energySystemInterface = { getStatus: (input, options) => dispatch("energy-system", "energySystem", "getStatus", "query", input, void 0, options) };
27925
27941
  const enumSensorInterface = { getStatus: (input, options) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input, void 0, options) };
27926
- const errorInterface = { getStatus: (input, options) => dispatch("error", "error", "getStatus", "query", input, void 0, options) };
27942
+ const errorInterface = {
27943
+ listFaultTypes: (input, options) => dispatch("error", "error", "listFaultTypes", "query", input, void 0, options),
27944
+ getStatus: (input, options) => dispatch("error", "error", "getStatus", "query", input, void 0, options)
27945
+ };
27927
27946
  const eventEmitterInterface = { getStatus: (input, options) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input, void 0, options) };
27928
27947
  const fanControlInterface = {
27929
27948
  setPercentage: (input, options) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input, void 0, options),
@@ -30641,7 +30660,8 @@ var NC_SYSTEM_EVENT_FILTER_KEYS = [
30641
30660
  "consumableLowPercent",
30642
30661
  "commandActions",
30643
30662
  "commandOutcomes",
30644
- "commandActorKinds"
30663
+ "commandActorKinds",
30664
+ "faultCodes"
30645
30665
  ];
30646
30666
  /**
30647
30667
  * Does `filter` say anything about `kind`?
@@ -30660,6 +30680,7 @@ function systemEventFilterApplies(kind, filter) {
30660
30680
  case "commandActions":
30661
30681
  case "commandOutcomes":
30662
30682
  case "commandActorKinds": return kind === "device-command";
30683
+ case "faultCodes": return kind === "device-attention-required" || kind === "device-attention-resolved";
30663
30684
  }
30664
30685
  }
30665
30686
  /**
@@ -30775,7 +30796,8 @@ var NC_SYSTEM_EVENT_FAMILY_FILTERS = {
30775
30796
  "consumableLowPercent",
30776
30797
  "commandActions",
30777
30798
  "commandOutcomes",
30778
- "commandActorKinds"
30799
+ "commandActorKinds",
30800
+ "faultCodes"
30779
30801
  ],
30780
30802
  system: ["nodeIds", "packageNames"],
30781
30803
  alarm: ["deviceIds"]
@@ -32941,6 +32963,36 @@ var NC_TEMPLATE_VARS = [
32941
32963
  kinds: ["system"],
32942
32964
  systemEventKinds: [...DEVICE_ATTENTION, ...ALERT_EPISODE]
32943
32965
  },
32966
+ {
32967
+ name: "faultCode",
32968
+ label: "Fault code",
32969
+ example: "hb-rf-eth-connection",
32970
+ group: "system",
32971
+ families: ["rule"],
32972
+ fields: [...RULE_TEXT],
32973
+ kinds: ["system"],
32974
+ systemEventKinds: [...DEVICE_ATTENTION]
32975
+ },
32976
+ {
32977
+ name: "faultLabel",
32978
+ label: "Fault",
32979
+ example: "HB-RF-ETH connection lost",
32980
+ group: "system",
32981
+ families: ["rule"],
32982
+ fields: [...RULE_TEXT],
32983
+ kinds: ["system"],
32984
+ systemEventKinds: [...DEVICE_ATTENTION]
32985
+ },
32986
+ {
32987
+ name: "faults",
32988
+ label: "All active faults",
32989
+ example: "HB-RF-ETH connection lost, CCU supply voltage low",
32990
+ group: "system",
32991
+ families: ["rule"],
32992
+ fields: [...RULE_TEXT],
32993
+ kinds: ["system"],
32994
+ systemEventKinds: [...DEVICE_ATTENTION]
32995
+ },
32944
32996
  {
32945
32997
  name: "exportId",
32946
32998
  label: "Export id",
@@ -10,7 +10,7 @@ import { type DeviceLocalState } from '../generated/device-local-state.js';
10
10
  import { type SourceInfo } from './source-info.js';
11
11
  import { type DeclareIdentifiersOptions, type DeclareIdentifiersResult } from './declare-identifiers.js';
12
12
  import type { RawDeviceIdentifiers } from './device-identifiers.js';
13
- import { type ErrorStatus } from '../capabilities/error.cap.js';
13
+ import { type DeviceFaultType, type ErrorStatus } from '../capabilities/error.cap.js';
14
14
  import type { CustomActionSpec } from '../capabilities/custom-actions.js';
15
15
  /**
16
16
  * Who writes a device's base slices (`device-status`, `feature-probe`): the
@@ -23,6 +23,8 @@ export declare abstract class BaseDevice<T extends z.ZodObject<z.core.$ZodLooseS
23
23
  readonly type: DeviceType;
24
24
  /** True when another process owns the base slices (`options.deviceStatus: 'external'`). */
25
25
  private readonly statusIsExternal;
26
+ /** The fault catalog the integration declared; `[]` until it does. */
27
+ private faultTypes;
26
28
  readonly name: string;
27
29
  readonly parentDeviceId: number | null;
28
30
  readonly role?: DeviceRole;
@@ -217,6 +219,13 @@ export declare abstract class BaseDevice<T extends z.ZodObject<z.core.$ZodLooseS
217
219
  * a restart is compared, not announced again.
218
220
  */
219
221
  protected registerErrorCap(): void;
222
+ /**
223
+ * Declare the fault kinds this device's integration can raise (code, label,
224
+ * severity), served by `error.listFaultTypes` so a rule's code picker is
225
+ * offered the integration's own words. The default is `[]`; a fault outside
226
+ * the catalog is still published. Call it before or after `registerErrorCap`.
227
+ */
228
+ protected declareFaultTypes(types: readonly DeviceFaultType[]): void;
220
229
  /**
221
230
  * Publish the device's fault. The slice is written; on an EDGE (a fault
222
231
  * starts, or one resolves) an attention episode opens or closes through the
@@ -443,6 +443,14 @@ export declare enum EventCategory {
443
443
  * Payload: `{ deviceId, camStreamId, brokerId }`.
444
444
  */
445
445
  StreamBrokerOnRequestStreamSourceRefresh = "stream-broker.onRequestStreamSourceRefresh",
446
+ /**
447
+ * A broker RE-DIALED its source (every dial after the first). A consumer that
448
+ * reads the broker over a transport that does not announce the cut — the
449
+ * recorder's ffmpeg writer — learns here instead of through its idle clock.
450
+ * Telemetry: a dropped event only means the idle clock recovers it later.
451
+ * Payload: `{ deviceId, camStreamId, brokerId, reason }`.
452
+ */
453
+ StreamBrokerOnSourceRestart = "stream-broker.onSourceRestart",
446
454
  /**
447
455
  * A camera provider changed a device's stream parameters (codec /
448
456
  * resolution / bitrate / a stream added or removed). A LOW-LATENCY NUDGE
package/dist/enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CMA0-jGW.js");
2
+ const require_event_category = require("./event-category-CbY1jgIP.js");
3
3
  //#region src/enums/event-category-catalog.ts
4
4
  /**
5
5
  * The event-category catalogue: what an operator-facing surface (a picker, the
@@ -143,6 +143,7 @@ var EVENT_CATEGORY_CATALOG = {
143
143
  [require_event_category.EventCategory.StreamBrokerOnCamStreamDemand]: e("streams", "Stream requested", "Stream richiesto"),
144
144
  [require_event_category.EventCategory.StreamBrokerOnCamStreamIdle]: e("streams", "Stream idle", "Stream inattivo"),
145
145
  [require_event_category.EventCategory.StreamBrokerOnRequestStreamSourceRefresh]: e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"),
146
+ [require_event_category.EventCategory.StreamBrokerOnSourceRestart]: e("streams", "Stream source restarted", "Sorgente stream riavviata"),
146
147
  [require_event_category.EventCategory.StreamParamsChanged]: e("streams", "Stream parameters changed", "Parametri dello stream cambiati"),
147
148
  [require_event_category.EventCategory.DeviceStateChanged]: e("devices", "Device state changed", "Stato dispositivo cambiato"),
148
149
  [require_event_category.EventCategory.DeviceCommandSettled]: e("devices", "Device command settled", "Comando al dispositivo concluso"),
package/dist/enums.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-7P4A3bYA.mjs";
1
+ import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-BEsBTS72.mjs";
2
2
  //#region src/enums/event-category-catalog.ts
3
3
  /**
4
4
  * The event-category catalogue: what an operator-facing surface (a picker, the
@@ -142,6 +142,7 @@ var EVENT_CATEGORY_CATALOG = {
142
142
  [EventCategory.StreamBrokerOnCamStreamDemand]: e("streams", "Stream requested", "Stream richiesto"),
143
143
  [EventCategory.StreamBrokerOnCamStreamIdle]: e("streams", "Stream idle", "Stream inattivo"),
144
144
  [EventCategory.StreamBrokerOnRequestStreamSourceRefresh]: e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"),
145
+ [EventCategory.StreamBrokerOnSourceRestart]: e("streams", "Stream source restarted", "Sorgente stream riavviata"),
145
146
  [EventCategory.StreamParamsChanged]: e("streams", "Stream parameters changed", "Parametri dello stream cambiati"),
146
147
  [EventCategory.DeviceStateChanged]: e("devices", "Device state changed", "Stato dispositivo cambiato"),
147
148
  [EventCategory.DeviceCommandSettled]: e("devices", "Device command settled", "Comando al dispositivo concluso"),
@@ -445,6 +445,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
445
445
  */
446
446
  EventCategory["StreamBrokerOnRequestStreamSourceRefresh"] = "stream-broker.onRequestStreamSourceRefresh";
447
447
  /**
448
+ * A broker RE-DIALED its source (every dial after the first). A consumer that
449
+ * reads the broker over a transport that does not announce the cut — the
450
+ * recorder's ffmpeg writer — learns here instead of through its idle clock.
451
+ * Telemetry: a dropped event only means the idle clock recovers it later.
452
+ * Payload: `{ deviceId, camStreamId, brokerId, reason }`.
453
+ */
454
+ EventCategory["StreamBrokerOnSourceRestart"] = "stream-broker.onSourceRestart";
455
+ /**
448
456
  * A camera provider changed a device's stream parameters (codec /
449
457
  * resolution / bitrate / a stream added or removed). A LOW-LATENCY NUDGE
450
458
  * for the stream-broker's catalog reconcile: it carries NO authoritative
@@ -445,6 +445,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
445
445
  */
446
446
  EventCategory["StreamBrokerOnRequestStreamSourceRefresh"] = "stream-broker.onRequestStreamSourceRefresh";
447
447
  /**
448
+ * A broker RE-DIALED its source (every dial after the first). A consumer that
449
+ * reads the broker over a transport that does not announce the cut — the
450
+ * recorder's ffmpeg writer — learns here instead of through its idle clock.
451
+ * Telemetry: a dropped event only means the idle clock recovers it later.
452
+ * Payload: `{ deviceId, camStreamId, brokerId, reason }`.
453
+ */
454
+ EventCategory["StreamBrokerOnSourceRestart"] = "stream-broker.onSourceRestart";
455
+ /**
448
456
  * A camera provider changed a device's stream parameters (codec /
449
457
  * resolution / bitrate / a stream added or removed). A LOW-LATENCY NUDGE
450
458
  * for the stream-broker's catalog reconcile: it carries NO authoritative
@@ -60,6 +60,7 @@ import type { dishwasherCapability } from '../capabilities/dishwasher.cap.js';
60
60
  import type { displayPaletteCapability } from '../capabilities/display-palette.cap.js';
61
61
  import type { doNotDisturbCapability } from '../capabilities/do-not-disturb.cap.js';
62
62
  import type { embeddingEncoderCapability } from '../capabilities/embedding-encoder.cap.js';
63
+ import type { errorCapability } from '../capabilities/error.cap.js';
63
64
  import type { faceGalleryCapability } from '../capabilities/face-gallery.cap.js';
64
65
  import type { failureContributionCapability } from '../capabilities/failure-contribution.cap.js';
65
66
  import type { fanControlCapability } from '../capabilities/fan-control.cap.js';
@@ -4023,6 +4024,13 @@ export type AppRouter = TrpcCoreRouter<{
4023
4024
  output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
4024
4025
  meta: object;
4025
4026
  }>;
4027
+ listFaultTypes: TRPCQueryProcedure<{
4028
+ input: {
4029
+ [x: string]: unknown;
4030
+ } & z.input<typeof errorCapability.methods.listFaultTypes.input>;
4031
+ output: z.infer<typeof errorCapability.methods.listFaultTypes.output>;
4032
+ meta: object;
4033
+ }>;
4026
4034
  }>>;
4027
4035
  eventEmitter: TRPCBuiltRouter<{
4028
4036
  ctx: TrpcContext;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1536 method paths across 214 capabilities.
9
+ * Coverage: 1537 method paths across 214 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
@@ -6,7 +6,7 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 648 methods carry a device reference, of which
9
+ * Coverage: 649 methods carry a device reference, of which
10
10
  * 202 are on SYSTEM-scope caps.
11
11
  *
12
12
  * Top-level fields, number arrays, and one-level arrays of objects carrying
package/dist/index.d.ts CHANGED
@@ -201,8 +201,8 @@ export { APP_FLOW_DEFAULT_REDIRECT, APP_FLOW_REFUSAL_MESSAGES, APP_FLOW_STATE_PR
201
201
  export { SSO_STATE_COOKIE, SSO_STATE_COOKIE_MAX_AGE_SEC } from './auth/sso-state.js';
202
202
  export { buildDeviceEnrollmentLink, buildDeviceSignatureMessage, type CompleteEnrollmentInput, CompleteEnrollmentInputSchema, type CompleteEnrollmentOutput, CompleteEnrollmentOutputSchema, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_CERT_VALIDITY_DAYS, DEVICE_ENROLLMENT_TTL_MS, DEVICE_NONCE_TTL_MS, DEVICE_SAN_CREDENTIAL_PREFIX, DEVICE_SAN_USER_PREFIX, DEVICE_SIGNATURE_MESSAGE_VERSION, type DeviceCertificateLoginMethod, DeviceCertificateLoginMethodSchema, type DeviceChallenge, DeviceChallengeSchema, type DeviceCredential, DeviceCredentialSchema, type DeviceCredentialStatus, DeviceCredentialStatusSchema, type DevicePlatform, DevicePlatformSchema, type DeviceProofInput, DeviceProofInputSchema, type CompleteEnrollmentResult, CompleteEnrollmentResultSchema, DEFINITIVE_DEVICE_REFUSALS, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, deviceRefusalFromMessage, type DeviceChallengeResult, DeviceChallengeResultSchema, DeviceEnrollProofSchema, type DeviceRefusal, type DeviceRefusalReason, DeviceRefusalReasonSchema, DeviceRefusalSchema, type DeviceRevoker, type EnrollSelfInput, EnrollSelfInputSchema, formatDeviceRevoker, isDefinitiveDeviceRefusal, type RenewDeviceCertificateResult, RenewDeviceCertificateResultSchema, type RevokeOwnDeviceCertificateResult, RevokeOwnDeviceCertificateResultSchema, type DeviceSignaturePurpose, DeviceSignaturePurposeSchema, type RenewDeviceCertificateOutput, RenewDeviceCertificateOutputSchema, type StartEnrollmentOutput, StartEnrollmentOutputSchema, parseDeviceEnrollmentLink, } from './auth/device-certificate.js';
203
203
  export { advertisedHubOrigins, claimedRequestOrigins, normalizeOrigin, pickRequestOrigin, type RequestHeaders, requestMountPrefix, } from './auth/request-origin.js';
204
- export type { ActionStep, AutomationAction, AutomationAll, AutomationAny, AutomationCommandStep, AutomationConditionOperator, AutomationConditionTraceNode, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLabelSource, DetectionLeaf, DetectionSubject, DeviceBecomesLeaf, BecomesDeps, BecomesEffect, BecomesOperator, BecomesSpec, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, DeviceFiredLeaf, DeviceFiredMatch, IdentifiedEventLeaf, WhenSiteIssue, HoldMode, HoldReading, HoldSpec, HoldTrace, IdentityLabel, LegacyAutomationRecipe, AutomationBodyStep, AutomationBranchStep, AutomationRecipeInput, AutomationChooseStep, AutomationWaitUntilStep, AutomationParallelStep, AutomationRepeatLoop, AutomationRepeatStep, AutomationSetStep, StepConditionRef, AutomationStopStep, StepDeviceTrace, LegacyCondition, LegacyTrigger, PlateLabel, StationaryLeaf, StationaryPresentLeaf, SubClassLabel, SubjectObservation, SubjectVerdict, AutomationRecipe, AutomationRunMode, AutomationRunOutcome, AutomationRunTrace, AutomationRunVerdict, AutomationStateDoc, AutomationStepTrace, NestedStepTrace, AutomationTriggerTrace, ConditionEvaluation, ConditionReader, DetectionDecision, DetectionTrigger, DetectionVars, GenerateAutomationBlockInput, MirrorRefreshFetchers, RunTrigger, MirrorRefreshReport, MirrorSource, StationaryChangedInput, StationaryDecision, StationaryTrigger, StationaryVars, DeviceFiredDecision, DeviceFiredVars, FiredDataScalar, FiredDataVars, TraceNodeOutcome, TraceValue, TrackLifecycleInput, TriggerVariable, } from './automation/index.js';
205
- export { ActionStepSchema, AutomationActionSchema, AutomationCommandStepBaseSchema, AutomationCommandStepSchema, AutomationWaitStepSchema, AutomationChooseStepSchema, AutomationWaitUntilStepSchema, AutomationParallelStepSchema, AutomationRepeatLoopSchema, AutomationRepeatStepSchema, AutomationSetStepSchema, CHOOSE_BRANCHES_MAX, WAIT_UNTIL_TIMEOUT_MAX_S, PARALLEL_STEPS_MAX, REPEAT_COUNT_MAX, REPEAT_DEVICES_MAX, REPEAT_ITEM_VAR, REPEAT_ITERATIONS_MAX, REPEAT_STEPS_MAX, STEP_NEST_MAX, PARALLEL_STEPS_MIN, nestedStepsOf, stepConditionsOf, AutomationStopStepSchema, RESERVED_RUN_VARS, SET_VAR_NAME_RE, SET_VAR_VALUE_MAX, SET_VARS_MAX, STOP_REASON_MAX, stepGuardOf, WAIT_MAX_SECONDS, EMPTY_AUTOMATION_STATE, mergeSkipTraces, AutomationConditionOperatorSchema, AutomationConditionTraceNodeSchema, AutomationRecipeSchema, AutomationWhenSchema, CurrentAutomationRecipeSchema, DETECTION_LABEL_SOURCES, DetectionSubjectSchema, LegacyAutomationRecipeSchema, LegacyConditionSchema, LegacyTriggerSchema, MAX_TRACE_ARG_LENGTH, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, MAX_WHEN_DEPTH, StepDeviceTraceSchema, MAX_WHEN_LEAVES, REDACTED_ARG, StationarySubjectSchema, anySubjectMatches, buildStepArgsTrace, collectWhenMirrorSources, convertLegacyCondition, convertLegacyRecipe, convertLegacyWhen, countWhenLeaves, describeSubject, evaluateWhenTree, eventLeafIdAt, identifiedEventLeaves, hasTriggeredByLeaves, triggeredByIssue, EVENT_LEAF_ID_RE, TRIGGERED_BY_MAX_IDS, recipeSiteIssues, stepGuardSiteIssues, whenSiteIssues, forEachLeaf, BecomesOperatorSchema, BecomesWatch, HoldCore, HoldSpecSchema, HoldTraceSchema, HoldTracker, describeHold, describeHoldMs, hasEventLeaves, hasHoldLeaves, hasTimeLeaves, nextTimeBoundaryInMs, holdOf, observeHoldLeaves, isEventLeaf, isLeaf, subClassesOf, subjectFromClassName, subjectMatches, validateWhenTree, whenDepth, AutomationRunModeSchema, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationTriggerTraceSchema, appendTrace, foldHoldEpisodes, buildTriggerTrace, collectMirrorSources, ConditionMirror, stableIdKey, stableIdMapOf, DEFAULT_TRACE_KEEP, DetectionTriggerFilter, detectionClassMatches, evaluateConditionTree, evaluateStationaryTrigger, DeviceFiredWatch, FIRED_RECOVERED_NOTE, firedDataVars, DeviceFiredMatchSchema, generateAutomationBlock, isSkippedTrace, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_TRACE_KEEP, RunGate, skipSignature, TraceNodeOutcomeSchema, TraceValueSchema, triggerLeafVariables, triggerVariablesOf, validateRecipeBounds, } from './automation/index.js';
204
+ export type { ActionStep, AutomationAction, AutomationAll, AutomationAny, AutomationCommandStep, AutomationConditionOperator, AutomationConditionTraceNode, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLabelSource, DetectionLeaf, DetectionSubject, DeviceBecomesLeaf, BecomesDeps, BecomesEffect, BecomesOperator, BecomesSpec, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, DeviceFiredLeaf, DeviceFiredMatch, IdentifiedEventLeaf, WhenSiteIssue, HoldMode, HoldReading, HoldSpec, HoldTrace, IdentityLabel, LegacyAutomationRecipe, AutomationBodyStep, AutomationBranchStep, AutomationRecipeInput, AutomationChooseStep, AutomationWaitUntilStep, AutomationNotifyStep, AutomationParallelStep, AutomationRepeatLoop, AutomationRepeatStep, AutomationSetStep, StepConditionRef, AutomationStopStep, StepDeviceTrace, LegacyCondition, LegacyTrigger, PlateLabel, StationaryLeaf, StationaryPresentLeaf, SubClassLabel, SubjectObservation, SubjectVerdict, AutomationRecipe, AutomationRunMode, AutomationRunOutcome, AutomationRunTrace, AutomationRunVerdict, AutomationStateDoc, AutomationStepTrace, NestedStepTrace, AutomationTriggerTrace, ConditionEvaluation, ConditionReader, DetectionDecision, DetectionTrigger, DetectionVars, GenerateAutomationBlockInput, MirrorRefreshFetchers, RunTrigger, MirrorRefreshReport, MirrorSource, StationaryChangedInput, StationaryDecision, StationaryTrigger, StationaryVars, DeviceFiredDecision, DeviceFiredVars, FiredDataScalar, FiredDataVars, TraceNodeOutcome, TraceValue, TrackLifecycleInput, TriggerVariable, } from './automation/index.js';
205
+ export { ActionStepSchema, AutomationActionSchema, AutomationCommandStepBaseSchema, AutomationCommandStepSchema, AutomationWaitStepSchema, AutomationChooseStepSchema, AutomationWaitUntilStepSchema, AutomationNotifyStepSchema, AutomationParallelStepSchema, AutomationRepeatLoopSchema, AutomationRepeatStepSchema, AutomationSetStepSchema, CHOOSE_BRANCHES_MAX, WAIT_UNTIL_TIMEOUT_MAX_S, PARALLEL_STEPS_MAX, REPEAT_COUNT_MAX, REPEAT_DEVICES_MAX, REPEAT_ITEM_VAR, REPEAT_ITERATIONS_MAX, REPEAT_STEPS_MAX, STEP_NEST_MAX, PARALLEL_STEPS_MIN, nestedStepsOf, stepConditionsOf, AutomationStopStepSchema, RESERVED_RUN_VARS, SET_VAR_NAME_RE, SET_VAR_VALUE_MAX, SET_VARS_MAX, STOP_REASON_MAX, stepGuardOf, WAIT_MAX_SECONDS, EMPTY_AUTOMATION_STATE, mergeSkipTraces, AutomationConditionOperatorSchema, AutomationConditionTraceNodeSchema, AutomationRecipeSchema, AutomationWhenSchema, CurrentAutomationRecipeSchema, DETECTION_LABEL_SOURCES, DetectionSubjectSchema, LegacyAutomationRecipeSchema, LegacyConditionSchema, LegacyTriggerSchema, MAX_TRACE_ARG_LENGTH, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, MAX_WHEN_DEPTH, StepDeviceTraceSchema, MAX_WHEN_LEAVES, REDACTED_ARG, StationarySubjectSchema, anySubjectMatches, buildStepArgsTrace, collectWhenMirrorSources, convertLegacyCondition, convertLegacyRecipe, convertLegacyWhen, countWhenLeaves, describeSubject, evaluateWhenTree, eventLeafIdAt, identifiedEventLeaves, hasTriggeredByLeaves, triggeredByIssue, EVENT_LEAF_ID_RE, TRIGGERED_BY_MAX_IDS, recipeSiteIssues, stepGuardSiteIssues, whenSiteIssues, forEachLeaf, BecomesOperatorSchema, BecomesWatch, HoldCore, HoldSpecSchema, HoldTraceSchema, HoldTracker, describeHold, describeHoldMs, hasEventLeaves, hasHoldLeaves, hasTimeLeaves, nextTimeBoundaryInMs, holdOf, observeHoldLeaves, isEventLeaf, isLeaf, subClassesOf, subjectFromClassName, subjectMatches, validateWhenTree, whenDepth, AutomationRunModeSchema, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationTriggerTraceSchema, appendTrace, foldHoldEpisodes, buildTriggerTrace, collectMirrorSources, ConditionMirror, stableIdKey, stableIdMapOf, DEFAULT_TRACE_KEEP, DetectionTriggerFilter, detectionClassMatches, evaluateConditionTree, evaluateStationaryTrigger, DeviceFiredWatch, FIRED_RECOVERED_NOTE, firedDataVars, DeviceFiredMatchSchema, generateAutomationBlock, isSkippedTrace, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_TRACE_KEEP, RunGate, skipSignature, TraceNodeOutcomeSchema, TraceValueSchema, triggerLeafVariables, triggerVariablesOf, validateRecipeBounds, } from './automation/index.js';
206
206
  export { UnitWarningSchema, assertStepsOffered, type BoundCapsReader, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, prepareRecipeUnits, } from './automation/index.js';
207
207
  export type { PreparedRecipe, UnitResolver, UnitWarning, UnitsNormalized, } from './automation/index.js';
208
208
  export * from './automation/action.js';