@camstack/addon-provider-onvif 1.2.116 → 1.2.117
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 +824 -391
- package/dist/addon.mjs +824 -391
- package/package.json +3 -2
package/dist/addon.js
CHANGED
|
@@ -5373,7 +5373,7 @@ var ZodIssueCode = {
|
|
|
5373
5373
|
var ZodFirstPartyTypeKind;
|
|
5374
5374
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5375
5375
|
//#endregion
|
|
5376
|
-
//#region ../types/dist/sleep-
|
|
5376
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5377
5377
|
/**
|
|
5378
5378
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5379
5379
|
* window to float samples (D455).
|
|
@@ -7412,7 +7412,59 @@ function errMsg(err) {
|
|
|
7412
7412
|
return String(err);
|
|
7413
7413
|
}
|
|
7414
7414
|
//#endregion
|
|
7415
|
-
//#region ../types/dist/composition-
|
|
7415
|
+
//#region ../types/dist/composition-Dq42XWp0.mjs
|
|
7416
|
+
/**
|
|
7417
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7418
|
+
*
|
|
7419
|
+
* ## Why a download, on every node, including the container
|
|
7420
|
+
*
|
|
7421
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7422
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7423
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7424
|
+
* framework bump, not an image rebuild.
|
|
7425
|
+
*
|
|
7426
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7427
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7428
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7429
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7430
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7431
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7432
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7433
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7434
|
+
*
|
|
7435
|
+
* ## Why jellyfin-ffmpeg
|
|
7436
|
+
*
|
|
7437
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7438
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7439
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7440
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7441
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7442
|
+
*
|
|
7443
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7444
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7445
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7446
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7447
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7448
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7449
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7450
|
+
*
|
|
7451
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7452
|
+
*
|
|
7453
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7454
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7455
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7456
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7457
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7458
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7459
|
+
* (D536).
|
|
7460
|
+
*/
|
|
7461
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7462
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7463
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7464
|
+
function portable(target) {
|
|
7465
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7466
|
+
}
|
|
7467
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7416
7468
|
/**
|
|
7417
7469
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7418
7470
|
* valutatore puro del suo FRONTE.
|
|
@@ -8216,7 +8268,6 @@ var CompositionSchema = object({
|
|
|
8216
8268
|
});
|
|
8217
8269
|
new Set([
|
|
8218
8270
|
"track",
|
|
8219
|
-
"summary",
|
|
8220
8271
|
"face",
|
|
8221
8272
|
"identity",
|
|
8222
8273
|
"plate",
|
|
@@ -8885,6 +8936,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8885
8936
|
/** Max rows returned, newest-first. */
|
|
8886
8937
|
limit: number().int().min(1).max(1e3).optional()
|
|
8887
8938
|
});
|
|
8939
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8940
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8941
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8942
|
+
var TrackRelationSchema = object({
|
|
8943
|
+
id: string(),
|
|
8944
|
+
deviceId: number().int(),
|
|
8945
|
+
leftTrackId: string(),
|
|
8946
|
+
rightTrackId: string(),
|
|
8947
|
+
leftSide: TrackSideSchema.nullable(),
|
|
8948
|
+
rightSide: TrackSideSchema.nullable(),
|
|
8949
|
+
relation: TrackRelationKindSchema,
|
|
8950
|
+
presence: literal("continuous").nullable(),
|
|
8951
|
+
leftStartedAt: number().int().nullable(),
|
|
8952
|
+
rightStartedAt: number().int().nullable(),
|
|
8953
|
+
createdAt: number().int(),
|
|
8954
|
+
updatedAt: number().int(),
|
|
8955
|
+
author: string().nullable()
|
|
8956
|
+
});
|
|
8957
|
+
var TrackPuritySchema = object({
|
|
8958
|
+
id: string(),
|
|
8959
|
+
deviceId: number().int(),
|
|
8960
|
+
sourceTrackId: string(),
|
|
8961
|
+
purity: TrackPurityValueSchema,
|
|
8962
|
+
switchAtMs: number().int().nullable(),
|
|
8963
|
+
startedAt: number().int().nullable(),
|
|
8964
|
+
createdAt: number().int(),
|
|
8965
|
+
updatedAt: number().int(),
|
|
8966
|
+
author: string().nullable()
|
|
8967
|
+
});
|
|
8968
|
+
var SetTrackRelationInputSchema = object({
|
|
8969
|
+
deviceId: number().int(),
|
|
8970
|
+
trackId: string().min(1),
|
|
8971
|
+
otherTrackId: string().min(1),
|
|
8972
|
+
relation: TrackRelationKindSchema,
|
|
8973
|
+
presence: literal("continuous").optional(),
|
|
8974
|
+
trackSide: TrackSideSchema.optional(),
|
|
8975
|
+
otherSide: TrackSideSchema.optional()
|
|
8976
|
+
});
|
|
8977
|
+
var ClearTrackRelationInputSchema = object({
|
|
8978
|
+
deviceId: number().int(),
|
|
8979
|
+
trackId: string().min(1),
|
|
8980
|
+
otherTrackId: string().min(1)
|
|
8981
|
+
});
|
|
8982
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
8983
|
+
var SetTrackPurityInputSchema = object({
|
|
8984
|
+
deviceId: number().int(),
|
|
8985
|
+
trackId: string().min(1),
|
|
8986
|
+
purity: _enum([
|
|
8987
|
+
"pure",
|
|
8988
|
+
"mixed",
|
|
8989
|
+
"not-a-subject"
|
|
8990
|
+
]),
|
|
8991
|
+
switchAtMs: number().int().optional()
|
|
8992
|
+
});
|
|
8993
|
+
/** `null` when `pure` cleared the row. */
|
|
8994
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
8995
|
+
var ListTrackRelationsInputSchema = object({
|
|
8996
|
+
deviceId: number().int(),
|
|
8997
|
+
trackId: string().optional(),
|
|
8998
|
+
since: number().int().optional(),
|
|
8999
|
+
until: number().int().optional(),
|
|
9000
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9001
|
+
});
|
|
9002
|
+
var ListTrackRelationsResultSchema = object({
|
|
9003
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9004
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9005
|
+
truncated: boolean()
|
|
9006
|
+
});
|
|
9007
|
+
_enum([
|
|
9008
|
+
"unknown-track",
|
|
9009
|
+
"cross-device",
|
|
9010
|
+
"self-relation",
|
|
9011
|
+
"contradiction",
|
|
9012
|
+
"switch-outside-track",
|
|
9013
|
+
"switch-needs-mixed"
|
|
9014
|
+
]);
|
|
8888
9015
|
/**
|
|
8889
9016
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8890
9017
|
* recordings and events management surfaces.
|
|
@@ -11438,6 +11565,68 @@ method(object({
|
|
|
11438
11565
|
password: string()
|
|
11439
11566
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11440
11567
|
/**
|
|
11568
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11569
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11570
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11571
|
+
* generous because a timeout fails the whole backup run.
|
|
11572
|
+
*/
|
|
11573
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11574
|
+
/**
|
|
11575
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11576
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11577
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11578
|
+
* owner's host.
|
|
11579
|
+
*/
|
|
11580
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11581
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11582
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11583
|
+
name: string(),
|
|
11584
|
+
rows: number().int().nonnegative()
|
|
11585
|
+
});
|
|
11586
|
+
/**
|
|
11587
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11588
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11589
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11590
|
+
* archiving something it cannot place.
|
|
11591
|
+
*/
|
|
11592
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11593
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11594
|
+
livePath: string(),
|
|
11595
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11596
|
+
snapshotPath: string(),
|
|
11597
|
+
sizeBytes: number().int().nonnegative(),
|
|
11598
|
+
pageCount: number().int().nonnegative(),
|
|
11599
|
+
pageSize: number().int().positive(),
|
|
11600
|
+
/**
|
|
11601
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11602
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11603
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11604
|
+
*/
|
|
11605
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11606
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11607
|
+
copyMs: number().nonnegative(),
|
|
11608
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11609
|
+
verifyMs: number().nonnegative(),
|
|
11610
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11611
|
+
takenAt: number()
|
|
11612
|
+
});
|
|
11613
|
+
/**
|
|
11614
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11615
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11616
|
+
* data dir), because an archive outlives the host that made it.
|
|
11617
|
+
*/
|
|
11618
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11619
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11620
|
+
livePath: string(),
|
|
11621
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11622
|
+
snapshotPath: string()
|
|
11623
|
+
});
|
|
11624
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11625
|
+
kind: "mutation",
|
|
11626
|
+
auth: "admin",
|
|
11627
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11628
|
+
});
|
|
11629
|
+
/**
|
|
11441
11630
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11442
11631
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11443
11632
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11548,7 +11737,12 @@ var ArchiveManifestSchema = object({
|
|
|
11548
11737
|
locations: array(string()),
|
|
11549
11738
|
entries: array(ArchiveEntrySchema),
|
|
11550
11739
|
totalBytes: number(),
|
|
11551
|
-
totalFiles: number()
|
|
11740
|
+
totalFiles: number(),
|
|
11741
|
+
/**
|
|
11742
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11743
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11744
|
+
*/
|
|
11745
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11552
11746
|
});
|
|
11553
11747
|
var LocationStatSchema = object({
|
|
11554
11748
|
name: string(),
|
|
@@ -12972,6 +13166,116 @@ var CompositionBlockStateSchema = object({
|
|
|
12972
13166
|
reason: string().optional(),
|
|
12973
13167
|
fields: array(CompositionFieldStateSchema)
|
|
12974
13168
|
});
|
|
13169
|
+
var ComposerBlockSchema = object({
|
|
13170
|
+
id: string().min(1),
|
|
13171
|
+
name: string().min(1).max(120),
|
|
13172
|
+
enabled: boolean(),
|
|
13173
|
+
updatedAt: number(),
|
|
13174
|
+
composition: CompositionSchema
|
|
13175
|
+
});
|
|
13176
|
+
/**
|
|
13177
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13178
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13179
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13180
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13181
|
+
*/
|
|
13182
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13183
|
+
id: string().min(1),
|
|
13184
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13185
|
+
name: string().nullable(),
|
|
13186
|
+
/** The parse error, in the operator's words. */
|
|
13187
|
+
error: string()
|
|
13188
|
+
});
|
|
13189
|
+
method(object({
|
|
13190
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13191
|
+
integrationId: string().nullable(),
|
|
13192
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13193
|
+
storeLoaded: boolean(),
|
|
13194
|
+
blocks: array(ComposerBlockSchema),
|
|
13195
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13196
|
+
restartBlockIds: array(string()),
|
|
13197
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13198
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13199
|
+
}), object({
|
|
13200
|
+
blocks: array(object({
|
|
13201
|
+
blockId: string(),
|
|
13202
|
+
status: CompositionRunStatusSchema,
|
|
13203
|
+
reason: string().optional()
|
|
13204
|
+
})),
|
|
13205
|
+
/**
|
|
13206
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13207
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13208
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13209
|
+
*/
|
|
13210
|
+
acted: boolean()
|
|
13211
|
+
}), {
|
|
13212
|
+
kind: "mutation",
|
|
13213
|
+
auth: "admin"
|
|
13214
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13215
|
+
var NUMBER = {
|
|
13216
|
+
kind: "fixed",
|
|
13217
|
+
result: ["number"]
|
|
13218
|
+
};
|
|
13219
|
+
var BOOLEAN = {
|
|
13220
|
+
kind: "fixed",
|
|
13221
|
+
result: ["boolean"]
|
|
13222
|
+
};
|
|
13223
|
+
Object.freeze({
|
|
13224
|
+
min: NUMBER,
|
|
13225
|
+
max: NUMBER,
|
|
13226
|
+
abs: NUMBER,
|
|
13227
|
+
floor: NUMBER,
|
|
13228
|
+
ceil: NUMBER,
|
|
13229
|
+
sqrt: NUMBER,
|
|
13230
|
+
round: NUMBER,
|
|
13231
|
+
pow: NUMBER,
|
|
13232
|
+
clamp: NUMBER,
|
|
13233
|
+
avg: NUMBER,
|
|
13234
|
+
sum: NUMBER,
|
|
13235
|
+
age: NUMBER,
|
|
13236
|
+
convert: NUMBER,
|
|
13237
|
+
coalesce: { kind: "coalesce" },
|
|
13238
|
+
any: BOOLEAN,
|
|
13239
|
+
all: BOOLEAN,
|
|
13240
|
+
within: BOOLEAN,
|
|
13241
|
+
latest: {
|
|
13242
|
+
kind: "fixed",
|
|
13243
|
+
result: ["number", "null"]
|
|
13244
|
+
},
|
|
13245
|
+
number: {
|
|
13246
|
+
kind: "fixed",
|
|
13247
|
+
result: ["number", "null"]
|
|
13248
|
+
},
|
|
13249
|
+
rose: {
|
|
13250
|
+
kind: "fixed",
|
|
13251
|
+
result: ["number", "null"]
|
|
13252
|
+
},
|
|
13253
|
+
count: NUMBER
|
|
13254
|
+
});
|
|
13255
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13256
|
+
/**
|
|
13257
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13258
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13259
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13260
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13261
|
+
* offer a feature the save would refuse for the same reason.
|
|
13262
|
+
*/
|
|
13263
|
+
var ComposableFieldSchema = object({
|
|
13264
|
+
path: string(),
|
|
13265
|
+
kind: CompositionFieldKindSchema,
|
|
13266
|
+
nullable: boolean(),
|
|
13267
|
+
required: boolean(),
|
|
13268
|
+
enumValues: array(string()).optional()
|
|
13269
|
+
});
|
|
13270
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13271
|
+
cap: string(),
|
|
13272
|
+
fields: array(ComposableFieldSchema),
|
|
13273
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13274
|
+
itemArray: object({
|
|
13275
|
+
path: string(),
|
|
13276
|
+
keyField: string()
|
|
13277
|
+
}).optional()
|
|
13278
|
+
})) });
|
|
12975
13279
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
12976
13280
|
* agent is the reason placement is not fixed to the hub. */
|
|
12977
13281
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13136,7 +13440,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13136
13440
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13137
13441
|
addonId: string().min(1),
|
|
13138
13442
|
stableId: string().min(1)
|
|
13139
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13443
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13140
13444
|
composition: CompositionSchema,
|
|
13141
13445
|
blockId: string().optional()
|
|
13142
13446
|
}), CompositionValidationSchema, {
|
|
@@ -13144,52 +13448,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13144
13448
|
auth: "admin",
|
|
13145
13449
|
access: "view"
|
|
13146
13450
|
});
|
|
13147
|
-
var ComposerBlockSchema = object({
|
|
13148
|
-
id: string().min(1),
|
|
13149
|
-
name: string().min(1).max(120),
|
|
13150
|
-
enabled: boolean(),
|
|
13151
|
-
updatedAt: number(),
|
|
13152
|
-
composition: CompositionSchema
|
|
13153
|
-
});
|
|
13154
|
-
/**
|
|
13155
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13156
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13157
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13158
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13159
|
-
*/
|
|
13160
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13161
|
-
id: string().min(1),
|
|
13162
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13163
|
-
name: string().nullable(),
|
|
13164
|
-
/** The parse error, in the operator's words. */
|
|
13165
|
-
error: string()
|
|
13166
|
-
});
|
|
13167
|
-
method(object({
|
|
13168
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13169
|
-
integrationId: string().nullable(),
|
|
13170
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13171
|
-
storeLoaded: boolean(),
|
|
13172
|
-
blocks: array(ComposerBlockSchema),
|
|
13173
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13174
|
-
restartBlockIds: array(string()),
|
|
13175
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13176
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13177
|
-
}), object({
|
|
13178
|
-
blocks: array(object({
|
|
13179
|
-
blockId: string(),
|
|
13180
|
-
status: CompositionRunStatusSchema,
|
|
13181
|
-
reason: string().optional()
|
|
13182
|
-
})),
|
|
13183
|
-
/**
|
|
13184
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13185
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13186
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13187
|
-
*/
|
|
13188
|
-
acted: boolean()
|
|
13189
|
-
}), {
|
|
13190
|
-
kind: "mutation",
|
|
13191
|
-
auth: "admin"
|
|
13192
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13193
13451
|
/**
|
|
13194
13452
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13195
13453
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15232,6 +15490,138 @@ method(object({
|
|
|
15232
15490
|
deviceIds: array(number()).readonly(),
|
|
15233
15491
|
caps: array(string()).readonly().optional()
|
|
15234
15492
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15493
|
+
object({
|
|
15494
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15495
|
+
lastPressedAt: number().nullable(),
|
|
15496
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15497
|
+
pressCountSinceStart: number()
|
|
15498
|
+
});
|
|
15499
|
+
object({
|
|
15500
|
+
deviceId: number(),
|
|
15501
|
+
timestamp: number()
|
|
15502
|
+
});
|
|
15503
|
+
/**
|
|
15504
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15505
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15506
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15507
|
+
*/
|
|
15508
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15509
|
+
DeviceType.Camera;
|
|
15510
|
+
DeviceType.Button, DeviceType.Camera;
|
|
15511
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15512
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
15513
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15514
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15515
|
+
DeviceType.Camera;
|
|
15516
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15517
|
+
state: literal("unreachable"),
|
|
15518
|
+
reason: string()
|
|
15519
|
+
})]);
|
|
15520
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15521
|
+
var ExtensionSourceSchema = object({
|
|
15522
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15523
|
+
source: string(),
|
|
15524
|
+
label: string(),
|
|
15525
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15526
|
+
addonId: string().optional(),
|
|
15527
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15528
|
+
});
|
|
15529
|
+
/**
|
|
15530
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15531
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15532
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15533
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15534
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15535
|
+
*/
|
|
15536
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15537
|
+
"ok",
|
|
15538
|
+
"missing",
|
|
15539
|
+
"foreign",
|
|
15540
|
+
"unavailable"
|
|
15541
|
+
]);
|
|
15542
|
+
var ExtensionSlotSourceSchema = object({
|
|
15543
|
+
deviceId: number().int(),
|
|
15544
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15545
|
+
name: string().nullable(),
|
|
15546
|
+
health: ExtensionSourceHealthSchema,
|
|
15547
|
+
detail: string().optional()
|
|
15548
|
+
});
|
|
15549
|
+
/**
|
|
15550
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15551
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
15552
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
15553
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
15554
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
15555
|
+
*/
|
|
15556
|
+
var ExtensionSlotActivationSchema = object({
|
|
15557
|
+
state: _enum([
|
|
15558
|
+
"active",
|
|
15559
|
+
"inactive",
|
|
15560
|
+
"unknown"
|
|
15561
|
+
]),
|
|
15562
|
+
authority: string(),
|
|
15563
|
+
detail: string().optional()
|
|
15564
|
+
});
|
|
15565
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15566
|
+
state: literal("ok"),
|
|
15567
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15568
|
+
slotRef: string(),
|
|
15569
|
+
slot: ExtensionSlotIdSchema,
|
|
15570
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
15571
|
+
authority: string(),
|
|
15572
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15573
|
+
value: ExtensionSlotValueSchema,
|
|
15574
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15575
|
+
/**
|
|
15576
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15577
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15578
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15579
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15580
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15581
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15582
|
+
* older than D655.
|
|
15583
|
+
*/
|
|
15584
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15585
|
+
}), object({
|
|
15586
|
+
state: literal("unreachable"),
|
|
15587
|
+
addonId: string(),
|
|
15588
|
+
reason: string()
|
|
15589
|
+
})]);
|
|
15590
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15591
|
+
deviceId: number().int(),
|
|
15592
|
+
name: string(),
|
|
15593
|
+
type: string(),
|
|
15594
|
+
location: string().nullable(),
|
|
15595
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15596
|
+
parentName: string().nullable(),
|
|
15597
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15598
|
+
suggested: boolean(),
|
|
15599
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15600
|
+
reason: string().nullable()
|
|
15601
|
+
})) });
|
|
15602
|
+
/**
|
|
15603
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15604
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15605
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15606
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15607
|
+
*/
|
|
15608
|
+
var ExtensionSetResultSchema = object({
|
|
15609
|
+
applied: literal(true),
|
|
15610
|
+
reload: _enum([
|
|
15611
|
+
"none",
|
|
15612
|
+
"host",
|
|
15613
|
+
"parent"
|
|
15614
|
+
])
|
|
15615
|
+
});
|
|
15616
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15617
|
+
deviceId: number().int(),
|
|
15618
|
+
slotRef: string().min(1)
|
|
15619
|
+
});
|
|
15620
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15621
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15622
|
+
kind: "mutation",
|
|
15623
|
+
auth: "admin"
|
|
15624
|
+
});
|
|
15235
15625
|
/**
|
|
15236
15626
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15237
15627
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -18204,17 +18594,25 @@ var NcScheduleSchema = object({
|
|
|
18204
18594
|
*/
|
|
18205
18595
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18206
18596
|
/**
|
|
18597
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
18598
|
+
* every section; `section` = one notification per section with something to
|
|
18599
|
+
* say (an unavailable section included), each titled by its section.
|
|
18600
|
+
*/
|
|
18601
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
18602
|
+
/**
|
|
18207
18603
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18208
18604
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18209
18605
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18210
|
-
* available, ...), after its own filters
|
|
18606
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
18607
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18211
18608
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18212
18609
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18213
18610
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18214
18611
|
*/
|
|
18215
18612
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18216
18613
|
mode: literal("summary"),
|
|
18217
|
-
schedule: NcScheduleSchema
|
|
18614
|
+
schedule: NcScheduleSchema,
|
|
18615
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18218
18616
|
})]);
|
|
18219
18617
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18220
18618
|
var NcPlateMatcherSchema = object({
|
|
@@ -18354,8 +18752,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18354
18752
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18355
18753
|
var NcZoneConditionSchema = object({
|
|
18356
18754
|
ids: array(string().min(1)).min(1),
|
|
18357
|
-
/**
|
|
18358
|
-
|
|
18755
|
+
/**
|
|
18756
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
18757
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
18758
|
+
* removed from the editors because on an immediate rule it asked one
|
|
18759
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
18760
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
18761
|
+
*/
|
|
18762
|
+
match: _enum(["any", "all"]).optional()
|
|
18359
18763
|
});
|
|
18360
18764
|
/**
|
|
18361
18765
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -18859,10 +19263,12 @@ var NcMediaPolicySchema = object({
|
|
|
18859
19263
|
/**
|
|
18860
19264
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
18861
19265
|
* notification suppresses.
|
|
18862
|
-
* - `
|
|
18863
|
-
*
|
|
18864
|
-
*
|
|
18865
|
-
*
|
|
19266
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19267
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19268
|
+
* still waits.
|
|
19269
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19270
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19271
|
+
* longer what an unset rule means.
|
|
18866
19272
|
*
|
|
18867
19273
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
18868
19274
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -18877,8 +19283,11 @@ var NcThrottleSchema = object({
|
|
|
18877
19283
|
/**
|
|
18878
19284
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
18879
19285
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
18880
|
-
* rule authored before this field simply carries none
|
|
18881
|
-
*
|
|
19286
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19287
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19288
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19289
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19290
|
+
* engine, and D36's dated note.
|
|
18882
19291
|
*/
|
|
18883
19292
|
granularity: NcThrottleGranularitySchema.optional()
|
|
18884
19293
|
});
|
|
@@ -19202,11 +19611,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19202
19611
|
reason: string().optional()
|
|
19203
19612
|
});
|
|
19204
19613
|
/**
|
|
19614
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
19615
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19616
|
+
*/
|
|
19617
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
19618
|
+
section: string().optional(),
|
|
19619
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19620
|
+
title: string(),
|
|
19621
|
+
text: string(),
|
|
19622
|
+
count: number().int().nonnegative()
|
|
19623
|
+
});
|
|
19624
|
+
/**
|
|
19205
19625
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19206
19626
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19207
19627
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19208
19628
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19209
|
-
* (backups & exports).
|
|
19629
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
19630
|
+
* optional, so an older hub's answer still parses.
|
|
19210
19631
|
*/
|
|
19211
19632
|
var NcStateSummaryPreviewSchema = object({
|
|
19212
19633
|
empty: boolean(),
|
|
@@ -19214,7 +19635,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19214
19635
|
text: string(),
|
|
19215
19636
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19216
19637
|
dropped: record(string(), number().int().nonnegative()),
|
|
19217
|
-
excludedGroups: array(string())
|
|
19638
|
+
excludedGroups: array(string()),
|
|
19639
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
19640
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19218
19641
|
});
|
|
19219
19642
|
var NcTestResultSchema = object({
|
|
19220
19643
|
recordId: string(),
|
|
@@ -20212,6 +20635,102 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
20212
20635
|
});
|
|
20213
20636
|
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
20214
20637
|
/**
|
|
20638
|
+
* What started a camera's onboard motion (D672). `camera` is the camera's own
|
|
20639
|
+
* firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
|
|
20640
|
+
* wire means the camera: only the camera-sensors bridge ever says `sensor`.
|
|
20641
|
+
*/
|
|
20642
|
+
var MotionTriggeredBySchema = discriminatedUnion("kind", [object({ kind: literal("camera") }), object({
|
|
20643
|
+
kind: literal("sensor"),
|
|
20644
|
+
deviceId: number().int().positive()
|
|
20645
|
+
})]);
|
|
20646
|
+
Object.freeze({ kind: "camera" });
|
|
20647
|
+
var CameraSensorRefSchema = object({
|
|
20648
|
+
addonId: string().min(1),
|
|
20649
|
+
stableId: string().min(1)
|
|
20650
|
+
});
|
|
20651
|
+
function cameraSensorRefKey(ref) {
|
|
20652
|
+
return `${ref.addonId}/${ref.stableId}`;
|
|
20653
|
+
}
|
|
20654
|
+
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
20655
|
+
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
20656
|
+
var CameraSensorsConfigSchema = object({
|
|
20657
|
+
mode: CameraSensorsModeSchema,
|
|
20658
|
+
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
20659
|
+
}).superRefine((value, ctx) => {
|
|
20660
|
+
const seen = /* @__PURE__ */ new Set();
|
|
20661
|
+
value.sensors.forEach((ref, index) => {
|
|
20662
|
+
const key = cameraSensorRefKey(ref);
|
|
20663
|
+
if (seen.has(key)) ctx.addIssue({
|
|
20664
|
+
code: "custom",
|
|
20665
|
+
path: ["sensors", index],
|
|
20666
|
+
message: `duplicate camera sensor ${key}`
|
|
20667
|
+
});
|
|
20668
|
+
seen.add(key);
|
|
20669
|
+
});
|
|
20670
|
+
});
|
|
20671
|
+
var RefFields = {
|
|
20672
|
+
addonId: string(),
|
|
20673
|
+
stableId: string()
|
|
20674
|
+
};
|
|
20675
|
+
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20676
|
+
object({
|
|
20677
|
+
...RefFields,
|
|
20678
|
+
state: literal("ready"),
|
|
20679
|
+
deviceId: number(),
|
|
20680
|
+
name: string(),
|
|
20681
|
+
caps: array(string()).readonly()
|
|
20682
|
+
}),
|
|
20683
|
+
object({
|
|
20684
|
+
...RefFields,
|
|
20685
|
+
state: literal("offline"),
|
|
20686
|
+
deviceId: number(),
|
|
20687
|
+
name: string(),
|
|
20688
|
+
reason: _enum(["offline", "disabled"])
|
|
20689
|
+
}),
|
|
20690
|
+
object({
|
|
20691
|
+
...RefFields,
|
|
20692
|
+
state: literal("missing"),
|
|
20693
|
+
reason: string()
|
|
20694
|
+
}),
|
|
20695
|
+
object({
|
|
20696
|
+
...RefFields,
|
|
20697
|
+
state: literal("unsupported"),
|
|
20698
|
+
deviceId: number(),
|
|
20699
|
+
name: string(),
|
|
20700
|
+
reason: string()
|
|
20701
|
+
}),
|
|
20702
|
+
object({
|
|
20703
|
+
...RefFields,
|
|
20704
|
+
state: literal("unreadable"),
|
|
20705
|
+
reason: string()
|
|
20706
|
+
})
|
|
20707
|
+
]);
|
|
20708
|
+
/**
|
|
20709
|
+
* Why a configured camera forwards NOTHING from its sensors, however ready they
|
|
20710
|
+
* are (D672): it does not list `onboard` in `motionSources` (attaching a sensor
|
|
20711
|
+
* does not add it), or it has no active detection config at all (the bridge
|
|
20712
|
+
* reads the active config). Absent = forwarded, or an older node that does not
|
|
20713
|
+
* say.
|
|
20714
|
+
*/
|
|
20715
|
+
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
20716
|
+
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
20717
|
+
object({ state: literal("not-configured") }),
|
|
20718
|
+
object({
|
|
20719
|
+
state: literal("unreadable"),
|
|
20720
|
+
reason: string()
|
|
20721
|
+
}),
|
|
20722
|
+
object({
|
|
20723
|
+
state: literal("configured"),
|
|
20724
|
+
mode: CameraSensorsModeSchema,
|
|
20725
|
+
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
20726
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional()
|
|
20727
|
+
})
|
|
20728
|
+
]);
|
|
20729
|
+
Object.freeze({
|
|
20730
|
+
state: "unreadable",
|
|
20731
|
+
reason: "camera sensor mappings not loaded"
|
|
20732
|
+
});
|
|
20733
|
+
/**
|
|
20215
20734
|
* A model choice has a SCOPE, and a scope change has a workflow.
|
|
20216
20735
|
*
|
|
20217
20736
|
* ## The two scopes
|
|
@@ -20960,6 +21479,12 @@ var MotionEventSchema = object({
|
|
|
20960
21479
|
/** Populated by B5 (recording playback URL for this event). */
|
|
20961
21480
|
mediaUrl: string().optional(),
|
|
20962
21481
|
/**
|
|
21482
|
+
* The FIRST trigger of an `onboard` episode, written once at open (D672).
|
|
21483
|
+
* Absent = not recorded (a row written before D672, or an analyzer /
|
|
21484
|
+
* device-activity episode) — never read as "the camera" (D393).
|
|
21485
|
+
*/
|
|
21486
|
+
triggeredBy: MotionTriggeredBySchema.optional(),
|
|
21487
|
+
/**
|
|
20963
21488
|
* One row per motion EPISODE, not one per push (D475). `null` while the
|
|
20964
21489
|
* episode is still open — a further rising edge extends it in place rather
|
|
20965
21490
|
* than inserting a new row. Set once, at close, to `lastOnAt - startedAt`
|
|
@@ -21118,6 +21643,21 @@ var ObjectEventSchema = object({
|
|
|
21118
21643
|
keyFrameMediaId: number().int().optional(),
|
|
21119
21644
|
/** Populated by B5 (recording playback URL for this event). */
|
|
21120
21645
|
mediaUrl: string().optional(),
|
|
21646
|
+
/**
|
|
21647
|
+
* When the change this row records HAPPENED, epoch ms, when that is earlier
|
|
21648
|
+
* than {@link timestamp} and the producer could date it (D684).
|
|
21649
|
+
*
|
|
21650
|
+
* Set on a package PICK-UP row only: its `timestamp` is when the departure
|
|
21651
|
+
* was CONCLUDED — five minutes of unseen observed time after the parcel went
|
|
21652
|
+
* — and a notification's footage has to be cut around the pick-up, not the
|
|
21653
|
+
* empty doormat after it (D682). Stored so every path that rebuilds a
|
|
21654
|
+
* notification subject from the row (the boot reconcile, a dry-run) anchors
|
|
21655
|
+
* on the same instant the live hook did.
|
|
21656
|
+
*
|
|
21657
|
+
* `timestamp` keeps its meaning. Absent on every other row and on every
|
|
21658
|
+
* pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
|
|
21659
|
+
*/
|
|
21660
|
+
observedAt: number().optional(),
|
|
21121
21661
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
21122
21662
|
* event of the track (so an event row can be sorted by importance without a
|
|
21123
21663
|
* track join). Absent on legacy rows / before the track was scored. */
|
|
@@ -21453,131 +21993,6 @@ var RecentTracksQueryInput = object({
|
|
|
21453
21993
|
/** See {@link ExcludeSourcesDoc}. */
|
|
21454
21994
|
excludeSources: array(TrackSourceSchema).optional()
|
|
21455
21995
|
});
|
|
21456
|
-
/**
|
|
21457
|
-
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
21458
|
-
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
21459
|
-
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
21460
|
-
* first frame with a member visible has been materialised (D482 — it was the
|
|
21461
|
-
* row's composite key, which embedded the owner and could name another table's
|
|
21462
|
-
* row once event ids became per-table rowids).
|
|
21463
|
-
*/
|
|
21464
|
-
var SummarySchema = object({
|
|
21465
|
-
id: string(),
|
|
21466
|
-
deviceId: number(),
|
|
21467
|
-
openedAt: number(),
|
|
21468
|
-
lastActiveAt: number(),
|
|
21469
|
-
sealedAt: number().nullable(),
|
|
21470
|
-
memberCount: number().int().nonnegative(),
|
|
21471
|
-
groupShotMediaId: number().int().nullable()
|
|
21472
|
-
});
|
|
21473
|
-
var SummariesQueryInput = object({
|
|
21474
|
-
deviceIds: array(number()).min(1),
|
|
21475
|
-
since: number().optional(),
|
|
21476
|
-
until: number().optional(),
|
|
21477
|
-
limit: number().int().min(1).max(200).default(50),
|
|
21478
|
-
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
21479
|
-
* meaning of "dog" on every summary surface. */
|
|
21480
|
-
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21481
|
-
});
|
|
21482
|
-
var SummaryDetailSchema = object({
|
|
21483
|
-
summary: SummarySchema,
|
|
21484
|
-
/** Members in absorption order, oldest join first. */
|
|
21485
|
-
members: array(object({
|
|
21486
|
-
trackId: string(),
|
|
21487
|
-
/**
|
|
21488
|
-
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
21489
|
-
* and the track no longer exists to fill it.
|
|
21490
|
-
*
|
|
21491
|
-
* The join, not the latest opinion: class voting can re-decide a track's
|
|
21492
|
-
* class afterwards, and a group's composition is the history of who came
|
|
21493
|
-
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
21494
|
-
* dog" — rather than being handed a second, denormalised tally that would
|
|
21495
|
-
* drift from the members it claims to describe.
|
|
21496
|
-
*/
|
|
21497
|
-
className: string().nullable(),
|
|
21498
|
-
/** `primary` is the one member that carries the group's identity. */
|
|
21499
|
-
role: _enum([
|
|
21500
|
-
"primary",
|
|
21501
|
-
"sibling",
|
|
21502
|
-
"child"
|
|
21503
|
-
]).nullable(),
|
|
21504
|
-
joinedAt: number(),
|
|
21505
|
-
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
21506
|
-
* at read time. Absent when nothing resolved, never an empty string. */
|
|
21507
|
-
label: string().optional(),
|
|
21508
|
-
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
21509
|
-
* recognised nobody, and absent for a member whose track has been pruned —
|
|
21510
|
-
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
21511
|
-
subLabel: string().optional()
|
|
21512
|
-
})).readonly()
|
|
21513
|
-
});
|
|
21514
|
-
/**
|
|
21515
|
-
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
21516
|
-
*
|
|
21517
|
-
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
21518
|
-
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
21519
|
-
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
21520
|
-
* are on {@link getSummary}: shipping every member of every group so a client
|
|
21521
|
-
* can count them turns a page of two hundred groups into a thousand records to
|
|
21522
|
-
* draw two hundred badges.
|
|
21523
|
-
*/
|
|
21524
|
-
var SummaryListItemSchema = object({
|
|
21525
|
-
summary: SummarySchema,
|
|
21526
|
-
/** Class counts, most numerous first; `className: null` is a member whose
|
|
21527
|
-
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
21528
|
-
classes: array(object({
|
|
21529
|
-
className: string().nullable(),
|
|
21530
|
-
count: number().int().positive()
|
|
21531
|
-
})).readonly()
|
|
21532
|
-
});
|
|
21533
|
-
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
21534
|
-
/**
|
|
21535
|
-
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
21536
|
-
*
|
|
21537
|
-
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
21538
|
-
* summaries feed that could only answer "the last N for these cameras"
|
|
21539
|
-
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
21540
|
-
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
21541
|
-
* "newest" means, on one screen.
|
|
21542
|
-
*/
|
|
21543
|
-
var RecentSummariesQueryInput = object({
|
|
21544
|
-
/** Devices to merge. An empty array yields an empty page. */
|
|
21545
|
-
deviceIds: array(number()),
|
|
21546
|
-
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
21547
|
-
since: number().optional(),
|
|
21548
|
-
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
21549
|
-
until: number().optional(),
|
|
21550
|
-
limit: number().int().min(1).max(500).default(100),
|
|
21551
|
-
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
21552
|
-
cursor: string().optional(),
|
|
21553
|
-
/**
|
|
21554
|
-
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
21555
|
-
* deliberately the same name: the events filter tree emits one list of ticked
|
|
21556
|
-
* taxonomy nodes, and a summaries feed that called it something else would
|
|
21557
|
-
* make the operator's one filter component produce two shapes.
|
|
21558
|
-
*
|
|
21559
|
-
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
21560
|
-
* me the arrivals with a dog" has to return the group of four people who had
|
|
21561
|
-
* one with them; a filter on the group's own fields could only ever answer
|
|
21562
|
-
* about its primary.
|
|
21563
|
-
*
|
|
21564
|
-
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
21565
|
-
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
21566
|
-
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
21567
|
-
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
21568
|
-
* that read only the class would answer "animal" and never "dog".
|
|
21569
|
-
*
|
|
21570
|
-
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
21571
|
-
*/
|
|
21572
|
-
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21573
|
-
});
|
|
21574
|
-
var RecentSummariesPageSchema = object({
|
|
21575
|
-
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
21576
|
-
* {@link listSummaries} — one list shape, so a card renders the same
|
|
21577
|
-
* whichever feed drew it. */
|
|
21578
|
-
summaries: array(SummaryListItemSchema).readonly(),
|
|
21579
|
-
nextCursor: string().nullable()
|
|
21580
|
-
});
|
|
21581
21996
|
var RecentTracksPageSchema = object({
|
|
21582
21997
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
21583
21998
|
tracks: array(TrackSchema).readonly(),
|
|
@@ -22089,7 +22504,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22089
22504
|
classes: array(string()).optional(),
|
|
22090
22505
|
/** See {@link ExcludeSourcesDoc}. */
|
|
22091
22506
|
excludeSources: array(TrackSourceSchema).optional()
|
|
22092
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
22507
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
22093
22508
|
kind: "mutation",
|
|
22094
22509
|
auth: "admin"
|
|
22095
22510
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -22143,7 +22558,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22143
22558
|
trackIds: array(string()).min(1)
|
|
22144
22559
|
}), object({
|
|
22145
22560
|
deleted: number().int(),
|
|
22146
|
-
failed: array(string()).readonly()
|
|
22561
|
+
failed: array(string()).readonly(),
|
|
22562
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22147
22563
|
}), {
|
|
22148
22564
|
kind: "mutation",
|
|
22149
22565
|
auth: "admin"
|
|
@@ -22152,7 +22568,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22152
22568
|
deviceId: number(),
|
|
22153
22569
|
trackId: string(),
|
|
22154
22570
|
flags: TrackFlagsPatchSchema
|
|
22155
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22571
|
+
}), 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, {
|
|
22156
22572
|
kind: "query",
|
|
22157
22573
|
auth: "admin"
|
|
22158
22574
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -23269,6 +23685,23 @@ var MotionSourceEnum = _enum([
|
|
|
23269
23685
|
*/
|
|
23270
23686
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
23271
23687
|
/**
|
|
23688
|
+
* The operator-facing name of each MOTION source (D672: `onboard` = the
|
|
23689
|
+
* camera's sensors — its own motion plus any sensor attached to it). The wire
|
|
23690
|
+
* value stays `onboard`; only the label changed. `detectionSources: 'onboard'`
|
|
23691
|
+
* ("Camera onboard AI") and the notification source filter keep their labels.
|
|
23692
|
+
*/
|
|
23693
|
+
var MOTION_SOURCE_LABELS = {
|
|
23694
|
+
analyzer: "Frame-diff Analyzer (motion addon)",
|
|
23695
|
+
onboard: "Camera sensors",
|
|
23696
|
+
"device-activity": "Device activity (the device says it is working)"
|
|
23697
|
+
};
|
|
23698
|
+
/** The order the motion-source picker offers them in (not the enum's order). */
|
|
23699
|
+
var MOTION_SOURCE_PICKER_ORDER = [
|
|
23700
|
+
"analyzer",
|
|
23701
|
+
"onboard",
|
|
23702
|
+
"device-activity"
|
|
23703
|
+
];
|
|
23704
|
+
/**
|
|
23272
23705
|
* Which root detector a camera runs — EXACTLY ONE.
|
|
23273
23706
|
*
|
|
23274
23707
|
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
@@ -23615,7 +24048,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
23615
24048
|
*/
|
|
23616
24049
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
23617
24050
|
});
|
|
23618
|
-
|
|
24051
|
+
MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
|
|
24052
|
+
value,
|
|
24053
|
+
label: MOTION_SOURCE_LABELS[value],
|
|
24054
|
+
description: "The camera's own motion, plus any sensor attached to it"
|
|
24055
|
+
} : {
|
|
24056
|
+
value,
|
|
24057
|
+
label: MOTION_SOURCE_LABELS[value]
|
|
24058
|
+
}), motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
23619
24059
|
/**
|
|
23620
24060
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
23621
24061
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -24189,6 +24629,11 @@ var CameraStatusSchema = object({
|
|
|
24189
24629
|
*/
|
|
24190
24630
|
switchedOff: array(CameraSwitchIdSchema).readonly(),
|
|
24191
24631
|
/**
|
|
24632
|
+
* The camera's attached sensors (D672). Optional only for a status composed
|
|
24633
|
+
* by an orchestrator older than D672; this orchestrator always sets it.
|
|
24634
|
+
*/
|
|
24635
|
+
cameraSensors: CameraSensorsStatusSchema.optional(),
|
|
24636
|
+
/**
|
|
24192
24637
|
* Stages of the bounded fan-out that were CUT SHORT — a timeout or a
|
|
24193
24638
|
* rejection — and whose block is therefore `null` because we could not
|
|
24194
24639
|
* READ it, not because there is nothing there.
|
|
@@ -24281,7 +24726,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24281
24726
|
reachable: boolean(),
|
|
24282
24727
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24283
24728
|
});
|
|
24284
|
-
|
|
24729
|
+
/**
|
|
24730
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
24731
|
+
*
|
|
24732
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
24733
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
24734
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
24735
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
24736
|
+
* settings store so they survive hub restarts.
|
|
24737
|
+
*
|
|
24738
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
24739
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
24740
|
+
*/
|
|
24741
|
+
/**
|
|
24742
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
24743
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
24744
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
24745
|
+
*/
|
|
24746
|
+
var SetCameraSensorsInputSchema = object({
|
|
24747
|
+
deviceId: number().int().nonnegative(),
|
|
24748
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
24749
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
24750
|
+
});
|
|
24751
|
+
/**
|
|
24752
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
24753
|
+
*
|
|
24754
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
24755
|
+
* node and no config to attach a burst with.
|
|
24756
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
24757
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
24758
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
24759
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
24760
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
24761
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
24762
|
+
* real session re-arms the budget.
|
|
24763
|
+
*/
|
|
24764
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
24765
|
+
"unknown-camera",
|
|
24766
|
+
"out-of-range",
|
|
24767
|
+
"no-burst-producer",
|
|
24768
|
+
"already-looked"
|
|
24769
|
+
]);
|
|
24770
|
+
method(object({
|
|
24771
|
+
deviceId: number().int().nonnegative(),
|
|
24772
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
24773
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
24774
|
+
afterMs: number().finite(),
|
|
24775
|
+
/** Why, for the log. */
|
|
24776
|
+
reason: string()
|
|
24777
|
+
}), object({
|
|
24778
|
+
scheduled: boolean(),
|
|
24779
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
24780
|
+
dueInMs: number().optional(),
|
|
24781
|
+
/** When not `scheduled`: why. */
|
|
24782
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
24783
|
+
}), {
|
|
24784
|
+
kind: "mutation",
|
|
24785
|
+
auth: "admin"
|
|
24786
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24285
24787
|
kind: "mutation",
|
|
24286
24788
|
auth: "admin"
|
|
24287
24789
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24435,7 +24937,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24435
24937
|
}), CameraSwitchGroupSchema, {
|
|
24436
24938
|
kind: "mutation",
|
|
24437
24939
|
auth: "admin"
|
|
24438
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
24940
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
24941
|
+
kind: "mutation",
|
|
24942
|
+
auth: "admin"
|
|
24943
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24439
24944
|
kind: "mutation",
|
|
24440
24945
|
auth: "admin"
|
|
24441
24946
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -26715,138 +27220,6 @@ DeviceType.Camera, method(object({
|
|
|
26715
27220
|
kind: "query",
|
|
26716
27221
|
auth: "protected"
|
|
26717
27222
|
});
|
|
26718
|
-
object({
|
|
26719
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
26720
|
-
lastPressedAt: number().nullable(),
|
|
26721
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
26722
|
-
pressCountSinceStart: number()
|
|
26723
|
-
});
|
|
26724
|
-
object({
|
|
26725
|
-
deviceId: number(),
|
|
26726
|
-
timestamp: number()
|
|
26727
|
-
});
|
|
26728
|
-
/**
|
|
26729
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
26730
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
26731
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
26732
|
-
*/
|
|
26733
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
26734
|
-
DeviceType.Camera;
|
|
26735
|
-
DeviceType.Button, DeviceType.Camera;
|
|
26736
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
26737
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
26738
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
26739
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
26740
|
-
DeviceType.Camera;
|
|
26741
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
26742
|
-
state: literal("unreachable"),
|
|
26743
|
-
reason: string()
|
|
26744
|
-
})]);
|
|
26745
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
26746
|
-
var ExtensionSourceSchema = object({
|
|
26747
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
26748
|
-
source: string(),
|
|
26749
|
-
label: string(),
|
|
26750
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
26751
|
-
addonId: string().optional(),
|
|
26752
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
26753
|
-
});
|
|
26754
|
-
/**
|
|
26755
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
26756
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
26757
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
26758
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
26759
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
26760
|
-
*/
|
|
26761
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
26762
|
-
"ok",
|
|
26763
|
-
"missing",
|
|
26764
|
-
"foreign",
|
|
26765
|
-
"unavailable"
|
|
26766
|
-
]);
|
|
26767
|
-
var ExtensionSlotSourceSchema = object({
|
|
26768
|
-
deviceId: number().int(),
|
|
26769
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
26770
|
-
name: string().nullable(),
|
|
26771
|
-
health: ExtensionSourceHealthSchema,
|
|
26772
|
-
detail: string().optional()
|
|
26773
|
-
});
|
|
26774
|
-
/**
|
|
26775
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
26776
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
26777
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
26778
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
26779
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
26780
|
-
*/
|
|
26781
|
-
var ExtensionSlotActivationSchema = object({
|
|
26782
|
-
state: _enum([
|
|
26783
|
-
"active",
|
|
26784
|
-
"inactive",
|
|
26785
|
-
"unknown"
|
|
26786
|
-
]),
|
|
26787
|
-
authority: string(),
|
|
26788
|
-
detail: string().optional()
|
|
26789
|
-
});
|
|
26790
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
26791
|
-
state: literal("ok"),
|
|
26792
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
26793
|
-
slotRef: string(),
|
|
26794
|
-
slot: ExtensionSlotIdSchema,
|
|
26795
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
26796
|
-
authority: string(),
|
|
26797
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
26798
|
-
value: ExtensionSlotValueSchema,
|
|
26799
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
26800
|
-
/**
|
|
26801
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
26802
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
26803
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
26804
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
26805
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
26806
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
26807
|
-
* older than D655.
|
|
26808
|
-
*/
|
|
26809
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
26810
|
-
}), object({
|
|
26811
|
-
state: literal("unreachable"),
|
|
26812
|
-
addonId: string(),
|
|
26813
|
-
reason: string()
|
|
26814
|
-
})]);
|
|
26815
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
26816
|
-
deviceId: number().int(),
|
|
26817
|
-
name: string(),
|
|
26818
|
-
type: string(),
|
|
26819
|
-
location: string().nullable(),
|
|
26820
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
26821
|
-
parentName: string().nullable(),
|
|
26822
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
26823
|
-
suggested: boolean(),
|
|
26824
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
26825
|
-
reason: string().nullable()
|
|
26826
|
-
})) });
|
|
26827
|
-
/**
|
|
26828
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
26829
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
26830
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
26831
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
26832
|
-
*/
|
|
26833
|
-
var ExtensionSetResultSchema = object({
|
|
26834
|
-
applied: literal(true),
|
|
26835
|
-
reload: _enum([
|
|
26836
|
-
"none",
|
|
26837
|
-
"host",
|
|
26838
|
-
"parent"
|
|
26839
|
-
])
|
|
26840
|
-
});
|
|
26841
|
-
var ExtensionSlotRefInputSchema = object({
|
|
26842
|
-
deviceId: number().int(),
|
|
26843
|
-
slotRef: string().min(1)
|
|
26844
|
-
});
|
|
26845
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
26846
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
26847
|
-
kind: "mutation",
|
|
26848
|
-
auth: "admin"
|
|
26849
|
-
});
|
|
26850
27223
|
/**
|
|
26851
27224
|
* Optional client-side hints sent at session creation to help the provider
|
|
26852
27225
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -30364,7 +30737,9 @@ object({
|
|
|
30364
30737
|
detected: boolean(),
|
|
30365
30738
|
timestamp: number(),
|
|
30366
30739
|
source: MotionSourceEnum,
|
|
30367
|
-
regions: array(MotionRegionSchema).readonly().optional()
|
|
30740
|
+
regions: array(MotionRegionSchema).readonly().optional(),
|
|
30741
|
+
/** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
|
|
30742
|
+
triggeredBy: MotionTriggeredBySchema.optional()
|
|
30368
30743
|
});
|
|
30369
30744
|
DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
|
|
30370
30745
|
object({
|
|
@@ -35530,47 +35905,6 @@ DeviceType.Camera, method(object({
|
|
|
35530
35905
|
detection: array(ZoneRuleSchema).readonly(),
|
|
35531
35906
|
package: array(ZoneRuleSchema).readonly()
|
|
35532
35907
|
});
|
|
35533
|
-
var NUMBER = {
|
|
35534
|
-
kind: "fixed",
|
|
35535
|
-
result: ["number"]
|
|
35536
|
-
};
|
|
35537
|
-
var BOOLEAN = {
|
|
35538
|
-
kind: "fixed",
|
|
35539
|
-
result: ["boolean"]
|
|
35540
|
-
};
|
|
35541
|
-
Object.freeze({
|
|
35542
|
-
min: NUMBER,
|
|
35543
|
-
max: NUMBER,
|
|
35544
|
-
abs: NUMBER,
|
|
35545
|
-
floor: NUMBER,
|
|
35546
|
-
ceil: NUMBER,
|
|
35547
|
-
sqrt: NUMBER,
|
|
35548
|
-
round: NUMBER,
|
|
35549
|
-
pow: NUMBER,
|
|
35550
|
-
clamp: NUMBER,
|
|
35551
|
-
avg: NUMBER,
|
|
35552
|
-
sum: NUMBER,
|
|
35553
|
-
age: NUMBER,
|
|
35554
|
-
convert: NUMBER,
|
|
35555
|
-
coalesce: { kind: "coalesce" },
|
|
35556
|
-
any: BOOLEAN,
|
|
35557
|
-
all: BOOLEAN,
|
|
35558
|
-
within: BOOLEAN,
|
|
35559
|
-
latest: {
|
|
35560
|
-
kind: "fixed",
|
|
35561
|
-
result: ["number", "null"]
|
|
35562
|
-
},
|
|
35563
|
-
number: {
|
|
35564
|
-
kind: "fixed",
|
|
35565
|
-
result: ["number", "null"]
|
|
35566
|
-
},
|
|
35567
|
-
rose: {
|
|
35568
|
-
kind: "fixed",
|
|
35569
|
-
result: ["number", "null"]
|
|
35570
|
-
},
|
|
35571
|
-
count: NUMBER
|
|
35572
|
-
});
|
|
35573
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
35574
35908
|
/**
|
|
35575
35909
|
* Accessory device helpers — shared across drivers.
|
|
35576
35910
|
*
|
|
@@ -38877,6 +39211,12 @@ Object.freeze({
|
|
|
38877
39211
|
addonId: null,
|
|
38878
39212
|
access: "view"
|
|
38879
39213
|
},
|
|
39214
|
+
"coreBlocks.listComposableCaps": {
|
|
39215
|
+
capName: "core-blocks",
|
|
39216
|
+
capScope: "system",
|
|
39217
|
+
addonId: null,
|
|
39218
|
+
access: "view"
|
|
39219
|
+
},
|
|
38880
39220
|
"coreBlocks.listCompositions": {
|
|
38881
39221
|
capName: "core-blocks",
|
|
38882
39222
|
capScope: "system",
|
|
@@ -38955,6 +39295,18 @@ Object.freeze({
|
|
|
38955
39295
|
addonId: null,
|
|
38956
39296
|
access: "view"
|
|
38957
39297
|
},
|
|
39298
|
+
"databaseSnapshot.listDatabases": {
|
|
39299
|
+
capName: "database-snapshot",
|
|
39300
|
+
capScope: "system",
|
|
39301
|
+
addonId: null,
|
|
39302
|
+
access: "view"
|
|
39303
|
+
},
|
|
39304
|
+
"databaseSnapshot.writeSnapshot": {
|
|
39305
|
+
capName: "database-snapshot",
|
|
39306
|
+
capScope: "system",
|
|
39307
|
+
addonId: null,
|
|
39308
|
+
access: "create"
|
|
39309
|
+
},
|
|
38958
39310
|
"dataStoreProvider.aggregate": {
|
|
38959
39311
|
capName: "data-store-provider",
|
|
38960
39312
|
capScope: "system",
|
|
@@ -41691,6 +42043,12 @@ Object.freeze({
|
|
|
41691
42043
|
addonId: null,
|
|
41692
42044
|
access: "create"
|
|
41693
42045
|
},
|
|
42046
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
42047
|
+
capName: "pipeline-analytics",
|
|
42048
|
+
capScope: "device",
|
|
42049
|
+
addonId: null,
|
|
42050
|
+
access: "delete"
|
|
42051
|
+
},
|
|
41694
42052
|
"pipelineAnalytics.clearTracks": {
|
|
41695
42053
|
capName: "pipeline-analytics",
|
|
41696
42054
|
capScope: "device",
|
|
@@ -41847,12 +42205,6 @@ Object.freeze({
|
|
|
41847
42205
|
addonId: null,
|
|
41848
42206
|
access: "view"
|
|
41849
42207
|
},
|
|
41850
|
-
"pipelineAnalytics.getSummary": {
|
|
41851
|
-
capName: "pipeline-analytics",
|
|
41852
|
-
capScope: "device",
|
|
41853
|
-
addonId: null,
|
|
41854
|
-
access: "view"
|
|
41855
|
-
},
|
|
41856
42208
|
"pipelineAnalytics.getTrack": {
|
|
41857
42209
|
capName: "pipeline-analytics",
|
|
41858
42210
|
capScope: "device",
|
|
@@ -41913,12 +42265,6 @@ Object.freeze({
|
|
|
41913
42265
|
addonId: null,
|
|
41914
42266
|
access: "view"
|
|
41915
42267
|
},
|
|
41916
|
-
"pipelineAnalytics.listRecentSummaries": {
|
|
41917
|
-
capName: "pipeline-analytics",
|
|
41918
|
-
capScope: "device",
|
|
41919
|
-
addonId: null,
|
|
41920
|
-
access: "view"
|
|
41921
|
-
},
|
|
41922
42268
|
"pipelineAnalytics.listRecentTracks": {
|
|
41923
42269
|
capName: "pipeline-analytics",
|
|
41924
42270
|
capScope: "device",
|
|
@@ -41949,13 +42295,13 @@ Object.freeze({
|
|
|
41949
42295
|
addonId: null,
|
|
41950
42296
|
access: "view"
|
|
41951
42297
|
},
|
|
41952
|
-
"pipelineAnalytics.
|
|
42298
|
+
"pipelineAnalytics.listTrackMedia": {
|
|
41953
42299
|
capName: "pipeline-analytics",
|
|
41954
42300
|
capScope: "device",
|
|
41955
42301
|
addonId: null,
|
|
41956
42302
|
access: "view"
|
|
41957
42303
|
},
|
|
41958
|
-
"pipelineAnalytics.
|
|
42304
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
41959
42305
|
capName: "pipeline-analytics",
|
|
41960
42306
|
capScope: "device",
|
|
41961
42307
|
addonId: null,
|
|
@@ -42075,6 +42421,18 @@ Object.freeze({
|
|
|
42075
42421
|
addonId: null,
|
|
42076
42422
|
access: "create"
|
|
42077
42423
|
},
|
|
42424
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
42425
|
+
capName: "pipeline-analytics",
|
|
42426
|
+
capScope: "device",
|
|
42427
|
+
addonId: null,
|
|
42428
|
+
access: "create"
|
|
42429
|
+
},
|
|
42430
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
42431
|
+
capName: "pipeline-analytics",
|
|
42432
|
+
capScope: "device",
|
|
42433
|
+
addonId: null,
|
|
42434
|
+
access: "create"
|
|
42435
|
+
},
|
|
42078
42436
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
42079
42437
|
capName: "pipeline-analytics",
|
|
42080
42438
|
capScope: "device",
|
|
@@ -42513,6 +42871,12 @@ Object.freeze({
|
|
|
42513
42871
|
addonId: null,
|
|
42514
42872
|
access: "delete"
|
|
42515
42873
|
},
|
|
42874
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
42875
|
+
capName: "pipeline-orchestrator",
|
|
42876
|
+
capScope: "system",
|
|
42877
|
+
addonId: null,
|
|
42878
|
+
access: "create"
|
|
42879
|
+
},
|
|
42516
42880
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
42517
42881
|
capName: "pipeline-orchestrator",
|
|
42518
42882
|
capScope: "system",
|
|
@@ -42579,6 +42943,12 @@ Object.freeze({
|
|
|
42579
42943
|
addonId: null,
|
|
42580
42944
|
access: "create"
|
|
42581
42945
|
},
|
|
42946
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
42947
|
+
capName: "pipeline-orchestrator",
|
|
42948
|
+
capScope: "system",
|
|
42949
|
+
addonId: null,
|
|
42950
|
+
access: "create"
|
|
42951
|
+
},
|
|
42582
42952
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
42583
42953
|
capName: "pipeline-orchestrator",
|
|
42584
42954
|
capScope: "system",
|
|
@@ -45989,6 +46359,11 @@ Object.freeze({
|
|
|
45989
46359
|
form: "single",
|
|
45990
46360
|
optional: false
|
|
45991
46361
|
}],
|
|
46362
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
46363
|
+
name: "deviceId",
|
|
46364
|
+
form: "single",
|
|
46365
|
+
optional: false
|
|
46366
|
+
}],
|
|
45992
46367
|
"pipelineAnalytics.clearTracks": [{
|
|
45993
46368
|
name: "deviceId",
|
|
45994
46369
|
form: "single",
|
|
@@ -46124,11 +46499,6 @@ Object.freeze({
|
|
|
46124
46499
|
form: "single",
|
|
46125
46500
|
optional: true
|
|
46126
46501
|
}],
|
|
46127
|
-
"pipelineAnalytics.listRecentSummaries": [{
|
|
46128
|
-
name: "deviceIds",
|
|
46129
|
-
form: "array",
|
|
46130
|
-
optional: false
|
|
46131
|
-
}],
|
|
46132
46502
|
"pipelineAnalytics.listRecentTracks": [{
|
|
46133
46503
|
name: "deviceIds",
|
|
46134
46504
|
form: "array",
|
|
@@ -46139,12 +46509,12 @@ Object.freeze({
|
|
|
46139
46509
|
form: "array",
|
|
46140
46510
|
optional: true
|
|
46141
46511
|
}],
|
|
46142
|
-
"pipelineAnalytics.
|
|
46143
|
-
name: "
|
|
46144
|
-
form: "
|
|
46512
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
46513
|
+
name: "deviceId",
|
|
46514
|
+
form: "single",
|
|
46145
46515
|
optional: false
|
|
46146
46516
|
}],
|
|
46147
|
-
"pipelineAnalytics.
|
|
46517
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
46148
46518
|
name: "deviceId",
|
|
46149
46519
|
form: "single",
|
|
46150
46520
|
optional: false
|
|
@@ -46219,6 +46589,16 @@ Object.freeze({
|
|
|
46219
46589
|
form: "single",
|
|
46220
46590
|
optional: false
|
|
46221
46591
|
}],
|
|
46592
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
46593
|
+
name: "deviceId",
|
|
46594
|
+
form: "single",
|
|
46595
|
+
optional: false
|
|
46596
|
+
}],
|
|
46597
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
46598
|
+
name: "deviceId",
|
|
46599
|
+
form: "single",
|
|
46600
|
+
optional: false
|
|
46601
|
+
}],
|
|
46222
46602
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
46223
46603
|
name: "deviceId",
|
|
46224
46604
|
form: "single",
|
|
@@ -46289,6 +46669,11 @@ Object.freeze({
|
|
|
46289
46669
|
form: "single",
|
|
46290
46670
|
optional: false
|
|
46291
46671
|
}],
|
|
46672
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
46673
|
+
name: "deviceId",
|
|
46674
|
+
form: "single",
|
|
46675
|
+
optional: false
|
|
46676
|
+
}],
|
|
46292
46677
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
46293
46678
|
name: "deviceId",
|
|
46294
46679
|
form: "single",
|
|
@@ -46299,6 +46684,11 @@ Object.freeze({
|
|
|
46299
46684
|
form: "single",
|
|
46300
46685
|
optional: false
|
|
46301
46686
|
}],
|
|
46687
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
46688
|
+
name: "deviceId",
|
|
46689
|
+
form: "single",
|
|
46690
|
+
optional: false
|
|
46691
|
+
}],
|
|
46302
46692
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
46303
46693
|
name: "deviceId",
|
|
46304
46694
|
form: "single",
|
|
@@ -47445,6 +47835,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
47445
47835
|
systemEventKinds: [...SUMMARISABLE],
|
|
47446
47836
|
systemEventDeliveries: ["summary"]
|
|
47447
47837
|
},
|
|
47838
|
+
{
|
|
47839
|
+
name: "summarySection",
|
|
47840
|
+
label: "Summary: this section",
|
|
47841
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
47842
|
+
example: "Batterie scariche",
|
|
47843
|
+
group: "system",
|
|
47844
|
+
families: ["rule"],
|
|
47845
|
+
fields: [...RULE_TEXT],
|
|
47846
|
+
kinds: ["system"],
|
|
47847
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
47848
|
+
systemEventDeliveries: ["summary"]
|
|
47849
|
+
},
|
|
47448
47850
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
47449
47851
|
name: v.name,
|
|
47450
47852
|
label: v.label,
|
|
@@ -47521,6 +47923,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
47521
47923
|
[...RULE_TEXT],
|
|
47522
47924
|
...STATE_SUMMARY_VARS
|
|
47523
47925
|
];
|
|
47926
|
+
new Set([
|
|
47927
|
+
"disarmed",
|
|
47928
|
+
"armed_home",
|
|
47929
|
+
"armed_away",
|
|
47930
|
+
"armed_night",
|
|
47931
|
+
"armed_vacation",
|
|
47932
|
+
"armed_custom_bypass",
|
|
47933
|
+
"arming",
|
|
47934
|
+
"disarming",
|
|
47935
|
+
"pending",
|
|
47936
|
+
"triggered",
|
|
47937
|
+
"open",
|
|
47938
|
+
"opening",
|
|
47939
|
+
"closing",
|
|
47940
|
+
"closed",
|
|
47941
|
+
"stopped",
|
|
47942
|
+
"locked",
|
|
47943
|
+
"unlocked",
|
|
47944
|
+
"locking",
|
|
47945
|
+
"unlocking",
|
|
47946
|
+
"jammed",
|
|
47947
|
+
"on",
|
|
47948
|
+
"off",
|
|
47949
|
+
"home",
|
|
47950
|
+
"not_home",
|
|
47951
|
+
"matched",
|
|
47952
|
+
"diverged",
|
|
47953
|
+
"unknown",
|
|
47954
|
+
"latched",
|
|
47955
|
+
"live"
|
|
47956
|
+
]);
|
|
47524
47957
|
/**
|
|
47525
47958
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
47526
47959
|
*
|