@camstack/types 1.2.537 → 1.2.539

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 CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.539] - 2026-11-10
11
+
12
+ ### Changed
13
+
14
+ - holdVarSlots: the one helper that sets aside the {{ vars.x }} slots of a step text
15
+
16
+ ## [1.2.538] - 2026-11-10
17
+
18
+ ### Changed
19
+
20
+ - A notification rule or button now runs existing Actions by id; the rule's own action steps and shared sequences are gone
21
+ - An action run can carry the notification rule fire that started it, out of band, so a device command stays attributed to that match
22
+
10
23
  ## [1.2.537] - 2026-11-09
11
24
 
12
25
  ### Changed
@@ -62,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
75
 
63
76
  - A calendar names the integration-instances record that owns it (calendar-source CalendarInfo.instanceId, passed through the calendars listing)
64
77
  - 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
78
+
65
79
  ## [1.2.531] - 2026-11-08
66
80
 
67
81
  ### Changed
package/dist/addon.d.ts CHANGED
@@ -22,8 +22,8 @@ export { MIGRATION_API_VERSION } from './migrations/api/migration-api-version.js
22
22
  export { ErrorI18nPayloadSchema, readErrorI18n } from './i18n/camstack-error.js';
23
23
  export type { ErrorI18nPayload } from './i18n/camstack-error.js';
24
24
  export { commandOrigin, nodePin, readCommandOrigin, readNodePin } from './cap-call-context.js';
25
- export { CommandOriginClaimSchema } from './audit/command-origin-claim.js';
26
- export type { CommandOriginClaim } from './audit/command-origin-claim.js';
25
+ export { CommandOriginClaimSchema, RuleFireOriginSchema, ruleFireOfClaim, } from './audit/command-origin-claim.js';
26
+ export type { CommandOriginClaim, RuleFireOrigin } from './audit/command-origin-claim.js';
27
27
  export { isCommand } from './device/cap-vocabulary/command-catalog.js';
28
28
  export { nodeIdOfScopedKey, resolveDeviceSettings, resolvedValues, SCOPED_SETTINGS_SCOPES, } from './addon/scoped-settings.js';
