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