@camstack/addon-model-studio 1.1.185 → 1.1.187

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 (18) hide show
  1. package/dist/{MotionZonesSettings-BMBdBynK.mjs → MotionZonesSettings-Ctu2jUw5.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BtHe1X7p.mjs → PrivacyMaskSettings-BklhxSXj.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BL0s-kmP.mjs → SceneMonitorEditor-BZRgxah0.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-B2jX6pjx.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CVGJSgs1.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-a-ZV2LaP.mjs +26 -0
  7. package/dist/{hostInit-CEbB8v9j.mjs → hostInit-D34VXjYA.mjs} +3 -3
  8. package/dist/model-studio.addon.js +395 -193
  9. package/dist/model-studio.addon.mjs +395 -193
  10. package/dist/{player-overlays-l9kwK0z6.mjs → player-overlays-WyG3CO8M.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-BG96U0np.mjs → responsive-DM13bMuN.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-BHXO3Tgl.mjs → scene-monitor-copy-NEMFgUTn.mjs} +1 -1
  14. package/dist/{square-dnjRtQXi.mjs → square-BI5Xsmdj.mjs} +1 -1
  15. package/dist/{trash-2-ZwGX8k-d.mjs → trash-2-D1YC9gXH.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BzKM4skN.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-C_9FXI-l.mjs} +1 -1
  17. package/package.json +2 -2
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-HasgddgR.mjs +0 -26
@@ -12222,6 +12222,68 @@ method(object({
12222
12222
  password: string()
12223
12223
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12224
12224
  /**
12225
+ * How long one snapshot may take end to end: the pinned copy of the whole
12226
+ * database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
12227
+ * disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
12228
+ * generous because a timeout fails the whole backup run.
12229
+ */
12230
+ var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
12231
+ /**
12232
+ * The databases an owner snapshots — declared by the OWNER, so a caller never
12233
+ * guesses which file is live from what sits beside it (a cleanly closed
12234
+ * database has no sidecars and is just as owned). Paths are absolute on the
12235
+ * owner's host.
12236
+ */
12237
+ var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
12238
+ /** One b-tree table of the snapshot and the rows it holds. */
12239
+ var DatabaseSnapshotTableSchema = object({
12240
+ name: string(),
12241
+ rows: number().int().nonnegative()
12242
+ });
12243
+ /**
12244
+ * What the owner wrote. Every path is ABSOLUTE on the owner's host — the
12245
+ * caller pins the call to its own node, so it can read the file; a caller
12246
+ * that finds the path outside its own data root refuses it rather than
12247
+ * archiving something it cannot place.
12248
+ */
12249
+ var DatabaseSnapshotResultSchema = object({
12250
+ /** The live database the snapshot copies. Never to be copied as a file. */
12251
+ livePath: string(),
12252
+ /** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
12253
+ snapshotPath: string(),
12254
+ sizeBytes: number().int().nonnegative(),
12255
+ pageCount: number().int().nonnegative(),
12256
+ pageSize: number().int().positive(),
12257
+ /**
12258
+ * Every b-tree table with its row count. Read inside the SAME read
12259
+ * transaction the copy was taken from, and found EQUAL on the copy — so
12260
+ * this is the content of the snapshot, not an estimate of the source.
12261
+ */
12262
+ tables: array(DatabaseSnapshotTableSchema),
12263
+ /** Wall time of the pinned copy (row counts included). */
12264
+ copyMs: number().nonnegative(),
12265
+ /** Wall time of the checks on the copy (`integrity_check`, row counts). */
12266
+ verifyMs: number().nonnegative(),
12267
+ /** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
12268
+ takenAt: number()
12269
+ });
12270
+ /**
12271
+ * A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
12272
+ * the same facts, with both paths relative to the archive root (the node's
12273
+ * data dir), because an archive outlives the host that made it.
12274
+ */
12275
+ var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
12276
+ /** Archive-relative path of the live database the archive does NOT carry. */
12277
+ livePath: string(),
12278
+ /** Archive-relative path of the verified copy it carries in its place. */
12279
+ snapshotPath: string()
12280
+ });
12281
+ method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
12282
+ kind: "mutation",
12283
+ auth: "admin",
12284
+ timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
12285
+ });
12286
+ /**
12225
12287
  * Orchestrator-side destination metadata. The orchestrator computes
12226
12288
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12227
12289
  * (admin UI, restore flow) see one canonical key.
@@ -12332,7 +12394,12 @@ var ArchiveManifestSchema = object({
12332
12394
  locations: array(string()),
12333
12395
  entries: array(ArchiveEntrySchema),
12334
12396
  totalBytes: number(),
12335
- totalFiles: number()
12397
+ totalFiles: number(),
12398
+ /**
12399
+ * Live SQLite databases this archive carries as their OWNER's verified
12400
+ * snapshot instead of as files (D693). Absent on archives made before.
12401
+ */
12402
+ sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
12336
12403
  });