29
29
  export type { DeviceSettingsLayers, ResolvedSetting, ResolvedSettings, ScopedSettings, ScopedSettingsDeclaration, ScopedSettingsScope, SettingSource, } from './addon/scoped-settings.js';
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-DIg2Mx82.js");
2
+ const require_sleep = require("./sleep-DgCXXFc3.js");
3
3
  const require_event_category = require("./event-category-BC4RRerT.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
5
5
  //#region src/generated/cap-input-defaults.ts
@@ -565,6 +565,7 @@ exports.RecordTooLargeError = require_sleep.RecordTooLargeError;
565
565
  exports.RecordUniqueViolationError = require_sleep.RecordUniqueViolationError;
566
566
  exports.RecordsError = require_sleep.RecordsError;
567
567
  exports.RevConflictError = require_sleep.RevConflictError;
568
+ exports.RuleFireOriginSchema = require_sleep.RuleFireOriginSchema;
568
569
  exports.SCOPED_SETTINGS_SCOPES = require_sleep.SCOPED_SETTINGS_SCOPES;
569
570
  exports.SECRET_CLEAR = require_sleep.SECRET_CLEAR;
570
571
  exports.SECRET_REF_SCHEME = require_sleep.SECRET_REF_SCHEME;
@@ -642,6 +643,7 @@ exports.registerKnownSecret = require_sleep.registerKnownSecret;
642
643
  exports.resolveDeviceSettings = require_sleep.resolveDeviceSettings;
643
644
  exports.resolveSecretViewsIn = require_sleep.resolveSecretViewsIn;
644
645
  exports.resolvedValues = require_sleep.resolvedValues;
646
+ exports.ruleFireOfClaim = require_sleep.ruleFireOfClaim;
645
647
  exports.scopeKey = require_sleep.scopeKey;
646
648
  exports.scrubKnownSecrets = require_sleep.scrubKnownSecrets;
647
649
  exports.secretArrayPrefixes = require_sleep.secretArrayPrefixes;
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
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";
1
+ import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as RECORD_DATABASES, A as CAP_ADVANCE_FIELDS, Ai as RecordSecretUnavailableError, An as CALLER_USERNAME_HEADER, Ar as nodeIdOfScopedKey, Bn as RecordKindNameSchema, Ci as FilterRequiredError, Cn as scrubKnownSecrets, Ct as createDebugEmitter, Di as PlaintextSecretError, Dn as PEER_BYTES_STALL_MS, Ei as NoCallerError, En as PEER_BYTES_MAX_OUTSTANDING, F as withoutCallerStamp, Fi as TransactRefusedError, Fn as entryBody, G as readNodePin, Gn as defineRecordKinds, Gr as parseSecretPath, H as commandOrigin, Hn as StoredRecordKindDeclarationSchema, Hr as REMOVE_LEAF, I as customAction, Ii as UnindexedFilterError, In as EntryDescriptorSchema, J as PipelineRunResultBridge, Jn as isZodSecret, Jr as recordSecretRef, Kr as recordArrayItemPath, L as defineCustomActions, Li as UnknownRecordKindError, Ln as RecordFieldPathSchema, Mi as RecordUniqueViolationError, Mr as resolvedValues, N as CAP_STATE_LEAVES, Ni as RecordsError, Nn as DisposerChain, O as HF_REPO, Oi as RECORDS_ERROR_CODES, On as PEER_BYTES_TICKET_TTL_MS, P as CALLER_STAMPED_CAPABILITIES, Pi as RevConflictError, Pn as defineEntryKind, Q as deviceOpsCapability, Qr as RECORD_CLASSES, R as describeCustomActions, Ri as asRecordsError, Rn as RecordIndexSchema, Sa as findMigrationsBlocked, Si as DeclarationRefusedError, Sn as registerKnownSecret, T as isCommand, Ti as InvalidRecordError, Tn as PEER_BYTES_CHUNK_BYTES, U as nodePin, Un as assertValidDeclaration, Ur as collectSecretLeaves, Vn as RecordRetentionSchema, Vr as secretViewsOf, W as readCommandOrigin, Wn as declarationsOf, Wr as mapSecretLeaves, X as MIGRATION_API_VERSION, Xi as emitReadiness, Xr as RECORD_BATCH_MAX, Y as PipelineStepInputSchema, Yi as createEvent, Yr as secretArrayPrefixes, Zr as RECORD_BATCH_MAX_BYTES, _i as parseSecretRef, _n as createSecretsAccess, ai as RECORD_MAX_INDEX_FIELDS, bn as forgetKnownSecret, c as asString, ca as isSecretClear, ci as RECORD_SETTINGS_MAX_ROWS, d as parseJsonUnknown, da as isSecretMarkerLike, di as arrayItemFieldPath, dn as ruleFireOfClaim, dr as ErrorI18nPayloadSchema, dt as ReadinessRegistry, ei as RECORD_DEFAULT_MAX_DATA_BYTES, et as adminUiCapability, f as hfModelUrl, fa as makeSecretMarker, fi as buildSecretRef, fn as makeInMemoryRecords, ft as ReadinessTimeoutError, g as createDeviceProxy, gi as normalizeSecretOwner, gn as REVALIDATE_AFTER_MS, gr as BaseAddon, h as isDeviceScopedCap, hi as isSecretRef, hn as resolveSecretViewsIn, ht as scopeKey, ii as RECORD_MAX_INDEXES, j as CAP_METHOD_TIMEOUTS_MS, ji as RecordTooLargeError, jn as DATAPLANE_SECRET_HEADER, jr as resolveDeviceSettings, ki as RecordNotFoundError, kr as SCOPED_SETTINGS_SCOPES, la as isSecretFieldView, li as RECORD_SWEEP_INTERVAL_MS, ln as CommandOriginClaimSchema, m as DEVICE_SCOPED_CAPS, mi as globalSecretScope, mn as assertTransactScope, mr as readErrorI18n, ni as RECORD_ID_MAX_LENGTH, nr as expandCapMethods, nt as addonPagesSourceCapability, o as asJsonObject, oa as SECRET_CLEAR, oi as RECORD_QUERY_MAX, p as BOOT_RECOVERY_BACKOFF_MS, pa as toSecretFieldView, pi as formatSecretScope, pn as createRecordsAccess, q as viewerUiCapability, qn as collectZodSecretPaths, qr as recordSecretCollection, r as maskUrlCredentials, ri as RECORD_MAX_DATA_BYTES, sa as classifySecretWrite, si as RECORD_SECRET_COLLECTION_PREFIX, t as sleep, ti as RECORD_DELETE_BATCH, ua as isSecretMarker, ui as SECRET_REF_SCHEME, un as RuleFireOriginSchema, ut as MODEL_FORMATS, v as addonSliceHandleApi, vn as MIN_SCRUBBED_LENGTH, wi as ForeignSecretMarkerError, wn as shortSecretRefHash, xa as AddonMigrationsBlockedError, xi as BatchTooLargeError, xn as knownSecretCount, y as createEventBusSliceSource, yn as clearKnownSecrets, yr as normalizeAddonInitResult, zi as recordsErrorFromMessage, zn as RecordKindDeclarationSchema } from "./sleep-VrfKAAGN.mjs";
2
2
  import { t as EventCategory } from "./event-category-78tcBemo.mjs";
