@camstack/types 1.2.32 → 1.2.34
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/broker.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +135 -0
- package/dist/device/device-control-resolution.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +18 -4
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +212 -101
- package/dist/index.mjs +209 -102
- package/dist/{sleep-C84-hqFR.js → sleep-CJ-cpJTN.js} +3 -1
- package/dist/{sleep-C1ssEDf2.mjs → sleep-NRXhq0dh.mjs} +3 -1
- 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-CJ-cpJTN.js");
|
|
3
3
|
const require_event_category = require("./event-category-BE4PDZ_3.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/collection-array-methods.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DEVICE_SCOPED_CAPS, D as asJsonObject, F as readNodePin, I as DATAPLANE_SECRET_HEADER, L as ReadinessRegistry, M as parseJsonUnknown, P as nodePin, R as ReadinessTimeoutError, S as DeviceType, Tt as DisposerChain, V as scopeKey, _t as emitReadiness, a as viewerUiCapability, i as deviceOpsCapability, k as asString, m as expandCapMethods, mt as normalizeAddonInitResult, o as adminUiCapability, pt as BaseAddon, s as createDeviceProxy, t as sleep, w as isDeviceScopedCap } from "./sleep-
|
|
1
|
+
import { C as DEVICE_SCOPED_CAPS, D as asJsonObject, F as readNodePin, I as DATAPLANE_SECRET_HEADER, L as ReadinessRegistry, M as parseJsonUnknown, P as nodePin, R as ReadinessTimeoutError, S as DeviceType, Tt as DisposerChain, V as scopeKey, _t as emitReadiness, a as viewerUiCapability, i as deviceOpsCapability, k as asString, m as expandCapMethods, mt as normalizeAddonInitResult, o as adminUiCapability, pt as BaseAddon, s as createDeviceProxy, t as sleep, w as isDeviceScopedCap } from "./sleep-NRXhq0dh.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/collection-array-methods.ts
|
|
@@ -96,6 +96,7 @@ export type BrokerProviderInfo = z.infer<typeof BrokerProviderInfoSchema>;
|
|
|
96
96
|
declare const AddInputSchema: z.ZodObject<{
|
|
97
97
|
kind: z.ZodString;
|
|
98
98
|
name: z.ZodString;
|
|
99
|
+
id: z.ZodOptional<z.ZodString>;
|
|
99
100
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
100
101
|
}, z.core.$strip>;
|
|
101
102
|
declare const TestConnectionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -204,6 +205,7 @@ export declare const brokerCapability: {
|
|
|
204
205
|
readonly add: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
205
206
|
kind: z.ZodString;
|
|
206
207
|
name: z.ZodString;
|
|
208
|
+
id: z.ZodOptional<z.ZodString>;
|
|
207
209
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
208
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
211
|
id: z.ZodString;
|
|
@@ -75,7 +75,7 @@ export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.
|
|
|
75
75
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
76
76
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, NotificationActionSchema, type NotificationActionIcon, NotificationActionIconSchema, 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';
|
|
77
77
|
export { type CoreBlock, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockInput, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlocksCapability, type ICoreBlocksProvider, } from './core-blocks.cap.js';
|
|
78
|
-
export { type INotificationRulesProvider, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcCrossing, NcCrossingSchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcDelivery, NcDeliverySchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRuleInput, NcRuleInputSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
78
|
+
export { type INotificationRulesProvider, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcCrossing, NcCrossingSchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcDelivery, NcDeliverySchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRuleInput, NcRuleInputSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
79
79
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
80
80
|
export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindsForDevice, type MediaFileInfo, MediaFileInfoSchema, EventKindsForDeviceSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type MediaFile, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
|
|
81
81
|
export type { NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
|
|
@@ -1227,6 +1227,74 @@ export declare const NcSnoozeSuppressedSchema: z.ZodObject<{
|
|
|
1227
1227
|
lastAt: z.ZodNumber;
|
|
1228
1228
|
}, z.core.$strip>;
|
|
1229
1229
|
export type NcSnoozeSuppressed = z.infer<typeof NcSnoozeSuppressedSchema>;
|
|
1230
|
+
/**
|
|
1231
|
+
* The three durations the panel's state machine runs on, plus who hears about
|
|
1232
|
+
* an arm.
|
|
1233
|
+
*
|
|
1234
|
+
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
1235
|
+
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
1236
|
+
* else's panel, which has its own delays and no way to be told these. This is
|
|
1237
|
+
* configuration of the panel CamStack owns, and the Notification Center owns
|
|
1238
|
+
* that panel.
|
|
1239
|
+
*/
|
|
1240
|
+
export declare const NcAlarmSettingsSchema: z.ZodObject<{
|
|
1241
|
+
exitDelaySec: z.ZodNumber;
|
|
1242
|
+
entryDelaySec: z.ZodNumber;
|
|
1243
|
+
triggeredDurationSec: z.ZodNumber;
|
|
1244
|
+
announceArm: z.ZodBoolean;
|
|
1245
|
+
announceTargets: z.ZodArray<z.ZodString>;
|
|
1246
|
+
}, z.core.$strip>;
|
|
1247
|
+
export type NcAlarmSettings = z.infer<typeof NcAlarmSettingsSchema>;
|
|
1248
|
+
/** Every field optional — a tab edits one control at a time. */
|
|
1249
|
+
export declare const NcAlarmSettingsPatchSchema: z.ZodObject<{
|
|
1250
|
+
exitDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
1251
|
+
entryDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
1252
|
+
triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
1254
|
+
announceTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1255
|
+
}, z.core.$strip>;
|
|
1256
|
+
export type NcAlarmSettingsPatch = z.infer<typeof NcAlarmSettingsPatchSchema>;
|
|
1257
|
+
/**
|
|
1258
|
+
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
1259
|
+
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
1260
|
+
* copy would lie the first time a rule is disabled.
|
|
1261
|
+
*/
|
|
1262
|
+
export declare const NcAlarmModeCoverageSchema: z.ZodObject<{
|
|
1263
|
+
mode: z.ZodEnum<{
|
|
1264
|
+
home: "home";
|
|
1265
|
+
away: "away";
|
|
1266
|
+
night: "night";
|
|
1267
|
+
vacation: "vacation";
|
|
1268
|
+
custom_bypass: "custom_bypass";
|
|
1269
|
+
}>;
|
|
1270
|
+
ruleCount: z.ZodNumber;
|
|
1271
|
+
allDevices: z.ZodBoolean;
|
|
1272
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
1273
|
+
}, z.core.$strip>;
|
|
1274
|
+
export type NcAlarmModeCoverage = z.infer<typeof NcAlarmModeCoverageSchema>;
|
|
1275
|
+
export declare const NcAlarmConfigSchema: z.ZodObject<{
|
|
1276
|
+
deviceId: z.ZodNullable<z.ZodNumber>;
|
|
1277
|
+
settings: z.ZodObject<{
|
|
1278
|
+
exitDelaySec: z.ZodNumber;
|
|
1279
|
+
entryDelaySec: z.ZodNumber;
|
|
1280
|
+
triggeredDurationSec: z.ZodNumber;
|
|
1281
|
+
announceArm: z.ZodBoolean;
|
|
1282
|
+
announceTargets: z.ZodArray<z.ZodString>;
|
|
1283
|
+
}, z.core.$strip>;
|
|
1284
|
+
coverage: z.ZodArray<z.ZodObject<{
|
|
1285
|
+
mode: z.ZodEnum<{
|
|
1286
|
+
home: "home";
|
|
1287
|
+
away: "away";
|
|
1288
|
+
night: "night";
|
|
1289
|
+
vacation: "vacation";
|
|
1290
|
+
custom_bypass: "custom_bypass";
|
|
1291
|
+
}>;
|
|
1292
|
+
ruleCount: z.ZodNumber;
|
|
1293
|
+
allDevices: z.ZodBoolean;
|
|
1294
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
1295
|
+
}, z.core.$strip>>;
|
|
1296
|
+
}, z.core.$strip>;
|
|
1297
|
+
export type NcAlarmConfig = z.infer<typeof NcAlarmConfigSchema>;
|
|
1230
1298
|
export declare const notificationRulesCapability: {
|
|
1231
1299
|
readonly name: "notification-rules";
|
|
1232
1300
|
readonly scope: "system";
|
|
@@ -2711,6 +2779,73 @@ export declare const notificationRulesCapability: {
|
|
|
2711
2779
|
}, z.core.$strip>, "mutation"> & {
|
|
2712
2780
|
readonly caller: "required";
|
|
2713
2781
|
};
|
|
2782
|
+
/**
|
|
2783
|
+
* The alarm panel's durations, plus what each mode ACTUALLY arms.
|
|
2784
|
+
*
|
|
2785
|
+
* Coverage is returned by the same call as the settings on purpose: they
|
|
2786
|
+
* are read together or not at all. An editor that showed the delays
|
|
2787
|
+
* without the coverage would let an operator tune an exit delay for a mode
|
|
2788
|
+
* that arms nothing, which is the failure this whole surface exists to
|
|
2789
|
+
* make visible.
|
|
2790
|
+
*/
|
|
2791
|
+
readonly getAlarmConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
2792
|
+
deviceId: z.ZodNullable<z.ZodNumber>;
|
|
2793
|
+
settings: z.ZodObject<{
|
|
2794
|
+
exitDelaySec: z.ZodNumber;
|
|
2795
|
+
entryDelaySec: z.ZodNumber;
|
|
2796
|
+
triggeredDurationSec: z.ZodNumber;
|
|
2797
|
+
announceArm: z.ZodBoolean;
|
|
2798
|
+
announceTargets: z.ZodArray<z.ZodString>;
|
|
2799
|
+
}, z.core.$strip>;
|
|
2800
|
+
coverage: z.ZodArray<z.ZodObject<{
|
|
2801
|
+
mode: z.ZodEnum<{
|
|
2802
|
+
home: "home";
|
|
2803
|
+
away: "away";
|
|
2804
|
+
night: "night";
|
|
2805
|
+
vacation: "vacation";
|
|
2806
|
+
custom_bypass: "custom_bypass";
|
|
2807
|
+
}>;
|
|
2808
|
+
ruleCount: z.ZodNumber;
|
|
2809
|
+
allDevices: z.ZodBoolean;
|
|
2810
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2811
|
+
}, z.core.$strip>>;
|
|
2812
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
2813
|
+
/**
|
|
2814
|
+
* Patch the durations. Returns the WHOLE config, coverage included, so a
|
|
2815
|
+
* client never has to guess what the server settled on — the panel clamps
|
|
2816
|
+
* and normalises, and a form that re-rendered from its own input would
|
|
2817
|
+
* show a value the alarm is not using.
|
|
2818
|
+
*/
|
|
2819
|
+
readonly setAlarmConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
2820
|
+
patch: z.ZodObject<{
|
|
2821
|
+
exitDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
2822
|
+
entryDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
2823
|
+
triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
2824
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
2825
|
+
announceTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2826
|
+
}, z.core.$strip>;
|
|
2827
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2828
|
+
deviceId: z.ZodNullable<z.ZodNumber>;
|
|
2829
|
+
settings: z.ZodObject<{
|
|
2830
|
+
exitDelaySec: z.ZodNumber;
|
|
2831
|
+
entryDelaySec: z.ZodNumber;
|
|
2832
|
+
triggeredDurationSec: z.ZodNumber;
|
|
2833
|
+
announceArm: z.ZodBoolean;
|
|
2834
|
+
announceTargets: z.ZodArray<z.ZodString>;
|
|
2835
|
+
}, z.core.$strip>;
|
|
2836
|
+
coverage: z.ZodArray<z.ZodObject<{
|
|
2837
|
+
mode: z.ZodEnum<{
|
|
2838
|
+
home: "home";
|
|
2839
|
+
away: "away";
|
|
2840
|
+
night: "night";
|
|
2841
|
+
vacation: "vacation";
|
|
2842
|
+
custom_bypass: "custom_bypass";
|
|
2843
|
+
}>;
|
|
2844
|
+
ruleCount: z.ZodNumber;
|
|
2845
|
+
allDevices: z.ZodBoolean;
|
|
2846
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2847
|
+
}, z.core.$strip>>;
|
|
2848
|
+
}, z.core.$strip>, "mutation">;
|
|
2714
2849
|
};
|
|
2715
2850
|
};
|
|
2716
2851
|
export type INotificationRulesProvider = InferProvider<typeof notificationRulesCapability>;
|
|
@@ -37,7 +37,7 @@ import { DeviceType } from './device-type.js';
|
|
|
37
37
|
* kind can back several device types (`'switch'` ← Switch + Siren, `'sensor'`
|
|
38
38
|
* ← Sensor + Presence, `'dummy'` ← every placeholder/non-controllable type).
|
|
39
39
|
*/
|
|
40
|
-
export type DeviceControlKind = 'cover' | 'valve' | 'humidifier' | 'water-heater' | 'switch' | 'light' | 'fan' | 'sensor' | 'thermostat' | 'climate' | 'button' | 'update' | 'lock' | 'media-player' | 'alarm' | 'control' | 'weather' | 'vacuum' | 'lawn-mower' | 'image' | 'pet-feeder' | 'dummy';
|
|
40
|
+
export type DeviceControlKind = 'cover' | 'valve' | 'humidifier' | 'water-heater' | 'switch' | 'light' | 'fan' | 'sensor' | 'thermostat' | 'climate' | 'button' | 'update' | 'lock' | 'media-player' | 'alarm' | 'control' | 'weather' | 'vacuum' | 'lawn-mower' | 'image' | 'pet-feeder' | 'script' | 'automation' | 'dummy';
|
|
41
41
|
/**
|
|
42
42
|
* Exhaustive `DeviceType` → `DeviceControlKind` map. Omitting a new enum member
|
|
43
43
|
* fails the build here (the single place the type→kind decision is encoded).
|
|
@@ -4411,6 +4411,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4411
4411
|
output: z.infer<typeof notificationRulesCapability.methods.cancelSnooze.output>;
|
|
4412
4412
|
meta: object;
|
|
4413
4413
|
}>;
|
|
4414
|
+
getAlarmConfig: TRPCQueryProcedure<{
|
|
4415
|
+
input: {
|
|
4416
|
+
[x: string]: unknown;
|
|
4417
|
+
} & z.input<typeof notificationRulesCapability.methods.getAlarmConfig.input>;
|
|
4418
|
+
output: z.infer<typeof notificationRulesCapability.methods.getAlarmConfig.output>;
|
|
4419
|
+
meta: object;
|
|
4420
|
+
}>;
|
|
4421
|
+
setAlarmConfig: TRPCMutationProcedure<{
|
|
4422
|
+
input: {
|
|
4423
|
+
[x: string]: unknown;
|
|
4424
|
+
} & z.input<typeof notificationRulesCapability.methods.setAlarmConfig.input>;
|
|
4425
|
+
output: z.infer<typeof notificationRulesCapability.methods.setAlarmConfig.output>;
|
|
4426
|
+
meta: object;
|
|
4427
|
+
}>;
|
|
4414
4428
|
}>>;
|
|
4415
4429
|
notifier: TRPCBuiltRouter<{
|
|
4416
4430
|
ctx: TrpcContext;
|
|
@@ -8182,14 +8196,14 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8182
8196
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8183
8197
|
listCapabilities: import("@trpc/server").TRPCQueryProcedure<{
|
|
8184
8198
|
input: void;
|
|
8185
|
-
output: import("
|
|
8199
|
+
output: import("@camstack/types").CapabilityInfo[];
|
|
8186
8200
|
meta: object;
|
|
8187
8201
|
}>;
|
|
8188
8202
|
getCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
8189
8203
|
input: {
|
|
8190
8204
|
name: string;
|
|
8191
8205
|
};
|
|
8192
|
-
output: import("
|
|
8206
|
+
output: import("@camstack/types").CapabilityInfo | null;
|
|
8193
8207
|
meta: object;
|
|
8194
8208
|
}>;
|
|
8195
8209
|
setActiveSingleton: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -8261,14 +8275,14 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8261
8275
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8262
8276
|
listCapabilities: import("@trpc/server").TRPCQueryProcedure<{
|
|
8263
8277
|
input: void;
|
|
8264
|
-
output: import("
|
|
8278
|
+
output: import("@camstack/types").CapabilityInfo[];
|
|
8265
8279
|
meta: object;
|
|
8266
8280
|
}>;
|
|
8267
8281
|
getCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
8268
8282
|
input: {
|
|
8269
8283
|
name: string;
|
|
8270
8284
|
};
|
|
8271
|
-
output: import("
|
|
8285
|
+
output: import("@camstack/types").CapabilityInfo | null;
|
|
8272
8286
|
meta: object;
|
|
8273
8287
|
}>;
|
|
8274
8288
|
setActiveSingleton: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -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: 856 method paths across 119 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
package/dist/index.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-CJ-cpJTN.js");
|
|
3
3
|
const require_event_category = require("./event-category-BE4PDZ_3.js");
|
|
4
4
|
const require_enums = require("./enums.js");
|
|
5
5
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
@@ -4654,6 +4654,102 @@ function isBaseConditionKey(key) {
|
|
|
4654
4654
|
return BASE_CONDITION_SET.has(key);
|
|
4655
4655
|
}
|
|
4656
4656
|
//#endregion
|
|
4657
|
+
//#region src/capabilities/alarm-panel.cap.ts
|
|
4658
|
+
/**
|
|
4659
|
+
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
4660
|
+
* `DeviceType.AlarmPanel`. State follows HA's canonical lifecycle
|
|
4661
|
+
* across disarmed / armed_(home|away|night|vacation|custom_bypass) /
|
|
4662
|
+
* arming / pending / triggered / disarming.
|
|
4663
|
+
*
|
|
4664
|
+
* Many panels require a PIN code on arm / disarm — the optional
|
|
4665
|
+
* `code` field on the methods passes it through to the upstream
|
|
4666
|
+
* service; it's NEVER persisted in the runtime slice or any event
|
|
4667
|
+
* payload. The presence of a required code is signalled by
|
|
4668
|
+
* `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
|
|
4669
|
+
* field without a slice fetch.
|
|
4670
|
+
*
|
|
4671
|
+
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
4672
|
+
* mode list — the UI renders only the buttons the panel accepts.
|
|
4673
|
+
*/
|
|
4674
|
+
var AlarmStateSchema = zod.z.enum([
|
|
4675
|
+
"disarmed",
|
|
4676
|
+
"armed_home",
|
|
4677
|
+
"armed_away",
|
|
4678
|
+
"armed_night",
|
|
4679
|
+
"armed_vacation",
|
|
4680
|
+
"armed_custom_bypass",
|
|
4681
|
+
"arming",
|
|
4682
|
+
"disarming",
|
|
4683
|
+
"pending",
|
|
4684
|
+
"triggered"
|
|
4685
|
+
]);
|
|
4686
|
+
var AlarmArmModeSchema = zod.z.enum([
|
|
4687
|
+
"home",
|
|
4688
|
+
"away",
|
|
4689
|
+
"night",
|
|
4690
|
+
"vacation",
|
|
4691
|
+
"custom_bypass"
|
|
4692
|
+
]);
|
|
4693
|
+
var AlarmPanelStatusSchema = zod.z.object({
|
|
4694
|
+
/** Current lifecycle state. */
|
|
4695
|
+
state: AlarmStateSchema,
|
|
4696
|
+
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
4697
|
+
* mode in this list. */
|
|
4698
|
+
availableModes: zod.z.array(AlarmArmModeSchema),
|
|
4699
|
+
/** Whether the panel requires a PIN on arm / disarm. Mirrors
|
|
4700
|
+
* `DeviceFeature.AlarmPinRequired` for slice consumers. */
|
|
4701
|
+
requiresCode: zod.z.boolean(),
|
|
4702
|
+
/** Ms epoch when the slice was last updated. */
|
|
4703
|
+
lastChangedAt: zod.z.number()
|
|
4704
|
+
});
|
|
4705
|
+
var alarmPanelCapability = {
|
|
4706
|
+
name: "alarm-panel",
|
|
4707
|
+
scope: "device",
|
|
4708
|
+
deviceNative: true,
|
|
4709
|
+
mode: "singleton",
|
|
4710
|
+
deviceTypes: [require_sleep.DeviceType.AlarmPanel],
|
|
4711
|
+
methods: {
|
|
4712
|
+
arm: require_sleep.method(zod.z.object({
|
|
4713
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
4714
|
+
mode: AlarmArmModeSchema,
|
|
4715
|
+
/** Optional PIN code. Required when `requiresCode === true`.
|
|
4716
|
+
* Passed through to the upstream service; never persisted. */
|
|
4717
|
+
code: zod.z.string().min(1).optional()
|
|
4718
|
+
}), zod.z.void(), {
|
|
4719
|
+
kind: "mutation",
|
|
4720
|
+
auth: "admin"
|
|
4721
|
+
}),
|
|
4722
|
+
disarm: require_sleep.method(zod.z.object({
|
|
4723
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
4724
|
+
code: zod.z.string().min(1).optional()
|
|
4725
|
+
}), zod.z.void(), {
|
|
4726
|
+
kind: "mutation",
|
|
4727
|
+
auth: "admin"
|
|
4728
|
+
}),
|
|
4729
|
+
/**
|
|
4730
|
+
* Force the panel into the `triggered` state — used by HA
|
|
4731
|
+
* automations to surface external sensor events through the panel
|
|
4732
|
+
* (e.g. a Reolink camera intrusion event firing the security
|
|
4733
|
+
* system). Provider rejects when the panel hardware doesn't
|
|
4734
|
+
* support a software-initiated trigger.
|
|
4735
|
+
*/
|
|
4736
|
+
trigger: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
4737
|
+
kind: "mutation",
|
|
4738
|
+
auth: "admin"
|
|
4739
|
+
})
|
|
4740
|
+
},
|
|
4741
|
+
status: {
|
|
4742
|
+
schema: AlarmPanelStatusSchema,
|
|
4743
|
+
kind: "push"
|
|
4744
|
+
},
|
|
4745
|
+
/**
|
|
4746
|
+
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
4747
|
+
* full slice; renders an arm button per `availableModes` entry and
|
|
4748
|
+
* a PIN field iff `requiresCode === true`.
|
|
4749
|
+
*/
|
|
4750
|
+
runtimeState: AlarmPanelStatusSchema
|
|
4751
|
+
};
|
|
4752
|
+
//#endregion
|
|
4657
4753
|
//#region src/capabilities/mask-shape.ts
|
|
4658
4754
|
/**
|
|
4659
4755
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -5686,7 +5782,7 @@ var NC_CONDITION_CATALOG = [
|
|
|
5686
5782
|
{
|
|
5687
5783
|
id: "devices",
|
|
5688
5784
|
group: "scope",
|
|
5689
|
-
label: "
|
|
5785
|
+
label: "Devices",
|
|
5690
5786
|
valueType: "deviceIdList",
|
|
5691
5787
|
operator: "in",
|
|
5692
5788
|
appliesTo: [
|
|
@@ -5696,7 +5792,7 @@ var NC_CONDITION_CATALOG = [
|
|
|
5696
5792
|
"package-event"
|
|
5697
5793
|
],
|
|
5698
5794
|
phase: "P1",
|
|
5699
|
-
description: "Restrict the rule to these devices; absent = all devices."
|
|
5795
|
+
description: "Restrict the rule to these devices; absent = all devices. A sensor event matches either the SENSOR that fired or the camera it is attributed to, so a rule may name either one."
|
|
5700
5796
|
},
|
|
5701
5797
|
{
|
|
5702
5798
|
id: "classes",
|
|
@@ -6157,6 +6253,67 @@ var NcSnoozeSuppressedSchema = zod.z.object({
|
|
|
6157
6253
|
firstAt: zod.z.number(),
|
|
6158
6254
|
lastAt: zod.z.number()
|
|
6159
6255
|
});
|
|
6256
|
+
/**
|
|
6257
|
+
* The three durations the panel's state machine runs on, plus who hears about
|
|
6258
|
+
* an arm.
|
|
6259
|
+
*
|
|
6260
|
+
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
6261
|
+
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
6262
|
+
* else's panel, which has its own delays and no way to be told these. This is
|
|
6263
|
+
* configuration of the panel CamStack owns, and the Notification Center owns
|
|
6264
|
+
* that panel.
|
|
6265
|
+
*/
|
|
6266
|
+
var NcAlarmSettingsSchema = zod.z.object({
|
|
6267
|
+
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
6268
|
+
exitDelaySec: zod.z.number().int().min(0).max(600),
|
|
6269
|
+
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
6270
|
+
entryDelaySec: zod.z.number().int().min(0).max(600),
|
|
6271
|
+
/**
|
|
6272
|
+
* How long `triggered` lasts before the panel re-arms itself.
|
|
6273
|
+
* **0 = until an operator disarms it** — the behaviour before this field
|
|
6274
|
+
* existed, and therefore what an untouched install keeps doing.
|
|
6275
|
+
*/
|
|
6276
|
+
triggeredDurationSec: zod.z.number().int().min(0).max(3600),
|
|
6277
|
+
/** Send a notification when a mode takes effect. */
|
|
6278
|
+
announceArm: zod.z.boolean(),
|
|
6279
|
+
/**
|
|
6280
|
+
* Where that notification goes. Target ids from `notification-output`.
|
|
6281
|
+
*
|
|
6282
|
+
* Explicit rather than "everyone": an arm announcement is a household
|
|
6283
|
+
* message, and broadcasting it to every configured endpoint (including a
|
|
6284
|
+
* webhook wired to something else) is not a default anybody would choose.
|
|
6285
|
+
* Empty with `announceArm: true` sends nothing, and the server logs that —
|
|
6286
|
+
* silence must be attributable.
|
|
6287
|
+
*/
|
|
6288
|
+
announceTargets: zod.z.array(zod.z.string().min(1)).max(16)
|
|
6289
|
+
});
|
|
6290
|
+
/** Every field optional — a tab edits one control at a time. */
|
|
6291
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.partial();
|
|
6292
|
+
/**
|
|
6293
|
+
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
6294
|
+
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
6295
|
+
* copy would lie the first time a rule is disabled.
|
|
6296
|
+
*/
|
|
6297
|
+
var NcAlarmModeCoverageSchema = zod.z.object({
|
|
6298
|
+
mode: AlarmArmModeSchema,
|
|
6299
|
+
/** Enabled rules gated on `armed_<mode>`. Zero means the mode does nothing. */
|
|
6300
|
+
ruleCount: zod.z.number().int().min(0),
|
|
6301
|
+
/** At least one covering rule has no device scope, so the mode covers all. */
|
|
6302
|
+
allDevices: zod.z.boolean(),
|
|
6303
|
+
/** Ids named by the covering rules. A SUBSET when `allDevices` is true. */
|
|
6304
|
+
deviceIds: zod.z.array(zod.z.number().int())
|
|
6305
|
+
});
|
|
6306
|
+
var NcAlarmConfigSchema = zod.z.object({
|
|
6307
|
+
/**
|
|
6308
|
+
* The panel's device id, or null when this install has no panel (the ensure
|
|
6309
|
+
* step failed, or this is not the hub). Null is the honest answer: an editor
|
|
6310
|
+
* that rendered delays for a panel that does not exist would be a form whose
|
|
6311
|
+
* Save does nothing.
|
|
6312
|
+
*/
|
|
6313
|
+
deviceId: zod.z.number().int().nullable(),
|
|
6314
|
+
settings: NcAlarmSettingsSchema,
|
|
6315
|
+
coverage: zod.z.array(NcAlarmModeCoverageSchema)
|
|
6316
|
+
});
|
|
6160
6317
|
var notificationRulesCapability = {
|
|
6161
6318
|
name: "notification-rules",
|
|
6162
6319
|
scope: "system",
|
|
@@ -6252,6 +6409,26 @@ var notificationRulesCapability = {
|
|
|
6252
6409
|
cancelSnooze: require_sleep.method(zod.z.object({ snoozeId: zod.z.string() }), zod.z.object({ success: zod.z.literal(true) }), {
|
|
6253
6410
|
kind: "mutation",
|
|
6254
6411
|
caller: "required"
|
|
6412
|
+
}),
|
|
6413
|
+
/**
|
|
6414
|
+
* The alarm panel's durations, plus what each mode ACTUALLY arms.
|
|
6415
|
+
*
|
|
6416
|
+
* Coverage is returned by the same call as the settings on purpose: they
|
|
6417
|
+
* are read together or not at all. An editor that showed the delays
|
|
6418
|
+
* without the coverage would let an operator tune an exit delay for a mode
|
|
6419
|
+
* that arms nothing, which is the failure this whole surface exists to
|
|
6420
|
+
* make visible.
|
|
6421
|
+
*/
|
|
6422
|
+
getAlarmConfig: require_sleep.method(zod.z.object({}), NcAlarmConfigSchema, { auth: "admin" }),
|
|
6423
|
+
/**
|
|
6424
|
+
* Patch the durations. Returns the WHOLE config, coverage included, so a
|
|
6425
|
+
* client never has to guess what the server settled on — the panel clamps
|
|
6426
|
+
* and normalises, and a form that re-rendered from its own input would
|
|
6427
|
+
* show a value the alarm is not using.
|
|
6428
|
+
*/
|
|
6429
|
+
setAlarmConfig: require_sleep.method(zod.z.object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
6430
|
+
kind: "mutation",
|
|
6431
|
+
auth: "admin"
|
|
6255
6432
|
})
|
|
6256
6433
|
}
|
|
6257
6434
|
};
|
|
@@ -6539,102 +6716,6 @@ var airQualitySensorCapability = {
|
|
|
6539
6716
|
runtimeState: AirQualitySensorStatusSchema
|
|
6540
6717
|
};
|
|
6541
6718
|
//#endregion
|
|
6542
|
-
//#region src/capabilities/alarm-panel.cap.ts
|
|
6543
|
-
/**
|
|
6544
|
-
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
6545
|
-
* `DeviceType.AlarmPanel`. State follows HA's canonical lifecycle
|
|
6546
|
-
* across disarmed / armed_(home|away|night|vacation|custom_bypass) /
|
|
6547
|
-
* arming / pending / triggered / disarming.
|
|
6548
|
-
*
|
|
6549
|
-
* Many panels require a PIN code on arm / disarm — the optional
|
|
6550
|
-
* `code` field on the methods passes it through to the upstream
|
|
6551
|
-
* service; it's NEVER persisted in the runtime slice or any event
|
|
6552
|
-
* payload. The presence of a required code is signalled by
|
|
6553
|
-
* `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
|
|
6554
|
-
* field without a slice fetch.
|
|
6555
|
-
*
|
|
6556
|
-
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
6557
|
-
* mode list — the UI renders only the buttons the panel accepts.
|
|
6558
|
-
*/
|
|
6559
|
-
var AlarmStateSchema = zod.z.enum([
|
|
6560
|
-
"disarmed",
|
|
6561
|
-
"armed_home",
|
|
6562
|
-
"armed_away",
|
|
6563
|
-
"armed_night",
|
|
6564
|
-
"armed_vacation",
|
|
6565
|
-
"armed_custom_bypass",
|
|
6566
|
-
"arming",
|
|
6567
|
-
"disarming",
|
|
6568
|
-
"pending",
|
|
6569
|
-
"triggered"
|
|
6570
|
-
]);
|
|
6571
|
-
var AlarmArmModeSchema = zod.z.enum([
|
|
6572
|
-
"home",
|
|
6573
|
-
"away",
|
|
6574
|
-
"night",
|
|
6575
|
-
"vacation",
|
|
6576
|
-
"custom_bypass"
|
|
6577
|
-
]);
|
|
6578
|
-
var AlarmPanelStatusSchema = zod.z.object({
|
|
6579
|
-
/** Current lifecycle state. */
|
|
6580
|
-
state: AlarmStateSchema,
|
|
6581
|
-
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
6582
|
-
* mode in this list. */
|
|
6583
|
-
availableModes: zod.z.array(AlarmArmModeSchema),
|
|
6584
|
-
/** Whether the panel requires a PIN on arm / disarm. Mirrors
|
|
6585
|
-
* `DeviceFeature.AlarmPinRequired` for slice consumers. */
|
|
6586
|
-
requiresCode: zod.z.boolean(),
|
|
6587
|
-
/** Ms epoch when the slice was last updated. */
|
|
6588
|
-
lastChangedAt: zod.z.number()
|
|
6589
|
-
});
|
|
6590
|
-
var alarmPanelCapability = {
|
|
6591
|
-
name: "alarm-panel",
|
|
6592
|
-
scope: "device",
|
|
6593
|
-
deviceNative: true,
|
|
6594
|
-
mode: "singleton",
|
|
6595
|
-
deviceTypes: [require_sleep.DeviceType.AlarmPanel],
|
|
6596
|
-
methods: {
|
|
6597
|
-
arm: require_sleep.method(zod.z.object({
|
|
6598
|
-
deviceId: zod.z.number().int().nonnegative(),
|
|
6599
|
-
mode: AlarmArmModeSchema,
|
|
6600
|
-
/** Optional PIN code. Required when `requiresCode === true`.
|
|
6601
|
-
* Passed through to the upstream service; never persisted. */
|
|
6602
|
-
code: zod.z.string().min(1).optional()
|
|
6603
|
-
}), zod.z.void(), {
|
|
6604
|
-
kind: "mutation",
|
|
6605
|
-
auth: "admin"
|
|
6606
|
-
}),
|
|
6607
|
-
disarm: require_sleep.method(zod.z.object({
|
|
6608
|
-
deviceId: zod.z.number().int().nonnegative(),
|
|
6609
|
-
code: zod.z.string().min(1).optional()
|
|
6610
|
-
}), zod.z.void(), {
|
|
6611
|
-
kind: "mutation",
|
|
6612
|
-
auth: "admin"
|
|
6613
|
-
}),
|
|
6614
|
-
/**
|
|
6615
|
-
* Force the panel into the `triggered` state — used by HA
|
|
6616
|
-
* automations to surface external sensor events through the panel
|
|
6617
|
-
* (e.g. a Reolink camera intrusion event firing the security
|
|
6618
|
-
* system). Provider rejects when the panel hardware doesn't
|
|
6619
|
-
* support a software-initiated trigger.
|
|
6620
|
-
*/
|
|
6621
|
-
trigger: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
6622
|
-
kind: "mutation",
|
|
6623
|
-
auth: "admin"
|
|
6624
|
-
})
|
|
6625
|
-
},
|
|
6626
|
-
status: {
|
|
6627
|
-
schema: AlarmPanelStatusSchema,
|
|
6628
|
-
kind: "push"
|
|
6629
|
-
},
|
|
6630
|
-
/**
|
|
6631
|
-
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
6632
|
-
* full slice; renders an arm button per `availableModes` entry and
|
|
6633
|
-
* a PIN field iff `requiresCode === true`.
|
|
6634
|
-
*/
|
|
6635
|
-
runtimeState: AlarmPanelStatusSchema
|
|
6636
|
-
};
|
|
6637
|
-
//#endregion
|
|
6638
6719
|
//#region src/capabilities/ambient-light-sensor.cap.ts
|
|
6639
6720
|
/**
|
|
6640
6721
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -14985,8 +15066,8 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
14985
15066
|
[require_sleep.DeviceType.Update]: "update",
|
|
14986
15067
|
[require_sleep.DeviceType.Generic]: "dummy",
|
|
14987
15068
|
[require_sleep.DeviceType.Notifier]: "dummy",
|
|
14988
|
-
[require_sleep.DeviceType.Script]: "
|
|
14989
|
-
[require_sleep.DeviceType.Automation]: "
|
|
15069
|
+
[require_sleep.DeviceType.Script]: "script",
|
|
15070
|
+
[require_sleep.DeviceType.Automation]: "automation",
|
|
14990
15071
|
[require_sleep.DeviceType.Lock]: "lock",
|
|
14991
15072
|
[require_sleep.DeviceType.MediaPlayer]: "media-player",
|
|
14992
15073
|
[require_sleep.DeviceType.AlarmPanel]: "alarm",
|
|
@@ -17621,6 +17702,20 @@ var GetInputSchema = zod.z.object({ id: zod.z.string() });
|
|
|
17621
17702
|
var AddInputSchema = zod.z.object({
|
|
17622
17703
|
kind: zod.z.string().min(1),
|
|
17623
17704
|
name: zod.z.string().min(1),
|
|
17705
|
+
/**
|
|
17706
|
+
* ADOPT an existing id instead of minting a new one.
|
|
17707
|
+
*
|
|
17708
|
+
* Written the day this cost an outage. A broker's id is not a detail: HA
|
|
17709
|
+
* devices carry it inside their `stableId` (`ha:ha_004:dev:…`), so a broker
|
|
17710
|
+
* lost from config and re-added as `ha_001` leaves every one of its devices
|
|
17711
|
+
* bound to a broker that no longer exists. Re-entering the password under the
|
|
17712
|
+
* ORIGINAL id turns a multi-step device migration back into re-entering a
|
|
17713
|
+
* password.
|
|
17714
|
+
*
|
|
17715
|
+
* A provider MUST refuse an id that is already in use — adopting a live
|
|
17716
|
+
* broker's id would silently take it over.
|
|
17717
|
+
*/
|
|
17718
|
+
id: zod.z.string().min(1).optional(),
|
|
17624
17719
|
/** Kind-specific settings (e.g. MQTT `{url,username,password}` or HA
|
|
17625
17720
|
* `{baseUrl,accessToken}`). Validated by the kind-specific provider
|
|
17626
17721
|
* branch on receipt — invalid shape rejects the add. */
|
|
@@ -31462,6 +31557,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
31462
31557
|
addonId: null,
|
|
31463
31558
|
access: "delete"
|
|
31464
31559
|
},
|
|
31560
|
+
"notificationRules.getAlarmConfig": {
|
|
31561
|
+
capName: "notification-rules",
|
|
31562
|
+
capScope: "system",
|
|
31563
|
+
addonId: null,
|
|
31564
|
+
access: "view"
|
|
31565
|
+
},
|
|
31465
31566
|
"notificationRules.getConditionCatalog": {
|
|
31466
31567
|
capName: "notification-rules",
|
|
31467
31568
|
capScope: "system",
|
|
@@ -31492,6 +31593,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
31492
31593
|
addonId: null,
|
|
31493
31594
|
access: "view"
|
|
31494
31595
|
},
|
|
31596
|
+
"notificationRules.setAlarmConfig": {
|
|
31597
|
+
capName: "notification-rules",
|
|
31598
|
+
capScope: "system",
|
|
31599
|
+
addonId: null,
|
|
31600
|
+
access: "create"
|
|
31601
|
+
},
|
|
31495
31602
|
"notificationRules.setRuleEnabled": {
|
|
31496
31603
|
capName: "notification-rules",
|
|
31497
31604
|
capScope: "system",
|
|
@@ -35052,6 +35159,10 @@ exports.NativeDetectionSchema = NativeDetectionSchema;
|
|
|
35052
35159
|
exports.NativeObjectClassEnum = NativeObjectClassEnum;
|
|
35053
35160
|
exports.NativeObjectDetectionRuntimeStateSchema = NativeObjectDetectionRuntimeStateSchema;
|
|
35054
35161
|
exports.NativeObjectDetectionStatusSchema = NativeObjectDetectionStatusSchema;
|
|
35162
|
+
exports.NcAlarmConfigSchema = NcAlarmConfigSchema;
|
|
35163
|
+
exports.NcAlarmModeCoverageSchema = NcAlarmModeCoverageSchema;
|
|
35164
|
+
exports.NcAlarmSettingsPatchSchema = NcAlarmSettingsPatchSchema;
|
|
35165
|
+
exports.NcAlarmSettingsSchema = NcAlarmSettingsSchema;
|
|
35055
35166
|
exports.NcConditionDescriptorSchema = NcConditionDescriptorSchema;
|
|
35056
35167
|
exports.NcConditionsSchema = NcConditionsSchema;
|
|
35057
35168
|
exports.NcCrossingSchema = NcCrossingSchema;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as FrameHandleSchema, A as parseJsonArray, B as readinessKey, C as DEVICE_SCOPED_CAPS, Ct as hydrateSchema, D as asJsonObject, E as asJsonArray, F as readNodePin, G as CamProfileSchema, H as BrokerStatsSchema, I as DATAPLANE_SECRET_HEADER, J as CameraStreamSchema, K as CamStreamKindSchema, L as ReadinessRegistry, M as parseJsonUnknown, N as CAP_NODE_PIN_CONTEXT_KEY, O as asNumber, P as nodePin, Q as FrameHandleFormatSchema, R as ReadinessTimeoutError, S as DeviceType, St as collectHydratedFieldValues, T as asBoolean, Tt as DisposerChain, U as BrokerStatusSchema, V as scopeKey, W as CAM_PROFILE_ORDER, X as DecodedFrameSchema, Y as DecodedAudioChunkSchema, Z as EncodedPacketSchema, _ as resolveCapMount, _t as emitReadiness, a as viewerUiCapability, at as SubscribeAudioChunksInputSchema, b as DeviceFeature, bt as WELL_KNOWN_TAB_MAP, c as createLazyTrpcSource, ct as SubscribeFramesResultSchema, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as parseProfileBrokerId, et as ProfileRtspEntrySchema, f as DEVICE_STATUS_METHOD, ft as selectAssignedProfileSlots, g as method, gt as createEvent, h as isDeviceConfigCap, ht as createDurableState, i as deviceOpsCapability, it as StreamSourceSchema, j as parseJsonObject, k as asString, l as createMirrorSource, lt as makeProfileBrokerId, m as expandCapMethods, mt as normalizeAddonInitResult, n as sleepCancellable, nt as ProfileSlotStatusSchema, o as adminUiCapability, ot as SubscribeAudioChunksResultSchema, p as event, pt as BaseAddon, q as CamStreamResolutionSchema, r as RawStateResultSchema, rt as StreamSourceEntrySchema, s as createDeviceProxy, st as SubscribeFramesInputSchema, t as sleep, tt as ProfileSlotSchema, u as createSliceHandle, ut as makeSourceBrokerId, v as systemMethod, vt as isEvent, w as isDeviceScopedCap, wt as resolveHydratedFieldValue, x as DeviceRole, xt as collectHydratedFieldEntries, y as ChargingStatus, yt as WELL_KNOWN_TABS, z as emitDownForOwnedCaps } from "./sleep-
|
|
1
|
+
import { $ as FrameHandleSchema, A as parseJsonArray, B as readinessKey, C as DEVICE_SCOPED_CAPS, Ct as hydrateSchema, D as asJsonObject, E as asJsonArray, F as readNodePin, G as CamProfileSchema, H as BrokerStatsSchema, I as DATAPLANE_SECRET_HEADER, J as CameraStreamSchema, K as CamStreamKindSchema, L as ReadinessRegistry, M as parseJsonUnknown, N as CAP_NODE_PIN_CONTEXT_KEY, O as asNumber, P as nodePin, Q as FrameHandleFormatSchema, R as ReadinessTimeoutError, S as DeviceType, St as collectHydratedFieldValues, T as asBoolean, Tt as DisposerChain, U as BrokerStatusSchema, V as scopeKey, W as CAM_PROFILE_ORDER, X as DecodedFrameSchema, Y as DecodedAudioChunkSchema, Z as EncodedPacketSchema, _ as resolveCapMount, _t as emitReadiness, a as viewerUiCapability, at as SubscribeAudioChunksInputSchema, b as DeviceFeature, bt as WELL_KNOWN_TAB_MAP, c as createLazyTrpcSource, ct as SubscribeFramesResultSchema, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as parseProfileBrokerId, et as ProfileRtspEntrySchema, f as DEVICE_STATUS_METHOD, ft as selectAssignedProfileSlots, g as method, gt as createEvent, h as isDeviceConfigCap, ht as createDurableState, i as deviceOpsCapability, it as StreamSourceSchema, j as parseJsonObject, k as asString, l as createMirrorSource, lt as makeProfileBrokerId, m as expandCapMethods, mt as normalizeAddonInitResult, n as sleepCancellable, nt as ProfileSlotStatusSchema, o as adminUiCapability, ot as SubscribeAudioChunksResultSchema, p as event, pt as BaseAddon, q as CamStreamResolutionSchema, r as RawStateResultSchema, rt as StreamSourceEntrySchema, s as createDeviceProxy, st as SubscribeFramesInputSchema, t as sleep, tt as ProfileSlotSchema, u as createSliceHandle, ut as makeSourceBrokerId, v as systemMethod, vt as isEvent, w as isDeviceScopedCap, wt as resolveHydratedFieldValue, x as DeviceRole, xt as collectHydratedFieldEntries, y as ChargingStatus, yt as WELL_KNOWN_TABS, z as emitDownForOwnedCaps } from "./sleep-NRXhq0dh.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
|
|
3
3
|
import { EventSourceType } from "./enums.mjs";
|
|
4
4
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
@@ -4653,6 +4653,102 @@ function isBaseConditionKey(key) {
|
|
|
4653
4653
|
return BASE_CONDITION_SET.has(key);
|
|
4654
4654
|
}
|
|
4655
4655
|
//#endregion
|
|
4656
|
+
//#region src/capabilities/alarm-panel.cap.ts
|
|
4657
|
+
/**
|
|
4658
|
+
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
4659
|
+
* `DeviceType.AlarmPanel`. State follows HA's canonical lifecycle
|
|
4660
|
+
* across disarmed / armed_(home|away|night|vacation|custom_bypass) /
|
|
4661
|
+
* arming / pending / triggered / disarming.
|
|
4662
|
+
*
|
|
4663
|
+
* Many panels require a PIN code on arm / disarm — the optional
|
|
4664
|
+
* `code` field on the methods passes it through to the upstream
|
|
4665
|
+
* service; it's NEVER persisted in the runtime slice or any event
|
|
4666
|
+
* payload. The presence of a required code is signalled by
|
|
4667
|
+
* `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
|
|
4668
|
+
* field without a slice fetch.
|
|
4669
|
+
*
|
|
4670
|
+
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
4671
|
+
* mode list — the UI renders only the buttons the panel accepts.
|
|
4672
|
+
*/
|
|
4673
|
+
var AlarmStateSchema = z.enum([
|
|
4674
|
+
"disarmed",
|
|
4675
|
+
"armed_home",
|
|
4676
|
+
"armed_away",
|
|
4677
|
+
"armed_night",
|
|
4678
|
+
"armed_vacation",
|
|
4679
|
+
"armed_custom_bypass",
|
|
4680
|
+
"arming",
|
|
4681
|
+
"disarming",
|
|
4682
|
+
"pending",
|
|
4683
|
+
"triggered"
|
|
4684
|
+
]);
|
|
4685
|
+
var AlarmArmModeSchema = z.enum([
|
|
4686
|
+
"home",
|
|
4687
|
+
"away",
|
|
4688
|
+
"night",
|
|
4689
|
+
"vacation",
|
|
4690
|
+
"custom_bypass"
|
|
4691
|
+
]);
|
|
4692
|
+
var AlarmPanelStatusSchema = z.object({
|
|
4693
|
+
/** Current lifecycle state. */
|
|
4694
|
+
state: AlarmStateSchema,
|
|
4695
|
+
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
4696
|
+
* mode in this list. */
|
|
4697
|
+
availableModes: z.array(AlarmArmModeSchema),
|
|
4698
|
+
/** Whether the panel requires a PIN on arm / disarm. Mirrors
|
|
4699
|
+
* `DeviceFeature.AlarmPinRequired` for slice consumers. */
|
|
4700
|
+
requiresCode: z.boolean(),
|
|
4701
|
+
/** Ms epoch when the slice was last updated. */
|
|
4702
|
+
lastChangedAt: z.number()
|
|
4703
|
+
});
|
|
4704
|
+
var alarmPanelCapability = {
|
|
4705
|
+
name: "alarm-panel",
|
|
4706
|
+
scope: "device",
|
|
4707
|
+
deviceNative: true,
|
|
4708
|
+
mode: "singleton",
|
|
4709
|
+
deviceTypes: [DeviceType.AlarmPanel],
|
|
4710
|
+
methods: {
|
|
4711
|
+
arm: method(z.object({
|
|
4712
|
+
deviceId: z.number().int().nonnegative(),
|
|
4713
|
+
mode: AlarmArmModeSchema,
|
|
4714
|
+
/** Optional PIN code. Required when `requiresCode === true`.
|
|
4715
|
+
* Passed through to the upstream service; never persisted. */
|
|
4716
|
+
code: z.string().min(1).optional()
|
|
4717
|
+
}), z.void(), {
|
|
4718
|
+
kind: "mutation",
|
|
4719
|
+
auth: "admin"
|
|
4720
|
+
}),
|
|
4721
|
+
disarm: method(z.object({
|
|
4722
|
+
deviceId: z.number().int().nonnegative(),
|
|
4723
|
+
code: z.string().min(1).optional()
|
|
4724
|
+
}), z.void(), {
|
|
4725
|
+
kind: "mutation",
|
|
4726
|
+
auth: "admin"
|
|
4727
|
+
}),
|
|
4728
|
+
/**
|
|
4729
|
+
* Force the panel into the `triggered` state — used by HA
|
|
4730
|
+
* automations to surface external sensor events through the panel
|
|
4731
|
+
* (e.g. a Reolink camera intrusion event firing the security
|
|
4732
|
+
* system). Provider rejects when the panel hardware doesn't
|
|
4733
|
+
* support a software-initiated trigger.
|
|
4734
|
+
*/
|
|
4735
|
+
trigger: method(z.object({ deviceId: z.number().int().nonnegative() }), z.void(), {
|
|
4736
|
+
kind: "mutation",
|
|
4737
|
+
auth: "admin"
|
|
4738
|
+
})
|
|
4739
|
+
},
|
|
4740
|
+
status: {
|
|
4741
|
+
schema: AlarmPanelStatusSchema,
|
|
4742
|
+
kind: "push"
|
|
4743
|
+
},
|
|
4744
|
+
/**
|
|
4745
|
+
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
4746
|
+
* full slice; renders an arm button per `availableModes` entry and
|
|
4747
|
+
* a PIN field iff `requiresCode === true`.
|
|
4748
|
+
*/
|
|
4749
|
+
runtimeState: AlarmPanelStatusSchema
|
|
4750
|
+
};
|
|
4751
|
+
//#endregion
|
|
4656
4752
|
//#region src/capabilities/mask-shape.ts
|
|
4657
4753
|
/**
|
|
4658
4754
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -5685,7 +5781,7 @@ var NC_CONDITION_CATALOG = [
|
|
|
5685
5781
|
{
|
|
5686
5782
|
id: "devices",
|
|
5687
5783
|
group: "scope",
|
|
5688
|
-
label: "
|
|
5784
|
+
label: "Devices",
|
|
5689
5785
|
valueType: "deviceIdList",
|
|
5690
5786
|
operator: "in",
|
|
5691
5787
|
appliesTo: [
|
|
@@ -5695,7 +5791,7 @@ var NC_CONDITION_CATALOG = [
|
|
|
5695
5791
|
"package-event"
|
|
5696
5792
|
],
|
|
5697
5793
|
phase: "P1",
|
|
5698
|
-
description: "Restrict the rule to these devices; absent = all devices."
|
|
5794
|
+
description: "Restrict the rule to these devices; absent = all devices. A sensor event matches either the SENSOR that fired or the camera it is attributed to, so a rule may name either one."
|
|
5699
5795
|
},
|
|
5700
5796
|
{
|
|
5701
5797
|
id: "classes",
|
|
@@ -6156,6 +6252,67 @@ var NcSnoozeSuppressedSchema = z.object({
|
|
|
6156
6252
|
firstAt: z.number(),
|
|
6157
6253
|
lastAt: z.number()
|
|
6158
6254
|
});
|
|
6255
|
+
/**
|
|
6256
|
+
* The three durations the panel's state machine runs on, plus who hears about
|
|
6257
|
+
* an arm.
|
|
6258
|
+
*
|
|
6259
|
+
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
6260
|
+
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
6261
|
+
* else's panel, which has its own delays and no way to be told these. This is
|
|
6262
|
+
* configuration of the panel CamStack owns, and the Notification Center owns
|
|
6263
|
+
* that panel.
|
|
6264
|
+
*/
|
|
6265
|
+
var NcAlarmSettingsSchema = z.object({
|
|
6266
|
+
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
6267
|
+
exitDelaySec: z.number().int().min(0).max(600),
|
|
6268
|
+
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
6269
|
+
entryDelaySec: z.number().int().min(0).max(600),
|
|
6270
|
+
/**
|
|
6271
|
+
* How long `triggered` lasts before the panel re-arms itself.
|
|
6272
|
+
* **0 = until an operator disarms it** — the behaviour before this field
|
|
6273
|
+
* existed, and therefore what an untouched install keeps doing.
|
|
6274
|
+
*/
|
|
6275
|
+
triggeredDurationSec: z.number().int().min(0).max(3600),
|
|
6276
|
+
/** Send a notification when a mode takes effect. */
|
|
6277
|
+
announceArm: z.boolean(),
|
|
6278
|
+
/**
|
|
6279
|
+
* Where that notification goes. Target ids from `notification-output`.
|
|
6280
|
+
*
|
|
6281
|
+
* Explicit rather than "everyone": an arm announcement is a household
|
|
6282
|
+
* message, and broadcasting it to every configured endpoint (including a
|
|
6283
|
+
* webhook wired to something else) is not a default anybody would choose.
|
|
6284
|
+
* Empty with `announceArm: true` sends nothing, and the server logs that —
|
|
6285
|
+
* silence must be attributable.
|
|
6286
|
+
*/
|
|
6287
|
+
announceTargets: z.array(z.string().min(1)).max(16)
|
|
6288
|
+
});
|
|
6289
|
+
/** Every field optional — a tab edits one control at a time. */
|
|
6290
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.partial();
|
|
6291
|
+
/**
|
|
6292
|
+
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
6293
|
+
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
6294
|
+
* copy would lie the first time a rule is disabled.
|
|
6295
|
+
*/
|
|
6296
|
+
var NcAlarmModeCoverageSchema = z.object({
|
|
6297
|
+
mode: AlarmArmModeSchema,
|
|
6298
|
+
/** Enabled rules gated on `armed_<mode>`. Zero means the mode does nothing. */
|
|
6299
|
+
ruleCount: z.number().int().min(0),
|
|
6300
|
+
/** At least one covering rule has no device scope, so the mode covers all. */
|
|
6301
|
+
allDevices: z.boolean(),
|
|
6302
|
+
/** Ids named by the covering rules. A SUBSET when `allDevices` is true. */
|
|
6303
|
+
deviceIds: z.array(z.number().int())
|
|
6304
|
+
});
|
|
6305
|
+
var NcAlarmConfigSchema = z.object({
|
|
6306
|
+
/**
|
|
6307
|
+
* The panel's device id, or null when this install has no panel (the ensure
|
|
6308
|
+
* step failed, or this is not the hub). Null is the honest answer: an editor
|
|
6309
|
+
* that rendered delays for a panel that does not exist would be a form whose
|
|
6310
|
+
* Save does nothing.
|
|
6311
|
+
*/
|
|
6312
|
+
deviceId: z.number().int().nullable(),
|
|
6313
|
+
settings: NcAlarmSettingsSchema,
|
|
6314
|
+
coverage: z.array(NcAlarmModeCoverageSchema)
|
|
6315
|
+
});
|
|
6159
6316
|
var notificationRulesCapability = {
|
|
6160
6317
|
name: "notification-rules",
|
|
6161
6318
|
scope: "system",
|
|
@@ -6251,6 +6408,26 @@ var notificationRulesCapability = {
|
|
|
6251
6408
|
cancelSnooze: method(z.object({ snoozeId: z.string() }), z.object({ success: z.literal(true) }), {
|
|
6252
6409
|
kind: "mutation",
|
|
6253
6410
|
caller: "required"
|
|
6411
|
+
}),
|
|
6412
|
+
/**
|
|
6413
|
+
* The alarm panel's durations, plus what each mode ACTUALLY arms.
|
|
6414
|
+
*
|
|
6415
|
+
* Coverage is returned by the same call as the settings on purpose: they
|
|
6416
|
+
* are read together or not at all. An editor that showed the delays
|
|
6417
|
+
* without the coverage would let an operator tune an exit delay for a mode
|
|
6418
|
+
* that arms nothing, which is the failure this whole surface exists to
|
|
6419
|
+
* make visible.
|
|
6420
|
+
*/
|
|
6421
|
+
getAlarmConfig: method(z.object({}), NcAlarmConfigSchema, { auth: "admin" }),
|
|
6422
|
+
/**
|
|
6423
|
+
* Patch the durations. Returns the WHOLE config, coverage included, so a
|
|
6424
|
+
* client never has to guess what the server settled on — the panel clamps
|
|
6425
|
+
* and normalises, and a form that re-rendered from its own input would
|
|
6426
|
+
* show a value the alarm is not using.
|
|
6427
|
+
*/
|
|
6428
|
+
setAlarmConfig: method(z.object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
6429
|
+
kind: "mutation",
|
|
6430
|
+
auth: "admin"
|
|
6254
6431
|
})
|
|
6255
6432
|
}
|
|
6256
6433
|
};
|
|
@@ -6538,102 +6715,6 @@ var airQualitySensorCapability = {
|
|
|
6538
6715
|
runtimeState: AirQualitySensorStatusSchema
|
|
6539
6716
|
};
|
|
6540
6717
|
//#endregion
|
|
6541
|
-
//#region src/capabilities/alarm-panel.cap.ts
|
|
6542
|
-
/**
|
|
6543
|
-
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
6544
|
-
* `DeviceType.AlarmPanel`. State follows HA's canonical lifecycle
|
|
6545
|
-
* across disarmed / armed_(home|away|night|vacation|custom_bypass) /
|
|
6546
|
-
* arming / pending / triggered / disarming.
|
|
6547
|
-
*
|
|
6548
|
-
* Many panels require a PIN code on arm / disarm — the optional
|
|
6549
|
-
* `code` field on the methods passes it through to the upstream
|
|
6550
|
-
* service; it's NEVER persisted in the runtime slice or any event
|
|
6551
|
-
* payload. The presence of a required code is signalled by
|
|
6552
|
-
* `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
|
|
6553
|
-
* field without a slice fetch.
|
|
6554
|
-
*
|
|
6555
|
-
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
6556
|
-
* mode list — the UI renders only the buttons the panel accepts.
|
|
6557
|
-
*/
|
|
6558
|
-
var AlarmStateSchema = z.enum([
|
|
6559
|
-
"disarmed",
|
|
6560
|
-
"armed_home",
|
|
6561
|
-
"armed_away",
|
|
6562
|
-
"armed_night",
|
|
6563
|
-
"armed_vacation",
|
|
6564
|
-
"armed_custom_bypass",
|
|
6565
|
-
"arming",
|
|
6566
|
-
"disarming",
|
|
6567
|
-
"pending",
|
|
6568
|
-
"triggered"
|
|
6569
|
-
]);
|
|
6570
|
-
var AlarmArmModeSchema = z.enum([
|
|
6571
|
-
"home",
|
|
6572
|
-
"away",
|
|
6573
|
-
"night",
|
|
6574
|
-
"vacation",
|
|
6575
|
-
"custom_bypass"
|
|
6576
|
-
]);
|
|
6577
|
-
var AlarmPanelStatusSchema = z.object({
|
|
6578
|
-
/** Current lifecycle state. */
|
|
6579
|
-
state: AlarmStateSchema,
|
|
6580
|
-
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
6581
|
-
* mode in this list. */
|
|
6582
|
-
availableModes: z.array(AlarmArmModeSchema),
|
|
6583
|
-
/** Whether the panel requires a PIN on arm / disarm. Mirrors
|
|
6584
|
-
* `DeviceFeature.AlarmPinRequired` for slice consumers. */
|
|
6585
|
-
requiresCode: z.boolean(),
|
|
6586
|
-
/** Ms epoch when the slice was last updated. */
|
|
6587
|
-
lastChangedAt: z.number()
|
|
6588
|
-
});
|
|
6589
|
-
var alarmPanelCapability = {
|
|
6590
|
-
name: "alarm-panel",
|
|
6591
|
-
scope: "device",
|
|
6592
|
-
deviceNative: true,
|
|
6593
|
-
mode: "singleton",
|
|
6594
|
-
deviceTypes: [DeviceType.AlarmPanel],
|
|
6595
|
-
methods: {
|
|
6596
|
-
arm: method(z.object({
|
|
6597
|
-
deviceId: z.number().int().nonnegative(),
|
|
6598
|
-
mode: AlarmArmModeSchema,
|
|
6599
|
-
/** Optional PIN code. Required when `requiresCode === true`.
|
|
6600
|
-
* Passed through to the upstream service; never persisted. */
|
|
6601
|
-
code: z.string().min(1).optional()
|
|
6602
|
-
}), z.void(), {
|
|
6603
|
-
kind: "mutation",
|
|
6604
|
-
auth: "admin"
|
|
6605
|
-
}),
|
|
6606
|
-
disarm: method(z.object({
|
|
6607
|
-
deviceId: z.number().int().nonnegative(),
|
|
6608
|
-
code: z.string().min(1).optional()
|
|
6609
|
-
}), z.void(), {
|
|
6610
|
-
kind: "mutation",
|
|
6611
|
-
auth: "admin"
|
|
6612
|
-
}),
|
|
6613
|
-
/**
|
|
6614
|
-
* Force the panel into the `triggered` state — used by HA
|
|
6615
|
-
* automations to surface external sensor events through the panel
|
|
6616
|
-
* (e.g. a Reolink camera intrusion event firing the security
|
|
6617
|
-
* system). Provider rejects when the panel hardware doesn't
|
|
6618
|
-
* support a software-initiated trigger.
|
|
6619
|
-
*/
|
|
6620
|
-
trigger: method(z.object({ deviceId: z.number().int().nonnegative() }), z.void(), {
|
|
6621
|
-
kind: "mutation",
|
|
6622
|
-
auth: "admin"
|
|
6623
|
-
})
|
|
6624
|
-
},
|
|
6625
|
-
status: {
|
|
6626
|
-
schema: AlarmPanelStatusSchema,
|
|
6627
|
-
kind: "push"
|
|
6628
|
-
},
|
|
6629
|
-
/**
|
|
6630
|
-
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
6631
|
-
* full slice; renders an arm button per `availableModes` entry and
|
|
6632
|
-
* a PIN field iff `requiresCode === true`.
|
|
6633
|
-
*/
|
|
6634
|
-
runtimeState: AlarmPanelStatusSchema
|
|
6635
|
-
};
|
|
6636
|
-
//#endregion
|
|
6637
6718
|
//#region src/capabilities/ambient-light-sensor.cap.ts
|
|
6638
6719
|
/**
|
|
6639
6720
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -14984,8 +15065,8 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
14984
15065
|
[DeviceType.Update]: "update",
|
|
14985
15066
|
[DeviceType.Generic]: "dummy",
|
|
14986
15067
|
[DeviceType.Notifier]: "dummy",
|
|
14987
|
-
[DeviceType.Script]: "
|
|
14988
|
-
[DeviceType.Automation]: "
|
|
15068
|
+
[DeviceType.Script]: "script",
|
|
15069
|
+
[DeviceType.Automation]: "automation",
|
|
14989
15070
|
[DeviceType.Lock]: "lock",
|
|
14990
15071
|
[DeviceType.MediaPlayer]: "media-player",
|
|
14991
15072
|
[DeviceType.AlarmPanel]: "alarm",
|
|
@@ -17620,6 +17701,20 @@ var GetInputSchema = z.object({ id: z.string() });
|
|
|
17620
17701
|
var AddInputSchema = z.object({
|
|
17621
17702
|
kind: z.string().min(1),
|
|
17622
17703
|
name: z.string().min(1),
|
|
17704
|
+
/**
|
|
17705
|
+
* ADOPT an existing id instead of minting a new one.
|
|
17706
|
+
*
|
|
17707
|
+
* Written the day this cost an outage. A broker's id is not a detail: HA
|
|
17708
|
+
* devices carry it inside their `stableId` (`ha:ha_004:dev:…`), so a broker
|
|
17709
|
+
* lost from config and re-added as `ha_001` leaves every one of its devices
|
|
17710
|
+
* bound to a broker that no longer exists. Re-entering the password under the
|
|
17711
|
+
* ORIGINAL id turns a multi-step device migration back into re-entering a
|
|
17712
|
+
* password.
|
|
17713
|
+
*
|
|
17714
|
+
* A provider MUST refuse an id that is already in use — adopting a live
|
|
17715
|
+
* broker's id would silently take it over.
|
|
17716
|
+
*/
|
|
17717
|
+
id: z.string().min(1).optional(),
|
|
17623
17718
|
/** Kind-specific settings (e.g. MQTT `{url,username,password}` or HA
|
|
17624
17719
|
* `{baseUrl,accessToken}`). Validated by the kind-specific provider
|
|
17625
17720
|
* branch on receipt — invalid shape rejects the add. */
|
|
@@ -31461,6 +31556,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
31461
31556
|
addonId: null,
|
|
31462
31557
|
access: "delete"
|
|
31463
31558
|
},
|
|
31559
|
+
"notificationRules.getAlarmConfig": {
|
|
31560
|
+
capName: "notification-rules",
|
|
31561
|
+
capScope: "system",
|
|
31562
|
+
addonId: null,
|
|
31563
|
+
access: "view"
|
|
31564
|
+
},
|
|
31464
31565
|
"notificationRules.getConditionCatalog": {
|
|
31465
31566
|
capName: "notification-rules",
|
|
31466
31567
|
capScope: "system",
|
|
@@ -31491,6 +31592,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
31491
31592
|
addonId: null,
|
|
31492
31593
|
access: "view"
|
|
31493
31594
|
},
|
|
31595
|
+
"notificationRules.setAlarmConfig": {
|
|
31596
|
+
capName: "notification-rules",
|
|
31597
|
+
capScope: "system",
|
|
31598
|
+
addonId: null,
|
|
31599
|
+
access: "create"
|
|
31600
|
+
},
|
|
31494
31601
|
"notificationRules.setRuleEnabled": {
|
|
31495
31602
|
capName: "notification-rules",
|
|
31496
31603
|
capScope: "system",
|
|
@@ -34664,4 +34771,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
34664
34771
|
return out;
|
|
34665
34772
|
}
|
|
34666
34773
|
//#endregion
|
|
34667
|
-
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlocksCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDeviceStateFrom, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
34774
|
+
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlocksCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDeviceStateFrom, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
@@ -3120,7 +3120,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3120
3120
|
getHistory: (input) => dispatch("notification-rules", "notificationRules", "getHistory", "query", input),
|
|
3121
3121
|
listSnoozes: (input) => dispatch("notification-rules", "notificationRules", "listSnoozes", "query", input),
|
|
3122
3122
|
createSnooze: (input) => dispatch("notification-rules", "notificationRules", "createSnooze", "mutation", input),
|
|
3123
|
-
cancelSnooze: (input) => dispatch("notification-rules", "notificationRules", "cancelSnooze", "mutation", input)
|
|
3123
|
+
cancelSnooze: (input) => dispatch("notification-rules", "notificationRules", "cancelSnooze", "mutation", input),
|
|
3124
|
+
getAlarmConfig: (input) => dispatch("notification-rules", "notificationRules", "getAlarmConfig", "query", input),
|
|
3125
|
+
setAlarmConfig: (input) => dispatch("notification-rules", "notificationRules", "setAlarmConfig", "mutation", input)
|
|
3124
3126
|
},
|
|
3125
3127
|
notifier: {
|
|
3126
3128
|
send: (input) => dispatch("notifier", "notifier", "send", "mutation", input),
|
|
@@ -3120,7 +3120,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3120
3120
|
getHistory: (input) => dispatch("notification-rules", "notificationRules", "getHistory", "query", input),
|
|
3121
3121
|
listSnoozes: (input) => dispatch("notification-rules", "notificationRules", "listSnoozes", "query", input),
|
|
3122
3122
|
createSnooze: (input) => dispatch("notification-rules", "notificationRules", "createSnooze", "mutation", input),
|
|
3123
|
-
cancelSnooze: (input) => dispatch("notification-rules", "notificationRules", "cancelSnooze", "mutation", input)
|
|
3123
|
+
cancelSnooze: (input) => dispatch("notification-rules", "notificationRules", "cancelSnooze", "mutation", input),
|
|
3124
|
+
getAlarmConfig: (input) => dispatch("notification-rules", "notificationRules", "getAlarmConfig", "query", input),
|
|
3125
|
+
setAlarmConfig: (input) => dispatch("notification-rules", "notificationRules", "setAlarmConfig", "mutation", input)
|
|
3124
3126
|
},
|
|
3125
3127
|
notifier: {
|
|
3126
3128
|
send: (input) => dispatch("notifier", "notifier", "send", "mutation", input),
|