12337
12404
  var LocationStatSchema = object({
12338
12405
  name: string(),
@@ -13756,6 +13823,52 @@ var CompositionBlockStateSchema = object({
13756
13823
  reason: string().optional(),
13757
13824
  fields: array(CompositionFieldStateSchema)
13758
13825
  });
13826
+ var ComposerBlockSchema = object({
13827
+ id: string().min(1),
13828
+ name: string().min(1).max(120),
13829
+ enabled: boolean(),
13830
+ updatedAt: number(),
13831
+ composition: CompositionSchema
13832
+ });
13833
+ /**
13834
+ * A stored composition row that no longer PARSES — a schema a release
13835
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13836
+ * its device as a placeholder and reports the block `failed` naming the parse
13837
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13838
+ */
13839
+ var ComposerUnreadableBlockSchema = object({
13840
+ id: string().min(1),
13841
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13842
+ name: string().nullable(),
13843
+ /** The parse error, in the operator's words. */
13844
+ error: string()
13845
+ });
13846
+ method(object({
13847
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13848
+ integrationId: string().nullable(),
13849
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13850
+ storeLoaded: boolean(),
13851
+ blocks: array(ComposerBlockSchema),
13852
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13853
+ restartBlockIds: array(string()),
13854
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13855
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13856
+ }), object({
13857
+ blocks: array(object({
13858
+ blockId: string(),
13859
+ status: CompositionRunStatusSchema,
13860
+ reason: string().optional()
13861
+ })),
13862
+ /**
13863
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13864
+ * integration unknown, its own rows unread or read empty once). An empty
13865
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13866
+ */
13867
+ acted: boolean()
13868
+ }), {
13869
+ kind: "mutation",
13870
+ auth: "admin"
13871
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13759
13872
  var NUMBER = {
13760
13873
  kind: "fixed",
13761
13874
  result: ["number"]
@@ -13992,52 +14105,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13992
14105
  auth: "admin",
13993
14106
  access: "view"
13994
14107
  });
13995
- var ComposerBlockSchema = object({
13996
- id: string().min(1),
13997
- name: string().min(1).max(120),
13998
- enabled: boolean(),
13999
- updatedAt: number(),
14000
- composition: CompositionSchema
14001
- });
14002
- /**
14003
- * A stored composition row that no longer PARSES — a schema a release
14004
- * tightened, a row written by a newer build. Sent by id so the composer keeps
14005
- * its device as a placeholder and reports the block `failed` naming the parse
14006
- * error. Leaving it out would read, twice, exactly like a delete (D49).
14007
- */
14008
- var ComposerUnreadableBlockSchema = object({
14009
- id: string().min(1),
14010
- /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
14011
- name: string().nullable(),
14012
- /** The parse error, in the operator's words. */
14013
- error: string()
14014
- });
14015
- method(object({
14016
- /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
14017
- integrationId: string().nullable(),
14018
- /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
14019
- storeLoaded: boolean(),
14020
- blocks: array(ComposerBlockSchema),
14021
- /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
14022
- restartBlockIds: array(string()),
14023
- /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
14024
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
14025
- }), object({
14026
- blocks: array(object({
14027
- blockId: string(),
14028
- status: CompositionRunStatusSchema,
14029
- reason: string().optional()
14030
- })),
14031
- /**
14032
- * False when the composer declared and withdrew NOTHING (store not loaded,
14033
- * integration unknown, its own rows unread or read empty once). An empty
14034
- * apply the caller owes is paid off only by one the composer acted on (D49).
14035
- */
14036
- acted: boolean()
14037
- }), {
14038
- kind: "mutation",
14039
- auth: "admin"
14040
- }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
14041
14108
  /**
14042
14109
  * `custom-model-registry` — collection cap exposing operator-registered
14043
14110
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -15902,6 +15969,138 @@ method(object({
15902
15969
  deviceIds: array(number()).readonly(),
15903
15970
  caps: array(string()).readonly().optional()
15904
15971
  }), record(string(), record(string(), unknown().nullable())));
15972
+ object({
15973
+ /** Ms epoch of the last press. null = never observed since this provider started. */
15974
+ lastPressedAt: number().nullable(),
15975
+ /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
15976
+ pressCountSinceStart: number()
15977
+ });
15978
+ object({
15979
+ deviceId: number(),
15980
+ timestamp: number()
15981
+ });
15982
+ /**
15983
+ * The `doorbell-source` extension slot's editable value (D648): the camera's
15984
+ * virtual-doorbell trigger devices, exactly what the wrapper's
15985
+ * `doorbellSources` persists (as `{ deviceId }` records).
15986
+ */
15987
+ var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
15988
+ DeviceType.Camera;
15989
+ DeviceType.Button, DeviceType.Camera;
15990
+ var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
15991
+ DeviceType.Camera, DeviceType.Camera;
15992
+ /** A slot's editable value, discriminated on `slot`. */
15993
+ var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
15994
+ DeviceType.Camera;
15995
+ var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
15996
+ state: literal("unreachable"),
15997
+ reason: string()
15998
+ })]);
15999
+ /** One provider of slots — the D554 source-listing row. */
16000
+ var ExtensionSourceSchema = object({
16001
+ /** The routing prefix of every `slotRef` this provider serves. */
16002
+ source: string(),
16003
+ label: string(),
16004
+ /** Stamped by the dispatcher from the registry (D557). */
16005
+ addonId: string().optional(),
16006
+ availability: ExtensionSourceAvailabilitySchema
16007
+ });
16008
+ /**
16009
+ * How one picked source stands. `missing` — no such device (deleted, or an id
16010
+ * that never existed); `foreign` — a device the slot's owner cannot read from
16011
+ * (a source owned by another addon); `unavailable` — it exists but is not a
16012
+ * valid source now (a container, which is never a pick). A source in any of
16013
+ * these states is SHOWN, never silently dropped or re-pointed.
16014
+ */
16015
+ var ExtensionSourceHealthSchema = _enum([
16016
+ "ok",
16017
+ "missing",
16018
+ "foreign",
16019
+ "unavailable"
16020
+ ]);
16021
+ var ExtensionSlotSourceSchema = object({
16022
+ deviceId: number().int(),
16023
+ /** The device's name, or null when it could not be resolved (`missing`). */
16024
+ name: string().nullable(),
16025
+ health: ExtensionSourceHealthSchema,
16026
+ detail: string().optional()
16027
+ });
16028
+ /**
16029
+ * A DIFFERENT authority that gates whether the slot's sources do anything —
16030
+ * reported read-only, named, never written through this contract (D62). The
16031
+ * virtual doorbell's sources ring only while the wrapper is bound to the
16032
+ * camera, and that binding belongs to `deviceManager.setWrapperActive`.
16033
+ * `unknown` means the gate could not be read; it is not "inactive" (D315).
16034
+ */
16035
+ var ExtensionSlotActivationSchema = object({
16036
+ state: _enum([
16037
+ "active",
16038
+ "inactive",
16039
+ "unknown"
16040
+ ]),
16041
+ authority: string(),
16042
+ detail: string().optional()
16043
+ });
16044
+ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
16045
+ state: literal("ok"),
16046
+ /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
16047
+ slotRef: string(),
16048
+ slot: ExtensionSlotIdSchema,
16049
+ /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
16050
+ authority: string(),
16051
+ activation: ExtensionSlotActivationSchema.nullable(),
16052
+ value: ExtensionSlotValueSchema,
16053
+ sources: array(ExtensionSlotSourceSchema),
16054
+ /**
16055
+ * Devices the owner links to the host ON ITS OWN, by structure, and that
16056
+ * are therefore not in `value` (D655): a camera's device-tree children, and
16057
+ * the child a picked container stands for (D356 — a container is never a
16058
+ * pick, its children are). Read-only; the editor shows them and may offer
16059
+ * per-device options on them (the linked-devices tracked-event opt-in).
16060
+ * Absent when the owner links nothing beyond the picks, and from an owner
16061
+ * older than D655.
16062
+ */
16063
+ impliedSources: array(ExtensionSlotSourceSchema).optional()
16064
+ }), object({
16065
+ state: literal("unreachable"),
16066
+ addonId: string(),
16067
+ reason: string()
16068
+ })]);
16069
+ var ExtensionCandidatesSchema = object({ candidates: array(object({
16070
+ deviceId: number().int(),
16071
+ name: string(),
16072
+ type: string(),
16073
+ location: string().nullable(),
16074
+ /** The container a child belongs to — "Spotlight 2" alone does not say which. */
16075
+ parentName: string().nullable(),
16076
+ /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
16077
+ suggested: boolean(),
16078
+ /** Why it is suggested ("same location"), null when it is not. */
16079
+ reason: string().nullable()
16080
+ })) });
16081
+ /**
16082
+ * What a write did. `none` — applied in place. `host` / `parent` — the owner
16083
+ * reloaded the host (or, for an accessory child, its parent) because the
16084
+ * write changed what the host REGISTERS. A slot never adds a capability to its
16085
+ * host — that is a composition (D663) — so today's owners answer `none`.
16086
+ */
16087
+ var ExtensionSetResultSchema = object({
16088
+ applied: literal(true),
16089
+ reload: _enum([
16090
+ "none",
16091
+ "host",
16092
+ "parent"
16093
+ ])
16094
+ });
16095
+ var ExtensionSlotRefInputSchema = object({
16096
+ deviceId: number().int(),
16097
+ slotRef: string().min(1)
16098
+ });
16099
+ var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
16100
+ method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
16101
+ kind: "mutation",
16102
+ auth: "admin"
16103
+ });
15905
16104
  /**
15906
16105
  * Per-field ownership (D663). A composition may CLAIM fields of a native
15907
16106
  * cap's runtime-state slice on an existing device: `replace` overlays the
@@ -18880,17 +19079,25 @@ var NcScheduleSchema = object({
18880
19079
  */
