@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.
- package/dist/{MotionZonesSettings-CA9PaKjB.mjs → MotionZonesSettings-Ctu2jUw5.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BJR31Efj.mjs → PrivacyMaskSettings-BklhxSXj.mjs} +4 -4
- package/dist/{SceneMonitorEditor-HiRFJCYE.mjs → SceneMonitorEditor-BZRgxah0.mjs} +3 -3
- package/dist/_stub.js +9 -9
- 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
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-a-ZV2LaP.mjs +26 -0
- package/dist/{hostInit-T7_Tpiyv.mjs → hostInit-D34VXjYA.mjs} +3 -3
- package/dist/model-studio.addon.js +307 -189
- package/dist/model-studio.addon.mjs +307 -189
- package/dist/{player-overlays-DdeNw6dl.mjs → player-overlays-WyG3CO8M.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-Dma333nN.mjs → responsive-DM13bMuN.mjs} +1 -1
- package/dist/{scene-monitor-copy-DKotQU9H.mjs → scene-monitor-copy-NEMFgUTn.mjs} +1 -1
- package/dist/{square-WG1xkrgu.mjs → square-BI5Xsmdj.mjs} +1 -1
- package/dist/{trash-2-GwC3pOqd.mjs → trash-2-D1YC9gXH.mjs} +1 -1
- 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
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C-PLenBK.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
|
|
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({
|
|
@@ -19541,10 +19748,12 @@ var NcMediaPolicySchema = object({
|
|
|
19541
19748
|
/**
|
|
19542
19749
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19543
19750
|
* notification suppresses.
|
|
19544
|
-
* - `
|
|
19545
|
-
*
|
|
19546
|
-
*
|
|
19547
|
-
*
|
|
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.
|
|
19548
19757
|
*
|
|
19549
19758
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19550
19759
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19559,8 +19768,11 @@ var NcThrottleSchema = object({
|
|
|
19559
19768
|
/**
|
|
19560
19769
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19561
19770
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19562
|
-
* rule authored before this field simply carries none
|
|
19563
|
-
*
|
|
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.
|
|
19564
19776
|
*/
|
|
19565
19777
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19566
19778
|
});
|
|
@@ -19884,11 +20096,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19884
20096
|
reason: string().optional()
|
|
19885
20097
|
});
|
|
19886
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
|
+
/**
|
|
19887
20110
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19888
20111
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19889
20112
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19890
20113
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19891
|
-
* (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.
|
|
19892
20116
|
*/
|
|
19893
20117
|
var NcStateSummaryPreviewSchema = object({
|
|
19894
20118
|
empty: boolean(),
|
|
@@ -19896,7 +20120,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19896
20120
|
text: string(),
|
|
19897
20121
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19898
20122
|
dropped: record(string(), number().int().nonnegative()),
|
|
19899
|
-
excludedGroups: array(string())
|
|
20123
|
+
excludedGroups: array(string()),
|
|
20124
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20125
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19900
20126
|
});
|
|
19901
20127
|
var NcTestResultSchema = object({
|
|
19902
20128
|
recordId: string(),
|
|
@@ -27375,138 +27601,6 @@ DeviceType.Camera, method(object({
|
|
|
27375
27601
|
kind: "query",
|
|
27376
27602
|
auth: "protected"
|
|
27377
27603
|
});
|
|
27378
|
-
object({
|
|
27379
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27380
|
-
lastPressedAt: number().nullable(),
|
|
27381
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27382
|
-
pressCountSinceStart: number()
|
|
27383
|
-
});
|
|
27384
|
-
object({
|
|
27385
|
-
deviceId: number(),
|
|
27386
|
-
timestamp: number()
|
|
27387
|
-
});
|
|
27388
|
-
/**
|
|
27389
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27390
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27391
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27392
|
-
*/
|
|
27393
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27394
|
-
DeviceType.Camera;
|
|
27395
|
-
DeviceType.Button, DeviceType.Camera;
|
|
27396
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27397
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27398
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27399
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27400
|
-
DeviceType.Camera;
|
|
27401
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27402
|
-
state: literal("unreachable"),
|
|
27403
|
-
reason: string()
|
|
27404
|
-
})]);
|
|
27405
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27406
|
-
var ExtensionSourceSchema = object({
|
|
27407
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27408
|
-
source: string(),
|
|
27409
|
-
label: string(),
|
|
27410
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27411
|
-
addonId: string().optional(),
|
|
27412
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27413
|
-
});
|
|
27414
|
-
/**
|
|
27415
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27416
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27417
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27418
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27419
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27420
|
-
*/
|
|
27421
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27422
|
-
"ok",
|
|
27423
|
-
"missing",
|
|
27424
|
-
"foreign",
|
|
27425
|
-
"unavailable"
|
|
27426
|
-
]);
|
|
27427
|
-
var ExtensionSlotSourceSchema = object({
|
|
27428
|
-
deviceId: number().int(),
|
|
27429
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27430
|
-
name: string().nullable(),
|
|
27431
|
-
health: ExtensionSourceHealthSchema,
|
|
27432
|
-
detail: string().optional()
|
|
27433
|
-
});
|
|
27434
|
-
/**
|
|
27435
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27436
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27437
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27438
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27439
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27440
|
-
*/
|
|
27441
|
-
var ExtensionSlotActivationSchema = object({
|
|
27442
|
-
state: _enum([
|
|
27443
|
-
"active",
|
|
27444
|
-
"inactive",
|
|
27445
|
-
"unknown"
|
|
27446
|
-
]),
|
|
27447
|
-
authority: string(),
|
|
27448
|
-
detail: string().optional()
|
|
27449
|
-
});
|
|
27450
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27451
|
-
state: literal("ok"),
|
|
27452
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27453
|
-
slotRef: string(),
|
|
27454
|
-
slot: ExtensionSlotIdSchema,
|
|
27455
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27456
|
-
authority: string(),
|
|
27457
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27458
|
-
value: ExtensionSlotValueSchema,
|
|
27459
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27460
|
-
/**
|
|
27461
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27462
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27463
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27464
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27465
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27466
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27467
|
-
* older than D655.
|
|
27468
|
-
*/
|
|
27469
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27470
|
-
}), object({
|
|
27471
|
-
state: literal("unreachable"),
|
|
27472
|
-
addonId: string(),
|
|
27473
|
-
reason: string()
|
|
27474
|
-
})]);
|
|
27475
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27476
|
-
deviceId: number().int(),
|
|
27477
|
-
name: string(),
|
|
27478
|
-
type: string(),
|
|
27479
|
-
location: string().nullable(),
|
|
27480
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27481
|
-
parentName: string().nullable(),
|
|
27482
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27483
|
-
suggested: boolean(),
|
|
27484
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27485
|
-
reason: string().nullable()
|
|
27486
|
-
})) });
|
|
27487
|
-
/**
|
|
27488
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27489
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27490
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27491
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27492
|
-
*/
|
|
27493
|
-
var ExtensionSetResultSchema = object({
|
|
27494
|
-
applied: literal(true),
|
|
27495
|
-
reload: _enum([
|
|
27496
|
-
"none",
|
|
27497
|
-
"host",
|
|
27498
|
-
"parent"
|
|
27499
|
-
])
|
|
27500
|
-
});
|
|
27501
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27502
|
-
deviceId: number().int(),
|
|
27503
|
-
slotRef: string().min(1)
|
|
27504
|
-
});
|
|
27505
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27506
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27507
|
-
kind: "mutation",
|
|
27508
|
-
auth: "admin"
|
|
27509
|
-
});
|
|
27510
27604
|
/**
|
|
27511
27605
|
* Optional client-side hints sent at session creation to help the provider
|
|
27512
27606
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -38606,6 +38700,18 @@ Object.freeze({
|
|
|
38606
38700
|
addonId: null,
|
|
38607
38701
|
access: "view"
|
|
38608
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
|
+
},
|
|
38609
38715
|
"dataStoreProvider.aggregate": {
|
|
38610
38716
|
capName: "data-store-provider",
|
|
38611
38717
|
capScope: "system",
|
|
@@ -47134,6 +47240,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
47134
47240
|
systemEventKinds: [...SUMMARISABLE],
|
|
47135
47241
|
systemEventDeliveries: ["summary"]
|
|
47136
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
|
+
},
|
|
47137
47255
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
47138
47256
|
name: v.name,
|
|
47139
47257
|
label: v.label,
|