@camstack/addon-matter-broker 0.2.115 → 0.2.116
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 +760 -321
- package/dist/addon.mjs +760 -321
- package/package.json +2 -2
package/dist/addon.js
CHANGED
|
@@ -5384,7 +5384,7 @@ var ZodIssueCode = {
|
|
|
5384
5384
|
var ZodFirstPartyTypeKind;
|
|
5385
5385
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5386
5386
|
//#endregion
|
|
5387
|
-
//#region ../types/dist/sleep-
|
|
5387
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5388
5388
|
/**
|
|
5389
5389
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5390
5390
|
* window to float samples (D455).
|
|
@@ -7427,7 +7427,59 @@ function errMsg(err) {
|
|
|
7427
7427
|
return String(err);
|
|
7428
7428
|
}
|
|
7429
7429
|
//#endregion
|
|
7430
|
-
//#region ../types/dist/composition-
|
|
7430
|
+
//#region ../types/dist/composition-Dq42XWp0.mjs
|
|
7431
|
+
/**
|
|
7432
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7433
|
+
*
|
|
7434
|
+
* ## Why a download, on every node, including the container
|
|
7435
|
+
*
|
|
7436
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7437
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7438
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7439
|
+
* framework bump, not an image rebuild.
|
|
7440
|
+
*
|
|
7441
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7442
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7443
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7444
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7445
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7446
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7447
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7448
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7449
|
+
*
|
|
7450
|
+
* ## Why jellyfin-ffmpeg
|
|
7451
|
+
*
|
|
7452
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7453
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7454
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7455
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7456
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7457
|
+
*
|
|
7458
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7459
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7460
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7461
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7462
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7463
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7464
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7465
|
+
*
|
|
7466
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7467
|
+
*
|
|
7468
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7469
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7470
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7471
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7472
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7473
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7474
|
+
* (D536).
|
|
7475
|
+
*/
|
|
7476
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7477
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7478
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7479
|
+
function portable(target) {
|
|
7480
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7481
|
+
}
|
|
7482
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7431
7483
|
/**
|
|
7432
7484
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7433
7485
|
* valutatore puro del suo FRONTE.
|
|
@@ -8901,6 +8953,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8901
8953
|
/** Max rows returned, newest-first. */
|
|
8902
8954
|
limit: number().int().min(1).max(1e3).optional()
|
|
8903
8955
|
});
|
|
8956
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8957
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8958
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8959
|
+
var TrackRelationSchema = object({
|
|
8960
|
+
id: string$2(),
|
|
8961
|
+
deviceId: number().int(),
|
|
8962
|
+
leftTrackId: string$2(),
|
|
8963
|
+
rightTrackId: string$2(),
|
|
8964
|
+
leftSide: TrackSideSchema.nullable(),
|
|
8965
|
+
rightSide: TrackSideSchema.nullable(),
|
|
8966
|
+
relation: TrackRelationKindSchema,
|
|
8967
|
+
presence: literal("continuous").nullable(),
|
|
8968
|
+
leftStartedAt: number().int().nullable(),
|
|
8969
|
+
rightStartedAt: number().int().nullable(),
|
|
8970
|
+
createdAt: number().int(),
|
|
8971
|
+
updatedAt: number().int(),
|
|
8972
|
+
author: string$2().nullable()
|
|
8973
|
+
});
|
|
8974
|
+
var TrackPuritySchema = object({
|
|
8975
|
+
id: string$2(),
|
|
8976
|
+
deviceId: number().int(),
|
|
8977
|
+
sourceTrackId: string$2(),
|
|
8978
|
+
purity: TrackPurityValueSchema,
|
|
8979
|
+
switchAtMs: number().int().nullable(),
|
|
8980
|
+
startedAt: number().int().nullable(),
|
|
8981
|
+
createdAt: number().int(),
|
|
8982
|
+
updatedAt: number().int(),
|
|
8983
|
+
author: string$2().nullable()
|
|
8984
|
+
});
|
|
8985
|
+
var SetTrackRelationInputSchema = object({
|
|
8986
|
+
deviceId: number().int(),
|
|
8987
|
+
trackId: string$2().min(1),
|
|
8988
|
+
otherTrackId: string$2().min(1),
|
|
8989
|
+
relation: TrackRelationKindSchema,
|
|
8990
|
+
presence: literal("continuous").optional(),
|
|
8991
|
+
trackSide: TrackSideSchema.optional(),
|
|
8992
|
+
otherSide: TrackSideSchema.optional()
|
|
8993
|
+
});
|
|
8994
|
+
var ClearTrackRelationInputSchema = object({
|
|
8995
|
+
deviceId: number().int(),
|
|
8996
|
+
trackId: string$2().min(1),
|
|
8997
|
+
otherTrackId: string$2().min(1)
|
|
8998
|
+
});
|
|
8999
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9000
|
+
var SetTrackPurityInputSchema = object({
|
|
9001
|
+
deviceId: number().int(),
|
|
9002
|
+
trackId: string$2().min(1),
|
|
9003
|
+
purity: _enum([
|
|
9004
|
+
"pure",
|
|
9005
|
+
"mixed",
|
|
9006
|
+
"not-a-subject"
|
|
9007
|
+
]),
|
|
9008
|
+
switchAtMs: number().int().optional()
|
|
9009
|
+
});
|
|
9010
|
+
/** `null` when `pure` cleared the row. */
|
|
9011
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9012
|
+
var ListTrackRelationsInputSchema = object({
|
|
9013
|
+
deviceId: number().int(),
|
|
9014
|
+
trackId: string$2().optional(),
|
|
9015
|
+
since: number().int().optional(),
|
|
9016
|
+
until: number().int().optional(),
|
|
9017
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9018
|
+
});
|
|
9019
|
+
var ListTrackRelationsResultSchema = object({
|
|
9020
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9021
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9022
|
+
truncated: boolean()
|
|
9023
|
+
});
|
|
9024
|
+
_enum([
|
|
9025
|
+
"unknown-track",
|
|
9026
|
+
"cross-device",
|
|
9027
|
+
"self-relation",
|
|
9028
|
+
"contradiction",
|
|
9029
|
+
"switch-outside-track",
|
|
9030
|
+
"switch-needs-mixed"
|
|
9031
|
+
]);
|
|
8904
9032
|
/**
|
|
8905
9033
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8906
9034
|
* recordings and events management surfaces.
|
|
@@ -11454,6 +11582,68 @@ method(object({
|
|
|
11454
11582
|
password: string$2()
|
|
11455
11583
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string$2() }), string$2()), method(record(string$2(), string$2()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string$2() }), AuthResultSchema.nullable());
|
|
11456
11584
|
/**
|
|
11585
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11586
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11587
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11588
|
+
* generous because a timeout fails the whole backup run.
|
|
11589
|
+
*/
|
|
11590
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11591
|
+
/**
|
|
11592
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11593
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11594
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11595
|
+
* owner's host.
|
|
11596
|
+
*/
|
|
11597
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string$2() })) });
|
|
11598
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11599
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11600
|
+
name: string$2(),
|
|
11601
|
+
rows: number().int().nonnegative()
|
|
11602
|
+
});
|
|
11603
|
+
/**
|
|
11604
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11605
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11606
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11607
|
+
* archiving something it cannot place.
|
|
11608
|
+
*/
|
|
11609
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11610
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11611
|
+
livePath: string$2(),
|
|
11612
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11613
|
+
snapshotPath: string$2(),
|
|
11614
|
+
sizeBytes: number().int().nonnegative(),
|
|
11615
|
+
pageCount: number().int().nonnegative(),
|
|
11616
|
+
pageSize: number().int().positive(),
|
|
11617
|
+
/**
|
|
11618
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11619
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11620
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11621
|
+
*/
|
|
11622
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11623
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11624
|
+
copyMs: number().nonnegative(),
|
|
11625
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11626
|
+
verifyMs: number().nonnegative(),
|
|
11627
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11628
|
+
takenAt: number()
|
|
11629
|
+
});
|
|
11630
|
+
/**
|
|
11631
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11632
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11633
|
+
* data dir), because an archive outlives the host that made it.
|
|
11634
|
+
*/
|
|
11635
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11636
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11637
|
+
livePath: string$2(),
|
|
11638
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11639
|
+
snapshotPath: string$2()
|
|
11640
|
+
});
|
|
11641
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11642
|
+
kind: "mutation",
|
|
11643
|
+
auth: "admin",
|
|
11644
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11645
|
+
});
|
|
11646
|
+
/**
|
|
11457
11647
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11458
11648
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11459
11649
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11564,7 +11754,12 @@ var ArchiveManifestSchema = object({
|
|
|
11564
11754
|
locations: array(string$2()),
|
|
11565
11755
|
entries: array(ArchiveEntrySchema),
|
|
11566
11756
|
totalBytes: number(),
|
|
11567
|
-
totalFiles: number()
|
|
11757
|
+
totalFiles: number(),
|
|
11758
|
+
/**
|
|
11759
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11760
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11761
|
+
*/
|
|
11762
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11568
11763
|
});
|
|
11569
11764
|
var LocationStatSchema = object({
|
|
11570
11765
|
name: string$2(),
|
|
@@ -13139,6 +13334,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13139
13334
|
reason: string$2().optional(),
|
|
13140
13335
|
fields: array(CompositionFieldStateSchema)
|
|
13141
13336
|
});
|
|
13337
|
+
var ComposerBlockSchema = object({
|
|
13338
|
+
id: string$2().min(1),
|
|
13339
|
+
name: string$2().min(1).max(120),
|
|
13340
|
+
enabled: boolean(),
|
|
13341
|
+
updatedAt: number(),
|
|
13342
|
+
composition: CompositionSchema
|
|
13343
|
+
});
|
|
13344
|
+
/**
|
|
13345
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13346
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13347
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13348
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13349
|
+
*/
|
|
13350
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13351
|
+
id: string$2().min(1),
|
|
13352
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13353
|
+
name: string$2().nullable(),
|
|
13354
|
+
/** The parse error, in the operator's words. */
|
|
13355
|
+
error: string$2()
|
|
13356
|
+
});
|
|
13357
|
+
method(object({
|
|
13358
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13359
|
+
integrationId: string$2().nullable(),
|
|
13360
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13361
|
+
storeLoaded: boolean(),
|
|
13362
|
+
blocks: array(ComposerBlockSchema),
|
|
13363
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13364
|
+
restartBlockIds: array(string$2()),
|
|
13365
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13366
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13367
|
+
}), object({
|
|
13368
|
+
blocks: array(object({
|
|
13369
|
+
blockId: string$2(),
|
|
13370
|
+
status: CompositionRunStatusSchema,
|
|
13371
|
+
reason: string$2().optional()
|
|
13372
|
+
})),
|
|
13373
|
+
/**
|
|
13374
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13375
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13376
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13377
|
+
*/
|
|
13378
|
+
acted: boolean()
|
|
13379
|
+
}), {
|
|
13380
|
+
kind: "mutation",
|
|
13381
|
+
auth: "admin"
|
|
13382
|
+
}), method(object({ blockIds: array(string$2()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13383
|
+
var NUMBER = {
|
|
13384
|
+
kind: "fixed",
|
|
13385
|
+
result: ["number"]
|
|
13386
|
+
};
|
|
13387
|
+
var BOOLEAN = {
|
|
13388
|
+
kind: "fixed",
|
|
13389
|
+
result: ["boolean"]
|
|
13390
|
+
};
|
|
13391
|
+
Object.freeze({
|
|
13392
|
+
min: NUMBER,
|
|
13393
|
+
max: NUMBER,
|
|
13394
|
+
abs: NUMBER,
|
|
13395
|
+
floor: NUMBER,
|
|
13396
|
+
ceil: NUMBER,
|
|
13397
|
+
sqrt: NUMBER,
|
|
13398
|
+
round: NUMBER,
|
|
13399
|
+
pow: NUMBER,
|
|
13400
|
+
clamp: NUMBER,
|
|
13401
|
+
avg: NUMBER,
|
|
13402
|
+
sum: NUMBER,
|
|
13403
|
+
age: NUMBER,
|
|
13404
|
+
convert: NUMBER,
|
|
13405
|
+
coalesce: { kind: "coalesce" },
|
|
13406
|
+
any: BOOLEAN,
|
|
13407
|
+
all: BOOLEAN,
|
|
13408
|
+
within: BOOLEAN,
|
|
13409
|
+
latest: {
|
|
13410
|
+
kind: "fixed",
|
|
13411
|
+
result: ["number", "null"]
|
|
13412
|
+
},
|
|
13413
|
+
number: {
|
|
13414
|
+
kind: "fixed",
|
|
13415
|
+
result: ["number", "null"]
|
|
13416
|
+
},
|
|
13417
|
+
rose: {
|
|
13418
|
+
kind: "fixed",
|
|
13419
|
+
result: ["number", "null"]
|
|
13420
|
+
},
|
|
13421
|
+
count: NUMBER
|
|
13422
|
+
});
|
|
13423
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13424
|
+
/**
|
|
13425
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13426
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13427
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13428
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13429
|
+
* offer a feature the save would refuse for the same reason.
|
|
13430
|
+
*/
|
|
13431
|
+
var ComposableFieldSchema = object({
|
|
13432
|
+
path: string$2(),
|
|
13433
|
+
kind: CompositionFieldKindSchema,
|
|
13434
|
+
nullable: boolean(),
|
|
13435
|
+
required: boolean(),
|
|
13436
|
+
enumValues: array(string$2()).optional()
|
|
13437
|
+
});
|
|
13438
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13439
|
+
cap: string$2(),
|
|
13440
|
+
fields: array(ComposableFieldSchema),
|
|
13441
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13442
|
+
itemArray: object({
|
|
13443
|
+
path: string$2(),
|
|
13444
|
+
keyField: string$2()
|
|
13445
|
+
}).optional()
|
|
13446
|
+
})) });
|
|
13142
13447
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13143
13448
|
* agent is the reason placement is not fixed to the hub. */
|
|
13144
13449
|
var CoreBlockPlacementSchema = union([literal("hub"), string$2().min(1)]);
|
|
@@ -13303,7 +13608,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13303
13608
|
}), method(object({ blockId: string$2() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13304
13609
|
addonId: string$2().min(1),
|
|
13305
13610
|
stableId: string$2().min(1)
|
|
13306
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13611
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13307
13612
|
composition: CompositionSchema,
|
|
13308
13613
|
blockId: string$2().optional()
|
|
13309
13614
|
}), CompositionValidationSchema, {
|
|
@@ -13311,52 +13616,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13311
13616
|
auth: "admin",
|
|
13312
13617
|
access: "view"
|
|
13313
13618
|
});
|
|
13314
|
-
var ComposerBlockSchema = object({
|
|
13315
|
-
id: string$2().min(1),
|
|
13316
|
-
name: string$2().min(1).max(120),
|
|
13317
|
-
enabled: boolean(),
|
|
13318
|
-
updatedAt: number(),
|
|
13319
|
-
composition: CompositionSchema
|
|
13320
|
-
});
|
|
13321
|
-
/**
|
|
13322
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13323
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13324
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13325
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13326
|
-
*/
|
|
13327
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13328
|
-
id: string$2().min(1),
|
|
13329
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13330
|
-
name: string$2().nullable(),
|
|
13331
|
-
/** The parse error, in the operator's words. */
|
|
13332
|
-
error: string$2()
|
|
13333
|
-
});
|
|
13334
|
-
method(object({
|
|
13335
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13336
|
-
integrationId: string$2().nullable(),
|
|
13337
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13338
|
-
storeLoaded: boolean(),
|
|
13339
|
-
blocks: array(ComposerBlockSchema),
|
|
13340
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13341
|
-
restartBlockIds: array(string$2()),
|
|
13342
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13343
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13344
|
-
}), object({
|
|
13345
|
-
blocks: array(object({
|
|
13346
|
-
blockId: string$2(),
|
|
13347
|
-
status: CompositionRunStatusSchema,
|
|
13348
|
-
reason: string$2().optional()
|
|
13349
|
-
})),
|
|
13350
|
-
/**
|
|
13351
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13352
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13353
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13354
|
-
*/
|
|
13355
|
-
acted: boolean()
|
|
13356
|
-
}), {
|
|
13357
|
-
kind: "mutation",
|
|
13358
|
-
auth: "admin"
|
|
13359
|
-
}), method(object({ blockIds: array(string$2()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13360
13619
|
/**
|
|
13361
13620
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13362
13621
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15411,6 +15670,219 @@ method(object({
|
|
|
15411
15670
|
caps: array(string$2()).readonly().optional()
|
|
15412
15671
|
}), record(string$2(), record(string$2(), unknown().nullable())));
|
|
15413
15672
|
/**
|
|
15673
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
15674
|
+
* name (same pattern as `snapshot`):
|
|
15675
|
+
*
|
|
15676
|
+
* - **Native** providers: registered per-device by device-driver
|
|
15677
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
15678
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
15679
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
15680
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
15681
|
+
* ring; status tracks the last press and a pressCount since start
|
|
15682
|
+
* (diagnostic).
|
|
15683
|
+
*
|
|
15684
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
15685
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
15686
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
15687
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
15688
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
15689
|
+
* device + trigger in the per-device settings.
|
|
15690
|
+
*
|
|
15691
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
15692
|
+
* — subscribers listening at the camera level receive ring events
|
|
15693
|
+
* with `via[]` populated. No code on the parent needed.
|
|
15694
|
+
*/
|
|
15695
|
+
var DoorbellStatusSchema = object({
|
|
15696
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15697
|
+
lastPressedAt: number().nullable(),
|
|
15698
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15699
|
+
pressCountSinceStart: number()
|
|
15700
|
+
});
|
|
15701
|
+
var DoorbellPressEventSchema = object({
|
|
15702
|
+
deviceId: number(),
|
|
15703
|
+
timestamp: number()
|
|
15704
|
+
});
|
|
15705
|
+
/**
|
|
15706
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15707
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15708
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15709
|
+
*/
|
|
15710
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15711
|
+
/**
|
|
15712
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
15713
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
15714
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
15715
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
15716
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
15717
|
+
* reports it, it never writes it.
|
|
15718
|
+
*/
|
|
15719
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
15720
|
+
id: "doorbell-source",
|
|
15721
|
+
label: "Doorbell trigger devices",
|
|
15722
|
+
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.",
|
|
15723
|
+
shape: "association",
|
|
15724
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
15725
|
+
sourceCaps: SOURCE_CAPS,
|
|
15726
|
+
cardinality: "many",
|
|
15727
|
+
value: DoorbellSourceSlotValueSchema
|
|
15728
|
+
};
|
|
15729
|
+
var doorbellCapability = {
|
|
15730
|
+
name: "doorbell",
|
|
15731
|
+
scope: "device",
|
|
15732
|
+
deviceNative: true,
|
|
15733
|
+
mode: "singleton",
|
|
15734
|
+
kind: "wrapper",
|
|
15735
|
+
defaultActive: false,
|
|
15736
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
15737
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
15738
|
+
methods: {},
|
|
15739
|
+
events: {
|
|
15740
|
+
/**
|
|
15741
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
15742
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
15743
|
+
* release/duration — it's a pulse.
|
|
15744
|
+
*/
|
|
15745
|
+
onPressed: {
|
|
15746
|
+
data: DoorbellPressEventSchema,
|
|
15747
|
+
fromState: {
|
|
15748
|
+
field: "lastPressedAt",
|
|
15749
|
+
on: "advance"
|
|
15750
|
+
}
|
|
15751
|
+
} },
|
|
15752
|
+
status: {
|
|
15753
|
+
schema: DoorbellStatusSchema,
|
|
15754
|
+
kind: "push"
|
|
15755
|
+
},
|
|
15756
|
+
/**
|
|
15757
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
15758
|
+
* Mirrored by the kernel and readable via
|
|
15759
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
15760
|
+
* without subscribing.
|
|
15761
|
+
*/
|
|
15762
|
+
runtimeState: DoorbellStatusSchema,
|
|
15763
|
+
/**
|
|
15764
|
+
* 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.
|
|
15765
|
+
*
|
|
15766
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15767
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15768
|
+
*/
|
|
15769
|
+
durability: "restored"
|
|
15770
|
+
};
|
|
15771
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15772
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
15773
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15774
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15775
|
+
DeviceType.Camera;
|
|
15776
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15777
|
+
state: literal("unreachable"),
|
|
15778
|
+
reason: string$2()
|
|
15779
|
+
})]);
|
|
15780
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15781
|
+
var ExtensionSourceSchema = object({
|
|
15782
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15783
|
+
source: string$2(),
|
|
15784
|
+
label: string$2(),
|
|
15785
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15786
|
+
addonId: string$2().optional(),
|
|
15787
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15788
|
+
});
|
|
15789
|
+
/**
|
|
15790
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15791
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15792
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15793
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15794
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15795
|
+
*/
|
|
15796
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15797
|
+
"ok",
|
|
15798
|
+
"missing",
|
|
15799
|
+
"foreign",
|
|
15800
|
+
"unavailable"
|
|
15801
|
+
]);
|
|
15802
|
+
var ExtensionSlotSourceSchema = object({
|
|
15803
|
+
deviceId: number().int(),
|
|
15804
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15805
|
+
name: string$2().nullable(),
|
|
15806
|
+
health: ExtensionSourceHealthSchema,
|
|
15807
|
+
detail: string$2().optional()
|
|
15808
|
+
});
|
|
15809
|
+
/**
|
|
15810
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15811
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
15812
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
15813
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
15814
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
15815
|
+
*/
|
|
15816
|
+
var ExtensionSlotActivationSchema = object({
|
|
15817
|
+
state: _enum([
|
|
15818
|
+
"active",
|
|
15819
|
+
"inactive",
|
|
15820
|
+
"unknown"
|
|
15821
|
+
]),
|
|
15822
|
+
authority: string$2(),
|
|
15823
|
+
detail: string$2().optional()
|
|
15824
|
+
});
|
|
15825
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15826
|
+
state: literal("ok"),
|
|
15827
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15828
|
+
slotRef: string$2(),
|
|
15829
|
+
slot: ExtensionSlotIdSchema,
|
|
15830
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
15831
|
+
authority: string$2(),
|
|
15832
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15833
|
+
value: ExtensionSlotValueSchema,
|
|
15834
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15835
|
+
/**
|
|
15836
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15837
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15838
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15839
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15840
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15841
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15842
|
+
* older than D655.
|
|
15843
|
+
*/
|
|
15844
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15845
|
+
}), object({
|
|
15846
|
+
state: literal("unreachable"),
|
|
15847
|
+
addonId: string$2(),
|
|
15848
|
+
reason: string$2()
|
|
15849
|
+
})]);
|
|
15850
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15851
|
+
deviceId: number().int(),
|
|
15852
|
+
name: string$2(),
|
|
15853
|
+
type: string$2(),
|
|
15854
|
+
location: string$2().nullable(),
|
|
15855
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15856
|
+
parentName: string$2().nullable(),
|
|
15857
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15858
|
+
suggested: boolean(),
|
|
15859
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15860
|
+
reason: string$2().nullable()
|
|
15861
|
+
})) });
|
|
15862
|
+
/**
|
|
15863
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15864
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15865
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15866
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15867
|
+
*/
|
|
15868
|
+
var ExtensionSetResultSchema = object({
|
|
15869
|
+
applied: literal(true),
|
|
15870
|
+
reload: _enum([
|
|
15871
|
+
"none",
|
|
15872
|
+
"host",
|
|
15873
|
+
"parent"
|
|
15874
|
+
])
|
|
15875
|
+
});
|
|
15876
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15877
|
+
deviceId: number().int(),
|
|
15878
|
+
slotRef: string$2().min(1)
|
|
15879
|
+
});
|
|
15880
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15881
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15882
|
+
kind: "mutation",
|
|
15883
|
+
auth: "admin"
|
|
15884
|
+
});
|
|
15885
|
+
/**
|
|
15414
15886
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15415
15887
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15416
15888
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -18420,17 +18892,25 @@ var NcScheduleSchema = object({
|
|
|
18420
18892
|
*/
|
|
18421
18893
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18422
18894
|
/**
|
|
18895
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
18896
|
+
* every section; `section` = one notification per section with something to
|
|
18897
|
+
* say (an unavailable section included), each titled by its section.
|
|
18898
|
+
*/
|
|
18899
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
18900
|
+
/**
|
|
18423
18901
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18424
18902
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18425
18903
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18426
|
-
* available, ...), after its own filters
|
|
18904
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
18905
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18427
18906
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18428
18907
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18429
18908
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18430
18909
|
*/
|
|
18431
18910
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18432
18911
|
mode: literal("summary"),
|
|
18433
|
-
schedule: NcScheduleSchema
|
|
18912
|
+
schedule: NcScheduleSchema,
|
|
18913
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18434
18914
|
})]);
|
|
18435
18915
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18436
18916
|
var NcPlateMatcherSchema = object({
|
|
@@ -18570,8 +19050,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18570
19050
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18571
19051
|
var NcZoneConditionSchema = object({
|
|
18572
19052
|
ids: array(string$2().min(1)).min(1),
|
|
18573
|
-
/**
|
|
18574
|
-
|
|
19053
|
+
/**
|
|
19054
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19055
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19056
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19057
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19058
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19059
|
+
*/
|
|
19060
|
+
match: _enum(["any", "all"]).optional()
|
|
18575
19061
|
});
|
|
18576
19062
|
/**
|
|
18577
19063
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19075,10 +19561,12 @@ var NcMediaPolicySchema = object({
|
|
|
19075
19561
|
/**
|
|
19076
19562
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19077
19563
|
* notification suppresses.
|
|
19078
|
-
* - `
|
|
19079
|
-
*
|
|
19080
|
-
*
|
|
19081
|
-
*
|
|
19564
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19565
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19566
|
+
* still waits.
|
|
19567
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19568
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19569
|
+
* longer what an unset rule means.
|
|
19082
19570
|
*
|
|
19083
19571
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19084
19572
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19093,8 +19581,11 @@ var NcThrottleSchema = object({
|
|
|
19093
19581
|
/**
|
|
19094
19582
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19095
19583
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19096
|
-
* rule authored before this field simply carries none
|
|
19097
|
-
*
|
|
19584
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19585
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19586
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19587
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19588
|
+
* engine, and D36's dated note.
|
|
19098
19589
|
*/
|
|
19099
19590
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19100
19591
|
});
|
|
@@ -19418,11 +19909,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19418
19909
|
reason: string$2().optional()
|
|
19419
19910
|
});
|
|
19420
19911
|
/**
|
|
19912
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
19913
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19914
|
+
*/
|
|
19915
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
19916
|
+
section: string$2().optional(),
|
|
19917
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19918
|
+
title: string$2(),
|
|
19919
|
+
text: string$2(),
|
|
19920
|
+
count: number().int().nonnegative()
|
|
19921
|
+
});
|
|
19922
|
+
/**
|
|
19421
19923
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19422
19924
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19423
19925
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19424
19926
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19425
|
-
* (backups & exports).
|
|
19927
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
19928
|
+
* optional, so an older hub's answer still parses.
|
|
19426
19929
|
*/
|
|
19427
19930
|
var NcStateSummaryPreviewSchema = object({
|
|
19428
19931
|
empty: boolean(),
|
|
@@ -19430,7 +19933,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19430
19933
|
text: string$2(),
|
|
19431
19934
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19432
19935
|
dropped: record(string$2(), number().int().nonnegative()),
|
|
19433
|
-
excludedGroups: array(string$2())
|
|
19936
|
+
excludedGroups: array(string$2()),
|
|
19937
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
19938
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19434
19939
|
});
|
|
19435
19940
|
var NcTestResultSchema = object({
|
|
19436
19941
|
recordId: string$2(),
|
|
@@ -20446,7 +20951,7 @@ function cameraSensorRefKey(ref) {
|
|
|
20446
20951
|
}
|
|
20447
20952
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
20448
20953
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
20449
|
-
object({
|
|
20954
|
+
var CameraSensorsConfigSchema = object({
|
|
20450
20955
|
mode: CameraSensorsModeSchema,
|
|
20451
20956
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
20452
20957
|
}).superRefine((value, ctx) => {
|
|
@@ -22351,7 +22856,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22351
22856
|
trackIds: array(string$2()).min(1)
|
|
22352
22857
|
}), object({
|
|
22353
22858
|
deleted: number().int(),
|
|
22354
|
-
failed: array(string$2()).readonly()
|
|
22859
|
+
failed: array(string$2()).readonly(),
|
|
22860
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22355
22861
|
}), {
|
|
22356
22862
|
kind: "mutation",
|
|
22357
22863
|
auth: "admin"
|
|
@@ -22360,7 +22866,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22360
22866
|
deviceId: number(),
|
|
22361
22867
|
trackId: string$2(),
|
|
22362
22868
|
flags: TrackFlagsPatchSchema
|
|
22363
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22869
|
+
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(SetTrackRelationInputSchema, TrackRelationSchema, { kind: "mutation" }), method(ClearTrackRelationInputSchema, ClearTrackRelationResultSchema, { kind: "mutation" }), method(SetTrackPurityInputSchema, SetTrackPurityResultSchema, { kind: "mutation" }), method(ListTrackRelationsInputSchema, ListTrackRelationsResultSchema, { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22364
22870
|
kind: "query",
|
|
22365
22871
|
auth: "admin"
|
|
22366
22872
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -24558,7 +25064,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24558
25064
|
reachable: boolean(),
|
|
24559
25065
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24560
25066
|
});
|
|
24561
|
-
|
|
25067
|
+
/**
|
|
25068
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25069
|
+
*
|
|
25070
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25071
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25072
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25073
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25074
|
+
* settings store so they survive hub restarts.
|
|
25075
|
+
*
|
|
25076
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25077
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25078
|
+
*/
|
|
25079
|
+
/**
|
|
25080
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25081
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25082
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25083
|
+
*/
|
|
25084
|
+
var SetCameraSensorsInputSchema = object({
|
|
25085
|
+
deviceId: number().int().nonnegative(),
|
|
25086
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25087
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25088
|
+
});
|
|
25089
|
+
/**
|
|
25090
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25091
|
+
*
|
|
25092
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25093
|
+
* node and no config to attach a burst with.
|
|
25094
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25095
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25096
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25097
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25098
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25099
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25100
|
+
* real session re-arms the budget.
|
|
25101
|
+
*/
|
|
25102
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25103
|
+
"unknown-camera",
|
|
25104
|
+
"out-of-range",
|
|
25105
|
+
"no-burst-producer",
|
|
25106
|
+
"already-looked"
|
|
25107
|
+
]);
|
|
25108
|
+
method(object({
|
|
25109
|
+
deviceId: number().int().nonnegative(),
|
|
25110
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25111
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25112
|
+
afterMs: number().finite(),
|
|
25113
|
+
/** Why, for the log. */
|
|
25114
|
+
reason: string$2()
|
|
25115
|
+
}), object({
|
|
25116
|
+
scheduled: boolean(),
|
|
25117
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25118
|
+
dueInMs: number().optional(),
|
|
25119
|
+
/** When not `scheduled`: why. */
|
|
25120
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25121
|
+
}), {
|
|
25122
|
+
kind: "mutation",
|
|
25123
|
+
auth: "admin"
|
|
25124
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24562
25125
|
kind: "mutation",
|
|
24563
25126
|
auth: "admin"
|
|
24564
25127
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24712,7 +25275,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24712
25275
|
}), CameraSwitchGroupSchema, {
|
|
24713
25276
|
kind: "mutation",
|
|
24714
25277
|
auth: "admin"
|
|
24715
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25278
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25279
|
+
kind: "mutation",
|
|
25280
|
+
auth: "admin"
|
|
25281
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24716
25282
|
kind: "mutation",
|
|
24717
25283
|
auth: "admin"
|
|
24718
25284
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -26918,219 +27484,6 @@ DeviceType.Camera, method(object({
|
|
|
26918
27484
|
auth: "protected"
|
|
26919
27485
|
});
|
|
26920
27486
|
/**
|
|
26921
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
26922
|
-
* name (same pattern as `snapshot`):
|
|
26923
|
-
*
|
|
26924
|
-
* - **Native** providers: registered per-device by device-driver
|
|
26925
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
26926
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
26927
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
26928
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
26929
|
-
* ring; status tracks the last press and a pressCount since start
|
|
26930
|
-
* (diagnostic).
|
|
26931
|
-
*
|
|
26932
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
26933
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
26934
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
26935
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
26936
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
26937
|
-
* device + trigger in the per-device settings.
|
|
26938
|
-
*
|
|
26939
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
26940
|
-
* — subscribers listening at the camera level receive ring events
|
|
26941
|
-
* with `via[]` populated. No code on the parent needed.
|
|
26942
|
-
*/
|
|
26943
|
-
var DoorbellStatusSchema = object({
|
|
26944
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
26945
|
-
lastPressedAt: number().nullable(),
|
|
26946
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
26947
|
-
pressCountSinceStart: number()
|
|
26948
|
-
});
|
|
26949
|
-
var DoorbellPressEventSchema = object({
|
|
26950
|
-
deviceId: number(),
|
|
26951
|
-
timestamp: number()
|
|
26952
|
-
});
|
|
26953
|
-
/**
|
|
26954
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
26955
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
26956
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
26957
|
-
*/
|
|
26958
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
26959
|
-
/**
|
|
26960
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
26961
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
26962
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
26963
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
26964
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
26965
|
-
* reports it, it never writes it.
|
|
26966
|
-
*/
|
|
26967
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
26968
|
-
id: "doorbell-source",
|
|
26969
|
-
label: "Doorbell trigger devices",
|
|
26970
|
-
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.",
|
|
26971
|
-
shape: "association",
|
|
26972
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
26973
|
-
sourceCaps: SOURCE_CAPS,
|
|
26974
|
-
cardinality: "many",
|
|
26975
|
-
value: DoorbellSourceSlotValueSchema
|
|
26976
|
-
};
|
|
26977
|
-
var doorbellCapability = {
|
|
26978
|
-
name: "doorbell",
|
|
26979
|
-
scope: "device",
|
|
26980
|
-
deviceNative: true,
|
|
26981
|
-
mode: "singleton",
|
|
26982
|
-
kind: "wrapper",
|
|
26983
|
-
defaultActive: false,
|
|
26984
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
26985
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
26986
|
-
methods: {},
|
|
26987
|
-
events: {
|
|
26988
|
-
/**
|
|
26989
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
26990
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
26991
|
-
* release/duration — it's a pulse.
|
|
26992
|
-
*/
|
|
26993
|
-
onPressed: {
|
|
26994
|
-
data: DoorbellPressEventSchema,
|
|
26995
|
-
fromState: {
|
|
26996
|
-
field: "lastPressedAt",
|
|
26997
|
-
on: "advance"
|
|
26998
|
-
}
|
|
26999
|
-
} },
|
|
27000
|
-
status: {
|
|
27001
|
-
schema: DoorbellStatusSchema,
|
|
27002
|
-
kind: "push"
|
|
27003
|
-
},
|
|
27004
|
-
/**
|
|
27005
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27006
|
-
* Mirrored by the kernel and readable via
|
|
27007
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27008
|
-
* without subscribing.
|
|
27009
|
-
*/
|
|
27010
|
-
runtimeState: DoorbellStatusSchema,
|
|
27011
|
-
/**
|
|
27012
|
-
* 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.
|
|
27013
|
-
*
|
|
27014
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27015
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27016
|
-
*/
|
|
27017
|
-
durability: "restored"
|
|
27018
|
-
};
|
|
27019
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27020
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27021
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27022
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27023
|
-
DeviceType.Camera;
|
|
27024
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27025
|
-
state: literal("unreachable"),
|
|
27026
|
-
reason: string$2()
|
|
27027
|
-
})]);
|
|
27028
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27029
|
-
var ExtensionSourceSchema = object({
|
|
27030
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27031
|
-
source: string$2(),
|
|
27032
|
-
label: string$2(),
|
|
27033
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27034
|
-
addonId: string$2().optional(),
|
|
27035
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27036
|
-
});
|
|
27037
|
-
/**
|
|
27038
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27039
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27040
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27041
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27042
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27043
|
-
*/
|
|
27044
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27045
|
-
"ok",
|
|
27046
|
-
"missing",
|
|
27047
|
-
"foreign",
|
|
27048
|
-
"unavailable"
|
|
27049
|
-
]);
|
|
27050
|
-
var ExtensionSlotSourceSchema = object({
|
|
27051
|
-
deviceId: number().int(),
|
|
27052
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27053
|
-
name: string$2().nullable(),
|
|
27054
|
-
health: ExtensionSourceHealthSchema,
|
|
27055
|
-
detail: string$2().optional()
|
|
27056
|
-
});
|
|
27057
|
-
/**
|
|
27058
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27059
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27060
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27061
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27062
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27063
|
-
*/
|
|
27064
|
-
var ExtensionSlotActivationSchema = object({
|
|
27065
|
-
state: _enum([
|
|
27066
|
-
"active",
|
|
27067
|
-
"inactive",
|
|
27068
|
-
"unknown"
|
|
27069
|
-
]),
|
|
27070
|
-
authority: string$2(),
|
|
27071
|
-
detail: string$2().optional()
|
|
27072
|
-
});
|
|
27073
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27074
|
-
state: literal("ok"),
|
|
27075
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27076
|
-
slotRef: string$2(),
|
|
27077
|
-
slot: ExtensionSlotIdSchema,
|
|
27078
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27079
|
-
authority: string$2(),
|
|
27080
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27081
|
-
value: ExtensionSlotValueSchema,
|
|
27082
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27083
|
-
/**
|
|
27084
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27085
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27086
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27087
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27088
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27089
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27090
|
-
* older than D655.
|
|
27091
|
-
*/
|
|
27092
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27093
|
-
}), object({
|
|
27094
|
-
state: literal("unreachable"),
|
|
27095
|
-
addonId: string$2(),
|
|
27096
|
-
reason: string$2()
|
|
27097
|
-
})]);
|
|
27098
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27099
|
-
deviceId: number().int(),
|
|
27100
|
-
name: string$2(),
|
|
27101
|
-
type: string$2(),
|
|
27102
|
-
location: string$2().nullable(),
|
|
27103
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27104
|
-
parentName: string$2().nullable(),
|
|
27105
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27106
|
-
suggested: boolean(),
|
|
27107
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27108
|
-
reason: string$2().nullable()
|
|
27109
|
-
})) });
|
|
27110
|
-
/**
|
|
27111
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27112
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27113
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27114
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27115
|
-
*/
|
|
27116
|
-
var ExtensionSetResultSchema = object({
|
|
27117
|
-
applied: literal(true),
|
|
27118
|
-
reload: _enum([
|
|
27119
|
-
"none",
|
|
27120
|
-
"host",
|
|
27121
|
-
"parent"
|
|
27122
|
-
])
|
|
27123
|
-
});
|
|
27124
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27125
|
-
deviceId: number().int(),
|
|
27126
|
-
slotRef: string$2().min(1)
|
|
27127
|
-
});
|
|
27128
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27129
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27130
|
-
kind: "mutation",
|
|
27131
|
-
auth: "admin"
|
|
27132
|
-
});
|
|
27133
|
-
/**
|
|
27134
27487
|
* Optional client-side hints sent at session creation to help the provider
|
|
27135
27488
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27136
27489
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -38313,47 +38666,6 @@ var zoneRulesCapability = {
|
|
|
38313
38666
|
*/
|
|
38314
38667
|
durability: "restored"
|
|
38315
38668
|
};
|
|
38316
|
-
var NUMBER = {
|
|
38317
|
-
kind: "fixed",
|
|
38318
|
-
result: ["number"]
|
|
38319
|
-
};
|
|
38320
|
-
var BOOLEAN = {
|
|
38321
|
-
kind: "fixed",
|
|
38322
|
-
result: ["boolean"]
|
|
38323
|
-
};
|
|
38324
|
-
Object.freeze({
|
|
38325
|
-
min: NUMBER,
|
|
38326
|
-
max: NUMBER,
|
|
38327
|
-
abs: NUMBER,
|
|
38328
|
-
floor: NUMBER,
|
|
38329
|
-
ceil: NUMBER,
|
|
38330
|
-
sqrt: NUMBER,
|
|
38331
|
-
round: NUMBER,
|
|
38332
|
-
pow: NUMBER,
|
|
38333
|
-
clamp: NUMBER,
|
|
38334
|
-
avg: NUMBER,
|
|
38335
|
-
sum: NUMBER,
|
|
38336
|
-
age: NUMBER,
|
|
38337
|
-
convert: NUMBER,
|
|
38338
|
-
coalesce: { kind: "coalesce" },
|
|
38339
|
-
any: BOOLEAN,
|
|
38340
|
-
all: BOOLEAN,
|
|
38341
|
-
within: BOOLEAN,
|
|
38342
|
-
latest: {
|
|
38343
|
-
kind: "fixed",
|
|
38344
|
-
result: ["number", "null"]
|
|
38345
|
-
},
|
|
38346
|
-
number: {
|
|
38347
|
-
kind: "fixed",
|
|
38348
|
-
result: ["number", "null"]
|
|
38349
|
-
},
|
|
38350
|
-
rose: {
|
|
38351
|
-
kind: "fixed",
|
|
38352
|
-
result: ["number", "null"]
|
|
38353
|
-
},
|
|
38354
|
-
count: NUMBER
|
|
38355
|
-
});
|
|
38356
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38357
38669
|
/**
|
|
38358
38670
|
* Accessory device helpers — shared across drivers.
|
|
38359
38671
|
*
|
|
@@ -42299,6 +42611,12 @@ Object.freeze({
|
|
|
42299
42611
|
addonId: null,
|
|
42300
42612
|
access: "view"
|
|
42301
42613
|
},
|
|
42614
|
+
"coreBlocks.listComposableCaps": {
|
|
42615
|
+
capName: "core-blocks",
|
|
42616
|
+
capScope: "system",
|
|
42617
|
+
addonId: null,
|
|
42618
|
+
access: "view"
|
|
42619
|
+
},
|
|
42302
42620
|
"coreBlocks.listCompositions": {
|
|
42303
42621
|
capName: "core-blocks",
|
|
42304
42622
|
capScope: "system",
|
|
@@ -42377,6 +42695,18 @@ Object.freeze({
|
|
|
42377
42695
|
addonId: null,
|
|
42378
42696
|
access: "view"
|
|
42379
42697
|
},
|
|
42698
|
+
"databaseSnapshot.listDatabases": {
|
|
42699
|
+
capName: "database-snapshot",
|
|
42700
|
+
capScope: "system",
|
|
42701
|
+
addonId: null,
|
|
42702
|
+
access: "view"
|
|
42703
|
+
},
|
|
42704
|
+
"databaseSnapshot.writeSnapshot": {
|
|
42705
|
+
capName: "database-snapshot",
|
|
42706
|
+
capScope: "system",
|
|
42707
|
+
addonId: null,
|
|
42708
|
+
access: "create"
|
|
42709
|
+
},
|
|
42380
42710
|
"dataStoreProvider.aggregate": {
|
|
42381
42711
|
capName: "data-store-provider",
|
|
42382
42712
|
capScope: "system",
|
|
@@ -45113,6 +45443,12 @@ Object.freeze({
|
|
|
45113
45443
|
addonId: null,
|
|
45114
45444
|
access: "create"
|
|
45115
45445
|
},
|
|
45446
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45447
|
+
capName: "pipeline-analytics",
|
|
45448
|
+
capScope: "device",
|
|
45449
|
+
addonId: null,
|
|
45450
|
+
access: "delete"
|
|
45451
|
+
},
|
|
45116
45452
|
"pipelineAnalytics.clearTracks": {
|
|
45117
45453
|
capName: "pipeline-analytics",
|
|
45118
45454
|
capScope: "device",
|
|
@@ -45365,6 +45701,12 @@ Object.freeze({
|
|
|
45365
45701
|
addonId: null,
|
|
45366
45702
|
access: "view"
|
|
45367
45703
|
},
|
|
45704
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
45705
|
+
capName: "pipeline-analytics",
|
|
45706
|
+
capScope: "device",
|
|
45707
|
+
addonId: null,
|
|
45708
|
+
access: "view"
|
|
45709
|
+
},
|
|
45368
45710
|
"pipelineAnalytics.listTracks": {
|
|
45369
45711
|
capName: "pipeline-analytics",
|
|
45370
45712
|
capScope: "device",
|
|
@@ -45479,6 +45821,18 @@ Object.freeze({
|
|
|
45479
45821
|
addonId: null,
|
|
45480
45822
|
access: "create"
|
|
45481
45823
|
},
|
|
45824
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
45825
|
+
capName: "pipeline-analytics",
|
|
45826
|
+
capScope: "device",
|
|
45827
|
+
addonId: null,
|
|
45828
|
+
access: "create"
|
|
45829
|
+
},
|
|
45830
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
45831
|
+
capName: "pipeline-analytics",
|
|
45832
|
+
capScope: "device",
|
|
45833
|
+
addonId: null,
|
|
45834
|
+
access: "create"
|
|
45835
|
+
},
|
|
45482
45836
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
45483
45837
|
capName: "pipeline-analytics",
|
|
45484
45838
|
capScope: "device",
|
|
@@ -45917,6 +46271,12 @@ Object.freeze({
|
|
|
45917
46271
|
addonId: null,
|
|
45918
46272
|
access: "delete"
|
|
45919
46273
|
},
|
|
46274
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46275
|
+
capName: "pipeline-orchestrator",
|
|
46276
|
+
capScope: "system",
|
|
46277
|
+
addonId: null,
|
|
46278
|
+
access: "create"
|
|
46279
|
+
},
|
|
45920
46280
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
45921
46281
|
capName: "pipeline-orchestrator",
|
|
45922
46282
|
capScope: "system",
|
|
@@ -45983,6 +46343,12 @@ Object.freeze({
|
|
|
45983
46343
|
addonId: null,
|
|
45984
46344
|
access: "create"
|
|
45985
46345
|
},
|
|
46346
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46347
|
+
capName: "pipeline-orchestrator",
|
|
46348
|
+
capScope: "system",
|
|
46349
|
+
addonId: null,
|
|
46350
|
+
access: "create"
|
|
46351
|
+
},
|
|
45986
46352
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
45987
46353
|
capName: "pipeline-orchestrator",
|
|
45988
46354
|
capScope: "system",
|
|
@@ -49393,6 +49759,11 @@ Object.freeze({
|
|
|
49393
49759
|
form: "single",
|
|
49394
49760
|
optional: false
|
|
49395
49761
|
}],
|
|
49762
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
49763
|
+
name: "deviceId",
|
|
49764
|
+
form: "single",
|
|
49765
|
+
optional: false
|
|
49766
|
+
}],
|
|
49396
49767
|
"pipelineAnalytics.clearTracks": [{
|
|
49397
49768
|
name: "deviceId",
|
|
49398
49769
|
form: "single",
|
|
@@ -49543,6 +49914,11 @@ Object.freeze({
|
|
|
49543
49914
|
form: "single",
|
|
49544
49915
|
optional: false
|
|
49545
49916
|
}],
|
|
49917
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
49918
|
+
name: "deviceId",
|
|
49919
|
+
form: "single",
|
|
49920
|
+
optional: false
|
|
49921
|
+
}],
|
|
49546
49922
|
"pipelineAnalytics.listTracks": [{
|
|
49547
49923
|
name: "deviceId",
|
|
49548
49924
|
form: "single",
|
|
@@ -49613,6 +49989,16 @@ Object.freeze({
|
|
|
49613
49989
|
form: "single",
|
|
49614
49990
|
optional: false
|
|
49615
49991
|
}],
|
|
49992
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
49993
|
+
name: "deviceId",
|
|
49994
|
+
form: "single",
|
|
49995
|
+
optional: false
|
|
49996
|
+
}],
|
|
49997
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
49998
|
+
name: "deviceId",
|
|
49999
|
+
form: "single",
|
|
50000
|
+
optional: false
|
|
50001
|
+
}],
|
|
49616
50002
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
49617
50003
|
name: "deviceId",
|
|
49618
50004
|
form: "single",
|
|
@@ -49683,6 +50069,11 @@ Object.freeze({
|
|
|
49683
50069
|
form: "single",
|
|
49684
50070
|
optional: false
|
|
49685
50071
|
}],
|
|
50072
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50073
|
+
name: "deviceId",
|
|
50074
|
+
form: "single",
|
|
50075
|
+
optional: false
|
|
50076
|
+
}],
|
|
49686
50077
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
49687
50078
|
name: "deviceId",
|
|
49688
50079
|
form: "single",
|
|
@@ -49693,6 +50084,11 @@ Object.freeze({
|
|
|
49693
50084
|
form: "single",
|
|
49694
50085
|
optional: false
|
|
49695
50086
|
}],
|
|
50087
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50088
|
+
name: "deviceId",
|
|
50089
|
+
form: "single",
|
|
50090
|
+
optional: false
|
|
50091
|
+
}],
|
|
49696
50092
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
49697
50093
|
name: "deviceId",
|
|
49698
50094
|
form: "single",
|
|
@@ -50839,6 +51235,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
50839
51235
|
systemEventKinds: [...SUMMARISABLE],
|
|
50840
51236
|
systemEventDeliveries: ["summary"]
|
|
50841
51237
|
},
|
|
51238
|
+
{
|
|
51239
|
+
name: "summarySection",
|
|
51240
|
+
label: "Summary: this section",
|
|
51241
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51242
|
+
example: "Batterie scariche",
|
|
51243
|
+
group: "system",
|
|
51244
|
+
families: ["rule"],
|
|
51245
|
+
fields: [...RULE_TEXT],
|
|
51246
|
+
kinds: ["system"],
|
|
51247
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51248
|
+
systemEventDeliveries: ["summary"]
|
|
51249
|
+
},
|
|
50842
51250
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
50843
51251
|
name: v.name,
|
|
50844
51252
|
label: v.label,
|
|
@@ -50915,6 +51323,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
50915
51323
|
[...RULE_TEXT],
|
|
50916
51324
|
...STATE_SUMMARY_VARS
|
|
50917
51325
|
];
|
|
51326
|
+
new Set([
|
|
51327
|
+
"disarmed",
|
|
51328
|
+
"armed_home",
|
|
51329
|
+
"armed_away",
|
|
51330
|
+
"armed_night",
|
|
51331
|
+
"armed_vacation",
|
|
51332
|
+
"armed_custom_bypass",
|
|
51333
|
+
"arming",
|
|
51334
|
+
"disarming",
|
|
51335
|
+
"pending",
|
|
51336
|
+
"triggered",
|
|
51337
|
+
"open",
|
|
51338
|
+
"opening",
|
|
51339
|
+
"closing",
|
|
51340
|
+
"closed",
|
|
51341
|
+
"stopped",
|
|
51342
|
+
"locked",
|
|
51343
|
+
"unlocked",
|
|
51344
|
+
"locking",
|
|
51345
|
+
"unlocking",
|
|
51346
|
+
"jammed",
|
|
51347
|
+
"on",
|
|
51348
|
+
"off",
|
|
51349
|
+
"home",
|
|
51350
|
+
"not_home",
|
|
51351
|
+
"matched",
|
|
51352
|
+
"diverged",
|
|
51353
|
+
"unknown",
|
|
51354
|
+
"latched",
|
|
51355
|
+
"live"
|
|
51356
|
+
]);
|
|
50918
51357
|
/**
|
|
50919
51358
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
50920
51359
|
*
|