@camstack/addon-provider-hikvision 1.2.133 → 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 +3 -2
package/dist/addon.mjs
CHANGED
|
@@ -11884,6 +11884,68 @@ method(object({
|
|
|
11884
11884
|
password: string()
|
|
11885
11885
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11886
11886
|
/**
|
|
11887
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11888
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11889
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11890
|
+
* generous because a timeout fails the whole backup run.
|
|
11891
|
+
*/
|
|
11892
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11893
|
+
/**
|
|
11894
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11895
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11896
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11897
|
+
* owner's host.
|
|
11898
|
+
*/
|
|
11899
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11900
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11901
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11902
|
+
name: string(),
|
|
11903
|
+
rows: number().int().nonnegative()
|
|
11904
|
+
});
|
|
11905
|
+
/**
|
|
11906
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11907
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11908
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11909
|
+
* archiving something it cannot place.
|
|
11910
|
+
*/
|
|
11911
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11912
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11913
|
+
livePath: string(),
|
|
11914
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11915
|
+
snapshotPath: string(),
|
|
11916
|
+
sizeBytes: number().int().nonnegative(),
|
|
11917
|
+
pageCount: number().int().nonnegative(),
|
|
11918
|
+
pageSize: number().int().positive(),
|
|
11919
|
+
/**
|
|
11920
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11921
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11922
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11923
|
+
*/
|
|
11924
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11925
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11926
|
+
copyMs: number().nonnegative(),
|
|
11927
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11928
|
+
verifyMs: number().nonnegative(),
|
|
11929
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11930
|
+
takenAt: number()
|
|
11931
|
+
});
|
|
11932
|
+
/**
|
|
11933
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11934
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11935
|
+
* data dir), because an archive outlives the host that made it.
|
|
11936
|
+
*/
|
|
11937
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11938
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11939
|
+
livePath: string(),
|
|
11940
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11941
|
+
snapshotPath: string()
|
|
11942
|
+
});
|
|
11943
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11944
|
+
kind: "mutation",
|
|
11945
|
+
auth: "admin",
|
|
11946
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11947
|
+
});
|
|
11948
|
+
/**
|
|
11887
11949
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11888
11950
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11889
11951
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11994,7 +12056,12 @@ var ArchiveManifestSchema = object({
|
|
|
11994
12056
|
locations: array(string()),
|
|
11995
12057
|
entries: array(ArchiveEntrySchema),
|
|
11996
12058
|
totalBytes: number(),
|
|
11997
|
-
totalFiles: number()
|
|
12059
|
+
totalFiles: number(),
|
|
12060
|
+
/**
|
|
12061
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12062
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12063
|
+
*/
|
|
12064
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11998
12065
|
});
|
|
11999
12066
|
var LocationStatSchema = object({
|
|
12000
12067
|
name: string(),
|
|
@@ -13520,6 +13587,52 @@ var CompositionBlockStateSchema = object({
|
|
|
13520
13587
|
reason: string().optional(),
|
|
13521
13588
|
fields: array(CompositionFieldStateSchema)
|
|
13522
13589
|
});
|
|
13590
|
+
var ComposerBlockSchema = object({
|
|
13591
|
+
id: string().min(1),
|
|
13592
|
+
name: string().min(1).max(120),
|
|
13593
|
+
enabled: boolean(),
|
|
13594
|
+
updatedAt: number(),
|
|
13595
|
+
composition: CompositionSchema
|
|
13596
|
+
});
|
|
13597
|
+
/**
|
|
13598
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13599
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13600
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13601
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13602
|
+
*/
|
|
13603
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13604
|
+
id: string().min(1),
|
|
13605
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13606
|
+
name: string().nullable(),
|
|
13607
|
+
/** The parse error, in the operator's words. */
|
|
13608
|
+
error: string()
|
|
13609
|
+
});
|
|
13610
|
+
method(object({
|
|
13611
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13612
|
+
integrationId: string().nullable(),
|
|
13613
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13614
|
+
storeLoaded: boolean(),
|
|
13615
|
+
blocks: array(ComposerBlockSchema),
|
|
13616
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13617
|
+
restartBlockIds: array(string()),
|
|
13618
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13619
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13620
|
+
}), object({
|
|
13621
|
+
blocks: array(object({
|
|
13622
|
+
blockId: string(),
|
|
13623
|
+
status: CompositionRunStatusSchema,
|
|
13624
|
+
reason: string().optional()
|
|
13625
|
+
})),
|
|
13626
|
+
/**
|
|
13627
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13628
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13629
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13630
|
+
*/
|
|
13631
|
+
acted: boolean()
|
|
13632
|
+
}), {
|
|
13633
|
+
kind: "mutation",
|
|
13634
|
+
auth: "admin"
|
|
13635
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13523
13636
|
var NUMBER = {
|
|
13524
13637
|
kind: "fixed",
|
|
13525
13638
|
result: ["number"]
|
|
@@ -13756,52 +13869,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13756
13869
|
auth: "admin",
|
|
13757
13870
|
access: "view"
|
|
13758
13871
|
});
|
|
13759
|
-
var ComposerBlockSchema = object({
|
|
13760
|
-
id: string().min(1),
|
|
13761
|
-
name: string().min(1).max(120),
|
|
13762
|
-
enabled: boolean(),
|
|
13763
|
-
updatedAt: number(),
|
|
13764
|
-
composition: CompositionSchema
|
|
13765
|
-
});
|
|
13766
|
-
/**
|
|
13767
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13768
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13769
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13770
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13771
|
-
*/
|
|
13772
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13773
|
-
id: string().min(1),
|
|
13774
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13775
|
-
name: string().nullable(),
|
|
13776
|
-
/** The parse error, in the operator's words. */
|
|
13777
|
-
error: string()
|
|
13778
|
-
});
|
|
13779
|
-
method(object({
|
|
13780
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13781
|
-
integrationId: string().nullable(),
|
|
13782
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13783
|
-
storeLoaded: boolean(),
|
|
13784
|
-
blocks: array(ComposerBlockSchema),
|
|
13785
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13786
|
-
restartBlockIds: array(string()),
|
|
13787
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13788
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13789
|
-
}), object({
|
|
13790
|
-
blocks: array(object({
|
|
13791
|
-
blockId: string(),
|
|
13792
|
-
status: CompositionRunStatusSchema,
|
|
13793
|
-
reason: string().optional()
|
|
13794
|
-
})),
|
|
13795
|
-
/**
|
|
13796
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13797
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13798
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13799
|
-
*/
|
|
13800
|
-
acted: boolean()
|
|
13801
|
-
}), {
|
|
13802
|
-
kind: "mutation",
|
|
13803
|
-
auth: "admin"
|
|
13804
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13805
13872
|
/**
|
|
13806
13873
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13807
13874
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15952,6 +16019,219 @@ method(object({
|
|
|
15952
16019
|
caps: array(string()).readonly().optional()
|
|
15953
16020
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15954
16021
|
/**
|
|
16022
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
16023
|
+
* name (same pattern as `snapshot`):
|
|
16024
|
+
*
|
|
16025
|
+
* - **Native** providers: registered per-device by device-driver
|
|
16026
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
16027
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16028
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
16029
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
16030
|
+
* ring; status tracks the last press and a pressCount since start
|
|
16031
|
+
* (diagnostic).
|
|
16032
|
+
*
|
|
16033
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16034
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16035
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16036
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16037
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
16038
|
+
* device + trigger in the per-device settings.
|
|
16039
|
+
*
|
|
16040
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16041
|
+
* — subscribers listening at the camera level receive ring events
|
|
16042
|
+
* with `via[]` populated. No code on the parent needed.
|
|
16043
|
+
*/
|
|
16044
|
+
var DoorbellStatusSchema = object({
|
|
16045
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16046
|
+
lastPressedAt: number().nullable(),
|
|
16047
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16048
|
+
pressCountSinceStart: number()
|
|
16049
|
+
});
|
|
16050
|
+
var DoorbellPressEventSchema = object({
|
|
16051
|
+
deviceId: number(),
|
|
16052
|
+
timestamp: number()
|
|
16053
|
+
});
|
|
16054
|
+
/**
|
|
16055
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16056
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16057
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16058
|
+
*/
|
|
16059
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16060
|
+
/**
|
|
16061
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16062
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16063
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
16064
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16065
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16066
|
+
* reports it, it never writes it.
|
|
16067
|
+
*/
|
|
16068
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
16069
|
+
id: "doorbell-source",
|
|
16070
|
+
label: "Doorbell trigger devices",
|
|
16071
|
+
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.",
|
|
16072
|
+
shape: "association",
|
|
16073
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
16074
|
+
sourceCaps: SOURCE_CAPS,
|
|
16075
|
+
cardinality: "many",
|
|
16076
|
+
value: DoorbellSourceSlotValueSchema
|
|
16077
|
+
};
|
|
16078
|
+
var doorbellCapability = {
|
|
16079
|
+
name: "doorbell",
|
|
16080
|
+
scope: "device",
|
|
16081
|
+
deviceNative: true,
|
|
16082
|
+
mode: "singleton",
|
|
16083
|
+
kind: "wrapper",
|
|
16084
|
+
defaultActive: false,
|
|
16085
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16086
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16087
|
+
methods: {},
|
|
16088
|
+
events: {
|
|
16089
|
+
/**
|
|
16090
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16091
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16092
|
+
* release/duration — it's a pulse.
|
|
16093
|
+
*/
|
|
16094
|
+
onPressed: {
|
|
16095
|
+
data: DoorbellPressEventSchema,
|
|
16096
|
+
fromState: {
|
|
16097
|
+
field: "lastPressedAt",
|
|
16098
|
+
on: "advance"
|
|
16099
|
+
}
|
|
16100
|
+
} },
|
|
16101
|
+
status: {
|
|
16102
|
+
schema: DoorbellStatusSchema,
|
|
16103
|
+
kind: "push"
|
|
16104
|
+
},
|
|
16105
|
+
/**
|
|
16106
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16107
|
+
* Mirrored by the kernel and readable via
|
|
16108
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16109
|
+
* without subscribing.
|
|
16110
|
+
*/
|
|
16111
|
+
runtimeState: DoorbellStatusSchema,
|
|
16112
|
+
/**
|
|
16113
|
+
* 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.
|
|
16114
|
+
*
|
|
16115
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
16116
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
16117
|
+
*/
|
|
16118
|
+
durability: "restored"
|
|
16119
|
+
};
|
|
16120
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16121
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16122
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16123
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16124
|
+
DeviceType.Camera;
|
|
16125
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16126
|
+
state: literal("unreachable"),
|
|
16127
|
+
reason: string()
|
|
16128
|
+
})]);
|
|
16129
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16130
|
+
var ExtensionSourceSchema = object({
|
|
16131
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16132
|
+
source: string(),
|
|
16133
|
+
label: string(),
|
|
16134
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16135
|
+
addonId: string().optional(),
|
|
16136
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16137
|
+
});
|
|
16138
|
+
/**
|
|
16139
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16140
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16141
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16142
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16143
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16144
|
+
*/
|
|
16145
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16146
|
+
"ok",
|
|
16147
|
+
"missing",
|
|
16148
|
+
"foreign",
|
|
16149
|
+
"unavailable"
|
|
16150
|
+
]);
|
|
16151
|
+
var ExtensionSlotSourceSchema = object({
|
|
16152
|
+
deviceId: number().int(),
|
|
16153
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16154
|
+
name: string().nullable(),
|
|
16155
|
+
health: ExtensionSourceHealthSchema,
|
|
16156
|
+
detail: string().optional()
|
|
16157
|
+
});
|
|
16158
|
+
/**
|
|
16159
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16160
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16161
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16162
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16163
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16164
|
+
*/
|
|
16165
|
+
var ExtensionSlotActivationSchema = object({
|
|
16166
|
+
state: _enum([
|
|
16167
|
+
"active",
|
|
16168
|
+
"inactive",
|
|
16169
|
+
"unknown"
|
|
16170
|
+
]),
|
|
16171
|
+
authority: string(),
|
|
16172
|
+
detail: string().optional()
|
|
16173
|
+
});
|
|
16174
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16175
|
+
state: literal("ok"),
|
|
16176
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16177
|
+
slotRef: string(),
|
|
16178
|
+
slot: ExtensionSlotIdSchema,
|
|
16179
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16180
|
+
authority: string(),
|
|
16181
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16182
|
+
value: ExtensionSlotValueSchema,
|
|
16183
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16184
|
+
/**
|
|
16185
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16186
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16187
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16188
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16189
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16190
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16191
|
+
* older than D655.
|
|
16192
|
+
*/
|
|
16193
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16194
|
+
}), object({
|
|
16195
|
+
state: literal("unreachable"),
|
|
16196
|
+
addonId: string(),
|
|
16197
|
+
reason: string()
|
|
16198
|
+
})]);
|
|
16199
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16200
|
+
deviceId: number().int(),
|
|
16201
|
+
name: string(),
|
|
16202
|
+
type: string(),
|
|
16203
|
+
location: string().nullable(),
|
|
16204
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16205
|
+
parentName: string().nullable(),
|
|
16206
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16207
|
+
suggested: boolean(),
|
|
16208
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16209
|
+
reason: string().nullable()
|
|
16210
|
+
})) });
|
|
16211
|
+
/**
|
|
16212
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16213
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16214
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16215
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16216
|
+
*/
|
|
16217
|
+
var ExtensionSetResultSchema = object({
|
|
16218
|
+
applied: literal(true),
|
|
16219
|
+
reload: _enum([
|
|
16220
|
+
"none",
|
|
16221
|
+
"host",
|
|
16222
|
+
"parent"
|
|
16223
|
+
])
|
|
16224
|
+
});
|
|
16225
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16226
|
+
deviceId: number().int(),
|
|
16227
|
+
slotRef: string().min(1)
|
|
16228
|
+
});
|
|
16229
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16230
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16231
|
+
kind: "mutation",
|
|
16232
|
+
auth: "admin"
|
|
16233
|
+
});
|
|
16234
|
+
/**
|
|
15955
16235
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15956
16236
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15957
16237
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -18980,17 +19260,25 @@ var NcScheduleSchema = object({
|
|
|
18980
19260
|
*/
|
|
18981
19261
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18982
19262
|
/**
|
|
19263
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19264
|
+
* every section; `section` = one notification per section with something to
|
|
19265
|
+
* say (an unavailable section included), each titled by its section.
|
|
19266
|
+
*/
|
|
19267
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19268
|
+
/**
|
|
18983
19269
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18984
19270
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18985
19271
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18986
|
-
* available, ...), after its own filters
|
|
19272
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19273
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18987
19274
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18988
19275
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18989
19276
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18990
19277
|
*/
|
|
18991
19278
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18992
19279
|
mode: literal("summary"),
|
|
18993
|
-
schedule: NcScheduleSchema
|
|
19280
|
+
schedule: NcScheduleSchema,
|
|
19281
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18994
19282
|
})]);
|
|
18995
19283
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18996
19284
|
var NcPlateMatcherSchema = object({
|
|
@@ -19130,8 +19418,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
19130
19418
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
19131
19419
|
var NcZoneConditionSchema = object({
|
|
19132
19420
|
ids: array(string().min(1)).min(1),
|
|
19133
|
-
/**
|
|
19134
|
-
|
|
19421
|
+
/**
|
|
19422
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19423
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19424
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19425
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19426
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19427
|
+
*/
|
|
19428
|
+
match: _enum(["any", "all"]).optional()
|
|
19135
19429
|
});
|
|
19136
19430
|
/**
|
|
19137
19431
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19635,10 +19929,12 @@ var NcMediaPolicySchema = object({
|
|
|
19635
19929
|
/**
|
|
19636
19930
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19637
19931
|
* notification suppresses.
|
|
19638
|
-
* - `
|
|
19639
|
-
*
|
|
19640
|
-
*
|
|
19641
|
-
*
|
|
19932
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19933
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19934
|
+
* still waits.
|
|
19935
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19936
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19937
|
+
* longer what an unset rule means.
|
|
19642
19938
|
*
|
|
19643
19939
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19644
19940
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19653,8 +19949,11 @@ var NcThrottleSchema = object({
|
|
|
19653
19949
|
/**
|
|
19654
19950
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19655
19951
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19656
|
-
* rule authored before this field simply carries none
|
|
19657
|
-
*
|
|
19952
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19953
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19954
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19955
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19956
|
+
* engine, and D36's dated note.
|
|
19658
19957
|
*/
|
|
19659
19958
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19660
19959
|
});
|
|
@@ -19978,11 +20277,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19978
20277
|
reason: string().optional()
|
|
19979
20278
|
});
|
|
19980
20279
|
/**
|
|
20280
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20281
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20282
|
+
*/
|
|
20283
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20284
|
+
section: string().optional(),
|
|
20285
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20286
|
+
title: string(),
|
|
20287
|
+
text: string(),
|
|
20288
|
+
count: number().int().nonnegative()
|
|
20289
|
+
});
|
|
20290
|
+
/**
|
|
19981
20291
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19982
20292
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19983
20293
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19984
20294
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19985
|
-
* (backups & exports).
|
|
20295
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20296
|
+
* optional, so an older hub's answer still parses.
|
|
19986
20297
|
*/
|
|
19987
20298
|
var NcStateSummaryPreviewSchema = object({
|
|
19988
20299
|
empty: boolean(),
|
|
@@ -19990,7 +20301,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19990
20301
|
text: string(),
|
|
19991
20302
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19992
20303
|
dropped: record(string(), number().int().nonnegative()),
|
|
19993
|
-
excludedGroups: array(string())
|
|
20304
|
+
excludedGroups: array(string()),
|
|
20305
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20306
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19994
20307
|
});
|
|
19995
20308
|
var NcTestResultSchema = object({
|
|
19996
20309
|
recordId: string(),
|
|
@@ -22911,7 +23224,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22911
23224
|
trackIds: array(string()).min(1)
|
|
22912
23225
|
}), object({
|
|
22913
23226
|
deleted: number().int(),
|
|
22914
|
-
failed: array(string()).readonly()
|
|
23227
|
+
failed: array(string()).readonly(),
|
|
23228
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22915
23229
|
}), {
|
|
22916
23230
|
kind: "mutation",
|
|
22917
23231
|
auth: "admin"
|
|
@@ -25140,7 +25454,42 @@ var SetCameraSensorsInputSchema = object({
|
|
|
25140
25454
|
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25141
25455
|
config: CameraSensorsConfigSchema.nullable()
|
|
25142
25456
|
});
|
|
25143
|
-
|
|
25457
|
+
/**
|
|
25458
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25459
|
+
*
|
|
25460
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25461
|
+
* node and no config to attach a burst with.
|
|
25462
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25463
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25464
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25465
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25466
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25467
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25468
|
+
* real session re-arms the budget.
|
|
25469
|
+
*/
|
|
25470
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25471
|
+
"unknown-camera",
|
|
25472
|
+
"out-of-range",
|
|
25473
|
+
"no-burst-producer",
|
|
25474
|
+
"already-looked"
|
|
25475
|
+
]);
|
|
25476
|
+
method(object({
|
|
25477
|
+
deviceId: number().int().nonnegative(),
|
|
25478
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25479
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25480
|
+
afterMs: number().finite(),
|
|
25481
|
+
/** Why, for the log. */
|
|
25482
|
+
reason: string()
|
|
25483
|
+
}), object({
|
|
25484
|
+
scheduled: boolean(),
|
|
25485
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25486
|
+
dueInMs: number().optional(),
|
|
25487
|
+
/** When not `scheduled`: why. */
|
|
25488
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25489
|
+
}), {
|
|
25490
|
+
kind: "mutation",
|
|
25491
|
+
auth: "admin"
|
|
25492
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
25144
25493
|
kind: "mutation",
|
|
25145
25494
|
auth: "admin"
|
|
25146
25495
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -28025,219 +28374,6 @@ var CLIP_PLAYBACK_OPTIONS = {
|
|
|
28025
28374
|
}
|
|
28026
28375
|
};
|
|
28027
28376
|
/**
|
|
28028
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
28029
|
-
* name (same pattern as `snapshot`):
|
|
28030
|
-
*
|
|
28031
|
-
* - **Native** providers: registered per-device by device-driver
|
|
28032
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
28033
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
28034
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
28035
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
28036
|
-
* ring; status tracks the last press and a pressCount since start
|
|
28037
|
-
* (diagnostic).
|
|
28038
|
-
*
|
|
28039
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
28040
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
28041
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
28042
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
28043
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
28044
|
-
* device + trigger in the per-device settings.
|
|
28045
|
-
*
|
|
28046
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
28047
|
-
* — subscribers listening at the camera level receive ring events
|
|
28048
|
-
* with `via[]` populated. No code on the parent needed.
|
|
28049
|
-
*/
|
|
28050
|
-
var DoorbellStatusSchema = object({
|
|
28051
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
28052
|
-
lastPressedAt: number().nullable(),
|
|
28053
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
28054
|
-
pressCountSinceStart: number()
|
|
28055
|
-
});
|
|
28056
|
-
var DoorbellPressEventSchema = object({
|
|
28057
|
-
deviceId: number(),
|
|
28058
|
-
timestamp: number()
|
|
28059
|
-
});
|
|
28060
|
-
/**
|
|
28061
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
28062
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
28063
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
28064
|
-
*/
|
|
28065
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
28066
|
-
/**
|
|
28067
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
28068
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
28069
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
28070
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
28071
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
28072
|
-
* reports it, it never writes it.
|
|
28073
|
-
*/
|
|
28074
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
28075
|
-
id: "doorbell-source",
|
|
28076
|
-
label: "Doorbell trigger devices",
|
|
28077
|
-
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.",
|
|
28078
|
-
shape: "association",
|
|
28079
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
28080
|
-
sourceCaps: SOURCE_CAPS,
|
|
28081
|
-
cardinality: "many",
|
|
28082
|
-
value: DoorbellSourceSlotValueSchema
|
|
28083
|
-
};
|
|
28084
|
-
var doorbellCapability = {
|
|
28085
|
-
name: "doorbell",
|
|
28086
|
-
scope: "device",
|
|
28087
|
-
deviceNative: true,
|
|
28088
|
-
mode: "singleton",
|
|
28089
|
-
kind: "wrapper",
|
|
28090
|
-
defaultActive: false,
|
|
28091
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
28092
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
28093
|
-
methods: {},
|
|
28094
|
-
events: {
|
|
28095
|
-
/**
|
|
28096
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
28097
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
28098
|
-
* release/duration — it's a pulse.
|
|
28099
|
-
*/
|
|
28100
|
-
onPressed: {
|
|
28101
|
-
data: DoorbellPressEventSchema,
|
|
28102
|
-
fromState: {
|
|
28103
|
-
field: "lastPressedAt",
|
|
28104
|
-
on: "advance"
|
|
28105
|
-
}
|
|
28106
|
-
} },
|
|
28107
|
-
status: {
|
|
28108
|
-
schema: DoorbellStatusSchema,
|
|
28109
|
-
kind: "push"
|
|
28110
|
-
},
|
|
28111
|
-
/**
|
|
28112
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
28113
|
-
* Mirrored by the kernel and readable via
|
|
28114
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
28115
|
-
* without subscribing.
|
|
28116
|
-
*/
|
|
28117
|
-
runtimeState: DoorbellStatusSchema,
|
|
28118
|
-
/**
|
|
28119
|
-
* 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.
|
|
28120
|
-
*
|
|
28121
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
28122
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
28123
|
-
*/
|
|
28124
|
-
durability: "restored"
|
|
28125
|
-
};
|
|
28126
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
28127
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
28128
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
28129
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
28130
|
-
DeviceType.Camera;
|
|
28131
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
28132
|
-
state: literal("unreachable"),
|
|
28133
|
-
reason: string()
|
|
28134
|
-
})]);
|
|
28135
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
28136
|
-
var ExtensionSourceSchema = object({
|
|
28137
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
28138
|
-
source: string(),
|
|
28139
|
-
label: string(),
|
|
28140
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
28141
|
-
addonId: string().optional(),
|
|
28142
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
28143
|
-
});
|
|
28144
|
-
/**
|
|
28145
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
28146
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
28147
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
28148
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
28149
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
28150
|
-
*/
|
|
28151
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
28152
|
-
"ok",
|
|
28153
|
-
"missing",
|
|
28154
|
-
"foreign",
|
|
28155
|
-
"unavailable"
|
|
28156
|
-
]);
|
|
28157
|
-
var ExtensionSlotSourceSchema = object({
|
|
28158
|
-
deviceId: number().int(),
|
|
28159
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
28160
|
-
name: string().nullable(),
|
|
28161
|
-
health: ExtensionSourceHealthSchema,
|
|
28162
|
-
detail: string().optional()
|
|
28163
|
-
});
|
|
28164
|
-
/**
|
|
28165
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
28166
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
28167
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
28168
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
28169
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
28170
|
-
*/
|
|
28171
|
-
var ExtensionSlotActivationSchema = object({
|
|
28172
|
-
state: _enum([
|
|
28173
|
-
"active",
|
|
28174
|
-
"inactive",
|
|
28175
|
-
"unknown"
|
|
28176
|
-
]),
|
|
28177
|
-
authority: string(),
|
|
28178
|
-
detail: string().optional()
|
|
28179
|
-
});
|
|
28180
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
28181
|
-
state: literal("ok"),
|
|
28182
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
28183
|
-
slotRef: string(),
|
|
28184
|
-
slot: ExtensionSlotIdSchema,
|
|
28185
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
28186
|
-
authority: string(),
|
|
28187
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
28188
|
-
value: ExtensionSlotValueSchema,
|
|
28189
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
28190
|
-
/**
|
|
28191
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
28192
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
28193
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
28194
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
28195
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
28196
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
28197
|
-
* older than D655.
|
|
28198
|
-
*/
|
|
28199
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
28200
|
-
}), object({
|
|
28201
|
-
state: literal("unreachable"),
|
|
28202
|
-
addonId: string(),
|
|
28203
|
-
reason: string()
|
|
28204
|
-
})]);
|
|
28205
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
28206
|
-
deviceId: number().int(),
|
|
28207
|
-
name: string(),
|
|
28208
|
-
type: string(),
|
|
28209
|
-
location: string().nullable(),
|
|
28210
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
28211
|
-
parentName: string().nullable(),
|
|
28212
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
28213
|
-
suggested: boolean(),
|
|
28214
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
28215
|
-
reason: string().nullable()
|
|
28216
|
-
})) });
|
|
28217
|
-
/**
|
|
28218
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
28219
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
28220
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
28221
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
28222
|
-
*/
|
|
28223
|
-
var ExtensionSetResultSchema = object({
|
|
28224
|
-
applied: literal(true),
|
|
28225
|
-
reload: _enum([
|
|
28226
|
-
"none",
|
|
28227
|
-
"host",
|
|
28228
|
-
"parent"
|
|
28229
|
-
])
|
|
28230
|
-
});
|
|
28231
|
-
var ExtensionSlotRefInputSchema = object({
|
|
28232
|
-
deviceId: number().int(),
|
|
28233
|
-
slotRef: string().min(1)
|
|
28234
|
-
});
|
|
28235
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
28236
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
28237
|
-
kind: "mutation",
|
|
28238
|
-
auth: "admin"
|
|
28239
|
-
});
|
|
28240
|
-
/**
|
|
28241
28377
|
* Optional client-side hints sent at session creation to help the provider
|
|
28242
28378
|
* pick the best native source. All fields optional — a viewer that knows
|
|
28243
28379
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -44251,6 +44387,18 @@ Object.freeze({
|
|
|
44251
44387
|
addonId: null,
|
|
44252
44388
|
access: "view"
|
|
44253
44389
|
},
|
|
44390
|
+
"databaseSnapshot.listDatabases": {
|
|
44391
|
+
capName: "database-snapshot",
|
|
44392
|
+
capScope: "system",
|
|
44393
|
+
addonId: null,
|
|
44394
|
+
access: "view"
|
|
44395
|
+
},
|
|
44396
|
+
"databaseSnapshot.writeSnapshot": {
|
|
44397
|
+
capName: "database-snapshot",
|
|
44398
|
+
capScope: "system",
|
|
44399
|
+
addonId: null,
|
|
44400
|
+
access: "create"
|
|
44401
|
+
},
|
|
44254
44402
|
"dataStoreProvider.aggregate": {
|
|
44255
44403
|
capName: "data-store-provider",
|
|
44256
44404
|
capScope: "system",
|
|
@@ -47815,6 +47963,12 @@ Object.freeze({
|
|
|
47815
47963
|
addonId: null,
|
|
47816
47964
|
access: "delete"
|
|
47817
47965
|
},
|
|
47966
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
47967
|
+
capName: "pipeline-orchestrator",
|
|
47968
|
+
capScope: "system",
|
|
47969
|
+
addonId: null,
|
|
47970
|
+
access: "create"
|
|
47971
|
+
},
|
|
47818
47972
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
47819
47973
|
capName: "pipeline-orchestrator",
|
|
47820
47974
|
capScope: "system",
|
|
@@ -51607,6 +51761,11 @@ Object.freeze({
|
|
|
51607
51761
|
form: "single",
|
|
51608
51762
|
optional: false
|
|
51609
51763
|
}],
|
|
51764
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
51765
|
+
name: "deviceId",
|
|
51766
|
+
form: "single",
|
|
51767
|
+
optional: false
|
|
51768
|
+
}],
|
|
51610
51769
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
51611
51770
|
name: "deviceId",
|
|
51612
51771
|
form: "single",
|
|
@@ -52768,6 +52927,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
52768
52927
|
systemEventKinds: [...SUMMARISABLE],
|
|
52769
52928
|
systemEventDeliveries: ["summary"]
|
|
52770
52929
|
},
|
|
52930
|
+
{
|
|
52931
|
+
name: "summarySection",
|
|
52932
|
+
label: "Summary: this section",
|
|
52933
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
52934
|
+
example: "Batterie scariche",
|
|
52935
|
+
group: "system",
|
|
52936
|
+
families: ["rule"],
|
|
52937
|
+
fields: [...RULE_TEXT],
|
|
52938
|
+
kinds: ["system"],
|
|
52939
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
52940
|
+
systemEventDeliveries: ["summary"]
|
|
52941
|
+
},
|
|
52771
52942
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
52772
52943
|
name: v.name,
|
|
52773
52944
|
label: v.label,
|
|
@@ -52844,6 +53015,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
52844
53015
|
[...RULE_TEXT],
|
|
52845
53016
|
...STATE_SUMMARY_VARS
|
|
52846
53017
|
];
|
|
53018
|
+
new Set([
|
|
53019
|
+
"disarmed",
|
|
53020
|
+
"armed_home",
|
|
53021
|
+
"armed_away",
|
|
53022
|
+
"armed_night",
|
|
53023
|
+
"armed_vacation",
|
|
53024
|
+
"armed_custom_bypass",
|
|
53025
|
+
"arming",
|
|
53026
|
+
"disarming",
|
|
53027
|
+
"pending",
|
|
53028
|
+
"triggered",
|
|
53029
|
+
"open",
|
|
53030
|
+
"opening",
|
|
53031
|
+
"closing",
|
|
53032
|
+
"closed",
|
|
53033
|
+
"stopped",
|
|
53034
|
+
"locked",
|
|
53035
|
+
"unlocked",
|
|
53036
|
+
"locking",
|
|
53037
|
+
"unlocking",
|
|
53038
|
+
"jammed",
|
|
53039
|
+
"on",
|
|
53040
|
+
"off",
|
|
53041
|
+
"home",
|
|
53042
|
+
"not_home",
|
|
53043
|
+
"matched",
|
|
53044
|
+
"diverged",
|
|
53045
|
+
"unknown",
|
|
53046
|
+
"latched",
|
|
53047
|
+
"live"
|
|
53048
|
+
]);
|
|
52847
53049
|
/**
|
|
52848
53050
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
52849
53051
|
*
|