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