@camstack/types 1.2.258 → 1.2.260
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 +12 -2
- package/dist/addon.mjs +12 -2
- package/dist/capabilities/camera-streams.cap.d.ts +5 -5
- package/dist/capabilities/custom-model-registry.cap.d.ts +0 -12
- package/dist/capabilities/decoder.cap.d.ts +12 -12
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/load-contribution.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +0 -6
- package/dist/capabilities/model-distributor.cap.d.ts +0 -12
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/notification-rules.cap.d.ts +572 -18
- package/dist/capabilities/osd-manager.cap.d.ts +1 -1
- package/dist/capabilities/pipeline-analytics.cap.d.ts +50 -127
- package/dist/capabilities/pipeline-executor.cap.d.ts +78 -120
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -64
- package/dist/capabilities/pipeline-runner.cap.d.ts +18 -6
- package/dist/capabilities/platform-probe.cap.d.ts +4 -13
- package/dist/capabilities/recording-export.cap.d.ts +7 -7
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/streaming-shared.d.ts +8 -8
- package/dist/capabilities/stream-broker.cap.d.ts +9 -9
- package/dist/capabilities/system.cap.d.ts +2 -2
- package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
- package/dist/capabilities/videoclips.cap.d.ts +5 -5
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +9 -9
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1785 -1406
- package/dist/index.mjs +1770 -1402
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/interfaces/pipeline-executor-capability.d.ts +15 -6
- package/dist/interfaces/platform.d.ts +2 -2
- package/dist/interfaces/stream-broker.d.ts +2 -2
- package/dist/notification/system-event-summary.d.ts +83 -0
- package/dist/notification/template-vars.d.ts +15 -0
- package/dist/{sleep-DtomDrRW.js → sleep-BDYxE1ax.js} +1 -1
- package/dist/{sleep-DU7mu4wb.mjs → sleep-BaRu0bS5.mjs} +1 -1
- package/dist/types/detection.d.ts +18 -0
- package/dist/types/models.d.ts +0 -19
- package/dist/types/pipeline-step.d.ts +9 -1
- package/dist/types/pipeline.d.ts +2 -1
- package/dist/utils/background-run-registry.d.ts +69 -0
- package/dist/utils/runtime-mapping.d.ts +9 -54
- package/package.json +1 -1
|
@@ -252,6 +252,40 @@ export declare const NcScheduleSchema: z.ZodObject<{
|
|
|
252
252
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
253
253
|
}, z.core.$strip>;
|
|
254
254
|
export type NcSchedule = z.infer<typeof NcScheduleSchema>;
|
|
255
|
+
/**
|
|
256
|
+
* How a system-event rule of the `device-events` or `system` family speaks
|
|
257
|
+
* (D647): at once, per event (`instant`, the only behaviour before D647), or
|
|
258
|
+
* as a STATE SUMMARY at the end of each window of `schedule`.
|
|
259
|
+
*/
|
|
260
|
+
export declare const NcSystemEventDeliveryModeSchema: z.ZodEnum<{
|
|
261
|
+
summary: "summary";
|
|
262
|
+
instant: "instant";
|
|
263
|
+
}>;
|
|
264
|
+
export type NcSystemEventDeliveryMode = z.infer<typeof NcSystemEventDeliveryModeSchema>;
|
|
265
|
+
/**
|
|
266
|
+
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
267
|
+
* CLOSES, it sends one notification with the current state of its kinds
|
|
268
|
+
* (low batteries, consumables to replace, devices offline, updates
|
|
269
|
+
* available, ...), after its own filters. Nothing to report sends nothing.
|
|
270
|
+
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
271
|
+
* midnight crossing); the send time is each window's END. Refused on the
|
|
272
|
+
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
273
|
+
*/
|
|
274
|
+
export declare const NcSystemEventDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
275
|
+
mode: z.ZodLiteral<"instant">;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
mode: z.ZodLiteral<"summary">;
|
|
278
|
+
schedule: z.ZodObject<{
|
|
279
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
280
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
281
|
+
startMinute: z.ZodNumber;
|
|
282
|
+
endMinute: z.ZodNumber;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
285
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
}, z.core.$strip>], "mode">;
|
|
288
|
+
export type NcSystemEventDelivery = z.infer<typeof NcSystemEventDeliverySchema>;
|
|
255
289
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
256
290
|
export declare const NcPlateMatcherSchema: z.ZodObject<{
|
|
257
291
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1087,6 +1121,20 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1087
1121
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1088
1122
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1089
1123
|
}, z.core.$strip>>;
|
|
1124
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1125
|
+
mode: z.ZodLiteral<"instant">;
|
|
1126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1127
|
+
mode: z.ZodLiteral<"summary">;
|
|
1128
|
+
schedule: z.ZodObject<{
|
|
1129
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1130
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
1131
|
+
startMinute: z.ZodNumber;
|
|
1132
|
+
endMinute: z.ZodNumber;
|
|
1133
|
+
}, z.core.$strip>>;
|
|
1134
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1136
|
+
}, z.core.$strip>;
|
|
1137
|
+
}, z.core.$strip>], "mode">>;
|
|
1090
1138
|
targets: z.ZodArray<z.ZodObject<{
|
|
1091
1139
|
targetId: z.ZodString;
|
|
1092
1140
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1234,6 +1282,20 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1234
1282
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1235
1283
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1236
1284
|
}, z.core.$strip>>>;
|
|
1285
|
+
systemEventDelivery: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1286
|
+
mode: z.ZodLiteral<"instant">;
|
|
1287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1288
|
+
mode: z.ZodLiteral<"summary">;
|
|
1289
|
+
schedule: z.ZodObject<{
|
|
1290
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1291
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
1292
|
+
startMinute: z.ZodNumber;
|
|
1293
|
+
endMinute: z.ZodNumber;
|
|
1294
|
+
}, z.core.$strip>>;
|
|
1295
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1297
|
+
}, z.core.$strip>;
|
|
1298
|
+
}, z.core.$strip>], "mode">>>;
|
|
1237
1299
|
targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1238
1300
|
targetId: z.ZodString;
|
|
1239
1301
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1535,6 +1597,20 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
1535
1597
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1536
1598
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1537
1599
|
}, z.core.$strip>>>;
|
|
1600
|
+
systemEventDelivery: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1601
|
+
mode: z.ZodLiteral<"instant">;
|
|
1602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1603
|
+
mode: z.ZodLiteral<"summary">;
|
|
1604
|
+
schedule: z.ZodObject<{
|
|
1605
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1606
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
1607
|
+
startMinute: z.ZodNumber;
|
|
1608
|
+
endMinute: z.ZodNumber;
|
|
1609
|
+
}, z.core.$strip>>;
|
|
1610
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
}, z.core.$strip>], "mode">>>;
|
|
1538
1614
|
targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1539
1615
|
targetId: z.ZodString;
|
|
1540
1616
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1961,6 +2037,20 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1961
2037
|
timezone: z.ZodOptional<z.ZodString>;
|
|
1962
2038
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1963
2039
|
}, z.core.$strip>>;
|
|
2040
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2041
|
+
mode: z.ZodLiteral<"instant">;
|
|
2042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2043
|
+
mode: z.ZodLiteral<"summary">;
|
|
2044
|
+
schedule: z.ZodObject<{
|
|
2045
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
2046
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
2047
|
+
startMinute: z.ZodNumber;
|
|
2048
|
+
endMinute: z.ZodNumber;
|
|
2049
|
+
}, z.core.$strip>>;
|
|
2050
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
2052
|
+
}, z.core.$strip>;
|
|
2053
|
+
}, z.core.$strip>], "mode">>;
|
|
1964
2054
|
targets: z.ZodArray<z.ZodObject<{
|
|
1965
2055
|
targetId: z.ZodString;
|
|
1966
2056
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2086,6 +2176,41 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
2086
2176
|
disabledTargetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2087
2177
|
}, z.core.$strip>;
|
|
2088
2178
|
export type NcRule = z.infer<typeof NcRuleSchema>;
|
|
2179
|
+
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
2180
|
+
export declare const NcStateSummaryPreviewSectionSchema: z.ZodObject<{
|
|
2181
|
+
id: z.ZodString;
|
|
2182
|
+
status: z.ZodEnum<{
|
|
2183
|
+
read: "read";
|
|
2184
|
+
unavailable: "unavailable";
|
|
2185
|
+
}>;
|
|
2186
|
+
items: z.ZodNumber;
|
|
2187
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2188
|
+
}, z.core.$strip>;
|
|
2189
|
+
export type NcStateSummaryPreviewSection = z.infer<typeof NcStateSummaryPreviewSectionSchema>;
|
|
2190
|
+
/**
|
|
2191
|
+
* The summary a rule would send now. `empty` = nothing to report and every
|
|
2192
|
+
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
2193
|
+
* the rule's own filters (or a camera mute) left out, by reason.
|
|
2194
|
+
* `excludedGroups` names the kind groups selected that have no state to report
|
|
2195
|
+
* (backups & exports).
|
|
2196
|
+
*/
|
|
2197
|
+
export declare const NcStateSummaryPreviewSchema: z.ZodObject<{
|
|
2198
|
+
empty: z.ZodBoolean;
|
|
2199
|
+
count: z.ZodNumber;
|
|
2200
|
+
text: z.ZodString;
|
|
2201
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
2202
|
+
id: z.ZodString;
|
|
2203
|
+
status: z.ZodEnum<{
|
|
2204
|
+
read: "read";
|
|
2205
|
+
unavailable: "unavailable";
|
|
2206
|
+
}>;
|
|
2207
|
+
items: z.ZodNumber;
|
|
2208
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2209
|
+
}, z.core.$strip>>;
|
|
2210
|
+
dropped: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2211
|
+
excludedGroups: z.ZodArray<z.ZodString>;
|
|
2212
|
+
}, z.core.$strip>;
|
|
2213
|
+
export type NcStateSummaryPreview = z.infer<typeof NcStateSummaryPreviewSchema>;
|
|
2089
2214
|
export declare const NcTestResultSchema: z.ZodObject<{
|
|
2090
2215
|
recordId: z.ZodString;
|
|
2091
2216
|
recordKind: z.ZodEnum<{
|
|
@@ -2108,8 +2233,8 @@ export type NcTestResult = z.infer<typeof NcTestResultSchema>;
|
|
|
2108
2233
|
* (a stored system rule whose kinds span families, D637) and never authored. */
|
|
2109
2234
|
export declare const NcRuleKindSchema: z.ZodEnum<{
|
|
2110
2235
|
sensor: "sensor";
|
|
2111
|
-
system: "system";
|
|
2112
2236
|
detection: "detection";
|
|
2237
|
+
system: "system";
|
|
2113
2238
|
occupancy: "occupancy";
|
|
2114
2239
|
sound: "sound";
|
|
2115
2240
|
alarm: "alarm";
|
|
@@ -2127,8 +2252,8 @@ export declare const NcRuleKindSchema: z.ZodEnum<{
|
|
|
2127
2252
|
*/
|
|
2128
2253
|
export declare const NcTemplateVarKindSchema: z.ZodEnum<{
|
|
2129
2254
|
sensor: "sensor";
|
|
2130
|
-
system: "system";
|
|
2131
2255
|
detection: "detection";
|
|
2256
|
+
system: "system";
|
|
2132
2257
|
occupancy: "occupancy";
|
|
2133
2258
|
sound: "sound";
|
|
2134
2259
|
}>;
|
|
@@ -2151,8 +2276,8 @@ export declare const NcTemplateFieldSchema: z.ZodEnum<{
|
|
|
2151
2276
|
export type NcTemplateField = z.infer<typeof NcTemplateFieldSchema>;
|
|
2152
2277
|
export declare const NcTemplateVarGroupSchema: z.ZodEnum<{
|
|
2153
2278
|
sensor: "sensor";
|
|
2154
|
-
system: "system";
|
|
2155
2279
|
subject: "subject";
|
|
2280
|
+
system: "system";
|
|
2156
2281
|
occupancy: "occupancy";
|
|
2157
2282
|
ai: "ai";
|
|
2158
2283
|
time: "time";
|
|
@@ -2177,8 +2302,8 @@ export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
|
2177
2302
|
example: z.ZodString;
|
|
2178
2303
|
group: z.ZodEnum<{
|
|
2179
2304
|
sensor: "sensor";
|
|
2180
|
-
system: "system";
|
|
2181
2305
|
subject: "subject";
|
|
2306
|
+
system: "system";
|
|
2182
2307
|
occupancy: "occupancy";
|
|
2183
2308
|
ai: "ai";
|
|
2184
2309
|
time: "time";
|
|
@@ -2200,8 +2325,8 @@ export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
|
2200
2325
|
}>>>;
|
|
2201
2326
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2202
2327
|
sensor: "sensor";
|
|
2203
|
-
system: "system";
|
|
2204
2328
|
detection: "detection";
|
|
2329
|
+
system: "system";
|
|
2205
2330
|
occupancy: "occupancy";
|
|
2206
2331
|
sound: "sound";
|
|
2207
2332
|
}>>>;
|
|
@@ -2252,6 +2377,10 @@ export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
|
2252
2377
|
"camera-disabled": "camera-disabled";
|
|
2253
2378
|
"camera-enabled": "camera-enabled";
|
|
2254
2379
|
}>>>;
|
|
2380
|
+
systemEventDeliveries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2381
|
+
summary: "summary";
|
|
2382
|
+
instant: "instant";
|
|
2383
|
+
}>>>;
|
|
2255
2384
|
dynamic: z.ZodOptional<z.ZodObject<{
|
|
2256
2385
|
prefix: z.ZodLiteral<"count_">;
|
|
2257
2386
|
from: z.ZodLiteral<"classes">;
|
|
@@ -2273,8 +2402,8 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
|
2273
2402
|
}>;
|
|
2274
2403
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2275
2404
|
sensor: "sensor";
|
|
2276
|
-
system: "system";
|
|
2277
2405
|
detection: "detection";
|
|
2406
|
+
system: "system";
|
|
2278
2407
|
occupancy: "occupancy";
|
|
2279
2408
|
sound: "sound";
|
|
2280
2409
|
alarm: "alarm";
|
|
@@ -2328,6 +2457,10 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
|
2328
2457
|
"camera-disabled": "camera-disabled";
|
|
2329
2458
|
"camera-enabled": "camera-enabled";
|
|
2330
2459
|
}>>>;
|
|
2460
|
+
systemEventDelivery: z.ZodOptional<z.ZodEnum<{
|
|
2461
|
+
summary: "summary";
|
|
2462
|
+
instant: "instant";
|
|
2463
|
+
}>>;
|
|
2331
2464
|
}, z.core.$strip>;
|
|
2332
2465
|
export type NcTemplateVarContext = z.infer<typeof NcTemplateVarContextSchema>;
|
|
2333
2466
|
/** Input to `previewTemplate` — the editor's own context, plus the draft text. */
|
|
@@ -2346,8 +2479,8 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
|
2346
2479
|
}>;
|
|
2347
2480
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2348
2481
|
sensor: "sensor";
|
|
2349
|
-
system: "system";
|
|
2350
2482
|
detection: "detection";
|
|
2483
|
+
system: "system";
|
|
2351
2484
|
occupancy: "occupancy";
|
|
2352
2485
|
sound: "sound";
|
|
2353
2486
|
alarm: "alarm";
|
|
@@ -2401,6 +2534,10 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
|
2401
2534
|
"camera-disabled": "camera-disabled";
|
|
2402
2535
|
"camera-enabled": "camera-enabled";
|
|
2403
2536
|
}>>>;
|
|
2537
|
+
systemEventDelivery: z.ZodOptional<z.ZodEnum<{
|
|
2538
|
+
summary: "summary";
|
|
2539
|
+
instant: "instant";
|
|
2540
|
+
}>>;
|
|
2404
2541
|
}, z.core.$strip>;
|
|
2405
2542
|
template: z.ZodObject<{
|
|
2406
2543
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2421,9 +2558,9 @@ export declare const NcConditionDescriptorSchema: z.ZodObject<{
|
|
|
2421
2558
|
audio: "audio";
|
|
2422
2559
|
class: "class";
|
|
2423
2560
|
label: "label";
|
|
2561
|
+
zones: "zones";
|
|
2424
2562
|
device: "device";
|
|
2425
2563
|
system: "system";
|
|
2426
|
-
zones: "zones";
|
|
2427
2564
|
occupancy: "occupancy";
|
|
2428
2565
|
scope: "scope";
|
|
2429
2566
|
schedule: "schedule";
|
|
@@ -2735,8 +2872,8 @@ export type NcRuleLastRuns = z.infer<typeof NcRuleLastRunsSchema>;
|
|
|
2735
2872
|
* summarising the same silence.
|
|
2736
2873
|
*/
|
|
2737
2874
|
export declare const NcSnoozeScopeSchema: z.ZodEnum<{
|
|
2738
|
-
all: "all";
|
|
2739
2875
|
device: "device";
|
|
2876
|
+
all: "all";
|
|
2740
2877
|
rule: "rule";
|
|
2741
2878
|
}>;
|
|
2742
2879
|
export type NcSnoozeScope = z.infer<typeof NcSnoozeScopeSchema>;
|
|
@@ -2747,8 +2884,8 @@ export type NcSnoozeScope = z.infer<typeof NcSnoozeScopeSchema>;
|
|
|
2747
2884
|
*/
|
|
2748
2885
|
export declare const NcSnoozeInputSchema: z.ZodObject<{
|
|
2749
2886
|
scope: z.ZodEnum<{
|
|
2750
|
-
all: "all";
|
|
2751
2887
|
device: "device";
|
|
2888
|
+
all: "all";
|
|
2752
2889
|
rule: "rule";
|
|
2753
2890
|
}>;
|
|
2754
2891
|
ruleId: z.ZodOptional<z.ZodString>;
|
|
@@ -2764,8 +2901,8 @@ export declare const NcSnoozeSchema: z.ZodObject<{
|
|
|
2764
2901
|
id: z.ZodString;
|
|
2765
2902
|
userId: z.ZodString;
|
|
2766
2903
|
scope: z.ZodEnum<{
|
|
2767
|
-
all: "all";
|
|
2768
2904
|
device: "device";
|
|
2905
|
+
all: "all";
|
|
2769
2906
|
rule: "rule";
|
|
2770
2907
|
}>;
|
|
2771
2908
|
ruleId: z.ZodOptional<z.ZodString>;
|
|
@@ -3327,6 +3464,20 @@ export declare const notificationRulesCapability: {
|
|
|
3327
3464
|
timezone: z.ZodOptional<z.ZodString>;
|
|
3328
3465
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
3329
3466
|
}, z.core.$strip>>;
|
|
3467
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3468
|
+
mode: z.ZodLiteral<"instant">;
|
|
3469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3470
|
+
mode: z.ZodLiteral<"summary">;
|
|
3471
|
+
schedule: z.ZodObject<{
|
|
3472
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
3473
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
3474
|
+
startMinute: z.ZodNumber;
|
|
3475
|
+
endMinute: z.ZodNumber;
|
|
3476
|
+
}, z.core.$strip>>;
|
|
3477
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
3479
|
+
}, z.core.$strip>;
|
|
3480
|
+
}, z.core.$strip>], "mode">>;
|
|
3330
3481
|
targets: z.ZodArray<z.ZodObject<{
|
|
3331
3482
|
targetId: z.ZodString;
|
|
3332
3483
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -3610,6 +3761,20 @@ export declare const notificationRulesCapability: {
|
|
|
3610
3761
|
timezone: z.ZodOptional<z.ZodString>;
|
|
3611
3762
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
3612
3763
|
}, z.core.$strip>>;
|
|
3764
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3765
|
+
mode: z.ZodLiteral<"instant">;
|
|
3766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3767
|
+
mode: z.ZodLiteral<"summary">;
|
|
3768
|
+
schedule: z.ZodObject<{
|
|
3769
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
3770
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
3771
|
+
startMinute: z.ZodNumber;
|
|
3772
|
+
endMinute: z.ZodNumber;
|
|
3773
|
+
}, z.core.$strip>>;
|
|
3774
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
3775
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
3776
|
+
}, z.core.$strip>;
|
|
3777
|
+
}, z.core.$strip>], "mode">>;
|
|
3613
3778
|
targets: z.ZodArray<z.ZodObject<{
|
|
3614
3779
|
targetId: z.ZodString;
|
|
3615
3780
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -3891,6 +4056,20 @@ export declare const notificationRulesCapability: {
|
|
|
3891
4056
|
timezone: z.ZodOptional<z.ZodString>;
|
|
3892
4057
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
3893
4058
|
}, z.core.$strip>>;
|
|
4059
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4060
|
+
mode: z.ZodLiteral<"instant">;
|
|
4061
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4062
|
+
mode: z.ZodLiteral<"summary">;
|
|
4063
|
+
schedule: z.ZodObject<{
|
|
4064
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
4065
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
4066
|
+
startMinute: z.ZodNumber;
|
|
4067
|
+
endMinute: z.ZodNumber;
|
|
4068
|
+
}, z.core.$strip>>;
|
|
4069
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4070
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4071
|
+
}, z.core.$strip>;
|
|
4072
|
+
}, z.core.$strip>], "mode">>;
|
|
3894
4073
|
targets: z.ZodArray<z.ZodObject<{
|
|
3895
4074
|
targetId: z.ZodString;
|
|
3896
4075
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4166,6 +4345,20 @@ export declare const notificationRulesCapability: {
|
|
|
4166
4345
|
timezone: z.ZodOptional<z.ZodString>;
|
|
4167
4346
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4168
4347
|
}, z.core.$strip>>;
|
|
4348
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4349
|
+
mode: z.ZodLiteral<"instant">;
|
|
4350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4351
|
+
mode: z.ZodLiteral<"summary">;
|
|
4352
|
+
schedule: z.ZodObject<{
|
|
4353
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
4354
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
4355
|
+
startMinute: z.ZodNumber;
|
|
4356
|
+
endMinute: z.ZodNumber;
|
|
4357
|
+
}, z.core.$strip>>;
|
|
4358
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4359
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4360
|
+
}, z.core.$strip>;
|
|
4361
|
+
}, z.core.$strip>], "mode">>;
|
|
4169
4362
|
targets: z.ZodArray<z.ZodObject<{
|
|
4170
4363
|
targetId: z.ZodString;
|
|
4171
4364
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4313,6 +4506,20 @@ export declare const notificationRulesCapability: {
|
|
|
4313
4506
|
timezone: z.ZodOptional<z.ZodString>;
|
|
4314
4507
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4315
4508
|
}, z.core.$strip>>>;
|
|
4509
|
+
systemEventDelivery: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4510
|
+
mode: z.ZodLiteral<"instant">;
|
|
4511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4512
|
+
mode: z.ZodLiteral<"summary">;
|
|
4513
|
+
schedule: z.ZodObject<{
|
|
4514
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
4515
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
4516
|
+
startMinute: z.ZodNumber;
|
|
4517
|
+
endMinute: z.ZodNumber;
|
|
4518
|
+
}, z.core.$strip>>;
|
|
4519
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4520
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4521
|
+
}, z.core.$strip>;
|
|
4522
|
+
}, z.core.$strip>], "mode">>>;
|
|
4316
4523
|
targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4317
4524
|
targetId: z.ZodString;
|
|
4318
4525
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4737,6 +4944,20 @@ export declare const notificationRulesCapability: {
|
|
|
4737
4944
|
timezone: z.ZodOptional<z.ZodString>;
|
|
4738
4945
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4739
4946
|
}, z.core.$strip>>;
|
|
4947
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4948
|
+
mode: z.ZodLiteral<"instant">;
|
|
4949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4950
|
+
mode: z.ZodLiteral<"summary">;
|
|
4951
|
+
schedule: z.ZodObject<{
|
|
4952
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
4953
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
4954
|
+
startMinute: z.ZodNumber;
|
|
4955
|
+
endMinute: z.ZodNumber;
|
|
4956
|
+
}, z.core.$strip>>;
|
|
4957
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4958
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
4959
|
+
}, z.core.$strip>;
|
|
4960
|
+
}, z.core.$strip>], "mode">>;
|
|
4740
4961
|
targets: z.ZodArray<z.ZodObject<{
|
|
4741
4962
|
targetId: z.ZodString;
|
|
4742
4963
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -5100,6 +5321,20 @@ export declare const notificationRulesCapability: {
|
|
|
5100
5321
|
timezone: z.ZodOptional<z.ZodString>;
|
|
5101
5322
|
invert: z.ZodOptional<z.ZodBoolean>;
|
|
5102
5323
|
}, z.core.$strip>>;
|
|
5324
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5325
|
+
mode: z.ZodLiteral<"instant">;
|
|
5326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5327
|
+
mode: z.ZodLiteral<"summary">;
|
|
5328
|
+
schedule: z.ZodObject<{
|
|
5329
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
5330
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
5331
|
+
startMinute: z.ZodNumber;
|
|
5332
|
+
endMinute: z.ZodNumber;
|
|
5333
|
+
}, z.core.$strip>>;
|
|
5334
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
5335
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
5336
|
+
}, z.core.$strip>;
|
|
5337
|
+
}, z.core.$strip>], "mode">>;
|
|
5103
5338
|
targets: z.ZodArray<z.ZodObject<{
|
|
5104
5339
|
targetId: z.ZodString;
|
|
5105
5340
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -5238,6 +5473,317 @@ export declare const notificationRulesCapability: {
|
|
|
5238
5473
|
label: z.ZodOptional<z.ZodString>;
|
|
5239
5474
|
}, z.core.$strip>>;
|
|
5240
5475
|
}, z.core.$strip>, "mutation">;
|
|
5476
|
+
/**
|
|
5477
|
+
* The STATE SUMMARY a system rule would send now (D647) — for a saved rule
|
|
5478
|
+
* or an unsaved draft. Pure: sends nothing, stamps nothing. A MUTATION
|
|
5479
|
+
* only for transport (a whole rule does not belong in a GET URL). Admin,
|
|
5480
|
+
* like `testRule`: it names devices and nodes across the installation.
|
|
5481
|
+
*/
|
|
5482
|
+
readonly previewStateSummary: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
5483
|
+
rule: z.ZodObject<{
|
|
5484
|
+
name: z.ZodString;
|
|
5485
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5486
|
+
delivery: z.ZodEnum<{
|
|
5487
|
+
"device-event": "device-event";
|
|
5488
|
+
immediate: "immediate";
|
|
5489
|
+
"track-end": "track-end";
|
|
5490
|
+
"package-event": "package-event";
|
|
5491
|
+
"system-event": "system-event";
|
|
5492
|
+
}>;
|
|
5493
|
+
conditions: z.ZodDefault<z.ZodObject<{
|
|
5494
|
+
deviceState: z.ZodOptional<z.ZodObject<{
|
|
5495
|
+
deviceId: z.ZodNumber;
|
|
5496
|
+
states: z.ZodArray<z.ZodString>;
|
|
5497
|
+
}, z.core.$strip>>;
|
|
5498
|
+
scene: z.ZodOptional<z.ZodObject<{
|
|
5499
|
+
sceneId: z.ZodString;
|
|
5500
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
5501
|
+
requiredState: z.ZodEnum<{
|
|
5502
|
+
matched: "matched";
|
|
5503
|
+
diverged: "diverged";
|
|
5504
|
+
}>;
|
|
5505
|
+
latched: z.ZodOptional<z.ZodBoolean>;
|
|
5506
|
+
}, z.core.$strip>>;
|
|
5507
|
+
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5508
|
+
devicesExclude: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5509
|
+
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5510
|
+
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5511
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
5512
|
+
zones: z.ZodOptional<z.ZodObject<{
|
|
5513
|
+
ids: z.ZodArray<z.ZodString>;
|
|
5514
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
5515
|
+
any: "any";
|
|
5516
|
+
all: "all";
|
|
5517
|
+
}>>;
|
|
5518
|
+
}, z.core.$strip>>;
|
|
5519
|
+
zonesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5520
|
+
crossing: z.ZodOptional<z.ZodEnum<{
|
|
5521
|
+
any: "any";
|
|
5522
|
+
enter: "enter";
|
|
5523
|
+
exit: "exit";
|
|
5524
|
+
}>>;
|
|
5525
|
+
labelEquals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5526
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5527
|
+
plates: z.ZodOptional<z.ZodObject<{
|
|
5528
|
+
values: z.ZodArray<z.ZodString>;
|
|
5529
|
+
maxDistance: z.ZodDefault<z.ZodNumber>;
|
|
5530
|
+
}, z.core.$strip>>;
|
|
5531
|
+
identitiesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5532
|
+
minImportance: z.ZodOptional<z.ZodNumber>;
|
|
5533
|
+
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
5534
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
5535
|
+
sensor: "sensor";
|
|
5536
|
+
any: "any";
|
|
5537
|
+
pipeline: "pipeline";
|
|
5538
|
+
audio: "audio";
|
|
5539
|
+
onboard: "onboard";
|
|
5540
|
+
}>>;
|
|
5541
|
+
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
5542
|
+
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5543
|
+
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5544
|
+
sensorTransition: z.ZodOptional<z.ZodEnum<{
|
|
5545
|
+
raised: "raised";
|
|
5546
|
+
cleared: "cleared";
|
|
5547
|
+
}>>;
|
|
5548
|
+
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
5549
|
+
both: "both";
|
|
5550
|
+
delivered: "delivered";
|
|
5551
|
+
"picked-up": "picked-up";
|
|
5552
|
+
}>>;
|
|
5553
|
+
systemEvent: z.ZodOptional<z.ZodObject<{
|
|
5554
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
5555
|
+
"device-disabled": "device-disabled";
|
|
5556
|
+
"device-online": "device-online";
|
|
5557
|
+
"device-offline": "device-offline";
|
|
5558
|
+
"device-enabled": "device-enabled";
|
|
5559
|
+
"device-battery-low": "device-battery-low";
|
|
5560
|
+
"device-battery-normal": "device-battery-normal";
|
|
5561
|
+
"device-consumable-low": "device-consumable-low";
|
|
5562
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
5563
|
+
"device-tank-low": "device-tank-low";
|
|
5564
|
+
"device-tank-full": "device-tank-full";
|
|
5565
|
+
"device-tank-normal": "device-tank-normal";
|
|
5566
|
+
"stream-online": "stream-online";
|
|
5567
|
+
"stream-offline": "stream-offline";
|
|
5568
|
+
"node-online": "node-online";
|
|
5569
|
+
"node-offline": "node-offline";
|
|
5570
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
5571
|
+
"detection-blind": "detection-blind";
|
|
5572
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
5573
|
+
"addon-update-available": "addon-update-available";
|
|
5574
|
+
"server-update-available": "server-update-available";
|
|
5575
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
5576
|
+
"alarm-triggered": "alarm-triggered";
|
|
5577
|
+
"alarm-armed": "alarm-armed";
|
|
5578
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
5579
|
+
"alarm-arming": "alarm-arming";
|
|
5580
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
5581
|
+
"alarm-pending": "alarm-pending";
|
|
5582
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
5583
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
5584
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
5585
|
+
"addon-updated": "addon-updated";
|
|
5586
|
+
"server-updated": "server-updated";
|
|
5587
|
+
"export-completed": "export-completed";
|
|
5588
|
+
"backup-completed": "backup-completed";
|
|
5589
|
+
"camera-online": "camera-online";
|
|
5590
|
+
"camera-offline": "camera-offline";
|
|
5591
|
+
"camera-disabled": "camera-disabled";
|
|
5592
|
+
"camera-enabled": "camera-enabled";
|
|
5593
|
+
}>>;
|
|
5594
|
+
deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5595
|
+
deviceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5596
|
+
excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5597
|
+
nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5598
|
+
packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5599
|
+
consumableLowPercent: z.ZodOptional<z.ZodNumber>;
|
|
5600
|
+
}, z.core.$strip>>;
|
|
5601
|
+
customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5602
|
+
kind: z.ZodLiteral<"polygon">;
|
|
5603
|
+
points: z.ZodArray<z.ZodObject<{
|
|
5604
|
+
x: z.ZodNumber;
|
|
5605
|
+
y: z.ZodNumber;
|
|
5606
|
+
}, z.core.$strip>>;
|
|
5607
|
+
}, z.core.$strip>>>;
|
|
5608
|
+
occupancy: z.ZodOptional<z.ZodObject<{
|
|
5609
|
+
zoneId: z.ZodOptional<z.ZodString>;
|
|
5610
|
+
className: z.ZodOptional<z.ZodString>;
|
|
5611
|
+
op: z.ZodDefault<z.ZodEnum<{
|
|
5612
|
+
"became-occupied": "became-occupied";
|
|
5613
|
+
"became-free": "became-free";
|
|
5614
|
+
">=": ">=";
|
|
5615
|
+
"<=": "<=";
|
|
5616
|
+
}>>;
|
|
5617
|
+
count: z.ZodDefault<z.ZodNumber>;
|
|
5618
|
+
sustainSeconds: z.ZodDefault<z.ZodNumber>;
|
|
5619
|
+
}, z.core.$strip>>;
|
|
5620
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
5621
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5622
|
+
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
5623
|
+
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
5624
|
+
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
5625
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
5626
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
5627
|
+
}, z.core.$strip>>;
|
|
5628
|
+
}, z.core.$strip>>;
|
|
5629
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
5630
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
5631
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
5632
|
+
startMinute: z.ZodNumber;
|
|
5633
|
+
endMinute: z.ZodNumber;
|
|
5634
|
+
}, z.core.$strip>>;
|
|
5635
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
5636
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
5637
|
+
}, z.core.$strip>>;
|
|
5638
|
+
systemEventDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5639
|
+
mode: z.ZodLiteral<"instant">;
|
|
5640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5641
|
+
mode: z.ZodLiteral<"summary">;
|
|
5642
|
+
schedule: z.ZodObject<{
|
|
5643
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
5644
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
5645
|
+
startMinute: z.ZodNumber;
|
|
5646
|
+
endMinute: z.ZodNumber;
|
|
5647
|
+
}, z.core.$strip>>;
|
|
5648
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
5649
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
5650
|
+
}, z.core.$strip>;
|
|
5651
|
+
}, z.core.$strip>], "mode">>;
|
|
5652
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
5653
|
+
targetId: z.ZodString;
|
|
5654
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5655
|
+
}, z.core.$strip>>;
|
|
5656
|
+
targetUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5657
|
+
media: z.ZodDefault<z.ZodObject<{
|
|
5658
|
+
attach: z.ZodDefault<z.ZodEnum<{
|
|
5659
|
+
none: "none";
|
|
5660
|
+
keyFrame: "keyFrame";
|
|
5661
|
+
best: "best";
|
|
5662
|
+
"best-matching": "best-matching";
|
|
5663
|
+
}>>;
|
|
5664
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
5665
|
+
full: "full";
|
|
5666
|
+
boxed: "boxed";
|
|
5667
|
+
cropped: "cropped";
|
|
5668
|
+
}>>;
|
|
5669
|
+
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
5670
|
+
gif: z.ZodOptional<z.ZodBoolean>;
|
|
5671
|
+
clip: z.ZodOptional<z.ZodBoolean>;
|
|
5672
|
+
clipPreRollSec: z.ZodOptional<z.ZodNumber>;
|
|
5673
|
+
clipPostRollSec: z.ZodOptional<z.ZodNumber>;
|
|
5674
|
+
clipSpeed: z.ZodOptional<z.ZodNumber>;
|
|
5675
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
5676
|
+
high: "high";
|
|
5677
|
+
mid: "mid";
|
|
5678
|
+
low: "low";
|
|
5679
|
+
}>>;
|
|
5680
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
5681
|
+
mosaic: "mosaic";
|
|
5682
|
+
each: "each";
|
|
5683
|
+
}>>;
|
|
5684
|
+
}, z.core.$strip>>;
|
|
5685
|
+
throttle: z.ZodDefault<z.ZodObject<{
|
|
5686
|
+
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
5687
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
5688
|
+
rule: "rule";
|
|
5689
|
+
"rule-device": "rule-device";
|
|
5690
|
+
}>>;
|
|
5691
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
5692
|
+
shared: "shared";
|
|
5693
|
+
"per-class": "per-class";
|
|
5694
|
+
}>>;
|
|
5695
|
+
}, z.core.$strip>>;
|
|
5696
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
5697
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5698
|
+
body: z.ZodOptional<z.ZodString>;
|
|
5699
|
+
}, z.core.$strip>>;
|
|
5700
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
5701
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
5702
|
+
snoozeAllowGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
5703
|
+
snoozeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5704
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
5705
|
+
onTrigger: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5706
|
+
name: z.ZodString;
|
|
5707
|
+
enabled: z.ZodBoolean;
|
|
5708
|
+
minDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
5709
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5710
|
+
kind: z.ZodLiteral<"wait">;
|
|
5711
|
+
seconds: z.ZodNumber;
|
|
5712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5713
|
+
kind: z.ZodLiteral<"cap">;
|
|
5714
|
+
deviceId: z.ZodNumber;
|
|
5715
|
+
cap: z.ZodString;
|
|
5716
|
+
method: z.ZodString;
|
|
5717
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5718
|
+
}, z.core.$strip>], "kind">>;
|
|
5719
|
+
}, z.core.$strip>>>;
|
|
5720
|
+
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5721
|
+
id: z.ZodString;
|
|
5722
|
+
label: z.ZodString;
|
|
5723
|
+
sequence: z.ZodString;
|
|
5724
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
5725
|
+
camera: "camera";
|
|
5726
|
+
light: "light";
|
|
5727
|
+
lock: "lock";
|
|
5728
|
+
view: "view";
|
|
5729
|
+
arm: "arm";
|
|
5730
|
+
disarm: "disarm";
|
|
5731
|
+
dismiss: "dismiss";
|
|
5732
|
+
open: "open";
|
|
5733
|
+
close: "close";
|
|
5734
|
+
unlock: "unlock";
|
|
5735
|
+
play: "play";
|
|
5736
|
+
acknowledge: "acknowledge";
|
|
5737
|
+
silence: "silence";
|
|
5738
|
+
snooze: "snooze";
|
|
5739
|
+
"arm-home": "arm-home";
|
|
5740
|
+
"arm-away": "arm-away";
|
|
5741
|
+
"arm-night": "arm-night";
|
|
5742
|
+
alert: "alert";
|
|
5743
|
+
}>>;
|
|
5744
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
5745
|
+
}, z.core.$strip>>>;
|
|
5746
|
+
}, z.core.$strip>>;
|
|
5747
|
+
confirm: z.ZodOptional<z.ZodObject<{
|
|
5748
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5749
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
5750
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5751
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
5752
|
+
op: z.ZodEnum<{
|
|
5753
|
+
">=": ">=";
|
|
5754
|
+
"<=": "<=";
|
|
5755
|
+
">": ">";
|
|
5756
|
+
"<": "<";
|
|
5757
|
+
"==": "==";
|
|
5758
|
+
}>;
|
|
5759
|
+
count: z.ZodNumber;
|
|
5760
|
+
}, z.core.$strip>>;
|
|
5761
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
5762
|
+
onTimeout: z.ZodDefault<z.ZodEnum<{
|
|
5763
|
+
fire: "fire";
|
|
5764
|
+
suppress: "suppress";
|
|
5765
|
+
}>>;
|
|
5766
|
+
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
5767
|
+
}, z.core.$strip>>;
|
|
5768
|
+
waitForEnhancement: z.ZodOptional<z.ZodBoolean>;
|
|
5769
|
+
groupIdleSec: z.ZodOptional<z.ZodNumber>;
|
|
5770
|
+
}, z.core.$strip>;
|
|
5771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5772
|
+
empty: z.ZodBoolean;
|
|
5773
|
+
count: z.ZodNumber;
|
|
5774
|
+
text: z.ZodString;
|
|
5775
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
5776
|
+
id: z.ZodString;
|
|
5777
|
+
status: z.ZodEnum<{
|
|
5778
|
+
read: "read";
|
|
5779
|
+
unavailable: "unavailable";
|
|
5780
|
+
}>;
|
|
5781
|
+
items: z.ZodNumber;
|
|
5782
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5783
|
+
}, z.core.$strip>>;
|
|
5784
|
+
dropped: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
5785
|
+
excludedGroups: z.ZodArray<z.ZodString>;
|
|
5786
|
+
}, z.core.$strip>, "mutation">;
|
|
5241
5787
|
/**
|
|
5242
5788
|
* The machine-readable condition surface a rule editor renders from, plus
|
|
5243
5789
|
* the picker VOCABULARY those conditions draw on.
|
|
@@ -5256,9 +5802,9 @@ export declare const notificationRulesCapability: {
|
|
|
5256
5802
|
audio: "audio";
|
|
5257
5803
|
class: "class";
|
|
5258
5804
|
label: "label";
|
|
5805
|
+
zones: "zones";
|
|
5259
5806
|
device: "device";
|
|
5260
5807
|
system: "system";
|
|
5261
|
-
zones: "zones";
|
|
5262
5808
|
occupancy: "occupancy";
|
|
5263
5809
|
scope: "scope";
|
|
5264
5810
|
schedule: "schedule";
|
|
@@ -5337,8 +5883,8 @@ export declare const notificationRulesCapability: {
|
|
|
5337
5883
|
example: z.ZodString;
|
|
5338
5884
|
group: z.ZodEnum<{
|
|
5339
5885
|
sensor: "sensor";
|
|
5340
|
-
system: "system";
|
|
5341
5886
|
subject: "subject";
|
|
5887
|
+
system: "system";
|
|
5342
5888
|
occupancy: "occupancy";
|
|
5343
5889
|
ai: "ai";
|
|
5344
5890
|
time: "time";
|
|
@@ -5360,8 +5906,8 @@ export declare const notificationRulesCapability: {
|
|
|
5360
5906
|
}>>>;
|
|
5361
5907
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5362
5908
|
sensor: "sensor";
|
|
5363
|
-
system: "system";
|
|
5364
5909
|
detection: "detection";
|
|
5910
|
+
system: "system";
|
|
5365
5911
|
occupancy: "occupancy";
|
|
5366
5912
|
sound: "sound";
|
|
5367
5913
|
}>>>;
|
|
@@ -5412,6 +5958,10 @@ export declare const notificationRulesCapability: {
|
|
|
5412
5958
|
"camera-disabled": "camera-disabled";
|
|
5413
5959
|
"camera-enabled": "camera-enabled";
|
|
5414
5960
|
}>>>;
|
|
5961
|
+
systemEventDeliveries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5962
|
+
summary: "summary";
|
|
5963
|
+
instant: "instant";
|
|
5964
|
+
}>>>;
|
|
5415
5965
|
dynamic: z.ZodOptional<z.ZodObject<{
|
|
5416
5966
|
prefix: z.ZodLiteral<"count_">;
|
|
5417
5967
|
from: z.ZodLiteral<"classes">;
|
|
@@ -5439,8 +5989,8 @@ export declare const notificationRulesCapability: {
|
|
|
5439
5989
|
}>;
|
|
5440
5990
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
5441
5991
|
sensor: "sensor";
|
|
5442
|
-
system: "system";
|
|
5443
5992
|
detection: "detection";
|
|
5993
|
+
system: "system";
|
|
5444
5994
|
occupancy: "occupancy";
|
|
5445
5995
|
sound: "sound";
|
|
5446
5996
|
alarm: "alarm";
|
|
@@ -5494,6 +6044,10 @@ export declare const notificationRulesCapability: {
|
|
|
5494
6044
|
"camera-disabled": "camera-disabled";
|
|
5495
6045
|
"camera-enabled": "camera-enabled";
|
|
5496
6046
|
}>>>;
|
|
6047
|
+
systemEventDelivery: z.ZodOptional<z.ZodEnum<{
|
|
6048
|
+
summary: "summary";
|
|
6049
|
+
instant: "instant";
|
|
6050
|
+
}>>;
|
|
5497
6051
|
}, z.core.$strip>;
|
|
5498
6052
|
template: z.ZodObject<{
|
|
5499
6053
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -5665,8 +6219,8 @@ export declare const notificationRulesCapability: {
|
|
|
5665
6219
|
id: z.ZodString;
|
|
5666
6220
|
userId: z.ZodString;
|
|
5667
6221
|
scope: z.ZodEnum<{
|
|
5668
|
-
all: "all";
|
|
5669
6222
|
device: "device";
|
|
6223
|
+
all: "all";
|
|
5670
6224
|
rule: "rule";
|
|
5671
6225
|
}>;
|
|
5672
6226
|
ruleId: z.ZodOptional<z.ZodString>;
|
|
@@ -5692,8 +6246,8 @@ export declare const notificationRulesCapability: {
|
|
|
5692
6246
|
readonly createSnooze: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
5693
6247
|
snooze: z.ZodObject<{
|
|
5694
6248
|
scope: z.ZodEnum<{
|
|
5695
|
-
all: "all";
|
|
5696
6249
|
device: "device";
|
|
6250
|
+
all: "all";
|
|
5697
6251
|
rule: "rule";
|
|
5698
6252
|
}>;
|
|
5699
6253
|
ruleId: z.ZodOptional<z.ZodString>;
|
|
@@ -5708,8 +6262,8 @@ export declare const notificationRulesCapability: {
|
|
|
5708
6262
|
id: z.ZodString;
|
|
5709
6263
|
userId: z.ZodString;
|
|
5710
6264
|
scope: z.ZodEnum<{
|
|
5711
|
-
all: "all";
|
|
5712
6265
|
device: "device";
|
|
6266
|
+
all: "all";
|
|
5713
6267
|
rule: "rule";
|
|
5714
6268
|
}>;
|
|
5715
6269
|
ruleId: z.ZodOptional<z.ZodString>;
|