@camstack/types 1.2.81 → 1.2.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-D3gG7oil.js");
3
- const require_sleep = require("./sleep-EYtyUX0L.js");
2
+ const require_event_category = require("./event-category-DBHdQVIy.js");
3
+ const require_sleep = require("./sleep-D7mb1rkB.js");
4
4
  const require_err_msg = require("./err-msg-COpsHMw2.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as EventCategory } from "./event-category-Bxo5yJjt.mjs";
2
- import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-BxO5xNe6.mjs";
1
+ import { t as EventCategory } from "./event-category-C0lyLd5U.mjs";
2
+ import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-DwZeeAV3.mjs";
3
3
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
@@ -83,6 +83,9 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
83
83
  "alarm-disarmed": "alarm-disarmed";
84
84
  "alarm-arming": "alarm-arming";
85
85
  "alarm-arm-refused": "alarm-arm-refused";
86
+ "addon-updated": "addon-updated";
87
+ "server-updated": "server-updated";
88
+ "export-completed": "export-completed";
86
89
  "camera-online": "camera-online";
87
90
  "camera-offline": "camera-offline";
88
91
  "camera-disabled": "camera-disabled";
@@ -132,6 +135,9 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
132
135
  "alarm-disarmed": "alarm-disarmed";
133
136
  "alarm-arming": "alarm-arming";
134
137
  "alarm-arm-refused": "alarm-arm-refused";
138
+ "addon-updated": "addon-updated";
139
+ "server-updated": "server-updated";
140
+ "export-completed": "export-completed";
135
141
  "camera-online": "camera-online";
136
142
  "camera-offline": "camera-offline";
137
143
  "camera-disabled": "camera-disabled";
@@ -597,6 +603,9 @@ export declare const NcConditionsSchema: z.ZodObject<{
597
603
  "alarm-disarmed": "alarm-disarmed";
598
604
  "alarm-arming": "alarm-arming";
599
605
  "alarm-arm-refused": "alarm-arm-refused";
606
+ "addon-updated": "addon-updated";
607
+ "server-updated": "server-updated";
608
+ "export-completed": "export-completed";
600
609
  "camera-online": "camera-online";
601
610
  "camera-offline": "camera-offline";
602
611
  "camera-disabled": "camera-disabled";
@@ -875,6 +884,9 @@ export declare const NcRuleInputSchema: z.ZodObject<{
875
884
  "alarm-disarmed": "alarm-disarmed";
876
885
  "alarm-arming": "alarm-arming";
877
886
  "alarm-arm-refused": "alarm-arm-refused";
887
+ "addon-updated": "addon-updated";
888
+ "server-updated": "server-updated";
889
+ "export-completed": "export-completed";
878
890
  "camera-online": "camera-online";
879
891
  "camera-offline": "camera-offline";
880
892
  "camera-disabled": "camera-disabled";
@@ -1217,6 +1229,9 @@ export declare const NcRulePatchSchema: z.ZodObject<{
1217
1229
  "alarm-disarmed": "alarm-disarmed";
1218
1230
  "alarm-arming": "alarm-arming";
1219
1231
  "alarm-arm-refused": "alarm-arm-refused";
1232
+ "addon-updated": "addon-updated";
1233
+ "server-updated": "server-updated";
1234
+ "export-completed": "export-completed";
1220
1235
  "camera-online": "camera-online";
1221
1236
  "camera-offline": "camera-offline";
1222
1237
  "camera-disabled": "camera-disabled";
@@ -1376,6 +1391,9 @@ export declare const NcRuleSchema: z.ZodObject<{
1376
1391
  "alarm-disarmed": "alarm-disarmed";
1377
1392
  "alarm-arming": "alarm-arming";
1378
1393
  "alarm-arm-refused": "alarm-arm-refused";
1394
+ "addon-updated": "addon-updated";
1395
+ "server-updated": "server-updated";
1396
+ "export-completed": "export-completed";
1379
1397
  "camera-online": "camera-online";
1380
1398
  "camera-offline": "camera-offline";
1381
1399
  "camera-disabled": "camera-disabled";
@@ -1677,6 +1695,9 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
1677
1695
  "alarm-disarmed": "alarm-disarmed";
1678
1696
  "alarm-arming": "alarm-arming";
1679
1697
  "alarm-arm-refused": "alarm-arm-refused";
1698
+ "addon-updated": "addon-updated";
1699
+ "server-updated": "server-updated";
1700
+ "export-completed": "export-completed";
1680
1701
  "camera-online": "camera-online";
1681
1702
  "camera-offline": "camera-offline";
1682
1703
  "camera-disabled": "camera-disabled";
@@ -1756,6 +1777,9 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
1756
1777
  "alarm-disarmed": "alarm-disarmed";
1757
1778
  "alarm-arming": "alarm-arming";
1758
1779
  "alarm-arm-refused": "alarm-arm-refused";
1780
+ "addon-updated": "addon-updated";
1781
+ "server-updated": "server-updated";
1782
+ "export-completed": "export-completed";
1759
1783
  "camera-online": "camera-online";
1760
1784
  "camera-offline": "camera-offline";
1761
1785
  "camera-disabled": "camera-disabled";
@@ -2051,6 +2075,9 @@ export declare const notificationRulesCapability: {
2051
2075
  "alarm-disarmed": "alarm-disarmed";
2052
2076
  "alarm-arming": "alarm-arming";
2053
2077
  "alarm-arm-refused": "alarm-arm-refused";
2078
+ "addon-updated": "addon-updated";
2079
+ "server-updated": "server-updated";
2080
+ "export-completed": "export-completed";
2054
2081
  "camera-online": "camera-online";
2055
2082
  "camera-offline": "camera-offline";
2056
2083
  "camera-disabled": "camera-disabled";
@@ -2304,6 +2331,9 @@ export declare const notificationRulesCapability: {
2304
2331
  "alarm-disarmed": "alarm-disarmed";
2305
2332
  "alarm-arming": "alarm-arming";
2306
2333
  "alarm-arm-refused": "alarm-arm-refused";
2334
+ "addon-updated": "addon-updated";
2335
+ "server-updated": "server-updated";
2336
+ "export-completed": "export-completed";
2307
2337
  "camera-online": "camera-online";
2308
2338
  "camera-offline": "camera-offline";
2309
2339
  "camera-disabled": "camera-disabled";
@@ -2555,6 +2585,9 @@ export declare const notificationRulesCapability: {
2555
2585
  "alarm-disarmed": "alarm-disarmed";
2556
2586
  "alarm-arming": "alarm-arming";
2557
2587
  "alarm-arm-refused": "alarm-arm-refused";
2588
+ "addon-updated": "addon-updated";
2589
+ "server-updated": "server-updated";
2590
+ "export-completed": "export-completed";
2558
2591
  "camera-online": "camera-online";
2559
2592
  "camera-offline": "camera-offline";
2560
2593
  "camera-disabled": "camera-disabled";
@@ -2800,6 +2833,9 @@ export declare const notificationRulesCapability: {
2800
2833
  "alarm-disarmed": "alarm-disarmed";
2801
2834
  "alarm-arming": "alarm-arming";
2802
2835
  "alarm-arm-refused": "alarm-arm-refused";
2836
+ "addon-updated": "addon-updated";
2837
+ "server-updated": "server-updated";
2838
+ "export-completed": "export-completed";
2803
2839
  "camera-online": "camera-online";
2804
2840
  "camera-offline": "camera-offline";
2805
2841
  "camera-disabled": "camera-disabled";
@@ -3142,6 +3178,9 @@ export declare const notificationRulesCapability: {
3142
3178
  "alarm-disarmed": "alarm-disarmed";
3143
3179
  "alarm-arming": "alarm-arming";
3144
3180
  "alarm-arm-refused": "alarm-arm-refused";
3181
+ "addon-updated": "addon-updated";
3182
+ "server-updated": "server-updated";
3183
+ "export-completed": "export-completed";
3145
3184
  "camera-online": "camera-online";
3146
3185
  "camera-offline": "camera-offline";
3147
3186
  "camera-disabled": "camera-disabled";
@@ -3300,6 +3339,9 @@ export declare const notificationRulesCapability: {
3300
3339
  "alarm-disarmed": "alarm-disarmed";
3301
3340
  "alarm-arming": "alarm-arming";
3302
3341
  "alarm-arm-refused": "alarm-arm-refused";
3342
+ "addon-updated": "addon-updated";
3343
+ "server-updated": "server-updated";
3344
+ "export-completed": "export-completed";
3303
3345
  "camera-online": "camera-online";
3304
3346
  "camera-offline": "camera-offline";
3305
3347
  "camera-disabled": "camera-disabled";
@@ -3599,6 +3641,9 @@ export declare const notificationRulesCapability: {
3599
3641
  "alarm-disarmed": "alarm-disarmed";
3600
3642
  "alarm-arming": "alarm-arming";
3601
3643
  "alarm-arm-refused": "alarm-arm-refused";
3644
+ "addon-updated": "addon-updated";
3645
+ "server-updated": "server-updated";
3646
+ "export-completed": "export-completed";
3602
3647
  "camera-online": "camera-online";
3603
3648
  "camera-offline": "camera-offline";
3604
3649
  "camera-disabled": "camera-disabled";
@@ -3945,6 +3990,9 @@ export declare const notificationRulesCapability: {
3945
3990
  "alarm-disarmed": "alarm-disarmed";
3946
3991
  "alarm-arming": "alarm-arming";
3947
3992
  "alarm-arm-refused": "alarm-arm-refused";
3993
+ "addon-updated": "addon-updated";
3994
+ "server-updated": "server-updated";
3995
+ "export-completed": "export-completed";
3948
3996
  "camera-online": "camera-online";
3949
3997
  "camera-offline": "camera-offline";
3950
3998
  "camera-disabled": "camera-disabled";
@@ -162,6 +162,9 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
162
162
  "alarm-disarmed": "alarm-disarmed";
163
163
  "alarm-arming": "alarm-arming";
164
164
  "alarm-arm-refused": "alarm-arm-refused";
165
+ "addon-updated": "addon-updated";
166
+ "server-updated": "server-updated";
167
+ "export-completed": "export-completed";
165
168
  "camera-online": "camera-online";
166
169
  "camera-offline": "camera-offline";
167
170
  "camera-disabled": "camera-disabled";
@@ -321,6 +324,9 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
321
324
  "alarm-disarmed": "alarm-disarmed";
322
325
  "alarm-arming": "alarm-arming";
323
326
  "alarm-arm-refused": "alarm-arm-refused";
327
+ "addon-updated": "addon-updated";
328
+ "server-updated": "server-updated";
329
+ "export-completed": "export-completed";
324
330
  "camera-online": "camera-online";
325
331
  "camera-offline": "camera-offline";
326
332
  "camera-disabled": "camera-disabled";
@@ -552,6 +558,9 @@ export declare const osdManagerCapability: {
552
558
  "alarm-disarmed": "alarm-disarmed";
553
559
  "alarm-arming": "alarm-arming";
554
560
  "alarm-arm-refused": "alarm-arm-refused";
561
+ "addon-updated": "addon-updated";
562
+ "server-updated": "server-updated";
563
+ "export-completed": "export-completed";
555
564
  "camera-online": "camera-online";
556
565
  "camera-offline": "camera-offline";
557
566
  "camera-disabled": "camera-disabled";
@@ -800,6 +809,9 @@ export declare const osdManagerCapability: {
800
809
  "alarm-disarmed": "alarm-disarmed";
801
810
  "alarm-arming": "alarm-arming";
802
811
  "alarm-arm-refused": "alarm-arm-refused";
812
+ "addon-updated": "addon-updated";
813
+ "server-updated": "server-updated";
814
+ "export-completed": "export-completed";
803
815
  "camera-online": "camera-online";
804
816
  "camera-offline": "camera-offline";
805
817
  "camera-disabled": "camera-disabled";
@@ -958,6 +970,9 @@ export declare const osdManagerCapability: {
958
970
  "alarm-disarmed": "alarm-disarmed";
959
971
  "alarm-arming": "alarm-arming";
960
972
  "alarm-arm-refused": "alarm-arm-refused";
973
+ "addon-updated": "addon-updated";
974
+ "server-updated": "server-updated";
975
+ "export-completed": "export-completed";
961
976
  "camera-online": "camera-online";
962
977
  "camera-offline": "camera-offline";
963
978
  "camera-disabled": "camera-disabled";
@@ -1148,6 +1163,9 @@ export declare const osdManagerCapability: {
1148
1163
  "alarm-disarmed": "alarm-disarmed";
1149
1164
  "alarm-arming": "alarm-arming";
1150
1165
  "alarm-arm-refused": "alarm-arm-refused";
1166
+ "addon-updated": "addon-updated";
1167
+ "server-updated": "server-updated";
1168
+ "export-completed": "export-completed";
1151
1169
  "camera-online": "camera-online";
1152
1170
  "camera-offline": "camera-offline";
1153
1171
  "camera-disabled": "camera-disabled";
@@ -280,6 +280,7 @@ export type RetrainStatus = z.infer<typeof RetrainStatusSchema>;
280
280
  export declare const TrackFlagsPatchSchema: z.ZodObject<{
281
281
  markForTrain: z.ZodOptional<z.ZodBoolean>;
282
282
  debug: z.ZodOptional<z.ZodBoolean>;
283
+ favourited: z.ZodOptional<z.ZodBoolean>;
283
284
  }, z.core.$strip>;
284
285
  export type TrackFlagsPatch = z.infer<typeof TrackFlagsPatchSchema>;
285
286
  /**
@@ -291,6 +292,7 @@ export declare const TrackFlagsSchema: z.ZodObject<{
291
292
  trackId: z.ZodString;
292
293
  markForTrain: z.ZodBoolean;
293
294
  debug: z.ZodBoolean;
295
+ favourited: z.ZodBoolean;
294
296
  retrainStatus: z.ZodEnum<{
295
297
  none: "none";
296
298
  staging: "staging";
@@ -369,6 +371,7 @@ declare const TrackSchema: z.ZodObject<{
369
371
  }>>;
370
372
  markForTrain: z.ZodOptional<z.ZodBoolean>;
371
373
  debug: z.ZodOptional<z.ZodBoolean>;
374
+ favourited: z.ZodOptional<z.ZodBoolean>;
372
375
  producingDeviceName: z.ZodOptional<z.ZodString>;
373
376
  source: z.ZodOptional<z.ZodEnum<{
374
377
  audio: "audio";
@@ -1020,6 +1023,7 @@ declare const RecentTracksPageSchema: z.ZodObject<{
1020
1023
  }>>;
1021
1024
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1022
1025
  debug: z.ZodOptional<z.ZodBoolean>;
1026
+ favourited: z.ZodOptional<z.ZodBoolean>;
1023
1027
  producingDeviceName: z.ZodOptional<z.ZodString>;
1024
1028
  source: z.ZodOptional<z.ZodEnum<{
1025
1029
  audio: "audio";
@@ -1115,6 +1119,7 @@ declare const KeyEventSchema: z.ZodObject<{
1115
1119
  }>>;
1116
1120
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1117
1121
  debug: z.ZodOptional<z.ZodBoolean>;
1122
+ favourited: z.ZodOptional<z.ZodBoolean>;
1118
1123
  importance: z.ZodNumber;
1119
1124
  bestEventId: z.ZodString;
1120
1125
  windowMs: z.ZodOptional<z.ZodNumber>;
@@ -1272,6 +1277,7 @@ export declare const pipelineAnalyticsCapability: {
1272
1277
  }>>;
1273
1278
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1274
1279
  debug: z.ZodOptional<z.ZodBoolean>;
1280
+ favourited: z.ZodOptional<z.ZodBoolean>;
1275
1281
  producingDeviceName: z.ZodOptional<z.ZodString>;
1276
1282
  source: z.ZodOptional<z.ZodEnum<{
1277
1283
  audio: "audio";
@@ -1367,6 +1373,7 @@ export declare const pipelineAnalyticsCapability: {
1367
1373
  }>>;
1368
1374
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1369
1375
  debug: z.ZodOptional<z.ZodBoolean>;
1376
+ favourited: z.ZodOptional<z.ZodBoolean>;
1370
1377
  producingDeviceName: z.ZodOptional<z.ZodString>;
1371
1378
  source: z.ZodOptional<z.ZodEnum<{
1372
1379
  audio: "audio";
@@ -1485,6 +1492,7 @@ export declare const pipelineAnalyticsCapability: {
1485
1492
  }>>;
1486
1493
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1487
1494
  debug: z.ZodOptional<z.ZodBoolean>;
1495
+ favourited: z.ZodOptional<z.ZodBoolean>;
1488
1496
  producingDeviceName: z.ZodOptional<z.ZodString>;
1489
1497
  source: z.ZodOptional<z.ZodEnum<{
1490
1498
  audio: "audio";
@@ -1599,6 +1607,7 @@ export declare const pipelineAnalyticsCapability: {
1599
1607
  }>>;
1600
1608
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1601
1609
  debug: z.ZodOptional<z.ZodBoolean>;
1610
+ favourited: z.ZodOptional<z.ZodBoolean>;
1602
1611
  producingDeviceName: z.ZodOptional<z.ZodString>;
1603
1612
  source: z.ZodOptional<z.ZodEnum<{
1604
1613
  audio: "audio";
@@ -1960,6 +1969,7 @@ export declare const pipelineAnalyticsCapability: {
1960
1969
  }>>;
1961
1970
  markForTrain: z.ZodOptional<z.ZodBoolean>;
1962
1971
  debug: z.ZodOptional<z.ZodBoolean>;
1972
+ favourited: z.ZodOptional<z.ZodBoolean>;
1963
1973
  importance: z.ZodNumber;
1964
1974
  bestEventId: z.ZodString;
1965
1975
  windowMs: z.ZodOptional<z.ZodNumber>;
@@ -2072,7 +2082,7 @@ export declare const pipelineAnalyticsCapability: {
2072
2082
  failed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2073
2083
  }, z.core.$strip>, "mutation">;
2074
2084
  /**
2075
- * Set the per-track operator flags (`markForTrain`, `debug`) on ONE track.
2085
+ * Set the per-track operator flags (`markForTrain`, `debug`, `favourited`) on ONE track.
2076
2086
  * The patch is PARTIAL — an omitted key is left untouched — because the
2077
2087
  * three surfaces that write it (admin Events grid, viewer track detail,
2078
2088
  * viewer cluster detail) each own one toggle and must not clobber the other.
@@ -2114,11 +2124,13 @@ export declare const pipelineAnalyticsCapability: {
2114
2124
  flags: z.ZodObject<{
2115
2125
  markForTrain: z.ZodOptional<z.ZodBoolean>;
2116
2126
  debug: z.ZodOptional<z.ZodBoolean>;
2127
+ favourited: z.ZodOptional<z.ZodBoolean>;
2117
2128
  }, z.core.$strip>;
2118
2129
  }, z.core.$strip>, z.ZodObject<{
2119
2130
  trackId: z.ZodString;
2120
2131
  markForTrain: z.ZodBoolean;
2121
2132
  debug: z.ZodBoolean;
2133
+ favourited: z.ZodBoolean;
2122
2134
  retrainStatus: z.ZodEnum<{
2123
2135
  none: "none";
2124
2136
  staging: "staging";
@@ -101,6 +101,7 @@ export declare const ExportOptionsSchema: z.ZodObject<{
101
101
  maxLifeMs: z.ZodNumber;
102
102
  deleteAfterDownload: z.ZodBoolean;
103
103
  title: z.ZodOptional<z.ZodString>;
104
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
105
  }, z.core.$strip>;
105
106
  export type ExportOptions = z.infer<typeof ExportOptionsSchema>;
106
107
  export declare const ExportStateSchema: z.ZodEnum<{
@@ -136,6 +137,7 @@ export declare const ExportRecordSchema: z.ZodObject<{
136
137
  maxLifeMs: z.ZodNumber;
137
138
  deleteAfterDownload: z.ZodBoolean;
138
139
  title: z.ZodOptional<z.ZodString>;
140
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
141
  }, z.core.$strip>;
140
142
  state: z.ZodEnum<{
141
143
  queued: "queued";
@@ -193,16 +195,61 @@ export declare const ExportBytesSchema: z.ZodObject<{
193
195
  bytes: z.ZodNumber;
194
196
  }, z.core.$strip>;
195
197
  export type ExportBytes = z.infer<typeof ExportBytesSchema>;
198
+ /**
199
+ * Rewrite a legacy `{ profile }` into `{ profiles: [profile] }` so one parse
200
+ * path serves both the multi-stream picker and the timelapse scheduler.
201
+ *
202
+ * Kept as a named function (not `z.preprocess` wrapping the method input)
203
+ * because generated routers call `.input.loose()` — a ZodObject method that a
204
+ * preprocess/pipe schema does not have. The object schema still *accepts* the
205
+ * singular field; this helper is the explicit rewrite the tests pin.
206
+ */
207
+ export declare function preprocessCreateExportInput(raw: unknown): unknown;
208
+ /**
209
+ * `createExport` input. `profiles` is the canonical field (min 1). A legacy
210
+ * singular `profile` is still accepted so existing callers do not break.
211
+ *
212
+ * Must remain a ZodObject (`.loose()` for out-of-band `nodeId`).
213
+ */
214
+ export declare const CreateExportInputSchema: z.ZodObject<{
215
+ deviceId: z.ZodNumber;
216
+ profile: z.ZodOptional<z.ZodString>;
217
+ profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
218
+ fromMs: z.ZodNumber;
219
+ toMs: z.ZodNumber;
220
+ options: z.ZodObject<{
221
+ speed: z.ZodOptional<z.ZodNumber>;
222
+ timelapse: z.ZodOptional<z.ZodObject<{
223
+ everyMs: z.ZodNumber;
224
+ outputFps: z.ZodOptional<z.ZodNumber>;
225
+ dense: z.ZodOptional<z.ZodObject<{
226
+ everyMs: z.ZodNumber;
227
+ ranges: z.ZodArray<z.ZodObject<{
228
+ fromSec: z.ZodNumber;
229
+ toSec: z.ZodNumber;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$strip>>;
232
+ }, z.core.$strip>>;
233
+ includeAudio: z.ZodBoolean;
234
+ maxLifeMs: z.ZodNumber;
235
+ deleteAfterDownload: z.ZodBoolean;
236
+ title: z.ZodOptional<z.ZodString>;
237
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
+ }, z.core.$strip>;
239
+ }, z.core.$strip>;
240
+ export type CreateExportInput = z.infer<typeof CreateExportInputSchema>;
196
241
  export declare const recordingExportCapability: {
197
242
  readonly name: "recording-export";
198
243
  readonly scope: "system";
199
244
  readonly mode: "singleton";
200
245
  readonly methods: {
201
- /** Queue a render of `[fromMs,toMs)` for `deviceId`/`profile`. Fails fast
202
- * when no footage covers the range. Returns the queued record. */
246
+ /** Queue a render of `[fromMs,toMs)` for `deviceId`/`profiles` (legacy
247
+ * singular `profile` still accepted). Fails fast when no footage covers
248
+ * the range. One job per profile; returns the first queued record. */
203
249
  readonly createExport: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
204
250
  deviceId: z.ZodNumber;
205
- profile: z.ZodString;
251
+ profile: z.ZodOptional<z.ZodString>;
252
+ profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
253
  fromMs: z.ZodNumber;
207
254
  toMs: z.ZodNumber;
208
255
  options: z.ZodObject<{
@@ -222,6 +269,7 @@ export declare const recordingExportCapability: {
222
269
  maxLifeMs: z.ZodNumber;
223
270
  deleteAfterDownload: z.ZodBoolean;
224
271
  title: z.ZodOptional<z.ZodString>;
272
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
273
  }, z.core.$strip>;
226
274
  }, z.core.$strip>, z.ZodObject<{
227
275
  id: z.ZodString;
@@ -246,6 +294,7 @@ export declare const recordingExportCapability: {
246
294
  maxLifeMs: z.ZodNumber;
247
295
  deleteAfterDownload: z.ZodBoolean;
248
296
  title: z.ZodOptional<z.ZodString>;
297
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
298
  }, z.core.$strip>;
250
299
  state: z.ZodEnum<{
251
300
  queued: "queued";
@@ -290,6 +339,7 @@ export declare const recordingExportCapability: {
290
339
  maxLifeMs: z.ZodNumber;
291
340
  deleteAfterDownload: z.ZodBoolean;
292
341
  title: z.ZodOptional<z.ZodString>;
342
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
343
  }, z.core.$strip>;
294
344
  state: z.ZodEnum<{
295
345
  queued: "queued";
@@ -333,6 +383,7 @@ export declare const recordingExportCapability: {
333
383
  maxLifeMs: z.ZodNumber;
334
384
  deleteAfterDownload: z.ZodBoolean;
335
385
  title: z.ZodOptional<z.ZodString>;
386
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
387
  }, z.core.$strip>;
337
388
  state: z.ZodEnum<{
338
389
  queued: "queued";
@@ -377,6 +428,7 @@ export declare const recordingExportCapability: {
377
428
  maxLifeMs: z.ZodNumber;
378
429
  deleteAfterDownload: z.ZodBoolean;
379
430
  title: z.ZodOptional<z.ZodString>;
431
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
380
432
  }, z.core.$strip>;
381
433
  state: z.ZodEnum<{
382
434
  queued: "queued";
@@ -421,6 +473,7 @@ export declare const recordingExportCapability: {
421
473
  maxLifeMs: z.ZodNumber;
422
474
  deleteAfterDownload: z.ZodBoolean;
423
475
  title: z.ZodOptional<z.ZodString>;
476
+ notifyTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
477
  }, z.core.$strip>;
425
478
  state: z.ZodEnum<{
426
479
  queued: "queued";
@@ -178,6 +178,7 @@ export declare const snapshotCapability: {
178
178
  disabled: "disabled";
179
179
  waking: "waking";
180
180
  }>>;
181
+ battery: z.ZodBoolean;
181
182
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind> & {
182
183
  readonly systemOnly: true;
183
184
  };
@@ -29,6 +29,11 @@ export declare const ClipSchema: z.ZodObject<{
29
29
  endMs: z.ZodNumber;
30
30
  }, z.core.$strip>;
31
31
  thumbnail: z.ZodOptional<z.ZodString>;
32
+ eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ startMs: z.ZodNumber;
35
+ endMs: z.ZodNumber;
36
+ }, z.core.$strip>>>;
32
37
  }, z.core.$strip>;
33
38
  export type Clip = z.infer<typeof ClipSchema>;
34
39
  export declare const ClipPlaybackSchema: z.ZodObject<{
@@ -67,6 +72,11 @@ export declare const videoclipsCapability: {
67
72
  endMs: z.ZodNumber;
68
73
  }, z.core.$strip>;
69
74
  thumbnail: z.ZodOptional<z.ZodString>;
75
+ eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ startMs: z.ZodNumber;
78
+ endMs: z.ZodNumber;
79
+ }, z.core.$strip>>>;
70
80
  }, z.core.$strip>>>, "query">;
71
81
  readonly getClipPlayback: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
72
82
  deviceId: z.ZodNumber;
@@ -146,15 +146,6 @@ export declare abstract class BaseDeviceProvider<TConfig extends object = Record
146
146
  value: unknown;
147
147
  formValues?: Record<string, unknown>;
148
148
  }): Promise<FieldProbeResult>;
149
- /**
150
- * Top-level devices restored at once in {@link onRestoreDevices}.
151
- *
152
- * Four covers the fleets this ships to without turning a boot into a burst a
153
- * camera NVR answers with a refusal. A provider whose upstream is a single
154
- * session with a serial command channel (a Baichuan hub, an NVR that
155
- * serialises ISAPI) should lower it; nothing needs to raise it.
156
- */
157
- protected readonly restoreConcurrency: number;
158
149
  restoreDevices(savedDevices: readonly SavedDevice[]): Promise<void>;
159
150
  /**
160
151
  * Concrete device classes this provider can spawn, keyed by
@@ -14,9 +14,10 @@ export declare enum EventCategory {
14
14
  SystemRestartCompleted = "system.restart-completed",
15
15
  /**
16
16
  * A newer addon or server-root package version was found by the
17
- * authoritative registry check. Emitted once per
18
- * `(target, packageName, currentVersion, latestVersion)` transition; repeated
19
- * polling of the same result is deduplicated by the checker.
17
+ * authoritative registry check. Emitted once when any observed
18
+ * `latestVersion` changes (or a package/node first appears behind);
19
+ * the payload carries the full currently-available list. Repeated
20
+ * polling of the same latests is silent.
20
21
  */
21
22
  UpdateAvailable = "update.available",
22
23
  /**
package/dist/enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-D3gG7oil.js");
2
+ const require_event_category = require("./event-category-DBHdQVIy.js");
3
3
  //#region src/enums/event-source-type.ts
4
4
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
5
5
  EventSourceType["Addon"] = "addon";
package/dist/enums.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-Bxo5yJjt.mjs";
1
+ import { t as EventCategory } from "./event-category-C0lyLd5U.mjs";
2
2
  //#region src/enums/event-source-type.ts
3
3
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
4
4
  EventSourceType["Addon"] = "addon";
@@ -15,9 +15,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
17
  * A newer addon or server-root package version was found by the
18
- * authoritative registry check. Emitted once per
19
- * `(target, packageName, currentVersion, latestVersion)` transition; repeated
20
- * polling of the same result is deduplicated by the checker.
18
+ * authoritative registry check. Emitted once when any observed
19
+ * `latestVersion` changes (or a package/node first appears behind);
20
+ * the payload carries the full currently-available list. Repeated
21
+ * polling of the same latests is silent.
21
22
  */
22
23
  EventCategory["UpdateAvailable"] = "update.available";
23
24
  /**
@@ -15,9 +15,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
17
  * A newer addon or server-root package version was found by the
18
- * authoritative registry check. Emitted once per
19
- * `(target, packageName, currentVersion, latestVersion)` transition; repeated
20
- * polling of the same result is deduplicated by the checker.
18
+ * authoritative registry check. Emitted once when any observed
19
+ * `latestVersion` changes (or a package/node first appears behind);
20
+ * the payload carries the full currently-available list. Repeated
21
+ * polling of the same latests is silent.
21
22
  */
22
23
  EventCategory["UpdateAvailable"] = "update.available";
23
24
  /**
@@ -281,7 +281,7 @@ export interface DeviceProxy {
281
281
  readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics' | 'runDetailSubtree'>;
282
282
  readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
283
283
  readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'readGopBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'deleteFootprint' | 'renderGif' | 'renderClip' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
284
- readonly recordingExport: Pick<InferDeviceProxyCap<typeof recordingExportCapability>, 'createExport' | 'listExports'>;
284
+ readonly recordingExport: Pick<InferDeviceProxyCap<typeof recordingExportCapability>, 'listExports'>;
285
285
  readonly streamBroker: Pick<InferDeviceProxyCap<typeof streamBrokerCapability>, 'publishCameraStream' | 'retractCameraStream' | 'assignProfile' | 'unassignProfile' | 'renderPreBufferClip' | 'produceEventMedia' | 'restartProfile' | 'getDeviceAudioMute' | 'setDeviceAudioMute' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
286
286
  }
287
287
  /**
@@ -88,7 +88,7 @@ export interface SystemProxy {
88
88
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep'>;
89
89
  readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
90
90
  readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove' | 'relocateFootage' | 'listRelocateJobs' | 'cancelRelocateJob' | 'planStorageRebalance' | 'startStorageRebalance'>;
91
- readonly recordingExport: Pick<InferProvider<typeof recordingExportCapability>, 'getExport' | 'cancelExport' | 'deleteExport' | 'getDownloadUrl' | 'readExportBytes'>;
91
+ readonly recordingExport: Pick<InferProvider<typeof recordingExportCapability>, 'createExport' | 'getExport' | 'cancelExport' | 'deleteExport' | 'getDownloadUrl' | 'readExportBytes'>;
92
92
  readonly serverManagement: Pick<InferProvider<typeof serverManagementCapability>, 'getServerPackageStatus' | 'checkServerUpdate' | 'applyServerUpdate' | 'rollbackServerUpdate' | 'restartServer'>;
93
93
  readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'insert' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'histogram' | 'isEmpty' | 'declareCollection'>;
94
94
  readonly storage: Pick<InferProvider<typeof storageCapability>, 'resolve' | 'write' | 'read' | 'exists' | 'list' | 'delete' | 'getAvailableSpace' | 'beginUpload' | 'writeChunk' | 'finalizeUpload' | 'abortUpload' | 'beginDownload' | 'readChunk' | 'endDownload' | 'listLocations' | 'getDefaultLocation' | 'listLocationDeclarations' | 'upsertLocation' | 'deleteLocation' | 'testLocation' | 'listProviders' | 'testConfig'>;