@camstack/addon-model-studio 1.1.186 → 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-CA9PaKjB.mjs → MotionZonesSettings-Ctu2jUw5.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BJR31Efj.mjs → PrivacyMaskSettings-BklhxSXj.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-HiRFJCYE.mjs → SceneMonitorEditor-BZRgxah0.mjs} +3 -3
  4. package/dist/_stub.js +9 -9
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DdDnYrMZ.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-T7_Tpiyv.mjs → hostInit-D34VXjYA.mjs} +3 -3
  8. package/dist/model-studio.addon.js +307 -189
  9. package/dist/model-studio.addon.mjs +307 -189
  10. package/dist/{player-overlays-DdeNw6dl.mjs → player-overlays-WyG3CO8M.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-Dma333nN.mjs → responsive-DM13bMuN.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-DKotQU9H.mjs → scene-monitor-copy-NEMFgUTn.mjs} +1 -1
  14. package/dist/{square-WG1xkrgu.mjs → square-BI5Xsmdj.mjs} +1 -1
  15. package/dist/{trash-2-GwC3pOqd.mjs → trash-2-D1YC9gXH.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-w31RPwHi.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-C-PLenBK.mjs +0 -26
@@ -12201,6 +12201,68 @@ method(object({
12201
12201
  password: string()
12202
12202
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12203
12203
  /**
12204
+ * How long one snapshot may take end to end: the pinned copy of the whole
12205
+ * database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
12206
+ * disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
12207
+ * generous because a timeout fails the whole backup run.
12208
+ */
12209
+ var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
12210
+ /**
12211
+ * The databases an owner snapshots — declared by the OWNER, so a caller never
12212
+ * guesses which file is live from what sits beside it (a cleanly closed
12213
+ * database has no sidecars and is just as owned). Paths are absolute on the
12214
+ * owner's host.
12215
+ */
12216
+ var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
12217
+ /** One b-tree table of the snapshot and the rows it holds. */
12218
+ var DatabaseSnapshotTableSchema = object({
12219
+ name: string(),
12220
+ rows: number().int().nonnegative()
12221
+ });
12222
+ /**
12223
+ * What the owner wrote. Every path is ABSOLUTE on the owner's host — the
12224
+ * caller pins the call to its own node, so it can read the file; a caller
12225
+ * that finds the path outside its own data root refuses it rather than
12226
+ * archiving something it cannot place.
12227
+ */
12228
+ var DatabaseSnapshotResultSchema = object({
12229
+ /** The live database the snapshot copies. Never to be copied as a file. */
12230
+ livePath: string(),
12231
+ /** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
12232
+ snapshotPath: string(),
12233
+ sizeBytes: number().int().nonnegative(),
12234
+ pageCount: number().int().nonnegative(),
12235
+ pageSize: number().int().positive(),
12236
+ /**
12237
+ * Every b-tree table with its row count. Read inside the SAME read
12238
+ * transaction the copy was taken from, and found EQUAL on the copy — so
12239
+ * this is the content of the snapshot, not an estimate of the source.
12240
+ */
12241
+ tables: array(DatabaseSnapshotTableSchema),
12242
+ /** Wall time of the pinned copy (row counts included). */
12243
+ copyMs: number().nonnegative(),
12244
+ /** Wall time of the checks on the copy (`integrity_check`, row counts). */
12245
+ verifyMs: number().nonnegative(),
12246
+ /** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
12247
+ takenAt: number()
12248
+ });
12249
+ /**
12250
+ * A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
12251
+ * the same facts, with both paths relative to the archive root (the node's
12252
+ * data dir), because an archive outlives the host that made it.
12253
+ */
12254
+ var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
12255
+ /** Archive-relative path of the live database the archive does NOT carry. */
12256
+ livePath: string(),
12257
+ /** Archive-relative path of the verified copy it carries in its place. */
12258
+ snapshotPath: string()
12259
+ });
12260
+ method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
12261
+ kind: "mutation",
12262
+ auth: "admin",
12263
+ timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
12264
+ });
12265
+ /**
12204
12266
  * Orchestrator-side destination metadata. The orchestrator computes
12205
12267
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12206
12268
  * (admin UI, restore flow) see one canonical key.
@@ -12311,7 +12373,12 @@ var ArchiveManifestSchema = object({
12311
12373
  locations: array(string()),
12312
12374
  entries: array(ArchiveEntrySchema),
12313
12375
  totalBytes: number(),
12314
- totalFiles: number()
12376
+ totalFiles: number(),
12377
+ /**
12378
+ * Live SQLite databases this archive carries as their OWNER's verified
12379
+ * snapshot instead of as files (D693). Absent on archives made before.
12380
+ */
12381
+ sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
12315
12382
  });
