@camstack/types 1.2.304 → 1.2.306

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.
@@ -26,6 +26,12 @@ export interface FieldValueOutcome {
26
26
  readonly reason: string | null;
27
27
  /** When a windowed builtin's answer flips on its own; null when nothing will. */
28
28
  readonly deadline: number | null;
29
+ /**
30
+ * The value is the field's LAST output, held over a source that did not
31
+ * answer: the expression did not run. Set by the composer for an
32
+ * edge-latched (`rose`) field (D713) — a recovery from it is a recovery from unavailable.
33
+ */
34
+ readonly held?: true;
29
35
  }
30
36
  export interface FieldUnavailableOutcome {
31
37
  readonly state: 'unavailable';
@@ -35,6 +41,12 @@ export interface FieldUnavailableOutcome {
35
41
  readonly fatal: boolean;
36
42
  /** Fatal, or a non-fatal unavailability that is an answer (see the header). Absent = not confirmed. */
37
43
  readonly confirmed?: boolean;
44
+ /**
45
+ * Every source answered and the expression failed on the values. Absent =
46
+ * a source did not answer. Only the latter is an outage a stateful edge
47
+ * must re-baseline after (D716).
48
+ */
49
+ readonly expressionFailed?: true;
38
50
  }
39
51
  export type FieldOutcome = FieldValueOutcome | FieldUnavailableOutcome;
40
52
  export interface EvaluateCompositionFieldInput {
@@ -88,6 +88,8 @@ export declare const LOCATION_ICON_FALLBACK: LocationIconId;
88
88
  /** Wire/storage schema for one icon id. */
89
89
  export declare const LocationIconIdSchema: z.ZodEnum<{
90
90
  package: "package";
91
+ car: "car";
92
+ umbrella: "umbrella";
91
93
  "map-pin": "map-pin";
92
94
  house: "house";
93
95
  "door-open": "door-open";
@@ -96,11 +98,9 @@ export declare const LocationIconIdSchema: z.ZodEnum<{
96
98
  "bed-double": "bed-double";
97
99
  bath: "bath";
98
100
  briefcase: "briefcase";
99
- car: "car";
100
101
  "circle-parking": "circle-parking";
101
102
  route: "route";
102
103
  trees: "trees";
103
- umbrella: "umbrella";
104
104
  "waves-ladder": "waves-ladder";
105
105
  fence: "fence";
106
106
  warehouse: "warehouse";
@@ -122,6 +122,8 @@ export declare const LocationIconAssignmentSchema: z.ZodObject<{
122
122
  locationKey: z.ZodString;
123
123
  icon: z.ZodEnum<{
124
124
  package: "package";
125
+ car: "car";
126
+ umbrella: "umbrella";
125
127
  "map-pin": "map-pin";
126
128
  house: "house";
127
129
  "door-open": "door-open";
@@ -130,11 +132,9 @@ export declare const LocationIconAssignmentSchema: z.ZodObject<{
130
132
  "bed-double": "bed-double";
131
133
  bath: "bath";
132
134
  briefcase: "briefcase";
133
- car: "car";
134
135
  "circle-parking": "circle-parking";
135
136
  route: "route";
136
137
  trees: "trees";
137
- umbrella: "umbrella";
138
138
  "waves-ladder": "waves-ladder";
139
139
  fence: "fence";
140
140
  warehouse: "warehouse";
@@ -45,6 +45,8 @@ export declare const SiteZoneSchema: z.ZodObject<{
45
45
  label: z.ZodString;
46
46
  icon: z.ZodNullable<z.ZodEnum<{
47
47
  package: "package";
48
+ car: "car";
49
+ umbrella: "umbrella";
48
50
  "map-pin": "map-pin";
49
51
  house: "house";
50
52
  "door-open": "door-open";
@@ -53,11 +55,9 @@ export declare const SiteZoneSchema: z.ZodObject<{
53
55
  "bed-double": "bed-double";
54
56
  bath: "bath";
55
57
  briefcase: "briefcase";
56
- car: "car";
57
58
  "circle-parking": "circle-parking";
58
59
  route: "route";
59
60
  trees: "trees";
60
- umbrella: "umbrella";
61
61
  "waves-ladder": "waves-ladder";
62
62
  fence: "fence";
63
63
  warehouse: "warehouse";
package/dist/index.d.ts CHANGED
@@ -152,6 +152,8 @@ export * from './device-extension/index.js';
152
152
  export * from './composition/index.js';
153
153
  export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, getAudioMacroClassIds, mapAudioLabelToMacro, YAMNET_TO_MACRO, } from './catalogs/audio-classmap.js';
154
154
  export { COCO_80_LABELS, COCO_TO_MACRO, DETECTION_MACRO_CLASSES, isDetectionMacroClass, MACRO_LABELS, } from './catalogs/coco-classmap.js';
155
+ export { buildFrigateClassMap, type ClassMapMacroTarget, FRIGATE_PLUS_TO_MACRO, FRIGATE_PLUS_UNMAPPED_LABELS, type FrigateLabelFields, frigateLabelFields, } from './catalogs/frigate-plus-classmap.js';
156
+ export { type ClassifierFillDeclaration, DEFAULT_LABEL_LINK_POLICY, deriveClassifierFills, FILLABLE_STEP_IDS, FILLABLE_STEP_MACRO, FILLABLE_STEP_VOCABULARIES, type FillableStepId, fillFor, isCocoLabelmap, isFillableStepId, LABEL_LINK_POLICIES, LABEL_LINK_SETTING_KEY, type LabelLinkDecision, type LabelLinkPolicy, type LinkedStepState, LINKED_LABEL_STEP_PREFIX, linkedLabelStepId, linkedStepOf, readLabelLinkPolicy, resolveLabelLink, } from './catalogs/classifier-fill.js';
155
157
  export { DEVICE_STATE_READERS, readDeviceStateFrom, stateVocabularyFor, } from './catalogs/device-state-vocabulary.js';
156
158
  export { colorForKind, DEFAULT_EVENT_COLOR, EVENT_TAXONOMY, type EventTaxonomyCategory, type EventTaxonomyEntry, type EventTaxonomyLevel, getTaxonomyEntry, subKindsOf, TAXONOMY_COLORS, } from './catalogs/event-taxonomy.js';
157
159
  export { buildNcTaxonomy, NC_TAXONOMY, type NcTaxonomy, type NcTaxonomyEntry, NcTaxonomyEntrySchema, NcTaxonomySchema, } from './catalogs/nc-taxonomy.js';
@@ -244,7 +246,7 @@ export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSe
244
246
  export { isScheduleActive } from './notification/schedule.js';
245
247
  export { isAlarmControllableCap, NC_ALARM_CONTROLLABLE_CAPS, NC_ALARM_OPENING_EVENT_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, type NcAlarmControllableCap, type NcAlarmMembershipSubject, type NcAlarmOpeningEventKind, ruleAutoTriggersAlarm, ruleBelongsToAlarm, ruleGatedOnArmedState, sensorTransitionNeverFires, } from './notification/alarm-membership.js';
246
248
  export { alarmDeviceBlocksArming, alarmDeviceSecureOnArm, type AlarmDeviceBlocksInput, type AlarmDeviceSecureOnArmInput, type NcAlarmSecureActuation, secureActuationFor, } from './notification/alarm-controllable.js';
247
- export { alarmPatchLanded, applyBlockingEdit, applyModeDelaysEdits, applyModeDeviceListEdit, applyNonBlockingEdit, applySecureOnArmEdit, derivePostTriggeredAction, NC_ALARM_DELAY_FIELDS, type NcAlarmDelayField, type NcAlarmDelaySettings, type NcAlarmDelaySource, type NcAlarmModeDeviceListEditResult, type NcAlarmNonBlockingEditResult, type NcAlarmResolvedDelays, resolveModeDelays, } from './notification/alarm-settings.js';
249
+ export { alarmPatchLanded, applyBlockingEdit, applyModeDelaysEdits, applyModeDeviceListEdit, applyNonBlockingEdit, applySecureOnArmEdit, derivePostTriggeredAction, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC, NC_ALARM_DELAY_FIELDS, NC_ALARM_NOTIFY_FIELDS, type NcAlarmDelayField, type NcAlarmDelaySettings, type NcAlarmDelaySource, type NcAlarmModeDeviceListEditResult, type NcAlarmModeNotifyPolicy, type NcAlarmNonBlockingEditResult, type NcAlarmNotifyField, type NcAlarmResolvedDelays, resolveModeDelays, resolveModeNotifyPolicy, } from './notification/alarm-settings.js';
248
250
  export { activateAlarmProfile, alarmProfileById, cloneAlarmSettings, createAlarmProfile, deleteAlarmProfile, ensureAlarmProfiles, isDefaultAlarmProfileId, NC_ALARM_DEFAULT_PROFILE_ID, NC_ALARM_DEFAULT_PROFILE_NAME, NC_ALARM_SYSTEM_DEFAULT_DELAYS, ncAlarmSystemDefaultSettings, type NcAlarmProfileCreateSource, type NcAlarmProfileRecord, type NcAlarmProfilesMutationResult, type NcAlarmProfilesRefuseReason, type NcAlarmProfilesState, renameAlarmProfile, syncActiveAlarmProfileSettings, } from './notification/alarm-profiles.js';
249
251
  export { NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, sensorRaisedOf, sensorTransitionOffered, } from './notification/sensor-raised.js';
250
252
  export { NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, isHeldBackTemplateVar, isKnownTemplateVar, servedTemplateVars, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, } from './notification/template-vars.js';