@camstack/types 1.2.254 → 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 +2 -2
- package/dist/capabilities/nodes.cap.d.ts +50 -0
- package/dist/capabilities/notification-rules.cap.d.ts +182 -3
- package/dist/capabilities/osd-manager.cap.d.ts +32 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +841 -59
- package/dist/index.mjs +803 -58
- package/dist/notification/alarm-membership.d.ts +43 -0
- package/dist/notification/rule-kinds.d.ts +71 -14
- package/dist/notification/scope-picker-items.d.ts +49 -0
- package/dist/notification/sensor-raised.d.ts +45 -0
- package/dist/notification/system-event-families.d.ts +76 -0
- package/dist/notification/template-vars.d.ts +22 -1
- 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
|
@@ -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";
|
|
@@ -4672,6 +4672,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4672
4672
|
output: z.infer<typeof nodesCapability.methods.topology.output>;
|
|
4673
4673
|
meta: object;
|
|
4674
4674
|
}>;
|
|
4675
|
+
directory: TRPCQueryProcedure<{
|
|
4676
|
+
input: {
|
|
4677
|
+
nodeId?: string | undefined;
|
|
4678
|
+
} | undefined;
|
|
4679
|
+
output: z.infer<typeof nodesCapability.methods.directory.output>;
|
|
4680
|
+
meta: object;
|
|
4681
|
+
}>;
|
|
4675
4682
|
deployAddon: TRPCMutationProcedure<{
|
|
4676
4683
|
input: {
|
|
4677
4684
|
[x: string]: unknown;
|
|
@@ -4924,6 +4931,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4924
4931
|
output: z.infer<typeof notificationRulesCapability.methods.getHistory.output>;
|
|
4925
4932
|
meta: object;
|
|
4926
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
|
+
}>;
|
|
4927
4941
|
resolveArtifactUrl: TRPCQueryProcedure<{
|
|
4928
4942
|
input: {
|
|
4929
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 {
|
|
@@ -80,7 +80,7 @@ export interface SystemProxy {
|
|
|
80
80
|
readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
|
|
81
81
|
readonly networkAccess: Pick<InferProvider<typeof networkAccessCapability>, 'start' | 'stop' | 'getEndpoint' | 'getStatus' | 'listEndpoints'>;
|
|
82
82
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
83
|
-
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
83
|
+
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'directory' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
84
84
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
85
85
|
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration'>;
|
|
86
86
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -226,10 +226,14 @@ export { audioIsFailClosed, audioKindId, audioLabelChoices, audioModeOf, audioOr
|
|
|
226
226
|
export { isBaseConditionKey, knownValues, NC_BASE_CONDITION_KEYS, type NcBaseConditionKey, pickerForCondition, type TaxonomyGroup, type TaxonomyOption, type TaxonomyPicker, } from './notification/condition-taxonomy.js';
|
|
227
227
|
export { type PreparedAction, type PreparedAttachment, type PreparedNotification, prepareNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
|
|
228
228
|
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
229
|
-
export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSection, droppedConditionsForKind, isAudioRule, isOccupancyRule, isSystemDelivery, NC_AUDIO_SEED, NC_OCCUPANCY_DEFAULTS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SYSTEM_DELIVERY, 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, } from './notification/rule-kinds.js';
|
|
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 {
|
|
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';
|
|
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';
|
|
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';
|
|
236
|
+
export { NC_SERVER_PACKAGE_NAME, NC_UPDATE_EVENT_PACKAGE_NAMES, type NcInstalledPackageLike, type NcScopePickerItem, nodePickerItems, packagePickerItems, } from './notification/scope-picker-items.js';
|
|
233
237
|
export type { TimelapseCadencePair, TimelapsePreviewMode, TimelapseRule, TimelapseRuleInput, TimelapseRulePatch, TimelapseTemplate, } from './notification/timelapse-rule.js';
|
|
234
238
|
export { assertTimelapseCadences, DEFAULT_TIMELAPSE_PREVIEW_TEXT, readTimelapseGeneratedAt, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, } from './notification/timelapse-rule.js';
|
|
235
239
|
export { CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, type ClusterModelScopedStep, type ClusterStepModels, type ClusterStepSettingField, type ClusterStepSettings, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, type HydratedClusterSection, type HydratedClusterView, isClusterScopedStep, overlayClusterStepSettings, pickClusterStepModels, pickClusterStepSettings, readClusterStepModels, readClusterStepSettings, resolveClusterStepModelId, type StepModelScope, } from './pipeline/cluster-model-scope.js';
|