@camstack/types 1.2.255 → 1.2.256
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/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +149 -0
- package/dist/capabilities/osd-manager.cap.d.ts +32 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +254 -1
- package/dist/index.mjs +243 -2
- package/dist/notification/alarm-membership.d.ts +43 -0
- package/dist/notification/sensor-raised.d.ts +45 -0
- package/dist/{sleep-D_4W7xuQ.mjs → sleep-DU7mu4wb.mjs} +1 -0
- package/dist/{sleep-BAgDk7I9.js → sleep-DtomDrRW.js} +1 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-DtomDrRW.js");
|
|
3
3
|
const require_event_category = require("./event-category-BVfsrBYA.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as DeviceType, At as DATAPLANE_SECRET_HEADER, Dt as PEER_BYTES_STALL_MS, Et as PEER_BYTES_MAX_OUTSTANDING, G as readNodePin, J as ReadinessTimeoutError, L as expandCapMethods, Lt as emitReadiness, Mt as DisposerChain, Nt as BaseAddon, Ot as PEER_BYTES_TICKET_TTL_MS, Pt as normalizeAddonInitResult, S as DEVICE_CHILDREN_BATCH_MAX, T as describeCustomActions, Tt as PEER_BYTES_CHUNK_BYTES, W as nodePin, Z as scopeKey, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, j as adminUiCapability, m as createDeviceProxy, p as isDeviceScopedCap, q as ReadinessRegistry, s as asString, t as sleep, u as parseJsonUnknown, x as viewerUiCapability } from "./sleep-
|
|
1
|
+
import { A as DeviceType, At as DATAPLANE_SECRET_HEADER, Dt as PEER_BYTES_STALL_MS, Et as PEER_BYTES_MAX_OUTSTANDING, G as readNodePin, J as ReadinessTimeoutError, L as expandCapMethods, Lt as emitReadiness, Mt as DisposerChain, Nt as BaseAddon, Ot as PEER_BYTES_TICKET_TTL_MS, Pt as normalizeAddonInitResult, S as DEVICE_CHILDREN_BATCH_MAX, T as describeCustomActions, Tt as PEER_BYTES_CHUNK_BYTES, W as nodePin, Z as scopeKey, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, j as adminUiCapability, m as createDeviceProxy, p as isDeviceScopedCap, q as ReadinessRegistry, s as asString, t as sleep, u as parseJsonUnknown, x as viewerUiCapability } from "./sleep-DU7mu4wb.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-BVDXG4tB.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -82,7 +82,7 @@ export { AddBrokerInputSchema, BrokerConnectionDetailsSchema, BrokerInfoSchema,
|
|
|
82
82
|
export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.js';
|
|
83
83
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
84
84
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, type NotificationActionIcon, NotificationActionIconSchema, NotificationActionSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, 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';
|
|
85
|
-
export { type INotificationRulesProvider, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, 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_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, 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 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, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, NC_RULE_CLEARABLE_KEYS, NcRuleKindSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, NcTemplatePreviewSchema, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
85
|
+
export { type INotificationRulesProvider, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, 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_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, 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 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, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, NC_RULE_CLEARABLE_KEYS, NcRuleKindSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, 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 NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, NcTemplatePreviewSchema, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
86
86
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
87
87
|
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 RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, type SummariesPage, type Summary, type SummaryDetail, type SummaryListItem, SummarySchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, 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';
|
|
88
88
|
export type { NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
|
|
@@ -347,6 +347,20 @@ export declare const NcCrossingSchema: z.ZodEnum<{
|
|
|
347
347
|
exit: "exit";
|
|
348
348
|
}>;
|
|
349
349
|
export type NcCrossing = z.infer<typeof NcCrossingSchema>;
|
|
350
|
+
/**
|
|
351
|
+
* Which edge of a BOOLEAN sensor fires a device-event rule (D640).
|
|
352
|
+
* - `raised` — the sensor went high: water detected, smoke, open, tampered.
|
|
353
|
+
* - `cleared` — it went back: dry, clear, closed.
|
|
354
|
+
* - absent — both edges, which is what every rule authored before this did.
|
|
355
|
+
*
|
|
356
|
+
* There is no third member for "both": absence already says it, and a value
|
|
357
|
+
* that means the same as absence is a second way to write one rule.
|
|
358
|
+
*/
|
|
359
|
+
export declare const NcSensorTransitionSchema: z.ZodEnum<{
|
|
360
|
+
raised: "raised";
|
|
361
|
+
cleared: "cleared";
|
|
362
|
+
}>;
|
|
363
|
+
export type NcSensorTransition = z.infer<typeof NcSensorTransitionSchema>;
|
|
350
364
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
351
365
|
export declare const NcZoneConditionSchema: z.ZodObject<{
|
|
352
366
|
ids: z.ZodArray<z.ZodString>;
|
|
@@ -588,6 +602,7 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
588
602
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
589
603
|
}, z.core.$strip>>;
|
|
590
604
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
605
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
591
606
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
592
607
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
608
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -623,6 +638,10 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
623
638
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
624
639
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
640
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
642
|
+
raised: "raised";
|
|
643
|
+
cleared: "cleared";
|
|
644
|
+
}>>;
|
|
626
645
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
627
646
|
both: "both";
|
|
628
647
|
delivered: "delivered";
|
|
@@ -904,6 +923,7 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
904
923
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
905
924
|
}, z.core.$strip>>;
|
|
906
925
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
926
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
907
927
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
908
928
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
909
929
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -939,6 +959,10 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
939
959
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
940
960
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
941
961
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
962
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
963
|
+
raised: "raised";
|
|
964
|
+
cleared: "cleared";
|
|
965
|
+
}>>;
|
|
942
966
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
943
967
|
both: "both";
|
|
944
968
|
delivered: "delivered";
|
|
@@ -1267,6 +1291,7 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1267
1291
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
1268
1292
|
}, z.core.$strip>>;
|
|
1269
1293
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1294
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1270
1295
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1271
1296
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1272
1297
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1302,6 +1327,10 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1302
1327
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1303
1328
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1304
1329
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1330
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
1331
|
+
raised: "raised";
|
|
1332
|
+
cleared: "cleared";
|
|
1333
|
+
}>>;
|
|
1305
1334
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1306
1335
|
both: "both";
|
|
1307
1336
|
delivered: "delivered";
|
|
@@ -1559,6 +1588,7 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
1559
1588
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
1560
1589
|
}, z.core.$strip>>;
|
|
1561
1590
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1591
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1562
1592
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1563
1593
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1564
1594
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1594,6 +1624,10 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
1594
1624
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1595
1625
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1596
1626
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1627
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
1628
|
+
raised: "raised";
|
|
1629
|
+
cleared: "cleared";
|
|
1630
|
+
}>>;
|
|
1597
1631
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1598
1632
|
both: "both";
|
|
1599
1633
|
delivered: "delivered";
|
|
@@ -1751,6 +1785,7 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1751
1785
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
1752
1786
|
}, z.core.$strip>>;
|
|
1753
1787
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1788
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1754
1789
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1755
1790
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1756
1791
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1786,6 +1821,10 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1786
1821
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1787
1822
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1788
1823
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1824
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
1825
|
+
raised: "raised";
|
|
1826
|
+
cleared: "cleared";
|
|
1827
|
+
}>>;
|
|
1789
1828
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1790
1829
|
both: "both";
|
|
1791
1830
|
delivered: "delivered";
|
|
@@ -2339,9 +2378,11 @@ export declare const NcConditionDescriptorSchema: z.ZodObject<{
|
|
|
2339
2378
|
occupancy: "occupancy";
|
|
2340
2379
|
deviceState: "deviceState";
|
|
2341
2380
|
schedule: "schedule";
|
|
2381
|
+
sensorTransition: "sensorTransition";
|
|
2342
2382
|
packagePhase: "packagePhase";
|
|
2343
2383
|
systemEvent: "systemEvent";
|
|
2344
2384
|
deviceIdList: "deviceIdList";
|
|
2385
|
+
deviceIdExcludeList: "deviceIdExcludeList";
|
|
2345
2386
|
stringList: "stringList";
|
|
2346
2387
|
number01: "number01";
|
|
2347
2388
|
sourceSelect: "sourceSelect";
|
|
@@ -2577,6 +2618,52 @@ export declare const NcHistoryFilterSchema: z.ZodObject<{
|
|
|
2577
2618
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2578
2619
|
}, z.core.$strip>;
|
|
2579
2620
|
export type NcHistoryFilter = z.infer<typeof NcHistoryFilterSchema>;
|
|
2621
|
+
/**
|
|
2622
|
+
* The newest delivery row of ONE rule — the "Last run" of a rules table.
|
|
2623
|
+
*
|
|
2624
|
+
* A projection of the same outbox rows `getHistory` returns, so it records
|
|
2625
|
+
* DELIVERIES only: a throttled or unmatched evaluation never produced a row
|
|
2626
|
+
* and is not a run here. When one fire reached several targets (several rows
|
|
2627
|
+
* at the same `lastAt`), `status` is the least successful of them
|
|
2628
|
+
* (`dead` > `pending` > `sent`): "the last run delivered" must be true for
|
|
2629
|
+
* every target it names.
|
|
2630
|
+
*/
|
|
2631
|
+
export declare const NcRuleLastRunSchema: z.ZodObject<{
|
|
2632
|
+
ruleId: z.ZodString;
|
|
2633
|
+
lastAt: z.ZodNumber;
|
|
2634
|
+
status: z.ZodEnum<{
|
|
2635
|
+
pending: "pending";
|
|
2636
|
+
sent: "sent";
|
|
2637
|
+
dead: "dead";
|
|
2638
|
+
}>;
|
|
2639
|
+
deviceId: z.ZodNumber;
|
|
2640
|
+
}, z.core.$strip>;
|
|
2641
|
+
export type NcRuleLastRun = z.infer<typeof NcRuleLastRunSchema>;
|
|
2642
|
+
/**
|
|
2643
|
+
* Every rule's last run, in one answer.
|
|
2644
|
+
*
|
|
2645
|
+
* A rule ABSENT from `runs` produced no delivery inside `horizonMs` — how far
|
|
2646
|
+
* back this answer looked, in ms before the hub's now. It is the outbox prune
|
|
2647
|
+
* window (7 days by default, operator-configurable), NARROWED when the read hit
|
|
2648
|
+
* its row bound: the answer never claims a window it did not read. `null` means
|
|
2649
|
+
* the operator keeps the outbox forever AND the read reached its end, so absent
|
|
2650
|
+
* means "never on record". A UI derives its "not in the last N days" from this
|
|
2651
|
+
* value, never from a constant — and only when the call ANSWERED (D315).
|
|
2652
|
+
*/
|
|
2653
|
+
export declare const NcRuleLastRunsSchema: z.ZodObject<{
|
|
2654
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
2655
|
+
ruleId: z.ZodString;
|
|
2656
|
+
lastAt: z.ZodNumber;
|
|
2657
|
+
status: z.ZodEnum<{
|
|
2658
|
+
pending: "pending";
|
|
2659
|
+
sent: "sent";
|
|
2660
|
+
dead: "dead";
|
|
2661
|
+
}>;
|
|
2662
|
+
deviceId: z.ZodNumber;
|
|
2663
|
+
}, z.core.$strip>>;
|
|
2664
|
+
horizonMs: z.ZodNullable<z.ZodNumber>;
|
|
2665
|
+
}, z.core.$strip>;
|
|
2666
|
+
export type NcRuleLastRuns = z.infer<typeof NcRuleLastRunsSchema>;
|
|
2580
2667
|
/**
|
|
2581
2668
|
* What a snooze covers. Broader scopes win when several overlap, so one window
|
|
2582
2669
|
* leaves ONE digest rather than a rule snooze and a whole-feed snooze both
|
|
@@ -2748,6 +2835,7 @@ export declare const NcAlarmModeCoverageSchema: z.ZodObject<{
|
|
|
2748
2835
|
ruleCount: z.ZodNumber;
|
|
2749
2836
|
allDevices: z.ZodBoolean;
|
|
2750
2837
|
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2838
|
+
allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
2751
2839
|
skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2752
2840
|
deviceId: z.ZodNumber;
|
|
2753
2841
|
reason: z.ZodEnum<{
|
|
@@ -2877,6 +2965,7 @@ export declare const NcAlarmConfigSchema: z.ZodObject<{
|
|
|
2877
2965
|
ruleCount: z.ZodNumber;
|
|
2878
2966
|
allDevices: z.ZodBoolean;
|
|
2879
2967
|
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2968
|
+
allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
2880
2969
|
skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2881
2970
|
deviceId: z.ZodNumber;
|
|
2882
2971
|
reason: z.ZodEnum<{
|
|
@@ -3043,6 +3132,7 @@ export declare const notificationRulesCapability: {
|
|
|
3043
3132
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
3044
3133
|
}, z.core.$strip>>;
|
|
3045
3134
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3135
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3046
3136
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3047
3137
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3048
3138
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3078,6 +3168,10 @@ export declare const notificationRulesCapability: {
|
|
|
3078
3168
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
3079
3169
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3080
3170
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3171
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
3172
|
+
raised: "raised";
|
|
3173
|
+
cleared: "cleared";
|
|
3174
|
+
}>>;
|
|
3081
3175
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
3082
3176
|
both: "both";
|
|
3083
3177
|
delivered: "delivered";
|
|
@@ -3317,6 +3411,7 @@ export declare const notificationRulesCapability: {
|
|
|
3317
3411
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
3318
3412
|
}, z.core.$strip>>;
|
|
3319
3413
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3414
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3320
3415
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3321
3416
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3322
3417
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3352,6 +3447,10 @@ export declare const notificationRulesCapability: {
|
|
|
3352
3447
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
3353
3448
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3354
3449
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3450
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
3451
|
+
raised: "raised";
|
|
3452
|
+
cleared: "cleared";
|
|
3453
|
+
}>>;
|
|
3355
3454
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
3356
3455
|
both: "both";
|
|
3357
3456
|
delivered: "delivered";
|
|
@@ -3589,6 +3688,7 @@ export declare const notificationRulesCapability: {
|
|
|
3589
3688
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
3590
3689
|
}, z.core.$strip>>;
|
|
3591
3690
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3691
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3592
3692
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3593
3693
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3594
3694
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3624,6 +3724,10 @@ export declare const notificationRulesCapability: {
|
|
|
3624
3724
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
3625
3725
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3626
3726
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3727
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
3728
|
+
raised: "raised";
|
|
3729
|
+
cleared: "cleared";
|
|
3730
|
+
}>>;
|
|
3627
3731
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
3628
3732
|
both: "both";
|
|
3629
3733
|
delivered: "delivered";
|
|
@@ -3855,6 +3959,7 @@ export declare const notificationRulesCapability: {
|
|
|
3855
3959
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
3856
3960
|
}, z.core.$strip>>;
|
|
3857
3961
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3962
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3858
3963
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3859
3964
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3860
3965
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3890,6 +3995,10 @@ export declare const notificationRulesCapability: {
|
|
|
3890
3995
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
3891
3996
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3892
3997
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3998
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
3999
|
+
raised: "raised";
|
|
4000
|
+
cleared: "cleared";
|
|
4001
|
+
}>>;
|
|
3893
4002
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
3894
4003
|
both: "both";
|
|
3895
4004
|
delivered: "delivered";
|
|
@@ -4218,6 +4327,7 @@ export declare const notificationRulesCapability: {
|
|
|
4218
4327
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
4219
4328
|
}, z.core.$strip>>;
|
|
4220
4329
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4330
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4221
4331
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4222
4332
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4223
4333
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4253,6 +4363,10 @@ export declare const notificationRulesCapability: {
|
|
|
4253
4363
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
4254
4364
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4255
4365
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4366
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
4367
|
+
raised: "raised";
|
|
4368
|
+
cleared: "cleared";
|
|
4369
|
+
}>>;
|
|
4256
4370
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
4257
4371
|
both: "both";
|
|
4258
4372
|
delivered: "delivered";
|
|
@@ -4408,6 +4522,7 @@ export declare const notificationRulesCapability: {
|
|
|
4408
4522
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
4409
4523
|
}, z.core.$strip>>;
|
|
4410
4524
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4525
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4411
4526
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4412
4527
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4413
4528
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4443,6 +4558,10 @@ export declare const notificationRulesCapability: {
|
|
|
4443
4558
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
4444
4559
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4445
4560
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4561
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
4562
|
+
raised: "raised";
|
|
4563
|
+
cleared: "cleared";
|
|
4564
|
+
}>>;
|
|
4446
4565
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
4447
4566
|
both: "both";
|
|
4448
4567
|
delivered: "delivered";
|
|
@@ -4762,6 +4881,7 @@ export declare const notificationRulesCapability: {
|
|
|
4762
4881
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
4763
4882
|
}, z.core.$strip>>;
|
|
4764
4883
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4884
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4765
4885
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4766
4886
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4767
4887
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4797,6 +4917,10 @@ export declare const notificationRulesCapability: {
|
|
|
4797
4917
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
4798
4918
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4799
4919
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4920
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
4921
|
+
raised: "raised";
|
|
4922
|
+
cleared: "cleared";
|
|
4923
|
+
}>>;
|
|
4800
4924
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
4801
4925
|
both: "both";
|
|
4802
4926
|
delivered: "delivered";
|
|
@@ -5055,9 +5179,11 @@ export declare const notificationRulesCapability: {
|
|
|
5055
5179
|
occupancy: "occupancy";
|
|
5056
5180
|
deviceState: "deviceState";
|
|
5057
5181
|
schedule: "schedule";
|
|
5182
|
+
sensorTransition: "sensorTransition";
|
|
5058
5183
|
packagePhase: "packagePhase";
|
|
5059
5184
|
systemEvent: "systemEvent";
|
|
5060
5185
|
deviceIdList: "deviceIdList";
|
|
5186
|
+
deviceIdExcludeList: "deviceIdExcludeList";
|
|
5061
5187
|
stringList: "stringList";
|
|
5062
5188
|
number01: "number01";
|
|
5063
5189
|
sourceSelect: "sourceSelect";
|
|
@@ -5386,6 +5512,27 @@ export declare const notificationRulesCapability: {
|
|
|
5386
5512
|
artifactIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5387
5513
|
}, z.core.$strip>>;
|
|
5388
5514
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
5515
|
+
/**
|
|
5516
|
+
* The newest delivery of every rule, in ONE bounded read of the outbox —
|
|
5517
|
+
* the "Last run" column. Never a `getHistory` per rule. A rule with no
|
|
5518
|
+
* delivery inside `horizonMs` is absent from `runs`; see
|
|
5519
|
+
* {@link NcRuleLastRunsSchema} for what absent means. A store that cannot
|
|
5520
|
+
* answer FAILS the call rather than answering "nothing ran". Admin-only,
|
|
5521
|
+
* like `getHistory`, of which it is a projection.
|
|
5522
|
+
*/
|
|
5523
|
+
readonly getRuleLastRuns: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
5524
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
5525
|
+
ruleId: z.ZodString;
|
|
5526
|
+
lastAt: z.ZodNumber;
|
|
5527
|
+
status: z.ZodEnum<{
|
|
5528
|
+
pending: "pending";
|
|
5529
|
+
sent: "sent";
|
|
5530
|
+
dead: "dead";
|
|
5531
|
+
}>;
|
|
5532
|
+
deviceId: z.ZodNumber;
|
|
5533
|
+
}, z.core.$strip>>;
|
|
5534
|
+
horizonMs: z.ZodNullable<z.ZodNumber>;
|
|
5535
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
5389
5536
|
/**
|
|
5390
5537
|
* Mint a fresh, externally-reachable URL for one artefact a history row
|
|
5391
5538
|
* named in {@link NcHistoryEntrySchema.shape.artifactIds} — the SAME
|
|
@@ -5529,6 +5676,7 @@ export declare const notificationRulesCapability: {
|
|
|
5529
5676
|
ruleCount: z.ZodNumber;
|
|
5530
5677
|
allDevices: z.ZodBoolean;
|
|
5531
5678
|
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
5679
|
+
allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
5532
5680
|
skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5533
5681
|
deviceId: z.ZodNumber;
|
|
5534
5682
|
reason: z.ZodEnum<{
|
|
@@ -5647,6 +5795,7 @@ export declare const notificationRulesCapability: {
|
|
|
5647
5795
|
ruleCount: z.ZodNumber;
|
|
5648
5796
|
allDevices: z.ZodBoolean;
|
|
5649
5797
|
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
5798
|
+
allDevicesExcept: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
5650
5799
|
skippedDevices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5651
5800
|
deviceId: z.ZodNumber;
|
|
5652
5801
|
reason: z.ZodEnum<{
|
|
@@ -103,6 +103,7 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
103
103
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
104
104
|
}, z.core.$strip>>;
|
|
105
105
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
106
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
106
107
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
108
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
109
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -138,6 +139,10 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
138
139
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
139
140
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
141
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
raised: "raised";
|
|
144
|
+
cleared: "cleared";
|
|
145
|
+
}>>;
|
|
141
146
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
142
147
|
both: "both";
|
|
143
148
|
delivered: "delivered";
|
|
@@ -279,6 +284,7 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
279
284
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
280
285
|
}, z.core.$strip>>;
|
|
281
286
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
287
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
282
288
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
289
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
290
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -314,6 +320,10 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
314
320
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
315
321
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
316
322
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
323
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
raised: "raised";
|
|
325
|
+
cleared: "cleared";
|
|
326
|
+
}>>;
|
|
317
327
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
318
328
|
both: "both";
|
|
319
329
|
delivered: "delivered";
|
|
@@ -527,6 +537,7 @@ export declare const osdManagerCapability: {
|
|
|
527
537
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
528
538
|
}, z.core.$strip>>;
|
|
529
539
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
540
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
530
541
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
531
542
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
532
543
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -562,6 +573,10 @@ export declare const osdManagerCapability: {
|
|
|
562
573
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
563
574
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
564
575
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
576
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
577
|
+
raised: "raised";
|
|
578
|
+
cleared: "cleared";
|
|
579
|
+
}>>;
|
|
565
580
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
566
581
|
both: "both";
|
|
567
582
|
delivered: "delivered";
|
|
@@ -697,9 +712,11 @@ export declare const osdManagerCapability: {
|
|
|
697
712
|
occupancy: "occupancy";
|
|
698
713
|
deviceState: "deviceState";
|
|
699
714
|
schedule: "schedule";
|
|
715
|
+
sensorTransition: "sensorTransition";
|
|
700
716
|
packagePhase: "packagePhase";
|
|
701
717
|
systemEvent: "systemEvent";
|
|
702
718
|
deviceIdList: "deviceIdList";
|
|
719
|
+
deviceIdExcludeList: "deviceIdExcludeList";
|
|
703
720
|
stringList: "stringList";
|
|
704
721
|
number01: "number01";
|
|
705
722
|
sourceSelect: "sourceSelect";
|
|
@@ -792,6 +809,7 @@ export declare const osdManagerCapability: {
|
|
|
792
809
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
793
810
|
}, z.core.$strip>>;
|
|
794
811
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
812
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
795
813
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
796
814
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
797
815
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -827,6 +845,10 @@ export declare const osdManagerCapability: {
|
|
|
827
845
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
828
846
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
829
847
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
848
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
849
|
+
raised: "raised";
|
|
850
|
+
cleared: "cleared";
|
|
851
|
+
}>>;
|
|
830
852
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
831
853
|
both: "both";
|
|
832
854
|
delivered: "delivered";
|
|
@@ -967,6 +989,7 @@ export declare const osdManagerCapability: {
|
|
|
967
989
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
968
990
|
}, z.core.$strip>>;
|
|
969
991
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
992
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
970
993
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
971
994
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
972
995
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1002,6 +1025,10 @@ export declare const osdManagerCapability: {
|
|
|
1002
1025
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1003
1026
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1004
1027
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1028
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
1029
|
+
raised: "raised";
|
|
1030
|
+
cleared: "cleared";
|
|
1031
|
+
}>>;
|
|
1005
1032
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1006
1033
|
both: "both";
|
|
1007
1034
|
delivered: "delivered";
|
|
@@ -1174,6 +1201,7 @@ export declare const osdManagerCapability: {
|
|
|
1174
1201
|
latched: z.ZodOptional<z.ZodBoolean>;
|
|
1175
1202
|
}, z.core.$strip>>;
|
|
1176
1203
|
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1204
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1177
1205
|
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1178
1206
|
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1179
1207
|
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1209,6 +1237,10 @@ export declare const osdManagerCapability: {
|
|
|
1209
1237
|
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1210
1238
|
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1211
1239
|
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1240
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
1241
|
+
raised: "raised";
|
|
1242
|
+
cleared: "cleared";
|
|
1243
|
+
}>>;
|
|
1212
1244
|
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1213
1245
|
both: "both";
|
|
1214
1246
|
delivered: "delivered";
|
|
@@ -4931,6 +4931,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4931
4931
|
output: z.infer<typeof notificationRulesCapability.methods.getHistory.output>;
|
|
4932
4932
|
meta: object;
|
|
4933
4933
|
}>;
|
|
4934
|
+
getRuleLastRuns: TRPCQueryProcedure<{
|
|
4935
|
+
input: {
|
|
4936
|
+
[x: string]: unknown;
|
|
4937
|
+
} & z.input<typeof notificationRulesCapability.methods.getRuleLastRuns.input>;
|
|
4938
|
+
output: z.infer<typeof notificationRulesCapability.methods.getRuleLastRuns.output>;
|
|
4939
|
+
meta: object;
|
|
4940
|
+
}>;
|
|
4934
4941
|
resolveArtifactUrl: TRPCQueryProcedure<{
|
|
4935
4942
|
input: {
|
|
4936
4943
|
[x: string]: unknown;
|
|
@@ -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:
|
|
9
|
+
* Coverage: 1178 method paths across 160 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
package/dist/index.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ export { type PreparedAction, type PreparedAttachment, type PreparedNotification
|
|
|
228
228
|
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
229
229
|
export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSection, droppedConditionsForKind, isAudioRule, isOccupancyRule, isSystemDelivery, isSystemRuleKind, kindsForDiscriminator, NC_AUDIO_SEED, NC_OCCUPANCY_DEFAULTS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SYSTEM_DELIVERY, NC_SYSTEM_RULE_KINDS, type NcDroppedCondition, type NcKindVisibilitySubject, type NcRuleEditorSection, type NcRuleEditorSectionKey, type NcRuleKind, type NcRuleKindSpec, type NcRuleOwningSectionKey, type NcRuleSection, type NcRuleSectionKey, type NcRuleSectionSubject, type NcRuleSeed, parseRuleSection, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, systemFamilyOfKind, systemRuleKindOf, } from './notification/rule-kinds.js';
|
|
230
230
|
export { isScheduleActive } from './notification/schedule.js';
|
|
231
|
+
export { NC_ALARM_OPENING_EVENT_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, type NcAlarmMembershipSubject, type NcAlarmOpeningEventKind, ruleBelongsToAlarm, sensorTransitionNeverFires, } from './notification/alarm-membership.js';
|
|
232
|
+
export { NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, sensorRaisedOf, sensorTransitionOffered, } from './notification/sensor-raised.js';
|
|
231
233
|
export { NC_TEMPLATE_VARS, isKnownTemplateVar, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, } from './notification/template-vars.js';
|
|
232
234
|
export { NC_SYSTEM_EVENT_FILTER_KEYS, type NcSystemEventFilterKey, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, } from './notification/system-event-filters.js';
|
|
233
235
|
export { describeSystemEventFamilyProblem, isSystemEventFamily, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, type NcSystemEventConditionFilterKey, type NcSystemEventFamily, type NcSystemEventFamilyProblem, type NcSystemEventFamilyVerdict, type NcSystemEventKindGroupSpec, systemEventFamilyOf, systemEventFamilyProblems, systemEventKindNamesOf, systemEventKindsOfFamily, } from './notification/system-event-families.js';
|