3
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
@@ -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, 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 };
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, RuleFireOriginSchema, 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, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
@@ -1,12 +1,91 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * The match a notification rule fired on (D705). Carried as a command origin so an
4
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
5
+ * anonymous press (D735). The same fields a rule fire ref freezes.
6
+ */
7
+ export declare const RuleFireOriginSchema: z.ZodObject<{
8
+ ruleId: z.ZodString;
9
+ ruleName: z.ZodString;
10
+ deviceId: z.ZodNumber;
11
+ sourceDeviceId: z.ZodOptional<z.ZodNumber>;
12
+ recordId: z.ZodString;
13
+ timestamp: z.ZodNumber;
14
+ trackId: z.ZodOptional<z.ZodString>;
15
+ eventId: z.ZodOptional<z.ZodString>;
16
+ className: z.ZodOptional<z.ZodString>;
17
+ label: z.ZodOptional<z.ZodString>;
18
+ zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ confidence: z.ZodOptional<z.ZodNumber>;
20
+ sensorChange: z.ZodOptional<z.ZodObject<{
21
+ name: z.ZodString;
22
+ kind: z.ZodString;
23
+ state: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ extraStills: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ ownerId: z.ZodString;
27
+ cameraId: z.ZodNumber;
28
+ }, z.core.$strip>>>;
29
+ }, z.core.$strip>;
30
+ export type RuleFireOrigin = z.infer<typeof RuleFireOriginSchema>;
2
31
  /** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
3
32
  export declare const CommandOriginClaimSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
33
  kind: z.ZodLiteral<"action">;
5
34
  actionId: z.ZodString;
6
35
  runId: z.ZodString;
7
36
  automationId: z.ZodOptional<z.ZodString>;
37
+ ruleFire: z.ZodOptional<z.ZodObject<{
38
+ ruleId: z.ZodString;
39
+ ruleName: z.ZodString;
40
+ deviceId: z.ZodNumber;
41
+ sourceDeviceId: z.ZodOptional<z.ZodNumber>;
42
+ recordId: z.ZodString;
43
+ timestamp: z.ZodNumber;
44
+ trackId: z.ZodOptional<z.ZodString>;
45
+ eventId: z.ZodOptional<z.ZodString>;
46
+ className: z.ZodOptional<z.ZodString>;
47
+ label: z.ZodOptional<z.ZodString>;
48
+ zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ confidence: z.ZodOptional<z.ZodNumber>;
50
+ sensorChange: z.ZodOptional<z.ZodObject<{
51
+ name: z.ZodString;
52
+ kind: z.ZodString;
53
+ state: z.ZodString;
54
+ }, z.core.$strip>>;
55
+ extraStills: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
+ ownerId: z.ZodString;
57
+ cameraId: z.ZodNumber;
58
+ }, z.core.$strip>>>;
59
+ }, z.core.$strip>>;
8
60
  }, z.core.$strip>, z.ZodObject<{
9
61
  kind: z.ZodLiteral<"scheduler">;
10
62
  schedulerId: z.ZodString;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ kind: z.ZodLiteral<"rule">;
65
+ fire: z.ZodObject<{
66
+ ruleId: z.ZodString;
67
+ ruleName: z.ZodString;
68
+ deviceId: z.ZodNumber;
69
+ sourceDeviceId: z.ZodOptional<z.ZodNumber>;
70
+ recordId: z.ZodString;
71
+ timestamp: z.ZodNumber;
72
+ trackId: z.ZodOptional<z.ZodString>;
73
+ eventId: z.ZodOptional<z.ZodString>;
74
+ className: z.ZodOptional<z.ZodString>;
75
+ label: z.ZodOptional<z.ZodString>;
76
+ zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ confidence: z.ZodOptional<z.ZodNumber>;
78
+ sensorChange: z.ZodOptional<z.ZodObject<{
79
+ name: z.ZodString;
80
+ kind: z.ZodString;
81
+ state: z.ZodString;
82
+ }, z.core.$strip>>;
83
+ extraStills: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ ownerId: z.ZodString;
85
+ cameraId: z.ZodNumber;
86
+ }, z.core.$strip>>>;
87
+ }, z.core.$strip>;
11
88
  }, z.core.$strip>], "kind">;
12
89
  export type CommandOriginClaim = z.infer<typeof CommandOriginClaimSchema>;
90
+ /** The rule fire a claim carries, if it carries one. */
91
+ export declare function ruleFireOfClaim(claim: CommandOriginClaim | undefined): RuleFireOrigin | undefined;
@@ -134,8 +134,8 @@ export declare const DeviceTransitionSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>;
135
135
  }, z.core.$strip>;
