@camstack/addon-provider-reolink 1.2.165 → 1.2.166
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 +707 -320
- package/dist/addon.mjs +707 -320
- package/package.json +3 -2
package/dist/addon.js
CHANGED
|
@@ -5403,7 +5403,7 @@ var ZodIssueCode = {
|
|
|
5403
5403
|
var ZodFirstPartyTypeKind;
|
|
5404
5404
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5405
5405
|
//#endregion
|
|
5406
|
-
//#region ../types/dist/sleep-
|
|
5406
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5407
5407
|
/**
|
|
5408
5408
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5409
5409
|
* window to float samples (D455).
|
|
@@ -9040,6 +9040,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
9040
9040
|
/** Max rows returned, newest-first. */
|
|
9041
9041
|
limit: number().int().min(1).max(1e3).optional()
|
|
9042
9042
|
});
|
|
9043
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
9044
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
9045
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
9046
|
+
var TrackRelationSchema = object({
|
|
9047
|
+
id: string(),
|
|
9048
|
+
deviceId: number().int(),
|
|
9049
|
+
leftTrackId: string(),
|
|
9050
|
+
rightTrackId: string(),
|
|
9051
|
+
leftSide: TrackSideSchema.nullable(),
|
|
9052
|
+
rightSide: TrackSideSchema.nullable(),
|
|
9053
|
+
relation: TrackRelationKindSchema,
|
|
9054
|
+
presence: literal("continuous").nullable(),
|
|
9055
|
+
leftStartedAt: number().int().nullable(),
|
|
9056
|
+
rightStartedAt: number().int().nullable(),
|
|
9057
|
+
createdAt: number().int(),
|
|
9058
|
+
updatedAt: number().int(),
|
|
9059
|
+
author: string().nullable()
|
|
9060
|
+
});
|
|
9061
|
+
var TrackPuritySchema = object({
|
|
9062
|
+
id: string(),
|
|
9063
|
+
deviceId: number().int(),
|
|
9064
|
+
sourceTrackId: string(),
|
|
9065
|
+
purity: TrackPurityValueSchema,
|
|
9066
|
+
switchAtMs: number().int().nullable(),
|
|
9067
|
+
startedAt: number().int().nullable(),
|
|
9068
|
+
createdAt: number().int(),
|
|
9069
|
+
updatedAt: number().int(),
|
|
9070
|
+
author: string().nullable()
|
|
9071
|
+
});
|
|
9072
|
+
var SetTrackRelationInputSchema = object({
|
|
9073
|
+
deviceId: number().int(),
|
|
9074
|
+
trackId: string().min(1),
|
|
9075
|
+
otherTrackId: string().min(1),
|
|
9076
|
+
relation: TrackRelationKindSchema,
|
|
9077
|
+
presence: literal("continuous").optional(),
|
|
9078
|
+
trackSide: TrackSideSchema.optional(),
|
|
9079
|
+
otherSide: TrackSideSchema.optional()
|
|
9080
|
+
});
|
|
9081
|
+
var ClearTrackRelationInputSchema = object({
|
|
9082
|
+
deviceId: number().int(),
|
|
9083
|
+
trackId: string().min(1),
|
|
9084
|
+
otherTrackId: string().min(1)
|
|
9085
|
+
});
|
|
9086
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9087
|
+
var SetTrackPurityInputSchema = object({
|
|
9088
|
+
deviceId: number().int(),
|
|
9089
|
+
trackId: string().min(1),
|
|
9090
|
+
purity: _enum([
|
|
9091
|
+
"pure",
|
|
9092
|
+
"mixed",
|
|
9093
|
+
"not-a-subject"
|
|
9094
|
+
]),
|
|
9095
|
+
switchAtMs: number().int().optional()
|
|
9096
|
+
});
|
|
9097
|
+
/** `null` when `pure` cleared the row. */
|
|
9098
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9099
|
+
var ListTrackRelationsInputSchema = object({
|
|
9100
|
+
deviceId: number().int(),
|
|
9101
|
+
trackId: string().optional(),
|
|
9102
|
+
since: number().int().optional(),
|
|
9103
|
+
until: number().int().optional(),
|
|
9104
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9105
|
+
});
|
|
9106
|
+
var ListTrackRelationsResultSchema = object({
|
|
9107
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9108
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9109
|
+
truncated: boolean()
|
|
9110
|
+
});
|
|
9111
|
+
_enum([
|
|
9112
|
+
"unknown-track",
|
|
9113
|
+
"cross-device",
|
|
9114
|
+
"self-relation",
|
|
9115
|
+
"contradiction",
|
|
9116
|
+
"switch-outside-track",
|
|
9117
|
+
"switch-needs-mixed"
|
|
9118
|
+
]);
|
|
9043
9119
|
/**
|
|
9044
9120
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
9045
9121
|
* recordings and events management surfaces.
|
|
@@ -12125,6 +12201,68 @@ method(object({
|
|
|
12125
12201
|
password: string()
|
|
12126
12202
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12127
12203
|
/**
|
|
12204
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
12205
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
12206
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
12207
|
+
* generous because a timeout fails the whole backup run.
|
|
12208
|
+
*/
|
|
12209
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
12210
|
+
/**
|
|
12211
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
12212
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
12213
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
12214
|
+
* owner's host.
|
|
12215
|
+
*/
|
|
12216
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
12217
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
12218
|
+
var DatabaseSnapshotTableSchema = object({
|
|
12219
|
+
name: string(),
|
|
12220
|
+
rows: number().int().nonnegative()
|
|
12221
|
+
});
|
|
12222
|
+
/**
|
|
12223
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
12224
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
12225
|
+
* that finds the path outside its own data root refuses it rather than
|
|
12226
|
+
* archiving something it cannot place.
|
|
12227
|
+
*/
|
|
12228
|
+
var DatabaseSnapshotResultSchema = object({
|
|
12229
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
12230
|
+
livePath: string(),
|
|
12231
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
12232
|
+
snapshotPath: string(),
|
|
12233
|
+
sizeBytes: number().int().nonnegative(),
|
|
12234
|
+
pageCount: number().int().nonnegative(),
|
|
12235
|
+
pageSize: number().int().positive(),
|
|
12236
|
+
/**
|
|
12237
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
12238
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
12239
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
12240
|
+
*/
|
|
12241
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
12242
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
12243
|
+
copyMs: number().nonnegative(),
|
|
12244
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
12245
|
+
verifyMs: number().nonnegative(),
|
|
12246
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
12247
|
+
takenAt: number()
|
|
12248
|
+
});
|
|
12249
|
+
/**
|
|
12250
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
12251
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
12252
|
+
* data dir), because an archive outlives the host that made it.
|
|
12253
|
+
*/
|
|
12254
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
12255
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
12256
|
+
livePath: string(),
|
|
12257
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
12258
|
+
snapshotPath: string()
|
|
12259
|
+
});
|
|
12260
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
12261
|
+
kind: "mutation",
|
|
12262
|
+
auth: "admin",
|
|
12263
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
12264
|
+
});
|
|
12265
|
+
/**
|
|
12128
12266
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12129
12267
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12130
12268
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -12235,7 +12373,12 @@ var ArchiveManifestSchema = object({
|
|
|
12235
12373
|
locations: array(string()),
|
|
12236
12374
|
entries: array(ArchiveEntrySchema),
|
|
12237
12375
|
totalBytes: number(),
|
|
12238
|
-
totalFiles: number()
|
|
12376
|
+
totalFiles: number(),
|
|
12377
|
+
/**
|
|
12378
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12379
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12380
|
+
*/
|
|
12381
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
12239
12382
|
});
|
|
12240
12383
|
var LocationStatSchema = object({
|
|
12241
12384
|
name: string(),
|
|
@@ -13761,6 +13904,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13761
13904
|
reason: string().optional(),
|
|
13762
13905
|
fields: array(CompositionFieldStateSchema)
|
|
13763
13906
|
});
|
|
13907
|
+
var ComposerBlockSchema = object({
|
|
13908
|
+
id: string().min(1),
|
|
13909
|
+
name: string().min(1).max(120),
|
|
13910
|
+
enabled: boolean(),
|
|
13911
|
+
updatedAt: number(),
|
|
13912
|
+
composition: CompositionSchema
|
|
13913
|
+
});
|
|
13914
|
+
/**
|
|
13915
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13916
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13917
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13918
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13919
|
+
*/
|
|
13920
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13921
|
+
id: string().min(1),
|
|
13922
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13923
|
+
name: string().nullable(),
|
|
13924
|
+
/** The parse error, in the operator's words. */
|
|
13925
|
+
error: string()
|
|
13926
|
+
});
|
|
13927
|
+
method(object({
|
|
13928
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13929
|
+
integrationId: string().nullable(),
|
|
13930
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13931
|
+
storeLoaded: boolean(),
|
|
13932
|
+
blocks: array(ComposerBlockSchema),
|
|
13933
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13934
|
+
restartBlockIds: array(string()),
|
|
13935
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13936
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13937
|
+
}), object({
|
|
13938
|
+
blocks: array(object({
|
|
13939
|
+
blockId: string(),
|
|
13940
|
+
status: CompositionRunStatusSchema,
|
|
13941
|
+
reason: string().optional()
|
|
13942
|
+
})),
|
|
13943
|
+
/**
|
|
13944
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13945
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13946
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13947
|
+
*/
|
|
13948
|
+
acted: boolean()
|
|
13949
|
+
}), {
|
|
13950
|
+
kind: "mutation",
|
|
13951
|
+
auth: "admin"
|
|
13952
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13953
|
+
var NUMBER = {
|
|
13954
|
+
kind: "fixed",
|
|
13955
|
+
result: ["number"]
|
|
13956
|
+
};
|
|
13957
|
+
var BOOLEAN = {
|
|
13958
|
+
kind: "fixed",
|
|
13959
|
+
result: ["boolean"]
|
|
13960
|
+
};
|
|
13961
|
+
Object.freeze({
|
|
13962
|
+
min: NUMBER,
|
|
13963
|
+
max: NUMBER,
|
|
13964
|
+
abs: NUMBER,
|
|
13965
|
+
floor: NUMBER,
|
|
13966
|
+
ceil: NUMBER,
|
|
13967
|
+
sqrt: NUMBER,
|
|
13968
|
+
round: NUMBER,
|
|
13969
|
+
pow: NUMBER,
|
|
13970
|
+
clamp: NUMBER,
|
|
13971
|
+
avg: NUMBER,
|
|
13972
|
+
sum: NUMBER,
|
|
13973
|
+
age: NUMBER,
|
|
13974
|
+
convert: NUMBER,
|
|
13975
|
+
coalesce: { kind: "coalesce" },
|
|
13976
|
+
any: BOOLEAN,
|
|
13977
|
+
all: BOOLEAN,
|
|
13978
|
+
within: BOOLEAN,
|
|
13979
|
+
latest: {
|
|
13980
|
+
kind: "fixed",
|
|
13981
|
+
result: ["number", "null"]
|
|
13982
|
+
},
|
|
13983
|
+
number: {
|
|
13984
|
+
kind: "fixed",
|
|
13985
|
+
result: ["number", "null"]
|
|
13986
|
+
},
|
|
13987
|
+
rose: {
|
|
13988
|
+
kind: "fixed",
|
|
13989
|
+
result: ["number", "null"]
|
|
13990
|
+
},
|
|
13991
|
+
count: NUMBER
|
|
13992
|
+
});
|
|
13993
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13994
|
+
/**
|
|
13995
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13996
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13997
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13998
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13999
|
+
* offer a feature the save would refuse for the same reason.
|
|
14000
|
+
*/
|
|
14001
|
+
var ComposableFieldSchema = object({
|
|
14002
|
+
path: string(),
|
|
14003
|
+
kind: CompositionFieldKindSchema,
|
|
14004
|
+
nullable: boolean(),
|
|
14005
|
+
required: boolean(),
|
|
14006
|
+
enumValues: array(string()).optional()
|
|
14007
|
+
});
|
|
14008
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
14009
|
+
cap: string(),
|
|
14010
|
+
fields: array(ComposableFieldSchema),
|
|
14011
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
14012
|
+
itemArray: object({
|
|
14013
|
+
path: string(),
|
|
14014
|
+
keyField: string()
|
|
14015
|
+
}).optional()
|
|
14016
|
+
})) });
|
|
13764
14017
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13765
14018
|
* agent is the reason placement is not fixed to the hub. */
|
|
13766
14019
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13925,7 +14178,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13925
14178
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13926
14179
|
addonId: string().min(1),
|
|
13927
14180
|
stableId: string().min(1)
|
|
13928
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
14181
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13929
14182
|
composition: CompositionSchema,
|
|
13930
14183
|
blockId: string().optional()
|
|
13931
14184
|
}), CompositionValidationSchema, {
|
|
@@ -13933,52 +14186,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13933
14186
|
auth: "admin",
|
|
13934
14187
|
access: "view"
|
|
13935
14188
|
});
|
|
13936
|
-
var ComposerBlockSchema = object({
|
|
13937
|
-
id: string().min(1),
|
|
13938
|
-
name: string().min(1).max(120),
|
|
13939
|
-
enabled: boolean(),
|
|
13940
|
-
updatedAt: number(),
|
|
13941
|
-
composition: CompositionSchema
|
|
13942
|
-
});
|
|
13943
|
-
/**
|
|
13944
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13945
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13946
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13947
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13948
|
-
*/
|
|
13949
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13950
|
-
id: string().min(1),
|
|
13951
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13952
|
-
name: string().nullable(),
|
|
13953
|
-
/** The parse error, in the operator's words. */
|
|
13954
|
-
error: string()
|
|
13955
|
-
});
|
|
13956
|
-
method(object({
|
|
13957
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13958
|
-
integrationId: string().nullable(),
|
|
13959
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13960
|
-
storeLoaded: boolean(),
|
|
13961
|
-
blocks: array(ComposerBlockSchema),
|
|
13962
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13963
|
-
restartBlockIds: array(string()),
|
|
13964
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13965
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13966
|
-
}), object({
|
|
13967
|
-
blocks: array(object({
|
|
13968
|
-
blockId: string(),
|
|
13969
|
-
status: CompositionRunStatusSchema,
|
|
13970
|
-
reason: string().optional()
|
|
13971
|
-
})),
|
|
13972
|
-
/**
|
|
13973
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13974
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13975
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13976
|
-
*/
|
|
13977
|
-
acted: boolean()
|
|
13978
|
-
}), {
|
|
13979
|
-
kind: "mutation",
|
|
13980
|
-
auth: "admin"
|
|
13981
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13982
14189
|
/**
|
|
13983
14190
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13984
14191
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -16129,6 +16336,219 @@ method(object({
|
|
|
16129
16336
|
caps: array(string()).readonly().optional()
|
|
16130
16337
|
}), record(string(), record(string(), unknown().nullable())));
|
|
16131
16338
|
/**
|
|
16339
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
16340
|
+
* name (same pattern as `snapshot`):
|
|
16341
|
+
*
|
|
16342
|
+
* - **Native** providers: registered per-device by device-driver
|
|
16343
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
16344
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16345
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
16346
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
16347
|
+
* ring; status tracks the last press and a pressCount since start
|
|
16348
|
+
* (diagnostic).
|
|
16349
|
+
*
|
|
16350
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16351
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16352
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16353
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16354
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
16355
|
+
* device + trigger in the per-device settings.
|
|
16356
|
+
*
|
|
16357
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16358
|
+
* — subscribers listening at the camera level receive ring events
|
|
16359
|
+
* with `via[]` populated. No code on the parent needed.
|
|
16360
|
+
*/
|
|
16361
|
+
var DoorbellStatusSchema = object({
|
|
16362
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16363
|
+
lastPressedAt: number().nullable(),
|
|
16364
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16365
|
+
pressCountSinceStart: number()
|
|
16366
|
+
});
|
|
16367
|
+
var DoorbellPressEventSchema = object({
|
|
16368
|
+
deviceId: number(),
|
|
16369
|
+
timestamp: number()
|
|
16370
|
+
});
|
|
16371
|
+
/**
|
|
16372
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16373
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16374
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16375
|
+
*/
|
|
16376
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16377
|
+
/**
|
|
16378
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16379
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16380
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
16381
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16382
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16383
|
+
* reports it, it never writes it.
|
|
16384
|
+
*/
|
|
16385
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
16386
|
+
id: "doorbell-source",
|
|
16387
|
+
label: "Doorbell trigger devices",
|
|
16388
|
+
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.",
|
|
16389
|
+
shape: "association",
|
|
16390
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
16391
|
+
sourceCaps: SOURCE_CAPS,
|
|
16392
|
+
cardinality: "many",
|
|
16393
|
+
value: DoorbellSourceSlotValueSchema
|
|
16394
|
+
};
|
|
16395
|
+
var doorbellCapability = {
|
|
16396
|
+
name: "doorbell",
|
|
16397
|
+
scope: "device",
|
|
16398
|
+
deviceNative: true,
|
|
16399
|
+
mode: "singleton",
|
|
16400
|
+
kind: "wrapper",
|
|
16401
|
+
defaultActive: false,
|
|
16402
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16403
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16404
|
+
methods: {},
|
|
16405
|
+
events: {
|
|
16406
|
+
/**
|
|
16407
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16408
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16409
|
+
* release/duration — it's a pulse.
|
|
16410
|
+
*/
|
|
16411
|
+
onPressed: {
|
|
16412
|
+
data: DoorbellPressEventSchema,
|
|
16413
|
+
fromState: {
|
|
16414
|
+
field: "lastPressedAt",
|
|
16415
|
+
on: "advance"
|
|
16416
|
+
}
|
|
16417
|
+
} },
|
|
16418
|
+
status: {
|
|
16419
|
+
schema: DoorbellStatusSchema,
|
|
16420
|
+
kind: "push"
|
|
16421
|
+
},
|
|
16422
|
+
/**
|
|
16423
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16424
|
+
* Mirrored by the kernel and readable via
|
|
16425
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16426
|
+
* without subscribing.
|
|
16427
|
+
*/
|
|
16428
|
+
runtimeState: DoorbellStatusSchema,
|
|
16429
|
+
/**
|
|
16430
|
+
* 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.
|
|
16431
|
+
*
|
|
16432
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
16433
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
16434
|
+
*/
|
|
16435
|
+
durability: "restored"
|
|
16436
|
+
};
|
|
16437
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16438
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16439
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16440
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16441
|
+
DeviceType.Camera;
|
|
16442
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16443
|
+
state: literal("unreachable"),
|
|
16444
|
+
reason: string()
|
|
16445
|
+
})]);
|
|
16446
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16447
|
+
var ExtensionSourceSchema = object({
|
|
16448
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16449
|
+
source: string(),
|
|
16450
|
+
label: string(),
|
|
16451
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16452
|
+
addonId: string().optional(),
|
|
16453
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16454
|
+
});
|
|
16455
|
+
/**
|
|
16456
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16457
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16458
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16459
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16460
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16461
|
+
*/
|
|
16462
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16463
|
+
"ok",
|
|
16464
|
+
"missing",
|
|
16465
|
+
"foreign",
|
|
16466
|
+
"unavailable"
|
|
16467
|
+
]);
|
|
16468
|
+
var ExtensionSlotSourceSchema = object({
|
|
16469
|
+
deviceId: number().int(),
|
|
16470
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16471
|
+
name: string().nullable(),
|
|
16472
|
+
health: ExtensionSourceHealthSchema,
|
|
16473
|
+
detail: string().optional()
|
|
16474
|
+
});
|
|
16475
|
+
/**
|
|
16476
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16477
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16478
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16479
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16480
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16481
|
+
*/
|
|
16482
|
+
var ExtensionSlotActivationSchema = object({
|
|
16483
|
+
state: _enum([
|
|
16484
|
+
"active",
|
|
16485
|
+
"inactive",
|
|
16486
|
+
"unknown"
|
|
16487
|
+
]),
|
|
16488
|
+
authority: string(),
|
|
16489
|
+
detail: string().optional()
|
|
16490
|
+
});
|
|
16491
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16492
|
+
state: literal("ok"),
|
|
16493
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16494
|
+
slotRef: string(),
|
|
16495
|
+
slot: ExtensionSlotIdSchema,
|
|
16496
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16497
|
+
authority: string(),
|
|
16498
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16499
|
+
value: ExtensionSlotValueSchema,
|
|
16500
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16501
|
+
/**
|
|
16502
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16503
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16504
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16505
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16506
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16507
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16508
|
+
* older than D655.
|
|
16509
|
+
*/
|
|
16510
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16511
|
+
}), object({
|
|
16512
|
+
state: literal("unreachable"),
|
|
16513
|
+
addonId: string(),
|
|
16514
|
+
reason: string()
|
|
16515
|
+
})]);
|
|
16516
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16517
|
+
deviceId: number().int(),
|
|
16518
|
+
name: string(),
|
|
16519
|
+
type: string(),
|
|
16520
|
+
location: string().nullable(),
|
|
16521
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16522
|
+
parentName: string().nullable(),
|
|
16523
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16524
|
+
suggested: boolean(),
|
|
16525
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16526
|
+
reason: string().nullable()
|
|
16527
|
+
})) });
|
|
16528
|
+
/**
|
|
16529
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16530
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16531
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16532
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16533
|
+
*/
|
|
16534
|
+
var ExtensionSetResultSchema = object({
|
|
16535
|
+
applied: literal(true),
|
|
16536
|
+
reload: _enum([
|
|
16537
|
+
"none",
|
|
16538
|
+
"host",
|
|
16539
|
+
"parent"
|
|
16540
|
+
])
|
|
16541
|
+
});
|
|
16542
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16543
|
+
deviceId: number().int(),
|
|
16544
|
+
slotRef: string().min(1)
|
|
16545
|
+
});
|
|
16546
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16547
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16548
|
+
kind: "mutation",
|
|
16549
|
+
auth: "admin"
|
|
16550
|
+
});
|
|
16551
|
+
/**
|
|
16132
16552
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
16133
16553
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
16134
16554
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -19178,17 +19598,25 @@ var NcScheduleSchema = object({
|
|
|
19178
19598
|
*/
|
|
19179
19599
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
19180
19600
|
/**
|
|
19601
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19602
|
+
* every section; `section` = one notification per section with something to
|
|
19603
|
+
* say (an unavailable section included), each titled by its section.
|
|
19604
|
+
*/
|
|
19605
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19606
|
+
/**
|
|
19181
19607
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
19182
19608
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
19183
19609
|
* (low batteries, consumables to replace, devices offline, updates
|
|
19184
|
-
* available, ...), after its own filters
|
|
19610
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19611
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
19185
19612
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
19186
19613
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
19187
19614
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
19188
19615
|
*/
|
|
19189
19616
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
19190
19617
|
mode: literal("summary"),
|
|
19191
|
-
schedule: NcScheduleSchema
|
|
19618
|
+
schedule: NcScheduleSchema,
|
|
19619
|
+
split: NcStateSummarySplitSchema.optional()
|
|
19192
19620
|
})]);
|
|
19193
19621
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
19194
19622
|
var NcPlateMatcherSchema = object({
|
|
@@ -19328,8 +19756,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
19328
19756
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
19329
19757
|
var NcZoneConditionSchema = object({
|
|
19330
19758
|
ids: array(string().min(1)).min(1),
|
|
19331
|
-
/**
|
|
19332
|
-
|
|
19759
|
+
/**
|
|
19760
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19761
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19762
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19763
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19764
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19765
|
+
*/
|
|
19766
|
+
match: _enum(["any", "all"]).optional()
|
|
19333
19767
|
});
|
|
19334
19768
|
/**
|
|
19335
19769
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19833,10 +20267,12 @@ var NcMediaPolicySchema = object({
|
|
|
19833
20267
|
/**
|
|
19834
20268
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19835
20269
|
* notification suppresses.
|
|
19836
|
-
* - `
|
|
19837
|
-
*
|
|
19838
|
-
*
|
|
19839
|
-
*
|
|
20270
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
20271
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
20272
|
+
* still waits.
|
|
20273
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
20274
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
20275
|
+
* longer what an unset rule means.
|
|
19840
20276
|
*
|
|
19841
20277
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19842
20278
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19851,8 +20287,11 @@ var NcThrottleSchema = object({
|
|
|
19851
20287
|
/**
|
|
19852
20288
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19853
20289
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19854
|
-
* rule authored before this field simply carries none
|
|
19855
|
-
*
|
|
20290
|
+
* rule authored before this field simply carries none. The engine used to
|
|
20291
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
20292
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
20293
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
20294
|
+
* engine, and D36's dated note.
|
|
19856
20295
|
*/
|
|
19857
20296
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19858
20297
|
});
|
|
@@ -20176,11 +20615,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20176
20615
|
reason: string().optional()
|
|
20177
20616
|
});
|
|
20178
20617
|
/**
|
|
20618
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20619
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20620
|
+
*/
|
|
20621
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20622
|
+
section: string().optional(),
|
|
20623
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20624
|
+
title: string(),
|
|
20625
|
+
text: string(),
|
|
20626
|
+
count: number().int().nonnegative()
|
|
20627
|
+
});
|
|
20628
|
+
/**
|
|
20179
20629
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
20180
20630
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
20181
20631
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
20182
20632
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
20183
|
-
* (backups & exports).
|
|
20633
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20634
|
+
* optional, so an older hub's answer still parses.
|
|
20184
20635
|
*/
|
|
20185
20636
|
var NcStateSummaryPreviewSchema = object({
|
|
20186
20637
|
empty: boolean(),
|
|
@@ -20188,7 +20639,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
20188
20639
|
text: string(),
|
|
20189
20640
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
20190
20641
|
dropped: record(string(), number().int().nonnegative()),
|
|
20191
|
-
excludedGroups: array(string())
|
|
20642
|
+
excludedGroups: array(string()),
|
|
20643
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20644
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
20192
20645
|
});
|
|
20193
20646
|
var NcTestResultSchema = object({
|
|
20194
20647
|
recordId: string(),
|
|
@@ -21204,7 +21657,7 @@ function cameraSensorRefKey(ref) {
|
|
|
21204
21657
|
}
|
|
21205
21658
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
21206
21659
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
21207
|
-
object({
|
|
21660
|
+
var CameraSensorsConfigSchema = object({
|
|
21208
21661
|
mode: CameraSensorsModeSchema,
|
|
21209
21662
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
21210
21663
|
}).superRefine((value, ctx) => {
|
|
@@ -23109,7 +23562,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23109
23562
|
trackIds: array(string()).min(1)
|
|
23110
23563
|
}), object({
|
|
23111
23564
|
deleted: number().int(),
|
|
23112
|
-
failed: array(string()).readonly()
|
|
23565
|
+
failed: array(string()).readonly(),
|
|
23566
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
23113
23567
|
}), {
|
|
23114
23568
|
kind: "mutation",
|
|
23115
23569
|
auth: "admin"
|
|
@@ -23118,7 +23572,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23118
23572
|
deviceId: number(),
|
|
23119
23573
|
trackId: string(),
|
|
23120
23574
|
flags: TrackFlagsPatchSchema
|
|
23121
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
23575
|
+
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(SetTrackRelationInputSchema, TrackRelationSchema, { kind: "mutation" }), method(ClearTrackRelationInputSchema, ClearTrackRelationResultSchema, { kind: "mutation" }), method(SetTrackPurityInputSchema, SetTrackPurityResultSchema, { kind: "mutation" }), method(ListTrackRelationsInputSchema, ListTrackRelationsResultSchema, { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
23122
23576
|
kind: "query",
|
|
23123
23577
|
auth: "admin"
|
|
23124
23578
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -25316,7 +25770,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
25316
25770
|
reachable: boolean(),
|
|
25317
25771
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
25318
25772
|
});
|
|
25319
|
-
|
|
25773
|
+
/**
|
|
25774
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25775
|
+
*
|
|
25776
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25777
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25778
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25779
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25780
|
+
* settings store so they survive hub restarts.
|
|
25781
|
+
*
|
|
25782
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25783
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25784
|
+
*/
|
|
25785
|
+
/**
|
|
25786
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25787
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25788
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25789
|
+
*/
|
|
25790
|
+
var SetCameraSensorsInputSchema = object({
|
|
25791
|
+
deviceId: number().int().nonnegative(),
|
|
25792
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25793
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25794
|
+
});
|
|
25795
|
+
/**
|
|
25796
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25797
|
+
*
|
|
25798
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25799
|
+
* node and no config to attach a burst with.
|
|
25800
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25801
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25802
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25803
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25804
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25805
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25806
|
+
* real session re-arms the budget.
|
|
25807
|
+
*/
|
|
25808
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25809
|
+
"unknown-camera",
|
|
25810
|
+
"out-of-range",
|
|
25811
|
+
"no-burst-producer",
|
|
25812
|
+
"already-looked"
|
|
25813
|
+
]);
|
|
25814
|
+
method(object({
|
|
25815
|
+
deviceId: number().int().nonnegative(),
|
|
25816
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25817
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25818
|
+
afterMs: number().finite(),
|
|
25819
|
+
/** Why, for the log. */
|
|
25820
|
+
reason: string()
|
|
25821
|
+
}), object({
|
|
25822
|
+
scheduled: boolean(),
|
|
25823
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25824
|
+
dueInMs: number().optional(),
|
|
25825
|
+
/** When not `scheduled`: why. */
|
|
25826
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25827
|
+
}), {
|
|
25828
|
+
kind: "mutation",
|
|
25829
|
+
auth: "admin"
|
|
25830
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
25320
25831
|
kind: "mutation",
|
|
25321
25832
|
auth: "admin"
|
|
25322
25833
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -25470,7 +25981,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
25470
25981
|
}), CameraSwitchGroupSchema, {
|
|
25471
25982
|
kind: "mutation",
|
|
25472
25983
|
auth: "admin"
|
|
25473
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25984
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25985
|
+
kind: "mutation",
|
|
25986
|
+
auth: "admin"
|
|
25987
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
25474
25988
|
kind: "mutation",
|
|
25475
25989
|
auth: "admin"
|
|
25476
25990
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -28198,219 +28712,6 @@ var CLIP_PLAYBACK_OPTIONS = {
|
|
|
28198
28712
|
}
|
|
28199
28713
|
};
|
|
28200
28714
|
/**
|
|
28201
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
28202
|
-
* name (same pattern as `snapshot`):
|
|
28203
|
-
*
|
|
28204
|
-
* - **Native** providers: registered per-device by device-driver
|
|
28205
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
28206
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
28207
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
28208
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
28209
|
-
* ring; status tracks the last press and a pressCount since start
|
|
28210
|
-
* (diagnostic).
|
|
28211
|
-
*
|
|
28212
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
28213
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
28214
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
28215
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
28216
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
28217
|
-
* device + trigger in the per-device settings.
|
|
28218
|
-
*
|
|
28219
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
28220
|
-
* — subscribers listening at the camera level receive ring events
|
|
28221
|
-
* with `via[]` populated. No code on the parent needed.
|
|
28222
|
-
*/
|
|
28223
|
-
var DoorbellStatusSchema = object({
|
|
28224
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
28225
|
-
lastPressedAt: number().nullable(),
|
|
28226
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
28227
|
-
pressCountSinceStart: number()
|
|
28228
|
-
});
|
|
28229
|
-
var DoorbellPressEventSchema = object({
|
|
28230
|
-
deviceId: number(),
|
|
28231
|
-
timestamp: number()
|
|
28232
|
-
});
|
|
28233
|
-
/**
|
|
28234
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
28235
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
28236
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
28237
|
-
*/
|
|
28238
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
28239
|
-
/**
|
|
28240
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
28241
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
28242
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
28243
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
28244
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
28245
|
-
* reports it, it never writes it.
|
|
28246
|
-
*/
|
|
28247
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
28248
|
-
id: "doorbell-source",
|
|
28249
|
-
label: "Doorbell trigger devices",
|
|
28250
|
-
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.",
|
|
28251
|
-
shape: "association",
|
|
28252
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
28253
|
-
sourceCaps: SOURCE_CAPS,
|
|
28254
|
-
cardinality: "many",
|
|
28255
|
-
value: DoorbellSourceSlotValueSchema
|
|
28256
|
-
};
|
|
28257
|
-
var doorbellCapability = {
|
|
28258
|
-
name: "doorbell",
|
|
28259
|
-
scope: "device",
|
|
28260
|
-
deviceNative: true,
|
|
28261
|
-
mode: "singleton",
|
|
28262
|
-
kind: "wrapper",
|
|
28263
|
-
defaultActive: false,
|
|
28264
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
28265
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
28266
|
-
methods: {},
|
|
28267
|
-
events: {
|
|
28268
|
-
/**
|
|
28269
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
28270
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
28271
|
-
* release/duration — it's a pulse.
|
|
28272
|
-
*/
|
|
28273
|
-
onPressed: {
|
|
28274
|
-
data: DoorbellPressEventSchema,
|
|
28275
|
-
fromState: {
|
|
28276
|
-
field: "lastPressedAt",
|
|
28277
|
-
on: "advance"
|
|
28278
|
-
}
|
|
28279
|
-
} },
|
|
28280
|
-
status: {
|
|
28281
|
-
schema: DoorbellStatusSchema,
|
|
28282
|
-
kind: "push"
|
|
28283
|
-
},
|
|
28284
|
-
/**
|
|
28285
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
28286
|
-
* Mirrored by the kernel and readable via
|
|
28287
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
28288
|
-
* without subscribing.
|
|
28289
|
-
*/
|
|
28290
|
-
runtimeState: DoorbellStatusSchema,
|
|
28291
|
-
/**
|
|
28292
|
-
* 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.
|
|
28293
|
-
*
|
|
28294
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
28295
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
28296
|
-
*/
|
|
28297
|
-
durability: "restored"
|
|
28298
|
-
};
|
|
28299
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
28300
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
28301
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
28302
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
28303
|
-
DeviceType.Camera;
|
|
28304
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
28305
|
-
state: literal("unreachable"),
|
|
28306
|
-
reason: string()
|
|
28307
|
-
})]);
|
|
28308
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
28309
|
-
var ExtensionSourceSchema = object({
|
|
28310
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
28311
|
-
source: string(),
|
|
28312
|
-
label: string(),
|
|
28313
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
28314
|
-
addonId: string().optional(),
|
|
28315
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
28316
|
-
});
|
|
28317
|
-
/**
|
|
28318
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
28319
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
28320
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
28321
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
28322
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
28323
|
-
*/
|
|
28324
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
28325
|
-
"ok",
|
|
28326
|
-
"missing",
|
|
28327
|
-
"foreign",
|
|
28328
|
-
"unavailable"
|
|
28329
|
-
]);
|
|
28330
|
-
var ExtensionSlotSourceSchema = object({
|
|
28331
|
-
deviceId: number().int(),
|
|
28332
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
28333
|
-
name: string().nullable(),
|
|
28334
|
-
health: ExtensionSourceHealthSchema,
|
|
28335
|
-
detail: string().optional()
|
|
28336
|
-
});
|
|
28337
|
-
/**
|
|
28338
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
28339
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
28340
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
28341
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
28342
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
28343
|
-
*/
|
|
28344
|
-
var ExtensionSlotActivationSchema = object({
|
|
28345
|
-
state: _enum([
|
|
28346
|
-
"active",
|
|
28347
|
-
"inactive",
|
|
28348
|
-
"unknown"
|
|
28349
|
-
]),
|
|
28350
|
-
authority: string(),
|
|
28351
|
-
detail: string().optional()
|
|
28352
|
-
});
|
|
28353
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
28354
|
-
state: literal("ok"),
|
|
28355
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
28356
|
-
slotRef: string(),
|
|
28357
|
-
slot: ExtensionSlotIdSchema,
|
|
28358
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
28359
|
-
authority: string(),
|
|
28360
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
28361
|
-
value: ExtensionSlotValueSchema,
|
|
28362
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
28363
|
-
/**
|
|
28364
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
28365
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
28366
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
28367
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
28368
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
28369
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
28370
|
-
* older than D655.
|
|
28371
|
-
*/
|
|
28372
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
28373
|
-
}), object({
|
|
28374
|
-
state: literal("unreachable"),
|
|
28375
|
-
addonId: string(),
|
|
28376
|
-
reason: string()
|
|
28377
|
-
})]);
|
|
28378
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
28379
|
-
deviceId: number().int(),
|
|
28380
|
-
name: string(),
|
|
28381
|
-
type: string(),
|
|
28382
|
-
location: string().nullable(),
|
|
28383
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
28384
|
-
parentName: string().nullable(),
|
|
28385
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
28386
|
-
suggested: boolean(),
|
|
28387
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
28388
|
-
reason: string().nullable()
|
|
28389
|
-
})) });
|
|
28390
|
-
/**
|
|
28391
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
28392
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
28393
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
28394
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
28395
|
-
*/
|
|
28396
|
-
var ExtensionSetResultSchema = object({
|
|
28397
|
-
applied: literal(true),
|
|
28398
|
-
reload: _enum([
|
|
28399
|
-
"none",
|
|
28400
|
-
"host",
|
|
28401
|
-
"parent"
|
|
28402
|
-
])
|
|
28403
|
-
});
|
|
28404
|
-
var ExtensionSlotRefInputSchema = object({
|
|
28405
|
-
deviceId: number().int(),
|
|
28406
|
-
slotRef: string().min(1)
|
|
28407
|
-
});
|
|
28408
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
28409
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
28410
|
-
kind: "mutation",
|
|
28411
|
-
auth: "admin"
|
|
28412
|
-
});
|
|
28413
|
-
/**
|
|
28414
28715
|
* Optional client-side hints sent at session creation to help the provider
|
|
28415
28716
|
* pick the best native source. All fields optional — a viewer that knows
|
|
28416
28717
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -40100,47 +40401,6 @@ var zoneRulesCapability = {
|
|
|
40100
40401
|
*/
|
|
40101
40402
|
durability: "restored"
|
|
40102
40403
|
};
|
|
40103
|
-
var NUMBER = {
|
|
40104
|
-
kind: "fixed",
|
|
40105
|
-
result: ["number"]
|
|
40106
|
-
};
|
|
40107
|
-
var BOOLEAN = {
|
|
40108
|
-
kind: "fixed",
|
|
40109
|
-
result: ["boolean"]
|
|
40110
|
-
};
|
|
40111
|
-
Object.freeze({
|
|
40112
|
-
min: NUMBER,
|
|
40113
|
-
max: NUMBER,
|
|
40114
|
-
abs: NUMBER,
|
|
40115
|
-
floor: NUMBER,
|
|
40116
|
-
ceil: NUMBER,
|
|
40117
|
-
sqrt: NUMBER,
|
|
40118
|
-
round: NUMBER,
|
|
40119
|
-
pow: NUMBER,
|
|
40120
|
-
clamp: NUMBER,
|
|
40121
|
-
avg: NUMBER,
|
|
40122
|
-
sum: NUMBER,
|
|
40123
|
-
age: NUMBER,
|
|
40124
|
-
convert: NUMBER,
|
|
40125
|
-
coalesce: { kind: "coalesce" },
|
|
40126
|
-
any: BOOLEAN,
|
|
40127
|
-
all: BOOLEAN,
|
|
40128
|
-
within: BOOLEAN,
|
|
40129
|
-
latest: {
|
|
40130
|
-
kind: "fixed",
|
|
40131
|
-
result: ["number", "null"]
|
|
40132
|
-
},
|
|
40133
|
-
number: {
|
|
40134
|
-
kind: "fixed",
|
|
40135
|
-
result: ["number", "null"]
|
|
40136
|
-
},
|
|
40137
|
-
rose: {
|
|
40138
|
-
kind: "fixed",
|
|
40139
|
-
result: ["number", "null"]
|
|
40140
|
-
},
|
|
40141
|
-
count: NUMBER
|
|
40142
|
-
});
|
|
40143
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
40144
40404
|
/**
|
|
40145
40405
|
* Accessory device helpers — shared across drivers.
|
|
40146
40406
|
*
|
|
@@ -44264,6 +44524,12 @@ Object.freeze({
|
|
|
44264
44524
|
addonId: null,
|
|
44265
44525
|
access: "view"
|
|
44266
44526
|
},
|
|
44527
|
+
"coreBlocks.listComposableCaps": {
|
|
44528
|
+
capName: "core-blocks",
|
|
44529
|
+
capScope: "system",
|
|
44530
|
+
addonId: null,
|
|
44531
|
+
access: "view"
|
|
44532
|
+
},
|
|
44267
44533
|
"coreBlocks.listCompositions": {
|
|
44268
44534
|
capName: "core-blocks",
|
|
44269
44535
|
capScope: "system",
|
|
@@ -44342,6 +44608,18 @@ Object.freeze({
|
|
|
44342
44608
|
addonId: null,
|
|
44343
44609
|
access: "view"
|
|
44344
44610
|
},
|
|
44611
|
+
"databaseSnapshot.listDatabases": {
|
|
44612
|
+
capName: "database-snapshot",
|
|
44613
|
+
capScope: "system",
|
|
44614
|
+
addonId: null,
|
|
44615
|
+
access: "view"
|
|
44616
|
+
},
|
|
44617
|
+
"databaseSnapshot.writeSnapshot": {
|
|
44618
|
+
capName: "database-snapshot",
|
|
44619
|
+
capScope: "system",
|
|
44620
|
+
addonId: null,
|
|
44621
|
+
access: "create"
|
|
44622
|
+
},
|
|
44345
44623
|
"dataStoreProvider.aggregate": {
|
|
44346
44624
|
capName: "data-store-provider",
|
|
44347
44625
|
capScope: "system",
|
|
@@ -47078,6 +47356,12 @@ Object.freeze({
|
|
|
47078
47356
|
addonId: null,
|
|
47079
47357
|
access: "create"
|
|
47080
47358
|
},
|
|
47359
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
47360
|
+
capName: "pipeline-analytics",
|
|
47361
|
+
capScope: "device",
|
|
47362
|
+
addonId: null,
|
|
47363
|
+
access: "delete"
|
|
47364
|
+
},
|
|
47081
47365
|
"pipelineAnalytics.clearTracks": {
|
|
47082
47366
|
capName: "pipeline-analytics",
|
|
47083
47367
|
capScope: "device",
|
|
@@ -47330,6 +47614,12 @@ Object.freeze({
|
|
|
47330
47614
|
addonId: null,
|
|
47331
47615
|
access: "view"
|
|
47332
47616
|
},
|
|
47617
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
47618
|
+
capName: "pipeline-analytics",
|
|
47619
|
+
capScope: "device",
|
|
47620
|
+
addonId: null,
|
|
47621
|
+
access: "view"
|
|
47622
|
+
},
|
|
47333
47623
|
"pipelineAnalytics.listTracks": {
|
|
47334
47624
|
capName: "pipeline-analytics",
|
|
47335
47625
|
capScope: "device",
|
|
@@ -47444,6 +47734,18 @@ Object.freeze({
|
|
|
47444
47734
|
addonId: null,
|
|
47445
47735
|
access: "create"
|
|
47446
47736
|
},
|
|
47737
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
47738
|
+
capName: "pipeline-analytics",
|
|
47739
|
+
capScope: "device",
|
|
47740
|
+
addonId: null,
|
|
47741
|
+
access: "create"
|
|
47742
|
+
},
|
|
47743
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
47744
|
+
capName: "pipeline-analytics",
|
|
47745
|
+
capScope: "device",
|
|
47746
|
+
addonId: null,
|
|
47747
|
+
access: "create"
|
|
47748
|
+
},
|
|
47447
47749
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
47448
47750
|
capName: "pipeline-analytics",
|
|
47449
47751
|
capScope: "device",
|
|
@@ -47882,6 +48184,12 @@ Object.freeze({
|
|
|
47882
48184
|
addonId: null,
|
|
47883
48185
|
access: "delete"
|
|
47884
48186
|
},
|
|
48187
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
48188
|
+
capName: "pipeline-orchestrator",
|
|
48189
|
+
capScope: "system",
|
|
48190
|
+
addonId: null,
|
|
48191
|
+
access: "create"
|
|
48192
|
+
},
|
|
47885
48193
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
47886
48194
|
capName: "pipeline-orchestrator",
|
|
47887
48195
|
capScope: "system",
|
|
@@ -47948,6 +48256,12 @@ Object.freeze({
|
|
|
47948
48256
|
addonId: null,
|
|
47949
48257
|
access: "create"
|
|
47950
48258
|
},
|
|
48259
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
48260
|
+
capName: "pipeline-orchestrator",
|
|
48261
|
+
capScope: "system",
|
|
48262
|
+
addonId: null,
|
|
48263
|
+
access: "create"
|
|
48264
|
+
},
|
|
47951
48265
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
47952
48266
|
capName: "pipeline-orchestrator",
|
|
47953
48267
|
capScope: "system",
|
|
@@ -51358,6 +51672,11 @@ Object.freeze({
|
|
|
51358
51672
|
form: "single",
|
|
51359
51673
|
optional: false
|
|
51360
51674
|
}],
|
|
51675
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
51676
|
+
name: "deviceId",
|
|
51677
|
+
form: "single",
|
|
51678
|
+
optional: false
|
|
51679
|
+
}],
|
|
51361
51680
|
"pipelineAnalytics.clearTracks": [{
|
|
51362
51681
|
name: "deviceId",
|
|
51363
51682
|
form: "single",
|
|
@@ -51508,6 +51827,11 @@ Object.freeze({
|
|
|
51508
51827
|
form: "single",
|
|
51509
51828
|
optional: false
|
|
51510
51829
|
}],
|
|
51830
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
51831
|
+
name: "deviceId",
|
|
51832
|
+
form: "single",
|
|
51833
|
+
optional: false
|
|
51834
|
+
}],
|
|
51511
51835
|
"pipelineAnalytics.listTracks": [{
|
|
51512
51836
|
name: "deviceId",
|
|
51513
51837
|
form: "single",
|
|
@@ -51578,6 +51902,16 @@ Object.freeze({
|
|
|
51578
51902
|
form: "single",
|
|
51579
51903
|
optional: false
|
|
51580
51904
|
}],
|
|
51905
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
51906
|
+
name: "deviceId",
|
|
51907
|
+
form: "single",
|
|
51908
|
+
optional: false
|
|
51909
|
+
}],
|
|
51910
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
51911
|
+
name: "deviceId",
|
|
51912
|
+
form: "single",
|
|
51913
|
+
optional: false
|
|
51914
|
+
}],
|
|
51581
51915
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
51582
51916
|
name: "deviceId",
|
|
51583
51917
|
form: "single",
|
|
@@ -51648,6 +51982,11 @@ Object.freeze({
|
|
|
51648
51982
|
form: "single",
|
|
51649
51983
|
optional: false
|
|
51650
51984
|
}],
|
|
51985
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
51986
|
+
name: "deviceId",
|
|
51987
|
+
form: "single",
|
|
51988
|
+
optional: false
|
|
51989
|
+
}],
|
|
51651
51990
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
51652
51991
|
name: "deviceId",
|
|
51653
51992
|
form: "single",
|
|
@@ -51658,6 +51997,11 @@ Object.freeze({
|
|
|
51658
51997
|
form: "single",
|
|
51659
51998
|
optional: false
|
|
51660
51999
|
}],
|
|
52000
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
52001
|
+
name: "deviceId",
|
|
52002
|
+
form: "single",
|
|
52003
|
+
optional: false
|
|
52004
|
+
}],
|
|
51661
52005
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
51662
52006
|
name: "deviceId",
|
|
51663
52007
|
form: "single",
|
|
@@ -52804,6 +53148,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
52804
53148
|
systemEventKinds: [...SUMMARISABLE],
|
|
52805
53149
|
systemEventDeliveries: ["summary"]
|
|
52806
53150
|
},
|
|
53151
|
+
{
|
|
53152
|
+
name: "summarySection",
|
|
53153
|
+
label: "Summary: this section",
|
|
53154
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
53155
|
+
example: "Batterie scariche",
|
|
53156
|
+
group: "system",
|
|
53157
|
+
families: ["rule"],
|
|
53158
|
+
fields: [...RULE_TEXT],
|
|
53159
|
+
kinds: ["system"],
|
|
53160
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
53161
|
+
systemEventDeliveries: ["summary"]
|
|
53162
|
+
},
|
|
52807
53163
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
52808
53164
|
name: v.name,
|
|
52809
53165
|
label: v.label,
|
|
@@ -52880,6 +53236,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
52880
53236
|
[...RULE_TEXT],
|
|
52881
53237
|
...STATE_SUMMARY_VARS
|
|
52882
53238
|
];
|
|
53239
|
+
new Set([
|
|
53240
|
+
"disarmed",
|
|
53241
|
+
"armed_home",
|
|
53242
|
+
"armed_away",
|
|
53243
|
+
"armed_night",
|
|
53244
|
+
"armed_vacation",
|
|
53245
|
+
"armed_custom_bypass",
|
|
53246
|
+
"arming",
|
|
53247
|
+
"disarming",
|
|
53248
|
+
"pending",
|
|
53249
|
+
"triggered",
|
|
53250
|
+
"open",
|
|
53251
|
+
"opening",
|
|
53252
|
+
"closing",
|
|
53253
|
+
"closed",
|
|
53254
|
+
"stopped",
|
|
53255
|
+
"locked",
|
|
53256
|
+
"unlocked",
|
|
53257
|
+
"locking",
|
|
53258
|
+
"unlocking",
|
|
53259
|
+
"jammed",
|
|
53260
|
+
"on",
|
|
53261
|
+
"off",
|
|
53262
|
+
"home",
|
|
53263
|
+
"not_home",
|
|
53264
|
+
"matched",
|
|
53265
|
+
"diverged",
|
|
53266
|
+
"unknown",
|
|
53267
|
+
"latched",
|
|
53268
|
+
"live"
|
|
53269
|
+
]);
|
|
52883
53270
|
/**
|
|
52884
53271
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
52885
53272
|
*
|