@camstack/types 1.2.327 → 1.2.328
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/base-addon.d.ts +58 -0
- package/dist/addon/secret-aware-context.d.ts +27 -0
- package/dist/addon/secret-paths.d.ts +48 -0
- package/dist/addon/secret-settings-view.d.ts +80 -0
- package/dist/addon.d.ts +1 -0
- package/dist/addon.js +52 -4
- package/dist/addon.mjs +27 -5
- package/dist/capabilities/addons.cap.d.ts +4 -4
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/control.cap.d.ts +11 -11
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/device-manager.cap.d.ts +2 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +4 -4
- package/dist/capabilities/index.d.ts +6 -2
- package/dist/capabilities/integrations.cap.d.ts +6 -3
- package/dist/capabilities/keychain-admin.cap.d.ts +312 -0
- package/dist/capabilities/keychain.cap.d.ts +180 -0
- package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
- package/dist/capabilities/log-channels.cap.d.ts +1 -1
- package/dist/capabilities/log-destination.cap.d.ts +5 -5
- package/dist/capabilities/notification-rules.cap.d.ts +30 -30
- package/dist/capabilities/osd-manager.cap.d.ts +11 -11
- package/dist/capabilities/osd.cap.d.ts +5 -5
- package/dist/capabilities/pipeline-analytics.cap.d.ts +996 -118
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +384 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +145 -2
- package/dist/capabilities/storage.cap.d.ts +1 -1
- package/dist/capabilities/system.cap.d.ts +16 -16
- package/dist/capabilities/webrtc-session.cap.d.ts +3 -3
- package/dist/client.js +32 -1
- package/dist/client.mjs +32 -1
- package/dist/device/device-context.d.ts +11 -1
- package/dist/device/index.d.ts +1 -1
- package/dist/enums/event-category.d.ts +7 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-CtBAl88K.js → event-category-CHduMGvg.js} +7 -0
- package/dist/{event-category-B_0XEcLF.mjs → event-category-DaIZi00R.mjs} +7 -0
- package/dist/generated/addon-api.d.ts +254 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +4 -2
- package/dist/health/wiring-health.d.ts +8 -8
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1736 -101
- package/dist/index.mjs +1625 -98
- package/dist/interfaces/addon.d.ts +25 -0
- package/dist/interfaces/config-ui-secrets.d.ts +12 -0
- package/dist/interfaces/config-ui.d.ts +29 -1
- package/dist/interfaces/event-bus.d.ts +11 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +18 -0
- package/dist/keychain/index.d.ts +5 -0
- package/dist/keychain/known-secrets.d.ts +31 -0
- package/dist/keychain/resolve-secret-views.d.ts +2 -0
- package/dist/keychain/secret-marker.d.ts +52 -0
- package/dist/keychain/secret-ref.d.ts +62 -0
- package/dist/keychain/secrets-access.d.ts +77 -0
- package/dist/logging/log-channel.d.ts +2 -2
- package/dist/pipeline/auto-tune/plan-schemas.d.ts +123 -0
- package/dist/pipeline/auto-tune/recommend.d.ts +26 -1
- package/dist/pipeline/load-balancing/schemas.d.ts +8 -7
- package/dist/pipeline/node-benchmark/benchmark-mode.d.ts +57 -0
- package/dist/pipeline/node-benchmark/index.d.ts +9 -0
- package/dist/pipeline/node-benchmark/results.d.ts +52 -0
- package/dist/pipeline/node-benchmark/schemas.d.ts +848 -0
- package/dist/pipeline/node-benchmark/step-tree.d.ts +23 -0
- package/dist/{sleep-B0JG7-_F.mjs → sleep-Cr5YOk3m.mjs} +1335 -121
- package/dist/{sleep-az1qiFzK.js → sleep-i3kl-0Na.js} +1575 -121
- package/package.json +1 -1
|
@@ -18,9 +18,9 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
18
18
|
*/
|
|
19
19
|
/** IR-cut switching mode. `schedule` = time-of-day table configured on the camera. */
|
|
20
20
|
export declare const DayNightModeSchema: z.ZodEnum<{
|
|
21
|
+
schedule: "schedule";
|
|
21
22
|
auto: "auto";
|
|
22
23
|
night: "night";
|
|
23
|
-
schedule: "schedule";
|
|
24
24
|
day: "day";
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
@@ -30,9 +30,9 @@ export declare const DayNightModeSchema: z.ZodEnum<{
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const DayNightStatusSchema: z.ZodObject<{
|
|
32
32
|
mode: z.ZodEnum<{
|
|
33
|
+
schedule: "schedule";
|
|
33
34
|
auto: "auto";
|
|
34
35
|
night: "night";
|
|
35
|
-
schedule: "schedule";
|
|
36
36
|
day: "day";
|
|
37
37
|
}>;
|
|
38
38
|
sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -47,9 +47,9 @@ export declare const DayNightStatusSchema: z.ZodObject<{
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const DayNightOptionsSchema: z.ZodObject<{
|
|
49
49
|
modes: z.ZodArray<z.ZodEnum<{
|
|
50
|
+
schedule: "schedule";
|
|
50
51
|
auto: "auto";
|
|
51
52
|
night: "night";
|
|
52
|
-
schedule: "schedule";
|
|
53
53
|
day: "day";
|
|
54
54
|
}>>;
|
|
55
55
|
supportsSensitivity: z.ZodBoolean;
|
|
@@ -71,9 +71,9 @@ export declare const DayNightOptionsSchema: z.ZodObject<{
|
|
|
71
71
|
*/
|
|
72
72
|
export declare const DayNightSettingsPatchSchema: z.ZodObject<{
|
|
73
73
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
schedule: "schedule";
|
|
74
75
|
auto: "auto";
|
|
75
76
|
night: "night";
|
|
76
|
-
schedule: "schedule";
|
|
77
77
|
day: "day";
|
|
78
78
|
}>>;
|
|
79
79
|
sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -101,9 +101,9 @@ export declare const dayNightCapability: {
|
|
|
101
101
|
deviceId: z.ZodNumber;
|
|
102
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
103
103
|
modes: z.ZodArray<z.ZodEnum<{
|
|
104
|
+
schedule: "schedule";
|
|
104
105
|
auto: "auto";
|
|
105
106
|
night: "night";
|
|
106
|
-
schedule: "schedule";
|
|
107
107
|
day: "day";
|
|
108
108
|
}>>;
|
|
109
109
|
supportsSensitivity: z.ZodBoolean;
|
|
@@ -123,9 +123,9 @@ export declare const dayNightCapability: {
|
|
|
123
123
|
deviceId: z.ZodNumber;
|
|
124
124
|
settings: z.ZodObject<{
|
|
125
125
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
schedule: "schedule";
|
|
126
127
|
auto: "auto";
|
|
127
128
|
night: "night";
|
|
128
|
-
schedule: "schedule";
|
|
129
129
|
day: "day";
|
|
130
130
|
}>>;
|
|
131
131
|
sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -136,9 +136,9 @@ export declare const dayNightCapability: {
|
|
|
136
136
|
readonly status: {
|
|
137
137
|
readonly schema: z.ZodObject<{
|
|
138
138
|
mode: z.ZodEnum<{
|
|
139
|
+
schedule: "schedule";
|
|
139
140
|
auto: "auto";
|
|
140
141
|
night: "night";
|
|
141
|
-
schedule: "schedule";
|
|
142
142
|
day: "day";
|
|
143
143
|
}>;
|
|
144
144
|
sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -149,9 +149,9 @@ export declare const dayNightCapability: {
|
|
|
149
149
|
};
|
|
150
150
|
readonly runtimeState: z.ZodObject<{
|
|
151
151
|
mode: z.ZodEnum<{
|
|
152
|
+
schedule: "schedule";
|
|
152
153
|
auto: "auto";
|
|
153
154
|
night: "night";
|
|
154
|
-
schedule: "schedule";
|
|
155
155
|
day: "day";
|
|
156
156
|
}>;
|
|
157
157
|
sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -301,6 +301,7 @@ export declare const DeviceRemovePayloadSchema: z.ZodObject<{
|
|
|
301
301
|
export declare const DevicePersistConfigPayloadSchema: z.ZodObject<{
|
|
302
302
|
deviceId: z.ZodNumber;
|
|
303
303
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
304
|
+
secretConfigPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
304
305
|
}, z.core.$strip>;
|
|
305
306
|
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
306
307
|
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
@@ -492,6 +493,7 @@ export declare const deviceManagerCapability: {
|
|
|
492
493
|
readonly persistConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
493
494
|
deviceId: z.ZodNumber;
|
|
494
495
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
496
|
+
secretConfigPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
495
497
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
496
498
|
/** Load persisted config for a device. Called at restore time. */
|
|
497
499
|
readonly loadConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -12,16 +12,16 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
12
12
|
/** Locale-render shape for an ISO `value` carried by a `DateTimeSensor`-role
|
|
13
13
|
* enum sensor: `date` (date-only), `time` (time-only), `datetime` (both). */
|
|
14
14
|
export declare const EnumSensorDateTimeFormatSchema: z.ZodEnum<{
|
|
15
|
-
date: "date";
|
|
16
15
|
datetime: "datetime";
|
|
16
|
+
date: "date";
|
|
17
17
|
time: "time";
|
|
18
18
|
}>;
|
|
19
19
|
export type EnumSensorDateTimeFormat = z.infer<typeof EnumSensorDateTimeFormatSchema>;
|
|
20
20
|
export declare const EnumSensorStatusSchema: z.ZodObject<{
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
format: z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
date: "date";
|
|
24
23
|
datetime: "datetime";
|
|
24
|
+
date: "date";
|
|
25
25
|
time: "time";
|
|
26
26
|
}>>;
|
|
27
27
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -38,8 +38,8 @@ export declare const enumSensorCapability: {
|
|
|
38
38
|
readonly schema: z.ZodObject<{
|
|
39
39
|
value: z.ZodString;
|
|
40
40
|
format: z.ZodOptional<z.ZodEnum<{
|
|
41
|
-
date: "date";
|
|
42
41
|
datetime: "datetime";
|
|
42
|
+
date: "date";
|
|
43
43
|
time: "time";
|
|
44
44
|
}>>;
|
|
45
45
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -49,8 +49,8 @@ export declare const enumSensorCapability: {
|
|
|
49
49
|
readonly runtimeState: z.ZodObject<{
|
|
50
50
|
value: z.ZodString;
|
|
51
51
|
format: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
date: "date";
|
|
53
52
|
datetime: "datetime";
|
|
53
|
+
date: "date";
|
|
54
54
|
time: "time";
|
|
55
55
|
}>>;
|
|
56
56
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -45,6 +45,8 @@ export type { CustomModelDescriptor, ICustomModelRegistryProvider, } from './cus
|
|
|
45
45
|
export { CustomModelDescriptorSchema, customModelRegistryCapability, } from './custom-model-registry.cap.js';
|
|
46
46
|
export { type DataStoreEngineInfo, dataStoreProviderCapability, EngineInfoSchema as DataStoreEngineInfoSchema, type IDataStoreProvider, } from './data-store-provider.cap.js';
|
|
47
47
|
export { type ArchiveSqliteSnapshot, ArchiveSqliteSnapshotSchema, DATABASE_SNAPSHOT_PARTIAL_SUFFIX, DATABASE_SNAPSHOT_SUFFIX, DATABASE_SNAPSHOT_TIMEOUT_MS, type DatabaseSnapshotResult, DatabaseSnapshotResultSchema, type DatabaseSnapshotTable, DatabaseSnapshotTableSchema, type DatabaseSnapshotTargets, DatabaseSnapshotTargetsSchema, databaseSnapshotCapability, type IDatabaseSnapshotProvider, } from './database-snapshot.cap.js';
|
|
48
|
+
export { type IKeychainProvider, KEYCHAIN_MAX_REFS_PER_CALL, type KeychainResolveEntry, KeychainResolveEntrySchema, type KeychainResolveResult, KeychainResolveResultSchema, type KeychainSecretMeta, KeychainSecretMetaSchema, type KeychainState, KeychainStateSchema, type KeychainUnavailableReason, KeychainUnavailableReasonSchema, keychainCapability, } from './keychain.cap.js';
|
|
49
|
+
export { type IKeychainAdminProvider, KEYCHAIN_RESET_CONFIRMATION, type KeychainAdminSecret, KeychainAdminSecretSchema, type KeychainAuditAction, KeychainAuditActionSchema, type KeychainAuditEntry, KeychainAuditEntrySchema, type KeychainKeySource, type KeychainKeySourceKind, KeychainKeySourceKindSchema, KeychainKeySourceSchema, type KeychainSecretUsage, KeychainSecretUsageSchema, type KeychainStatus, KeychainStatusSchema, keychainAdminCapability, } from './keychain-admin.cap.js';
|
|
48
50
|
export type { DecoderHwAccelConfig, HwAccelChoice, IDecoderCapProvider, } from './decoder.cap.js';
|
|
49
51
|
export { DEFAULT_DECODER_HWACCEL_CONFIG, decoderCapability, HWACCEL_OPTIONS, } from './decoder.cap.js';
|
|
50
52
|
export { detectionPipelineCapability, type IDetectionPipelineProvider, } from './detection-pipeline.cap.js';
|
|
@@ -89,7 +91,7 @@ export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapabili
|
|
|
89
91
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, 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';
|
|
90
92
|
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_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, NC_TANK_SYSTEM_EVENT_KINDS, 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 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, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, 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';
|
|
91
93
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
92
|
-
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 RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, type RetrainArchiveResult, RetrainArchiveResultSchema, type RetrainArchiveTarget, RetrainArchiveTargetSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainExportFilter, RetrainExportFilterSchema, type RetrainExportLayout, RetrainExportLayoutSchema, 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, 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';
|
|
94
|
+
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 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 RetrainAssistProfile, RetrainAssistProfileSchema, type RetrainLlmAssistResult, RetrainLlmAssistResultSchema, type RetrainLlmProposal, RetrainLlmProposalSchema, type RetrainLlmReview, RetrainLlmReviewSchema, type RetrainCollection, type RetrainCollectionCreateResult, RetrainCollectionCreateResultSchema, type RetrainCollectionRenameResult, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, type RetrainFrameOrigin, RetrainFrameOriginSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainPipelineBox, RetrainPipelineBoxSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, 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';
|
|
93
95
|
export type { EffectiveTuning, EffectiveTuningInput, NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, SuppliedRootOutput, } from './pipeline-executor.cap.js';
|
|
94
96
|
export { EffectiveTuningSchema, ModelSubstitutionSchema, NativeCropRefSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, SuppliedRootOutputSchema, } from './pipeline-executor.cap.js';
|
|
95
97
|
export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, ClusterModelChoice, ClusterModelChoiceUnreadableReason, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, OccupancyLookAnswer, OccupancyLookRefusal, OccupancyLookRequest, SetCameraSensorsInput, } from './pipeline-orchestrator.cap.js';
|
|
@@ -277,6 +279,8 @@ import type { coverCapability } from './cover.cap.js';
|
|
|
277
279
|
import type { customModelRegistryCapability } from './custom-model-registry.cap.js';
|
|
278
280
|
import type { dataStoreProviderCapability } from './data-store-provider.cap.js';
|
|
279
281
|
import type { databaseSnapshotCapability } from './database-snapshot.cap.js';
|
|
282
|
+
import type { keychainCapability } from './keychain.cap.js';
|
|
283
|
+
import type { keychainAdminCapability } from './keychain-admin.cap.js';
|
|
280
284
|
import type { dayNightCapability } from './day-night.cap.js';
|
|
281
285
|
import type { decoderCapability } from './decoder.cap.js';
|
|
282
286
|
import type { detectionPipelineCapability } from './detection-pipeline.cap.js';
|
|
@@ -397,6 +401,6 @@ import type { webrtcSessionCapability } from './webrtc-session.cap.js';
|
|
|
397
401
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
398
402
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
399
403
|
import type { zonesCapability } from './zones.cap.js';
|
|
400
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability;
|
|
404
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability;
|
|
401
405
|
export type CapabilityName = AnyCapability['name'];
|
|
402
406
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -82,8 +82,8 @@ declare const AvailableIntegrationTypeSchema: z.ZodObject<{
|
|
|
82
82
|
*/
|
|
83
83
|
declare const TestConnectionStatusEnum: z.ZodEnum<{
|
|
84
84
|
unsupported: "unsupported";
|
|
85
|
-
validated: "validated";
|
|
86
85
|
rejected: "rejected";
|
|
86
|
+
validated: "validated";
|
|
87
87
|
inconclusive: "inconclusive";
|
|
88
88
|
}>;
|
|
89
89
|
declare const TestConnectionResultSchema: z.ZodObject<{
|
|
@@ -91,8 +91,8 @@ declare const TestConnectionResultSchema: z.ZodObject<{
|
|
|
91
91
|
error: z.ZodOptional<z.ZodString>;
|
|
92
92
|
status: z.ZodOptional<z.ZodEnum<{
|
|
93
93
|
unsupported: "unsupported";
|
|
94
|
-
validated: "validated";
|
|
95
94
|
rejected: "rejected";
|
|
95
|
+
validated: "validated";
|
|
96
96
|
inconclusive: "inconclusive";
|
|
97
97
|
}>>;
|
|
98
98
|
testedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -105,6 +105,7 @@ declare const CreateIntegrationInputSchema: z.ZodObject<{
|
|
|
105
105
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
106
106
|
info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
107
107
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
|
+
secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
109
|
skipRestart: z.ZodOptional<z.ZodBoolean>;
|
|
109
110
|
}, z.core.$strip>;
|
|
110
111
|
declare const UpdateIntegrationInputSchema: z.ZodObject<{
|
|
@@ -161,6 +162,7 @@ export declare const integrationsCapability: {
|
|
|
161
162
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
162
163
|
info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
164
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
165
|
+
secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
166
|
skipRestart: z.ZodOptional<z.ZodBoolean>;
|
|
165
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
166
168
|
id: z.ZodString;
|
|
@@ -197,6 +199,7 @@ export declare const integrationsCapability: {
|
|
|
197
199
|
readonly setSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
198
200
|
id: z.ZodString;
|
|
199
201
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
202
|
+
secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
203
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
204
|
success: z.ZodBoolean;
|
|
202
205
|
}, z.core.$strip>, "mutation">;
|
|
@@ -234,8 +237,8 @@ export declare const integrationsCapability: {
|
|
|
234
237
|
error: z.ZodOptional<z.ZodString>;
|
|
235
238
|
status: z.ZodOptional<z.ZodEnum<{
|
|
236
239
|
unsupported: "unsupported";
|
|
237
|
-
validated: "validated";
|
|
238
240
|
rejected: "rejected";
|
|
241
|
+
validated: "validated";
|
|
239
242
|
inconclusive: "inconclusive";
|
|
240
243
|
}>>;
|
|
241
244
|
testedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* `keychain-admin` — the operator's view of the keychain (System → Secrets).
|
|
5
|
+
*
|
|
6
|
+
* Every method is `admin`. Two methods hand out material, each audited and
|
|
7
|
+
* each named for exactly that: {@link keychainAdminCapability.methods.reveal}
|
|
8
|
+
* (one value, shown briefly by the UI) and `downloadRecoveryKey` (the master
|
|
9
|
+
* key itself, so the operator can keep a copy off the hub). Nothing else
|
|
10
|
+
* returns a value.
|
|
11
|
+
*
|
|
12
|
+
* The master key's LOCATION is configuration, never an env var (D788):
|
|
13
|
+
* `keychain.keyFile` in `config.yaml`, the OS keychain on a desktop hub, else
|
|
14
|
+
* `<dataDir>/.keychain/master.key` — which sits beside the database in every
|
|
15
|
+
* whole-volume backup, and the status says so.
|
|
16
|
+
*/
|
|
17
|
+
/** Where the master key in use came from. */
|
|
18
|
+
export declare const KeychainKeySourceKindSchema: z.ZodEnum<{
|
|
19
|
+
platform: "platform";
|
|
20
|
+
"config-file": "config-file";
|
|
21
|
+
"previous-config-file": "previous-config-file";
|
|
22
|
+
"default-file": "default-file";
|
|
23
|
+
}>;
|
|
24
|
+
export type KeychainKeySourceKind = z.infer<typeof KeychainKeySourceKindSchema>;
|
|
25
|
+
export declare const KeychainKeySourceSchema: z.ZodObject<{
|
|
26
|
+
kind: z.ZodEnum<{
|
|
27
|
+
platform: "platform";
|
|
28
|
+
"config-file": "config-file";
|
|
29
|
+
"previous-config-file": "previous-config-file";
|
|
30
|
+
"default-file": "default-file";
|
|
31
|
+
}>;
|
|
32
|
+
path: z.ZodOptional<z.ZodString>;
|
|
33
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type KeychainKeySource = z.infer<typeof KeychainKeySourceSchema>;
|
|
36
|
+
export declare const KeychainStatusSchema: z.ZodObject<{
|
|
37
|
+
keychain: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
state: z.ZodLiteral<"ready">;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
state: z.ZodLiteral<"locked">;
|
|
41
|
+
reason: z.ZodEnum<{
|
|
42
|
+
"key-missing": "key-missing";
|
|
43
|
+
"wrong-key": "wrong-key";
|
|
44
|
+
"key-file-unreadable": "key-file-unreadable";
|
|
45
|
+
"store-unavailable": "store-unavailable";
|
|
46
|
+
"not-initialized": "not-initialized";
|
|
47
|
+
"decrypt-failed": "decrypt-failed";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strip>], "state">;
|
|
50
|
+
keySource: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
kind: z.ZodEnum<{
|
|
52
|
+
platform: "platform";
|
|
53
|
+
"config-file": "config-file";
|
|
54
|
+
"previous-config-file": "previous-config-file";
|
|
55
|
+
"default-file": "default-file";
|
|
56
|
+
}>;
|
|
57
|
+
path: z.ZodOptional<z.ZodString>;
|
|
58
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
configuredSource: z.ZodObject<{
|
|
61
|
+
kind: z.ZodEnum<{
|
|
62
|
+
platform: "platform";
|
|
63
|
+
"config-file": "config-file";
|
|
64
|
+
"previous-config-file": "previous-config-file";
|
|
65
|
+
"default-file": "default-file";
|
|
66
|
+
}>;
|
|
67
|
+
path: z.ZodOptional<z.ZodString>;
|
|
68
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
71
|
+
activeKeyId: z.ZodNullable<z.ZodString>;
|
|
72
|
+
rotationPending: z.ZodBoolean;
|
|
73
|
+
retiredWraps: z.ZodNumber;
|
|
74
|
+
recoveryKeyDownloadedAt: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
secretCount: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type KeychainStatus = z.infer<typeof KeychainStatusSchema>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether a stored value is still pointed at by its owner's settings.
|
|
80
|
+
* `unknown` is a first-class answer: a scope whose blob could not be read is
|
|
81
|
+
* never reported as an orphan (and never deleted as one).
|
|
82
|
+
*/
|
|
83
|
+
export declare const KeychainSecretUsageSchema: z.ZodEnum<{
|
|
84
|
+
unknown: "unknown";
|
|
85
|
+
"in-use": "in-use";
|
|
86
|
+
orphan: "orphan";
|
|
87
|
+
}>;
|
|
88
|
+
export type KeychainSecretUsage = z.infer<typeof KeychainSecretUsageSchema>;
|
|
89
|
+
export declare const KeychainAdminSecretSchema: z.ZodObject<{
|
|
90
|
+
ref: z.ZodString;
|
|
91
|
+
owner: z.ZodString;
|
|
92
|
+
scope: z.ZodString;
|
|
93
|
+
fieldPath: z.ZodString;
|
|
94
|
+
version: z.ZodNumber;
|
|
95
|
+
createdAt: z.ZodNumber;
|
|
96
|
+
updatedAt: z.ZodNumber;
|
|
97
|
+
updatedBy: z.ZodString;
|
|
98
|
+
lastReadAt: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
usage: z.ZodEnum<{
|
|
100
|
+
unknown: "unknown";
|
|
101
|
+
"in-use": "in-use";
|
|
102
|
+
orphan: "orphan";
|
|
103
|
+
}>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type KeychainAdminSecret = z.infer<typeof KeychainAdminSecretSchema>;
|
|
106
|
+
export declare const KeychainAuditActionSchema: z.ZodEnum<{
|
|
107
|
+
delete: "delete";
|
|
108
|
+
reset: "reset";
|
|
109
|
+
put: "put";
|
|
110
|
+
reveal: "reveal";
|
|
111
|
+
"rotate-master-key": "rotate-master-key";
|
|
112
|
+
"purge-retired-keys": "purge-retired-keys";
|
|
113
|
+
"download-recovery-key": "download-recovery-key";
|
|
114
|
+
"delete-orphans": "delete-orphans";
|
|
115
|
+
initialize: "initialize";
|
|
116
|
+
}>;
|
|
117
|
+
export type KeychainAuditAction = z.infer<typeof KeychainAuditActionSchema>;
|
|
118
|
+
export declare const KeychainAuditEntrySchema: z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
at: z.ZodNumber;
|
|
121
|
+
action: z.ZodEnum<{
|
|
122
|
+
delete: "delete";
|
|
123
|
+
reset: "reset";
|
|
124
|
+
put: "put";
|
|
125
|
+
reveal: "reveal";
|
|
126
|
+
"rotate-master-key": "rotate-master-key";
|
|
127
|
+
"purge-retired-keys": "purge-retired-keys";
|
|
128
|
+
"download-recovery-key": "download-recovery-key";
|
|
129
|
+
"delete-orphans": "delete-orphans";
|
|
130
|
+
initialize: "initialize";
|
|
131
|
+
}>;
|
|
132
|
+
actor: z.ZodString;
|
|
133
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
134
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type KeychainAuditEntry = z.infer<typeof KeychainAuditEntrySchema>;
|
|
137
|
+
export declare const KEYCHAIN_RESET_CONFIRMATION = "RESET KEYCHAIN";
|
|
138
|
+
export declare const keychainAdminCapability: {
|
|
139
|
+
readonly name: "keychain-admin";
|
|
140
|
+
readonly scope: "system";
|
|
141
|
+
readonly mode: "singleton";
|
|
142
|
+
readonly methods: {
|
|
143
|
+
readonly status: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
keychain: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
|
+
state: z.ZodLiteral<"ready">;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
state: z.ZodLiteral<"locked">;
|
|
148
|
+
reason: z.ZodEnum<{
|
|
149
|
+
"key-missing": "key-missing";
|
|
150
|
+
"wrong-key": "wrong-key";
|
|
151
|
+
"key-file-unreadable": "key-file-unreadable";
|
|
152
|
+
"store-unavailable": "store-unavailable";
|
|
153
|
+
"not-initialized": "not-initialized";
|
|
154
|
+
"decrypt-failed": "decrypt-failed";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strip>], "state">;
|
|
157
|
+
keySource: z.ZodNullable<z.ZodObject<{
|
|
158
|
+
kind: z.ZodEnum<{
|
|
159
|
+
platform: "platform";
|
|
160
|
+
"config-file": "config-file";
|
|
161
|
+
"previous-config-file": "previous-config-file";
|
|
162
|
+
"default-file": "default-file";
|
|
163
|
+
}>;
|
|
164
|
+
path: z.ZodOptional<z.ZodString>;
|
|
165
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
configuredSource: z.ZodObject<{
|
|
168
|
+
kind: z.ZodEnum<{
|
|
169
|
+
platform: "platform";
|
|
170
|
+
"config-file": "config-file";
|
|
171
|
+
"previous-config-file": "previous-config-file";
|
|
172
|
+
"default-file": "default-file";
|
|
173
|
+
}>;
|
|
174
|
+
path: z.ZodOptional<z.ZodString>;
|
|
175
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
178
|
+
activeKeyId: z.ZodNullable<z.ZodString>;
|
|
179
|
+
rotationPending: z.ZodBoolean;
|
|
180
|
+
retiredWraps: z.ZodNumber;
|
|
181
|
+
recoveryKeyDownloadedAt: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
secretCount: z.ZodNumber;
|
|
183
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
184
|
+
readonly listSecrets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
185
|
+
ref: z.ZodString;
|
|
186
|
+
owner: z.ZodString;
|
|
187
|
+
scope: z.ZodString;
|
|
188
|
+
fieldPath: z.ZodString;
|
|
189
|
+
version: z.ZodNumber;
|
|
190
|
+
createdAt: z.ZodNumber;
|
|
191
|
+
updatedAt: z.ZodNumber;
|
|
192
|
+
updatedBy: z.ZodString;
|
|
193
|
+
lastReadAt: z.ZodNullable<z.ZodNumber>;
|
|
194
|
+
usage: z.ZodEnum<{
|
|
195
|
+
unknown: "unknown";
|
|
196
|
+
"in-use": "in-use";
|
|
197
|
+
orphan: "orphan";
|
|
198
|
+
}>;
|
|
199
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
200
|
+
readonly listAudit: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
201
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
at: z.ZodNumber;
|
|
205
|
+
action: z.ZodEnum<{
|
|
206
|
+
delete: "delete";
|
|
207
|
+
reset: "reset";
|
|
208
|
+
put: "put";
|
|
209
|
+
reveal: "reveal";
|
|
210
|
+
"rotate-master-key": "rotate-master-key";
|
|
211
|
+
"purge-retired-keys": "purge-retired-keys";
|
|
212
|
+
"download-recovery-key": "download-recovery-key";
|
|
213
|
+
"delete-orphans": "delete-orphans";
|
|
214
|
+
initialize: "initialize";
|
|
215
|
+
}>;
|
|
216
|
+
actor: z.ZodString;
|
|
217
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
218
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
220
|
+
/**
|
|
221
|
+
* Show one value to the operator. Audited. The UI hides it again after a
|
|
222
|
+
* few seconds; nothing caches it.
|
|
223
|
+
*/
|
|
224
|
+
readonly reveal: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
225
|
+
ref: z.ZodString;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
value: z.ZodString;
|
|
228
|
+
version: z.ZodNumber;
|
|
229
|
+
}, z.core.$strip>, "mutation"> & {
|
|
230
|
+
readonly caller: "required";
|
|
231
|
+
};
|
|
232
|
+
/** Delete refs no owner points at any more. Re-checked here; `unknown` is kept. */
|
|
233
|
+
readonly deleteOrphans: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
234
|
+
refs: z.ZodArray<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
236
|
+
deleted: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
237
|
+
kept: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
238
|
+
ref: z.ZodString;
|
|
239
|
+
usage: z.ZodEnum<{
|
|
240
|
+
unknown: "unknown";
|
|
241
|
+
"in-use": "in-use";
|
|
242
|
+
orphan: "orphan";
|
|
243
|
+
}>;
|
|
244
|
+
}, z.core.$strip>>>;
|
|
245
|
+
}, z.core.$strip>, "mutation"> & {
|
|
246
|
+
readonly caller: "required";
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Wrap the data key under the configured primary master key.
|
|
250
|
+
*
|
|
251
|
+
* Pending rotation (the keychain unlocked with a previous source): re-wrap
|
|
252
|
+
* under the primary. Otherwise, with the default file as primary: generate
|
|
253
|
+
* a new master key, write it there, re-wrap. A file or OS-keychain primary
|
|
254
|
+
* that is already in use cannot be replaced from here — put the new key at
|
|
255
|
+
* the source, keep the old one as `keychain.previousKeyFile`, restart, and
|
|
256
|
+
* rotate. No value is re-encrypted either way; the previous wrap is kept
|
|
257
|
+
* (retired) until purged.
|
|
258
|
+
*/
|
|
259
|
+
readonly rotateMasterKey: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
fingerprint: z.ZodString;
|
|
261
|
+
keySource: z.ZodObject<{
|
|
262
|
+
kind: z.ZodEnum<{
|
|
263
|
+
platform: "platform";
|
|
264
|
+
"config-file": "config-file";
|
|
265
|
+
"previous-config-file": "previous-config-file";
|
|
266
|
+
"default-file": "default-file";
|
|
267
|
+
}>;
|
|
268
|
+
path: z.ZodOptional<z.ZodString>;
|
|
269
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
}, z.core.$strip>, "mutation"> & {
|
|
272
|
+
readonly caller: "required";
|
|
273
|
+
};
|
|
274
|
+
readonly purgeRetiredKeys: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
275
|
+
purged: z.ZodNumber;
|
|
276
|
+
}, z.core.$strip>, "mutation"> & {
|
|
277
|
+
readonly caller: "required";
|
|
278
|
+
};
|
|
279
|
+
/** The master key, base64. Audited; marks the recovery copy as taken. */
|
|
280
|
+
readonly downloadRecoveryKey: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
281
|
+
key: z.ZodString;
|
|
282
|
+
fingerprint: z.ZodString;
|
|
283
|
+
keySource: z.ZodObject<{
|
|
284
|
+
kind: z.ZodEnum<{
|
|
285
|
+
platform: "platform";
|
|
286
|
+
"config-file": "config-file";
|
|
287
|
+
"previous-config-file": "previous-config-file";
|
|
288
|
+
"default-file": "default-file";
|
|
289
|
+
}>;
|
|
290
|
+
path: z.ZodOptional<z.ZodString>;
|
|
291
|
+
sharesBackupWithDatabase: z.ZodBoolean;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
}, z.core.$strip>, "mutation"> & {
|
|
294
|
+
readonly caller: "required";
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Lost-key recovery: archive every stored value into a
|
|
298
|
+
* `keychain:secrets-orphaned-<ts>` table and start over with a new data
|
|
299
|
+
* key. Every secret field then reads "not set". Requires the typed
|
|
300
|
+
* confirmation {@link KEYCHAIN_RESET_CONFIRMATION}.
|
|
301
|
+
*/
|
|
302
|
+
readonly resetKeychain: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
303
|
+
confirm: z.ZodLiteral<"RESET KEYCHAIN">;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
archivedCollection: z.ZodNullable<z.ZodString>;
|
|
306
|
+
archived: z.ZodNumber;
|
|
307
|
+
}, z.core.$strip>, "mutation"> & {
|
|
308
|
+
readonly caller: "required";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
export type IKeychainAdminProvider = InferProvider<typeof keychainAdminCapability>;
|