@camstack/types 1.2.550 → 1.2.551
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/addon/addon-instance.d.ts +1 -2
- package/dist/automation/fired-trigger.d.ts +44 -0
- package/dist/automation/index.d.ts +4 -2
- package/dist/automation/trace.d.ts +2 -0
- package/dist/automation/when.d.ts +39 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +529 -223
- package/dist/index.mjs +526 -224
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.551] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Comment only: the per-instance OAuth comparison now has its first caller (the Alexa export)
|
|
15
|
+
- Automations: a 'device fired' trigger row runs on one button and one kind of press of a remote, once per press, and hands the button and the press to the steps
|
|
16
|
+
|
|
10
17
|
## [1.2.550] - 2026-11-12
|
|
11
18
|
|
|
12
19
|
### Added
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* path with no instance segment and a link with no instance both mean it, and
|
|
7
7
|
* its id is the addon id. {@link oauthLinkServesInstance} is the one
|
|
8
8
|
* comparison a per-instance route is meant to call, so nobody compares
|
|
9
|
-
* `undefined` with an id.
|
|
10
|
-
* `perInstance` (the Alexa per-instance route, T3, is the first consumer).
|
|
9
|
+
* `undefined` with an id. The Alexa export's routes are its first caller.
|
|
11
10
|
*/
|
|
12
11
|
export declare function isAddonInstanceId(value: string): boolean;
|
|
13
12
|
/** What a verified OAuth link says about its instance: the id, or nothing for the default one. */
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { DeviceFiredLeaf } from './when.js';
|
|
2
|
+
/** What a `device-fired` run exposes to conditions and actions. */
|
|
3
|
+
export interface DeviceFiredVars {
|
|
4
|
+
readonly deviceId: number;
|
|
5
|
+
readonly eventType: string;
|
|
6
|
+
/** The part of the device that fired (a button); empty when the fire names none. */
|
|
7
|
+
readonly sourceId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The vocabulary kind of the event (`long-press`); empty when it declares
|
|
10
|
+
* none. Not `kind`: that key of a run's bag already names the trigger row.
|
|
11
|
+
*/
|
|
12
|
+
readonly eventKind: string;
|
|
13
|
+
}
|
|
14
|
+
/** A payload value a run variable can hold. */
|
|
15
|
+
export type FiredDataScalar = string | number | boolean;
|
|
16
|
+
/** The fire's payload, flat: `data.<dotted path>` → scalar. */
|
|
17
|
+
export type FiredDataVars = Readonly<Record<string, FiredDataScalar>>;
|
|
18
|
+
export type DeviceFiredDecision = {
|
|
19
|
+
readonly kind: 'ignore';
|
|
20
|
+
readonly why: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: 'reject';
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
readonly vars: DeviceFiredVars;
|
|
25
|
+
readonly data: FiredDataVars;
|
|
26
|
+
} | {
|
|
27
|
+
readonly kind: 'fire';
|
|
28
|
+
readonly reason: string;
|
|
29
|
+
readonly vars: DeviceFiredVars;
|
|
30
|
+
readonly data: FiredDataVars;
|
|
31
|
+
};
|
|
32
|
+
/** The scalars of a fire's payload as `data.<path>` variables; lists and nulls are left out. */
|
|
33
|
+
export declare function firedDataVars(data: unknown): FiredDataVars;
|
|
34
|
+
/** Said in the trace when the reconcile, not the bus event, brought the fire. */
|
|
35
|
+
export declare const FIRED_RECOVERED_NOTE = "recovered by reconcile";
|
|
36
|
+
export declare class DeviceFiredWatch {
|
|
37
|
+
#private;
|
|
38
|
+
private readonly leaf;
|
|
39
|
+
constructor(leaf: DeviceFiredLeaf);
|
|
40
|
+
/** A bus event (`event.data` of `EventCategory.EventEmitted`). */
|
|
41
|
+
onEvent(data: unknown): DeviceFiredDecision;
|
|
42
|
+
/** A reading of the device's `event-emitter` slice (seed, then reconcile). */
|
|
43
|
+
onStatus(status: unknown): DeviceFiredDecision;
|
|
44
|
+
}
|
|
@@ -18,6 +18,8 @@ export type { DetectionDecision, DetectionTrigger, DetectionVars, TrackLifecycle
|
|
|
18
18
|
export { DetectionTriggerFilter, detectionClassMatches, FIRED_MAX, FIRED_TTL_MS, } from './detection-trigger.js';
|
|
19
19
|
export type { StationaryChangedInput, StationaryDecision, StationaryTrigger, StationaryVars, } from './stationary-trigger.js';
|
|
20
20
|
export { evaluateStationaryTrigger } from './stationary-trigger.js';
|
|
21
|
+
export type { DeviceFiredDecision, DeviceFiredVars, FiredDataScalar, FiredDataVars, } from './fired-trigger.js';
|
|
22
|
+
export { DeviceFiredWatch, FIRED_RECOVERED_NOTE, firedDataVars } from './fired-trigger.js';
|
|
21
23
|
export type { TriggerVariable } from './trigger-variables.js';
|
|
22
24
|
export { triggerLeafVariables, triggerVariablesOf } from './trigger-variables.js';
|
|
23
25
|
export type { CooldownInput, CooldownVerdict, RunGateAdmission } from './run-gate.js';
|
|
@@ -26,8 +28,8 @@ export type { AutomationConditionTraceNode, AutomationRunOutcome, AutomationRunT
|
|
|
26
28
|
export { AutomationConditionTraceNodeSchema, EMPTY_AUTOMATION_STATE, mergeSkipTraces, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationTriggerTraceSchema, appendTrace, buildStepArgsTrace, buildTriggerTrace, isSkippedTrace, MAX_TRACE_ARG_LENGTH, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, REDACTED_ARG, skipSignature, StepDeviceTraceSchema, TraceNodeOutcomeSchema, TraceValueSchema, } from './trace.js';
|
|
27
29
|
export type { ActionStep, AutomationAction, AutomationCapStep, AutomationRecipe, AutomationRunMode, LegacyAutomationRecipe, AutomationBodyStep, AutomationBranchStep, AutomationRecipeInput, AutomationChooseStep, AutomationWaitUntilStep, AutomationParallelStep, AutomationRepeatLoop, AutomationRepeatStep, AutomationSetStep, StepConditionRef, AutomationStopStep, NormalizedCapStep, } from './recipe.js';
|
|
28
30
|
export { ActionStepSchema, AutomationActionSchema, AutomationCapStepSchema, 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, AutomationRecipeSchema, AutomationRunModeSchema, CurrentAutomationRecipeSchema, convertLegacyRecipe, DEFAULT_TRACE_KEEP, LegacyAutomationRecipeSchema, MAX_TRACE_KEEP, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, normalizeCapStep, normalizeStepTargets, validateRecipeBounds, } from './recipe.js';
|
|
29
|
-
export type { AutomationAll, AutomationAny, AutomationConditionOperator, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLeaf, DeviceBecomesLeaf, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, IdentifiedEventLeaf, StationaryLeaf, StationaryPresentLeaf, } from './when.js';
|
|
30
|
-
export { AutomationConditionOperatorSchema, AutomationWhenSchema, countWhenLeaves, eventLeafIdAt, identifiedEventLeaves, hasTriggeredByLeaves, triggeredByIssue, EVENT_LEAF_ID_RE, TRIGGERED_BY_MAX_IDS, forEachLeaf, hasEventLeaves, isEventLeaf, isLeaf, MAX_WHEN_DEPTH, MAX_WHEN_LEAVES, validateWhenTree, whenDepth, } from './when.js';
|
|
31
|
+
export type { AutomationAll, AutomationAny, AutomationConditionOperator, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLeaf, DeviceBecomesLeaf, DeviceFiredLeaf, DeviceFiredMatch, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, IdentifiedEventLeaf, StationaryLeaf, StationaryPresentLeaf, } from './when.js';
|
|
32
|
+
export { AutomationConditionOperatorSchema, AutomationWhenSchema, DeviceFiredMatchSchema, countWhenLeaves, eventLeafIdAt, identifiedEventLeaves, hasTriggeredByLeaves, triggeredByIssue, EVENT_LEAF_ID_RE, TRIGGERED_BY_MAX_IDS, forEachLeaf, hasEventLeaves, isEventLeaf, isLeaf, MAX_WHEN_DEPTH, MAX_WHEN_LEAVES, validateWhenTree, whenDepth, } from './when.js';
|
|
31
33
|
export type { LegacyCondition, LegacyTrigger, } from './legacy-recipe.js';
|
|
32
34
|
export { convertLegacyCondition, convertLegacyWhen, LegacyConditionSchema, LegacyTriggerSchema, } from './legacy-recipe.js';
|
|
33
35
|
export type { DetectionLabelSource, DetectionSubject, IdentityLabel, PlateLabel, SubClassLabel, SubjectObservation, SubjectVerdict, } from './detection-subject.js';
|
|
@@ -70,6 +70,7 @@ export declare const AutomationConditionTraceNodeSchema: z.ZodObject<{
|
|
|
70
70
|
detection: "detection";
|
|
71
71
|
"device-becomes": "device-becomes";
|
|
72
72
|
"device-event": "device-event";
|
|
73
|
+
"device-fired": "device-fired";
|
|
73
74
|
"device-is": "device-is";
|
|
74
75
|
expression: "expression";
|
|
75
76
|
interval: "interval";
|
|
@@ -424,6 +425,7 @@ declare const runTraceObject: z.ZodObject<{
|
|
|
424
425
|
detection: "detection";
|
|
425
426
|
"device-becomes": "device-becomes";
|
|
426
427
|
"device-event": "device-event";
|
|
428
|
+
"device-fired": "device-fired";
|
|
427
429
|
"device-is": "device-is";
|
|
428
430
|
expression: "expression";
|
|
429
431
|
interval: "interval";
|
|
@@ -130,6 +130,41 @@ declare const ScheduleLeafSchema: z.ZodObject<{
|
|
|
130
130
|
}>>>;
|
|
131
131
|
cron: z.ZodOptional<z.ZodString>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
|
+
/**
|
|
134
|
+
* One payload predicate of a `device-fired` row: the value at `path` inside
|
|
135
|
+
* the fire's `data` (dotted) equals `equals`. Compared strictly, no coercion.
|
|
136
|
+
*/
|
|
137
|
+
export declare const DeviceFiredMatchSchema: z.ZodObject<{
|
|
138
|
+
path: z.ZodString;
|
|
139
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type DeviceFiredMatch = z.infer<typeof DeviceFiredMatchSchema>;
|
|
142
|
+
/**
|
|
143
|
+
* "fires": one device of the `event-emitter` capability reported an event
|
|
144
|
+
* (D1045). Every list is an OR, the lists together an AND; an absent list does
|
|
145
|
+
* not narrow. `eventIds` are the device's own tokens, `sourceIds` the parts of
|
|
146
|
+
* the device (a button), `kinds` the shared press kinds of its vocabulary.
|
|
147
|
+
*/
|
|
148
|
+
declare const DeviceFiredLeafSchema: z.ZodObject<{
|
|
149
|
+
id: z.ZodOptional<z.ZodString>;
|
|
150
|
+
kind: z.ZodLiteral<"device-fired">;
|
|
151
|
+
deviceId: z.ZodNumber;
|
|
152
|
+
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
+
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
155
|
+
"double-press": "double-press";
|
|
156
|
+
"long-press": "long-press";
|
|
157
|
+
"long-press-start": "long-press-start";
|
|
158
|
+
other: "other";
|
|
159
|
+
press: "press";
|
|
160
|
+
release: "release";
|
|
161
|
+
repeat: "repeat";
|
|
162
|
+
}>>>;
|
|
163
|
+
match: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
path: z.ZodString;
|
|
165
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
133
168
|
declare const ManualLeafSchema: z.ZodObject<{
|
|
134
169
|
id: z.ZodOptional<z.ZodString>;
|
|
135
170
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -392,12 +427,15 @@ declare const ExpressionLeafSchema: z.ZodObject<{
|
|
|
392
427
|
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
393
428
|
}, z.core.$strip>>;
|
|
394
429
|
}, z.core.$strip>;
|
|
395
|
-
export type AutomationEventLeaf = z.infer<typeof DeviceBecomesLeafSchema> | z.infer<typeof DeviceEventLeafSchema> | z.infer<typeof ScheduleLeafSchema> | z.infer<typeof ManualLeafSchema> | z.infer<typeof IntervalLeafSchema> | z.infer<typeof DetectionLeafSchema> | z.infer<typeof StationaryLeafSchema>;
|
|
430
|
+
export type AutomationEventLeaf = z.infer<typeof DeviceBecomesLeafSchema> | z.infer<typeof DeviceEventLeafSchema> | z.infer<typeof DeviceFiredLeafSchema> | z.infer<typeof ScheduleLeafSchema> | z.infer<typeof ManualLeafSchema> | z.infer<typeof IntervalLeafSchema> | z.infer<typeof DetectionLeafSchema> | z.infer<typeof StationaryLeafSchema>;
|
|
396
431
|
export type AutomationStateLeaf = z.infer<typeof DeviceIsLeafSchema> | z.infer<typeof StationaryPresentLeafSchema> | z.infer<typeof ExpressionLeafSchema> | z.infer<typeof TimeIsLeafSchema> | z.infer<typeof TriggeredByLeafSchema>;
|
|
397
432
|
export type AutomationLeaf = AutomationEventLeaf | AutomationStateLeaf;
|
|
398
433
|
export type DeviceBecomesLeaf = Extract<AutomationEventLeaf, {
|
|
399
434
|
kind: 'device-becomes';
|
|
400
435
|
}>;
|
|
436
|
+
export type DeviceFiredLeaf = Extract<AutomationEventLeaf, {
|
|
437
|
+
kind: 'device-fired';
|
|
438
|
+
}>;
|
|
401
439
|
export type DetectionLeaf = Extract<AutomationEventLeaf, {
|
|
402
440
|
kind: 'detection';
|
|
403
441
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -192,8 +192,8 @@ export { APP_FLOW_DEFAULT_REDIRECT, APP_FLOW_REFUSAL_MESSAGES, APP_FLOW_STATE_PR
|
|
|
192
192
|
export { SSO_STATE_COOKIE, SSO_STATE_COOKIE_MAX_AGE_SEC } from './auth/sso-state.js';
|
|
193
193
|
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';
|
|
194
194
|
export { advertisedHubOrigins, claimedRequestOrigins, normalizeOrigin, pickRequestOrigin, type RequestHeaders, requestMountPrefix, } from './auth/request-origin.js';
|
|
195
|
-
export type { ActionStep, AutomationAction, AutomationAll, AutomationAny, AutomationCapStep, AutomationConditionOperator, AutomationConditionTraceNode, AutomationEventLeaf, AutomationLeaf, AutomationNot, AutomationStateLeaf, AutomationWhen, DetectionLabelSource, DetectionLeaf, DetectionSubject, DeviceBecomesLeaf, BecomesDeps, BecomesEffect, BecomesOperator, BecomesSpec, DeviceIsLeaf, ExpressionLeaf, TimeIsLeaf, TriggeredByLeaf, IdentifiedEventLeaf, WhenSiteIssue, HoldMode, HoldReading, HoldSpec, HoldTrace, IdentityLabel, LegacyAutomationRecipe, AutomationBodyStep, AutomationBranchStep, AutomationRecipeInput, AutomationChooseStep, AutomationWaitUntilStep, AutomationParallelStep, AutomationRepeatLoop, AutomationRepeatStep, AutomationSetStep, StepConditionRef, AutomationStopStep, NormalizedCapStep, 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, TraceNodeOutcome, TraceValue, TrackLifecycleInput, TriggerVariable, } from './automation/index.js';
|
|
196
|
-
export { ActionStepSchema, AutomationActionSchema, AutomationCapStepSchema, 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, normalizeCapStep, normalizeStepTargets, 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, buildTriggerTrace, collectMirrorSources, ConditionMirror, stableIdKey, stableIdMapOf, DEFAULT_TRACE_KEEP, DetectionTriggerFilter, detectionClassMatches, evaluateConditionTree, evaluateStationaryTrigger, generateAutomationBlock, isSkippedTrace, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_TRACE_KEEP, RunGate, skipSignature, TraceNodeOutcomeSchema, TraceValueSchema, triggerLeafVariables, triggerVariablesOf, validateRecipeBounds, } from './automation/index.js';
|
|
195
|
+
export type { ActionStep, AutomationAction, AutomationAll, AutomationAny, AutomationCapStep, 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, NormalizedCapStep, 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';
|
|
196
|
+
export { ActionStepSchema, AutomationActionSchema, AutomationCapStepSchema, 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, normalizeCapStep, normalizeStepTargets, 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, 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';
|
|
197
197
|
export { UnitWarningSchema, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, prepareRecipeUnits, } from './automation/index.js';
|
|
198
198
|
export type { PreparedRecipe, UnitResolver, UnitWarning, UnitsNormalized, } from './automation/index.js';
|
|
199
199
|
export * from './automation/action.js';
|