18881
19080
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
18882
19081
  /**
19082
+ * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
19083
+ * every section; `section` = one notification per section with something to
19084
+ * say (an unavailable section included), each titled by its section.
19085
+ */
19086
+ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
19087
+ /**
18883
19088
  * `summary`: the rule sends NOTHING per event. When a window of `schedule`
18884
19089
  * CLOSES, it sends one notification with the current state of its kinds
18885
19090
  * (low batteries, consumables to replace, devices offline, updates
18886
- * available, ...), after its own filters. Nothing to report sends nothing.
19091
+ * available, ...), after its own filters — or, with `split: 'section'`
19092
+ * (D698), one notification per section. Nothing to report sends nothing.
18887
19093
  * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
18888
19094
  * midnight crossing); the send time is each window's END. Refused on the
18889
19095
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
18890
19096
  */
18891
19097
  var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
18892
19098
  mode: literal("summary"),
18893
- schedule: NcScheduleSchema
19099
+ schedule: NcScheduleSchema,
19100
+ split: NcStateSummarySplitSchema.optional()
18894
19101
  })]);
18895
19102
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
18896
19103
  var NcPlateMatcherSchema = object({
@@ -19030,8 +19237,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
19030
19237
  /** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
19031
19238
  var NcZoneConditionSchema = object({
19032
19239
  ids: array(string().min(1)).min(1),
19033
- /** Quantifier over `ids` — at least one / every one visited. */
19034
- match: _enum(["any", "all"]).default("any")
19240
+ /**
19241
+ * LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
19242
+ * is what both editors mean and all they write since D690: "all of" was
19243
+ * removed from the editors because on an immediate rule it asked one
19244
+ * detection to stand in every zone at once. Still ACCEPTED, and `all` still
19245
+ * evaluated, so a stored rule keeps parsing and meaning what it meant.
19246
+ */
19247
+ match: _enum(["any", "all"]).optional()
19035
19248
  });
