@camstack/addon-post-analysis 1.2.307 → 1.2.309
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/{clip-model-registry-C67UM_q_.js → clip-model-registry-B3M4ZI17.js} +392 -264
- package/dist/{clip-model-registry-C9Aw4qkh.mjs → clip-model-registry-CrBn6Qvt.mjs} +387 -265
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-QE0Juzwb.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-Bkf0-pki.mjs} +3 -3
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DWg2WU0a.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-DzNrV8y8.mjs → hostInit-Dj0aaMhv.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +1350 -389
- package/dist/pipeline-analytics/index.mjs +1350 -389
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-MwQBD526.mjs +0 -26
|
@@ -12479,6 +12479,68 @@ method(object({
|
|
|
12479
12479
|
password: string()
|
|
12480
12480
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12481
12481
|
/**
|
|
12482
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
12483
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
12484
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
12485
|
+
* generous because a timeout fails the whole backup run.
|
|
12486
|
+
*/
|
|
12487
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
12488
|
+
/**
|
|
12489
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
12490
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
12491
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
12492
|
+
* owner's host.
|
|
12493
|
+
*/
|
|
12494
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
12495
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
12496
|
+
var DatabaseSnapshotTableSchema = object({
|
|
12497
|
+
name: string(),
|
|
12498
|
+
rows: number().int().nonnegative()
|
|
12499
|
+
});
|
|
12500
|
+
/**
|
|
12501
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
12502
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
12503
|
+
* that finds the path outside its own data root refuses it rather than
|
|
12504
|
+
* archiving something it cannot place.
|
|
12505
|
+
*/
|
|
12506
|
+
var DatabaseSnapshotResultSchema = object({
|
|
12507
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
12508
|
+
livePath: string(),
|
|
12509
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
12510
|
+
snapshotPath: string(),
|
|
12511
|
+
sizeBytes: number().int().nonnegative(),
|
|
12512
|
+
pageCount: number().int().nonnegative(),
|
|
12513
|
+
pageSize: number().int().positive(),
|
|
12514
|
+
/**
|
|
12515
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
12516
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
12517
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
12518
|
+
*/
|
|
12519
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
12520
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
12521
|
+
copyMs: number().nonnegative(),
|
|
12522
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
12523
|
+
verifyMs: number().nonnegative(),
|
|
12524
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
12525
|
+
takenAt: number()
|
|
12526
|
+
});
|
|
12527
|
+
/**
|
|
12528
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
12529
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
12530
|
+
* data dir), because an archive outlives the host that made it.
|
|
12531
|
+
*/
|
|
12532
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
12533
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
12534
|
+
livePath: string(),
|
|
12535
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
12536
|
+
snapshotPath: string()
|
|
12537
|
+
});
|
|
12538
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
12539
|
+
kind: "mutation",
|
|
12540
|
+
auth: "admin",
|
|
12541
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
12542
|
+
});
|
|
12543
|
+
/**
|
|
12482
12544
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12483
12545
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12484
12546
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -12589,7 +12651,12 @@ var ArchiveManifestSchema = object({
|
|
|
12589
12651
|
locations: array(string()),
|
|
12590
12652
|
entries: array(ArchiveEntrySchema),
|
|
12591
12653
|
totalBytes: number(),
|
|
12592
|
-
totalFiles: number()
|
|
12654
|
+
totalFiles: number(),
|
|
12655
|
+
/**
|
|
12656
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12657
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12658
|
+
*/
|
|
12659
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
12593
12660
|
});
|
|
12594
12661
|
var LocationStatSchema = object({
|
|
12595
12662
|
name: string(),
|
|
@@ -14119,6 +14186,52 @@ var CompositionBlockStateSchema = object({
|
|
|
14119
14186
|
reason: string().optional(),
|
|
14120
14187
|
fields: array(CompositionFieldStateSchema)
|
|
14121
14188
|
});
|
|
14189
|
+
var ComposerBlockSchema = object({
|
|
14190
|
+
id: string().min(1),
|
|
14191
|
+
name: string().min(1).max(120),
|
|
14192
|
+
enabled: boolean(),
|
|
14193
|
+
updatedAt: number(),
|
|
14194
|
+
composition: CompositionSchema
|
|
14195
|
+
});
|
|
14196
|
+
/**
|
|
14197
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
14198
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14199
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14200
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14201
|
+
*/
|
|
14202
|
+
var ComposerUnreadableBlockSchema = object({
|
|
14203
|
+
id: string().min(1),
|
|
14204
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14205
|
+
name: string().nullable(),
|
|
14206
|
+
/** The parse error, in the operator's words. */
|
|
14207
|
+
error: string()
|
|
14208
|
+
});
|
|
14209
|
+
method(object({
|
|
14210
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14211
|
+
integrationId: string().nullable(),
|
|
14212
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14213
|
+
storeLoaded: boolean(),
|
|
14214
|
+
blocks: array(ComposerBlockSchema),
|
|
14215
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14216
|
+
restartBlockIds: array(string()),
|
|
14217
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14218
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14219
|
+
}), object({
|
|
14220
|
+
blocks: array(object({
|
|
14221
|
+
blockId: string(),
|
|
14222
|
+
status: CompositionRunStatusSchema,
|
|
14223
|
+
reason: string().optional()
|
|
14224
|
+
})),
|
|
14225
|
+
/**
|
|
14226
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14227
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
14228
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14229
|
+
*/
|
|
14230
|
+
acted: boolean()
|
|
14231
|
+
}), {
|
|
14232
|
+
kind: "mutation",
|
|
14233
|
+
auth: "admin"
|
|
14234
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14122
14235
|
var NUMBER = {
|
|
14123
14236
|
kind: "fixed",
|
|
14124
14237
|
result: ["number"]
|
|
@@ -14355,52 +14468,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
14355
14468
|
auth: "admin",
|
|
14356
14469
|
access: "view"
|
|
14357
14470
|
});
|
|
14358
|
-
var ComposerBlockSchema = object({
|
|
14359
|
-
id: string().min(1),
|
|
14360
|
-
name: string().min(1).max(120),
|
|
14361
|
-
enabled: boolean(),
|
|
14362
|
-
updatedAt: number(),
|
|
14363
|
-
composition: CompositionSchema
|
|
14364
|
-
});
|
|
14365
|
-
/**
|
|
14366
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
14367
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14368
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14369
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14370
|
-
*/
|
|
14371
|
-
var ComposerUnreadableBlockSchema = object({
|
|
14372
|
-
id: string().min(1),
|
|
14373
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14374
|
-
name: string().nullable(),
|
|
14375
|
-
/** The parse error, in the operator's words. */
|
|
14376
|
-
error: string()
|
|
14377
|
-
});
|
|
14378
|
-
method(object({
|
|
14379
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14380
|
-
integrationId: string().nullable(),
|
|
14381
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14382
|
-
storeLoaded: boolean(),
|
|
14383
|
-
blocks: array(ComposerBlockSchema),
|
|
14384
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14385
|
-
restartBlockIds: array(string()),
|
|
14386
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14387
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14388
|
-
}), object({
|
|
14389
|
-
blocks: array(object({
|
|
14390
|
-
blockId: string(),
|
|
14391
|
-
status: CompositionRunStatusSchema,
|
|
14392
|
-
reason: string().optional()
|
|
14393
|
-
})),
|
|
14394
|
-
/**
|
|
14395
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14396
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
14397
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14398
|
-
*/
|
|
14399
|
-
acted: boolean()
|
|
14400
|
-
}), {
|
|
14401
|
-
kind: "mutation",
|
|
14402
|
-
auth: "admin"
|
|
14403
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14404
14471
|
/**
|
|
14405
14472
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
14406
14473
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -16357,6 +16424,219 @@ method(object({
|
|
|
16357
16424
|
caps: array(string()).readonly().optional()
|
|
16358
16425
|
}), record(string(), record(string(), unknown().nullable())));
|
|
16359
16426
|
/**
|
|
16427
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
16428
|
+
* name (same pattern as `snapshot`):
|
|
16429
|
+
*
|
|
16430
|
+
* - **Native** providers: registered per-device by device-driver
|
|
16431
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
16432
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16433
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
16434
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
16435
|
+
* ring; status tracks the last press and a pressCount since start
|
|
16436
|
+
* (diagnostic).
|
|
16437
|
+
*
|
|
16438
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16439
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16440
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16441
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16442
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
16443
|
+
* device + trigger in the per-device settings.
|
|
16444
|
+
*
|
|
16445
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16446
|
+
* — subscribers listening at the camera level receive ring events
|
|
16447
|
+
* with `via[]` populated. No code on the parent needed.
|
|
16448
|
+
*/
|
|
16449
|
+
var DoorbellStatusSchema = object({
|
|
16450
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16451
|
+
lastPressedAt: number().nullable(),
|
|
16452
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16453
|
+
pressCountSinceStart: number()
|
|
16454
|
+
});
|
|
16455
|
+
var DoorbellPressEventSchema = object({
|
|
16456
|
+
deviceId: number(),
|
|
16457
|
+
timestamp: number()
|
|
16458
|
+
});
|
|
16459
|
+
/**
|
|
16460
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16461
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16462
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16463
|
+
*/
|
|
16464
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16465
|
+
/**
|
|
16466
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16467
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16468
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
16469
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16470
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16471
|
+
* reports it, it never writes it.
|
|
16472
|
+
*/
|
|
16473
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
16474
|
+
id: "doorbell-source",
|
|
16475
|
+
label: "Doorbell trigger devices",
|
|
16476
|
+
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
16477
|
+
shape: "association",
|
|
16478
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
16479
|
+
sourceCaps: SOURCE_CAPS,
|
|
16480
|
+
cardinality: "many",
|
|
16481
|
+
value: DoorbellSourceSlotValueSchema
|
|
16482
|
+
};
|
|
16483
|
+
var doorbellCapability = {
|
|
16484
|
+
name: "doorbell",
|
|
16485
|
+
scope: "device",
|
|
16486
|
+
deviceNative: true,
|
|
16487
|
+
mode: "singleton",
|
|
16488
|
+
kind: "wrapper",
|
|
16489
|
+
defaultActive: false,
|
|
16490
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16491
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16492
|
+
methods: {},
|
|
16493
|
+
events: {
|
|
16494
|
+
/**
|
|
16495
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16496
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16497
|
+
* release/duration — it's a pulse.
|
|
16498
|
+
*/
|
|
16499
|
+
onPressed: {
|
|
16500
|
+
data: DoorbellPressEventSchema,
|
|
16501
|
+
fromState: {
|
|
16502
|
+
field: "lastPressedAt",
|
|
16503
|
+
on: "advance"
|
|
16504
|
+
}
|
|
16505
|
+
} },
|
|
16506
|
+
status: {
|
|
16507
|
+
schema: DoorbellStatusSchema,
|
|
16508
|
+
kind: "push"
|
|
16509
|
+
},
|
|
16510
|
+
/**
|
|
16511
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16512
|
+
* Mirrored by the kernel and readable via
|
|
16513
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16514
|
+
* without subscribing.
|
|
16515
|
+
*/
|
|
16516
|
+
runtimeState: DoorbellStatusSchema,
|
|
16517
|
+
/**
|
|
16518
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
16519
|
+
*
|
|
16520
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
16521
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
16522
|
+
*/
|
|
16523
|
+
durability: "restored"
|
|
16524
|
+
};
|
|
16525
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16526
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16527
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16528
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16529
|
+
DeviceType.Camera;
|
|
16530
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16531
|
+
state: literal("unreachable"),
|
|
16532
|
+
reason: string()
|
|
16533
|
+
})]);
|
|
16534
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16535
|
+
var ExtensionSourceSchema = object({
|
|
16536
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16537
|
+
source: string(),
|
|
16538
|
+
label: string(),
|
|
16539
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16540
|
+
addonId: string().optional(),
|
|
16541
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16542
|
+
});
|
|
16543
|
+
/**
|
|
16544
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16545
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16546
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16547
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16548
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16549
|
+
*/
|
|
16550
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16551
|
+
"ok",
|
|
16552
|
+
"missing",
|
|
16553
|
+
"foreign",
|
|
16554
|
+
"unavailable"
|
|
16555
|
+
]);
|
|
16556
|
+
var ExtensionSlotSourceSchema = object({
|
|
16557
|
+
deviceId: number().int(),
|
|
16558
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16559
|
+
name: string().nullable(),
|
|
16560
|
+
health: ExtensionSourceHealthSchema,
|
|
16561
|
+
detail: string().optional()
|
|
16562
|
+
});
|
|
16563
|
+
/**
|
|
16564
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16565
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16566
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16567
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16568
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16569
|
+
*/
|
|
16570
|
+
var ExtensionSlotActivationSchema = object({
|
|
16571
|
+
state: _enum([
|
|
16572
|
+
"active",
|
|
16573
|
+
"inactive",
|
|
16574
|
+
"unknown"
|
|
16575
|
+
]),
|
|
16576
|
+
authority: string(),
|
|
16577
|
+
detail: string().optional()
|
|
16578
|
+
});
|
|
16579
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16580
|
+
state: literal("ok"),
|
|
16581
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16582
|
+
slotRef: string(),
|
|
16583
|
+
slot: ExtensionSlotIdSchema,
|
|
16584
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16585
|
+
authority: string(),
|
|
16586
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16587
|
+
value: ExtensionSlotValueSchema,
|
|
16588
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16589
|
+
/**
|
|
16590
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16591
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16592
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16593
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16594
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16595
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16596
|
+
* older than D655.
|
|
16597
|
+
*/
|
|
16598
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16599
|
+
}), object({
|
|
16600
|
+
state: literal("unreachable"),
|
|
16601
|
+
addonId: string(),
|
|
16602
|
+
reason: string()
|
|
16603
|
+
})]);
|
|
16604
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16605
|
+
deviceId: number().int(),
|
|
16606
|
+
name: string(),
|
|
16607
|
+
type: string(),
|
|
16608
|
+
location: string().nullable(),
|
|
16609
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16610
|
+
parentName: string().nullable(),
|
|
16611
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16612
|
+
suggested: boolean(),
|
|
16613
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16614
|
+
reason: string().nullable()
|
|
16615
|
+
})) });
|
|
16616
|
+
/**
|
|
16617
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16618
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16619
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16620
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16621
|
+
*/
|
|
16622
|
+
var ExtensionSetResultSchema = object({
|
|
16623
|
+
applied: literal(true),
|
|
16624
|
+
reload: _enum([
|
|
16625
|
+
"none",
|
|
16626
|
+
"host",
|
|
16627
|
+
"parent"
|
|
16628
|
+
])
|
|
16629
|
+
});
|
|
16630
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16631
|
+
deviceId: number().int(),
|
|
16632
|
+
slotRef: string().min(1)
|
|
16633
|
+
});
|
|
16634
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16635
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16636
|
+
kind: "mutation",
|
|
16637
|
+
auth: "admin"
|
|
16638
|
+
});
|
|
16639
|
+
/**
|
|
16360
16640
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
16361
16641
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
16362
16642
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -19526,17 +19806,25 @@ var NcScheduleSchema = object({
|
|
|
19526
19806
|
*/
|
|
19527
19807
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
19528
19808
|
/**
|
|
19809
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19810
|
+
* every section; `section` = one notification per section with something to
|
|
19811
|
+
* say (an unavailable section included), each titled by its section.
|
|
19812
|
+
*/
|
|
19813
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19814
|
+
/**
|
|
19529
19815
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
19530
19816
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
19531
19817
|
* (low batteries, consumables to replace, devices offline, updates
|
|
19532
|
-
* available, ...), after its own filters
|
|
19818
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19819
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
19533
19820
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
19534
19821
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
19535
19822
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
19536
19823
|
*/
|
|
19537
19824
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
19538
19825
|
mode: literal("summary"),
|
|
19539
|
-
schedule: NcScheduleSchema
|
|
19826
|
+
schedule: NcScheduleSchema,
|
|
19827
|
+
split: NcStateSummarySplitSchema.optional()
|
|
19540
19828
|
})]);
|
|
19541
19829
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
19542
19830
|
var NcPlateMatcherSchema = object({
|
|
@@ -20553,11 +20841,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20553
20841
|
reason: string().optional()
|
|
20554
20842
|
});
|
|
20555
20843
|
/**
|
|
20844
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20845
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20846
|
+
*/
|
|
20847
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20848
|
+
section: string().optional(),
|
|
20849
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20850
|
+
title: string(),
|
|
20851
|
+
text: string(),
|
|
20852
|
+
count: number().int().nonnegative()
|
|
20853
|
+
});
|
|
20854
|
+
/**
|
|
20556
20855
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
20557
20856
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
20558
20857
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
20559
20858
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
20560
|
-
* (backups & exports).
|
|
20859
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20860
|
+
* optional, so an older hub's answer still parses.
|
|
20561
20861
|
*/
|
|
20562
20862
|
var NcStateSummaryPreviewSchema = object({
|
|
20563
20863
|
empty: boolean(),
|
|
@@ -20565,7 +20865,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
20565
20865
|
text: string(),
|
|
20566
20866
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
20567
20867
|
dropped: record(string(), number().int().nonnegative()),
|
|
20568
|
-
excludedGroups: array(string())
|
|
20868
|
+
excludedGroups: array(string()),
|
|
20869
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20870
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
20569
20871
|
});
|
|
20570
20872
|
var NcTestResultSchema = object({
|
|
20571
20873
|
recordId: string(),
|
|
@@ -29670,219 +29972,6 @@ DeviceType.Camera, method(object({
|
|
|
29670
29972
|
auth: "protected"
|
|
29671
29973
|
});
|
|
29672
29974
|
/**
|
|
29673
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
29674
|
-
* name (same pattern as `snapshot`):
|
|
29675
|
-
*
|
|
29676
|
-
* - **Native** providers: registered per-device by device-driver
|
|
29677
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
29678
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
29679
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
29680
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
29681
|
-
* ring; status tracks the last press and a pressCount since start
|
|
29682
|
-
* (diagnostic).
|
|
29683
|
-
*
|
|
29684
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
29685
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
29686
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
29687
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
29688
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
29689
|
-
* device + trigger in the per-device settings.
|
|
29690
|
-
*
|
|
29691
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
29692
|
-
* — subscribers listening at the camera level receive ring events
|
|
29693
|
-
* with `via[]` populated. No code on the parent needed.
|
|
29694
|
-
*/
|
|
29695
|
-
var DoorbellStatusSchema = object({
|
|
29696
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
29697
|
-
lastPressedAt: number().nullable(),
|
|
29698
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
29699
|
-
pressCountSinceStart: number()
|
|
29700
|
-
});
|
|
29701
|
-
var DoorbellPressEventSchema = object({
|
|
29702
|
-
deviceId: number(),
|
|
29703
|
-
timestamp: number()
|
|
29704
|
-
});
|
|
29705
|
-
/**
|
|
29706
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
29707
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
29708
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
29709
|
-
*/
|
|
29710
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
29711
|
-
/**
|
|
29712
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
29713
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
29714
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
29715
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
29716
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
29717
|
-
* reports it, it never writes it.
|
|
29718
|
-
*/
|
|
29719
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
29720
|
-
id: "doorbell-source",
|
|
29721
|
-
label: "Doorbell trigger devices",
|
|
29722
|
-
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
29723
|
-
shape: "association",
|
|
29724
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
29725
|
-
sourceCaps: SOURCE_CAPS,
|
|
29726
|
-
cardinality: "many",
|
|
29727
|
-
value: DoorbellSourceSlotValueSchema
|
|
29728
|
-
};
|
|
29729
|
-
var doorbellCapability = {
|
|
29730
|
-
name: "doorbell",
|
|
29731
|
-
scope: "device",
|
|
29732
|
-
deviceNative: true,
|
|
29733
|
-
mode: "singleton",
|
|
29734
|
-
kind: "wrapper",
|
|
29735
|
-
defaultActive: false,
|
|
29736
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
29737
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
29738
|
-
methods: {},
|
|
29739
|
-
events: {
|
|
29740
|
-
/**
|
|
29741
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
29742
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
29743
|
-
* release/duration — it's a pulse.
|
|
29744
|
-
*/
|
|
29745
|
-
onPressed: {
|
|
29746
|
-
data: DoorbellPressEventSchema,
|
|
29747
|
-
fromState: {
|
|
29748
|
-
field: "lastPressedAt",
|
|
29749
|
-
on: "advance"
|
|
29750
|
-
}
|
|
29751
|
-
} },
|
|
29752
|
-
status: {
|
|
29753
|
-
schema: DoorbellStatusSchema,
|
|
29754
|
-
kind: "push"
|
|
29755
|
-
},
|
|
29756
|
-
/**
|
|
29757
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
29758
|
-
* Mirrored by the kernel and readable via
|
|
29759
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
29760
|
-
* without subscribing.
|
|
29761
|
-
*/
|
|
29762
|
-
runtimeState: DoorbellStatusSchema,
|
|
29763
|
-
/**
|
|
29764
|
-
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
29765
|
-
*
|
|
29766
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
29767
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
29768
|
-
*/
|
|
29769
|
-
durability: "restored"
|
|
29770
|
-
};
|
|
29771
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
29772
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
29773
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
29774
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
29775
|
-
DeviceType.Camera;
|
|
29776
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
29777
|
-
state: literal("unreachable"),
|
|
29778
|
-
reason: string()
|
|
29779
|
-
})]);
|
|
29780
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
29781
|
-
var ExtensionSourceSchema = object({
|
|
29782
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
29783
|
-
source: string(),
|
|
29784
|
-
label: string(),
|
|
29785
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
29786
|
-
addonId: string().optional(),
|
|
29787
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
29788
|
-
});
|
|
29789
|
-
/**
|
|
29790
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
29791
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
29792
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
29793
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
29794
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
29795
|
-
*/
|
|
29796
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
29797
|
-
"ok",
|
|
29798
|
-
"missing",
|
|
29799
|
-
"foreign",
|
|
29800
|
-
"unavailable"
|
|
29801
|
-
]);
|
|
29802
|
-
var ExtensionSlotSourceSchema = object({
|
|
29803
|
-
deviceId: number().int(),
|
|
29804
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
29805
|
-
name: string().nullable(),
|
|
29806
|
-
health: ExtensionSourceHealthSchema,
|
|
29807
|
-
detail: string().optional()
|
|
29808
|
-
});
|
|
29809
|
-
/**
|
|
29810
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
29811
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
29812
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
29813
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
29814
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
29815
|
-
*/
|
|
29816
|
-
var ExtensionSlotActivationSchema = object({
|
|
29817
|
-
state: _enum([
|
|
29818
|
-
"active",
|
|
29819
|
-
"inactive",
|
|
29820
|
-
"unknown"
|
|
29821
|
-
]),
|
|
29822
|
-
authority: string(),
|
|
29823
|
-
detail: string().optional()
|
|
29824
|
-
});
|
|
29825
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
29826
|
-
state: literal("ok"),
|
|
29827
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
29828
|
-
slotRef: string(),
|
|
29829
|
-
slot: ExtensionSlotIdSchema,
|
|
29830
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
29831
|
-
authority: string(),
|
|
29832
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
29833
|
-
value: ExtensionSlotValueSchema,
|
|
29834
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
29835
|
-
/**
|
|
29836
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
29837
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
29838
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
29839
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
29840
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
29841
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
29842
|
-
* older than D655.
|
|
29843
|
-
*/
|
|
29844
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
29845
|
-
}), object({
|
|
29846
|
-
state: literal("unreachable"),
|
|
29847
|
-
addonId: string(),
|
|
29848
|
-
reason: string()
|
|
29849
|
-
})]);
|
|
29850
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
29851
|
-
deviceId: number().int(),
|
|
29852
|
-
name: string(),
|
|
29853
|
-
type: string(),
|
|
29854
|
-
location: string().nullable(),
|
|
29855
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
29856
|
-
parentName: string().nullable(),
|
|
29857
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
29858
|
-
suggested: boolean(),
|
|
29859
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
29860
|
-
reason: string().nullable()
|
|
29861
|
-
})) });
|
|
29862
|
-
/**
|
|
29863
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
29864
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
29865
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
29866
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
29867
|
-
*/
|
|
29868
|
-
var ExtensionSetResultSchema = object({
|
|
29869
|
-
applied: literal(true),
|
|
29870
|
-
reload: _enum([
|
|
29871
|
-
"none",
|
|
29872
|
-
"host",
|
|
29873
|
-
"parent"
|
|
29874
|
-
])
|
|
29875
|
-
});
|
|
29876
|
-
var ExtensionSlotRefInputSchema = object({
|
|
29877
|
-
deviceId: number().int(),
|
|
29878
|
-
slotRef: string().min(1)
|
|
29879
|
-
});
|
|
29880
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
29881
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
29882
|
-
kind: "mutation",
|
|
29883
|
-
auth: "admin"
|
|
29884
|
-
});
|
|
29885
|
-
/**
|
|
29886
29975
|
* Optional client-side hints sent at session creation to help the provider
|
|
29887
29976
|
* pick the best native source. All fields optional — a viewer that knows
|
|
29888
29977
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -44845,6 +44934,18 @@ Object.freeze({
|
|
|
44845
44934
|
addonId: null,
|
|
44846
44935
|
access: "view"
|
|
44847
44936
|
},
|
|
44937
|
+
"databaseSnapshot.listDatabases": {
|
|
44938
|
+
capName: "database-snapshot",
|
|
44939
|
+
capScope: "system",
|
|
44940
|
+
addonId: null,
|
|
44941
|
+
access: "view"
|
|
44942
|
+
},
|
|
44943
|
+
"databaseSnapshot.writeSnapshot": {
|
|
44944
|
+
capName: "database-snapshot",
|
|
44945
|
+
capScope: "system",
|
|
44946
|
+
addonId: null,
|
|
44947
|
+
access: "create"
|
|
44948
|
+
},
|
|
44848
44949
|
"dataStoreProvider.aggregate": {
|
|
44849
44950
|
capName: "data-store-provider",
|
|
44850
44951
|
capScope: "system",
|
|
@@ -53759,6 +53860,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
53759
53860
|
systemEventKinds: [...SUMMARISABLE],
|
|
53760
53861
|
systemEventDeliveries: ["summary"]
|
|
53761
53862
|
},
|
|
53863
|
+
{
|
|
53864
|
+
name: "summarySection",
|
|
53865
|
+
label: "Summary: this section",
|
|
53866
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
53867
|
+
example: "Batterie scariche",
|
|
53868
|
+
group: "system",
|
|
53869
|
+
families: ["rule"],
|
|
53870
|
+
fields: [...RULE_TEXT],
|
|
53871
|
+
kinds: ["system"],
|
|
53872
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
53873
|
+
systemEventDeliveries: ["summary"]
|
|
53874
|
+
},
|
|
53762
53875
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
53763
53876
|
name: v.name,
|
|
53764
53877
|
label: v.label,
|
|
@@ -54599,6 +54712,15 @@ function systemEventSummaryScheduleOf(rule) {
|
|
|
54599
54712
|
const delivery = rule.systemEventDelivery;
|
|
54600
54713
|
return delivery?.mode === "summary" ? delivery.schedule : null;
|
|
54601
54714
|
}
|
|
54715
|
+
/**
|
|
54716
|
+
* How a summary rule's window is sent (D698): `section` = one notification per
|
|
54717
|
+
* section; absent (every rule before D698) and any non-summary rule = `rule`.
|
|
54718
|
+
* The ONE reader — the scheduler, the rule test, the preview and both editors.
|
|
54719
|
+
*/
|
|
54720
|
+
function systemEventSummarySplitOf(rule) {
|
|
54721
|
+
const delivery = rule.systemEventDelivery;
|
|
54722
|
+
return delivery?.mode === "summary" ? delivery.split ?? "rule" : "rule";
|
|
54723
|
+
}
|
|
54602
54724
|
/** Absent and `instant` are the same answer: a notification per event. */
|
|
54603
54725
|
function isSystemEventSummaryRule(rule) {
|
|
54604
54726
|
return systemEventSummaryScheduleOf(rule) !== null;
|
|
@@ -55965,4 +56087,4 @@ function buildClipModelRegistry(entries) {
|
|
|
55965
56087
|
/** The built-in catalog's registry. */
|
|
55966
56088
|
var BUILTIN_CLIP_MODELS = buildClipModelRegistry(CLIP_IMAGE_MODELS);
|
|
55967
56089
|
//#endregion
|
|
55968
|
-
export { NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as $, ruleDeviceCompatCapQueries as $n, TimelapseRuleInputSchema as $t, EMBEDDING_REQUIREMENTS_FAILED as A, isDetectionMacroClass as An,
|
|
56090
|
+
export { NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as $, ruleDeviceCompatCapQueries as $n, TimelapseRuleInputSchema as $t, EMBEDDING_REQUIREMENTS_FAILED as A, isDetectionMacroClass as An, sleep as Ar, NcTemplateVarDescriptorSchema as At, ListTrackRelationsInputSchema as B, memoizePinnedFfmpeg as Bn, partialRecord as Br, SCENE_DEFAULT_ANCHOR_THRESHOLD as Bt, DEFAULT_EVENT_COLOR as C, encodeVectorBase64 as Cn, createEvent as Cr, NcSnoozeInputSchema as Ct, DeclaredDevices as D, gifDeriveSpeed as Dn, isDeviceScopedCap as Dr, NcTaxonomySchema as Dt, DETECTION_PIPELINE_CAP_NAME as E, failureContributionCapability as En, hydrateSchema as Er, NcSystemEventKindSchema as Et, EXPORT_DENSE_MAX_RANGES as F, isSystemDelivery as Fn, discriminatedUnion as Fr, RECORDING_SOURCE_CAMSTACK_ADDON as Ft, MAX_BIRTH_LATENCY_PROXY_MS as G, plateGalleryCapability as Gn, union as Gr, SCENE_DIVERGED as Gt, LockStateSchema as H, occupancyScope as Hn, strictObject as Hr, SCENE_DEFAULT_OBSERVATION_SPACING_SEC as Ht, FIRST_LEVEL_MACRO_CLASSES as I, isSystemEventSummaryRule as In, literal as Ir, RebuildObjectEmbeddingsRefusalSchema as It, MOTION_CLOSE_AFTER_MS as J, readTimelapseGeneratedAt as Jn, SetTrackPurityInputSchema as Jt, MAX_TRACK_PURITIES as K, readDeviceStateFrom as Kn, unknown as Kr, SCENE_RESET_RECAPTURES as Kt, FULL_IMAGE_BBOX as L, isVectorIndexDimConflict as Ln, looseObject as Lr, RetrainStatusSchema as Lt, EVENT_DENSITY_BATCH_MAX as M, isKnownTemplateVar as Mn, _enum as Mr, OpsLogEntrySchema as Mt, EVENT_KIND_BY_CAP as N, isMediaOwnerType as Nn, array as Nr, PoolMemoryWatchdog as Nt, DetectionSourceSchema as O, gifFromMp4Args as On, nodePin as Or, NcTemplatePreviewInputSchema as Ot, EVENT_OWNER_TYPES as P, isScheduleActive as Pn, boolean as Pr, RECORDING_EXPORT_MAX_READ_BYTES as Pt, NC_AUDIO_CONFIRM_HITS_DEFAULT as Q, ruleBelongsToAlarm as Qn, TRACK_RELATIONS_DEFAULT_LIMIT as Qt, FailureCounters as R, kebabToCamel as Rn, number as Rr, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX as Rt, CoverStateSchema as S, embeddingRequirementsUnavailableError as Sn, CamProfileSchema as Sr, NcScheduleSchema as St, DETECTION_MACRO_CLASSES as T, faceGalleryCapability as Tn, defineCustomActions as Tr, NcSnoozeSuppressedSchema as Tt, MAX_ARCHIVED_DEBUG_NOTES as U, parseProcStatus as Un, string as Ur, SCENE_DEFAULT_QUIET_SECONDS as Ut, ListTrackRelationsResultSchema as V, notificationRulesCapability as Vn, record as Vr, SCENE_DEFAULT_CHECK_INTERVAL_SEC as Vt, MAX_BIRTH_DECISION_RECORDS as W, pipelineAnalyticsCapability as Wn, tuple as Wr, SCENE_DEFAULT_UNCOVERED_POLICY as Wt, MotionTriggeredBySchema as X, resolveLocationMode as Xn, SetTrackRelationInputSchema as Xt, MediaFileKindEnum as Y, resolveClipSearchMinScore as Yn, SetTrackPurityResultSchema as Yt, NC_ALARM_SYSTEM_EVENT_KINDS as Z, resolvePoolMemoryPolicy as Zn, TIMELAPSE_DENSE_FLOOR_SEC as Zt, BaseDevice as _, describeSystemEventFamilyProblem as _n, evaluateSensorEdge as _r, NcRuleInputSchema as _t, CLIP_EMBEDDING_STEP_ID as a, TrackSideSchema as an, subKindsOf as ar, NC_CONSUMABLE_SYSTEM_EVENT_KINDS as at, ClearTrackRelationInputSchema as b, embeddingRefusalOf as bn, errMsg as br, NcRuleTargetSchema as bt, resolveClusterModelPin as c, alarmPanelCapability as cn, systemEventFilterApplies as cr, NC_SNOOZE_MAX_MINUTES as ct, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT as d, audioModeOf as dn, templateCarriesSummary as dr, NC_TAXONOMY as dt, TimelapseRulePatchSchema as en, ruleKindOf as er, NC_CLIP_POST_ROLL_DEFAULT_SEC as et, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT as f, buildEventKindDescriptor as fn, templateVarsFor as fr, NC_TEMPLATE_VARS as ft, BIRTH_DECISION_DEFAULT_LIMIT as g, describeSystemEventDeliveryProblem as gn, canonicalHash as gr, NcConditionsSchema as gt, ArchivedDebugNoteSchema as h, deriveRecordingMode as hn, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as hr, NcConditionDescriptorSchema as ht, CLIP_TEXT_MODELS as i, TrackRelationSchema as in, storageOccupancyCapability as ir, NC_CONSUMABLE_LOW_PERCENT_DEFAULT as it, EMBEDDING_REQUIREMENTS_UNAVAILABLE as j, isEventOwnerType as jn, ZodObject as jr, OPS_LOG_DEFAULT_LIMIT as jt, EMBEDDING_MODEL_FAILED as k, isAudioClassName as kn, normalizeNodeId as kr, NcTemplatePreviewSchema as kt, APPEARANCE_BIN_COUNT as l, assertTimelapseCadences as ln, systemEventSummaryScheduleOf as lr, NC_SYSTEM_EVENT_KIND_GROUP_SPECS as lt, AlarmArmModeSchema as m, cosineSimilarity as mn, zoneAnalyticsCapability as mr, NcAlarmSettingsPatchSchema as mt, DEFAULT_CLIP_MODEL as n, TrackPuritySchema as nn, sensorRaisedOf as nr, NC_CLIP_RETENTION_MAX_SEC as nt, FACE_EMBEDDING_STEP_ID as o, TrackSourceSchema as on, systemEventDeliveryProblems as or, NC_DEFAULT_SNOOZE_MINUTES as ot, AUDIO_MACRO_LABELS as p, consumableLowPercentOf as pn, vectorDimFromBase64 as pr, NcAlarmConfigSchema as pt, MAX_TRACK_RELATIONS as q, readMotionTriggeredBy as qn, EventCategory as qr, SceneMonitorSchema as qt, CLIP_IMAGE_MODELS as r, TrackRelationKindSchema as rn, servedTemplateVars as rr, NC_CONDITION_CATALOG as rt, readClusterModelPinStrict as s, addonWidgetsSourceCapability as sn, systemEventFamilyProblems as sr, NC_SENSOR_TRANSITION_KINDS as st, BUILTIN_CLIP_MODELS as t, TimelapseRuleSchema as tn, sceneMonitorCapability as tr, NC_CLIP_PRE_ROLL_DEFAULT_SEC as tt, APPEARANCE_BLOCKS as u, audioMetricsCapability as un, systemEventSummarySplitOf as ur, NC_TANK_SYSTEM_EVENT_KINDS as ut, BirthDecisionRecordSchema as v, embeddingEncoderCapability as vn, isSourceCap as vr, NcRulePatchSchema as vt, DEFAULT_TIMELAPSE_PREVIEW_TEXT as w, evictionPolicyOfLocation as wn, customAction as wr, NcSnoozeSchema as wt, ClearTrackRelationResultSchema as x, embeddingRequirementsFailedError as xn, BaseAddon as xr, NcRuleUpdateInputSchema as xt, COCO_TO_MACRO as y, embeddingModelFailedError as yn, DeviceType as yr, NcRuleSchema as yt, LabelAttributionSchema as z, mayWriteToLocation as zn, object as zr, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS as zt };
|