@camstack/addon-provider-homeassistant 1.2.148 → 1.2.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-nvulD3Mi.js → dist-B-PoT2TH.js} +760 -321
- package/dist/{dist-DmoYnWid.mjs → dist-BwAVAaOH.mjs} +760 -321
- package/dist/ha-export/ha-export.addon.js +7 -57
- package/dist/ha-export/ha-export.addon.mjs +7 -57
- package/package.json +2 -2
|
@@ -5370,7 +5370,7 @@ var ZodIssueCode = {
|
|
|
5370
5370
|
var ZodFirstPartyTypeKind;
|
|
5371
5371
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5372
5372
|
//#endregion
|
|
5373
|
-
//#region ../types/dist/sleep-
|
|
5373
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5374
5374
|
/**
|
|
5375
5375
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5376
5376
|
* window to float samples (D455).
|
|
@@ -7472,7 +7472,59 @@ function errMsg(err) {
|
|
|
7472
7472
|
return String(err);
|
|
7473
7473
|
}
|
|
7474
7474
|
//#endregion
|
|
7475
|
-
//#region ../types/dist/composition-
|
|
7475
|
+
//#region ../types/dist/composition-Dq42XWp0.mjs
|
|
7476
|
+
/**
|
|
7477
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7478
|
+
*
|
|
7479
|
+
* ## Why a download, on every node, including the container
|
|
7480
|
+
*
|
|
7481
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7482
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7483
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7484
|
+
* framework bump, not an image rebuild.
|
|
7485
|
+
*
|
|
7486
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7487
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7488
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7489
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7490
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7491
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7492
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7493
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7494
|
+
*
|
|
7495
|
+
* ## Why jellyfin-ffmpeg
|
|
7496
|
+
*
|
|
7497
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7498
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7499
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7500
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7501
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7502
|
+
*
|
|
7503
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7504
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7505
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7506
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7507
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7508
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7509
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7510
|
+
*
|
|
7511
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7512
|
+
*
|
|
7513
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7514
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7515
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7516
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7517
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7518
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7519
|
+
* (D536).
|
|
7520
|
+
*/
|
|
7521
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7522
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7523
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7524
|
+
function portable(target) {
|
|
7525
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7526
|
+
}
|
|
7527
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7476
7528
|
/**
|
|
7477
7529
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7478
7530
|
* valutatore puro del suo FRONTE.
|
|
@@ -9090,6 +9142,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
9090
9142
|
/** Max rows returned, newest-first. */
|
|
9091
9143
|
limit: number().int().min(1).max(1e3).optional()
|
|
9092
9144
|
});
|
|
9145
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
9146
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
9147
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
9148
|
+
var TrackRelationSchema = object({
|
|
9149
|
+
id: string(),
|
|
9150
|
+
deviceId: number().int(),
|
|
9151
|
+
leftTrackId: string(),
|
|
9152
|
+
rightTrackId: string(),
|
|
9153
|
+
leftSide: TrackSideSchema.nullable(),
|
|
9154
|
+
rightSide: TrackSideSchema.nullable(),
|
|
9155
|
+
relation: TrackRelationKindSchema,
|
|
9156
|
+
presence: literal("continuous").nullable(),
|
|
9157
|
+
leftStartedAt: number().int().nullable(),
|
|
9158
|
+
rightStartedAt: number().int().nullable(),
|
|
9159
|
+
createdAt: number().int(),
|
|
9160
|
+
updatedAt: number().int(),
|
|
9161
|
+
author: string().nullable()
|
|
9162
|
+
});
|
|
9163
|
+
var TrackPuritySchema = object({
|
|
9164
|
+
id: string(),
|
|
9165
|
+
deviceId: number().int(),
|
|
9166
|
+
sourceTrackId: string(),
|
|
9167
|
+
purity: TrackPurityValueSchema,
|
|
9168
|
+
switchAtMs: number().int().nullable(),
|
|
9169
|
+
startedAt: number().int().nullable(),
|
|
9170
|
+
createdAt: number().int(),
|
|
9171
|
+
updatedAt: number().int(),
|
|
9172
|
+
author: string().nullable()
|
|
9173
|
+
});
|
|
9174
|
+
var SetTrackRelationInputSchema = object({
|
|
9175
|
+
deviceId: number().int(),
|
|
9176
|
+
trackId: string().min(1),
|
|
9177
|
+
otherTrackId: string().min(1),
|
|
9178
|
+
relation: TrackRelationKindSchema,
|
|
9179
|
+
presence: literal("continuous").optional(),
|
|
9180
|
+
trackSide: TrackSideSchema.optional(),
|
|
9181
|
+
otherSide: TrackSideSchema.optional()
|
|
9182
|
+
});
|
|
9183
|
+
var ClearTrackRelationInputSchema = object({
|
|
9184
|
+
deviceId: number().int(),
|
|
9185
|
+
trackId: string().min(1),
|
|
9186
|
+
otherTrackId: string().min(1)
|
|
9187
|
+
});
|
|
9188
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9189
|
+
var SetTrackPurityInputSchema = object({
|
|
9190
|
+
deviceId: number().int(),
|
|
9191
|
+
trackId: string().min(1),
|
|
9192
|
+
purity: _enum([
|
|
9193
|
+
"pure",
|
|
9194
|
+
"mixed",
|
|
9195
|
+
"not-a-subject"
|
|
9196
|
+
]),
|
|
9197
|
+
switchAtMs: number().int().optional()
|
|
9198
|
+
});
|
|
9199
|
+
/** `null` when `pure` cleared the row. */
|
|
9200
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9201
|
+
var ListTrackRelationsInputSchema = object({
|
|
9202
|
+
deviceId: number().int(),
|
|
9203
|
+
trackId: string().optional(),
|
|
9204
|
+
since: number().int().optional(),
|
|
9205
|
+
until: number().int().optional(),
|
|
9206
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9207
|
+
});
|
|
9208
|
+
var ListTrackRelationsResultSchema = object({
|
|
9209
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9210
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9211
|
+
truncated: boolean()
|
|
9212
|
+
});
|
|
9213
|
+
_enum([
|
|
9214
|
+
"unknown-track",
|
|
9215
|
+
"cross-device",
|
|
9216
|
+
"self-relation",
|
|
9217
|
+
"contradiction",
|
|
9218
|
+
"switch-outside-track",
|
|
9219
|
+
"switch-needs-mixed"
|
|
9220
|
+
]);
|
|
9093
9221
|
/**
|
|
9094
9222
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
9095
9223
|
* recordings and events management surfaces.
|
|
@@ -11662,6 +11790,68 @@ method(object({
|
|
|
11662
11790
|
password: string()
|
|
11663
11791
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11664
11792
|
/**
|
|
11793
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11794
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11795
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11796
|
+
* generous because a timeout fails the whole backup run.
|
|
11797
|
+
*/
|
|
11798
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11799
|
+
/**
|
|
11800
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11801
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11802
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11803
|
+
* owner's host.
|
|
11804
|
+
*/
|
|
11805
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11806
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11807
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11808
|
+
name: string(),
|
|
11809
|
+
rows: number().int().nonnegative()
|
|
11810
|
+
});
|
|
11811
|
+
/**
|
|
11812
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11813
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11814
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11815
|
+
* archiving something it cannot place.
|
|
11816
|
+
*/
|
|
11817
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11818
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11819
|
+
livePath: string(),
|
|
11820
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11821
|
+
snapshotPath: string(),
|
|
11822
|
+
sizeBytes: number().int().nonnegative(),
|
|
11823
|
+
pageCount: number().int().nonnegative(),
|
|
11824
|
+
pageSize: number().int().positive(),
|
|
11825
|
+
/**
|
|
11826
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11827
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11828
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11829
|
+
*/
|
|
11830
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11831
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11832
|
+
copyMs: number().nonnegative(),
|
|
11833
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11834
|
+
verifyMs: number().nonnegative(),
|
|
11835
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11836
|
+
takenAt: number()
|
|
11837
|
+
});
|
|
11838
|
+
/**
|
|
11839
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11840
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11841
|
+
* data dir), because an archive outlives the host that made it.
|
|
11842
|
+
*/
|
|
11843
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11844
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11845
|
+
livePath: string(),
|
|
11846
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11847
|
+
snapshotPath: string()
|
|
11848
|
+
});
|
|
11849
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11850
|
+
kind: "mutation",
|
|
11851
|
+
auth: "admin",
|
|
11852
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11853
|
+
});
|
|
11854
|
+
/**
|
|
11665
11855
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11666
11856
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11667
11857
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11772,7 +11962,12 @@ var ArchiveManifestSchema = object({
|
|
|
11772
11962
|
locations: array(string()),
|
|
11773
11963
|
entries: array(ArchiveEntrySchema),
|
|
11774
11964
|
totalBytes: number(),
|
|
11775
|
-
totalFiles: number()
|
|
11965
|
+
totalFiles: number(),
|
|
11966
|
+
/**
|
|
11967
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11968
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11969
|
+
*/
|
|
11970
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11776
11971
|
});
|
|
11777
11972
|
var LocationStatSchema = object({
|
|
11778
11973
|
name: string(),
|
|
@@ -13347,6 +13542,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13347
13542
|
reason: string().optional(),
|
|
13348
13543
|
fields: array(CompositionFieldStateSchema)
|
|
13349
13544
|
});
|
|
13545
|
+
var ComposerBlockSchema = object({
|
|
13546
|
+
id: string().min(1),
|
|
13547
|
+
name: string().min(1).max(120),
|
|
13548
|
+
enabled: boolean(),
|
|
13549
|
+
updatedAt: number(),
|
|
13550
|
+
composition: CompositionSchema
|
|
13551
|
+
});
|
|
13552
|
+
/**
|
|
13553
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13554
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13555
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13556
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13557
|
+
*/
|
|
13558
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13559
|
+
id: string().min(1),
|
|
13560
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13561
|
+
name: string().nullable(),
|
|
13562
|
+
/** The parse error, in the operator's words. */
|
|
13563
|
+
error: string()
|
|
13564
|
+
});
|
|
13565
|
+
method(object({
|
|
13566
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13567
|
+
integrationId: string().nullable(),
|
|
13568
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13569
|
+
storeLoaded: boolean(),
|
|
13570
|
+
blocks: array(ComposerBlockSchema),
|
|
13571
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13572
|
+
restartBlockIds: array(string()),
|
|
13573
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13574
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13575
|
+
}), object({
|
|
13576
|
+
blocks: array(object({
|
|
13577
|
+
blockId: string(),
|
|
13578
|
+
status: CompositionRunStatusSchema,
|
|
13579
|
+
reason: string().optional()
|
|
13580
|
+
})),
|
|
13581
|
+
/**
|
|
13582
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13583
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13584
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13585
|
+
*/
|
|
13586
|
+
acted: boolean()
|
|
13587
|
+
}), {
|
|
13588
|
+
kind: "mutation",
|
|
13589
|
+
auth: "admin"
|
|
13590
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13591
|
+
var NUMBER = {
|
|
13592
|
+
kind: "fixed",
|
|
13593
|
+
result: ["number"]
|
|
13594
|
+
};
|
|
13595
|
+
var BOOLEAN = {
|
|
13596
|
+
kind: "fixed",
|
|
13597
|
+
result: ["boolean"]
|
|
13598
|
+
};
|
|
13599
|
+
Object.freeze({
|
|
13600
|
+
min: NUMBER,
|
|
13601
|
+
max: NUMBER,
|
|
13602
|
+
abs: NUMBER,
|
|
13603
|
+
floor: NUMBER,
|
|
13604
|
+
ceil: NUMBER,
|
|
13605
|
+
sqrt: NUMBER,
|
|
13606
|
+
round: NUMBER,
|
|
13607
|
+
pow: NUMBER,
|
|
13608
|
+
clamp: NUMBER,
|
|
13609
|
+
avg: NUMBER,
|
|
13610
|
+
sum: NUMBER,
|
|
13611
|
+
age: NUMBER,
|
|
13612
|
+
convert: NUMBER,
|
|
13613
|
+
coalesce: { kind: "coalesce" },
|
|
13614
|
+
any: BOOLEAN,
|
|
13615
|
+
all: BOOLEAN,
|
|
13616
|
+
within: BOOLEAN,
|
|
13617
|
+
latest: {
|
|
13618
|
+
kind: "fixed",
|
|
13619
|
+
result: ["number", "null"]
|
|
13620
|
+
},
|
|
13621
|
+
number: {
|
|
13622
|
+
kind: "fixed",
|
|
13623
|
+
result: ["number", "null"]
|
|
13624
|
+
},
|
|
13625
|
+
rose: {
|
|
13626
|
+
kind: "fixed",
|
|
13627
|
+
result: ["number", "null"]
|
|
13628
|
+
},
|
|
13629
|
+
count: NUMBER
|
|
13630
|
+
});
|
|
13631
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13632
|
+
/**
|
|
13633
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13634
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13635
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13636
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13637
|
+
* offer a feature the save would refuse for the same reason.
|
|
13638
|
+
*/
|
|
13639
|
+
var ComposableFieldSchema = object({
|
|
13640
|
+
path: string(),
|
|
13641
|
+
kind: CompositionFieldKindSchema,
|
|
13642
|
+
nullable: boolean(),
|
|
13643
|
+
required: boolean(),
|
|
13644
|
+
enumValues: array(string()).optional()
|
|
13645
|
+
});
|
|
13646
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13647
|
+
cap: string(),
|
|
13648
|
+
fields: array(ComposableFieldSchema),
|
|
13649
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13650
|
+
itemArray: object({
|
|
13651
|
+
path: string(),
|
|
13652
|
+
keyField: string()
|
|
13653
|
+
}).optional()
|
|
13654
|
+
})) });
|
|
13350
13655
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13351
13656
|
* agent is the reason placement is not fixed to the hub. */
|
|
13352
13657
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13511,7 +13816,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13511
13816
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13512
13817
|
addonId: string().min(1),
|
|
13513
13818
|
stableId: string().min(1)
|
|
13514
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13819
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13515
13820
|
composition: CompositionSchema,
|
|
13516
13821
|
blockId: string().optional()
|
|
13517
13822
|
}), CompositionValidationSchema, {
|
|
@@ -13519,52 +13824,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13519
13824
|
auth: "admin",
|
|
13520
13825
|
access: "view"
|
|
13521
13826
|
});
|
|
13522
|
-
var ComposerBlockSchema = object({
|
|
13523
|
-
id: string().min(1),
|
|
13524
|
-
name: string().min(1).max(120),
|
|
13525
|
-
enabled: boolean(),
|
|
13526
|
-
updatedAt: number(),
|
|
13527
|
-
composition: CompositionSchema
|
|
13528
|
-
});
|
|
13529
|
-
/**
|
|
13530
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13531
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13532
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13533
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13534
|
-
*/
|
|
13535
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13536
|
-
id: string().min(1),
|
|
13537
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13538
|
-
name: string().nullable(),
|
|
13539
|
-
/** The parse error, in the operator's words. */
|
|
13540
|
-
error: string()
|
|
13541
|
-
});
|
|
13542
|
-
method(object({
|
|
13543
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13544
|
-
integrationId: string().nullable(),
|
|
13545
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13546
|
-
storeLoaded: boolean(),
|
|
13547
|
-
blocks: array(ComposerBlockSchema),
|
|
13548
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13549
|
-
restartBlockIds: array(string()),
|
|
13550
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13551
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13552
|
-
}), object({
|
|
13553
|
-
blocks: array(object({
|
|
13554
|
-
blockId: string(),
|
|
13555
|
-
status: CompositionRunStatusSchema,
|
|
13556
|
-
reason: string().optional()
|
|
13557
|
-
})),
|
|
13558
|
-
/**
|
|
13559
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13560
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13561
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13562
|
-
*/
|
|
13563
|
-
acted: boolean()
|
|
13564
|
-
}), {
|
|
13565
|
-
kind: "mutation",
|
|
13566
|
-
auth: "admin"
|
|
13567
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13568
13827
|
/**
|
|
13569
13828
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13570
13829
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15836,6 +16095,219 @@ method(object({
|
|
|
15836
16095
|
caps: array(string()).readonly().optional()
|
|
15837
16096
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15838
16097
|
/**
|
|
16098
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
16099
|
+
* name (same pattern as `snapshot`):
|
|
16100
|
+
*
|
|
16101
|
+
* - **Native** providers: registered per-device by device-driver
|
|
16102
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
16103
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16104
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
16105
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
16106
|
+
* ring; status tracks the last press and a pressCount since start
|
|
16107
|
+
* (diagnostic).
|
|
16108
|
+
*
|
|
16109
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16110
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16111
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16112
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16113
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
16114
|
+
* device + trigger in the per-device settings.
|
|
16115
|
+
*
|
|
16116
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16117
|
+
* — subscribers listening at the camera level receive ring events
|
|
16118
|
+
* with `via[]` populated. No code on the parent needed.
|
|
16119
|
+
*/
|
|
16120
|
+
var DoorbellStatusSchema = object({
|
|
16121
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16122
|
+
lastPressedAt: number().nullable(),
|
|
16123
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16124
|
+
pressCountSinceStart: number()
|
|
16125
|
+
});
|
|
16126
|
+
var DoorbellPressEventSchema = object({
|
|
16127
|
+
deviceId: number(),
|
|
16128
|
+
timestamp: number()
|
|
16129
|
+
});
|
|
16130
|
+
/**
|
|
16131
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16132
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16133
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16134
|
+
*/
|
|
16135
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16136
|
+
/**
|
|
16137
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16138
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16139
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
16140
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16141
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16142
|
+
* reports it, it never writes it.
|
|
16143
|
+
*/
|
|
16144
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
16145
|
+
id: "doorbell-source",
|
|
16146
|
+
label: "Doorbell trigger devices",
|
|
16147
|
+
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.",
|
|
16148
|
+
shape: "association",
|
|
16149
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
16150
|
+
sourceCaps: SOURCE_CAPS,
|
|
16151
|
+
cardinality: "many",
|
|
16152
|
+
value: DoorbellSourceSlotValueSchema
|
|
16153
|
+
};
|
|
16154
|
+
var doorbellCapability = {
|
|
16155
|
+
name: "doorbell",
|
|
16156
|
+
scope: "device",
|
|
16157
|
+
deviceNative: true,
|
|
16158
|
+
mode: "singleton",
|
|
16159
|
+
kind: "wrapper",
|
|
16160
|
+
defaultActive: false,
|
|
16161
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16162
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16163
|
+
methods: {},
|
|
16164
|
+
events: {
|
|
16165
|
+
/**
|
|
16166
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16167
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16168
|
+
* release/duration — it's a pulse.
|
|
16169
|
+
*/
|
|
16170
|
+
onPressed: {
|
|
16171
|
+
data: DoorbellPressEventSchema,
|
|
16172
|
+
fromState: {
|
|
16173
|
+
field: "lastPressedAt",
|
|
16174
|
+
on: "advance"
|
|
16175
|
+
}
|
|
16176
|
+
} },
|
|
16177
|
+
status: {
|
|
16178
|
+
schema: DoorbellStatusSchema,
|
|
16179
|
+
kind: "push"
|
|
16180
|
+
},
|
|
16181
|
+
/**
|
|
16182
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16183
|
+
* Mirrored by the kernel and readable via
|
|
16184
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16185
|
+
* without subscribing.
|
|
16186
|
+
*/
|
|
16187
|
+
runtimeState: DoorbellStatusSchema,
|
|
16188
|
+
/**
|
|
16189
|
+
* 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.
|
|
16190
|
+
*
|
|
16191
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
16192
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
16193
|
+
*/
|
|
16194
|
+
durability: "restored"
|
|
16195
|
+
};
|
|
16196
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16197
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16198
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16199
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16200
|
+
DeviceType.Camera;
|
|
16201
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16202
|
+
state: literal("unreachable"),
|
|
16203
|
+
reason: string()
|
|
16204
|
+
})]);
|
|
16205
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16206
|
+
var ExtensionSourceSchema = object({
|
|
16207
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16208
|
+
source: string(),
|
|
16209
|
+
label: string(),
|
|
16210
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16211
|
+
addonId: string().optional(),
|
|
16212
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16213
|
+
});
|
|
16214
|
+
/**
|
|
16215
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16216
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16217
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16218
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16219
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16220
|
+
*/
|
|
16221
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16222
|
+
"ok",
|
|
16223
|
+
"missing",
|
|
16224
|
+
"foreign",
|
|
16225
|
+
"unavailable"
|
|
16226
|
+
]);
|
|
16227
|
+
var ExtensionSlotSourceSchema = object({
|
|
16228
|
+
deviceId: number().int(),
|
|
16229
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16230
|
+
name: string().nullable(),
|
|
16231
|
+
health: ExtensionSourceHealthSchema,
|
|
16232
|
+
detail: string().optional()
|
|
16233
|
+
});
|
|
16234
|
+
/**
|
|
16235
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16236
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16237
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16238
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16239
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16240
|
+
*/
|
|
16241
|
+
var ExtensionSlotActivationSchema = object({
|
|
16242
|
+
state: _enum([
|
|
16243
|
+
"active",
|
|
16244
|
+
"inactive",
|
|
16245
|
+
"unknown"
|
|
16246
|
+
]),
|
|
16247
|
+
authority: string(),
|
|
16248
|
+
detail: string().optional()
|
|
16249
|
+
});
|
|
16250
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16251
|
+
state: literal("ok"),
|
|
16252
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16253
|
+
slotRef: string(),
|
|
16254
|
+
slot: ExtensionSlotIdSchema,
|
|
16255
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16256
|
+
authority: string(),
|
|
16257
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16258
|
+
value: ExtensionSlotValueSchema,
|
|
16259
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16260
|
+
/**
|
|
16261
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16262
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16263
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16264
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16265
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16266
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16267
|
+
* older than D655.
|
|
16268
|
+
*/
|
|
16269
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16270
|
+
}), object({
|
|
16271
|
+
state: literal("unreachable"),
|
|
16272
|
+
addonId: string(),
|
|
16273
|
+
reason: string()
|
|
16274
|
+
})]);
|
|
16275
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16276
|
+
deviceId: number().int(),
|
|
16277
|
+
name: string(),
|
|
16278
|
+
type: string(),
|
|
16279
|
+
location: string().nullable(),
|
|
16280
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16281
|
+
parentName: string().nullable(),
|
|
16282
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16283
|
+
suggested: boolean(),
|
|
16284
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16285
|
+
reason: string().nullable()
|
|
16286
|
+
})) });
|
|
16287
|
+
/**
|
|
16288
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16289
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16290
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16291
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16292
|
+
*/
|
|
16293
|
+
var ExtensionSetResultSchema = object({
|
|
16294
|
+
applied: literal(true),
|
|
16295
|
+
reload: _enum([
|
|
16296
|
+
"none",
|
|
16297
|
+
"host",
|
|
16298
|
+
"parent"
|
|
16299
|
+
])
|
|
16300
|
+
});
|
|
16301
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16302
|
+
deviceId: number().int(),
|
|
16303
|
+
slotRef: string().min(1)
|
|
16304
|
+
});
|
|
16305
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16306
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16307
|
+
kind: "mutation",
|
|
16308
|
+
auth: "admin"
|
|
16309
|
+
});
|
|
16310
|
+
/**
|
|
15839
16311
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15840
16312
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15841
16313
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -18859,17 +19331,25 @@ var NcScheduleSchema = object({
|
|
|
18859
19331
|
*/
|
|
18860
19332
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18861
19333
|
/**
|
|
19334
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19335
|
+
* every section; `section` = one notification per section with something to
|
|
19336
|
+
* say (an unavailable section included), each titled by its section.
|
|
19337
|
+
*/
|
|
19338
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19339
|
+
/**
|
|
18862
19340
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18863
19341
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18864
19342
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18865
|
-
* available, ...), after its own filters
|
|
19343
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19344
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18866
19345
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18867
19346
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18868
19347
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18869
19348
|
*/
|
|
18870
19349
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18871
19350
|
mode: literal("summary"),
|
|
18872
|
-
schedule: NcScheduleSchema
|
|
19351
|
+
schedule: NcScheduleSchema,
|
|
19352
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18873
19353
|
})]);
|
|
18874
19354
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18875
19355
|
var NcPlateMatcherSchema = object({
|
|
@@ -19009,8 +19489,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
19009
19489
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
19010
19490
|
var NcZoneConditionSchema = object({
|
|
19011
19491
|
ids: array(string().min(1)).min(1),
|
|
19012
|
-
/**
|
|
19013
|
-
|
|
19492
|
+
/**
|
|
19493
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19494
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19495
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19496
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19497
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19498
|
+
*/
|
|
19499
|
+
match: _enum(["any", "all"]).optional()
|
|
19014
19500
|
});
|
|
19015
19501
|
/**
|
|
19016
19502
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19514,10 +20000,12 @@ var NcMediaPolicySchema = object({
|
|
|
19514
20000
|
/**
|
|
19515
20001
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19516
20002
|
* notification suppresses.
|
|
19517
|
-
* - `
|
|
19518
|
-
*
|
|
19519
|
-
*
|
|
19520
|
-
*
|
|
20003
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
20004
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
20005
|
+
* still waits.
|
|
20006
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
20007
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
20008
|
+
* longer what an unset rule means.
|
|
19521
20009
|
*
|
|
19522
20010
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19523
20011
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19532,8 +20020,11 @@ var NcThrottleSchema = object({
|
|
|
19532
20020
|
/**
|
|
19533
20021
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19534
20022
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19535
|
-
* rule authored before this field simply carries none
|
|
19536
|
-
*
|
|
20023
|
+
* rule authored before this field simply carries none. The engine used to
|
|
20024
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
20025
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
20026
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
20027
|
+
* engine, and D36's dated note.
|
|
19537
20028
|
*/
|
|
19538
20029
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19539
20030
|
});
|
|
@@ -19857,11 +20348,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19857
20348
|
reason: string().optional()
|
|
19858
20349
|
});
|
|
19859
20350
|
/**
|
|
20351
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20352
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20353
|
+
*/
|
|
20354
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20355
|
+
section: string().optional(),
|
|
20356
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20357
|
+
title: string(),
|
|
20358
|
+
text: string(),
|
|
20359
|
+
count: number().int().nonnegative()
|
|
20360
|
+
});
|
|
20361
|
+
/**
|
|
19860
20362
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19861
20363
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19862
20364
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19863
20365
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19864
|
-
* (backups & exports).
|
|
20366
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20367
|
+
* optional, so an older hub's answer still parses.
|
|
19865
20368
|
*/
|
|
19866
20369
|
var NcStateSummaryPreviewSchema = object({
|
|
19867
20370
|
empty: boolean(),
|
|
@@ -19869,7 +20372,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19869
20372
|
text: string(),
|
|
19870
20373
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19871
20374
|
dropped: record(string(), number().int().nonnegative()),
|
|
19872
|
-
excludedGroups: array(string())
|
|
20375
|
+
excludedGroups: array(string()),
|
|
20376
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20377
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19873
20378
|
});
|
|
19874
20379
|
var NcTestResultSchema = object({
|
|
19875
20380
|
recordId: string(),
|
|
@@ -20901,7 +21406,7 @@ function cameraSensorRefKey(ref) {
|
|
|
20901
21406
|
}
|
|
20902
21407
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
20903
21408
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
20904
|
-
object({
|
|
21409
|
+
var CameraSensorsConfigSchema = object({
|
|
20905
21410
|
mode: CameraSensorsModeSchema,
|
|
20906
21411
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
20907
21412
|
}).superRefine((value, ctx) => {
|
|
@@ -22806,7 +23311,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22806
23311
|
trackIds: array(string()).min(1)
|
|
22807
23312
|
}), object({
|
|
22808
23313
|
deleted: number().int(),
|
|
22809
|
-
failed: array(string()).readonly()
|
|
23314
|
+
failed: array(string()).readonly(),
|
|
23315
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22810
23316
|
}), {
|
|
22811
23317
|
kind: "mutation",
|
|
22812
23318
|
auth: "admin"
|
|
@@ -22815,7 +23321,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22815
23321
|
deviceId: number(),
|
|
22816
23322
|
trackId: string(),
|
|
22817
23323
|
flags: TrackFlagsPatchSchema
|
|
22818
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
23324
|
+
}), 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, {
|
|
22819
23325
|
kind: "query",
|
|
22820
23326
|
auth: "admin"
|
|
22821
23327
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -25013,7 +25519,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
25013
25519
|
reachable: boolean(),
|
|
25014
25520
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
25015
25521
|
});
|
|
25016
|
-
|
|
25522
|
+
/**
|
|
25523
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25524
|
+
*
|
|
25525
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25526
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25527
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25528
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25529
|
+
* settings store so they survive hub restarts.
|
|
25530
|
+
*
|
|
25531
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25532
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25533
|
+
*/
|
|
25534
|
+
/**
|
|
25535
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25536
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25537
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25538
|
+
*/
|
|
25539
|
+
var SetCameraSensorsInputSchema = object({
|
|
25540
|
+
deviceId: number().int().nonnegative(),
|
|
25541
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25542
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25543
|
+
});
|
|
25544
|
+
/**
|
|
25545
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25546
|
+
*
|
|
25547
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25548
|
+
* node and no config to attach a burst with.
|
|
25549
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25550
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25551
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25552
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25553
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25554
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25555
|
+
* real session re-arms the budget.
|
|
25556
|
+
*/
|
|
25557
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25558
|
+
"unknown-camera",
|
|
25559
|
+
"out-of-range",
|
|
25560
|
+
"no-burst-producer",
|
|
25561
|
+
"already-looked"
|
|
25562
|
+
]);
|
|
25563
|
+
method(object({
|
|
25564
|
+
deviceId: number().int().nonnegative(),
|
|
25565
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25566
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25567
|
+
afterMs: number().finite(),
|
|
25568
|
+
/** Why, for the log. */
|
|
25569
|
+
reason: string()
|
|
25570
|
+
}), object({
|
|
25571
|
+
scheduled: boolean(),
|
|
25572
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25573
|
+
dueInMs: number().optional(),
|
|
25574
|
+
/** When not `scheduled`: why. */
|
|
25575
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25576
|
+
}), {
|
|
25577
|
+
kind: "mutation",
|
|
25578
|
+
auth: "admin"
|
|
25579
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
25017
25580
|
kind: "mutation",
|
|
25018
25581
|
auth: "admin"
|
|
25019
25582
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -25167,7 +25730,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
25167
25730
|
}), CameraSwitchGroupSchema, {
|
|
25168
25731
|
kind: "mutation",
|
|
25169
25732
|
auth: "admin"
|
|
25170
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25733
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25734
|
+
kind: "mutation",
|
|
25735
|
+
auth: "admin"
|
|
25736
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
25171
25737
|
kind: "mutation",
|
|
25172
25738
|
auth: "admin"
|
|
25173
25739
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -27373,219 +27939,6 @@ DeviceType.Camera, method(object({
|
|
|
27373
27939
|
auth: "protected"
|
|
27374
27940
|
});
|
|
27375
27941
|
/**
|
|
27376
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
27377
|
-
* name (same pattern as `snapshot`):
|
|
27378
|
-
*
|
|
27379
|
-
* - **Native** providers: registered per-device by device-driver
|
|
27380
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
27381
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
27382
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
27383
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
27384
|
-
* ring; status tracks the last press and a pressCount since start
|
|
27385
|
-
* (diagnostic).
|
|
27386
|
-
*
|
|
27387
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
27388
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
27389
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
27390
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
27391
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
27392
|
-
* device + trigger in the per-device settings.
|
|
27393
|
-
*
|
|
27394
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
27395
|
-
* — subscribers listening at the camera level receive ring events
|
|
27396
|
-
* with `via[]` populated. No code on the parent needed.
|
|
27397
|
-
*/
|
|
27398
|
-
var DoorbellStatusSchema = object({
|
|
27399
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27400
|
-
lastPressedAt: number().nullable(),
|
|
27401
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27402
|
-
pressCountSinceStart: number()
|
|
27403
|
-
});
|
|
27404
|
-
var DoorbellPressEventSchema = object({
|
|
27405
|
-
deviceId: number(),
|
|
27406
|
-
timestamp: number()
|
|
27407
|
-
});
|
|
27408
|
-
/**
|
|
27409
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27410
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27411
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27412
|
-
*/
|
|
27413
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27414
|
-
/**
|
|
27415
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
27416
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
27417
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
27418
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
27419
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
27420
|
-
* reports it, it never writes it.
|
|
27421
|
-
*/
|
|
27422
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
27423
|
-
id: "doorbell-source",
|
|
27424
|
-
label: "Doorbell trigger devices",
|
|
27425
|
-
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.",
|
|
27426
|
-
shape: "association",
|
|
27427
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
27428
|
-
sourceCaps: SOURCE_CAPS,
|
|
27429
|
-
cardinality: "many",
|
|
27430
|
-
value: DoorbellSourceSlotValueSchema
|
|
27431
|
-
};
|
|
27432
|
-
var doorbellCapability = {
|
|
27433
|
-
name: "doorbell",
|
|
27434
|
-
scope: "device",
|
|
27435
|
-
deviceNative: true,
|
|
27436
|
-
mode: "singleton",
|
|
27437
|
-
kind: "wrapper",
|
|
27438
|
-
defaultActive: false,
|
|
27439
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
27440
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
27441
|
-
methods: {},
|
|
27442
|
-
events: {
|
|
27443
|
-
/**
|
|
27444
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
27445
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
27446
|
-
* release/duration — it's a pulse.
|
|
27447
|
-
*/
|
|
27448
|
-
onPressed: {
|
|
27449
|
-
data: DoorbellPressEventSchema,
|
|
27450
|
-
fromState: {
|
|
27451
|
-
field: "lastPressedAt",
|
|
27452
|
-
on: "advance"
|
|
27453
|
-
}
|
|
27454
|
-
} },
|
|
27455
|
-
status: {
|
|
27456
|
-
schema: DoorbellStatusSchema,
|
|
27457
|
-
kind: "push"
|
|
27458
|
-
},
|
|
27459
|
-
/**
|
|
27460
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27461
|
-
* Mirrored by the kernel and readable via
|
|
27462
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27463
|
-
* without subscribing.
|
|
27464
|
-
*/
|
|
27465
|
-
runtimeState: DoorbellStatusSchema,
|
|
27466
|
-
/**
|
|
27467
|
-
* 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.
|
|
27468
|
-
*
|
|
27469
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27470
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27471
|
-
*/
|
|
27472
|
-
durability: "restored"
|
|
27473
|
-
};
|
|
27474
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27475
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27476
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27477
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27478
|
-
DeviceType.Camera;
|
|
27479
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27480
|
-
state: literal("unreachable"),
|
|
27481
|
-
reason: string()
|
|
27482
|
-
})]);
|
|
27483
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27484
|
-
var ExtensionSourceSchema = object({
|
|
27485
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27486
|
-
source: string(),
|
|
27487
|
-
label: string(),
|
|
27488
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27489
|
-
addonId: string().optional(),
|
|
27490
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27491
|
-
});
|
|
27492
|
-
/**
|
|
27493
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27494
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27495
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27496
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27497
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27498
|
-
*/
|
|
27499
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27500
|
-
"ok",
|
|
27501
|
-
"missing",
|
|
27502
|
-
"foreign",
|
|
27503
|
-
"unavailable"
|
|
27504
|
-
]);
|
|
27505
|
-
var ExtensionSlotSourceSchema = object({
|
|
27506
|
-
deviceId: number().int(),
|
|
27507
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27508
|
-
name: string().nullable(),
|
|
27509
|
-
health: ExtensionSourceHealthSchema,
|
|
27510
|
-
detail: string().optional()
|
|
27511
|
-
});
|
|
27512
|
-
/**
|
|
27513
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27514
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27515
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27516
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27517
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27518
|
-
*/
|
|
27519
|
-
var ExtensionSlotActivationSchema = object({
|
|
27520
|
-
state: _enum([
|
|
27521
|
-
"active",
|
|
27522
|
-
"inactive",
|
|
27523
|
-
"unknown"
|
|
27524
|
-
]),
|
|
27525
|
-
authority: string(),
|
|
27526
|
-
detail: string().optional()
|
|
27527
|
-
});
|
|
27528
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27529
|
-
state: literal("ok"),
|
|
27530
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27531
|
-
slotRef: string(),
|
|
27532
|
-
slot: ExtensionSlotIdSchema,
|
|
27533
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27534
|
-
authority: string(),
|
|
27535
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27536
|
-
value: ExtensionSlotValueSchema,
|
|
27537
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27538
|
-
/**
|
|
27539
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27540
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27541
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27542
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27543
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27544
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27545
|
-
* older than D655.
|
|
27546
|
-
*/
|
|
27547
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27548
|
-
}), object({
|
|
27549
|
-
state: literal("unreachable"),
|
|
27550
|
-
addonId: string(),
|
|
27551
|
-
reason: string()
|
|
27552
|
-
})]);
|
|
27553
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27554
|
-
deviceId: number().int(),
|
|
27555
|
-
name: string(),
|
|
27556
|
-
type: string(),
|
|
27557
|
-
location: string().nullable(),
|
|
27558
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27559
|
-
parentName: string().nullable(),
|
|
27560
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27561
|
-
suggested: boolean(),
|
|
27562
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27563
|
-
reason: string().nullable()
|
|
27564
|
-
})) });
|
|
27565
|
-
/**
|
|
27566
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27567
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27568
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27569
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27570
|
-
*/
|
|
27571
|
-
var ExtensionSetResultSchema = object({
|
|
27572
|
-
applied: literal(true),
|
|
27573
|
-
reload: _enum([
|
|
27574
|
-
"none",
|
|
27575
|
-
"host",
|
|
27576
|
-
"parent"
|
|
27577
|
-
])
|
|
27578
|
-
});
|
|
27579
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27580
|
-
deviceId: number().int(),
|
|
27581
|
-
slotRef: string().min(1)
|
|
27582
|
-
});
|
|
27583
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27584
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27585
|
-
kind: "mutation",
|
|
27586
|
-
auth: "admin"
|
|
27587
|
-
});
|
|
27588
|
-
/**
|
|
27589
27942
|
* Optional client-side hints sent at session creation to help the provider
|
|
27590
27943
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27591
27944
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -38840,47 +39193,6 @@ var zoneRulesCapability = {
|
|
|
38840
39193
|
*/
|
|
38841
39194
|
durability: "restored"
|
|
38842
39195
|
};
|
|
38843
|
-
var NUMBER = {
|
|
38844
|
-
kind: "fixed",
|
|
38845
|
-
result: ["number"]
|
|
38846
|
-
};
|
|
38847
|
-
var BOOLEAN = {
|
|
38848
|
-
kind: "fixed",
|
|
38849
|
-
result: ["boolean"]
|
|
38850
|
-
};
|
|
38851
|
-
Object.freeze({
|
|
38852
|
-
min: NUMBER,
|
|
38853
|
-
max: NUMBER,
|
|
38854
|
-
abs: NUMBER,
|
|
38855
|
-
floor: NUMBER,
|
|
38856
|
-
ceil: NUMBER,
|
|
38857
|
-
sqrt: NUMBER,
|
|
38858
|
-
round: NUMBER,
|
|
38859
|
-
pow: NUMBER,
|
|
38860
|
-
clamp: NUMBER,
|
|
38861
|
-
avg: NUMBER,
|
|
38862
|
-
sum: NUMBER,
|
|
38863
|
-
age: NUMBER,
|
|
38864
|
-
convert: NUMBER,
|
|
38865
|
-
coalesce: { kind: "coalesce" },
|
|
38866
|
-
any: BOOLEAN,
|
|
38867
|
-
all: BOOLEAN,
|
|
38868
|
-
within: BOOLEAN,
|
|
38869
|
-
latest: {
|
|
38870
|
-
kind: "fixed",
|
|
38871
|
-
result: ["number", "null"]
|
|
38872
|
-
},
|
|
38873
|
-
number: {
|
|
38874
|
-
kind: "fixed",
|
|
38875
|
-
result: ["number", "null"]
|
|
38876
|
-
},
|
|
38877
|
-
rose: {
|
|
38878
|
-
kind: "fixed",
|
|
38879
|
-
result: ["number", "null"]
|
|
38880
|
-
},
|
|
38881
|
-
count: NUMBER
|
|
38882
|
-
});
|
|
38883
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38884
39196
|
/**
|
|
38885
39197
|
* Accessory device helpers — shared across drivers.
|
|
38886
39198
|
*
|
|
@@ -42826,6 +43138,12 @@ Object.freeze({
|
|
|
42826
43138
|
addonId: null,
|
|
42827
43139
|
access: "view"
|
|
42828
43140
|
},
|
|
43141
|
+
"coreBlocks.listComposableCaps": {
|
|
43142
|
+
capName: "core-blocks",
|
|
43143
|
+
capScope: "system",
|
|
43144
|
+
addonId: null,
|
|
43145
|
+
access: "view"
|
|
43146
|
+
},
|
|
42829
43147
|
"coreBlocks.listCompositions": {
|
|
42830
43148
|
capName: "core-blocks",
|
|
42831
43149
|
capScope: "system",
|
|
@@ -42904,6 +43222,18 @@ Object.freeze({
|
|
|
42904
43222
|
addonId: null,
|
|
42905
43223
|
access: "view"
|
|
42906
43224
|
},
|
|
43225
|
+
"databaseSnapshot.listDatabases": {
|
|
43226
|
+
capName: "database-snapshot",
|
|
43227
|
+
capScope: "system",
|
|
43228
|
+
addonId: null,
|
|
43229
|
+
access: "view"
|
|
43230
|
+
},
|
|
43231
|
+
"databaseSnapshot.writeSnapshot": {
|
|
43232
|
+
capName: "database-snapshot",
|
|
43233
|
+
capScope: "system",
|
|
43234
|
+
addonId: null,
|
|
43235
|
+
access: "create"
|
|
43236
|
+
},
|
|
42907
43237
|
"dataStoreProvider.aggregate": {
|
|
42908
43238
|
capName: "data-store-provider",
|
|
42909
43239
|
capScope: "system",
|
|
@@ -45640,6 +45970,12 @@ Object.freeze({
|
|
|
45640
45970
|
addonId: null,
|
|
45641
45971
|
access: "create"
|
|
45642
45972
|
},
|
|
45973
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45974
|
+
capName: "pipeline-analytics",
|
|
45975
|
+
capScope: "device",
|
|
45976
|
+
addonId: null,
|
|
45977
|
+
access: "delete"
|
|
45978
|
+
},
|
|
45643
45979
|
"pipelineAnalytics.clearTracks": {
|
|
45644
45980
|
capName: "pipeline-analytics",
|
|
45645
45981
|
capScope: "device",
|
|
@@ -45892,6 +46228,12 @@ Object.freeze({
|
|
|
45892
46228
|
addonId: null,
|
|
45893
46229
|
access: "view"
|
|
45894
46230
|
},
|
|
46231
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
46232
|
+
capName: "pipeline-analytics",
|
|
46233
|
+
capScope: "device",
|
|
46234
|
+
addonId: null,
|
|
46235
|
+
access: "view"
|
|
46236
|
+
},
|
|
45895
46237
|
"pipelineAnalytics.listTracks": {
|
|
45896
46238
|
capName: "pipeline-analytics",
|
|
45897
46239
|
capScope: "device",
|
|
@@ -46006,6 +46348,18 @@ Object.freeze({
|
|
|
46006
46348
|
addonId: null,
|
|
46007
46349
|
access: "create"
|
|
46008
46350
|
},
|
|
46351
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
46352
|
+
capName: "pipeline-analytics",
|
|
46353
|
+
capScope: "device",
|
|
46354
|
+
addonId: null,
|
|
46355
|
+
access: "create"
|
|
46356
|
+
},
|
|
46357
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
46358
|
+
capName: "pipeline-analytics",
|
|
46359
|
+
capScope: "device",
|
|
46360
|
+
addonId: null,
|
|
46361
|
+
access: "create"
|
|
46362
|
+
},
|
|
46009
46363
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
46010
46364
|
capName: "pipeline-analytics",
|
|
46011
46365
|
capScope: "device",
|
|
@@ -46444,6 +46798,12 @@ Object.freeze({
|
|
|
46444
46798
|
addonId: null,
|
|
46445
46799
|
access: "delete"
|
|
46446
46800
|
},
|
|
46801
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46802
|
+
capName: "pipeline-orchestrator",
|
|
46803
|
+
capScope: "system",
|
|
46804
|
+
addonId: null,
|
|
46805
|
+
access: "create"
|
|
46806
|
+
},
|
|
46447
46807
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
46448
46808
|
capName: "pipeline-orchestrator",
|
|
46449
46809
|
capScope: "system",
|
|
@@ -46510,6 +46870,12 @@ Object.freeze({
|
|
|
46510
46870
|
addonId: null,
|
|
46511
46871
|
access: "create"
|
|
46512
46872
|
},
|
|
46873
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46874
|
+
capName: "pipeline-orchestrator",
|
|
46875
|
+
capScope: "system",
|
|
46876
|
+
addonId: null,
|
|
46877
|
+
access: "create"
|
|
46878
|
+
},
|
|
46513
46879
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
46514
46880
|
capName: "pipeline-orchestrator",
|
|
46515
46881
|
capScope: "system",
|
|
@@ -49920,6 +50286,11 @@ Object.freeze({
|
|
|
49920
50286
|
form: "single",
|
|
49921
50287
|
optional: false
|
|
49922
50288
|
}],
|
|
50289
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
50290
|
+
name: "deviceId",
|
|
50291
|
+
form: "single",
|
|
50292
|
+
optional: false
|
|
50293
|
+
}],
|
|
49923
50294
|
"pipelineAnalytics.clearTracks": [{
|
|
49924
50295
|
name: "deviceId",
|
|
49925
50296
|
form: "single",
|
|
@@ -50070,6 +50441,11 @@ Object.freeze({
|
|
|
50070
50441
|
form: "single",
|
|
50071
50442
|
optional: false
|
|
50072
50443
|
}],
|
|
50444
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
50445
|
+
name: "deviceId",
|
|
50446
|
+
form: "single",
|
|
50447
|
+
optional: false
|
|
50448
|
+
}],
|
|
50073
50449
|
"pipelineAnalytics.listTracks": [{
|
|
50074
50450
|
name: "deviceId",
|
|
50075
50451
|
form: "single",
|
|
@@ -50140,6 +50516,16 @@ Object.freeze({
|
|
|
50140
50516
|
form: "single",
|
|
50141
50517
|
optional: false
|
|
50142
50518
|
}],
|
|
50519
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
50520
|
+
name: "deviceId",
|
|
50521
|
+
form: "single",
|
|
50522
|
+
optional: false
|
|
50523
|
+
}],
|
|
50524
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
50525
|
+
name: "deviceId",
|
|
50526
|
+
form: "single",
|
|
50527
|
+
optional: false
|
|
50528
|
+
}],
|
|
50143
50529
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
50144
50530
|
name: "deviceId",
|
|
50145
50531
|
form: "single",
|
|
@@ -50210,6 +50596,11 @@ Object.freeze({
|
|
|
50210
50596
|
form: "single",
|
|
50211
50597
|
optional: false
|
|
50212
50598
|
}],
|
|
50599
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50600
|
+
name: "deviceId",
|
|
50601
|
+
form: "single",
|
|
50602
|
+
optional: false
|
|
50603
|
+
}],
|
|
50213
50604
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
50214
50605
|
name: "deviceId",
|
|
50215
50606
|
form: "single",
|
|
@@ -50220,6 +50611,11 @@ Object.freeze({
|
|
|
50220
50611
|
form: "single",
|
|
50221
50612
|
optional: false
|
|
50222
50613
|
}],
|
|
50614
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50615
|
+
name: "deviceId",
|
|
50616
|
+
form: "single",
|
|
50617
|
+
optional: false
|
|
50618
|
+
}],
|
|
50223
50619
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
50224
50620
|
name: "deviceId",
|
|
50225
50621
|
form: "single",
|
|
@@ -51573,6 +51969,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
51573
51969
|
systemEventKinds: [...SUMMARISABLE],
|
|
51574
51970
|
systemEventDeliveries: ["summary"]
|
|
51575
51971
|
},
|
|
51972
|
+
{
|
|
51973
|
+
name: "summarySection",
|
|
51974
|
+
label: "Summary: this section",
|
|
51975
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51976
|
+
example: "Batterie scariche",
|
|
51977
|
+
group: "system",
|
|
51978
|
+
families: ["rule"],
|
|
51979
|
+
fields: [...RULE_TEXT],
|
|
51980
|
+
kinds: ["system"],
|
|
51981
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51982
|
+
systemEventDeliveries: ["summary"]
|
|
51983
|
+
},
|
|
51576
51984
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
51577
51985
|
name: v.name,
|
|
51578
51986
|
label: v.label,
|
|
@@ -51649,6 +52057,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
51649
52057
|
[...RULE_TEXT],
|
|
51650
52058
|
...STATE_SUMMARY_VARS
|
|
51651
52059
|
];
|
|
52060
|
+
new Set([
|
|
52061
|
+
"disarmed",
|
|
52062
|
+
"armed_home",
|
|
52063
|
+
"armed_away",
|
|
52064
|
+
"armed_night",
|
|
52065
|
+
"armed_vacation",
|
|
52066
|
+
"armed_custom_bypass",
|
|
52067
|
+
"arming",
|
|
52068
|
+
"disarming",
|
|
52069
|
+
"pending",
|
|
52070
|
+
"triggered",
|
|
52071
|
+
"open",
|
|
52072
|
+
"opening",
|
|
52073
|
+
"closing",
|
|
52074
|
+
"closed",
|
|
52075
|
+
"stopped",
|
|
52076
|
+
"locked",
|
|
52077
|
+
"unlocked",
|
|
52078
|
+
"locking",
|
|
52079
|
+
"unlocking",
|
|
52080
|
+
"jammed",
|
|
52081
|
+
"on",
|
|
52082
|
+
"off",
|
|
52083
|
+
"home",
|
|
52084
|
+
"not_home",
|
|
52085
|
+
"matched",
|
|
52086
|
+
"diverged",
|
|
52087
|
+
"unknown",
|
|
52088
|
+
"latched",
|
|
52089
|
+
"live"
|
|
52090
|
+
]);
|
|
51652
52091
|
/**
|
|
51653
52092
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
51654
52093
|
*
|