19036
19249
  /**
19037
19250
  * The P1 condition set — a flat AND of groups; absent group = pass;
@@ -19535,10 +19748,12 @@ var NcMediaPolicySchema = object({
19535
19748
  /**
19536
19749
  * Cooldown GRANULARITY over the subject's class — how much a fired
19537
19750
  * notification suppresses.
19538
- * - `shared` (default, and the absent value) — one window for the whole
19539
- * rule/scope: a cat silences the next dog for `cooldownSec`.
19540
- * - `per-class` — an independent window per detected class, so cat→dog fires
19541
- * at once and cat→cat still waits.
19751
+ * - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
19752
+ * independent window per detected class: cat→dog fires at once, cat→cat
19753
+ * still waits.
19754
+ * - `shared` — one window for the whole rule/scope: a cat silences the next
19755
+ * dog for `cooldownSec`. Only written when an operator picks it; it is no
19756
+ * longer what an unset rule means.
19542
19757
  *
19543
19758
  * AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
19544
19759
  * must not be swallowed by a bark's window (the precedent this generalizes —
@@ -19553,8 +19768,11 @@ var NcThrottleSchema = object({
19553
19768
  /**
19554
19769
  * Class granularity of the cooldown key. Optional rather than defaulted:
19555
19770
  * a Zod default does NOT run on the addon→addon cap path, so a persisted
19556
- * rule authored before this field simply carries none — and the engine
19557
- * reads absent as `shared`, the pre-existing behaviour.
19771
+ * rule authored before this field simply carries none. The engine used to
19772
+ * read absent as `shared` (D36); since 2026-10-01 it reads absent as
19773
+ * `per-class` — the operator's default — and only an explicit `shared`
19774
+ * still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
19775
+ * engine, and D36's dated note.
19558
19776
  */