12316
12383
  var LocationStatSchema = object({
12317
12384
  name: string(),
@@ -13735,6 +13802,52 @@ var CompositionBlockStateSchema = object({
13735
13802
  reason: string().optional(),
13736
13803
  fields: array(CompositionFieldStateSchema)
13737
13804
  });
13805
+ var ComposerBlockSchema = object({
13806
+ id: string().min(1),
13807
+ name: string().min(1).max(120),
13808
+ enabled: boolean(),
13809
+ updatedAt: number(),
13810
+ composition: CompositionSchema
13811
+ });
13812
+ /**
13813
+ * A stored composition row that no longer PARSES — a schema a release
13814
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13815
+ * its device as a placeholder and reports the block `failed` naming the parse
13816
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13817
+ */
13818
+ var ComposerUnreadableBlockSchema = object({
13819
+ id: string().min(1),
13820
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13821
+ name: string().nullable(),
13822
+ /** The parse error, in the operator's words. */
13823
+ error: string()
13824
+ });
13825
+ method(object({
13826
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13827
+ integrationId: string().nullable(),
13828
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13829
+ storeLoaded: boolean(),
13830
+ blocks: array(ComposerBlockSchema),
13831
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13832
+ restartBlockIds: array(string()),
13833
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13834
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13835
+ }), object({
13836
+ blocks: array(object({
13837
+ blockId: string(),
13838
+ status: CompositionRunStatusSchema,
13839
+ reason: string().optional()
13840
+ })),
13841
+ /**
13842
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13843
+ * integration unknown, its own rows unread or read empty once). An empty
13844
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13845
+ */
13846
+ acted: boolean()
13847
+ }), {
13848
+ kind: "mutation",
13849
+ auth: "admin"
13850
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13738
13851
  var NUMBER = {
13739
13852
  kind: "fixed",
13740
13853
  result: ["number"]
@@ -13971,52 +14084,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13971
14084
  auth: "admin",
13972
14085
  access: "view"
13973
14086
  });
13974
- var ComposerBlockSchema = object({
13975
- id: string().min(1),
13976
- name: string().min(1).max(120),
13977
- enabled: boolean(),
13978
- updatedAt: number(),
13979
- composition: CompositionSchema
13980
- });
13981
- /**
13982
- * A stored composition row that no longer PARSES — a schema a release
13983
- * tightened, a row written by a newer build. Sent by id so the composer keeps
13984
- * its device as a placeholder and reports the block `failed` naming the parse
13985
- * error. Leaving it out would read, twice, exactly like a delete (D49).
13986
- */
13987
- var ComposerUnreadableBlockSchema = object({
13988
- id: string().min(1),
13989
- /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13990
- name: string().nullable(),
13991
- /** The parse error, in the operator's words. */
13992
- error: string()
13993
- });
13994
- method(object({
13995
- /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13996
- integrationId: string().nullable(),
13997
- /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13998
- storeLoaded: boolean(),
13999
- blocks: array(ComposerBlockSchema),
14000
- /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
14001
- restartBlockIds: array(string()),
14002
- /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
14003
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
14004
- }), object({
14005
- blocks: array(object({
14006
- blockId: string(),
14007
- status: CompositionRunStatusSchema,
14008
- reason: string().optional()
14009
- })),
14010
- /**
14011
- * False when the composer declared and withdrew NOTHING (store not loaded,
14012
- * integration unknown, its own rows unread or read empty once). An empty
14013
- * apply the caller owes is paid off only by one the composer acted on (D49).
14014
- */
14015
- acted: boolean()
14016
- }), {
14017
- kind: "mutation",
14018
- auth: "admin"
14019
- }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
14020
14087
  /**
14021
14088
  * `custom-model-registry` — collection cap exposing operator-registered
14022
14089
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -15881,6 +15948,138 @@ method(object({
15881
15948
  deviceIds: array(number()).readonly(),
15882
15949
  caps: array(string()).readonly().optional()
15883
15950
  }), record(string(), record(string(), unknown().nullable())));
15951
+ object({
15952
+ /** Ms epoch of the last press. null = never observed since this provider started. */
15953
+ lastPressedAt: number().nullable(),
15954
+ /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
15955
+ pressCountSinceStart: number()
15956
+ });
15957
+ object({
15958
+ deviceId: number(),
15959
+ timestamp: number()
15960
+ });
15961
+ /**
15962
+ * The `doorbell-source` extension slot's editable value (D648): the camera's
15963
+ * virtual-doorbell trigger devices, exactly what the wrapper's
15964
+ * `doorbellSources` persists (as `{ deviceId }` records).
15965
+ */
15966
+ var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
15967
+ DeviceType.Camera;
15968
+ DeviceType.Button, DeviceType.Camera;
15969
+ var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
15970
+ DeviceType.Camera, DeviceType.Camera;
15971
+ /** A slot's editable value, discriminated on `slot`. */
15972
+ var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
15973
+ DeviceType.Camera;
15974
+ var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
15975
+ state: literal("unreachable"),
15976
+ reason: string()
15977
+ })]);
15978
+ /** One provider of slots — the D554 source-listing row. */
15979
+ var ExtensionSourceSchema = object({
15980
+ /** The routing prefix of every `slotRef` this provider serves. */
15981
+ source: string(),
15982
+ label: string(),
15983
+ /** Stamped by the dispatcher from the registry (D557). */
15984
+ addonId: string().optional(),
15985
+ availability: ExtensionSourceAvailabilitySchema
15986
+ });
15987
+ /**
15988
+ * How one picked source stands. `missing` — no such device (deleted, or an id
15989
+ * that never existed); `foreign` — a device the slot's owner cannot read from
15990
+ * (a source owned by another addon); `unavailable` — it exists but is not a
15991
+ * valid source now (a container, which is never a pick). A source in any of
15992
+ * these states is SHOWN, never silently dropped or re-pointed.
15993
+ */
15994
+ var ExtensionSourceHealthSchema = _enum([
15995
+ "ok",
15996
+ "missing",
15997
+ "foreign",
15998
+ "unavailable"
15999
+ ]);
16000
+ var ExtensionSlotSourceSchema = object({
16001
+ deviceId: number().int(),
16002
+ /** The device's name, or null when it could not be resolved (`missing`). */
16003
+ name: string().nullable(),
16004
+ health: ExtensionSourceHealthSchema,
16005
+ detail: string().optional()
16006
+ });
16007
+ /**
16008
+ * A DIFFERENT authority that gates whether the slot's sources do anything —
16009
+ * reported read-only, named, never written through this contract (D62). The
16010
+ * virtual doorbell's sources ring only while the wrapper is bound to the
16011
+ * camera, and that binding belongs to `deviceManager.setWrapperActive`.
16012
+ * `unknown` means the gate could not be read; it is not "inactive" (D315).
16013
+ */
16014
+ var ExtensionSlotActivationSchema = object({
16015
+ state: _enum([
16016
+ "active",
16017
+ "inactive",
16018
+ "unknown"
16019
+ ]),
16020
+ authority: string(),
16021
+ detail: string().optional()
16022
+ });
16023
+ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
16024
+ state: literal("ok"),
16025
+ /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
16026
+ slotRef: string(),
16027
+ slot: ExtensionSlotIdSchema,
16028
+ /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
16029
+ authority: string(),
16030
+ activation: ExtensionSlotActivationSchema.nullable(),
16031
+ value: ExtensionSlotValueSchema,
16032
+ sources: array(ExtensionSlotSourceSchema),
16033
+ /**
16034
+ * Devices the owner links to the host ON ITS OWN, by structure, and that
16035
+ * are therefore not in `value` (D655): a camera's device-tree children, and
16036
+ * the child a picked container stands for (D356 — a container is never a
16037
+ * pick, its children are). Read-only; the editor shows them and may offer
16038
+ * per-device options on them (the linked-devices tracked-event opt-in).
16039
+ * Absent when the owner links nothing beyond the picks, and from an owner
16040
+ * older than D655.
16041
+ */
16042
+ impliedSources: array(ExtensionSlotSourceSchema).optional()
16043
+ }), object({
16044
+ state: literal("unreachable"),
16045
+ addonId: string(),
16046
+ reason: string()
16047
+ })]);
16048
+ var ExtensionCandidatesSchema = object({ candidates: array(object({
16049
+ deviceId: number().int(),
16050
+ name: string(),
16051
+ type: string(),
16052
+ location: string().nullable(),
16053
+ /** The container a child belongs to — "Spotlight 2" alone does not say which. */
16054
+ parentName: string().nullable(),
16055
+ /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
16056
+ suggested: boolean(),
16057
+ /** Why it is suggested ("same location"), null when it is not. */
16058
+ reason: string().nullable()
16059
+ })) });
16060
+ /**
16061
+ * What a write did. `none` — applied in place. `host` / `parent` — the owner
16062
+ * reloaded the host (or, for an accessory child, its parent) because the
16063
+ * write changed what the host REGISTERS. A slot never adds a capability to its
16064
+ * host — that is a composition (D663) — so today's owners answer `none`.
16065
+ */
16066
+ var ExtensionSetResultSchema = object({
16067
+ applied: literal(true),
16068
+ reload: _enum([
16069
+ "none",
16070
+ "host",
16071
+ "parent"
16072
+ ])
16073
+ });
16074
+ var ExtensionSlotRefInputSchema = object({
16075
+ deviceId: number().int(),
16076
+ slotRef: string().min(1)
16077
+ });
16078
+ var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
16079
+ method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
16080
+ kind: "mutation",
16081
+ auth: "admin"
16082
+ });
15884
16083
  /**
15885
16084
  * Per-field ownership (D663). A composition may CLAIM fields of a native
15886
16085
  * cap's runtime-state slice on an existing device: `replace` overlays the
@@ -18859,17 +19058,25 @@ var NcScheduleSchema = object({
18859
19058
  */