136
136
  export type DeviceTransition = z.infer<typeof DeviceTransitionSchema>;
137
- export { CommandOriginClaimSchema } from './command-origin-claim.js';
138
- export type { CommandOriginClaim } from './command-origin-claim.js';
137
+ export { CommandOriginClaimSchema, RuleFireOriginSchema, ruleFireOfClaim, } from './command-origin-claim.js';
138
+ export type { CommandOriginClaim, RuleFireOrigin } from './command-origin-claim.js';
139
139
  /** The actor of a command: every kind but `device`, which is what nobody asked for. */
140
140
  export type CommandActor = Exclude<TransitionActor, {
141
141
  readonly kind: 'device';
@@ -72,6 +72,8 @@ export declare const ActionStatusSchema: z.ZodObject<{
72
72
  }, z.core.$strip>;
73
73
  export type ActionStatus = z.infer<typeof ActionStatusSchema>;
74
74
  export declare const IDLE_ACTION_STATUS: ActionStatus;
75
+ /** The throttle window of an action, in seconds; absent or 0 = no throttle. */
76
+ export declare const ActionMinDelaySecSchema: z.ZodNumber;
75
77
  export declare const ActionEntrySchema: z.ZodObject<{
76
78
  id: z.ZodString;
77
79
  name: z.ZodString;
@@ -171,6 +173,7 @@ export declare const ActionEntrySchema: z.ZodObject<{
171
173
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
172
174
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
175
  }, z.core.$strip>>>;
176
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
174
177
  status: z.ZodObject<{
175
178
  isRunning: z.ZodBoolean;
176
179
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -271,6 +274,7 @@ export declare const ActionInputSchema: z.ZodObject<{
271
274
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
272
275
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
273
276
  }, z.core.$strip>>>;
277
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
274
278
  }, z.core.$strip>;
275
279
  export type ActionInput = z.infer<typeof ActionInputSchema>;
276
280
  /** Who started a run. Absent = the operator pressed it. */
@@ -32,7 +32,6 @@ export type { DetectionLabelSource, DetectionSubject, IdentityLabel, PlateLabel,
32
32
  export { anySubjectMatches, DETECTION_LABEL_SOURCES, DetectionSubjectSchema, describeSubject, StationarySubjectSchema, subClassesOf, subjectFromClassName, subjectMatches, } from './detection-subject.js';
33
33
  export * from './action.js';
34
34
  export * from './action-target.js';
35
- export * from './nc-action-target.js';
36
35
  export * from './step-condition.js';
37
36
  export * from './step-runner.js';
38
37
  export { UnitWarningSchema, capUnitResolver, normalizeActionUnits, normalizeConditionUnits, normalizeRecipeUnits, } from './normalize-units.js';
@@ -15,9 +15,8 @@
15
15
  * (instants) and state leaves (durations). It replaces the flat trigger list
16
16
  * plus the separate condition tree; the firing rule is in that file and in
17
17
  * ADR "one tree".
18
- * - **Actions** — `NcRuleActionSchema`'s two steps, plus the `{kind:'code'}`
19
- * fragment of §3.2.2. See {@link AutomationActionSchema} for the ONE place
20
- * this had to diverge from "verbatim", and why.
18
+ * - **Actions** — the `wait` and `cap` steps, plus the `{kind:'code'}`
19
+ * fragment of §3.2.2. See {@link AutomationActionSchema}.
21
20
  *
22
21
  * A recipe stored in the old shape (`triggers` + `conditions`) still LOADS:
23
22
  * {@link AutomationRecipeSchema} (the parse-anywhere schema) converts it on parse. Nothing writes it.
@@ -29,22 +28,14 @@ import { type AutomationWhen } from './when.js';
29
28
  export type { QuantityValue };
30
29
  export type { ActionTarget };
31
30
  /**
32
- * One action step.
31
+ * One action step: `wait`, or a `cap` call.
33
32
  *
34
- * `wait` and `cap` are `NcRuleActionSchema`'s two members, kept structurally
35
- * identical so `NcRuleActionRunner` runs them unchanged — its device-scope
36
- * check, stop-at-first-failure and per-sequence throttle are the whole reason
37
- * to reuse it, and none of them are re-implemented here.
38
- *
39
- * **The one divergence, and it is forced.** `NcRuleActionSchema.cap.deviceId` is
40
- * a literal `z.number().int()`, and the NC runner's own `RunSequencesInput`
41
- * documents its subject device as *"for the log tag, never for routing"*. So an
42
- * NC action can never target the device that triggered it — which is fine for
43
- * the NC (its rules already scope to a device) and fatal for an automation
44
- * ("sound the siren of the camera that saw the person"). `deviceId` therefore
45
- * also accepts `{ $var }`, resolved from the run's `vars` bag BEFORE the runner
46
- * is called. The runner still receives a number and is untouched; the
47
- * resolution is the recipe's job, not the runner's.
33
+ * A cap step's target is who it acts on (D983: `devices`, a `domain`, or a
34
+ * `{ $var }` resolved from the run's variables); the legacy `deviceId` is still
35
+ * READ, never written. The step runner (`runSteps`) owns the device-scope
36
+ * check, the stop-at-first-failure and the variable substitution, once, for
37
+ * every caller — automations, Actions, and the notification centre, which runs
38
+ * only Actions (planning#473).
48
39
  */
49
40
  export declare const AutomationWaitStepSchema: z.ZodObject<{
50
41
  kind: z.ZodLiteral<"wait">;
@@ -99,6 +99,8 @@ export declare class StepTemplateError extends Error {
99
99
  readonly reason: string;
100
100
  constructor(reason: string, message: string);
101
101
  }
102
+ /** `text` with every `{{vars.x}}` slot (the only slot the run-time holds) replaced by `replacement`. */
103
+ export declare function holdVarSlots(text: string, replacement: string): string;
102
104
  /** True when a string, once its `{{vars.x}}` slots are set aside, still carries template markup. */
103
105
  export declare function carriesDeviceTemplate(text: string): boolean;
104
106
  /** Every string in `value` that is a device template (D1021), de-duplicated, in walk order. */
@@ -121,6 +121,7 @@ export declare const actionSourceCapability: {
121
121
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
122
122
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
123
  }, z.core.$strip>>>;
124
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
124
125
  status: z.ZodObject<{
125
126
  isRunning: z.ZodBoolean;
126
127
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -110,6 +110,7 @@ export declare const actionsCapability: {
110
110
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
111
111
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
112
112
  }, z.core.$strip>>>;
113
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
113
114
  status: z.ZodObject<{
114
115
  isRunning: z.ZodBoolean;
115
116
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -223,6 +224,7 @@ export declare const actionsCapability: {
223
224
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
224
225
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
226
  }, z.core.$strip>>>;
227
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
226
228
  status: z.ZodObject<{
227
229
  isRunning: z.ZodBoolean;
228
230
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -532,6 +534,7 @@ export declare const actionsCapability: {
532
534
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
533
535
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
534
536
  }, z.core.$strip>>>;
537
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
535
538
  }, z.core.$strip>;
536
539
  }, z.core.$strip>, z.ZodObject<{
537
540
  action: z.ZodObject<{
@@ -633,6 +636,7 @@ export declare const actionsCapability: {
633
636
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
634
637
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
635
638
  }, z.core.$strip>>>;
639
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
636
640
  status: z.ZodObject<{
637
641
  isRunning: z.ZodBoolean;
638
642
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -742,6 +746,7 @@ export declare const actionsCapability: {
742
746
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
743
747
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
744
748
  }, z.core.$strip>>>>;
749
+ minDelaySec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
745
750
  }, z.core.$strip>;
746
751
  }, z.core.$strip>, z.ZodObject<{
747
752
  action: z.ZodObject<{
@@ -843,6 +848,7 @@ export declare const actionsCapability: {
843
848
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
844
849
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
845
850
  }, z.core.$strip>>>;
851
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
846
852
  status: z.ZodObject<{
847
853
  isRunning: z.ZodBoolean;
848
854
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -967,6 +973,7 @@ export declare const actionsCapability: {
967
973
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
968
974
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
969
975
  }, z.core.$strip>>>;
976
+ minDelaySec: z.ZodOptional<z.ZodNumber>;
970
977
  status: z.ZodObject<{
971
978
  isRunning: z.ZodBoolean;
972
979
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -110,7 +110,7 @@ export { BoardKeyFailureReasonSchema, boardKeySourceCapability } from './board-k
110
110
  export type { NetworkAccessStatus, NetworkEndpoint, NetworkTunnelStartedData, } from './network-access.cap.js';
111
111
  export { NetworkAccessStatusSchema, NetworkEndpointSchema, NetworkTunnelStartedDataSchema, networkAccessCapability, } from './network-access.cap.js';
112
112
  export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DeliveryParam, DeliveryParamSchema, type DeliveryParamValue, DeliveryParamValueSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, type NotificationActionIcon, NotificationActionIconSchema, NotificationActionSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, type ProbeTargetConfigResult, ProbeTargetConfigResultSchema, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
113
- export { consumableLowPercentOf, type INotificationRulesProvider, isRetiredClearKey, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_RULE_CLEARABLE_KEYS, NC_RULE_RETIRED_CLEAR_KEYS, NC_SNOOZE_MAX_MINUTES, type NcActionBinding, NcActionBindingSchema, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmPostTriggeredAction, NcAlarmPostTriggeredActionSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcHookBindings, NcHookBindingsSchema, type NcLegacyRuleActionSequence, NcLegacyRuleActionSequenceSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaImage, NcMediaImageSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSharedSequence, type NcSharedSequenceInput, NcSharedSequenceInputSchema, NcSharedSequenceSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, NC_STATE_SUMMARY_SECTION_IDS, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, type NcSystemEventDeliveryToggle, NcSystemEventDeliveryToggleSchema, type NcSystemEventModesDelivery, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateDefault, NcTemplateDefaultSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
113
+ export { consumableLowPercentOf, type INotificationRulesProvider, isRetiredClearKey, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_RULE_CLEARABLE_KEYS, NC_RULE_RETIRED_CLEAR_KEYS, NC_SNOOZE_MAX_MINUTES, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmPostTriggeredAction, NcAlarmPostTriggeredActionSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaImage, NcMediaImageSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleActions, NcRuleActionsSchema, NcActionIdSchema, type NcHookActionIds, NcHookActionIdsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, NC_STATE_SUMMARY_SECTION_IDS, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, type NcSystemEventDeliveryToggle, NcSystemEventDeliveryToggleSchema, type NcSystemEventModesDelivery, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateDefault, NcTemplateDefaultSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
114
114
  export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
115
115
  export { type IIntegrationInstancesProvider, type IntegrationInstance, type IntegrationInstanceDescription, IntegrationInstanceDescriptionSchema, type IntegrationInstanceDiscovery, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, type IntegrationInstanceKind, type IntegrationInstanceLink, IntegrationInstanceLinkSchema, IntegrationInstanceKindSchema, type IntegrationInstanceMode, IntegrationInstanceModeSchema, type IntegrationInstancePatch, IntegrationInstancePatchSchema, type IntegrationInstanceRole, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, type IntegrationInstanceStatus, IntegrationInstanceStatusSchema, integrationInstancesCapability, } from './integration-instances.cap.js';
116
116
  export { AnalyticsLtsSeriesSchema, type AudioEvent, type AudioEventDraft, AudioEventSchema, type DetectionSource, DetectionSourceSchema, EVENT_DENSITY_BATCH_MAX, type EventDensityBucket, EventDensityBucketSchema, type EventDensityForDevice, EventDensityForDeviceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventMediaKindBreakdown, type EventMediaKindFootprint, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type KeyEventsForDevice, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, LTS_SCOPE_CLASS_SEPARATOR, type LtsBucket, LtsBucketSchema, MAX_TRACK_DEBUG_NOTE_LEN, type MediaFile, type MediaFileBytes, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileKindEnum, type MediaFileRef, MediaFileRefSchema, MediaFileSchema, type MotionEvent, type MotionEventDraft, MotionEventSchema, type ObjectEvent, type ObjectEventDraft, ObjectEventSchema, occupancyScope, parseOccupancyScope, pipelineAnalyticsCapability, type RebuildObjectEmbeddingsRefusal, RebuildObjectEmbeddingsRefusalSchema, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainBoxReview, RetrainBoxReviewSchema, type RetrainDismissed, RetrainDismissedSchema, type RetrainFrameReview, RetrainFrameReviewSchema, type RetrainOrigin, RetrainOriginSchema, type RetrainReviewStatus, RetrainReviewStatusSchema, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, type RetrainAnnotationSource, RetrainAnnotationSourceSchema, type RetrainArchiveResult, RetrainArchiveResultSchema, type RetrainArchiveTarget, RetrainArchiveTargetSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainExportFilter, RetrainExportFilterSchema, type RetrainExportLayout, RetrainExportLayoutSchema, type AddRetrainFrameFromRecordingResult, AddRetrainFrameFromRecordingResultSchema, type RetrainDatasetSelection, RetrainDatasetSelectionSchema, type RetrainDatasetStats, RetrainDatasetStatsSchema, type RetrainDatasetVersion, RetrainDatasetVersionSchema, type RetrainTrainingCorpusResolveResult, RetrainTrainingCorpusResolveResultSchema, type RetrainTrainingCorpusSelection, RetrainTrainingCorpusSelectionSchema, type RetrainAssistProfile, RetrainAssistProfileSchema, type RetrainLlmAssistResult, RetrainLlmAssistResultSchema, type RetrainLlmProposal, RetrainLlmProposalSchema, type RetrainLlmReview, RetrainLlmReviewSchema, type RetrainCollection, type RetrainCollectionCreateResult, RetrainCollectionCreateResultSchema, type RetrainCollectionRenameResult, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, type RetrainCorpusFilter, RetrainCorpusFilterSchema, type RetrainCorpusKpi, RetrainCorpusKpiSchema, type RetrainCorpusKpiCameraRow, RetrainCorpusKpiCameraRowSchema, type RetrainCorpusPage, RetrainCorpusPageSchema, type RetrainCorpusPageFrame, RetrainCorpusPageFrameSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, type RetrainFrameOrigin, RetrainFrameOriginSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainFrameWorkState, RetrainFrameWorkStateSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainPipelineBox, RetrainPipelineBoxSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type RetrainVerdict, RetrainVerdictSchema, type RetrainVerdictSubject, RetrainVerdictSubjectSchema, type RetrainVerdictValue, RetrainVerdictValueSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackPlacement, TrackPlacementSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';