19559
19777
  granularity: NcThrottleGranularitySchema.optional()
19560
19778
  });
@@ -19878,11 +20096,23 @@ var NcStateSummaryPreviewSectionSchema = object({
19878
20096
  reason: string().optional()
19879
20097
  });
19880
20098
  /**
20099
+ * One notification a previewed summary would send (D698): the whole summary on
20100
+ * a `rule` split (no `section`), one section's on a `section` split.
20101
+ */
20102
+ var NcStateSummaryPreviewRowSchema = object({
20103
+ section: string().optional(),
20104
+ /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
20105
+ title: string(),
20106
+ text: string(),
20107
+ count: number().int().nonnegative()
20108
+ });
20109
+ /**
19881
20110
  * The summary a rule would send now. `empty` = nothing to report and every
19882
20111
  * section read: such a summary is NOT sent. `dropped` counts the open states
19883
20112
  * the rule's own filters (or a camera mute) left out, by reason.
19884
20113
  * `excludedGroups` names the kind groups selected that have no state to report
19885
- * (backups & exports).
20114
+ * (backups & exports). `split` and `rows` (D698) say how it would be sent —
20115
+ * optional, so an older hub's answer still parses.
19886
20116
  */
19887
20117
  var NcStateSummaryPreviewSchema = object({
19888
20118
  empty: boolean(),
@@ -19890,7 +20120,9 @@ var NcStateSummaryPreviewSchema = object({
19890
20120
  text: string(),
19891
20121
  sections: array(NcStateSummaryPreviewSectionSchema),
19892
20122
  dropped: record(string(), number().int().nonnegative()),
19893
- excludedGroups: array(string())
20123
+ excludedGroups: array(string()),
20124
+ split: NcStateSummarySplitSchema.optional(),
20125
+ rows: array(NcStateSummaryPreviewRowSchema).optional()
19894
20126
  });
19895
20127
  var NcTestResultSchema = object({
19896
20128
  recordId: string(),
@@ -22811,7 +23043,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22811
23043
  trackIds: array(string()).min(1)
22812
23044
  }), object({
22813
23045
  deleted: number().int(),
22814
- failed: array(string()).readonly()
23046
+ failed: array(string()).readonly(),
23047
+ sparedMediaIds: array(number().int()).readonly().optional()
22815
23048
  }), {
22816
23049
  kind: "mutation",
22817
23050
  auth: "admin"
@@ -25000,7 +25233,42 @@ var SetCameraSensorsInputSchema = object({
25000
25233
  /** `null` removes the attachment: the camera goes back to `not-configured`. */
25001
25234
  config: CameraSensorsConfigSchema.nullable()
25002
25235
  });
25003
- method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
25236
+ /**
25237
+ * Why an early occupancy look (D691) was not scheduled.
25238
+ *
25239
+ * - `unknown-camera` — no session was ever dispatched for it, so there is no
25240
+ * node and no config to attach a burst with.
25241
+ * - `out-of-range` — the ask is negative or further out than the orchestrator
25242
+ * will hold a timer for; the parked-object cadence is the answer there.
25243
+ * - `no-burst-producer` — this build has no burst producer at all.
25244
+ * - `already-looked` — this camera's ONE early look since its last session has
25245
+ * been spent. A look's own burst can re-arm a flickering flip, and a look
25246
+ * per arm would chain a burst every ~30 s forever (review H2); the next
25247
+ * real session re-arms the budget.
25248
+ */
25249
+ var OccupancyLookRefusalSchema = _enum([
25250
+ "unknown-camera",
25251
+ "out-of-range",
25252
+ "no-burst-producer",
25253
+ "already-looked"
25254
+ ]);
25255
+ method(object({
25256
+ deviceId: number().int().nonnegative(),
25257
+ /** How long from NOW until the pending flip's sustain window ends. RELATIVE,
25258
+ * so the caller's clock and the orchestrator's never have to agree. */
25259
+ afterMs: number().finite(),
25260
+ /** Why, for the log. */
25261
+ reason: string()
25262
+ }), object({
25263
+ scheduled: boolean(),
25264
+ /** When `scheduled`: how long until the burst is dialled. */
25265
+ dueInMs: number().optional(),
25266
+ /** When not `scheduled`: why. */
25267
+ refusedBecause: OccupancyLookRefusalSchema.optional()
25268
+ }), {
25269
+ kind: "mutation",
25270
+ auth: "admin"
25271
+ }), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
25004
25272
  kind: "mutation",
25005
25273
  auth: "admin"
25006
25274
  }), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
@@ -27333,138 +27601,6 @@ DeviceType.Camera, method(object({
27333
27601
  kind: "query",
27334
27602
  auth: "protected"
27335
27603
  });
27336
- object({
27337
- /** Ms epoch of the last press. null = never observed since this provider started. */
27338
- lastPressedAt: number().nullable(),
27339
- /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
27340
- pressCountSinceStart: number()
27341
- });
27342
- object({
27343
- deviceId: number(),
27344
- timestamp: number()
27345
- });
27346
- /**
27347
- * The `doorbell-source` extension slot's editable value (D648): the camera's
27348
- * virtual-doorbell trigger devices, exactly what the wrapper's
27349
- * `doorbellSources` persists (as `{ deviceId }` records).
27350
- */
27351
- var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
27352
- DeviceType.Camera;
27353
- DeviceType.Button, DeviceType.Camera;
27354
- var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
27355
- DeviceType.Camera, DeviceType.Camera;
27356
- /** A slot's editable value, discriminated on `slot`. */
27357
- var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
27358
- DeviceType.Camera;
27359
- var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
27360
- state: literal("unreachable"),
27361
- reason: string()
27362
- })]);
27363
- /** One provider of slots — the D554 source-listing row. */
27364
- var ExtensionSourceSchema = object({
27365
- /** The routing prefix of every `slotRef` this provider serves. */
27366
- source: string(),
27367
- label: string(),
27368
- /** Stamped by the dispatcher from the registry (D557). */
27369
- addonId: string().optional(),
27370
- availability: ExtensionSourceAvailabilitySchema
27371
- });
27372
- /**
27373
- * How one picked source stands. `missing` — no such device (deleted, or an id
27374
- * that never existed); `foreign` — a device the slot's owner cannot read from
27375
- * (a source owned by another addon); `unavailable` — it exists but is not a
27376
- * valid source now (a container, which is never a pick). A source in any of
27377
- * these states is SHOWN, never silently dropped or re-pointed.
27378
- */
27379
- var ExtensionSourceHealthSchema = _enum([
27380
- "ok",
27381
- "missing",
27382
- "foreign",
27383
- "unavailable"
27384
- ]);
27385
- var ExtensionSlotSourceSchema = object({
27386
- deviceId: number().int(),
27387
- /** The device's name, or null when it could not be resolved (`missing`). */
27388
- name: string().nullable(),
27389
- health: ExtensionSourceHealthSchema,
27390
- detail: string().optional()
27391
- });
27392
- /**
27393
- * A DIFFERENT authority that gates whether the slot's sources do anything —
27394
- * reported read-only, named, never written through this contract (D62). The
27395
- * virtual doorbell's sources ring only while the wrapper is bound to the
27396
- * camera, and that binding belongs to `deviceManager.setWrapperActive`.
27397
- * `unknown` means the gate could not be read; it is not "inactive" (D315).
27398
- */
27399
- var ExtensionSlotActivationSchema = object({
27400
- state: _enum([
27401
- "active",
27402
- "inactive",
27403
- "unknown"
27404
- ]),
27405
- authority: string(),
27406
- detail: string().optional()
27407
- });
27408
- var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
27409
- state: literal("ok"),
27410
- /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
27411
- slotRef: string(),
27412
- slot: ExtensionSlotIdSchema,
27413
- /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
27414
- authority: string(),
27415
- activation: ExtensionSlotActivationSchema.nullable(),
27416
- value: ExtensionSlotValueSchema,
27417
- sources: array(ExtensionSlotSourceSchema),
27418
- /**
27419
- * Devices the owner links to the host ON ITS OWN, by structure, and that
27420
- * are therefore not in `value` (D655): a camera's device-tree children, and
27421
- * the child a picked container stands for (D356 — a container is never a
27422
- * pick, its children are). Read-only; the editor shows them and may offer
27423
- * per-device options on them (the linked-devices tracked-event opt-in).
27424
- * Absent when the owner links nothing beyond the picks, and from an owner
27425
- * older than D655.
27426
- */
27427
- impliedSources: array(ExtensionSlotSourceSchema).optional()
27428
- }), object({
27429
- state: literal("unreachable"),
27430
- addonId: string(),
27431
- reason: string()
27432
- })]);
27433
- var ExtensionCandidatesSchema = object({ candidates: array(object({
27434
- deviceId: number().int(),
27435
- name: string(),
27436
- type: string(),
27437
- location: string().nullable(),
27438
- /** The container a child belongs to — "Spotlight 2" alone does not say which. */
27439
- parentName: string().nullable(),
27440
- /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
27441
- suggested: boolean(),
27442
- /** Why it is suggested ("same location"), null when it is not. */
27443
- reason: string().nullable()
27444
- })) });
27445
- /**
27446
- * What a write did. `none` — applied in place. `host` / `parent` — the owner
27447
- * reloaded the host (or, for an accessory child, its parent) because the
27448
- * write changed what the host REGISTERS. A slot never adds a capability to its
27449
- * host — that is a composition (D663) — so today's owners answer `none`.
27450
- */
27451
- var ExtensionSetResultSchema = object({
27452
- applied: literal(true),
27453
- reload: _enum([
27454
- "none",
27455
- "host",
27456
- "parent"
27457
- ])
27458
- });
27459
- var ExtensionSlotRefInputSchema = object({
27460
- deviceId: number().int(),
27461
- slotRef: string().min(1)
27462
- });
27463
- var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
27464
- method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
27465
- kind: "mutation",
27466
- auth: "admin"
27467
- });
27468
27604
  /**
27469
27605
  * Optional client-side hints sent at session creation to help the provider
27470
27606
  * pick the best native source. All fields optional — a viewer that knows
@@ -38564,6 +38700,18 @@ Object.freeze({
38564
38700
  addonId: null,
38565
38701
  access: "view"
38566
38702
  },
38703
+ "databaseSnapshot.listDatabases": {
38704
+ capName: "database-snapshot",
38705
+ capScope: "system",
38706
+ addonId: null,
38707
+ access: "view"
38708
+ },
38709
+ "databaseSnapshot.writeSnapshot": {
38710
+ capName: "database-snapshot",
38711
+ capScope: "system",
38712
+ addonId: null,
38713
+ access: "create"
38714
+ },
38567
38715
  "dataStoreProvider.aggregate": {
38568
38716
  capName: "data-store-provider",
38569
38717
  capScope: "system",
@@ -42128,6 +42276,12 @@ Object.freeze({
42128
42276
  addonId: null,
42129
42277
  access: "delete"
42130
42278
  },
42279
+ "pipelineOrchestrator.requestOccupancyLook": {
42280
+ capName: "pipeline-orchestrator",
42281
+ capScope: "system",
42282
+ addonId: null,
42283
+ access: "create"
42284
+ },
42131
42285
  "pipelineOrchestrator.resetNodePipelineDefaults": {
42132
42286
  capName: "pipeline-orchestrator",
42133
42287
  capScope: "system",
@@ -45920,6 +46074,11 @@ Object.freeze({
45920
46074
  form: "single",
45921
46075
  optional: false
45922
46076
  }],
46077
+ "pipelineOrchestrator.requestOccupancyLook": [{
46078
+ name: "deviceId",
46079
+ form: "single",
46080
+ optional: false
46081
+ }],
45923
46082
  "pipelineOrchestrator.resolvePipeline": [{
45924
46083
  name: "deviceId",
45925
46084
  form: "single",
@@ -47081,6 +47240,18 @@ var STATE_SUMMARY_VARS = [
47081
47240
  systemEventKinds: [...SUMMARISABLE],
47082
47241
  systemEventDeliveries: ["summary"]
47083
47242
  },
47243
+ {
47244
+ name: "summarySection",
47245
+ label: "Summary: this section",
47246
+ description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
47247
+ example: "Batterie scariche",
47248
+ group: "system",
47249
+ families: ["rule"],
47250
+ fields: [...RULE_TEXT],
47251
+ kinds: ["system"],
47252
+ systemEventKinds: [...SUMMARISABLE],
47253
+ systemEventDeliveries: ["summary"]
47254
+ },
47084
47255
  ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
47085
47256
  name: v.name,
47086
47257
  label: v.label,
@@ -47157,6 +47328,37 @@ var STATE_SUMMARY_VARS = [
47157
47328
  [...RULE_TEXT],
47158
47329
  ...STATE_SUMMARY_VARS
47159
47330
  ];
47331
+ new Set([
47332
+ "disarmed",
47333
+ "armed_home",
47334
+ "armed_away",
47335
+ "armed_night",
47336
+ "armed_vacation",
47337
+ "armed_custom_bypass",
47338
+ "arming",
47339
+ "disarming",
47340
+ "pending",
47341
+ "triggered",
47342
+ "open",
47343
+ "opening",
47344
+ "closing",
47345
+ "closed",
47346
+ "stopped",
47347
+ "locked",
47348
+ "unlocked",
47349
+ "locking",
47350
+ "unlocking",
47351
+ "jammed",
47352
+ "on",
47353
+ "off",
47354
+ "home",
47355
+ "not_home",
47356
+ "matched",
47357
+ "diverged",
47358
+ "unknown",
47359
+ "latched",
47360
+ "live"
47361
+ ]);
47160
47362
  /**
47161
47363
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
47162
47364
  *