18860
19059
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
18861
19060
  /**
19061
+ * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
19062
+ * every section; `section` = one notification per section with something to
19063
+ * say (an unavailable section included), each titled by its section.
19064
+ */
19065
+ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
19066
+ /**
18862
19067
  * `summary`: the rule sends NOTHING per event. When a window of `schedule`
18863
19068
  * CLOSES, it sends one notification with the current state of its kinds
18864
19069
  * (low batteries, consumables to replace, devices offline, updates
18865
- * available, ...), after its own filters. Nothing to report sends nothing.
19070
+ * available, ...), after its own filters — or, with `split: 'section'`
19071
+ * (D698), one notification per section. Nothing to report sends nothing.
18866
19072
  * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
18867
19073
  * midnight crossing); the send time is each window's END. Refused on the
18868
19074
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
18869
19075
  */
18870
19076
  var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
18871
19077
  mode: literal("summary"),
18872
- schedule: NcScheduleSchema
19078
+ schedule: NcScheduleSchema,
19079
+ split: NcStateSummarySplitSchema.optional()
18873
19080
  })]);
18874
19081
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
18875
19082
  var NcPlateMatcherSchema = object({
@@ -19520,10 +19727,12 @@ var NcMediaPolicySchema = object({
19520
19727
  /**
19521
19728
  * Cooldown GRANULARITY over the subject's class — how much a fired
19522
19729
  * notification suppresses.
19523
- * - `shared` (default, and the absent value) — one window for the whole
19524
- * rule/scope: a cat silences the next dog for `cooldownSec`.
19525
- * - `per-class` — an independent window per detected class, so cat→dog fires
19526
- * at once and cat→cat still waits.
19730
+ * - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
19731
+ * independent window per detected class: cat→dog fires at once, cat→cat
19732
+ * still waits.
19733
+ * - `shared` — one window for the whole rule/scope: a cat silences the next
19734
+ * dog for `cooldownSec`. Only written when an operator picks it; it is no
19735
+ * longer what an unset rule means.
19527
19736
  *
19528
19737
  * AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
19529
19738
  * must not be swallowed by a bark's window (the precedent this generalizes —
@@ -19538,8 +19747,11 @@ var NcThrottleSchema = object({
19538
19747
  /**
19539
19748
  * Class granularity of the cooldown key. Optional rather than defaulted:
19540
19749
  * a Zod default does NOT run on the addon→addon cap path, so a persisted
19541
- * rule authored before this field simply carries none — and the engine
19542
- * reads absent as `shared`, the pre-existing behaviour.
19750
+ * rule authored before this field simply carries none. The engine used to
19751
+ * read absent as `shared` (D36); since 2026-10-01 it reads absent as
19752
+ * `per-class` — the operator's default — and only an explicit `shared`
19753
+ * still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
19754
+ * engine, and D36's dated note.
19543
19755
  */
19544
19756
  granularity: NcThrottleGranularitySchema.optional()
19545
19757
  });
@@ -19863,11 +20075,23 @@ var NcStateSummaryPreviewSectionSchema = object({
19863
20075
  reason: string().optional()
19864
20076
  });
19865
20077
  /**
20078
+ * One notification a previewed summary would send (D698): the whole summary on
20079
+ * a `rule` split (no `section`), one section's on a `section` split.
20080
+ */
20081
+ var NcStateSummaryPreviewRowSchema = object({
20082
+ section: string().optional(),
20083
+ /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
20084
+ title: string(),
20085
+ text: string(),
20086
+ count: number().int().nonnegative()
20087
+ });
20088
+ /**
19866
20089
  * The summary a rule would send now. `empty` = nothing to report and every
19867
20090
  * section read: such a summary is NOT sent. `dropped` counts the open states
19868
20091
  * the rule's own filters (or a camera mute) left out, by reason.
19869
20092
  * `excludedGroups` names the kind groups selected that have no state to report
19870
- * (backups & exports).
20093
+ * (backups & exports). `split` and `rows` (D698) say how it would be sent —
20094
+ * optional, so an older hub's answer still parses.
19871
20095
  */
19872
20096
  var NcStateSummaryPreviewSchema = object({
19873
20097
  empty: boolean(),
@@ -19875,7 +20099,9 @@ var NcStateSummaryPreviewSchema = object({
19875
20099
  text: string(),
19876
20100
  sections: array(NcStateSummaryPreviewSectionSchema),
19877
20101
  dropped: record(string(), number().int().nonnegative()),
19878
- excludedGroups: array(string())
20102
+ excludedGroups: array(string()),
20103
+ split: NcStateSummarySplitSchema.optional(),
20104
+ rows: array(NcStateSummaryPreviewRowSchema).optional()
19879
20105
  });
19880
20106
  var NcTestResultSchema = object({
19881
20107
  recordId: string(),
@@ -27354,138 +27580,6 @@ DeviceType.Camera, method(object({
27354
27580
  kind: "query",
27355
27581
  auth: "protected"
27356
27582
  });
27357
- object({
27358
- /** Ms epoch of the last press. null = never observed since this provider started. */
27359
- lastPressedAt: number().nullable(),
27360
- /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
27361
- pressCountSinceStart: number()
27362
- });
27363
- object({
27364
- deviceId: number(),
27365
- timestamp: number()
27366
- });
27367
- /**
27368
- * The `doorbell-source` extension slot's editable value (D648): the camera's
27369
- * virtual-doorbell trigger devices, exactly what the wrapper's
27370
- * `doorbellSources` persists (as `{ deviceId }` records).
27371
- */
27372
- var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
27373
- DeviceType.Camera;
27374
- DeviceType.Button, DeviceType.Camera;
27375
- var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
27376
- DeviceType.Camera, DeviceType.Camera;
27377
- /** A slot's editable value, discriminated on `slot`. */
27378
- var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
27379
- DeviceType.Camera;
27380
- var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
27381
- state: literal("unreachable"),
27382
- reason: string()
27383
- })]);
27384
- /** One provider of slots — the D554 source-listing row. */
27385
- var ExtensionSourceSchema = object({
27386
- /** The routing prefix of every `slotRef` this provider serves. */
27387
- source: string(),
27388
- label: string(),
27389
- /** Stamped by the dispatcher from the registry (D557). */
27390
- addonId: string().optional(),
27391
- availability: ExtensionSourceAvailabilitySchema
27392
- });
27393
- /**
27394
- * How one picked source stands. `missing` — no such device (deleted, or an id
27395
- * that never existed); `foreign` — a device the slot's owner cannot read from
27396
- * (a source owned by another addon); `unavailable` — it exists but is not a
27397
- * valid source now (a container, which is never a pick). A source in any of
27398
- * these states is SHOWN, never silently dropped or re-pointed.
27399
- */
27400
- var ExtensionSourceHealthSchema = _enum([
27401
- "ok",
27402
- "missing",
27403
- "foreign",
27404
- "unavailable"
27405
- ]);
27406
- var ExtensionSlotSourceSchema = object({
27407
- deviceId: number().int(),
27408
- /** The device's name, or null when it could not be resolved (`missing`). */
27409
- name: string().nullable(),
27410
- health: ExtensionSourceHealthSchema,
27411
- detail: string().optional()
27412
- });
27413
- /**
27414
- * A DIFFERENT authority that gates whether the slot's sources do anything —
27415
- * reported read-only, named, never written through this contract (D62). The
27416
- * virtual doorbell's sources ring only while the wrapper is bound to the
27417
- * camera, and that binding belongs to `deviceManager.setWrapperActive`.
27418
- * `unknown` means the gate could not be read; it is not "inactive" (D315).
27419
- */
27420
- var ExtensionSlotActivationSchema = object({
27421
- state: _enum([
27422
- "active",
27423
- "inactive",
27424
- "unknown"
27425
- ]),
27426
- authority: string(),
27427
- detail: string().optional()
27428
- });
27429
- var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
27430
- state: literal("ok"),
27431
- /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
27432
- slotRef: string(),
27433
- slot: ExtensionSlotIdSchema,
27434
- /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
27435
- authority: string(),
27436
- activation: ExtensionSlotActivationSchema.nullable(),
27437
- value: ExtensionSlotValueSchema,
27438
- sources: array(ExtensionSlotSourceSchema),
27439
- /**
27440
- * Devices the owner links to the host ON ITS OWN, by structure, and that
27441
- * are therefore not in `value` (D655): a camera's device-tree children, and
27442
- * the child a picked container stands for (D356 — a container is never a
27443
- * pick, its children are). Read-only; the editor shows them and may offer
27444
- * per-device options on them (the linked-devices tracked-event opt-in).
27445
- * Absent when the owner links nothing beyond the picks, and from an owner
27446
- * older than D655.
27447
- */
27448
- impliedSources: array(ExtensionSlotSourceSchema).optional()
27449
- }), object({
27450
- state: literal("unreachable"),
27451
- addonId: string(),
27452
- reason: string()
27453
- })]);
27454
- var ExtensionCandidatesSchema = object({ candidates: array(object({
27455
- deviceId: number().int(),
27456
- name: string(),
27457
- type: string(),
27458
- location: string().nullable(),
27459
- /** The container a child belongs to — "Spotlight 2" alone does not say which. */
27460
- parentName: string().nullable(),
27461
- /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
27462
- suggested: boolean(),
27463
- /** Why it is suggested ("same location"), null when it is not. */
27464
- reason: string().nullable()
27465
- })) });
27466
- /**
27467
- * What a write did. `none` — applied in place. `host` / `parent` — the owner
27468
- * reloaded the host (or, for an accessory child, its parent) because the
27469
- * write changed what the host REGISTERS. A slot never adds a capability to its
27470
- * host — that is a composition (D663) — so today's owners answer `none`.
27471
- */
27472
- var ExtensionSetResultSchema = object({
27473
- applied: literal(true),
27474
- reload: _enum([
27475
- "none",
27476
- "host",
27477
- "parent"
27478
- ])
27479
- });
27480
- var ExtensionSlotRefInputSchema = object({
27481
- deviceId: number().int(),
27482
- slotRef: string().min(1)
27483
- });
27484
- var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
27485
- method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
27486
- kind: "mutation",
27487
- auth: "admin"
27488
- });
27489
27583
  /**
27490
27584
  * Optional client-side hints sent at session creation to help the provider
27491
27585
  * pick the best native source. All fields optional — a viewer that knows
@@ -38585,6 +38679,18 @@ Object.freeze({
38585
38679
  addonId: null,
38586
38680
  access: "view"
38587
38681
  },
38682
+ "databaseSnapshot.listDatabases": {
38683
+ capName: "database-snapshot",
38684
+ capScope: "system",
38685
+ addonId: null,
38686
+ access: "view"
38687
+ },
38688
+ "databaseSnapshot.writeSnapshot": {
38689
+ capName: "database-snapshot",
38690
+ capScope: "system",
38691
+ addonId: null,
38692
+ access: "create"
38693
+ },
38588
38694
  "dataStoreProvider.aggregate": {
38589
38695
  capName: "data-store-provider",
38590
38696
  capScope: "system",
@@ -47113,6 +47219,18 @@ var STATE_SUMMARY_VARS = [
47113
47219
  systemEventKinds: [...SUMMARISABLE],
47114
47220
  systemEventDeliveries: ["summary"]
47115
47221
  },
47222
+ {
47223
+ name: "summarySection",
47224
+ label: "Summary: this section",
47225
+ description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
47226
+ example: "Batterie scariche",
47227
+ group: "system",
47228
+ families: ["rule"],
47229
+ fields: [...RULE_TEXT],
47230
+ kinds: ["system"],
47231
+ systemEventKinds: [...SUMMARISABLE],
47232
+ systemEventDeliveries: ["summary"]
47233
+ },
47116
47234
  ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
47117
47235
  name: v.name,
47118
47236
  label: v.label,
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-Dma333nN.mjs";
2
+ import { o as i, s as a } from "./responsive-DM13bMuN.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-w31RPwHi.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-C_9FXI-l.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
1
  import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
- import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C-PLenBK.mjs";
3
+ import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-a-ZV2LaP.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
@@ -1,5 +1,5 @@
1
1
  import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { s as i } from "./responsive-Dma333nN.mjs";
2
+ import { s as i } from "./responsive-DM13bMuN.mjs";
3
3
  var a = i("camera", [["path", {
4
4
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
5
  key: "18u6gg"
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-Dma333nN.mjs";
1
+ import { s as e } from "./responsive-DM13bMuN.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-Dma333nN.mjs";
1
+ import { s as e } from "./responsive-DM13bMuN.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DdDnYrMZ.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CVGJSgs1.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.1.186",
3
+ "version": "1.1.187",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",
@@ -80,7 +80,7 @@
80
80
  "build:server": "vite build",
81
81
  "build:page": "vite build -c vite.page.config.ts",
82
82
  "dev:page": "vite -c vite.page.config.ts",
83
- "typecheck": "tsc --noEmit",
83
+ "typecheck": "tsc --noEmit -p tsconfig.spec.json",
84
84
  "test": "vitest run",
85
85
  "publish:npm": "npm publish --access public"
86
86
  },