@camstack/addon-provider-hikvision 1.2.134 → 1.2.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +476 -274
- package/dist/addon.mjs +476 -274
- package/package.json +2 -2
package/dist/addon.js
CHANGED
|
@@ -11905,6 +11905,68 @@ method(object({
|
|
|
11905
11905
|
password: string()
|
|
11906
11906
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11907
11907
|
/**
|
|
11908
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11909
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11910
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11911
|
+
* generous because a timeout fails the whole backup run.
|
|
11912
|
+
*/
|
|
11913
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11914
|
+
/**
|
|
11915
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11916
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11917
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11918
|
+
* owner's host.
|
|
11919
|
+
*/
|
|
11920
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11921
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11922
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11923
|
+
name: string(),
|
|
11924
|
+
rows: number().int().nonnegative()
|
|
11925
|
+
});
|
|
11926
|
+
/**
|
|
11927
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11928
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11929
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11930
|
+
* archiving something it cannot place.
|
|
11931
|
+
*/
|
|
11932
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11933
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11934
|
+
livePath: string(),
|
|
11935
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11936
|
+
snapshotPath: string(),
|
|
11937
|
+
sizeBytes: number().int().nonnegative(),
|
|
11938
|
+
pageCount: number().int().nonnegative(),
|
|
11939
|
+
pageSize: number().int().positive(),
|
|
11940
|
+
/**
|
|
11941
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11942
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11943
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11944
|
+
*/
|
|
11945
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11946
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11947
|
+
copyMs: number().nonnegative(),
|
|
11948
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11949
|
+
verifyMs: number().nonnegative(),
|
|
11950
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11951
|
+
takenAt: number()
|
|
11952
|
+
});
|
|
11953
|
+
/**
|
|
11954
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11955
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11956
|
+
* data dir), because an archive outlives the host that made it.
|
|
11957
|
+
*/
|
|
11958
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11959
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11960
|
+
livePath: string(),
|
|
11961
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11962
|
+
snapshotPath: string()
|
|
11963
|
+
});
|
|
11964
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11965
|
+
kind: "mutation",
|
|
11966
|
+
auth: "admin",
|
|
11967
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11968
|
+
});
|
|
11969
|
+
/**
|
|
11908
11970
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11909
11971
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11910
11972
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -12015,7 +12077,12 @@ var ArchiveManifestSchema = object({
|
|
|
12015
12077
|
locations: array(string()),
|
|
12016
12078
|
entries: array(ArchiveEntrySchema),
|
|
12017
12079
|
totalBytes: number(),
|
|
12018
|
-
totalFiles: number()
|
|
12080
|
+
totalFiles: number(),
|
|
12081
|
+
/**
|
|
12082
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12083
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12084
|
+
*/
|
|
12085
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
12019
12086
|
});
|
|
12020
12087
|
var LocationStatSchema = object({
|
|
12021
12088
|
name: string(),
|
|
@@ -13541,6 +13608,52 @@ var CompositionBlockStateSchema = object({
|
|
|
13541
13608
|
reason: string().optional(),
|
|
13542
13609
|
fields: array(CompositionFieldStateSchema)
|
|
13543
13610
|
});
|
|
13611
|
+
var ComposerBlockSchema = object({
|
|
13612
|
+
id: string().min(1),
|
|
13613
|
+
name: string().min(1).max(120),
|
|
13614
|
+
enabled: boolean(),
|
|
13615
|
+
updatedAt: number(),
|
|
13616
|
+
composition: CompositionSchema
|
|
13617
|
+
});
|
|
13618
|
+
/**
|
|
13619
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13620
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13621
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13622
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13623
|
+
*/
|
|
13624
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13625
|
+
id: string().min(1),
|
|
13626
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13627
|
+
name: string().nullable(),
|
|
13628
|
+
/** The parse error, in the operator's words. */
|
|
13629
|
+
error: string()
|
|
13630
|
+
});
|
|
13631
|
+
method(object({
|
|
13632
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13633
|
+
integrationId: string().nullable(),
|
|
13634
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13635
|
+
storeLoaded: boolean(),
|
|
13636
|
+
blocks: array(ComposerBlockSchema),
|
|
13637
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13638
|
+
restartBlockIds: array(string()),
|
|
13639
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13640
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13641
|
+
}), object({
|
|
13642
|
+
blocks: array(object({
|
|
13643
|
+
blockId: string(),
|
|
13644
|
+
status: CompositionRunStatusSchema,
|
|
13645
|
+
reason: string().optional()
|
|
13646
|
+
})),
|
|
13647
|
+
/**
|
|
13648
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13649
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13650
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13651
|
+
*/
|
|
13652
|
+
acted: boolean()
|
|
13653
|
+
}), {
|
|
13654
|
+
kind: "mutation",
|
|
13655
|
+
auth: "admin"
|
|
13656
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13544
13657
|
var NUMBER = {
|
|
13545
13658
|
kind: "fixed",
|
|
13546
13659
|
result: ["number"]
|
|
@@ -13777,52 +13890,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13777
13890
|
auth: "admin",
|
|
13778
13891
|
access: "view"
|
|
13779
13892
|
});
|
|
13780
|
-
var ComposerBlockSchema = object({
|
|
13781
|
-
id: string().min(1),
|
|
13782
|
-
name: string().min(1).max(120),
|
|
13783
|
-
enabled: boolean(),
|
|
13784
|
-
updatedAt: number(),
|
|
13785
|
-
composition: CompositionSchema
|
|
13786
|
-
});
|
|
13787
|
-
/**
|
|
13788
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13789
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13790
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13791
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13792
|
-
*/
|
|
13793
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13794
|
-
id: string().min(1),
|
|
13795
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13796
|
-
name: string().nullable(),
|
|
13797
|
-
/** The parse error, in the operator's words. */
|
|
13798
|
-
error: string()
|
|
13799
|
-
});
|
|
13800
|
-
method(object({
|
|
13801
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13802
|
-
integrationId: string().nullable(),
|
|
13803
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13804
|
-
storeLoaded: boolean(),
|
|
13805
|
-
blocks: array(ComposerBlockSchema),
|
|
13806
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13807
|
-
restartBlockIds: array(string()),
|
|
13808
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13809
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13810
|
-
}), object({
|
|
13811
|
-
blocks: array(object({
|
|
13812
|
-
blockId: string(),
|
|
13813
|
-
status: CompositionRunStatusSchema,
|
|
13814
|
-
reason: string().optional()
|
|
13815
|
-
})),
|
|
13816
|
-
/**
|
|
13817
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13818
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13819
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13820
|
-
*/
|
|
13821
|
-
acted: boolean()
|
|
13822
|
-
}), {
|
|
13823
|
-
kind: "mutation",
|
|
13824
|
-
auth: "admin"
|
|
13825
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13826
13893
|
/**
|
|
13827
13894
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13828
13895
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15973,6 +16040,219 @@ method(object({
|
|
|
15973
16040
|
caps: array(string()).readonly().optional()
|
|
15974
16041
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15975
16042
|
/**
|
|
16043
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
16044
|
+
* name (same pattern as `snapshot`):
|
|
16045
|
+
*
|
|
16046
|
+
* - **Native** providers: registered per-device by device-driver
|
|
16047
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
16048
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16049
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
16050
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
16051
|
+
* ring; status tracks the last press and a pressCount since start
|
|
16052
|
+
* (diagnostic).
|
|
16053
|
+
*
|
|
16054
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16055
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16056
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16057
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16058
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
16059
|
+
* device + trigger in the per-device settings.
|
|
16060
|
+
*
|
|
16061
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16062
|
+
* — subscribers listening at the camera level receive ring events
|
|
16063
|
+
* with `via[]` populated. No code on the parent needed.
|
|
16064
|
+
*/
|
|
16065
|
+
var DoorbellStatusSchema = object({
|
|
16066
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16067
|
+
lastPressedAt: number().nullable(),
|
|
16068
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16069
|
+
pressCountSinceStart: number()
|
|
16070
|
+
});
|
|
16071
|
+
var DoorbellPressEventSchema = object({
|
|
16072
|
+
deviceId: number(),
|
|
16073
|
+
timestamp: number()
|
|
16074
|
+
});
|
|
16075
|
+
/**
|
|
16076
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16077
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16078
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16079
|
+
*/
|
|
16080
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16081
|
+
/**
|
|
16082
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16083
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16084
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
16085
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16086
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16087
|
+
* reports it, it never writes it.
|
|
16088
|
+
*/
|
|
16089
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
16090
|
+
id: "doorbell-source",
|
|
16091
|
+
label: "Doorbell trigger devices",
|
|
16092
|
+
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
16093
|
+
shape: "association",
|
|
16094
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
16095
|
+
sourceCaps: SOURCE_CAPS,
|
|
16096
|
+
cardinality: "many",
|
|
16097
|
+
value: DoorbellSourceSlotValueSchema
|
|
16098
|
+
};
|
|
16099
|
+
var doorbellCapability = {
|
|
16100
|
+
name: "doorbell",
|
|
16101
|
+
scope: "device",
|
|
16102
|
+
deviceNative: true,
|
|
16103
|
+
mode: "singleton",
|
|
16104
|
+
kind: "wrapper",
|
|
16105
|
+
defaultActive: false,
|
|
16106
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16107
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16108
|
+
methods: {},
|
|
16109
|
+
events: {
|
|
16110
|
+
/**
|
|
16111
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16112
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16113
|
+
* release/duration — it's a pulse.
|
|
16114
|
+
*/
|
|
16115
|
+
onPressed: {
|
|
16116
|
+
data: DoorbellPressEventSchema,
|
|
16117
|
+
fromState: {
|
|
16118
|
+
field: "lastPressedAt",
|
|
16119
|
+
on: "advance"
|
|
16120
|
+
}
|
|
16121
|
+
} },
|
|
16122
|
+
status: {
|
|
16123
|
+
schema: DoorbellStatusSchema,
|
|
16124
|
+
kind: "push"
|
|
16125
|
+
},
|
|
16126
|
+
/**
|
|
16127
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16128
|
+
* Mirrored by the kernel and readable via
|
|
16129
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16130
|
+
* without subscribing.
|
|
16131
|
+
*/
|
|
16132
|
+
runtimeState: DoorbellStatusSchema,
|
|
16133
|
+
/**
|
|
16134
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
16135
|
+
*
|
|
16136
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
16137
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
16138
|
+
*/
|
|
16139
|
+
durability: "restored"
|
|
16140
|
+
};
|
|
16141
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16142
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16143
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16144
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16145
|
+
DeviceType.Camera;
|
|
16146
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16147
|
+
state: literal("unreachable"),
|
|
16148
|
+
reason: string()
|
|
16149
|
+
})]);
|
|
16150
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16151
|
+
var ExtensionSourceSchema = object({
|
|
16152
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16153
|
+
source: string(),
|
|
16154
|
+
label: string(),
|
|
16155
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16156
|
+
addonId: string().optional(),
|
|
16157
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16158
|
+
});
|
|
16159
|
+
/**
|
|
16160
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16161
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16162
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16163
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16164
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16165
|
+
*/
|
|
16166
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16167
|
+
"ok",
|
|
16168
|
+
"missing",
|
|
16169
|
+
"foreign",
|
|
16170
|
+
"unavailable"
|
|
16171
|
+
]);
|
|
16172
|
+
var ExtensionSlotSourceSchema = object({
|
|
16173
|
+
deviceId: number().int(),
|
|
16174
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16175
|
+
name: string().nullable(),
|
|
16176
|
+
health: ExtensionSourceHealthSchema,
|
|
16177
|
+
detail: string().optional()
|
|
16178
|
+
});
|
|
16179
|
+
/**
|
|
16180
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16181
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16182
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16183
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16184
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16185
|
+
*/
|
|
16186
|
+
var ExtensionSlotActivationSchema = object({
|
|
16187
|
+
state: _enum([
|
|
16188
|
+
"active",
|
|
16189
|
+
"inactive",
|
|
16190
|
+
"unknown"
|
|
16191
|
+
]),
|
|
16192
|
+
authority: string(),
|
|
16193
|
+
detail: string().optional()
|
|
16194
|
+
});
|
|
16195
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16196
|
+
state: literal("ok"),
|
|
16197
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16198
|
+
slotRef: string(),
|
|
16199
|
+
slot: ExtensionSlotIdSchema,
|
|
16200
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16201
|
+
authority: string(),
|
|
16202
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16203
|
+
value: ExtensionSlotValueSchema,
|
|
16204
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16205
|
+
/**
|
|
16206
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16207
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16208
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16209
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16210
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16211
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16212
|
+
* older than D655.
|
|
16213
|
+
*/
|
|
16214
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16215
|
+
}), object({
|
|
16216
|
+
state: literal("unreachable"),
|
|
16217
|
+
addonId: string(),
|
|
16218
|
+
reason: string()
|
|
16219
|
+
})]);
|
|
16220
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16221
|
+
deviceId: number().int(),
|
|
16222
|
+
name: string(),
|
|
16223
|
+
type: string(),
|
|
16224
|
+
location: string().nullable(),
|
|
16225
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16226
|
+
parentName: string().nullable(),
|
|
16227
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16228
|
+
suggested: boolean(),
|
|
16229
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16230
|
+
reason: string().nullable()
|
|
16231
|
+
})) });
|
|
16232
|
+
/**
|
|
16233
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16234
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16235
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16236
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16237
|
+
*/
|
|
16238
|
+
var ExtensionSetResultSchema = object({
|
|
16239
|
+
applied: literal(true),
|
|
16240
|
+
reload: _enum([
|
|
16241
|
+
"none",
|
|
16242
|
+
"host",
|
|
16243
|
+
"parent"
|
|
16244
|
+
])
|
|
16245
|
+
});
|
|
16246
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16247
|
+
deviceId: number().int(),
|
|
16248
|
+
slotRef: string().min(1)
|
|
16249
|
+
});
|
|
16250
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16251
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16252
|
+
kind: "mutation",
|
|
16253
|
+
auth: "admin"
|
|
16254
|
+
});
|
|
16255
|
+
/**
|
|
15976
16256
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15977
16257
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15978
16258
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -19001,17 +19281,25 @@ var NcScheduleSchema = object({
|
|
|
19001
19281
|
*/
|
|
19002
19282
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
19003
19283
|
/**
|
|
19284
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19285
|
+
* every section; `section` = one notification per section with something to
|
|
19286
|
+
* say (an unavailable section included), each titled by its section.
|
|
19287
|
+
*/
|
|
19288
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19289
|
+
/**
|
|
19004
19290
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
19005
19291
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
19006
19292
|
* (low batteries, consumables to replace, devices offline, updates
|
|
19007
|
-
* available, ...), after its own filters
|
|
19293
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19294
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
19008
19295
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
19009
19296
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
19010
19297
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
19011
19298
|
*/
|
|
19012
19299
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
19013
19300
|
mode: literal("summary"),
|
|
19014
|
-
schedule: NcScheduleSchema
|
|
19301
|
+
schedule: NcScheduleSchema,
|
|
19302
|
+
split: NcStateSummarySplitSchema.optional()
|
|
19015
19303
|
})]);
|
|
19016
19304
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
19017
19305
|
var NcPlateMatcherSchema = object({
|
|
@@ -19151,8 +19439,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
19151
19439
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
19152
19440
|
var NcZoneConditionSchema = object({
|
|
19153
19441
|
ids: array(string().min(1)).min(1),
|
|
19154
|
-
/**
|
|
19155
|
-
|
|
19442
|
+
/**
|
|
19443
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19444
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19445
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19446
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19447
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19448
|
+
*/
|
|
19449
|
+
match: _enum(["any", "all"]).optional()
|
|
19156
19450
|
});
|
|
19157
19451
|
/**
|
|
19158
19452
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19656,10 +19950,12 @@ var NcMediaPolicySchema = object({
|
|
|
19656
19950
|
/**
|
|
19657
19951
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19658
19952
|
* notification suppresses.
|
|
19659
|
-
* - `
|
|
19660
|
-
*
|
|
19661
|
-
*
|
|
19662
|
-
*
|
|
19953
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19954
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19955
|
+
* still waits.
|
|
19956
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19957
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19958
|
+
* longer what an unset rule means.
|
|
19663
19959
|
*
|
|
19664
19960
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19665
19961
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19674,8 +19970,11 @@ var NcThrottleSchema = object({
|
|
|
19674
19970
|
/**
|
|
19675
19971
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19676
19972
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19677
|
-
* rule authored before this field simply carries none
|
|
19678
|
-
*
|
|
19973
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19974
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19975
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19976
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19977
|
+
* engine, and D36's dated note.
|
|
19679
19978
|
*/
|
|
19680
19979
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19681
19980
|
});
|
|
@@ -19999,11 +20298,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19999
20298
|
reason: string().optional()
|
|
20000
20299
|
});
|
|
20001
20300
|
/**
|
|
20301
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20302
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20303
|
+
*/
|
|
20304
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20305
|
+
section: string().optional(),
|
|
20306
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20307
|
+
title: string(),
|
|
20308
|
+
text: string(),
|
|
20309
|
+
count: number().int().nonnegative()
|
|
20310
|
+
});
|
|
20311
|
+
/**
|
|
20002
20312
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
20003
20313
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
20004
20314
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
20005
20315
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
20006
|
-
* (backups & exports).
|
|
20316
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20317
|
+
* optional, so an older hub's answer still parses.
|
|
20007
20318
|
*/
|
|
20008
20319
|
var NcStateSummaryPreviewSchema = object({
|
|
20009
20320
|
empty: boolean(),
|
|
@@ -20011,7 +20322,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
20011
20322
|
text: string(),
|
|
20012
20323
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
20013
20324
|
dropped: record(string(), number().int().nonnegative()),
|
|
20014
|
-
excludedGroups: array(string())
|
|
20325
|
+
excludedGroups: array(string()),
|
|
20326
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20327
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
20015
20328
|
});
|
|
20016
20329
|
var NcTestResultSchema = object({
|
|
20017
20330
|
recordId: string(),
|
|
@@ -22932,7 +23245,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22932
23245
|
trackIds: array(string()).min(1)
|
|
22933
23246
|
}), object({
|
|
22934
23247
|
deleted: number().int(),
|
|
22935
|
-
failed: array(string()).readonly()
|
|
23248
|
+
failed: array(string()).readonly(),
|
|
23249
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22936
23250
|
}), {
|
|
22937
23251
|
kind: "mutation",
|
|
22938
23252
|
auth: "admin"
|
|
@@ -25161,7 +25475,42 @@ var SetCameraSensorsInputSchema = object({
|
|
|
25161
25475
|
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25162
25476
|
config: CameraSensorsConfigSchema.nullable()
|
|
25163
25477
|
});
|
|
25164
|
-
|
|
25478
|
+
/**
|
|
25479
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25480
|
+
*
|
|
25481
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25482
|
+
* node and no config to attach a burst with.
|
|
25483
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25484
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25485
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25486
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25487
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25488
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25489
|
+
* real session re-arms the budget.
|
|
25490
|
+
*/
|
|
25491
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25492
|
+
"unknown-camera",
|
|
25493
|
+
"out-of-range",
|
|
25494
|
+
"no-burst-producer",
|
|
25495
|
+
"already-looked"
|
|
25496
|
+
]);
|
|
25497
|
+
method(object({
|
|
25498
|
+
deviceId: number().int().nonnegative(),
|
|
25499
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25500
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25501
|
+
afterMs: number().finite(),
|
|
25502
|
+
/** Why, for the log. */
|
|
25503
|
+
reason: string()
|
|
25504
|
+
}), object({
|
|
25505
|
+
scheduled: boolean(),
|
|
25506
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25507
|
+
dueInMs: number().optional(),
|
|
25508
|
+
/** When not `scheduled`: why. */
|
|
25509
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25510
|
+
}), {
|
|
25511
|
+
kind: "mutation",
|
|
25512
|
+
auth: "admin"
|
|
25513
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
25165
25514
|
kind: "mutation",
|
|
25166
25515
|
auth: "admin"
|
|
25167
25516
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -28046,219 +28395,6 @@ var CLIP_PLAYBACK_OPTIONS = {
|
|
|
28046
28395
|
}
|
|
28047
28396
|
};
|
|
28048
28397
|
/**
|
|
28049
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
28050
|
-
* name (same pattern as `snapshot`):
|
|
28051
|
-
*
|
|
28052
|
-
* - **Native** providers: registered per-device by device-driver
|
|
28053
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
28054
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
28055
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
28056
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
28057
|
-
* ring; status tracks the last press and a pressCount since start
|
|
28058
|
-
* (diagnostic).
|
|
28059
|
-
*
|
|
28060
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
28061
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
28062
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
28063
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
28064
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
28065
|
-
* device + trigger in the per-device settings.
|
|
28066
|
-
*
|
|
28067
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
28068
|
-
* — subscribers listening at the camera level receive ring events
|
|
28069
|
-
* with `via[]` populated. No code on the parent needed.
|
|
28070
|
-
*/
|
|
28071
|
-
var DoorbellStatusSchema = object({
|
|
28072
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
28073
|
-
lastPressedAt: number().nullable(),
|
|
28074
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
28075
|
-
pressCountSinceStart: number()
|
|
28076
|
-
});
|
|
28077
|
-
var DoorbellPressEventSchema = object({
|
|
28078
|
-
deviceId: number(),
|
|
28079
|
-
timestamp: number()
|
|
28080
|
-
});
|
|
28081
|
-
/**
|
|
28082
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
28083
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
28084
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
28085
|
-
*/
|
|
28086
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
28087
|
-
/**
|
|
28088
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
28089
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
28090
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
28091
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
28092
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
28093
|
-
* reports it, it never writes it.
|
|
28094
|
-
*/
|
|
28095
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
28096
|
-
id: "doorbell-source",
|
|
28097
|
-
label: "Doorbell trigger devices",
|
|
28098
|
-
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
28099
|
-
shape: "association",
|
|
28100
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
28101
|
-
sourceCaps: SOURCE_CAPS,
|
|
28102
|
-
cardinality: "many",
|
|
28103
|
-
value: DoorbellSourceSlotValueSchema
|
|
28104
|
-
};
|
|
28105
|
-
var doorbellCapability = {
|
|
28106
|
-
name: "doorbell",
|
|
28107
|
-
scope: "device",
|
|
28108
|
-
deviceNative: true,
|
|
28109
|
-
mode: "singleton",
|
|
28110
|
-
kind: "wrapper",
|
|
28111
|
-
defaultActive: false,
|
|
28112
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
28113
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
28114
|
-
methods: {},
|
|
28115
|
-
events: {
|
|
28116
|
-
/**
|
|
28117
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
28118
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
28119
|
-
* release/duration — it's a pulse.
|
|
28120
|
-
*/
|
|
28121
|
-
onPressed: {
|
|
28122
|
-
data: DoorbellPressEventSchema,
|
|
28123
|
-
fromState: {
|
|
28124
|
-
field: "lastPressedAt",
|
|
28125
|
-
on: "advance"
|
|
28126
|
-
}
|
|
28127
|
-
} },
|
|
28128
|
-
status: {
|
|
28129
|
-
schema: DoorbellStatusSchema,
|
|
28130
|
-
kind: "push"
|
|
28131
|
-
},
|
|
28132
|
-
/**
|
|
28133
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
28134
|
-
* Mirrored by the kernel and readable via
|
|
28135
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
28136
|
-
* without subscribing.
|
|
28137
|
-
*/
|
|
28138
|
-
runtimeState: DoorbellStatusSchema,
|
|
28139
|
-
/**
|
|
28140
|
-
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
28141
|
-
*
|
|
28142
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
28143
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
28144
|
-
*/
|
|
28145
|
-
durability: "restored"
|
|
28146
|
-
};
|
|
28147
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
28148
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
28149
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
28150
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
28151
|
-
DeviceType.Camera;
|
|
28152
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
28153
|
-
state: literal("unreachable"),
|
|
28154
|
-
reason: string()
|
|
28155
|
-
})]);
|
|
28156
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
28157
|
-
var ExtensionSourceSchema = object({
|
|
28158
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
28159
|
-
source: string(),
|
|
28160
|
-
label: string(),
|
|
28161
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
28162
|
-
addonId: string().optional(),
|
|
28163
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
28164
|
-
});
|
|
28165
|
-
/**
|
|
28166
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
28167
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
28168
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
28169
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
28170
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
28171
|
-
*/
|
|
28172
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
28173
|
-
"ok",
|
|
28174
|
-
"missing",
|
|
28175
|
-
"foreign",
|
|
28176
|
-
"unavailable"
|
|
28177
|
-
]);
|
|
28178
|
-
var ExtensionSlotSourceSchema = object({
|
|
28179
|
-
deviceId: number().int(),
|
|
28180
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
28181
|
-
name: string().nullable(),
|
|
28182
|
-
health: ExtensionSourceHealthSchema,
|
|
28183
|
-
detail: string().optional()
|
|
28184
|
-
});
|
|
28185
|
-
/**
|
|
28186
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
28187
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
28188
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
28189
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
28190
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
28191
|
-
*/
|
|
28192
|
-
var ExtensionSlotActivationSchema = object({
|
|
28193
|
-
state: _enum([
|
|
28194
|
-
"active",
|
|
28195
|
-
"inactive",
|
|
28196
|
-
"unknown"
|
|
28197
|
-
]),
|
|
28198
|
-
authority: string(),
|
|
28199
|
-
detail: string().optional()
|
|
28200
|
-
});
|
|
28201
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
28202
|
-
state: literal("ok"),
|
|
28203
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
28204
|
-
slotRef: string(),
|
|
28205
|
-
slot: ExtensionSlotIdSchema,
|
|
28206
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
28207
|
-
authority: string(),
|
|
28208
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
28209
|
-
value: ExtensionSlotValueSchema,
|
|
28210
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
28211
|
-
/**
|
|
28212
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
28213
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
28214
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
28215
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
28216
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
28217
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
28218
|
-
* older than D655.
|
|
28219
|
-
*/
|
|
28220
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
28221
|
-
}), object({
|
|
28222
|
-
state: literal("unreachable"),
|
|
28223
|
-
addonId: string(),
|
|
28224
|
-
reason: string()
|
|
28225
|
-
})]);
|
|
28226
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
28227
|
-
deviceId: number().int(),
|
|
28228
|
-
name: string(),
|
|
28229
|
-
type: string(),
|
|
28230
|
-
location: string().nullable(),
|
|
28231
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
28232
|
-
parentName: string().nullable(),
|
|
28233
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
28234
|
-
suggested: boolean(),
|
|
28235
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
28236
|
-
reason: string().nullable()
|
|
28237
|
-
})) });
|
|
28238
|
-
/**
|
|
28239
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
28240
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
28241
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
28242
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
28243
|
-
*/
|
|
28244
|
-
var ExtensionSetResultSchema = object({
|
|
28245
|
-
applied: literal(true),
|
|
28246
|
-
reload: _enum([
|
|
28247
|
-
"none",
|
|
28248
|
-
"host",
|
|
28249
|
-
"parent"
|
|
28250
|
-
])
|
|
28251
|
-
});
|
|
28252
|
-
var ExtensionSlotRefInputSchema = object({
|
|
28253
|
-
deviceId: number().int(),
|
|
28254
|
-
slotRef: string().min(1)
|
|
28255
|
-
});
|
|
28256
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
28257
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
28258
|
-
kind: "mutation",
|
|
28259
|
-
auth: "admin"
|
|
28260
|
-
});
|
|
28261
|
-
/**
|
|
28262
28398
|
* Optional client-side hints sent at session creation to help the provider
|
|
28263
28399
|
* pick the best native source. All fields optional — a viewer that knows
|
|
28264
28400
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -44272,6 +44408,18 @@ Object.freeze({
|
|
|
44272
44408
|
addonId: null,
|
|
44273
44409
|
access: "view"
|
|
44274
44410
|
},
|
|
44411
|
+
"databaseSnapshot.listDatabases": {
|
|
44412
|
+
capName: "database-snapshot",
|
|
44413
|
+
capScope: "system",
|
|
44414
|
+
addonId: null,
|
|
44415
|
+
access: "view"
|
|
44416
|
+
},
|
|
44417
|
+
"databaseSnapshot.writeSnapshot": {
|
|
44418
|
+
capName: "database-snapshot",
|
|
44419
|
+
capScope: "system",
|
|
44420
|
+
addonId: null,
|
|
44421
|
+
access: "create"
|
|
44422
|
+
},
|
|
44275
44423
|
"dataStoreProvider.aggregate": {
|
|
44276
44424
|
capName: "data-store-provider",
|
|
44277
44425
|
capScope: "system",
|
|
@@ -47836,6 +47984,12 @@ Object.freeze({
|
|
|
47836
47984
|
addonId: null,
|
|
47837
47985
|
access: "delete"
|
|
47838
47986
|
},
|
|
47987
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
47988
|
+
capName: "pipeline-orchestrator",
|
|
47989
|
+
capScope: "system",
|
|
47990
|
+
addonId: null,
|
|
47991
|
+
access: "create"
|
|
47992
|
+
},
|
|
47839
47993
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
47840
47994
|
capName: "pipeline-orchestrator",
|
|
47841
47995
|
capScope: "system",
|
|
@@ -51628,6 +51782,11 @@ Object.freeze({
|
|
|
51628
51782
|
form: "single",
|
|
51629
51783
|
optional: false
|
|
51630
51784
|
}],
|
|
51785
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
51786
|
+
name: "deviceId",
|
|
51787
|
+
form: "single",
|
|
51788
|
+
optional: false
|
|
51789
|
+
}],
|
|
51631
51790
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
51632
51791
|
name: "deviceId",
|
|
51633
51792
|
form: "single",
|
|
@@ -52789,6 +52948,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
52789
52948
|
systemEventKinds: [...SUMMARISABLE],
|
|
52790
52949
|
systemEventDeliveries: ["summary"]
|
|
52791
52950
|
},
|
|
52951
|
+
{
|
|
52952
|
+
name: "summarySection",
|
|
52953
|
+
label: "Summary: this section",
|
|
52954
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
52955
|
+
example: "Batterie scariche",
|
|
52956
|
+
group: "system",
|
|
52957
|
+
families: ["rule"],
|
|
52958
|
+
fields: [...RULE_TEXT],
|
|
52959
|
+
kinds: ["system"],
|
|
52960
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
52961
|
+
systemEventDeliveries: ["summary"]
|
|
52962
|
+
},
|
|
52792
52963
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
52793
52964
|
name: v.name,
|
|
52794
52965
|
label: v.label,
|
|
@@ -52865,6 +53036,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
52865
53036
|
[...RULE_TEXT],
|
|
52866
53037
|
...STATE_SUMMARY_VARS
|
|
52867
53038
|
];
|
|
53039
|
+
new Set([
|
|
53040
|
+
"disarmed",
|
|
53041
|
+
"armed_home",
|
|
53042
|
+
"armed_away",
|
|
53043
|
+
"armed_night",
|
|
53044
|
+
"armed_vacation",
|
|
53045
|
+
"armed_custom_bypass",
|
|
53046
|
+
"arming",
|
|
53047
|
+
"disarming",
|
|
53048
|
+
"pending",
|
|
53049
|
+
"triggered",
|
|
53050
|
+
"open",
|
|
53051
|
+
"opening",
|
|
53052
|
+
"closing",
|
|
53053
|
+
"closed",
|
|
53054
|
+
"stopped",
|
|
53055
|
+
"locked",
|
|
53056
|
+
"unlocked",
|
|
53057
|
+
"locking",
|
|
53058
|
+
"unlocking",
|
|
53059
|
+
"jammed",
|
|
53060
|
+
"on",
|
|
53061
|
+
"off",
|
|
53062
|
+
"home",
|
|
53063
|
+
"not_home",
|
|
53064
|
+
"matched",
|
|
53065
|
+
"diverged",
|
|
53066
|
+
"unknown",
|
|
53067
|
+
"latched",
|
|
53068
|
+
"live"
|
|
53069
|
+
]);
|
|
52868
53070
|
/**
|
|
52869
53071
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
52870
53072
|
*
|