@camstack/types 1.2.111 → 1.2.113
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/face-gallery.cap.d.ts +60 -0
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/notification-rules.cap.d.ts +20 -0
- package/dist/capabilities/recording.cap.d.ts +66 -0
- package/dist/capabilities/system.cap.d.ts +489 -1
- package/dist/catalogs/index.d.ts +1 -0
- package/dist/catalogs/sensor-active-state.d.ts +130 -0
- package/dist/generated/addon-api.d.ts +35 -0
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +897 -109
- package/dist/index.mjs +866 -110
- package/dist/interfaces/recording-config.d.ts +44 -0
- package/dist/pipeline/native-lease.d.ts +9 -1
- package/dist/{sleep-BCRrMlni.js → sleep-CSodb2vQ.js} +2 -0
- package/dist/{sleep-DJlqY62B.mjs → sleep-CdbM8ge4.mjs} +2 -0
- package/dist/types/detection.d.ts +11 -2
- package/dist/types/labels.d.ts +26 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-EY0GNjV9.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-CSodb2vQ.js");
|
|
4
4
|
const require_canonical_hash = require("./canonical-hash-DNV8S5ET.js");
|
|
5
5
|
const require_enums = require("./enums.js");
|
|
6
6
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
@@ -1436,6 +1436,76 @@ var OPS_LOG_RING_DEFAULT_MAX = 500;
|
|
|
1436
1436
|
/** Default page size for a `listOpsLog` query when the caller omits `limit`. */
|
|
1437
1437
|
var OPS_LOG_DEFAULT_LIMIT = 200;
|
|
1438
1438
|
//#endregion
|
|
1439
|
+
//#region src/types/labels.ts
|
|
1440
|
+
var LabelDefinitionSchema = zod.z.object({
|
|
1441
|
+
id: zod.z.string(),
|
|
1442
|
+
name: zod.z.string(),
|
|
1443
|
+
category: zod.z.string().optional(),
|
|
1444
|
+
description: zod.z.string().optional(),
|
|
1445
|
+
icon: zod.z.string().optional()
|
|
1446
|
+
});
|
|
1447
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
1448
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
1449
|
+
"person",
|
|
1450
|
+
"vehicle",
|
|
1451
|
+
"animal",
|
|
1452
|
+
"package"
|
|
1453
|
+
];
|
|
1454
|
+
/**
|
|
1455
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
1456
|
+
* un operatore può selezionare.
|
|
1457
|
+
*
|
|
1458
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
1459
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
1460
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
1461
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
1462
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
1463
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
1464
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
1465
|
+
*
|
|
1466
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
1467
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
1468
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
1469
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
1470
|
+
* successiva.
|
|
1471
|
+
*/
|
|
1472
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
1473
|
+
"person",
|
|
1474
|
+
"vehicle",
|
|
1475
|
+
"animal"
|
|
1476
|
+
];
|
|
1477
|
+
/**
|
|
1478
|
+
* True quando `value` è una macro di primo livello. Type guard, non cast: un
|
|
1479
|
+
* `className` che arriva dal bus è una stringa qualunque finché non passa di
|
|
1480
|
+
* qui.
|
|
1481
|
+
*/
|
|
1482
|
+
function isFirstLevelMacroClass(value) {
|
|
1483
|
+
return FIRST_LEVEL_MACRO_CLASSES.some((macro) => macro === value);
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
1487
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
1488
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
1489
|
+
* detection pipeline executor actually routes.
|
|
1490
|
+
*
|
|
1491
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
1492
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
1493
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
1494
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
1495
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
1496
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
1497
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
1498
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
1499
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
1500
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
1501
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
1502
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
1503
|
+
*/
|
|
1504
|
+
var DetectionCatalogClassMapSchema = zod.z.object({
|
|
1505
|
+
mapping: zod.z.record(zod.z.string(), zod.z.enum(CLASS_MAP_MACRO_TARGETS)),
|
|
1506
|
+
preserveOriginal: zod.z.boolean()
|
|
1507
|
+
});
|
|
1508
|
+
//#endregion
|
|
1439
1509
|
//#region src/interfaces/recording-config.ts
|
|
1440
1510
|
/**
|
|
1441
1511
|
* THE canonical event-clip pad: the time window a single-timestamp analytics
|
|
@@ -1478,10 +1548,64 @@ var RecordingStorageModeSchema = zod.z.enum([
|
|
|
1478
1548
|
"events",
|
|
1479
1549
|
"continuous"
|
|
1480
1550
|
]);
|
|
1551
|
+
/**
|
|
1552
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
1553
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
1554
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
1555
|
+
*/
|
|
1556
|
+
var RecordingObjectTriggerClassSchema = zod.z.enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
1557
|
+
/**
|
|
1558
|
+
* True quando `values` non ripete un elemento.
|
|
1559
|
+
*
|
|
1560
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
1561
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
1562
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
1563
|
+
*/
|
|
1564
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
1565
|
+
/**
|
|
1566
|
+
* Quanti device sorgente una singola banda può ascoltare.
|
|
1567
|
+
*
|
|
1568
|
+
* Non è un gusto: ogni sorgente è una CHIAVE nel `TriggerState` del recorder, e
|
|
1569
|
+
* il limite per chiave (`MAX_TRIGGER_WINDOWS = 32`) senza un limite sulle
|
|
1570
|
+
* chiavi lascerebbe crescere la mappa con l'inventario dell'operatore. 16
|
|
1571
|
+
* sensori su UNA camera è già oltre qualunque installazione osservata.
|
|
1572
|
+
*/
|
|
1573
|
+
var MAX_SENSOR_TRIGGER_DEVICES = 16;
|
|
1481
1574
|
/** Which detectors trigger an `events`-mode band. */
|
|
1482
1575
|
var RecordingTriggersSchema = zod.z.object({
|
|
1483
1576
|
motion: zod.z.boolean().optional(),
|
|
1484
|
-
audioThresholdDbfs: zod.z.number().optional()
|
|
1577
|
+
audioThresholdDbfs: zod.z.number().optional(),
|
|
1578
|
+
/**
|
|
1579
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
1580
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
1581
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
1582
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
1583
|
+
*
|
|
1584
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
1585
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
1586
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
1587
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
1588
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
1589
|
+
*/
|
|
1590
|
+
objectClasses: zod.z.array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
1591
|
+
/**
|
|
1592
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
1593
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
1594
|
+
* `objectClasses`.
|
|
1595
|
+
*
|
|
1596
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
1597
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
1598
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
1599
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
1600
|
+
* device (D12) — mai un elenco globale di cap.
|
|
1601
|
+
*
|
|
1602
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
1603
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
1604
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
1605
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
1606
|
+
* registrare.
|
|
1607
|
+
*/
|
|
1608
|
+
sensorDeviceIds: zod.z.array(zod.z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
1485
1609
|
});
|
|
1486
1610
|
/**
|
|
1487
1611
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -2271,45 +2395,6 @@ function pickClosestResolution(entries, target) {
|
|
|
2271
2395
|
return bestAbove?.entry ?? bestBelow?.entry;
|
|
2272
2396
|
}
|
|
2273
2397
|
//#endregion
|
|
2274
|
-
//#region src/types/labels.ts
|
|
2275
|
-
var LabelDefinitionSchema = zod.z.object({
|
|
2276
|
-
id: zod.z.string(),
|
|
2277
|
-
name: zod.z.string(),
|
|
2278
|
-
category: zod.z.string().optional(),
|
|
2279
|
-
description: zod.z.string().optional(),
|
|
2280
|
-
icon: zod.z.string().optional()
|
|
2281
|
-
});
|
|
2282
|
-
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
2283
|
-
var CLASS_MAP_MACRO_TARGETS = [
|
|
2284
|
-
"person",
|
|
2285
|
-
"vehicle",
|
|
2286
|
-
"animal",
|
|
2287
|
-
"package"
|
|
2288
|
-
];
|
|
2289
|
-
/**
|
|
2290
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
2291
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
2292
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
2293
|
-
* detection pipeline executor actually routes.
|
|
2294
|
-
*
|
|
2295
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
2296
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
2297
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
2298
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
2299
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
2300
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
2301
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
2302
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
2303
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
2304
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
2305
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
2306
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
2307
|
-
*/
|
|
2308
|
-
var DetectionCatalogClassMapSchema = zod.z.object({
|
|
2309
|
-
mapping: zod.z.record(zod.z.string(), zod.z.enum(CLASS_MAP_MACRO_TARGETS)),
|
|
2310
|
-
preserveOriginal: zod.z.boolean()
|
|
2311
|
-
});
|
|
2312
|
-
//#endregion
|
|
2313
2398
|
//#region src/types/model-variant-groups.ts
|
|
2314
2399
|
var FORMAT_KEYS = [
|
|
2315
2400
|
"onnx",
|
|
@@ -14100,7 +14185,23 @@ var NcHistoryEntrySchema = zod.z.object({
|
|
|
14100
14185
|
updatedAt: zod.z.number(),
|
|
14101
14186
|
/** Failure detail — present on a `dead` row. */
|
|
14102
14187
|
error: zod.z.string().optional(),
|
|
14103
|
-
subject: NcHistorySubjectSchema
|
|
14188
|
+
subject: NcHistorySubjectSchema,
|
|
14189
|
+
/**
|
|
14190
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
14191
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
14192
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
14193
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
14194
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
14195
|
+
*
|
|
14196
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
14197
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
14198
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
14199
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
14200
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
14201
|
+
* Assistant export) must render as "no image right now", never as a
|
|
14202
|
+
* broken link.
|
|
14203
|
+
*/
|
|
14204
|
+
artifactIds: zod.z.array(zod.z.string().min(1)).optional()
|
|
14104
14205
|
});
|
|
14105
14206
|
/** `getHistory` default page size + hard ceiling (bounded output). */
|
|
14106
14207
|
var NC_HISTORY_LIMIT_DEFAULT = 100;
|
|
@@ -14393,6 +14494,20 @@ var notificationRulesCapability = {
|
|
|
14393
14494
|
*/
|
|
14394
14495
|
getHistory: require_sleep.method(zod.z.object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), zod.z.object({ entries: zod.z.array(NcHistoryEntrySchema) }), { auth: "admin" }),
|
|
14395
14496
|
/**
|
|
14497
|
+
* Mint a fresh, externally-reachable URL for one artefact a history row
|
|
14498
|
+
* named in {@link NcHistoryEntrySchema.shape.artifactIds} — the SAME
|
|
14499
|
+
* signed-link mechanism the dispatcher uses to attach media to an
|
|
14500
|
+
* outgoing notification (one derivation; this never re-implements it).
|
|
14501
|
+
*
|
|
14502
|
+
* `url: null` on THREE causes a caller must treat identically ("no image
|
|
14503
|
+
* right now", never a broken link): the id is unknown, its artefact has
|
|
14504
|
+
* expired past the retained shelf's own age bound, or this install has no
|
|
14505
|
+
* externally-reachable base URL. A caller that received a URL on a
|
|
14506
|
+
* previous call and now gets `null` must stop showing it — a link that
|
|
14507
|
+
* worked five minutes ago is not proof it works now.
|
|
14508
|
+
*/
|
|
14509
|
+
resolveArtifactUrl: require_sleep.method(zod.z.object({ artifactId: zod.z.string().min(1) }), zod.z.object({ url: zod.z.string().nullable() }), { auth: "admin" }),
|
|
14510
|
+
/**
|
|
14396
14511
|
* Snooze windows currently in effect, plus any whose digest has not yet
|
|
14397
14512
|
* gone out. `caller: 'required'`: a user sees their OWN windows and the
|
|
14398
14513
|
* global ones that silence them, never another person's private silence.
|
|
@@ -21621,7 +21736,7 @@ var lifecycleJobSchema = zod.z.object({
|
|
|
21621
21736
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21622
21737
|
* as every other cap.
|
|
21623
21738
|
*/
|
|
21624
|
-
var LogLevelSchema$
|
|
21739
|
+
var LogLevelSchema$2 = zod.z.enum([
|
|
21625
21740
|
"debug",
|
|
21626
21741
|
"info",
|
|
21627
21742
|
"warn",
|
|
@@ -21848,7 +21963,7 @@ var addonsCapability = {
|
|
|
21848
21963
|
getLogs: require_sleep.method(zod.z.object({
|
|
21849
21964
|
addonId: zod.z.string(),
|
|
21850
21965
|
limit: zod.z.number().min(1).max(500).default(100),
|
|
21851
|
-
level: LogLevelSchema$
|
|
21966
|
+
level: LogLevelSchema$2.optional()
|
|
21852
21967
|
}), zod.z.array(LogQueryEntrySchema)),
|
|
21853
21968
|
listPackages: require_sleep.method(zod.z.void(), zod.z.array(InstalledPackageSchema).readonly()),
|
|
21854
21969
|
installPackage: require_sleep.method(zod.z.object({
|
|
@@ -22086,7 +22201,7 @@ var addonsCapability = {
|
|
|
22086
22201
|
}),
|
|
22087
22202
|
onAddonLogs: require_sleep.method(zod.z.object({
|
|
22088
22203
|
addonId: zod.z.string(),
|
|
22089
|
-
level: LogLevelSchema$
|
|
22204
|
+
level: LogLevelSchema$2.optional()
|
|
22090
22205
|
}), LogStreamEntrySchema, { kind: "subscription" })
|
|
22091
22206
|
},
|
|
22092
22207
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -24032,6 +24147,35 @@ var FaceFilterEnum = zod.z.enum([
|
|
|
24032
24147
|
"identified",
|
|
24033
24148
|
"all"
|
|
24034
24149
|
]);
|
|
24150
|
+
/**
|
|
24151
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
24152
|
+
*
|
|
24153
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
24154
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
24155
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
24156
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
24157
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
24158
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
24159
|
+
*
|
|
24160
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
24161
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
24162
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
24163
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
24164
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
24165
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
24166
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
24167
|
+
* backend's NULL-collation accident.
|
|
24168
|
+
*/
|
|
24169
|
+
var FaceSortFieldEnum = zod.z.enum(["timestamp", "suggestionConfidence"]);
|
|
24170
|
+
var FaceSortDirectionEnum = zod.z.enum(["asc", "desc"]);
|
|
24171
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
24172
|
+
* never leaves the server. */
|
|
24173
|
+
var FaceClusterSchema = zod.z.object({
|
|
24174
|
+
faceIds: zod.z.array(zod.z.string()).readonly(),
|
|
24175
|
+
representativeFaceId: zod.z.string(),
|
|
24176
|
+
size: zod.z.number().int(),
|
|
24177
|
+
cohesion: zod.z.number()
|
|
24178
|
+
});
|
|
24035
24179
|
var MediaFileLiteSchema$1 = zod.z.object({
|
|
24036
24180
|
key: zod.z.string(),
|
|
24037
24181
|
kind: zod.z.string(),
|
|
@@ -24089,24 +24233,72 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
|
|
|
24089
24233
|
auth: "admin"
|
|
24090
24234
|
}),
|
|
24091
24235
|
listRecentFaces: require_sleep.method(zod.z.object({
|
|
24092
|
-
/**
|
|
24236
|
+
/**
|
|
24237
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
24238
|
+
*
|
|
24239
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
24240
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
24241
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
24242
|
+
* present, and this field is then ignored rather than unioned, so
|
|
24243
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
24244
|
+
*/
|
|
24093
24245
|
deviceId: zod.z.number().int().optional(),
|
|
24246
|
+
/**
|
|
24247
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
24248
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
24249
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
24250
|
+
* about to discard).
|
|
24251
|
+
*
|
|
24252
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
24253
|
+
* "every camera". A request for no devices is a request, not an
|
|
24254
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
24255
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
24256
|
+
*
|
|
24257
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
24258
|
+
*/
|
|
24259
|
+
deviceIds: zod.z.array(zod.z.number().int()).optional(),
|
|
24094
24260
|
limit: zod.z.number().int().positive().optional(),
|
|
24095
24261
|
filter: FaceFilterEnum.optional(),
|
|
24096
24262
|
/**
|
|
24097
|
-
*
|
|
24098
|
-
*
|
|
24263
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
24264
|
+
* Absent means no lower bound.
|
|
24265
|
+
*/
|
|
24266
|
+
since: zod.z.number().int().optional(),
|
|
24267
|
+
/**
|
|
24268
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
24269
|
+
* Absent means no upper bound.
|
|
24270
|
+
*/
|
|
24271
|
+
until: zod.z.number().int().optional(),
|
|
24272
|
+
/**
|
|
24273
|
+
* Order the page by time or by suggestion certainty. Default
|
|
24274
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
24275
|
+
* that does not ask.
|
|
24099
24276
|
*
|
|
24100
|
-
*
|
|
24101
|
-
*
|
|
24102
|
-
* the browser cache the images.
|
|
24277
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
24278
|
+
* does under `'suggestionConfidence'`.
|
|
24103
24279
|
*
|
|
24104
|
-
*
|
|
24105
|
-
*
|
|
24106
|
-
*
|
|
24107
|
-
*
|
|
24108
|
-
*
|
|
24109
|
-
|
|
24280
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
24281
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
24282
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
24283
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
24284
|
+
* with {@link since} / {@link until}.
|
|
24285
|
+
*/
|
|
24286
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
24287
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
24288
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
24289
|
+
/**
|
|
24290
|
+
* Inline the base64 crop on every row.
|
|
24291
|
+
*
|
|
24292
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
24293
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
24294
|
+
* this for every gallery, and which records why the inline shape had
|
|
24295
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
24296
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
24297
|
+
* that describes the old design reads as permission to rely on it.
|
|
24298
|
+
*
|
|
24299
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
24300
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
24301
|
+
* cached and ETagged.
|
|
24110
24302
|
*/
|
|
24111
24303
|
includeCrops: zod.z.boolean().optional()
|
|
24112
24304
|
}).optional(), zod.z.array(FaceInfoSchema).readonly()),
|
|
@@ -24155,13 +24347,39 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
|
|
|
24155
24347
|
suggestFaceClusters: require_sleep.method(zod.z.object({
|
|
24156
24348
|
threshold: zod.z.number().min(0).max(1).optional(),
|
|
24157
24349
|
minClusterSize: zod.z.number().int().min(2).optional(),
|
|
24158
|
-
|
|
24159
|
-
|
|
24160
|
-
|
|
24161
|
-
|
|
24162
|
-
|
|
24163
|
-
|
|
24164
|
-
|
|
24350
|
+
/**
|
|
24351
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
24352
|
+
* which read as though it bounded the work — it never did.
|
|
24353
|
+
*
|
|
24354
|
+
* Wins over {@link limit} when both are sent.
|
|
24355
|
+
*/
|
|
24356
|
+
maxClusters: zod.z.number().int().positive().optional(),
|
|
24357
|
+
/**
|
|
24358
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
24359
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
24360
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
24361
|
+
*/
|
|
24362
|
+
limit: zod.z.number().int().positive().optional(),
|
|
24363
|
+
/**
|
|
24364
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
24365
|
+
* POOL, not the result.
|
|
24366
|
+
*
|
|
24367
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
24368
|
+
* used to read every unassigned face on the hub no matter what the
|
|
24369
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
24370
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
24371
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
24372
|
+
*
|
|
24373
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
24374
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
24375
|
+
* sample it randomly.
|
|
24376
|
+
*
|
|
24377
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
24378
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
24379
|
+
* unbounded scan can never come back as the table grows.
|
|
24380
|
+
*/
|
|
24381
|
+
maxFacesScanned: zod.z.number().int().positive().optional()
|
|
24382
|
+
}).optional(), zod.z.array(FaceClusterSchema).readonly())
|
|
24165
24383
|
}
|
|
24166
24384
|
};
|
|
24167
24385
|
//#endregion
|
|
@@ -28556,6 +28774,39 @@ var ReadGopBytesResultSchema = zod.z.object({
|
|
|
28556
28774
|
/** Media ms the returned fragment covers. */
|
|
28557
28775
|
gopDurMs: zod.z.number()
|
|
28558
28776
|
});
|
|
28777
|
+
/**
|
|
28778
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
28779
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
28780
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
28781
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
28782
|
+
*
|
|
28783
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
28784
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
28785
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
28786
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
28787
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
28788
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
28789
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
28790
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
28791
|
+
* bytes nothing has proven decodable.
|
|
28792
|
+
*/
|
|
28793
|
+
var ReadWindowBytesResultSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
28794
|
+
kind: zod.z.literal("ok"),
|
|
28795
|
+
data: zod.z.instanceof(Uint8Array),
|
|
28796
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
28797
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
28798
|
+
gopStartMs: zod.z.number(),
|
|
28799
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
28800
|
+
gopDurMs: zod.z.number(),
|
|
28801
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
28802
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
28803
|
+
reachesRequestedEnd: zod.z.boolean()
|
|
28804
|
+
}), zod.z.object({
|
|
28805
|
+
kind: zod.z.literal("spans-multiple-segments"),
|
|
28806
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
28807
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
28808
|
+
segmentEndMs: zod.z.number()
|
|
28809
|
+
})]);
|
|
28559
28810
|
var recordingCapability = {
|
|
28560
28811
|
name: "recording",
|
|
28561
28812
|
scope: "system",
|
|
@@ -28635,6 +28886,21 @@ var recordingCapability = {
|
|
|
28635
28886
|
kind: "query",
|
|
28636
28887
|
auth: "admin"
|
|
28637
28888
|
}),
|
|
28889
|
+
/** Read a WINDOW `[fromMs, toMs)` of segment `startMs`, by mfra byte
|
|
28890
|
+
* range — the multi-GOP twin of `readGopBytes`. Refuses (does not
|
|
28891
|
+
* degrade) when the window runs past the covering segment. Used by the
|
|
28892
|
+
* replay clip's `recording` source to fetch several seconds of native
|
|
28893
|
+
* footage for its single ffmpeg decode pass. */
|
|
28894
|
+
readWindowBytes: require_sleep.method(zod.z.object({
|
|
28895
|
+
deviceId: zod.z.number(),
|
|
28896
|
+
profile: zod.z.string(),
|
|
28897
|
+
startMs: zod.z.number(),
|
|
28898
|
+
fromMs: zod.z.number(),
|
|
28899
|
+
toMs: zod.z.number()
|
|
28900
|
+
}), ReadWindowBytesResultSchema, {
|
|
28901
|
+
kind: "query",
|
|
28902
|
+
auth: "admin"
|
|
28903
|
+
}),
|
|
28638
28904
|
setDeviceConfig: require_sleep.method(zod.z.object({
|
|
28639
28905
|
deviceId: zod.z.number(),
|
|
28640
28906
|
config: RecordingConfigSchema
|
|
@@ -30179,6 +30445,213 @@ var SetSiteLocationInputSchema = zod.z.object({
|
|
|
30179
30445
|
latitude: zod.z.number().min(-90).max(90),
|
|
30180
30446
|
longitude: zod.z.number().min(-180).max(180)
|
|
30181
30447
|
}).nullable();
|
|
30448
|
+
/**
|
|
30449
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
30450
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
30451
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
30452
|
+
* already prints - never a token, never an `Authorization` header.
|
|
30453
|
+
*/
|
|
30454
|
+
var RequestCensusGroupSchema = zod.z.object({
|
|
30455
|
+
procedure: zod.z.string(),
|
|
30456
|
+
userAgent: zod.z.string(),
|
|
30457
|
+
ip: zod.z.string(),
|
|
30458
|
+
principal: zod.z.string(),
|
|
30459
|
+
calls: zod.z.number(),
|
|
30460
|
+
perMin: zod.z.number()
|
|
30461
|
+
});
|
|
30462
|
+
/**
|
|
30463
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
30464
|
+
*
|
|
30465
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
30466
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
30467
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
30468
|
+
*/
|
|
30469
|
+
var RequestCensusProcedureSchema = zod.z.object({
|
|
30470
|
+
procedure: zod.z.string(),
|
|
30471
|
+
calls: zod.z.number(),
|
|
30472
|
+
perMin: zod.z.number()
|
|
30473
|
+
});
|
|
30474
|
+
/** What one armed window measured. Mirrors `HttpRequestCensus.snapshot()`. */
|
|
30475
|
+
var RequestCensusSnapshotSchema = zod.z.object({
|
|
30476
|
+
armed: zod.z.boolean(),
|
|
30477
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
30478
|
+
elapsedMs: zod.z.number(),
|
|
30479
|
+
/** The window actually armed, after the server clamped the request. */
|
|
30480
|
+
windowMs: zod.z.number(),
|
|
30481
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
30482
|
+
armedUntilMs: zod.z.number(),
|
|
30483
|
+
httpRequests: zod.z.number(),
|
|
30484
|
+
batchedRequests: zod.z.number(),
|
|
30485
|
+
/**
|
|
30486
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
30487
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
30488
|
+
* the number comparable with a store-side call count.
|
|
30489
|
+
*/
|
|
30490
|
+
procedureCalls: zod.z.number(),
|
|
30491
|
+
/**
|
|
30492
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
30493
|
+
* transport resolves one context per connection - but the number that says
|
|
30494
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
30495
|
+
*/
|
|
30496
|
+
wsConnections: zod.z.number(),
|
|
30497
|
+
distinctGroups: zod.z.number(),
|
|
30498
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
30499
|
+
* cardinality bound. */
|
|
30500
|
+
unattributedCalls: zod.z.number(),
|
|
30501
|
+
procedures: zod.z.array(RequestCensusProcedureSchema).readonly(),
|
|
30502
|
+
groups: zod.z.array(RequestCensusGroupSchema).readonly()
|
|
30503
|
+
});
|
|
30504
|
+
/**
|
|
30505
|
+
* The census as an operator sees it.
|
|
30506
|
+
*
|
|
30507
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
30508
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
30509
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
30510
|
+
* like one that succeeded.
|
|
30511
|
+
*/
|
|
30512
|
+
var RequestCensusStatusSchema = RequestCensusSnapshotSchema.extend({ persisted: zod.z.boolean() });
|
|
30513
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
30514
|
+
var LogLevelSchema$1 = zod.z.enum([
|
|
30515
|
+
"debug",
|
|
30516
|
+
"info",
|
|
30517
|
+
"warn",
|
|
30518
|
+
"error"
|
|
30519
|
+
]);
|
|
30520
|
+
/**
|
|
30521
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
30522
|
+
*
|
|
30523
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
30524
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
30525
|
+
*/
|
|
30526
|
+
var DiagnosticIdSchema = zod.z.enum(["request-census"]);
|
|
30527
|
+
/**
|
|
30528
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
30529
|
+
* layer that carries an explicit value wins.
|
|
30530
|
+
*
|
|
30531
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
30532
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
30533
|
+
* grow later would force every consumer of this document to change with it.
|
|
30534
|
+
* Nothing returns `component` today.
|
|
30535
|
+
*/
|
|
30536
|
+
var LoggingScopeKindSchema = zod.z.enum([
|
|
30537
|
+
"cluster",
|
|
30538
|
+
"node",
|
|
30539
|
+
"component"
|
|
30540
|
+
]);
|
|
30541
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
30542
|
+
var LoggingLevelSourceSchema = zod.z.enum([
|
|
30543
|
+
"default",
|
|
30544
|
+
"cluster",
|
|
30545
|
+
"node",
|
|
30546
|
+
"component"
|
|
30547
|
+
]);
|
|
30548
|
+
/**
|
|
30549
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
30550
|
+
*
|
|
30551
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
30552
|
+
* difference between "this node is at `info` because I decided it" and
|
|
30553
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
30554
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
30555
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
30556
|
+
*/
|
|
30557
|
+
var LoggingLevelLayerSchema = zod.z.object({
|
|
30558
|
+
scope: LoggingScopeKindSchema,
|
|
30559
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
30560
|
+
nodeId: zod.z.string().nullable(),
|
|
30561
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
30562
|
+
level: LogLevelSchema$1.nullable()
|
|
30563
|
+
});
|
|
30564
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
30565
|
+
var LoggingEffectiveSchema = zod.z.object({
|
|
30566
|
+
level: LogLevelSchema$1,
|
|
30567
|
+
levelSource: LoggingLevelSourceSchema
|
|
30568
|
+
});
|
|
30569
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
30570
|
+
var LoggingExplicitSchema = zod.z.object({ layers: zod.z.array(LoggingLevelLayerSchema).readonly() });
|
|
30571
|
+
/**
|
|
30572
|
+
* An armed diagnostic, with its DEADLINE.
|
|
30573
|
+
*
|
|
30574
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
30575
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
30576
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
30577
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
30578
|
+
*/
|
|
30579
|
+
var DiagnosticWindowSchema = zod.z.object({
|
|
30580
|
+
id: DiagnosticIdSchema,
|
|
30581
|
+
armed: zod.z.boolean(),
|
|
30582
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
30583
|
+
armedUntilMs: zod.z.number(),
|
|
30584
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
30585
|
+
remainingMs: zod.z.number(),
|
|
30586
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
30587
|
+
* i.e. whether this window would survive a restart. */
|
|
30588
|
+
persisted: zod.z.boolean()
|
|
30589
|
+
});
|
|
30590
|
+
/**
|
|
30591
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
30592
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
30593
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
30594
|
+
*/
|
|
30595
|
+
var DiagnosticWindowPatchSchema = zod.z.object({
|
|
30596
|
+
id: DiagnosticIdSchema,
|
|
30597
|
+
armMs: zod.z.number().int().min(0),
|
|
30598
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
30599
|
+
reportEveryMs: zod.z.number().int().positive().optional()
|
|
30600
|
+
});
|
|
30601
|
+
/**
|
|
30602
|
+
* A PATCH, and patches MERGE.
|
|
30603
|
+
*
|
|
30604
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
30605
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
30606
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
30607
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
30608
|
+
* turns into an erased one.
|
|
30609
|
+
*/
|
|
30610
|
+
var LoggingSettingsPatchSchema = zod.z.object({
|
|
30611
|
+
/**
|
|
30612
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
30613
|
+
* addressed scope so it inherits again. A value sets it.
|
|
30614
|
+
*/
|
|
30615
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
30616
|
+
/**
|
|
30617
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
30618
|
+
* keeps running — a patch is never a full replacement.
|
|
30619
|
+
*/
|
|
30620
|
+
diagnostics: zod.z.array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
30621
|
+
});
|
|
30622
|
+
/**
|
|
30623
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
30624
|
+
*
|
|
30625
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
30626
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
30627
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
30628
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
30629
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
30630
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
30631
|
+
* layer selector needs a name the transport does not already own.
|
|
30632
|
+
*/
|
|
30633
|
+
var GetLoggingSettingsInputSchema = zod.z.object({ scopeNodeId: zod.z.string().optional() });
|
|
30634
|
+
var SetLoggingSettingsInputSchema = zod.z.object({
|
|
30635
|
+
scopeNodeId: zod.z.string().optional(),
|
|
30636
|
+
patch: LoggingSettingsPatchSchema
|
|
30637
|
+
});
|
|
30638
|
+
/**
|
|
30639
|
+
* The whole document, as read and as returned after every write.
|
|
30640
|
+
*
|
|
30641
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
30642
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
30643
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
30644
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
30645
|
+
* survive a restart.
|
|
30646
|
+
*/
|
|
30647
|
+
var LoggingSettingsStateSchema = zod.z.object({
|
|
30648
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
30649
|
+
scopeNodeId: zod.z.string().nullable(),
|
|
30650
|
+
effective: LoggingEffectiveSchema,
|
|
30651
|
+
explicit: LoggingExplicitSchema,
|
|
30652
|
+
activeWindows: zod.z.array(DiagnosticWindowSchema).readonly(),
|
|
30653
|
+
persisted: zod.z.boolean()
|
|
30654
|
+
});
|
|
30182
30655
|
var systemCapability = {
|
|
30183
30656
|
name: "system",
|
|
30184
30657
|
scope: "system",
|
|
@@ -30222,6 +30695,38 @@ var systemCapability = {
|
|
|
30222
30695
|
detectSiteLocation: require_sleep.method(zod.z.void(), SiteLocationStatusSchema, {
|
|
30223
30696
|
kind: "mutation",
|
|
30224
30697
|
auth: "admin"
|
|
30698
|
+
}),
|
|
30699
|
+
/**
|
|
30700
|
+
* Read the HTTP request census - which caller, from which address, with
|
|
30701
|
+
* which user-agent, invoked which tRPC procedure, and how often.
|
|
30702
|
+
*
|
|
30703
|
+
* Reading NEVER re-arms: re-arming clears the counts, which would throw
|
|
30704
|
+
* away exactly the numbers being asked for. A closed window may be read as
|
|
30705
|
+
* many times as the operator likes and always describes the same window.
|
|
30706
|
+
*
|
|
30707
|
+
* Admin-only: the rows carry source addresses and principal names.
|
|
30708
|
+
*/
|
|
30709
|
+
getRequestCensus: require_sleep.method(zod.z.void(), RequestCensusStatusSchema, { auth: "admin" }),
|
|
30710
|
+
/**
|
|
30711
|
+
* The logging settings document — levels and armed diagnostics — resolved
|
|
30712
|
+
* for `nodeId`, or for the cluster when `nodeId` is absent.
|
|
30713
|
+
*
|
|
30714
|
+
* Returns BOTH `effective` and `explicit`. See
|
|
30715
|
+
* {@link LoggingLevelLayerSchema} for why collapsing them is the defect.
|
|
30716
|
+
*/
|
|
30717
|
+
getLoggingSettings: require_sleep.method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }),
|
|
30718
|
+
/**
|
|
30719
|
+
* Write the logging settings document. The ONLY write authority over log
|
|
30720
|
+
* levels and diagnostic windows — arming the request census went through
|
|
30721
|
+
* `system.setRequestCensus` until 2026-08-27 and no longer does, because
|
|
30722
|
+
* two writes that disagree about the same window is exactly the defect
|
|
30723
|
+
* this document exists to remove (D245).
|
|
30724
|
+
*
|
|
30725
|
+
* The patch MERGES: see {@link LoggingSettingsPatchSchema}.
|
|
30726
|
+
*/
|
|
30727
|
+
setLoggingSettings: require_sleep.method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
30728
|
+
kind: "mutation",
|
|
30729
|
+
auth: "admin"
|
|
30225
30730
|
})
|
|
30226
30731
|
},
|
|
30227
30732
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -31416,6 +31921,172 @@ function stateVocabularyFor(runtimeState, alarmStates = []) {
|
|
|
31416
31921
|
return [];
|
|
31417
31922
|
}
|
|
31418
31923
|
//#endregion
|
|
31924
|
+
//#region src/catalogs/sensor-active-state.ts
|
|
31925
|
+
/**
|
|
31926
|
+
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
31927
|
+
* valutatore puro del suo FRONTE.
|
|
31928
|
+
*
|
|
31929
|
+
* Viveva dentro il builtin virtual-doorbell
|
|
31930
|
+
* (`@camstack/system` — `builtins/doorbell/trigger-engine.ts`) e i suoi
|
|
31931
|
+
* predicati erano privati al modulo. Il recorder ne ha bisogno per il trigger
|
|
31932
|
+
* `RecordingTriggers.sensorDeviceIds`: copiarla avrebbe creato la SECONDA
|
|
31933
|
+
* tabella, che diverge alla prima cap aggiunta e il cui sintomo — "il sensore
|
|
31934
|
+
* fa suonare il campanello ma non registra" — è esattamente D62. Quindi si
|
|
31935
|
+
* SPOSTA qui e il doorbell la ri-esporta.
|
|
31936
|
+
*
|
|
31937
|
+
* ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
|
|
31938
|
+
* due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
|
|
31939
|
+
* regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
|
|
31940
|
+
* booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
|
|
31941
|
+
*/
|
|
31942
|
+
/**
|
|
31943
|
+
* Known binary / switch source caps → the boolean slice field whose
|
|
31944
|
+
* false→true rise counts as ACTIVE. Every entry is "fire on active".
|
|
31945
|
+
* Sensors whose "active" reading is not a plain boolean (presence's string
|
|
31946
|
+
* state, connectivity's connected flag) are deliberately excluded — a
|
|
31947
|
+
* reconnect is not a doorbell press, and it is not a recording either.
|
|
31948
|
+
*/
|
|
31949
|
+
var SOURCE_CAP_ACTIVE_FIELD = {
|
|
31950
|
+
contact: "entryOpen",
|
|
31951
|
+
binary: "on",
|
|
31952
|
+
switch: "on",
|
|
31953
|
+
motion: "detected",
|
|
31954
|
+
flood: "flooded",
|
|
31955
|
+
gas: "detected",
|
|
31956
|
+
smoke: "detected",
|
|
31957
|
+
"carbon-monoxide": "detected",
|
|
31958
|
+
vibration: "detected",
|
|
31959
|
+
tamper: "tampered"
|
|
31960
|
+
};
|
|
31961
|
+
/**
|
|
31962
|
+
* The same caps → the slice field carrying the ms-epoch timestamp of the
|
|
31963
|
+
* last transition. Every source cap MUST appear here (guarded by a spec):
|
|
31964
|
+
* without a transition timestamp the evaluator cannot tell a genuine rise
|
|
31965
|
+
* from a boot-time hydration when the FIRST slice it ever sees is already
|
|
31966
|
+
* active, and errs towards silence — swallowing the rise.
|
|
31967
|
+
*
|
|
31968
|
+
* These timestamps are UPSTREAM ones, not ingest ones: the Home Assistant
|
|
31969
|
+
* provider derives them from `state.last_changed`, so they survive our own
|
|
31970
|
+
* restarts and correctly read as "hours ago" for a state that has been
|
|
31971
|
+
* active for hours. `motion` names its rise timestamp `lastDetectedAt`.
|
|
31972
|
+
*/
|
|
31973
|
+
var SOURCE_CAP_CHANGED_AT_FIELD = {
|
|
31974
|
+
contact: "lastChangedAt",
|
|
31975
|
+
binary: "lastChangedAt",
|
|
31976
|
+
switch: "lastChangedAt",
|
|
31977
|
+
motion: "lastDetectedAt",
|
|
31978
|
+
flood: "lastChangedAt",
|
|
31979
|
+
gas: "lastChangedAt",
|
|
31980
|
+
smoke: "lastChangedAt",
|
|
31981
|
+
"carbon-monoxide": "lastChangedAt",
|
|
31982
|
+
vibration: "lastChangedAt",
|
|
31983
|
+
tamper: "lastChangedAt"
|
|
31984
|
+
};
|
|
31985
|
+
/** Cap names whose presence in a device's bindings qualify it as a source. */
|
|
31986
|
+
var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
|
|
31987
|
+
/**
|
|
31988
|
+
* Device `type` values (from `DeviceType`) that can host a binary/switch
|
|
31989
|
+
* source cap. Used by the camera's `device-multiselect` picker as the
|
|
31990
|
+
* CLIENT-SIDE filter, alongside `SOURCE_CAPS`.
|
|
31991
|
+
*
|
|
31992
|
+
* Why types and not caps alone: the shared picker filters
|
|
31993
|
+
* `deviceManager.listAll` rows client-side, and those rows carry only the
|
|
31994
|
+
* device's advertised `features` — NOT its registered cap list. On the live
|
|
31995
|
+
* cluster binary sensors and switches advertise EMPTY features (features
|
|
31996
|
+
* mirror only a handful of caps like `motion-trigger`), so a caps-only
|
|
31997
|
+
* filter matched against `features` would list nothing (the very bug this
|
|
31998
|
+
* replaced, which relied on the now-empty `getAllBindings`). Matching by
|
|
31999
|
+
* `type` is the reliable client-side signal; the union with `SOURCE_CAPS`
|
|
32000
|
+
* still captures any device that DOES advertise a source-cap feature.
|
|
32001
|
+
* `sensor` covers contact/motion/flood/gas/smoke/CO/vibration/tamper,
|
|
32002
|
+
* `switch` covers switches, `control` covers generic binary actuators.
|
|
32003
|
+
*/
|
|
32004
|
+
var SOURCE_DEVICE_TYPES = [
|
|
32005
|
+
"sensor",
|
|
32006
|
+
"switch",
|
|
32007
|
+
"control"
|
|
32008
|
+
];
|
|
32009
|
+
/** True when a cap is a recognised binary/switch source. */
|
|
32010
|
+
function isSourceCap(capName) {
|
|
32011
|
+
return Object.prototype.hasOwnProperty.call(SOURCE_CAP_ACTIVE_FIELD, capName);
|
|
32012
|
+
}
|
|
32013
|
+
/** Extract the "active" boolean a source cap's slice carries, or null when
|
|
32014
|
+
* the cap is unknown or the field is missing / non-boolean. */
|
|
32015
|
+
function sliceActiveValue(capName, slice) {
|
|
32016
|
+
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
32017
|
+
if (field === void 0) return null;
|
|
32018
|
+
const raw = slice[field];
|
|
32019
|
+
return typeof raw === "boolean" ? raw : null;
|
|
32020
|
+
}
|
|
32021
|
+
/** Ms-epoch transition timestamp a source cap's slice carries, or null when
|
|
32022
|
+
* it is absent, non-numeric or the zero "never observed" sentinel. */
|
|
32023
|
+
function sliceChangedAt(capName, slice) {
|
|
32024
|
+
const field = SOURCE_CAP_CHANGED_AT_FIELD[capName];
|
|
32025
|
+
if (field === void 0) return null;
|
|
32026
|
+
const raw = slice[field];
|
|
32027
|
+
if (typeof raw !== "number" || !Number.isFinite(raw) || raw <= 0) return null;
|
|
32028
|
+
return raw;
|
|
32029
|
+
}
|
|
32030
|
+
/**
|
|
32031
|
+
* How recent a source's own transition timestamp must be for a FIRST
|
|
32032
|
+
* sighting that is already active to count as a genuine rise rather than a
|
|
32033
|
+
* hydration of long-standing state.
|
|
32034
|
+
*/
|
|
32035
|
+
var DEFAULT_FIRST_SIGHTING_FRESHNESS_MS = 3e4;
|
|
32036
|
+
/**
|
|
32037
|
+
* IL fronte. Puro: nessun orologio proprio, nessuna memoria — il chiamante
|
|
32038
|
+
* porta `prior`, `nowMs` e il proprio `startedAtMs`.
|
|
32039
|
+
*
|
|
32040
|
+
* Il caso della PRIMA slice già attiva è trattato esplicitamente e vale come
|
|
32041
|
+
* fronte solo se il timestamp UPSTREAM della transizione è posteriore a
|
|
32042
|
+
* `startedAtMs` **e** entro `firstSightingFreshnessMs`. Entrambe le metà
|
|
32043
|
+
* servono: la sola freschezza scatterebbe su un'idratazione al boot di uno
|
|
32044
|
+
* stato flippato pochi secondi prima del riavvio, e il solo "dopo che abbiamo
|
|
32045
|
+
* iniziato" scatterebbe, su un processo di lunga vita, per una sorgente
|
|
32046
|
+
* adottata oggi il cui stato è cambiato ieri. Il caso ambiguo ERRA VERSO IL
|
|
32047
|
+
* SILENZIO e lo dichiara (`baseline-seeded-stale-active`).
|
|
32048
|
+
*/
|
|
32049
|
+
function evaluateSensorEdge(input) {
|
|
32050
|
+
const value = sliceActiveValue(input.capName, input.slice);
|
|
32051
|
+
if (value === null) return {
|
|
32052
|
+
edge: "none",
|
|
32053
|
+
value: null,
|
|
32054
|
+
reason: isSourceCap(input.capName) ? "non-boolean-value" : "unknown-cap"
|
|
32055
|
+
};
|
|
32056
|
+
if (input.prior === void 0) {
|
|
32057
|
+
if (!value) return {
|
|
32058
|
+
edge: "none",
|
|
32059
|
+
value,
|
|
32060
|
+
reason: "baseline-seeded-inactive"
|
|
32061
|
+
};
|
|
32062
|
+
const changedAt = sliceChangedAt(input.capName, input.slice);
|
|
32063
|
+
const floor = Math.max(input.startedAtMs, input.nowMs - input.firstSightingFreshnessMs);
|
|
32064
|
+
if (changedAt === null || changedAt < floor) return {
|
|
32065
|
+
edge: "none",
|
|
32066
|
+
value,
|
|
32067
|
+
reason: "baseline-seeded-stale-active"
|
|
32068
|
+
};
|
|
32069
|
+
return {
|
|
32070
|
+
edge: "rising",
|
|
32071
|
+
value: true
|
|
32072
|
+
};
|
|
32073
|
+
}
|
|
32074
|
+
if (input.prior === value) return {
|
|
32075
|
+
edge: "none",
|
|
32076
|
+
value,
|
|
32077
|
+
reason: "no-change"
|
|
32078
|
+
};
|
|
32079
|
+
if (!value) return {
|
|
32080
|
+
edge: "none",
|
|
32081
|
+
value,
|
|
32082
|
+
reason: "falling-edge"
|
|
32083
|
+
};
|
|
32084
|
+
return {
|
|
32085
|
+
edge: "rising",
|
|
32086
|
+
value: true
|
|
32087
|
+
};
|
|
32088
|
+
}
|
|
32089
|
+
//#endregion
|
|
31419
32090
|
//#region src/constants.ts
|
|
31420
32091
|
var HF_REPO = "camstack/camstack-models";
|
|
31421
32092
|
var HF_BASE_URL = `https://huggingface.co/${HF_REPO}/resolve/main`;
|
|
@@ -32577,6 +33248,47 @@ var BaseDeviceProvider = class extends require_sleep.BaseAddon {
|
|
|
32577
33248
|
}
|
|
32578
33249
|
};
|
|
32579
33250
|
//#endregion
|
|
33251
|
+
//#region src/device/battery-presence.ts
|
|
33252
|
+
/**
|
|
33253
|
+
* Default silence budget before a sleeping battery camera is called gone.
|
|
33254
|
+
*
|
|
33255
|
+
* Sized off the mechanism that produces contact, not off taste: a battery cam
|
|
33256
|
+
* on this deployment surfaces a firmware push (battery level, sleep/wake, or a
|
|
33257
|
+
* motion email) on the order of hours even with no visitors, and the snapshot
|
|
33258
|
+
* wrapper's own battery window is 1 hour. Six hours is therefore several
|
|
33259
|
+
* missed opportunities, not one — so a single quiet night does not raise a
|
|
33260
|
+
* fault, and a genuinely flat camera is named well inside a day.
|
|
33261
|
+
*/
|
|
33262
|
+
var BATTERY_UNREACHABLE_AFTER_MS = 360 * 6e4;
|
|
33263
|
+
/**
|
|
33264
|
+
* THE derivation. One crop rectangle, one presence verdict — see D52 for why
|
|
33265
|
+
* this repo insists a derived value has exactly one implementation.
|
|
33266
|
+
*
|
|
33267
|
+
* `undefined` status ⇒ `sleeping`. A device with no slice has made no claim,
|
|
33268
|
+
* and the caller decides separately whether it is even battery-operated
|
|
33269
|
+
* (`DeviceFeature.BatteryOperated`); this function never answers that
|
|
33270
|
+
* question, only what a battery device is doing.
|
|
33271
|
+
*/
|
|
33272
|
+
function deriveBatteryPresence(input) {
|
|
33273
|
+
const status = input.status;
|
|
33274
|
+
if (!status) return "sleeping";
|
|
33275
|
+
if (status.sleeping !== true) return "awake";
|
|
33276
|
+
const lastContactAt = status.lastContactAt;
|
|
33277
|
+
if (typeof lastContactAt !== "number" || lastContactAt <= 0) return "sleeping";
|
|
33278
|
+
const budget = input.unreachableAfterMs ?? 216e5;
|
|
33279
|
+
return input.nowMs - lastContactAt > budget ? "unreachable" : "sleeping";
|
|
33280
|
+
}
|
|
33281
|
+
/**
|
|
33282
|
+
* Is this presence a FAULT the operator should be told about?
|
|
33283
|
+
*
|
|
33284
|
+
* Exists so no surface has to re-decide it — the whole point of the third
|
|
33285
|
+
* state is that `sleeping` stops being rendered as breakage, and a caller that
|
|
33286
|
+
* writes `presence !== 'awake'` has silently undone that.
|
|
33287
|
+
*/
|
|
33288
|
+
function isBatteryPresenceFault(presence) {
|
|
33289
|
+
return presence === "unreachable";
|
|
33290
|
+
}
|
|
33291
|
+
//#endregion
|
|
32580
33292
|
//#region src/device/declared-device.ts
|
|
32581
33293
|
/** Marker written to a declared integration's `info`. */
|
|
32582
33294
|
var DECLARED_INTEGRATION_FIXED_KEY = "fixed";
|
|
@@ -33043,47 +33755,6 @@ function resolveDeviceProfile(features) {
|
|
|
33043
33755
|
return null;
|
|
33044
33756
|
}
|
|
33045
33757
|
//#endregion
|
|
33046
|
-
//#region src/device/battery-presence.ts
|
|
33047
|
-
/**
|
|
33048
|
-
* Default silence budget before a sleeping battery camera is called gone.
|
|
33049
|
-
*
|
|
33050
|
-
* Sized off the mechanism that produces contact, not off taste: a battery cam
|
|
33051
|
-
* on this deployment surfaces a firmware push (battery level, sleep/wake, or a
|
|
33052
|
-
* motion email) on the order of hours even with no visitors, and the snapshot
|
|
33053
|
-
* wrapper's own battery window is 1 hour. Six hours is therefore several
|
|
33054
|
-
* missed opportunities, not one — so a single quiet night does not raise a
|
|
33055
|
-
* fault, and a genuinely flat camera is named well inside a day.
|
|
33056
|
-
*/
|
|
33057
|
-
var BATTERY_UNREACHABLE_AFTER_MS = 360 * 6e4;
|
|
33058
|
-
/**
|
|
33059
|
-
* THE derivation. One crop rectangle, one presence verdict — see D52 for why
|
|
33060
|
-
* this repo insists a derived value has exactly one implementation.
|
|
33061
|
-
*
|
|
33062
|
-
* `undefined` status ⇒ `sleeping`. A device with no slice has made no claim,
|
|
33063
|
-
* and the caller decides separately whether it is even battery-operated
|
|
33064
|
-
* (`DeviceFeature.BatteryOperated`); this function never answers that
|
|
33065
|
-
* question, only what a battery device is doing.
|
|
33066
|
-
*/
|
|
33067
|
-
function deriveBatteryPresence(input) {
|
|
33068
|
-
const status = input.status;
|
|
33069
|
-
if (!status) return "sleeping";
|
|
33070
|
-
if (status.sleeping !== true) return "awake";
|
|
33071
|
-
const lastContactAt = status.lastContactAt;
|
|
33072
|
-
if (typeof lastContactAt !== "number" || lastContactAt <= 0) return "sleeping";
|
|
33073
|
-
const budget = input.unreachableAfterMs ?? 216e5;
|
|
33074
|
-
return input.nowMs - lastContactAt > budget ? "unreachable" : "sleeping";
|
|
33075
|
-
}
|
|
33076
|
-
/**
|
|
33077
|
-
* Is this presence a FAULT the operator should be told about?
|
|
33078
|
-
*
|
|
33079
|
-
* Exists so no surface has to re-decide it — the whole point of the third
|
|
33080
|
-
* state is that `sleeping` stops being rendered as breakage, and a caller that
|
|
33081
|
-
* writes `presence !== 'awake'` has silently undone that.
|
|
33082
|
-
*/
|
|
33083
|
-
function isBatteryPresenceFault(presence) {
|
|
33084
|
-
return presence === "unreachable";
|
|
33085
|
-
}
|
|
33086
|
-
//#endregion
|
|
33087
33758
|
//#region src/device/path-util.ts
|
|
33088
33759
|
/** Returns true when `x` is a non-null, non-array plain object. */
|
|
33089
33760
|
function isRecord(x) {
|
|
@@ -38111,6 +38782,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
38111
38782
|
addonId: null,
|
|
38112
38783
|
access: "view"
|
|
38113
38784
|
},
|
|
38785
|
+
"notificationRules.resolveArtifactUrl": {
|
|
38786
|
+
capName: "notification-rules",
|
|
38787
|
+
capScope: "system",
|
|
38788
|
+
addonId: null,
|
|
38789
|
+
access: "view"
|
|
38790
|
+
},
|
|
38114
38791
|
"notificationRules.setAlarmConfig": {
|
|
38115
38792
|
capName: "notification-rules",
|
|
38116
38793
|
capScope: "system",
|
|
@@ -39515,6 +40192,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
39515
40192
|
addonId: null,
|
|
39516
40193
|
access: "view"
|
|
39517
40194
|
},
|
|
40195
|
+
"recording.readWindowBytes": {
|
|
40196
|
+
capName: "recording",
|
|
40197
|
+
capScope: "system",
|
|
40198
|
+
addonId: null,
|
|
40199
|
+
access: "view"
|
|
40200
|
+
},
|
|
39518
40201
|
"recording.refreshStorageLocationsForMigration": {
|
|
39519
40202
|
capName: "recording",
|
|
39520
40203
|
capScope: "system",
|
|
@@ -40355,6 +41038,18 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
40355
41038
|
addonId: null,
|
|
40356
41039
|
access: "create"
|
|
40357
41040
|
},
|
|
41041
|
+
"system.getLoggingSettings": {
|
|
41042
|
+
capName: "system",
|
|
41043
|
+
capScope: "system",
|
|
41044
|
+
addonId: null,
|
|
41045
|
+
access: "view"
|
|
41046
|
+
},
|
|
41047
|
+
"system.getRequestCensus": {
|
|
41048
|
+
capName: "system",
|
|
41049
|
+
capScope: "system",
|
|
41050
|
+
addonId: null,
|
|
41051
|
+
access: "view"
|
|
41052
|
+
},
|
|
40358
41053
|
"system.getRetentionConfig": {
|
|
40359
41054
|
capName: "system",
|
|
40360
41055
|
capScope: "system",
|
|
@@ -40385,6 +41080,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
40385
41080
|
addonId: null,
|
|
40386
41081
|
access: "view"
|
|
40387
41082
|
},
|
|
41083
|
+
"system.setLoggingSettings": {
|
|
41084
|
+
capName: "system",
|
|
41085
|
+
capScope: "system",
|
|
41086
|
+
addonId: null,
|
|
41087
|
+
access: "create"
|
|
41088
|
+
},
|
|
40388
41089
|
"system.setRetentionConfig": {
|
|
40389
41090
|
capName: "system",
|
|
40390
41091
|
capScope: "system",
|
|
@@ -41797,6 +42498,10 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
41797
42498
|
name: "deviceId",
|
|
41798
42499
|
form: "single",
|
|
41799
42500
|
optional: true
|
|
42501
|
+
}, {
|
|
42502
|
+
name: "deviceIds",
|
|
42503
|
+
form: "array",
|
|
42504
|
+
optional: true
|
|
41800
42505
|
}],
|
|
41801
42506
|
"fanControl.setDirection": [{
|
|
41802
42507
|
name: "deviceId",
|
|
@@ -42602,6 +43307,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
42602
43307
|
form: "single",
|
|
42603
43308
|
optional: false
|
|
42604
43309
|
}],
|
|
43310
|
+
"recording.readWindowBytes": [{
|
|
43311
|
+
name: "deviceId",
|
|
43312
|
+
form: "single",
|
|
43313
|
+
optional: false
|
|
43314
|
+
}],
|
|
42605
43315
|
"recording.relocateFootage": [{
|
|
42606
43316
|
name: "deviceId",
|
|
42607
43317
|
form: "single",
|
|
@@ -43080,6 +43790,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
|
|
|
43080
43790
|
"recording.pruneFootage",
|
|
43081
43791
|
"recording.readGopBytes",
|
|
43082
43792
|
"recording.readSegmentBytes",
|
|
43793
|
+
"recording.readWindowBytes",
|
|
43083
43794
|
"recording.relocateFootage",
|
|
43084
43795
|
"recording.renderClip",
|
|
43085
43796
|
"recording.renderGif",
|
|
@@ -44108,7 +44819,10 @@ function createSystemProxy(api) {
|
|
|
44108
44819
|
forceRetentionCleanup: (input) => dispatch("system", "forceRetentionCleanup", "mutation", input),
|
|
44109
44820
|
getSiteLocation: (input) => dispatch("system", "getSiteLocation", "query", input),
|
|
44110
44821
|
setSiteLocation: (input) => dispatch("system", "setSiteLocation", "mutation", input),
|
|
44111
|
-
detectSiteLocation: (input) => dispatch("system", "detectSiteLocation", "mutation", input)
|
|
44822
|
+
detectSiteLocation: (input) => dispatch("system", "detectSiteLocation", "mutation", input),
|
|
44823
|
+
getRequestCensus: (input) => dispatch("system", "getRequestCensus", "query", input),
|
|
44824
|
+
getLoggingSettings: (input) => dispatch("system", "getLoggingSettings", "query", input),
|
|
44825
|
+
setLoggingSettings: (input) => dispatch("system", "setLoggingSettings", "mutation", input)
|
|
44112
44826
|
},
|
|
44113
44827
|
terminalSession: {
|
|
44114
44828
|
listProfiles: (input) => dispatch("terminalSession", "listProfiles", "query", input),
|
|
@@ -45971,6 +46685,7 @@ var NATIVE_LEASE_BUDGET_KEY = "nativeLeaseBudgetMb";
|
|
|
45971
46685
|
var NATIVE_LEASE_ACTIVITY_KEY = "nativeLeaseActivityMs";
|
|
45972
46686
|
var NATIVE_LEASE_ADMISSION_KEY = "nativeLeaseAdmission";
|
|
45973
46687
|
var NATIVE_LEASE_TILE_BUDGET_KEY = "nativeTileBudgetMb";
|
|
46688
|
+
var NATIVE_LEASE_SCENE_BUDGET_KEY = "nativeSceneBudgetMb";
|
|
45974
46689
|
/**
|
|
45975
46690
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
45976
46691
|
*
|
|
@@ -46065,7 +46780,38 @@ var NativeLeaseSettingsSchema = zod.z.object({
|
|
|
46065
46780
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
46066
46781
|
* reproduce that.
|
|
46067
46782
|
*/
|
|
46068
|
-
tileBudgetMb: zod.z.number().int().min(0).max(1024)
|
|
46783
|
+
tileBudgetMb: zod.z.number().int().min(0).max(1024),
|
|
46784
|
+
/**
|
|
46785
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
46786
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
46787
|
+
* subject tiles, on frames that detected something.
|
|
46788
|
+
*
|
|
46789
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
46790
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
46791
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
46792
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
46793
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
46794
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
46795
|
+
*
|
|
46796
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
46797
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
46798
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
46799
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
46800
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
46801
|
+
* binds only through a detection burst, where it still covers well past the
|
|
46802
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
46803
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
46804
|
+
* whole shape exists to avoid.
|
|
46805
|
+
*
|
|
46806
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
46807
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
46808
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
46809
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
46810
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
46811
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
46812
|
+
* nothing.
|
|
46813
|
+
*/
|
|
46814
|
+
sceneBudgetMb: zod.z.number().int().min(0).max(1024)
|
|
46069
46815
|
});
|
|
46070
46816
|
/**
|
|
46071
46817
|
* The values in force when the operator has set nothing.
|
|
@@ -46081,6 +46827,7 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
46081
46827
|
budgetMb: 1024,
|
|
46082
46828
|
activityMs: 15e3,
|
|
46083
46829
|
tileBudgetMb: 64,
|
|
46830
|
+
sceneBudgetMb: 48,
|
|
46084
46831
|
admission: "inferred"
|
|
46085
46832
|
};
|
|
46086
46833
|
/** Slider bounds for the operator-facing knobs (orchestrator settings UI). */
|
|
@@ -46108,6 +46855,12 @@ var NATIVE_LEASE_TILE_BUDGET_FIELD = {
|
|
|
46108
46855
|
step: 16,
|
|
46109
46856
|
default: DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb
|
|
46110
46857
|
};
|
|
46858
|
+
var NATIVE_LEASE_SCENE_BUDGET_FIELD = {
|
|
46859
|
+
min: 0,
|
|
46860
|
+
max: 1024,
|
|
46861
|
+
step: 16,
|
|
46862
|
+
default: DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb
|
|
46863
|
+
};
|
|
46111
46864
|
/** Select options for the admission knob (orchestrator settings UI). */
|
|
46112
46865
|
var NATIVE_LEASE_ADMISSION_FIELD = {
|
|
46113
46866
|
options: [{
|
|
@@ -46166,12 +46919,14 @@ function readNativeLeaseOverride(config) {
|
|
|
46166
46919
|
const activityMs = readKnob("activityMs", config[NATIVE_LEASE_ACTIVITY_KEY]);
|
|
46167
46920
|
const admission = readAdmissionKnob(config[NATIVE_LEASE_ADMISSION_KEY]);
|
|
46168
46921
|
const tileBudgetMb = readKnob("tileBudgetMb", config[NATIVE_LEASE_TILE_BUDGET_KEY]);
|
|
46922
|
+
const sceneBudgetMb = readKnob("sceneBudgetMb", config[NATIVE_LEASE_SCENE_BUDGET_KEY]);
|
|
46169
46923
|
return {
|
|
46170
46924
|
...holdFrames === null ? {} : { holdFrames },
|
|
46171
46925
|
...budgetMb === null ? {} : { budgetMb },
|
|
46172
46926
|
...activityMs === null ? {} : { activityMs },
|
|
46173
46927
|
...admission === null ? {} : { admission },
|
|
46174
|
-
...tileBudgetMb === null ? {} : { tileBudgetMb }
|
|
46928
|
+
...tileBudgetMb === null ? {} : { tileBudgetMb },
|
|
46929
|
+
...sceneBudgetMb === null ? {} : { sceneBudgetMb }
|
|
46175
46930
|
};
|
|
46176
46931
|
}
|
|
46177
46932
|
function isHydratedField(entry) {
|
|
@@ -46182,7 +46937,8 @@ var LEASE_KEYS = [
|
|
|
46182
46937
|
NATIVE_LEASE_BUDGET_KEY,
|
|
46183
46938
|
NATIVE_LEASE_ACTIVITY_KEY,
|
|
46184
46939
|
NATIVE_LEASE_ADMISSION_KEY,
|
|
46185
|
-
NATIVE_LEASE_TILE_BUDGET_KEY
|
|
46940
|
+
NATIVE_LEASE_TILE_BUDGET_KEY,
|
|
46941
|
+
NATIVE_LEASE_SCENE_BUDGET_KEY
|
|
46186
46942
|
];
|
|
46187
46943
|
/**
|
|
46188
46944
|
* Extract the operator's lease overrides from an
|
|
@@ -48274,6 +49030,7 @@ exports.DEFAULT_DETAIL_CROP_CONVENTION = DEFAULT_DETAIL_CROP_CONVENTION;
|
|
|
48274
49030
|
exports.DEFAULT_EVENTS_BAND_BUFFER_SEC = DEFAULT_EVENTS_BAND_BUFFER_SEC;
|
|
48275
49031
|
exports.DEFAULT_EVENT_COLOR = DEFAULT_EVENT_COLOR;
|
|
48276
49032
|
exports.DEFAULT_FEATURES = DEFAULT_FEATURES;
|
|
49033
|
+
exports.DEFAULT_FIRST_SIGHTING_FRESHNESS_MS = DEFAULT_FIRST_SIGHTING_FRESHNESS_MS;
|
|
48277
49034
|
exports.DEFAULT_MIN_LANDMARK_FACE_SIZE_PX = DEFAULT_MIN_LANDMARK_FACE_SIZE_PX;
|
|
48278
49035
|
exports.DEFAULT_NATIVE_LEASE_SETTINGS = DEFAULT_NATIVE_LEASE_SETTINGS;
|
|
48279
49036
|
exports.DEFAULT_POOL_MEMORY_POLICY = DEFAULT_POOL_MEMORY_POLICY;
|
|
@@ -48324,6 +49081,9 @@ exports.DeviceRuntimeState = DeviceRuntimeState;
|
|
|
48324
49081
|
exports.DeviceSelectorSchema = DeviceSelectorSchema;
|
|
48325
49082
|
exports.DeviceStatusSchema = DeviceStatusSchema;
|
|
48326
49083
|
exports.DeviceType = require_sleep.DeviceType;
|
|
49084
|
+
exports.DiagnosticIdSchema = DiagnosticIdSchema;
|
|
49085
|
+
exports.DiagnosticWindowPatchSchema = DiagnosticWindowPatchSchema;
|
|
49086
|
+
exports.DiagnosticWindowSchema = DiagnosticWindowSchema;
|
|
48327
49087
|
exports.DiscoveredChildDeviceSchema = DiscoveredChildDeviceSchema;
|
|
48328
49088
|
exports.DiscoveredChildStatusSchema = DiscoveredChildStatusSchema;
|
|
48329
49089
|
exports.DiscoveredDeviceSchema = DiscoveredDeviceSchema;
|
|
@@ -48388,6 +49148,7 @@ exports.ExpressionGlobalBindingSchema = ExpressionGlobalBindingSchema;
|
|
|
48388
49148
|
exports.ExpressionLiteralBindingSchema = ExpressionLiteralBindingSchema;
|
|
48389
49149
|
exports.ExpressionParseError = ExpressionParseError;
|
|
48390
49150
|
exports.ExpressionSourceSchema = ExpressionSourceSchema;
|
|
49151
|
+
exports.FIRST_LEVEL_MACRO_CLASSES = FIRST_LEVEL_MACRO_CLASSES;
|
|
48391
49152
|
exports.FULL_IMAGE_BBOX = FULL_IMAGE_BBOX;
|
|
48392
49153
|
exports.FanControlStatusSchema = FanControlStatusSchema;
|
|
48393
49154
|
exports.FanDirectionSchema = FanDirectionSchema;
|
|
@@ -48401,6 +49162,7 @@ exports.FrameInputSchema = FrameInputSchema;
|
|
|
48401
49162
|
exports.FrameLazyCountersSchema = FrameLazyCountersSchema;
|
|
48402
49163
|
exports.FrameLazyMetricsSchema = FrameLazyMetricsSchema;
|
|
48403
49164
|
exports.GasStatusSchema = GasStatusSchema;
|
|
49165
|
+
exports.GetLoggingSettingsInputSchema = GetLoggingSettingsInputSchema;
|
|
48404
49166
|
exports.GetStreamWithCodecInputSchema = GetStreamWithCodecInputSchema;
|
|
48405
49167
|
exports.GlobalMetricsSchema = GlobalMetricsSchema;
|
|
48406
49168
|
exports.HAP_AUDIO_BASE = HAP_AUDIO_BASE;
|
|
@@ -48472,6 +49234,13 @@ exports.LockStateSchema = LockStateSchema;
|
|
|
48472
49234
|
exports.LogEntrySchema = LogEntrySchema;
|
|
48473
49235
|
exports.LogLevelSchema = LogLevelSchema;
|
|
48474
49236
|
exports.LogStreamEntrySchema = LogStreamEntrySchema;
|
|
49237
|
+
exports.LoggingEffectiveSchema = LoggingEffectiveSchema;
|
|
49238
|
+
exports.LoggingExplicitSchema = LoggingExplicitSchema;
|
|
49239
|
+
exports.LoggingLevelLayerSchema = LoggingLevelLayerSchema;
|
|
49240
|
+
exports.LoggingLevelSourceSchema = LoggingLevelSourceSchema;
|
|
49241
|
+
exports.LoggingScopeKindSchema = LoggingScopeKindSchema;
|
|
49242
|
+
exports.LoggingSettingsPatchSchema = LoggingSettingsPatchSchema;
|
|
49243
|
+
exports.LoggingSettingsStateSchema = LoggingSettingsStateSchema;
|
|
48475
49244
|
exports.LoginMethodContributionSchema = LoginMethodContributionSchema;
|
|
48476
49245
|
exports.LoginStageEnum = LoginStageEnum;
|
|
48477
49246
|
exports.MACRO_LABELS = MACRO_LABELS;
|
|
@@ -48484,6 +49253,7 @@ exports.MAX_EXPRESSION_BINDINGS = MAX_EXPRESSION_BINDINGS;
|
|
|
48484
49253
|
exports.MAX_EXPRESSION_CALL_ARGS = MAX_EXPRESSION_CALL_ARGS;
|
|
48485
49254
|
exports.MAX_EXPRESSION_EVAL_STEPS = MAX_EXPRESSION_EVAL_STEPS;
|
|
48486
49255
|
exports.MAX_EXPRESSION_SOURCE_LENGTH = MAX_EXPRESSION_SOURCE_LENGTH;
|
|
49256
|
+
exports.MAX_SENSOR_TRIGGER_DEVICES = MAX_SENSOR_TRIGGER_DEVICES;
|
|
48487
49257
|
exports.METHOD_ACCESS_MAP = METHOD_ACCESS_MAP;
|
|
48488
49258
|
exports.METHOD_DEVICE_SELECTORS = METHOD_DEVICE_SELECTORS;
|
|
48489
49259
|
exports.MODEL_FORMATS = MODEL_FORMATS;
|
|
@@ -48544,6 +49314,8 @@ exports.NATIVE_LEASE_BUDGET_FIELD = NATIVE_LEASE_BUDGET_FIELD;
|
|
|
48544
49314
|
exports.NATIVE_LEASE_BUDGET_KEY = NATIVE_LEASE_BUDGET_KEY;
|
|
48545
49315
|
exports.NATIVE_LEASE_HOLD_FIELD = NATIVE_LEASE_HOLD_FIELD;
|
|
48546
49316
|
exports.NATIVE_LEASE_HOLD_KEY = NATIVE_LEASE_HOLD_KEY;
|
|
49317
|
+
exports.NATIVE_LEASE_SCENE_BUDGET_FIELD = NATIVE_LEASE_SCENE_BUDGET_FIELD;
|
|
49318
|
+
exports.NATIVE_LEASE_SCENE_BUDGET_KEY = NATIVE_LEASE_SCENE_BUDGET_KEY;
|
|
48547
49319
|
exports.NATIVE_LEASE_SECTION_ID = NATIVE_LEASE_SECTION_ID;
|
|
48548
49320
|
exports.NATIVE_LEASE_TILE_BUDGET_FIELD = NATIVE_LEASE_TILE_BUDGET_FIELD;
|
|
48549
49321
|
exports.NATIVE_LEASE_TILE_BUDGET_KEY = NATIVE_LEASE_TILE_BUDGET_KEY;
|
|
@@ -48736,6 +49508,7 @@ exports.RUNTIME_TO_FORMAT = RUNTIME_TO_FORMAT;
|
|
|
48736
49508
|
exports.RawStateResultSchema = require_sleep.RawStateResultSchema;
|
|
48737
49509
|
exports.ReadGopBytesResultSchema = ReadGopBytesResultSchema;
|
|
48738
49510
|
exports.ReadSegmentBytesResultSchema = ReadSegmentBytesResultSchema;
|
|
49511
|
+
exports.ReadWindowBytesResultSchema = ReadWindowBytesResultSchema;
|
|
48739
49512
|
exports.ReadinessRegistry = require_sleep.ReadinessRegistry;
|
|
48740
49513
|
exports.ReadinessTimeoutError = require_sleep.ReadinessTimeoutError;
|
|
48741
49514
|
exports.RecentTracksPageSchema = RecentTracksPageSchema;
|
|
@@ -48749,6 +49522,7 @@ exports.RecordingDaysSchema = RecordingDaysSchema;
|
|
|
48749
49522
|
exports.RecordingDeviceUsageSchema = RecordingDeviceUsageSchema;
|
|
48750
49523
|
exports.RecordingLocationUsageSchema = RecordingLocationUsageSchema;
|
|
48751
49524
|
exports.RecordingManifestSchema = RecordingManifestSchema;
|
|
49525
|
+
exports.RecordingObjectTriggerClassSchema = RecordingObjectTriggerClassSchema;
|
|
48752
49526
|
exports.RecordingRangeSchema = RecordingRangeSchema;
|
|
48753
49527
|
exports.RecordingRebalanceInputSchema = RecordingRebalanceInputSchema;
|
|
48754
49528
|
exports.RecordingRebalanceMoveSchema = RecordingRebalanceMoveSchema;
|
|
@@ -48769,6 +49543,10 @@ exports.RelocateJobStateSchema = RelocateJobStateSchema;
|
|
|
48769
49543
|
exports.RelocateMediaInputSchema = RelocateMediaInputSchema;
|
|
48770
49544
|
exports.RenderedAsSchema = RenderedAsSchema;
|
|
48771
49545
|
exports.ReportMotionInputSchema = ReportMotionInputSchema;
|
|
49546
|
+
exports.RequestCensusGroupSchema = RequestCensusGroupSchema;
|
|
49547
|
+
exports.RequestCensusProcedureSchema = RequestCensusProcedureSchema;
|
|
49548
|
+
exports.RequestCensusSnapshotSchema = RequestCensusSnapshotSchema;
|
|
49549
|
+
exports.RequestCensusStatusSchema = RequestCensusStatusSchema;
|
|
48772
49550
|
exports.RetrainAnnotationDraftSchema = RetrainAnnotationDraftSchema;
|
|
48773
49551
|
exports.RetrainAnnotationKindSchema = RetrainAnnotationKindSchema;
|
|
48774
49552
|
exports.RetrainAnnotationSchema = RetrainAnnotationSchema;
|
|
@@ -48806,6 +49584,10 @@ exports.SCENE_RESET_RECAPTURES = SCENE_RESET_RECAPTURES;
|
|
|
48806
49584
|
exports.SCOPE_PRESETS = SCOPE_PRESETS;
|
|
48807
49585
|
exports.SENSOR_FEATURES = SENSOR_FEATURES;
|
|
48808
49586
|
exports.SENSOR_MAP = SENSOR_MAP;
|
|
49587
|
+
exports.SOURCE_CAPS = SOURCE_CAPS;
|
|
49588
|
+
exports.SOURCE_CAP_ACTIVE_FIELD = SOURCE_CAP_ACTIVE_FIELD;
|
|
49589
|
+
exports.SOURCE_CAP_CHANGED_AT_FIELD = SOURCE_CAP_CHANGED_AT_FIELD;
|
|
49590
|
+
exports.SOURCE_DEVICE_TYPES = SOURCE_DEVICE_TYPES;
|
|
48809
49591
|
exports.SOURCE_INFO_METADATA_KEY = SOURCE_INFO_METADATA_KEY;
|
|
48810
49592
|
exports.STREAM_PROFILE_META = STREAM_PROFILE_META;
|
|
48811
49593
|
exports.STREAM_QUALITY_LABELS = STREAM_QUALITY_LABELS;
|
|
@@ -48837,6 +49619,7 @@ exports.ServerRollbackInfoSchema = ServerRollbackInfoSchema;
|
|
|
48837
49619
|
exports.ServerUpdateActionResultSchema = ServerUpdateActionResultSchema;
|
|
48838
49620
|
exports.ServerUpdateCheckResultSchema = ServerUpdateCheckResultSchema;
|
|
48839
49621
|
exports.ServerUpdateStateSchema = ServerUpdateStateSchema;
|
|
49622
|
+
exports.SetLoggingSettingsInputSchema = SetLoggingSettingsInputSchema;
|
|
48840
49623
|
exports.SetSiteLocationInputSchema = SetSiteLocationInputSchema;
|
|
48841
49624
|
exports.SettingsPatchSchema = SettingsPatchSchema;
|
|
48842
49625
|
exports.SettingsRecordSchema = SettingsRecordSchema;
|
|
@@ -49142,6 +49925,7 @@ exports.errMsg = require_err_msg.errMsg;
|
|
|
49142
49925
|
exports.evaluateAst = evaluateAst;
|
|
49143
49926
|
exports.evaluateExpressionSource = evaluateExpressionSource;
|
|
49144
49927
|
exports.evaluatePoolMemory = evaluatePoolMemory;
|
|
49928
|
+
exports.evaluateSensorEdge = evaluateSensorEdge;
|
|
49145
49929
|
exports.evaluateZoneRules = evaluateZoneRules;
|
|
49146
49930
|
exports.event = require_sleep.event;
|
|
49147
49931
|
exports.eventEmitterCapability = eventEmitterCapability;
|
|
@@ -49189,6 +49973,7 @@ exports.isDetectionMacroClass = isDetectionMacroClass;
|
|
|
49189
49973
|
exports.isDeviceConfigCap = require_sleep.isDeviceConfigCap;
|
|
49190
49974
|
exports.isDeviceScopedCap = require_sleep.isDeviceScopedCap;
|
|
49191
49975
|
exports.isEvent = require_sleep.isEvent;
|
|
49976
|
+
exports.isFirstLevelMacroClass = isFirstLevelMacroClass;
|
|
49192
49977
|
exports.isIsolatedBuiltin = isIsolatedBuiltin;
|
|
49193
49978
|
exports.isNode = isNode;
|
|
49194
49979
|
exports.isObjectInput = isObjectInput;
|
|
@@ -49197,6 +49982,7 @@ exports.isRestoredCap = isRestoredCap;
|
|
|
49197
49982
|
exports.isSameAddonId = isSameAddonId;
|
|
49198
49983
|
exports.isScheduleActive = isScheduleActive;
|
|
49199
49984
|
exports.isSoftwareDecode = require_canonical_hash.isSoftwareDecode;
|
|
49985
|
+
exports.isSourceCap = isSourceCap;
|
|
49200
49986
|
exports.isSystemDelivery = isSystemDelivery;
|
|
49201
49987
|
exports.isVoidInput = isVoidInput;
|
|
49202
49988
|
exports.jobKindSchema = jobKindSchema;
|
|
@@ -49350,6 +50136,8 @@ exports.setByPath = setByPath;
|
|
|
49350
50136
|
exports.settingsStoreCapability = settingsStoreCapability;
|
|
49351
50137
|
exports.sleep = require_sleep.sleep;
|
|
49352
50138
|
exports.sleepCancellable = require_sleep.sleepCancellable;
|
|
50139
|
+
exports.sliceActiveValue = sliceActiveValue;
|
|
50140
|
+
exports.sliceChangedAt = sliceChangedAt;
|
|
49353
50141
|
exports.smokeCapability = smokeCapability;
|
|
49354
50142
|
exports.smtpProviderCapability = smtpProviderCapability;
|
|
49355
50143
|
exports.snapshotCapability = snapshotCapability;
|