@camstack/addon-provider-homematic 1.2.121 → 1.2.122
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.mjs
CHANGED
|
@@ -5380,7 +5380,7 @@ var ZodIssueCode = {
|
|
|
5380
5380
|
var ZodFirstPartyTypeKind;
|
|
5381
5381
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5382
5382
|
//#endregion
|
|
5383
|
-
//#region ../types/dist/sleep-
|
|
5383
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5384
5384
|
/**
|
|
5385
5385
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5386
5386
|
* window to float samples (D455).
|
|
@@ -7423,7 +7423,59 @@ function errMsg(err) {
|
|
|
7423
7423
|
return String(err);
|
|
7424
7424
|
}
|
|
7425
7425
|
//#endregion
|
|
7426
|
-
//#region ../types/dist/composition-
|
|
7426
|
+
//#region ../types/dist/composition-Dq42XWp0.mjs
|
|
7427
|
+
/**
|
|
7428
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7429
|
+
*
|
|
7430
|
+
* ## Why a download, on every node, including the container
|
|
7431
|
+
*
|
|
7432
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7433
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7434
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7435
|
+
* framework bump, not an image rebuild.
|
|
7436
|
+
*
|
|
7437
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7438
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7439
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7440
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7441
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7442
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7443
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7444
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7445
|
+
*
|
|
7446
|
+
* ## Why jellyfin-ffmpeg
|
|
7447
|
+
*
|
|
7448
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7449
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7450
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7451
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7452
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7453
|
+
*
|
|
7454
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7455
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7456
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7457
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7458
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7459
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7460
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7461
|
+
*
|
|
7462
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7463
|
+
*
|
|
7464
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7465
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7466
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7467
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7468
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7469
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7470
|
+
* (D536).
|
|
7471
|
+
*/
|
|
7472
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7473
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7474
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7475
|
+
function portable(target) {
|
|
7476
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7477
|
+
}
|
|
7478
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7427
7479
|
/**
|
|
7428
7480
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7429
7481
|
* valutatore puro del suo FRONTE.
|
|
@@ -8897,6 +8949,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8897
8949
|
/** Max rows returned, newest-first. */
|
|
8898
8950
|
limit: number().int().min(1).max(1e3).optional()
|
|
8899
8951
|
});
|
|
8952
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8953
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8954
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8955
|
+
var TrackRelationSchema = object({
|
|
8956
|
+
id: string(),
|
|
8957
|
+
deviceId: number().int(),
|
|
8958
|
+
leftTrackId: string(),
|
|
8959
|
+
rightTrackId: string(),
|
|
8960
|
+
leftSide: TrackSideSchema.nullable(),
|
|
8961
|
+
rightSide: TrackSideSchema.nullable(),
|
|
8962
|
+
relation: TrackRelationKindSchema,
|
|
8963
|
+
presence: literal("continuous").nullable(),
|
|
8964
|
+
leftStartedAt: number().int().nullable(),
|
|
8965
|
+
rightStartedAt: number().int().nullable(),
|
|
8966
|
+
createdAt: number().int(),
|
|
8967
|
+
updatedAt: number().int(),
|
|
8968
|
+
author: string().nullable()
|
|
8969
|
+
});
|
|
8970
|
+
var TrackPuritySchema = object({
|
|
8971
|
+
id: string(),
|
|
8972
|
+
deviceId: number().int(),
|
|
8973
|
+
sourceTrackId: string(),
|
|
8974
|
+
purity: TrackPurityValueSchema,
|
|
8975
|
+
switchAtMs: number().int().nullable(),
|
|
8976
|
+
startedAt: number().int().nullable(),
|
|
8977
|
+
createdAt: number().int(),
|
|
8978
|
+
updatedAt: number().int(),
|
|
8979
|
+
author: string().nullable()
|
|
8980
|
+
});
|
|
8981
|
+
var SetTrackRelationInputSchema = object({
|
|
8982
|
+
deviceId: number().int(),
|
|
8983
|
+
trackId: string().min(1),
|
|
8984
|
+
otherTrackId: string().min(1),
|
|
8985
|
+
relation: TrackRelationKindSchema,
|
|
8986
|
+
presence: literal("continuous").optional(),
|
|
8987
|
+
trackSide: TrackSideSchema.optional(),
|
|
8988
|
+
otherSide: TrackSideSchema.optional()
|
|
8989
|
+
});
|
|
8990
|
+
var ClearTrackRelationInputSchema = object({
|
|
8991
|
+
deviceId: number().int(),
|
|
8992
|
+
trackId: string().min(1),
|
|
8993
|
+
otherTrackId: string().min(1)
|
|
8994
|
+
});
|
|
8995
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
8996
|
+
var SetTrackPurityInputSchema = object({
|
|
8997
|
+
deviceId: number().int(),
|
|
8998
|
+
trackId: string().min(1),
|
|
8999
|
+
purity: _enum([
|
|
9000
|
+
"pure",
|
|
9001
|
+
"mixed",
|
|
9002
|
+
"not-a-subject"
|
|
9003
|
+
]),
|
|
9004
|
+
switchAtMs: number().int().optional()
|
|
9005
|
+
});
|
|
9006
|
+
/** `null` when `pure` cleared the row. */
|
|
9007
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9008
|
+
var ListTrackRelationsInputSchema = object({
|
|
9009
|
+
deviceId: number().int(),
|
|
9010
|
+
trackId: string().optional(),
|
|
9011
|
+
since: number().int().optional(),
|
|
9012
|
+
until: number().int().optional(),
|
|
9013
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9014
|
+
});
|
|
9015
|
+
var ListTrackRelationsResultSchema = object({
|
|
9016
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9017
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9018
|
+
truncated: boolean()
|
|
9019
|
+
});
|
|
9020
|
+
_enum([
|
|
9021
|
+
"unknown-track",
|
|
9022
|
+
"cross-device",
|
|
9023
|
+
"self-relation",
|
|
9024
|
+
"contradiction",
|
|
9025
|
+
"switch-outside-track",
|
|
9026
|
+
"switch-needs-mixed"
|
|
9027
|
+
]);
|
|
8900
9028
|
/**
|
|
8901
9029
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8902
9030
|
* recordings and events management surfaces.
|
|
@@ -11450,6 +11578,68 @@ method(object({
|
|
|
11450
11578
|
password: string()
|
|
11451
11579
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11452
11580
|
/**
|
|
11581
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11582
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11583
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11584
|
+
* generous because a timeout fails the whole backup run.
|
|
11585
|
+
*/
|
|
11586
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11587
|
+
/**
|
|
11588
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11589
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11590
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11591
|
+
* owner's host.
|
|
11592
|
+
*/
|
|
11593
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11594
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11595
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11596
|
+
name: string(),
|
|
11597
|
+
rows: number().int().nonnegative()
|
|
11598
|
+
});
|
|
11599
|
+
/**
|
|
11600
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11601
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11602
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11603
|
+
* archiving something it cannot place.
|
|
11604
|
+
*/
|
|
11605
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11606
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11607
|
+
livePath: string(),
|
|
11608
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11609
|
+
snapshotPath: string(),
|
|
11610
|
+
sizeBytes: number().int().nonnegative(),
|
|
11611
|
+
pageCount: number().int().nonnegative(),
|
|
11612
|
+
pageSize: number().int().positive(),
|
|
11613
|
+
/**
|
|
11614
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11615
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11616
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11617
|
+
*/
|
|
11618
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11619
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11620
|
+
copyMs: number().nonnegative(),
|
|
11621
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11622
|
+
verifyMs: number().nonnegative(),
|
|
11623
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11624
|
+
takenAt: number()
|
|
11625
|
+
});
|
|
11626
|
+
/**
|
|
11627
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11628
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11629
|
+
* data dir), because an archive outlives the host that made it.
|
|
11630
|
+
*/
|
|
11631
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11632
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11633
|
+
livePath: string(),
|
|
11634
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11635
|
+
snapshotPath: string()
|
|
11636
|
+
});
|
|
11637
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11638
|
+
kind: "mutation",
|
|
11639
|
+
auth: "admin",
|
|
11640
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11641
|
+
});
|
|
11642
|
+
/**
|
|
11453
11643
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11454
11644
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11455
11645
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11560,7 +11750,12 @@ var ArchiveManifestSchema = object({
|
|
|
11560
11750
|
locations: array(string()),
|
|
11561
11751
|
entries: array(ArchiveEntrySchema),
|
|
11562
11752
|
totalBytes: number(),
|
|
11563
|
-
totalFiles: number()
|
|
11753
|
+
totalFiles: number(),
|
|
11754
|
+
/**
|
|
11755
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11756
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11757
|
+
*/
|
|
11758
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11564
11759
|
});
|
|
11565
11760
|
var LocationStatSchema = object({
|
|
11566
11761
|
name: string(),
|
|
@@ -13135,6 +13330,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13135
13330
|
reason: string().optional(),
|
|
13136
13331
|
fields: array(CompositionFieldStateSchema)
|
|
13137
13332
|
});
|
|
13333
|
+
var ComposerBlockSchema = object({
|
|
13334
|
+
id: string().min(1),
|
|
13335
|
+
name: string().min(1).max(120),
|
|
13336
|
+
enabled: boolean(),
|
|
13337
|
+
updatedAt: number(),
|
|
13338
|
+
composition: CompositionSchema
|
|
13339
|
+
});
|
|
13340
|
+
/**
|
|
13341
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13342
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13343
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13344
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13345
|
+
*/
|
|
13346
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13347
|
+
id: string().min(1),
|
|
13348
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13349
|
+
name: string().nullable(),
|
|
13350
|
+
/** The parse error, in the operator's words. */
|
|
13351
|
+
error: string()
|
|
13352
|
+
});
|
|
13353
|
+
method(object({
|
|
13354
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13355
|
+
integrationId: string().nullable(),
|
|
13356
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13357
|
+
storeLoaded: boolean(),
|
|
13358
|
+
blocks: array(ComposerBlockSchema),
|
|
13359
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13360
|
+
restartBlockIds: array(string()),
|
|
13361
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13362
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13363
|
+
}), object({
|
|
13364
|
+
blocks: array(object({
|
|
13365
|
+
blockId: string(),
|
|
13366
|
+
status: CompositionRunStatusSchema,
|
|
13367
|
+
reason: string().optional()
|
|
13368
|
+
})),
|
|
13369
|
+
/**
|
|
13370
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13371
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13372
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13373
|
+
*/
|
|
13374
|
+
acted: boolean()
|
|
13375
|
+
}), {
|
|
13376
|
+
kind: "mutation",
|
|
13377
|
+
auth: "admin"
|
|
13378
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13379
|
+
var NUMBER = {
|
|
13380
|
+
kind: "fixed",
|
|
13381
|
+
result: ["number"]
|
|
13382
|
+
};
|
|
13383
|
+
var BOOLEAN = {
|
|
13384
|
+
kind: "fixed",
|
|
13385
|
+
result: ["boolean"]
|
|
13386
|
+
};
|
|
13387
|
+
Object.freeze({
|
|
13388
|
+
min: NUMBER,
|
|
13389
|
+
max: NUMBER,
|
|
13390
|
+
abs: NUMBER,
|
|
13391
|
+
floor: NUMBER,
|
|
13392
|
+
ceil: NUMBER,
|
|
13393
|
+
sqrt: NUMBER,
|
|
13394
|
+
round: NUMBER,
|
|
13395
|
+
pow: NUMBER,
|
|
13396
|
+
clamp: NUMBER,
|
|
13397
|
+
avg: NUMBER,
|
|
13398
|
+
sum: NUMBER,
|
|
13399
|
+
age: NUMBER,
|
|
13400
|
+
convert: NUMBER,
|
|
13401
|
+
coalesce: { kind: "coalesce" },
|
|
13402
|
+
any: BOOLEAN,
|
|
13403
|
+
all: BOOLEAN,
|
|
13404
|
+
within: BOOLEAN,
|
|
13405
|
+
latest: {
|
|
13406
|
+
kind: "fixed",
|
|
13407
|
+
result: ["number", "null"]
|
|
13408
|
+
},
|
|
13409
|
+
number: {
|
|
13410
|
+
kind: "fixed",
|
|
13411
|
+
result: ["number", "null"]
|
|
13412
|
+
},
|
|
13413
|
+
rose: {
|
|
13414
|
+
kind: "fixed",
|
|
13415
|
+
result: ["number", "null"]
|
|
13416
|
+
},
|
|
13417
|
+
count: NUMBER
|
|
13418
|
+
});
|
|
13419
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13420
|
+
/**
|
|
13421
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13422
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13423
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13424
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13425
|
+
* offer a feature the save would refuse for the same reason.
|
|
13426
|
+
*/
|
|
13427
|
+
var ComposableFieldSchema = object({
|
|
13428
|
+
path: string(),
|
|
13429
|
+
kind: CompositionFieldKindSchema,
|
|
13430
|
+
nullable: boolean(),
|
|
13431
|
+
required: boolean(),
|
|
13432
|
+
enumValues: array(string()).optional()
|
|
13433
|
+
});
|
|
13434
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13435
|
+
cap: string(),
|
|
13436
|
+
fields: array(ComposableFieldSchema),
|
|
13437
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13438
|
+
itemArray: object({
|
|
13439
|
+
path: string(),
|
|
13440
|
+
keyField: string()
|
|
13441
|
+
}).optional()
|
|
13442
|
+
})) });
|
|
13138
13443
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13139
13444
|
* agent is the reason placement is not fixed to the hub. */
|
|
13140
13445
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13299,7 +13604,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13299
13604
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13300
13605
|
addonId: string().min(1),
|
|
13301
13606
|
stableId: string().min(1)
|
|
13302
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13607
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13303
13608
|
composition: CompositionSchema,
|
|
13304
13609
|
blockId: string().optional()
|
|
13305
13610
|
}), CompositionValidationSchema, {
|
|
@@ -13307,52 +13612,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13307
13612
|
auth: "admin",
|
|
13308
13613
|
access: "view"
|
|
13309
13614
|
});
|
|
13310
|
-
var ComposerBlockSchema = object({
|
|
13311
|
-
id: string().min(1),
|
|
13312
|
-
name: string().min(1).max(120),
|
|
13313
|
-
enabled: boolean(),
|
|
13314
|
-
updatedAt: number(),
|
|
13315
|
-
composition: CompositionSchema
|
|
13316
|
-
});
|
|
13317
|
-
/**
|
|
13318
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13319
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13320
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13321
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13322
|
-
*/
|
|
13323
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13324
|
-
id: string().min(1),
|
|
13325
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13326
|
-
name: string().nullable(),
|
|
13327
|
-
/** The parse error, in the operator's words. */
|
|
13328
|
-
error: string()
|
|
13329
|
-
});
|
|
13330
|
-
method(object({
|
|
13331
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13332
|
-
integrationId: string().nullable(),
|
|
13333
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13334
|
-
storeLoaded: boolean(),
|
|
13335
|
-
blocks: array(ComposerBlockSchema),
|
|
13336
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13337
|
-
restartBlockIds: array(string()),
|
|
13338
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13339
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13340
|
-
}), object({
|
|
13341
|
-
blocks: array(object({
|
|
13342
|
-
blockId: string(),
|
|
13343
|
-
status: CompositionRunStatusSchema,
|
|
13344
|
-
reason: string().optional()
|
|
13345
|
-
})),
|
|
13346
|
-
/**
|
|
13347
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13348
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13349
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13350
|
-
*/
|
|
13351
|
-
acted: boolean()
|
|
13352
|
-
}), {
|
|
13353
|
-
kind: "mutation",
|
|
13354
|
-
auth: "admin"
|
|
13355
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13356
13615
|
/**
|
|
13357
13616
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13358
13617
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15520,6 +15779,219 @@ method(object({
|
|
|
15520
15779
|
caps: array(string()).readonly().optional()
|
|
15521
15780
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15522
15781
|
/**
|
|
15782
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
15783
|
+
* name (same pattern as `snapshot`):
|
|
15784
|
+
*
|
|
15785
|
+
* - **Native** providers: registered per-device by device-driver
|
|
15786
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
15787
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
15788
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
15789
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
15790
|
+
* ring; status tracks the last press and a pressCount since start
|
|
15791
|
+
* (diagnostic).
|
|
15792
|
+
*
|
|
15793
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
15794
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
15795
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
15796
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
15797
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
15798
|
+
* device + trigger in the per-device settings.
|
|
15799
|
+
*
|
|
15800
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
15801
|
+
* — subscribers listening at the camera level receive ring events
|
|
15802
|
+
* with `via[]` populated. No code on the parent needed.
|
|
15803
|
+
*/
|
|
15804
|
+
var DoorbellStatusSchema = object({
|
|
15805
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15806
|
+
lastPressedAt: number().nullable(),
|
|
15807
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15808
|
+
pressCountSinceStart: number()
|
|
15809
|
+
});
|
|
15810
|
+
var DoorbellPressEventSchema = object({
|
|
15811
|
+
deviceId: number(),
|
|
15812
|
+
timestamp: number()
|
|
15813
|
+
});
|
|
15814
|
+
/**
|
|
15815
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15816
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15817
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15818
|
+
*/
|
|
15819
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15820
|
+
/**
|
|
15821
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
15822
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
15823
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
15824
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
15825
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
15826
|
+
* reports it, it never writes it.
|
|
15827
|
+
*/
|
|
15828
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
15829
|
+
id: "doorbell-source",
|
|
15830
|
+
label: "Doorbell trigger devices",
|
|
15831
|
+
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.",
|
|
15832
|
+
shape: "association",
|
|
15833
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
15834
|
+
sourceCaps: SOURCE_CAPS,
|
|
15835
|
+
cardinality: "many",
|
|
15836
|
+
value: DoorbellSourceSlotValueSchema
|
|
15837
|
+
};
|
|
15838
|
+
var doorbellCapability = {
|
|
15839
|
+
name: "doorbell",
|
|
15840
|
+
scope: "device",
|
|
15841
|
+
deviceNative: true,
|
|
15842
|
+
mode: "singleton",
|
|
15843
|
+
kind: "wrapper",
|
|
15844
|
+
defaultActive: false,
|
|
15845
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
15846
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
15847
|
+
methods: {},
|
|
15848
|
+
events: {
|
|
15849
|
+
/**
|
|
15850
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
15851
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
15852
|
+
* release/duration — it's a pulse.
|
|
15853
|
+
*/
|
|
15854
|
+
onPressed: {
|
|
15855
|
+
data: DoorbellPressEventSchema,
|
|
15856
|
+
fromState: {
|
|
15857
|
+
field: "lastPressedAt",
|
|
15858
|
+
on: "advance"
|
|
15859
|
+
}
|
|
15860
|
+
} },
|
|
15861
|
+
status: {
|
|
15862
|
+
schema: DoorbellStatusSchema,
|
|
15863
|
+
kind: "push"
|
|
15864
|
+
},
|
|
15865
|
+
/**
|
|
15866
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
15867
|
+
* Mirrored by the kernel and readable via
|
|
15868
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
15869
|
+
* without subscribing.
|
|
15870
|
+
*/
|
|
15871
|
+
runtimeState: DoorbellStatusSchema,
|
|
15872
|
+
/**
|
|
15873
|
+
* 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.
|
|
15874
|
+
*
|
|
15875
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15876
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15877
|
+
*/
|
|
15878
|
+
durability: "restored"
|
|
15879
|
+
};
|
|
15880
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15881
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
15882
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15883
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15884
|
+
DeviceType.Camera;
|
|
15885
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15886
|
+
state: literal("unreachable"),
|
|
15887
|
+
reason: string()
|
|
15888
|
+
})]);
|
|
15889
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15890
|
+
var ExtensionSourceSchema = object({
|
|
15891
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15892
|
+
source: string(),
|
|
15893
|
+
label: string(),
|
|
15894
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15895
|
+
addonId: string().optional(),
|
|
15896
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15897
|
+
});
|
|
15898
|
+
/**
|
|
15899
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15900
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15901
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15902
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15903
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15904
|
+
*/
|
|
15905
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15906
|
+
"ok",
|
|
15907
|
+
"missing",
|
|
15908
|
+
"foreign",
|
|
15909
|
+
"unavailable"
|
|
15910
|
+
]);
|
|
15911
|
+
var ExtensionSlotSourceSchema = object({
|
|
15912
|
+
deviceId: number().int(),
|
|
15913
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15914
|
+
name: string().nullable(),
|
|
15915
|
+
health: ExtensionSourceHealthSchema,
|
|
15916
|
+
detail: string().optional()
|
|
15917
|
+
});
|
|
15918
|
+
/**
|
|
15919
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15920
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
15921
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
15922
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
15923
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
15924
|
+
*/
|
|
15925
|
+
var ExtensionSlotActivationSchema = object({
|
|
15926
|
+
state: _enum([
|
|
15927
|
+
"active",
|
|
15928
|
+
"inactive",
|
|
15929
|
+
"unknown"
|
|
15930
|
+
]),
|
|
15931
|
+
authority: string(),
|
|
15932
|
+
detail: string().optional()
|
|
15933
|
+
});
|
|
15934
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15935
|
+
state: literal("ok"),
|
|
15936
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15937
|
+
slotRef: string(),
|
|
15938
|
+
slot: ExtensionSlotIdSchema,
|
|
15939
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
15940
|
+
authority: string(),
|
|
15941
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15942
|
+
value: ExtensionSlotValueSchema,
|
|
15943
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15944
|
+
/**
|
|
15945
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15946
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15947
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15948
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15949
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15950
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15951
|
+
* older than D655.
|
|
15952
|
+
*/
|
|
15953
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15954
|
+
}), object({
|
|
15955
|
+
state: literal("unreachable"),
|
|
15956
|
+
addonId: string(),
|
|
15957
|
+
reason: string()
|
|
15958
|
+
})]);
|
|
15959
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15960
|
+
deviceId: number().int(),
|
|
15961
|
+
name: string(),
|
|
15962
|
+
type: string(),
|
|
15963
|
+
location: string().nullable(),
|
|
15964
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15965
|
+
parentName: string().nullable(),
|
|
15966
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15967
|
+
suggested: boolean(),
|
|
15968
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15969
|
+
reason: string().nullable()
|
|
15970
|
+
})) });
|
|
15971
|
+
/**
|
|
15972
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15973
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15974
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15975
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15976
|
+
*/
|
|
15977
|
+
var ExtensionSetResultSchema = object({
|
|
15978
|
+
applied: literal(true),
|
|
15979
|
+
reload: _enum([
|
|
15980
|
+
"none",
|
|
15981
|
+
"host",
|
|
15982
|
+
"parent"
|
|
15983
|
+
])
|
|
15984
|
+
});
|
|
15985
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15986
|
+
deviceId: number().int(),
|
|
15987
|
+
slotRef: string().min(1)
|
|
15988
|
+
});
|
|
15989
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15990
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15991
|
+
kind: "mutation",
|
|
15992
|
+
auth: "admin"
|
|
15993
|
+
});
|
|
15994
|
+
/**
|
|
15523
15995
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15524
15996
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15525
15997
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -18529,17 +19001,25 @@ var NcScheduleSchema = object({
|
|
|
18529
19001
|
*/
|
|
18530
19002
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18531
19003
|
/**
|
|
19004
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19005
|
+
* every section; `section` = one notification per section with something to
|
|
19006
|
+
* say (an unavailable section included), each titled by its section.
|
|
19007
|
+
*/
|
|
19008
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19009
|
+
/**
|
|
18532
19010
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18533
19011
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18534
19012
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18535
|
-
* available, ...), after its own filters
|
|
19013
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19014
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18536
19015
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18537
19016
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18538
19017
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18539
19018
|
*/
|
|
18540
19019
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18541
19020
|
mode: literal("summary"),
|
|
18542
|
-
schedule: NcScheduleSchema
|
|
19021
|
+
schedule: NcScheduleSchema,
|
|
19022
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18543
19023
|
})]);
|
|
18544
19024
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18545
19025
|
var NcPlateMatcherSchema = object({
|
|
@@ -18679,8 +19159,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18679
19159
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18680
19160
|
var NcZoneConditionSchema = object({
|
|
18681
19161
|
ids: array(string().min(1)).min(1),
|
|
18682
|
-
/**
|
|
18683
|
-
|
|
19162
|
+
/**
|
|
19163
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19164
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19165
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19166
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19167
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19168
|
+
*/
|
|
19169
|
+
match: _enum(["any", "all"]).optional()
|
|
18684
19170
|
});
|
|
18685
19171
|
/**
|
|
18686
19172
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19184,10 +19670,12 @@ var NcMediaPolicySchema = object({
|
|
|
19184
19670
|
/**
|
|
19185
19671
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19186
19672
|
* notification suppresses.
|
|
19187
|
-
* - `
|
|
19188
|
-
*
|
|
19189
|
-
*
|
|
19190
|
-
*
|
|
19673
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19674
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19675
|
+
* still waits.
|
|
19676
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19677
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19678
|
+
* longer what an unset rule means.
|
|
19191
19679
|
*
|
|
19192
19680
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19193
19681
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19202,8 +19690,11 @@ var NcThrottleSchema = object({
|
|
|
19202
19690
|
/**
|
|
19203
19691
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19204
19692
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19205
|
-
* rule authored before this field simply carries none
|
|
19206
|
-
*
|
|
19693
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19694
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19695
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19696
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19697
|
+
* engine, and D36's dated note.
|
|
19207
19698
|
*/
|
|
19208
19699
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19209
19700
|
});
|
|
@@ -19527,11 +20018,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19527
20018
|
reason: string().optional()
|
|
19528
20019
|
});
|
|
19529
20020
|
/**
|
|
20021
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20022
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20023
|
+
*/
|
|
20024
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20025
|
+
section: string().optional(),
|
|
20026
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20027
|
+
title: string(),
|
|
20028
|
+
text: string(),
|
|
20029
|
+
count: number().int().nonnegative()
|
|
20030
|
+
});
|
|
20031
|
+
/**
|
|
19530
20032
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19531
20033
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19532
20034
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19533
20035
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19534
|
-
* (backups & exports).
|
|
20036
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20037
|
+
* optional, so an older hub's answer still parses.
|
|
19535
20038
|
*/
|
|
19536
20039
|
var NcStateSummaryPreviewSchema = object({
|
|
19537
20040
|
empty: boolean(),
|
|
@@ -19539,7 +20042,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19539
20042
|
text: string(),
|
|
19540
20043
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19541
20044
|
dropped: record(string(), number().int().nonnegative()),
|
|
19542
|
-
excludedGroups: array(string())
|
|
20045
|
+
excludedGroups: array(string()),
|
|
20046
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20047
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19543
20048
|
});
|
|
19544
20049
|
var NcTestResultSchema = object({
|
|
19545
20050
|
recordId: string(),
|
|
@@ -20555,7 +21060,7 @@ function cameraSensorRefKey(ref) {
|
|
|
20555
21060
|
}
|
|
20556
21061
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
20557
21062
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
20558
|
-
object({
|
|
21063
|
+
var CameraSensorsConfigSchema = object({
|
|
20559
21064
|
mode: CameraSensorsModeSchema,
|
|
20560
21065
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
20561
21066
|
}).superRefine((value, ctx) => {
|
|
@@ -22460,7 +22965,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22460
22965
|
trackIds: array(string()).min(1)
|
|
22461
22966
|
}), object({
|
|
22462
22967
|
deleted: number().int(),
|
|
22463
|
-
failed: array(string()).readonly()
|
|
22968
|
+
failed: array(string()).readonly(),
|
|
22969
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22464
22970
|
}), {
|
|
22465
22971
|
kind: "mutation",
|
|
22466
22972
|
auth: "admin"
|
|
@@ -22469,7 +22975,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22469
22975
|
deviceId: number(),
|
|
22470
22976
|
trackId: string(),
|
|
22471
22977
|
flags: TrackFlagsPatchSchema
|
|
22472
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22978
|
+
}), 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, {
|
|
22473
22979
|
kind: "query",
|
|
22474
22980
|
auth: "admin"
|
|
22475
22981
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -24667,7 +25173,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24667
25173
|
reachable: boolean(),
|
|
24668
25174
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24669
25175
|
});
|
|
24670
|
-
|
|
25176
|
+
/**
|
|
25177
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25178
|
+
*
|
|
25179
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25180
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25181
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25182
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25183
|
+
* settings store so they survive hub restarts.
|
|
25184
|
+
*
|
|
25185
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25186
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25187
|
+
*/
|
|
25188
|
+
/**
|
|
25189
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25190
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25191
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25192
|
+
*/
|
|
25193
|
+
var SetCameraSensorsInputSchema = object({
|
|
25194
|
+
deviceId: number().int().nonnegative(),
|
|
25195
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25196
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25197
|
+
});
|
|
25198
|
+
/**
|
|
25199
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25200
|
+
*
|
|
25201
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25202
|
+
* node and no config to attach a burst with.
|
|
25203
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25204
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25205
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25206
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25207
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25208
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25209
|
+
* real session re-arms the budget.
|
|
25210
|
+
*/
|
|
25211
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25212
|
+
"unknown-camera",
|
|
25213
|
+
"out-of-range",
|
|
25214
|
+
"no-burst-producer",
|
|
25215
|
+
"already-looked"
|
|
25216
|
+
]);
|
|
25217
|
+
method(object({
|
|
25218
|
+
deviceId: number().int().nonnegative(),
|
|
25219
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25220
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25221
|
+
afterMs: number().finite(),
|
|
25222
|
+
/** Why, for the log. */
|
|
25223
|
+
reason: string()
|
|
25224
|
+
}), object({
|
|
25225
|
+
scheduled: boolean(),
|
|
25226
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25227
|
+
dueInMs: number().optional(),
|
|
25228
|
+
/** When not `scheduled`: why. */
|
|
25229
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25230
|
+
}), {
|
|
25231
|
+
kind: "mutation",
|
|
25232
|
+
auth: "admin"
|
|
25233
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24671
25234
|
kind: "mutation",
|
|
24672
25235
|
auth: "admin"
|
|
24673
25236
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24821,7 +25384,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24821
25384
|
}), CameraSwitchGroupSchema, {
|
|
24822
25385
|
kind: "mutation",
|
|
24823
25386
|
auth: "admin"
|
|
24824
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25387
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25388
|
+
kind: "mutation",
|
|
25389
|
+
auth: "admin"
|
|
25390
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24825
25391
|
kind: "mutation",
|
|
24826
25392
|
auth: "admin"
|
|
24827
25393
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -27027,219 +27593,6 @@ DeviceType.Camera, method(object({
|
|
|
27027
27593
|
auth: "protected"
|
|
27028
27594
|
});
|
|
27029
27595
|
/**
|
|
27030
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
27031
|
-
* name (same pattern as `snapshot`):
|
|
27032
|
-
*
|
|
27033
|
-
* - **Native** providers: registered per-device by device-driver
|
|
27034
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
27035
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
27036
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
27037
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
27038
|
-
* ring; status tracks the last press and a pressCount since start
|
|
27039
|
-
* (diagnostic).
|
|
27040
|
-
*
|
|
27041
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
27042
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
27043
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
27044
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
27045
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
27046
|
-
* device + trigger in the per-device settings.
|
|
27047
|
-
*
|
|
27048
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
27049
|
-
* — subscribers listening at the camera level receive ring events
|
|
27050
|
-
* with `via[]` populated. No code on the parent needed.
|
|
27051
|
-
*/
|
|
27052
|
-
var DoorbellStatusSchema = object({
|
|
27053
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27054
|
-
lastPressedAt: number().nullable(),
|
|
27055
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27056
|
-
pressCountSinceStart: number()
|
|
27057
|
-
});
|
|
27058
|
-
var DoorbellPressEventSchema = object({
|
|
27059
|
-
deviceId: number(),
|
|
27060
|
-
timestamp: number()
|
|
27061
|
-
});
|
|
27062
|
-
/**
|
|
27063
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27064
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27065
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27066
|
-
*/
|
|
27067
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27068
|
-
/**
|
|
27069
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
27070
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
27071
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
27072
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
27073
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
27074
|
-
* reports it, it never writes it.
|
|
27075
|
-
*/
|
|
27076
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
27077
|
-
id: "doorbell-source",
|
|
27078
|
-
label: "Doorbell trigger devices",
|
|
27079
|
-
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.",
|
|
27080
|
-
shape: "association",
|
|
27081
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
27082
|
-
sourceCaps: SOURCE_CAPS,
|
|
27083
|
-
cardinality: "many",
|
|
27084
|
-
value: DoorbellSourceSlotValueSchema
|
|
27085
|
-
};
|
|
27086
|
-
var doorbellCapability = {
|
|
27087
|
-
name: "doorbell",
|
|
27088
|
-
scope: "device",
|
|
27089
|
-
deviceNative: true,
|
|
27090
|
-
mode: "singleton",
|
|
27091
|
-
kind: "wrapper",
|
|
27092
|
-
defaultActive: false,
|
|
27093
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
27094
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
27095
|
-
methods: {},
|
|
27096
|
-
events: {
|
|
27097
|
-
/**
|
|
27098
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
27099
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
27100
|
-
* release/duration — it's a pulse.
|
|
27101
|
-
*/
|
|
27102
|
-
onPressed: {
|
|
27103
|
-
data: DoorbellPressEventSchema,
|
|
27104
|
-
fromState: {
|
|
27105
|
-
field: "lastPressedAt",
|
|
27106
|
-
on: "advance"
|
|
27107
|
-
}
|
|
27108
|
-
} },
|
|
27109
|
-
status: {
|
|
27110
|
-
schema: DoorbellStatusSchema,
|
|
27111
|
-
kind: "push"
|
|
27112
|
-
},
|
|
27113
|
-
/**
|
|
27114
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27115
|
-
* Mirrored by the kernel and readable via
|
|
27116
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27117
|
-
* without subscribing.
|
|
27118
|
-
*/
|
|
27119
|
-
runtimeState: DoorbellStatusSchema,
|
|
27120
|
-
/**
|
|
27121
|
-
* 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.
|
|
27122
|
-
*
|
|
27123
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27124
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27125
|
-
*/
|
|
27126
|
-
durability: "restored"
|
|
27127
|
-
};
|
|
27128
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27129
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27130
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27131
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27132
|
-
DeviceType.Camera;
|
|
27133
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27134
|
-
state: literal("unreachable"),
|
|
27135
|
-
reason: string()
|
|
27136
|
-
})]);
|
|
27137
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27138
|
-
var ExtensionSourceSchema = object({
|
|
27139
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27140
|
-
source: string(),
|
|
27141
|
-
label: string(),
|
|
27142
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27143
|
-
addonId: string().optional(),
|
|
27144
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27145
|
-
});
|
|
27146
|
-
/**
|
|
27147
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27148
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27149
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27150
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27151
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27152
|
-
*/
|
|
27153
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27154
|
-
"ok",
|
|
27155
|
-
"missing",
|
|
27156
|
-
"foreign",
|
|
27157
|
-
"unavailable"
|
|
27158
|
-
]);
|
|
27159
|
-
var ExtensionSlotSourceSchema = object({
|
|
27160
|
-
deviceId: number().int(),
|
|
27161
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27162
|
-
name: string().nullable(),
|
|
27163
|
-
health: ExtensionSourceHealthSchema,
|
|
27164
|
-
detail: string().optional()
|
|
27165
|
-
});
|
|
27166
|
-
/**
|
|
27167
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27168
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27169
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27170
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27171
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27172
|
-
*/
|
|
27173
|
-
var ExtensionSlotActivationSchema = object({
|
|
27174
|
-
state: _enum([
|
|
27175
|
-
"active",
|
|
27176
|
-
"inactive",
|
|
27177
|
-
"unknown"
|
|
27178
|
-
]),
|
|
27179
|
-
authority: string(),
|
|
27180
|
-
detail: string().optional()
|
|
27181
|
-
});
|
|
27182
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27183
|
-
state: literal("ok"),
|
|
27184
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27185
|
-
slotRef: string(),
|
|
27186
|
-
slot: ExtensionSlotIdSchema,
|
|
27187
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27188
|
-
authority: string(),
|
|
27189
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27190
|
-
value: ExtensionSlotValueSchema,
|
|
27191
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27192
|
-
/**
|
|
27193
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27194
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27195
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27196
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27197
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27198
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27199
|
-
* older than D655.
|
|
27200
|
-
*/
|
|
27201
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27202
|
-
}), object({
|
|
27203
|
-
state: literal("unreachable"),
|
|
27204
|
-
addonId: string(),
|
|
27205
|
-
reason: string()
|
|
27206
|
-
})]);
|
|
27207
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27208
|
-
deviceId: number().int(),
|
|
27209
|
-
name: string(),
|
|
27210
|
-
type: string(),
|
|
27211
|
-
location: string().nullable(),
|
|
27212
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27213
|
-
parentName: string().nullable(),
|
|
27214
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27215
|
-
suggested: boolean(),
|
|
27216
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27217
|
-
reason: string().nullable()
|
|
27218
|
-
})) });
|
|
27219
|
-
/**
|
|
27220
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27221
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27222
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27223
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27224
|
-
*/
|
|
27225
|
-
var ExtensionSetResultSchema = object({
|
|
27226
|
-
applied: literal(true),
|
|
27227
|
-
reload: _enum([
|
|
27228
|
-
"none",
|
|
27229
|
-
"host",
|
|
27230
|
-
"parent"
|
|
27231
|
-
])
|
|
27232
|
-
});
|
|
27233
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27234
|
-
deviceId: number().int(),
|
|
27235
|
-
slotRef: string().min(1)
|
|
27236
|
-
});
|
|
27237
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27238
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27239
|
-
kind: "mutation",
|
|
27240
|
-
auth: "admin"
|
|
27241
|
-
});
|
|
27242
|
-
/**
|
|
27243
27596
|
* Optional client-side hints sent at session creation to help the provider
|
|
27244
27597
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27245
27598
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -38405,47 +38758,6 @@ var zoneRulesCapability = {
|
|
|
38405
38758
|
*/
|
|
38406
38759
|
durability: "restored"
|
|
38407
38760
|
};
|
|
38408
|
-
var NUMBER = {
|
|
38409
|
-
kind: "fixed",
|
|
38410
|
-
result: ["number"]
|
|
38411
|
-
};
|
|
38412
|
-
var BOOLEAN = {
|
|
38413
|
-
kind: "fixed",
|
|
38414
|
-
result: ["boolean"]
|
|
38415
|
-
};
|
|
38416
|
-
Object.freeze({
|
|
38417
|
-
min: NUMBER,
|
|
38418
|
-
max: NUMBER,
|
|
38419
|
-
abs: NUMBER,
|
|
38420
|
-
floor: NUMBER,
|
|
38421
|
-
ceil: NUMBER,
|
|
38422
|
-
sqrt: NUMBER,
|
|
38423
|
-
round: NUMBER,
|
|
38424
|
-
pow: NUMBER,
|
|
38425
|
-
clamp: NUMBER,
|
|
38426
|
-
avg: NUMBER,
|
|
38427
|
-
sum: NUMBER,
|
|
38428
|
-
age: NUMBER,
|
|
38429
|
-
convert: NUMBER,
|
|
38430
|
-
coalesce: { kind: "coalesce" },
|
|
38431
|
-
any: BOOLEAN,
|
|
38432
|
-
all: BOOLEAN,
|
|
38433
|
-
within: BOOLEAN,
|
|
38434
|
-
latest: {
|
|
38435
|
-
kind: "fixed",
|
|
38436
|
-
result: ["number", "null"]
|
|
38437
|
-
},
|
|
38438
|
-
number: {
|
|
38439
|
-
kind: "fixed",
|
|
38440
|
-
result: ["number", "null"]
|
|
38441
|
-
},
|
|
38442
|
-
rose: {
|
|
38443
|
-
kind: "fixed",
|
|
38444
|
-
result: ["number", "null"]
|
|
38445
|
-
},
|
|
38446
|
-
count: NUMBER
|
|
38447
|
-
});
|
|
38448
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38449
38761
|
/**
|
|
38450
38762
|
* Accessory device helpers — shared across drivers.
|
|
38451
38763
|
*
|
|
@@ -42391,6 +42703,12 @@ Object.freeze({
|
|
|
42391
42703
|
addonId: null,
|
|
42392
42704
|
access: "view"
|
|
42393
42705
|
},
|
|
42706
|
+
"coreBlocks.listComposableCaps": {
|
|
42707
|
+
capName: "core-blocks",
|
|
42708
|
+
capScope: "system",
|
|
42709
|
+
addonId: null,
|
|
42710
|
+
access: "view"
|
|
42711
|
+
},
|
|
42394
42712
|
"coreBlocks.listCompositions": {
|
|
42395
42713
|
capName: "core-blocks",
|
|
42396
42714
|
capScope: "system",
|
|
@@ -42469,6 +42787,18 @@ Object.freeze({
|
|
|
42469
42787
|
addonId: null,
|
|
42470
42788
|
access: "view"
|
|
42471
42789
|
},
|
|
42790
|
+
"databaseSnapshot.listDatabases": {
|
|
42791
|
+
capName: "database-snapshot",
|
|
42792
|
+
capScope: "system",
|
|
42793
|
+
addonId: null,
|
|
42794
|
+
access: "view"
|
|
42795
|
+
},
|
|
42796
|
+
"databaseSnapshot.writeSnapshot": {
|
|
42797
|
+
capName: "database-snapshot",
|
|
42798
|
+
capScope: "system",
|
|
42799
|
+
addonId: null,
|
|
42800
|
+
access: "create"
|
|
42801
|
+
},
|
|
42472
42802
|
"dataStoreProvider.aggregate": {
|
|
42473
42803
|
capName: "data-store-provider",
|
|
42474
42804
|
capScope: "system",
|
|
@@ -45205,6 +45535,12 @@ Object.freeze({
|
|
|
45205
45535
|
addonId: null,
|
|
45206
45536
|
access: "create"
|
|
45207
45537
|
},
|
|
45538
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45539
|
+
capName: "pipeline-analytics",
|
|
45540
|
+
capScope: "device",
|
|
45541
|
+
addonId: null,
|
|
45542
|
+
access: "delete"
|
|
45543
|
+
},
|
|
45208
45544
|
"pipelineAnalytics.clearTracks": {
|
|
45209
45545
|
capName: "pipeline-analytics",
|
|
45210
45546
|
capScope: "device",
|
|
@@ -45457,6 +45793,12 @@ Object.freeze({
|
|
|
45457
45793
|
addonId: null,
|
|
45458
45794
|
access: "view"
|
|
45459
45795
|
},
|
|
45796
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
45797
|
+
capName: "pipeline-analytics",
|
|
45798
|
+
capScope: "device",
|
|
45799
|
+
addonId: null,
|
|
45800
|
+
access: "view"
|
|
45801
|
+
},
|
|
45460
45802
|
"pipelineAnalytics.listTracks": {
|
|
45461
45803
|
capName: "pipeline-analytics",
|
|
45462
45804
|
capScope: "device",
|
|
@@ -45571,6 +45913,18 @@ Object.freeze({
|
|
|
45571
45913
|
addonId: null,
|
|
45572
45914
|
access: "create"
|
|
45573
45915
|
},
|
|
45916
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
45917
|
+
capName: "pipeline-analytics",
|
|
45918
|
+
capScope: "device",
|
|
45919
|
+
addonId: null,
|
|
45920
|
+
access: "create"
|
|
45921
|
+
},
|
|
45922
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
45923
|
+
capName: "pipeline-analytics",
|
|
45924
|
+
capScope: "device",
|
|
45925
|
+
addonId: null,
|
|
45926
|
+
access: "create"
|
|
45927
|
+
},
|
|
45574
45928
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
45575
45929
|
capName: "pipeline-analytics",
|
|
45576
45930
|
capScope: "device",
|
|
@@ -46009,6 +46363,12 @@ Object.freeze({
|
|
|
46009
46363
|
addonId: null,
|
|
46010
46364
|
access: "delete"
|
|
46011
46365
|
},
|
|
46366
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46367
|
+
capName: "pipeline-orchestrator",
|
|
46368
|
+
capScope: "system",
|
|
46369
|
+
addonId: null,
|
|
46370
|
+
access: "create"
|
|
46371
|
+
},
|
|
46012
46372
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
46013
46373
|
capName: "pipeline-orchestrator",
|
|
46014
46374
|
capScope: "system",
|
|
@@ -46075,6 +46435,12 @@ Object.freeze({
|
|
|
46075
46435
|
addonId: null,
|
|
46076
46436
|
access: "create"
|
|
46077
46437
|
},
|
|
46438
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46439
|
+
capName: "pipeline-orchestrator",
|
|
46440
|
+
capScope: "system",
|
|
46441
|
+
addonId: null,
|
|
46442
|
+
access: "create"
|
|
46443
|
+
},
|
|
46078
46444
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
46079
46445
|
capName: "pipeline-orchestrator",
|
|
46080
46446
|
capScope: "system",
|
|
@@ -49485,6 +49851,11 @@ Object.freeze({
|
|
|
49485
49851
|
form: "single",
|
|
49486
49852
|
optional: false
|
|
49487
49853
|
}],
|
|
49854
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
49855
|
+
name: "deviceId",
|
|
49856
|
+
form: "single",
|
|
49857
|
+
optional: false
|
|
49858
|
+
}],
|
|
49488
49859
|
"pipelineAnalytics.clearTracks": [{
|
|
49489
49860
|
name: "deviceId",
|
|
49490
49861
|
form: "single",
|
|
@@ -49635,6 +50006,11 @@ Object.freeze({
|
|
|
49635
50006
|
form: "single",
|
|
49636
50007
|
optional: false
|
|
49637
50008
|
}],
|
|
50009
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
50010
|
+
name: "deviceId",
|
|
50011
|
+
form: "single",
|
|
50012
|
+
optional: false
|
|
50013
|
+
}],
|
|
49638
50014
|
"pipelineAnalytics.listTracks": [{
|
|
49639
50015
|
name: "deviceId",
|
|
49640
50016
|
form: "single",
|
|
@@ -49705,6 +50081,16 @@ Object.freeze({
|
|
|
49705
50081
|
form: "single",
|
|
49706
50082
|
optional: false
|
|
49707
50083
|
}],
|
|
50084
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
50085
|
+
name: "deviceId",
|
|
50086
|
+
form: "single",
|
|
50087
|
+
optional: false
|
|
50088
|
+
}],
|
|
50089
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
50090
|
+
name: "deviceId",
|
|
50091
|
+
form: "single",
|
|
50092
|
+
optional: false
|
|
50093
|
+
}],
|
|
49708
50094
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
49709
50095
|
name: "deviceId",
|
|
49710
50096
|
form: "single",
|
|
@@ -49775,6 +50161,11 @@ Object.freeze({
|
|
|
49775
50161
|
form: "single",
|
|
49776
50162
|
optional: false
|
|
49777
50163
|
}],
|
|
50164
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50165
|
+
name: "deviceId",
|
|
50166
|
+
form: "single",
|
|
50167
|
+
optional: false
|
|
50168
|
+
}],
|
|
49778
50169
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
49779
50170
|
name: "deviceId",
|
|
49780
50171
|
form: "single",
|
|
@@ -49785,6 +50176,11 @@ Object.freeze({
|
|
|
49785
50176
|
form: "single",
|
|
49786
50177
|
optional: false
|
|
49787
50178
|
}],
|
|
50179
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50180
|
+
name: "deviceId",
|
|
50181
|
+
form: "single",
|
|
50182
|
+
optional: false
|
|
50183
|
+
}],
|
|
49788
50184
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
49789
50185
|
name: "deviceId",
|
|
49790
50186
|
form: "single",
|
|
@@ -50931,6 +51327,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
50931
51327
|
systemEventKinds: [...SUMMARISABLE],
|
|
50932
51328
|
systemEventDeliveries: ["summary"]
|
|
50933
51329
|
},
|
|
51330
|
+
{
|
|
51331
|
+
name: "summarySection",
|
|
51332
|
+
label: "Summary: this section",
|
|
51333
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51334
|
+
example: "Batterie scariche",
|
|
51335
|
+
group: "system",
|
|
51336
|
+
families: ["rule"],
|
|
51337
|
+
fields: [...RULE_TEXT],
|
|
51338
|
+
kinds: ["system"],
|
|
51339
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51340
|
+
systemEventDeliveries: ["summary"]
|
|
51341
|
+
},
|
|
50934
51342
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
50935
51343
|
name: v.name,
|
|
50936
51344
|
label: v.label,
|
|
@@ -51007,6 +51415,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
51007
51415
|
[...RULE_TEXT],
|
|
51008
51416
|
...STATE_SUMMARY_VARS
|
|
51009
51417
|
];
|
|
51418
|
+
new Set([
|
|
51419
|
+
"disarmed",
|
|
51420
|
+
"armed_home",
|
|
51421
|
+
"armed_away",
|
|
51422
|
+
"armed_night",
|
|
51423
|
+
"armed_vacation",
|
|
51424
|
+
"armed_custom_bypass",
|
|
51425
|
+
"arming",
|
|
51426
|
+
"disarming",
|
|
51427
|
+
"pending",
|
|
51428
|
+
"triggered",
|
|
51429
|
+
"open",
|
|
51430
|
+
"opening",
|
|
51431
|
+
"closing",
|
|
51432
|
+
"closed",
|
|
51433
|
+
"stopped",
|
|
51434
|
+
"locked",
|
|
51435
|
+
"unlocked",
|
|
51436
|
+
"locking",
|
|
51437
|
+
"unlocking",
|
|
51438
|
+
"jammed",
|
|
51439
|
+
"on",
|
|
51440
|
+
"off",
|
|
51441
|
+
"home",
|
|
51442
|
+
"not_home",
|
|
51443
|
+
"matched",
|
|
51444
|
+
"diverged",
|
|
51445
|
+
"unknown",
|
|
51446
|
+
"latched",
|
|
51447
|
+
"live"
|
|
51448
|
+
]);
|
|
51010
51449
|
/**
|
|
51011
51450
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
51012
51451
|
*
|