@camstack/types 1.2.299 → 1.2.302
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/alarm-panel.cap.d.ts +21 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-output.cap.d.ts +41 -0
- package/dist/device/device-do-actions.d.ts +12 -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 +2 -2
- package/dist/index.js +325 -9
- package/dist/index.mjs +324 -10
- package/dist/interfaces/config-ui.d.ts +85 -1
- package/dist/notification/system-event-summary.d.ts +13 -0
- package/dist/{sleep-G4F3X9X_.js → sleep-C3gDpn7G.js} +783 -637
- package/dist/{sleep-CDCONfkt.mjs → sleep-DXKLNFvA.mjs} +783 -637
- 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-C3gDpn7G.js");
|
|
3
3
|
const require_event_category = require("./event-category-DmS_tLsU.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-Dx2Kor0g.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as normalizeAddonInitResult, B as nodePin, Ct as PEER_BYTES_STALL_MS, D as adminUiCapability, Et as DATAPLANE_SECRET_HEADER, N as expandCapMethods, Ot as DisposerChain, Pt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as PEER_BYTES_MAX_OUTSTANDING, T as describeCustomActions, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, kt as BaseAddon, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, wt as PEER_BYTES_TICKET_TTL_MS, x as viewerUiCapability, xt as PEER_BYTES_CHUNK_BYTES } from "./sleep-
|
|
1
|
+
import { At as normalizeAddonInitResult, B as nodePin, Ct as PEER_BYTES_STALL_MS, D as adminUiCapability, Et as DATAPLANE_SECRET_HEADER, N as expandCapMethods, Ot as DisposerChain, Pt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as PEER_BYTES_MAX_OUTSTANDING, T as describeCustomActions, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, kt as BaseAddon, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, wt as PEER_BYTES_TICKET_TTL_MS, x as viewerUiCapability, xt as PEER_BYTES_CHUNK_BYTES } from "./sleep-DXKLNFvA.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-BGmz_oxW.mjs";
|
|
3
3
|
import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -51,6 +51,13 @@ export declare const AlarmPanelStatusSchema: z.ZodObject<{
|
|
|
51
51
|
disarming: "disarming";
|
|
52
52
|
triggered: "triggered";
|
|
53
53
|
}>;
|
|
54
|
+
targetMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
55
|
+
home: "home";
|
|
56
|
+
away: "away";
|
|
57
|
+
night: "night";
|
|
58
|
+
vacation: "vacation";
|
|
59
|
+
custom_bypass: "custom_bypass";
|
|
60
|
+
}>>>;
|
|
54
61
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
55
62
|
home: "home";
|
|
56
63
|
away: "away";
|
|
@@ -109,6 +116,13 @@ export declare const alarmPanelCapability: {
|
|
|
109
116
|
disarming: "disarming";
|
|
110
117
|
triggered: "triggered";
|
|
111
118
|
}>;
|
|
119
|
+
targetMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
120
|
+
home: "home";
|
|
121
|
+
away: "away";
|
|
122
|
+
night: "night";
|
|
123
|
+
vacation: "vacation";
|
|
124
|
+
custom_bypass: "custom_bypass";
|
|
125
|
+
}>>>;
|
|
112
126
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
113
127
|
home: "home";
|
|
114
128
|
away: "away";
|
|
@@ -139,6 +153,13 @@ export declare const alarmPanelCapability: {
|
|
|
139
153
|
disarming: "disarming";
|
|
140
154
|
triggered: "triggered";
|
|
141
155
|
}>;
|
|
156
|
+
targetMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
157
|
+
home: "home";
|
|
158
|
+
away: "away";
|
|
159
|
+
night: "night";
|
|
160
|
+
vacation: "vacation";
|
|
161
|
+
custom_bypass: "custom_bypass";
|
|
162
|
+
}>>>;
|
|
142
163
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
143
164
|
home: "home";
|
|
144
165
|
away: "away";
|
|
@@ -85,7 +85,7 @@ export type { BrokerConnectionDetails, BrokerInfo as MqttBrokerInfo, BrokerStatu
|
|
|
85
85
|
export { AddBrokerInputSchema, BrokerConnectionDetailsSchema, BrokerInfoSchema as MqttBrokerInfoSchema, MqttBrokerStatusSchema, mqttBrokerCapability, StartEmbeddedInputSchema, } from './mqtt-broker.cap.js';
|
|
86
86
|
export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.js';
|
|
87
87
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
88
|
-
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';
|
|
88
|
+
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 ProbeTargetConfigResult, ProbeTargetConfigResultSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
|
|
89
89
|
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 NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcActionBinding, NcActionBindingSchema, type NcHookBindings, NcHookBindingsSchema, type NcRuleAction, NcRuleActionSchema, type NcLegacyRuleActionSequence, NcLegacyRuleActionSequenceSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcSharedSequence, NcSharedSequenceInputSchema, type NcSharedSequenceInput, NcSharedSequenceSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, 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';
|
|
90
90
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
91
91
|
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 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, 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';
|
|
@@ -426,6 +426,18 @@ export declare const TestResultSchema: z.ZodObject<{
|
|
|
426
426
|
}, z.core.$strip>>;
|
|
427
427
|
}, z.core.$strip>;
|
|
428
428
|
export type TestResult = SendResult;
|
|
429
|
+
/**
|
|
430
|
+
* Pre-save credential probe against a partial (unsaved) target config.
|
|
431
|
+
* `resolvedUrl` never includes secrets (token stripped from path).
|
|
432
|
+
*/
|
|
433
|
+
export declare const ProbeTargetConfigResultSchema: z.ZodObject<{
|
|
434
|
+
ok: z.ZodBoolean;
|
|
435
|
+
resolvedUrl: z.ZodString;
|
|
436
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
437
|
+
stateInstance: z.ZodOptional<z.ZodString>;
|
|
438
|
+
error: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
export type ProbeTargetConfigResult = z.infer<typeof ProbeTargetConfigResultSchema>;
|
|
429
441
|
export declare const notificationOutputCapability: {
|
|
430
442
|
readonly name: "notification-output";
|
|
431
443
|
readonly scope: "system";
|
|
@@ -491,14 +503,42 @@ export declare const notificationOutputCapability: {
|
|
|
491
503
|
enabled: z.ZodBoolean;
|
|
492
504
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
493
505
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
506
|
+
/**
|
|
507
|
+
* One target WITH secrets — admin edit / duplicate hydration only.
|
|
508
|
+
* `listTargets` stays redacted; the editor loads this so password fields
|
|
509
|
+
* are filled (masked in the input) and a save can round-trip the token
|
|
510
|
+
* when a destination changes (Duplicate with a new chatId, etc.).
|
|
511
|
+
*/
|
|
512
|
+
readonly getTarget: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
513
|
+
targetId: z.ZodString;
|
|
514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
515
|
+
id: z.ZodString;
|
|
516
|
+
name: z.ZodString;
|
|
517
|
+
kind: z.ZodString;
|
|
518
|
+
addonId: z.ZodString;
|
|
519
|
+
enabled: z.ZodBoolean;
|
|
520
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
521
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
494
522
|
readonly discoverTargets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
495
523
|
kind: z.ZodString;
|
|
496
524
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
525
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
497
526
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
498
527
|
kind: z.ZodString;
|
|
499
528
|
suggestedName: z.ZodString;
|
|
500
529
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
501
530
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
531
|
+
readonly probeTargetConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
532
|
+
kind: z.ZodString;
|
|
533
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
534
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
536
|
+
ok: z.ZodBoolean;
|
|
537
|
+
resolvedUrl: z.ZodString;
|
|
538
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
539
|
+
stateInstance: z.ZodOptional<z.ZodString>;
|
|
540
|
+
error: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>, "mutation">;
|
|
502
542
|
readonly send: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
503
543
|
targetId: z.ZodString;
|
|
504
544
|
notification: z.ZodObject<{
|
|
@@ -666,6 +706,7 @@ export declare const notificationOutputCapability: {
|
|
|
666
706
|
enabled: z.ZodBoolean;
|
|
667
707
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
668
708
|
}, z.core.$strip>;
|
|
709
|
+
cloneSecretsFrom: z.ZodOptional<z.ZodString>;
|
|
669
710
|
}, z.core.$strip>, z.ZodObject<{
|
|
670
711
|
id: z.ZodString;
|
|
671
712
|
name: z.ZodString;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** An arg the authoring UI collects (not baked into the catalogue entry). */
|
|
2
|
+
export interface DeviceDoOpenArg {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly kind: 'string' | 'number';
|
|
6
|
+
}
|
|
1
7
|
/** One operator-facing action that becomes a cap method call. */
|
|
2
8
|
export interface DeviceDoAction {
|
|
3
9
|
/** Stable id for the select value, e.g. `switch.on`. */
|
|
@@ -7,6 +13,12 @@ export interface DeviceDoAction {
|
|
|
7
13
|
readonly cap: string;
|
|
8
14
|
readonly method: string;
|
|
9
15
|
readonly args?: Readonly<Record<string, unknown>>;
|
|
16
|
+
/**
|
|
17
|
+
* Keys the operator fills after picking the action (e.g. `presetId` for
|
|
18
|
+
* `ptz.goToPreset`). Matching ignores these — only baked {@link args} must
|
|
19
|
+
* agree — so a saved step with a filled preset still selects this entry.
|
|
20
|
+
*/
|
|
21
|
+
readonly openArgs?: readonly DeviceDoOpenArg[];
|
|
10
22
|
}
|
|
11
23
|
/**
|
|
12
24
|
* The curated catalogue. Order is the order the select draws.
|
|
@@ -4993,6 +4993,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4993
4993
|
output: z.infer<typeof notificationOutputCapability.methods.listTargets.output>;
|
|
4994
4994
|
meta: object;
|
|
4995
4995
|
}>;
|
|
4996
|
+
getTarget: TRPCQueryProcedure<{
|
|
4997
|
+
input: {
|
|
4998
|
+
[x: string]: unknown;
|
|
4999
|
+
} & z.input<typeof notificationOutputCapability.methods.getTarget.input>;
|
|
5000
|
+
output: z.infer<typeof notificationOutputCapability.methods.getTarget.output>;
|
|
5001
|
+
meta: object;
|
|
5002
|
+
}>;
|
|
4996
5003
|
discoverTargets: TRPCQueryProcedure<{
|
|
4997
5004
|
input: {
|
|
4998
5005
|
[x: string]: unknown;
|
|
@@ -5000,6 +5007,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5000
5007
|
output: z.infer<typeof notificationOutputCapability.methods.discoverTargets.output>;
|
|
5001
5008
|
meta: object;
|
|
5002
5009
|
}>;
|
|
5010
|
+
probeTargetConfig: TRPCMutationProcedure<{
|
|
5011
|
+
input: {
|
|
5012
|
+
[x: string]: unknown;
|
|
5013
|
+
} & z.input<typeof notificationOutputCapability.methods.probeTargetConfig.input>;
|
|
5014
|
+
output: z.infer<typeof notificationOutputCapability.methods.probeTargetConfig.output>;
|
|
5015
|
+
meta: object;
|
|
5016
|
+
}>;
|
|
5003
5017
|
send: TRPCMutationProcedure<{
|
|
5004
5018
|
input: {
|
|
5005
5019
|
[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: 1221 method paths across 165 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -84,7 +84,7 @@ export interface SystemProxy {
|
|
|
84
84
|
readonly networkAccess: Pick<InferProvider<typeof networkAccessCapability>, 'start' | 'stop' | 'getEndpoint' | 'getStatus' | 'listEndpoints'>;
|
|
85
85
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
86
86
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'directory' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
87
|
-
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
87
|
+
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'getTarget' | 'discoverTargets' | 'probeTargetConfig' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
88
88
|
readonly notificationRules: Pick<InferProvider<typeof notificationRulesCapability>, 'listRules' | 'getRule' | 'createRule' | 'updateRule' | 'deleteRule' | 'setRuleEnabled' | 'listSequences' | 'getSequence' | 'createSequence' | 'updateSequence' | 'deleteSequence' | 'getClipRetentionAsks' | 'listDeviceMutes' | 'testRule' | 'previewStateSummary' | 'getConditionCatalog' | 'getTemplateCatalog' | 'previewTemplate' | 'getHistory' | 'getRuleLastRuns' | 'resolveArtifactUrl' | 'listSnoozes' | 'createSnooze' | 'cancelSnooze' | 'getAlarmConfig' | 'setAlarmConfig' | 'createAlarmProfile' | 'renameAlarmProfile' | 'deleteAlarmProfile' | 'activateAlarmProfile' | 'getAlarmSensors'>;
|
|
89
89
|
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration' | 'listTemplates' | 'upsertTemplate' | 'deleteTemplate'>;
|
|
90
90
|
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
|
@@ -178,7 +178,7 @@ export { DeviceConfig } from './device/device-config.js';
|
|
|
178
178
|
export type { DeviceConstructor, DeviceContext, DeviceManagerApi, IDeviceRegistry, IDeviceRegistryReader, } from './device/device-context.js';
|
|
179
179
|
export type { AccessoryControlInput, AccessoryControlKind, AccessoryControlPick, DeviceControlKind, SensorMapping, } from './device/device-control-resolution.js';
|
|
180
180
|
export { DEVICE_TYPE_CONTROL_KIND, hasMotionTrigger, isNode, MOTION_TRIGGER_FEATURE, pickAccessoryControl, resolveDeviceControlKind, resolveMutate, SENSOR_FEATURES, SENSOR_MAP, } from './device/device-control-resolution.js';
|
|
181
|
-
export type { DeviceDoAction } from './device/device-do-actions.js';
|
|
181
|
+
export type { DeviceDoAction, DeviceDoOpenArg } from './device/device-do-actions.js';
|
|
182
182
|
export { actionsForBoundCaps, allDoActions, DEVICE_DO_ACTIONS, doActionSelectValue, isDoActionActuatable, matchDoAction, } from './device/device-do-actions.js';
|
|
183
183
|
export type { ChildLayout, ChildLayoutEntry, CreateDeviceSpec, DeviceCapDisplayOverride, DeviceDiscovery, DeviceDisplayOverride, DeviceManualCreation, DeviceMeta, DiscoveredDevice, InitialDeviceMeta, RoleDisplayDefault, SavedDevice, } from './device/device-management.js';
|
|
184
184
|
export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device/device-profile.js';
|
|
@@ -250,7 +250,7 @@ export { NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_T
|
|
|
250
250
|
export { NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, isHeldBackTemplateVar, isKnownTemplateVar, servedTemplateVars, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, } from './notification/template-vars.js';
|
|
251
251
|
export { NC_SYSTEM_EVENT_FILTER_KEYS, type NcSystemEventFilterKey, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, } from './notification/system-event-filters.js';
|
|
252
252
|
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';
|
|
253
|
-
export { describeSystemEventDeliveryProblem, isSystemEventSummaryRule, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, type NcSummarySendTime, type NcSystemEventDeliveryProblem, type NcSystemEventDeliverySubject, scheduleForSendTimes, sendTimesOfSchedule, systemEventDeliveryProblems, systemEventSummaryScheduleOf, systemEventSummarySplitOf, templateCarriesSummary, } from './notification/system-event-summary.js';
|
|
253
|
+
export { describeSystemEventDeliveryProblem, isSystemEventSummaryRule, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, type NcSummarySendTime, type NcSystemEventDeliveryProblem, type NcSystemEventDeliverySubject, scheduleForSendTimes, sendTimesForEditor, sendTimesOfSchedule, systemEventDeliveryProblems, systemEventSummaryScheduleOf, systemEventSummarySplitOf, templateCarriesSummary, } from './notification/system-event-summary.js';
|
|
254
254
|
export { NC_SERVER_PACKAGE_NAME, NC_UPDATE_EVENT_PACKAGE_NAMES, type NcInstalledPackageLike, type NcScopePickerItem, nodePickerItems, packagePickerItems, } from './notification/scope-picker-items.js';
|
|
255
255
|
export type { TimelapseCadencePair, TimelapsePreviewMode, TimelapseRule, TimelapseRuleInput, TimelapseRulePatch, TimelapseTemplate, } from './notification/timelapse-rule.js';
|
|
256
256
|
export type { StateLabel, StateLabelKey, StateLabelLocale } from './i18n/state-labels.js';
|