@camstack/addon-provider-wyze 0.2.120 → 0.2.121
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 +2 -2
package/dist/addon.js
CHANGED
|
@@ -5402,7 +5402,7 @@ var ZodIssueCode = {
|
|
|
5402
5402
|
var ZodFirstPartyTypeKind;
|
|
5403
5403
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5404
5404
|
//#endregion
|
|
5405
|
-
//#region ../types/dist/sleep-
|
|
5405
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5406
5406
|
/**
|
|
5407
5407
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5408
5408
|
* window to float samples (D455).
|
|
@@ -8991,6 +8991,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8991
8991
|
/** Max rows returned, newest-first. */
|
|
8992
8992
|
limit: number().int().min(1).max(1e3).optional()
|
|
8993
8993
|
});
|
|
8994
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8995
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8996
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8997
|
+
var TrackRelationSchema = object({
|
|
8998
|
+
id: string(),
|
|
8999
|
+
deviceId: number().int(),
|
|
9000
|
+
leftTrackId: string(),
|
|
9001
|
+
rightTrackId: string(),
|
|
9002
|
+
leftSide: TrackSideSchema.nullable(),
|
|
9003
|
+
rightSide: TrackSideSchema.nullable(),
|
|
9004
|
+
relation: TrackRelationKindSchema,
|
|
9005
|
+
presence: literal("continuous").nullable(),
|
|
9006
|
+
leftStartedAt: number().int().nullable(),
|
|
9007
|
+
rightStartedAt: number().int().nullable(),
|
|
9008
|
+
createdAt: number().int(),
|
|
9009
|
+
updatedAt: number().int(),
|
|
9010
|
+
author: string().nullable()
|
|
9011
|
+
});
|
|
9012
|
+
var TrackPuritySchema = object({
|
|
9013
|
+
id: string(),
|
|
9014
|
+
deviceId: number().int(),
|
|
9015
|
+
sourceTrackId: string(),
|
|
9016
|
+
purity: TrackPurityValueSchema,
|
|
9017
|
+
switchAtMs: number().int().nullable(),
|
|
9018
|
+
startedAt: number().int().nullable(),
|
|
9019
|
+
createdAt: number().int(),
|
|
9020
|
+
updatedAt: number().int(),
|
|
9021
|
+
author: string().nullable()
|
|
9022
|
+
});
|
|
9023
|
+
var SetTrackRelationInputSchema = object({
|
|
9024
|
+
deviceId: number().int(),
|
|
9025
|
+
trackId: string().min(1),
|
|
9026
|
+
otherTrackId: string().min(1),
|
|
9027
|
+
relation: TrackRelationKindSchema,
|
|
9028
|
+
presence: literal("continuous").optional(),
|
|
9029
|
+
trackSide: TrackSideSchema.optional(),
|
|
9030
|
+
otherSide: TrackSideSchema.optional()
|
|
9031
|
+
});
|
|
9032
|
+
var ClearTrackRelationInputSchema = object({
|
|
9033
|
+
deviceId: number().int(),
|
|
9034
|
+
trackId: string().min(1),
|
|
9035
|
+
otherTrackId: string().min(1)
|
|
9036
|
+
});
|
|
9037
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9038
|
+
var SetTrackPurityInputSchema = object({
|
|
9039
|
+
deviceId: number().int(),
|
|
9040
|
+
trackId: string().min(1),
|
|
9041
|
+
purity: _enum([
|
|
9042
|
+
"pure",
|
|
9043
|
+
"mixed",
|
|
9044
|
+
"not-a-subject"
|
|
9045
|
+
]),
|
|
9046
|
+
switchAtMs: number().int().optional()
|
|
9047
|
+
});
|
|
9048
|
+
/** `null` when `pure` cleared the row. */
|
|
9049
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9050
|
+
var ListTrackRelationsInputSchema = object({
|
|
9051
|
+
deviceId: number().int(),
|
|
9052
|
+
trackId: string().optional(),
|
|
9053
|
+
since: number().int().optional(),
|
|
9054
|
+
until: number().int().optional(),
|
|
9055
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9056
|
+
});
|
|
9057
|
+
var ListTrackRelationsResultSchema = object({
|
|
9058
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9059
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9060
|
+
truncated: boolean()
|
|
9061
|
+
});
|
|
9062
|
+
_enum([
|
|
9063
|
+
"unknown-track",
|
|
9064
|
+
"cross-device",
|
|
9065
|
+
"self-relation",
|
|
9066
|
+
"contradiction",
|
|
9067
|
+
"switch-outside-track",
|
|
9068
|
+
"switch-needs-mixed"
|
|
9069
|
+
]);
|
|
8994
9070
|
/**
|
|
8995
9071
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8996
9072
|
* recordings and events management surfaces.
|
|
@@ -11544,6 +11620,68 @@ method(object({
|
|
|
11544
11620
|
password: string()
|
|
11545
11621
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11546
11622
|
/**
|
|
11623
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11624
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11625
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11626
|
+
* generous because a timeout fails the whole backup run.
|
|
11627
|
+
*/
|
|
11628
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11629
|
+
/**
|
|
11630
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11631
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11632
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11633
|
+
* owner's host.
|
|
11634
|
+
*/
|
|
11635
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11636
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11637
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11638
|
+
name: string(),
|
|
11639
|
+
rows: number().int().nonnegative()
|
|
11640
|
+
});
|
|
11641
|
+
/**
|
|
11642
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11643
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11644
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11645
|
+
* archiving something it cannot place.
|
|
11646
|
+
*/
|
|
11647
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11648
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11649
|
+
livePath: string(),
|
|
11650
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11651
|
+
snapshotPath: string(),
|
|
11652
|
+
sizeBytes: number().int().nonnegative(),
|
|
11653
|
+
pageCount: number().int().nonnegative(),
|
|
11654
|
+
pageSize: number().int().positive(),
|
|
11655
|
+
/**
|
|
11656
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11657
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11658
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11659
|
+
*/
|
|
11660
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11661
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11662
|
+
copyMs: number().nonnegative(),
|
|
11663
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11664
|
+
verifyMs: number().nonnegative(),
|
|
11665
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11666
|
+
takenAt: number()
|
|
11667
|
+
});
|
|
11668
|
+
/**
|
|
11669
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11670
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11671
|
+
* data dir), because an archive outlives the host that made it.
|
|
11672
|
+
*/
|
|
11673
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11674
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11675
|
+
livePath: string(),
|
|
11676
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11677
|
+
snapshotPath: string()
|
|
11678
|
+
});
|
|
11679
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11680
|
+
kind: "mutation",
|
|
11681
|
+
auth: "admin",
|
|
11682
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11683
|
+
});
|
|
11684
|
+
/**
|
|
11547
11685
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11548
11686
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11549
11687
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11654,7 +11792,12 @@ var ArchiveManifestSchema = object({
|
|
|
11654
11792
|
locations: array(string()),
|
|
11655
11793
|
entries: array(ArchiveEntrySchema),
|
|
11656
11794
|
totalBytes: number(),
|
|
11657
|
-
totalFiles: number()
|
|
11795
|
+
totalFiles: number(),
|
|
11796
|
+
/**
|
|
11797
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11798
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11799
|
+
*/
|
|
11800
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11658
11801
|
});
|
|
11659
11802
|
var LocationStatSchema = object({
|
|
11660
11803
|
name: string(),
|
|
@@ -13180,6 +13323,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13180
13323
|
reason: string().optional(),
|
|
13181
13324
|
fields: array(CompositionFieldStateSchema)
|
|
13182
13325
|
});
|
|
13326
|
+
var ComposerBlockSchema = object({
|
|
13327
|
+
id: string().min(1),
|
|
13328
|
+
name: string().min(1).max(120),
|
|
13329
|
+
enabled: boolean(),
|
|
13330
|
+
updatedAt: number(),
|
|
13331
|
+
composition: CompositionSchema
|
|
13332
|
+
});
|
|
13333
|
+
/**
|
|
13334
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13335
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13336
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13337
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13338
|
+
*/
|
|
13339
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13340
|
+
id: string().min(1),
|
|
13341
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13342
|
+
name: string().nullable(),
|
|
13343
|
+
/** The parse error, in the operator's words. */
|
|
13344
|
+
error: string()
|
|
13345
|
+
});
|
|
13346
|
+
method(object({
|
|
13347
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13348
|
+
integrationId: string().nullable(),
|
|
13349
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13350
|
+
storeLoaded: boolean(),
|
|
13351
|
+
blocks: array(ComposerBlockSchema),
|
|
13352
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13353
|
+
restartBlockIds: array(string()),
|
|
13354
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13355
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13356
|
+
}), object({
|
|
13357
|
+
blocks: array(object({
|
|
13358
|
+
blockId: string(),
|
|
13359
|
+
status: CompositionRunStatusSchema,
|
|
13360
|
+
reason: string().optional()
|
|
13361
|
+
})),
|
|
13362
|
+
/**
|
|
13363
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13364
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13365
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13366
|
+
*/
|
|
13367
|
+
acted: boolean()
|
|
13368
|
+
}), {
|
|
13369
|
+
kind: "mutation",
|
|
13370
|
+
auth: "admin"
|
|
13371
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13372
|
+
var NUMBER = {
|
|
13373
|
+
kind: "fixed",
|
|
13374
|
+
result: ["number"]
|
|
13375
|
+
};
|
|
13376
|
+
var BOOLEAN = {
|
|
13377
|
+
kind: "fixed",
|
|
13378
|
+
result: ["boolean"]
|
|
13379
|
+
};
|
|
13380
|
+
Object.freeze({
|
|
13381
|
+
min: NUMBER,
|
|
13382
|
+
max: NUMBER,
|
|
13383
|
+
abs: NUMBER,
|
|
13384
|
+
floor: NUMBER,
|
|
13385
|
+
ceil: NUMBER,
|
|
13386
|
+
sqrt: NUMBER,
|
|
13387
|
+
round: NUMBER,
|
|
13388
|
+
pow: NUMBER,
|
|
13389
|
+
clamp: NUMBER,
|
|
13390
|
+
avg: NUMBER,
|
|
13391
|
+
sum: NUMBER,
|
|
13392
|
+
age: NUMBER,
|
|
13393
|
+
convert: NUMBER,
|
|
13394
|
+
coalesce: { kind: "coalesce" },
|
|
13395
|
+
any: BOOLEAN,
|
|
13396
|
+
all: BOOLEAN,
|
|
13397
|
+
within: BOOLEAN,
|
|
13398
|
+
latest: {
|
|
13399
|
+
kind: "fixed",
|
|
13400
|
+
result: ["number", "null"]
|
|
13401
|
+
},
|
|
13402
|
+
number: {
|
|
13403
|
+
kind: "fixed",
|
|
13404
|
+
result: ["number", "null"]
|
|
13405
|
+
},
|
|
13406
|
+
rose: {
|
|
13407
|
+
kind: "fixed",
|
|
13408
|
+
result: ["number", "null"]
|
|
13409
|
+
},
|
|
13410
|
+
count: NUMBER
|
|
13411
|
+
});
|
|
13412
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13413
|
+
/**
|
|
13414
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13415
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13416
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13417
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13418
|
+
* offer a feature the save would refuse for the same reason.
|
|
13419
|
+
*/
|
|
13420
|
+
var ComposableFieldSchema = object({
|
|
13421
|
+
path: string(),
|
|
13422
|
+
kind: CompositionFieldKindSchema,
|
|
13423
|
+
nullable: boolean(),
|
|
13424
|
+
required: boolean(),
|
|
13425
|
+
enumValues: array(string()).optional()
|
|
13426
|
+
});
|
|
13427
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13428
|
+
cap: string(),
|
|
13429
|
+
fields: array(ComposableFieldSchema),
|
|
13430
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13431
|
+
itemArray: object({
|
|
13432
|
+
path: string(),
|
|
13433
|
+
keyField: string()
|
|
13434
|
+
}).optional()
|
|
13435
|
+
})) });
|
|
13183
13436
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13184
13437
|
* agent is the reason placement is not fixed to the hub. */
|
|
13185
13438
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13344,7 +13597,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13344
13597
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13345
13598
|
addonId: string().min(1),
|
|
13346
13599
|
stableId: string().min(1)
|
|
13347
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13600
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13348
13601
|
composition: CompositionSchema,
|
|
13349
13602
|
blockId: string().optional()
|
|
13350
13603
|
}), CompositionValidationSchema, {
|
|
@@ -13352,52 +13605,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13352
13605
|
auth: "admin",
|
|
13353
13606
|
access: "view"
|
|
13354
13607
|
});
|
|
13355
|
-
var ComposerBlockSchema = object({
|
|
13356
|
-
id: string().min(1),
|
|
13357
|
-
name: string().min(1).max(120),
|
|
13358
|
-
enabled: boolean(),
|
|
13359
|
-
updatedAt: number(),
|
|
13360
|
-
composition: CompositionSchema
|
|
13361
|
-
});
|
|
13362
|
-
/**
|
|
13363
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13364
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13365
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13366
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13367
|
-
*/
|
|
13368
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13369
|
-
id: string().min(1),
|
|
13370
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13371
|
-
name: string().nullable(),
|
|
13372
|
-
/** The parse error, in the operator's words. */
|
|
13373
|
-
error: string()
|
|
13374
|
-
});
|
|
13375
|
-
method(object({
|
|
13376
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13377
|
-
integrationId: string().nullable(),
|
|
13378
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13379
|
-
storeLoaded: boolean(),
|
|
13380
|
-
blocks: array(ComposerBlockSchema),
|
|
13381
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13382
|
-
restartBlockIds: array(string()),
|
|
13383
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13384
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13385
|
-
}), object({
|
|
13386
|
-
blocks: array(object({
|
|
13387
|
-
blockId: string(),
|
|
13388
|
-
status: CompositionRunStatusSchema,
|
|
13389
|
-
reason: string().optional()
|
|
13390
|
-
})),
|
|
13391
|
-
/**
|
|
13392
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13393
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13394
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13395
|
-
*/
|
|
13396
|
-
acted: boolean()
|
|
13397
|
-
}), {
|
|
13398
|
-
kind: "mutation",
|
|
13399
|
-
auth: "admin"
|
|
13400
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13401
13608
|
/**
|
|
13402
13609
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13403
13610
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15452,6 +15659,219 @@ method(object({
|
|
|
15452
15659
|
caps: array(string()).readonly().optional()
|
|
15453
15660
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15454
15661
|
/**
|
|
15662
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
15663
|
+
* name (same pattern as `snapshot`):
|
|
15664
|
+
*
|
|
15665
|
+
* - **Native** providers: registered per-device by device-driver
|
|
15666
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
15667
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
15668
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
15669
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
15670
|
+
* ring; status tracks the last press and a pressCount since start
|
|
15671
|
+
* (diagnostic).
|
|
15672
|
+
*
|
|
15673
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
15674
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
15675
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
15676
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
15677
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
15678
|
+
* device + trigger in the per-device settings.
|
|
15679
|
+
*
|
|
15680
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
15681
|
+
* — subscribers listening at the camera level receive ring events
|
|
15682
|
+
* with `via[]` populated. No code on the parent needed.
|
|
15683
|
+
*/
|
|
15684
|
+
var DoorbellStatusSchema = object({
|
|
15685
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15686
|
+
lastPressedAt: number().nullable(),
|
|
15687
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15688
|
+
pressCountSinceStart: number()
|
|
15689
|
+
});
|
|
15690
|
+
var DoorbellPressEventSchema = object({
|
|
15691
|
+
deviceId: number(),
|
|
15692
|
+
timestamp: number()
|
|
15693
|
+
});
|
|
15694
|
+
/**
|
|
15695
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15696
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15697
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15698
|
+
*/
|
|
15699
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15700
|
+
/**
|
|
15701
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
15702
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
15703
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
15704
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
15705
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
15706
|
+
* reports it, it never writes it.
|
|
15707
|
+
*/
|
|
15708
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
15709
|
+
id: "doorbell-source",
|
|
15710
|
+
label: "Doorbell trigger devices",
|
|
15711
|
+
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.",
|
|
15712
|
+
shape: "association",
|
|
15713
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
15714
|
+
sourceCaps: SOURCE_CAPS,
|
|
15715
|
+
cardinality: "many",
|
|
15716
|
+
value: DoorbellSourceSlotValueSchema
|
|
15717
|
+
};
|
|
15718
|
+
var doorbellCapability = {
|
|
15719
|
+
name: "doorbell",
|
|
15720
|
+
scope: "device",
|
|
15721
|
+
deviceNative: true,
|
|
15722
|
+
mode: "singleton",
|
|
15723
|
+
kind: "wrapper",
|
|
15724
|
+
defaultActive: false,
|
|
15725
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
15726
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
15727
|
+
methods: {},
|
|
15728
|
+
events: {
|
|
15729
|
+
/**
|
|
15730
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
15731
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
15732
|
+
* release/duration — it's a pulse.
|
|
15733
|
+
*/
|
|
15734
|
+
onPressed: {
|
|
15735
|
+
data: DoorbellPressEventSchema,
|
|
15736
|
+
fromState: {
|
|
15737
|
+
field: "lastPressedAt",
|
|
15738
|
+
on: "advance"
|
|
15739
|
+
}
|
|
15740
|
+
} },
|
|
15741
|
+
status: {
|
|
15742
|
+
schema: DoorbellStatusSchema,
|
|
15743
|
+
kind: "push"
|
|
15744
|
+
},
|
|
15745
|
+
/**
|
|
15746
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
15747
|
+
* Mirrored by the kernel and readable via
|
|
15748
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
15749
|
+
* without subscribing.
|
|
15750
|
+
*/
|
|
15751
|
+
runtimeState: DoorbellStatusSchema,
|
|
15752
|
+
/**
|
|
15753
|
+
* 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.
|
|
15754
|
+
*
|
|
15755
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15756
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15757
|
+
*/
|
|
15758
|
+
durability: "restored"
|
|
15759
|
+
};
|
|
15760
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15761
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
15762
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15763
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15764
|
+
DeviceType.Camera;
|
|
15765
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15766
|
+
state: literal("unreachable"),
|
|
15767
|
+
reason: string()
|
|
15768
|
+
})]);
|
|
15769
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15770
|
+
var ExtensionSourceSchema = object({
|
|
15771
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15772
|
+
source: string(),
|
|
15773
|
+
label: string(),
|
|
15774
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15775
|
+
addonId: string().optional(),
|
|
15776
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15777
|
+
});
|
|
15778
|
+
/**
|
|
15779
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15780
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15781
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15782
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15783
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15784
|
+
*/
|
|
15785
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15786
|
+
"ok",
|
|
15787
|
+
"missing",
|
|
15788
|
+
"foreign",
|
|
15789
|
+
"unavailable"
|
|
15790
|
+
]);
|
|
15791
|
+
var ExtensionSlotSourceSchema = object({
|
|
15792
|
+
deviceId: number().int(),
|
|
15793
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15794
|
+
name: string().nullable(),
|
|
15795
|
+
health: ExtensionSourceHealthSchema,
|
|
15796
|
+
detail: string().optional()
|
|
15797
|
+
});
|
|
15798
|
+
/**
|
|
15799
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15800
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
15801
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
15802
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
15803
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
15804
|
+
*/
|
|
15805
|
+
var ExtensionSlotActivationSchema = object({
|
|
15806
|
+
state: _enum([
|
|
15807
|
+
"active",
|
|
15808
|
+
"inactive",
|
|
15809
|
+
"unknown"
|
|
15810
|
+
]),
|
|
15811
|
+
authority: string(),
|
|
15812
|
+
detail: string().optional()
|
|
15813
|
+
});
|
|
15814
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15815
|
+
state: literal("ok"),
|
|
15816
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15817
|
+
slotRef: string(),
|
|
15818
|
+
slot: ExtensionSlotIdSchema,
|
|
15819
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
15820
|
+
authority: string(),
|
|
15821
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15822
|
+
value: ExtensionSlotValueSchema,
|
|
15823
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15824
|
+
/**
|
|
15825
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15826
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15827
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15828
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15829
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15830
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15831
|
+
* older than D655.
|
|
15832
|
+
*/
|
|
15833
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15834
|
+
}), object({
|
|
15835
|
+
state: literal("unreachable"),
|
|
15836
|
+
addonId: string(),
|
|
15837
|
+
reason: string()
|
|
15838
|
+
})]);
|
|
15839
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15840
|
+
deviceId: number().int(),
|
|
15841
|
+
name: string(),
|
|
15842
|
+
type: string(),
|
|
15843
|
+
location: string().nullable(),
|
|
15844
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15845
|
+
parentName: string().nullable(),
|
|
15846
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15847
|
+
suggested: boolean(),
|
|
15848
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15849
|
+
reason: string().nullable()
|
|
15850
|
+
})) });
|
|
15851
|
+
/**
|
|
15852
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15853
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15854
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15855
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15856
|
+
*/
|
|
15857
|
+
var ExtensionSetResultSchema = object({
|
|
15858
|
+
applied: literal(true),
|
|
15859
|
+
reload: _enum([
|
|
15860
|
+
"none",
|
|
15861
|
+
"host",
|
|
15862
|
+
"parent"
|
|
15863
|
+
])
|
|
15864
|
+
});
|
|
15865
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15866
|
+
deviceId: number().int(),
|
|
15867
|
+
slotRef: string().min(1)
|
|
15868
|
+
});
|
|
15869
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15870
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15871
|
+
kind: "mutation",
|
|
15872
|
+
auth: "admin"
|
|
15873
|
+
});
|
|
15874
|
+
/**
|
|
15455
15875
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15456
15876
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
15457
15877
|
* claimed fields on the native slice, `add` builds a slice the device does
|
|
@@ -18461,17 +18881,25 @@ var NcScheduleSchema = object({
|
|
|
18461
18881
|
*/
|
|
18462
18882
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18463
18883
|
/**
|
|
18884
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
18885
|
+
* every section; `section` = one notification per section with something to
|
|
18886
|
+
* say (an unavailable section included), each titled by its section.
|
|
18887
|
+
*/
|
|
18888
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
18889
|
+
/**
|
|
18464
18890
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18465
18891
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18466
18892
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18467
|
-
* available, ...), after its own filters
|
|
18893
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
18894
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18468
18895
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18469
18896
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18470
18897
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18471
18898
|
*/
|
|
18472
18899
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18473
18900
|
mode: literal("summary"),
|
|
18474
|
-
schedule: NcScheduleSchema
|
|
18901
|
+
schedule: NcScheduleSchema,
|
|
18902
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18475
18903
|
})]);
|
|
18476
18904
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18477
18905
|
var NcPlateMatcherSchema = object({
|
|
@@ -18611,8 +19039,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18611
19039
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18612
19040
|
var NcZoneConditionSchema = object({
|
|
18613
19041
|
ids: array(string().min(1)).min(1),
|
|
18614
|
-
/**
|
|
18615
|
-
|
|
19042
|
+
/**
|
|
19043
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19044
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19045
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19046
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19047
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19048
|
+
*/
|
|
19049
|
+
match: _enum(["any", "all"]).optional()
|
|
18616
19050
|
});
|
|
18617
19051
|
/**
|
|
18618
19052
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19116,10 +19550,12 @@ var NcMediaPolicySchema = object({
|
|
|
19116
19550
|
/**
|
|
19117
19551
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19118
19552
|
* notification suppresses.
|
|
19119
|
-
* - `
|
|
19120
|
-
*
|
|
19121
|
-
*
|
|
19122
|
-
*
|
|
19553
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19554
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19555
|
+
* still waits.
|
|
19556
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19557
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19558
|
+
* longer what an unset rule means.
|
|
19123
19559
|
*
|
|
19124
19560
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19125
19561
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19134,8 +19570,11 @@ var NcThrottleSchema = object({
|
|
|
19134
19570
|
/**
|
|
19135
19571
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19136
19572
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19137
|
-
* rule authored before this field simply carries none
|
|
19138
|
-
*
|
|
19573
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19574
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19575
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19576
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19577
|
+
* engine, and D36's dated note.
|
|
19139
19578
|
*/
|
|
19140
19579
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19141
19580
|
});
|
|
@@ -19459,11 +19898,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19459
19898
|
reason: string().optional()
|
|
19460
19899
|
});
|
|
19461
19900
|
/**
|
|
19901
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
19902
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19903
|
+
*/
|
|
19904
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
19905
|
+
section: string().optional(),
|
|
19906
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19907
|
+
title: string(),
|
|
19908
|
+
text: string(),
|
|
19909
|
+
count: number().int().nonnegative()
|
|
19910
|
+
});
|
|
19911
|
+
/**
|
|
19462
19912
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19463
19913
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19464
19914
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19465
19915
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19466
|
-
* (backups & exports).
|
|
19916
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
19917
|
+
* optional, so an older hub's answer still parses.
|
|
19467
19918
|
*/
|
|
19468
19919
|
var NcStateSummaryPreviewSchema = object({
|
|
19469
19920
|
empty: boolean(),
|
|
@@ -19471,7 +19922,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19471
19922
|
text: string(),
|
|
19472
19923
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19473
19924
|
dropped: record(string(), number().int().nonnegative()),
|
|
19474
|
-
excludedGroups: array(string())
|
|
19925
|
+
excludedGroups: array(string()),
|
|
19926
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
19927
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19475
19928
|
});
|
|
19476
19929
|
var NcTestResultSchema = object({
|
|
19477
19930
|
recordId: string(),
|
|
@@ -20487,7 +20940,7 @@ function cameraSensorRefKey(ref) {
|
|
|
20487
20940
|
}
|
|
20488
20941
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
20489
20942
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
20490
|
-
object({
|
|
20943
|
+
var CameraSensorsConfigSchema = object({
|
|
20491
20944
|
mode: CameraSensorsModeSchema,
|
|
20492
20945
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
20493
20946
|
}).superRefine((value, ctx) => {
|
|
@@ -22392,7 +22845,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22392
22845
|
trackIds: array(string()).min(1)
|
|
22393
22846
|
}), object({
|
|
22394
22847
|
deleted: number().int(),
|
|
22395
|
-
failed: array(string()).readonly()
|
|
22848
|
+
failed: array(string()).readonly(),
|
|
22849
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22396
22850
|
}), {
|
|
22397
22851
|
kind: "mutation",
|
|
22398
22852
|
auth: "admin"
|
|
@@ -22401,7 +22855,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22401
22855
|
deviceId: number(),
|
|
22402
22856
|
trackId: string(),
|
|
22403
22857
|
flags: TrackFlagsPatchSchema
|
|
22404
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22858
|
+
}), 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, {
|
|
22405
22859
|
kind: "query",
|
|
22406
22860
|
auth: "admin"
|
|
22407
22861
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -24599,7 +25053,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24599
25053
|
reachable: boolean(),
|
|
24600
25054
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24601
25055
|
});
|
|
24602
|
-
|
|
25056
|
+
/**
|
|
25057
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25058
|
+
*
|
|
25059
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25060
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25061
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25062
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25063
|
+
* settings store so they survive hub restarts.
|
|
25064
|
+
*
|
|
25065
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25066
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25067
|
+
*/
|
|
25068
|
+
/**
|
|
25069
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25070
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25071
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25072
|
+
*/
|
|
25073
|
+
var SetCameraSensorsInputSchema = object({
|
|
25074
|
+
deviceId: number().int().nonnegative(),
|
|
25075
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25076
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25077
|
+
});
|
|
25078
|
+
/**
|
|
25079
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25080
|
+
*
|
|
25081
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25082
|
+
* node and no config to attach a burst with.
|
|
25083
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25084
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25085
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25086
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25087
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25088
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25089
|
+
* real session re-arms the budget.
|
|
25090
|
+
*/
|
|
25091
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25092
|
+
"unknown-camera",
|
|
25093
|
+
"out-of-range",
|
|
25094
|
+
"no-burst-producer",
|
|
25095
|
+
"already-looked"
|
|
25096
|
+
]);
|
|
25097
|
+
method(object({
|
|
25098
|
+
deviceId: number().int().nonnegative(),
|
|
25099
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25100
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25101
|
+
afterMs: number().finite(),
|
|
25102
|
+
/** Why, for the log. */
|
|
25103
|
+
reason: string()
|
|
25104
|
+
}), object({
|
|
25105
|
+
scheduled: boolean(),
|
|
25106
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25107
|
+
dueInMs: number().optional(),
|
|
25108
|
+
/** When not `scheduled`: why. */
|
|
25109
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25110
|
+
}), {
|
|
25111
|
+
kind: "mutation",
|
|
25112
|
+
auth: "admin"
|
|
25113
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24603
25114
|
kind: "mutation",
|
|
24604
25115
|
auth: "admin"
|
|
24605
25116
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24753,7 +25264,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24753
25264
|
}), CameraSwitchGroupSchema, {
|
|
24754
25265
|
kind: "mutation",
|
|
24755
25266
|
auth: "admin"
|
|
24756
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25267
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25268
|
+
kind: "mutation",
|
|
25269
|
+
auth: "admin"
|
|
25270
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24757
25271
|
kind: "mutation",
|
|
24758
25272
|
auth: "admin"
|
|
24759
25273
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -27063,219 +27577,6 @@ DeviceType.Camera, method(object({
|
|
|
27063
27577
|
auth: "protected"
|
|
27064
27578
|
});
|
|
27065
27579
|
/**
|
|
27066
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
27067
|
-
* name (same pattern as `snapshot`):
|
|
27068
|
-
*
|
|
27069
|
-
* - **Native** providers: registered per-device by device-driver
|
|
27070
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
27071
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
27072
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
27073
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
27074
|
-
* ring; status tracks the last press and a pressCount since start
|
|
27075
|
-
* (diagnostic).
|
|
27076
|
-
*
|
|
27077
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
27078
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
27079
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
27080
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
27081
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
27082
|
-
* device + trigger in the per-device settings.
|
|
27083
|
-
*
|
|
27084
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
27085
|
-
* — subscribers listening at the camera level receive ring events
|
|
27086
|
-
* with `via[]` populated. No code on the parent needed.
|
|
27087
|
-
*/
|
|
27088
|
-
var DoorbellStatusSchema = object({
|
|
27089
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27090
|
-
lastPressedAt: number().nullable(),
|
|
27091
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27092
|
-
pressCountSinceStart: number()
|
|
27093
|
-
});
|
|
27094
|
-
var DoorbellPressEventSchema = object({
|
|
27095
|
-
deviceId: number(),
|
|
27096
|
-
timestamp: number()
|
|
27097
|
-
});
|
|
27098
|
-
/**
|
|
27099
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27100
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27101
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27102
|
-
*/
|
|
27103
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27104
|
-
/**
|
|
27105
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
27106
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
27107
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
27108
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
27109
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
27110
|
-
* reports it, it never writes it.
|
|
27111
|
-
*/
|
|
27112
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
27113
|
-
id: "doorbell-source",
|
|
27114
|
-
label: "Doorbell trigger devices",
|
|
27115
|
-
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.",
|
|
27116
|
-
shape: "association",
|
|
27117
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
27118
|
-
sourceCaps: SOURCE_CAPS,
|
|
27119
|
-
cardinality: "many",
|
|
27120
|
-
value: DoorbellSourceSlotValueSchema
|
|
27121
|
-
};
|
|
27122
|
-
var doorbellCapability = {
|
|
27123
|
-
name: "doorbell",
|
|
27124
|
-
scope: "device",
|
|
27125
|
-
deviceNative: true,
|
|
27126
|
-
mode: "singleton",
|
|
27127
|
-
kind: "wrapper",
|
|
27128
|
-
defaultActive: false,
|
|
27129
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
27130
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
27131
|
-
methods: {},
|
|
27132
|
-
events: {
|
|
27133
|
-
/**
|
|
27134
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
27135
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
27136
|
-
* release/duration — it's a pulse.
|
|
27137
|
-
*/
|
|
27138
|
-
onPressed: {
|
|
27139
|
-
data: DoorbellPressEventSchema,
|
|
27140
|
-
fromState: {
|
|
27141
|
-
field: "lastPressedAt",
|
|
27142
|
-
on: "advance"
|
|
27143
|
-
}
|
|
27144
|
-
} },
|
|
27145
|
-
status: {
|
|
27146
|
-
schema: DoorbellStatusSchema,
|
|
27147
|
-
kind: "push"
|
|
27148
|
-
},
|
|
27149
|
-
/**
|
|
27150
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27151
|
-
* Mirrored by the kernel and readable via
|
|
27152
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27153
|
-
* without subscribing.
|
|
27154
|
-
*/
|
|
27155
|
-
runtimeState: DoorbellStatusSchema,
|
|
27156
|
-
/**
|
|
27157
|
-
* 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.
|
|
27158
|
-
*
|
|
27159
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27160
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27161
|
-
*/
|
|
27162
|
-
durability: "restored"
|
|
27163
|
-
};
|
|
27164
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27165
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27166
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27167
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27168
|
-
DeviceType.Camera;
|
|
27169
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27170
|
-
state: literal("unreachable"),
|
|
27171
|
-
reason: string()
|
|
27172
|
-
})]);
|
|
27173
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27174
|
-
var ExtensionSourceSchema = object({
|
|
27175
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27176
|
-
source: string(),
|
|
27177
|
-
label: string(),
|
|
27178
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27179
|
-
addonId: string().optional(),
|
|
27180
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27181
|
-
});
|
|
27182
|
-
/**
|
|
27183
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27184
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27185
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27186
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27187
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27188
|
-
*/
|
|
27189
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27190
|
-
"ok",
|
|
27191
|
-
"missing",
|
|
27192
|
-
"foreign",
|
|
27193
|
-
"unavailable"
|
|
27194
|
-
]);
|
|
27195
|
-
var ExtensionSlotSourceSchema = object({
|
|
27196
|
-
deviceId: number().int(),
|
|
27197
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27198
|
-
name: string().nullable(),
|
|
27199
|
-
health: ExtensionSourceHealthSchema,
|
|
27200
|
-
detail: string().optional()
|
|
27201
|
-
});
|
|
27202
|
-
/**
|
|
27203
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27204
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27205
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27206
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27207
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27208
|
-
*/
|
|
27209
|
-
var ExtensionSlotActivationSchema = object({
|
|
27210
|
-
state: _enum([
|
|
27211
|
-
"active",
|
|
27212
|
-
"inactive",
|
|
27213
|
-
"unknown"
|
|
27214
|
-
]),
|
|
27215
|
-
authority: string(),
|
|
27216
|
-
detail: string().optional()
|
|
27217
|
-
});
|
|
27218
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27219
|
-
state: literal("ok"),
|
|
27220
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27221
|
-
slotRef: string(),
|
|
27222
|
-
slot: ExtensionSlotIdSchema,
|
|
27223
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27224
|
-
authority: string(),
|
|
27225
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27226
|
-
value: ExtensionSlotValueSchema,
|
|
27227
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27228
|
-
/**
|
|
27229
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27230
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27231
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27232
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27233
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27234
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27235
|
-
* older than D655.
|
|
27236
|
-
*/
|
|
27237
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27238
|
-
}), object({
|
|
27239
|
-
state: literal("unreachable"),
|
|
27240
|
-
addonId: string(),
|
|
27241
|
-
reason: string()
|
|
27242
|
-
})]);
|
|
27243
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27244
|
-
deviceId: number().int(),
|
|
27245
|
-
name: string(),
|
|
27246
|
-
type: string(),
|
|
27247
|
-
location: string().nullable(),
|
|
27248
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27249
|
-
parentName: string().nullable(),
|
|
27250
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27251
|
-
suggested: boolean(),
|
|
27252
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27253
|
-
reason: string().nullable()
|
|
27254
|
-
})) });
|
|
27255
|
-
/**
|
|
27256
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27257
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27258
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27259
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27260
|
-
*/
|
|
27261
|
-
var ExtensionSetResultSchema = object({
|
|
27262
|
-
applied: literal(true),
|
|
27263
|
-
reload: _enum([
|
|
27264
|
-
"none",
|
|
27265
|
-
"host",
|
|
27266
|
-
"parent"
|
|
27267
|
-
])
|
|
27268
|
-
});
|
|
27269
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27270
|
-
deviceId: number().int(),
|
|
27271
|
-
slotRef: string().min(1)
|
|
27272
|
-
});
|
|
27273
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27274
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27275
|
-
kind: "mutation",
|
|
27276
|
-
auth: "admin"
|
|
27277
|
-
});
|
|
27278
|
-
/**
|
|
27279
27580
|
* Optional client-side hints sent at session creation to help the provider
|
|
27280
27581
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27281
27582
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -38449,47 +38750,6 @@ var zoneRulesCapability = {
|
|
|
38449
38750
|
*/
|
|
38450
38751
|
durability: "restored"
|
|
38451
38752
|
};
|
|
38452
|
-
var NUMBER = {
|
|
38453
|
-
kind: "fixed",
|
|
38454
|
-
result: ["number"]
|
|
38455
|
-
};
|
|
38456
|
-
var BOOLEAN = {
|
|
38457
|
-
kind: "fixed",
|
|
38458
|
-
result: ["boolean"]
|
|
38459
|
-
};
|
|
38460
|
-
Object.freeze({
|
|
38461
|
-
min: NUMBER,
|
|
38462
|
-
max: NUMBER,
|
|
38463
|
-
abs: NUMBER,
|
|
38464
|
-
floor: NUMBER,
|
|
38465
|
-
ceil: NUMBER,
|
|
38466
|
-
sqrt: NUMBER,
|
|
38467
|
-
round: NUMBER,
|
|
38468
|
-
pow: NUMBER,
|
|
38469
|
-
clamp: NUMBER,
|
|
38470
|
-
avg: NUMBER,
|
|
38471
|
-
sum: NUMBER,
|
|
38472
|
-
age: NUMBER,
|
|
38473
|
-
convert: NUMBER,
|
|
38474
|
-
coalesce: { kind: "coalesce" },
|
|
38475
|
-
any: BOOLEAN,
|
|
38476
|
-
all: BOOLEAN,
|
|
38477
|
-
within: BOOLEAN,
|
|
38478
|
-
latest: {
|
|
38479
|
-
kind: "fixed",
|
|
38480
|
-
result: ["number", "null"]
|
|
38481
|
-
},
|
|
38482
|
-
number: {
|
|
38483
|
-
kind: "fixed",
|
|
38484
|
-
result: ["number", "null"]
|
|
38485
|
-
},
|
|
38486
|
-
rose: {
|
|
38487
|
-
kind: "fixed",
|
|
38488
|
-
result: ["number", "null"]
|
|
38489
|
-
},
|
|
38490
|
-
count: NUMBER
|
|
38491
|
-
});
|
|
38492
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38493
38753
|
/**
|
|
38494
38754
|
* Accessory device helpers — shared across drivers.
|
|
38495
38755
|
*
|
|
@@ -42435,6 +42695,12 @@ Object.freeze({
|
|
|
42435
42695
|
addonId: null,
|
|
42436
42696
|
access: "view"
|
|
42437
42697
|
},
|
|
42698
|
+
"coreBlocks.listComposableCaps": {
|
|
42699
|
+
capName: "core-blocks",
|
|
42700
|
+
capScope: "system",
|
|
42701
|
+
addonId: null,
|
|
42702
|
+
access: "view"
|
|
42703
|
+
},
|
|
42438
42704
|
"coreBlocks.listCompositions": {
|
|
42439
42705
|
capName: "core-blocks",
|
|
42440
42706
|
capScope: "system",
|
|
@@ -42513,6 +42779,18 @@ Object.freeze({
|
|
|
42513
42779
|
addonId: null,
|
|
42514
42780
|
access: "view"
|
|
42515
42781
|
},
|
|
42782
|
+
"databaseSnapshot.listDatabases": {
|
|
42783
|
+
capName: "database-snapshot",
|
|
42784
|
+
capScope: "system",
|
|
42785
|
+
addonId: null,
|
|
42786
|
+
access: "view"
|
|
42787
|
+
},
|
|
42788
|
+
"databaseSnapshot.writeSnapshot": {
|
|
42789
|
+
capName: "database-snapshot",
|
|
42790
|
+
capScope: "system",
|
|
42791
|
+
addonId: null,
|
|
42792
|
+
access: "create"
|
|
42793
|
+
},
|
|
42516
42794
|
"dataStoreProvider.aggregate": {
|
|
42517
42795
|
capName: "data-store-provider",
|
|
42518
42796
|
capScope: "system",
|
|
@@ -45249,6 +45527,12 @@ Object.freeze({
|
|
|
45249
45527
|
addonId: null,
|
|
45250
45528
|
access: "create"
|
|
45251
45529
|
},
|
|
45530
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45531
|
+
capName: "pipeline-analytics",
|
|
45532
|
+
capScope: "device",
|
|
45533
|
+
addonId: null,
|
|
45534
|
+
access: "delete"
|
|
45535
|
+
},
|
|
45252
45536
|
"pipelineAnalytics.clearTracks": {
|
|
45253
45537
|
capName: "pipeline-analytics",
|
|
45254
45538
|
capScope: "device",
|
|
@@ -45501,6 +45785,12 @@ Object.freeze({
|
|
|
45501
45785
|
addonId: null,
|
|
45502
45786
|
access: "view"
|
|
45503
45787
|
},
|
|
45788
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
45789
|
+
capName: "pipeline-analytics",
|
|
45790
|
+
capScope: "device",
|
|
45791
|
+
addonId: null,
|
|
45792
|
+
access: "view"
|
|
45793
|
+
},
|
|
45504
45794
|
"pipelineAnalytics.listTracks": {
|
|
45505
45795
|
capName: "pipeline-analytics",
|
|
45506
45796
|
capScope: "device",
|
|
@@ -45615,6 +45905,18 @@ Object.freeze({
|
|
|
45615
45905
|
addonId: null,
|
|
45616
45906
|
access: "create"
|
|
45617
45907
|
},
|
|
45908
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
45909
|
+
capName: "pipeline-analytics",
|
|
45910
|
+
capScope: "device",
|
|
45911
|
+
addonId: null,
|
|
45912
|
+
access: "create"
|
|
45913
|
+
},
|
|
45914
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
45915
|
+
capName: "pipeline-analytics",
|
|
45916
|
+
capScope: "device",
|
|
45917
|
+
addonId: null,
|
|
45918
|
+
access: "create"
|
|
45919
|
+
},
|
|
45618
45920
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
45619
45921
|
capName: "pipeline-analytics",
|
|
45620
45922
|
capScope: "device",
|
|
@@ -46053,6 +46355,12 @@ Object.freeze({
|
|
|
46053
46355
|
addonId: null,
|
|
46054
46356
|
access: "delete"
|
|
46055
46357
|
},
|
|
46358
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46359
|
+
capName: "pipeline-orchestrator",
|
|
46360
|
+
capScope: "system",
|
|
46361
|
+
addonId: null,
|
|
46362
|
+
access: "create"
|
|
46363
|
+
},
|
|
46056
46364
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
46057
46365
|
capName: "pipeline-orchestrator",
|
|
46058
46366
|
capScope: "system",
|
|
@@ -46119,6 +46427,12 @@ Object.freeze({
|
|
|
46119
46427
|
addonId: null,
|
|
46120
46428
|
access: "create"
|
|
46121
46429
|
},
|
|
46430
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46431
|
+
capName: "pipeline-orchestrator",
|
|
46432
|
+
capScope: "system",
|
|
46433
|
+
addonId: null,
|
|
46434
|
+
access: "create"
|
|
46435
|
+
},
|
|
46122
46436
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
46123
46437
|
capName: "pipeline-orchestrator",
|
|
46124
46438
|
capScope: "system",
|
|
@@ -49529,6 +49843,11 @@ Object.freeze({
|
|
|
49529
49843
|
form: "single",
|
|
49530
49844
|
optional: false
|
|
49531
49845
|
}],
|
|
49846
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
49847
|
+
name: "deviceId",
|
|
49848
|
+
form: "single",
|
|
49849
|
+
optional: false
|
|
49850
|
+
}],
|
|
49532
49851
|
"pipelineAnalytics.clearTracks": [{
|
|
49533
49852
|
name: "deviceId",
|
|
49534
49853
|
form: "single",
|
|
@@ -49679,6 +49998,11 @@ Object.freeze({
|
|
|
49679
49998
|
form: "single",
|
|
49680
49999
|
optional: false
|
|
49681
50000
|
}],
|
|
50001
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
50002
|
+
name: "deviceId",
|
|
50003
|
+
form: "single",
|
|
50004
|
+
optional: false
|
|
50005
|
+
}],
|
|
49682
50006
|
"pipelineAnalytics.listTracks": [{
|
|
49683
50007
|
name: "deviceId",
|
|
49684
50008
|
form: "single",
|
|
@@ -49749,6 +50073,16 @@ Object.freeze({
|
|
|
49749
50073
|
form: "single",
|
|
49750
50074
|
optional: false
|
|
49751
50075
|
}],
|
|
50076
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
50077
|
+
name: "deviceId",
|
|
50078
|
+
form: "single",
|
|
50079
|
+
optional: false
|
|
50080
|
+
}],
|
|
50081
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
50082
|
+
name: "deviceId",
|
|
50083
|
+
form: "single",
|
|
50084
|
+
optional: false
|
|
50085
|
+
}],
|
|
49752
50086
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
49753
50087
|
name: "deviceId",
|
|
49754
50088
|
form: "single",
|
|
@@ -49819,6 +50153,11 @@ Object.freeze({
|
|
|
49819
50153
|
form: "single",
|
|
49820
50154
|
optional: false
|
|
49821
50155
|
}],
|
|
50156
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50157
|
+
name: "deviceId",
|
|
50158
|
+
form: "single",
|
|
50159
|
+
optional: false
|
|
50160
|
+
}],
|
|
49822
50161
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
49823
50162
|
name: "deviceId",
|
|
49824
50163
|
form: "single",
|
|
@@ -49829,6 +50168,11 @@ Object.freeze({
|
|
|
49829
50168
|
form: "single",
|
|
49830
50169
|
optional: false
|
|
49831
50170
|
}],
|
|
50171
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50172
|
+
name: "deviceId",
|
|
50173
|
+
form: "single",
|
|
50174
|
+
optional: false
|
|
50175
|
+
}],
|
|
49832
50176
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
49833
50177
|
name: "deviceId",
|
|
49834
50178
|
form: "single",
|
|
@@ -50975,6 +51319,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
50975
51319
|
systemEventKinds: [...SUMMARISABLE],
|
|
50976
51320
|
systemEventDeliveries: ["summary"]
|
|
50977
51321
|
},
|
|
51322
|
+
{
|
|
51323
|
+
name: "summarySection",
|
|
51324
|
+
label: "Summary: this section",
|
|
51325
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51326
|
+
example: "Batterie scariche",
|
|
51327
|
+
group: "system",
|
|
51328
|
+
families: ["rule"],
|
|
51329
|
+
fields: [...RULE_TEXT],
|
|
51330
|
+
kinds: ["system"],
|
|
51331
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51332
|
+
systemEventDeliveries: ["summary"]
|
|
51333
|
+
},
|
|
50978
51334
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
50979
51335
|
name: v.name,
|
|
50980
51336
|
label: v.label,
|
|
@@ -51051,6 +51407,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
51051
51407
|
[...RULE_TEXT],
|
|
51052
51408
|
...STATE_SUMMARY_VARS
|
|
51053
51409
|
];
|
|
51410
|
+
new Set([
|
|
51411
|
+
"disarmed",
|
|
51412
|
+
"armed_home",
|
|
51413
|
+
"armed_away",
|
|
51414
|
+
"armed_night",
|
|
51415
|
+
"armed_vacation",
|
|
51416
|
+
"armed_custom_bypass",
|
|
51417
|
+
"arming",
|
|
51418
|
+
"disarming",
|
|
51419
|
+
"pending",
|
|
51420
|
+
"triggered",
|
|
51421
|
+
"open",
|
|
51422
|
+
"opening",
|
|
51423
|
+
"closing",
|
|
51424
|
+
"closed",
|
|
51425
|
+
"stopped",
|
|
51426
|
+
"locked",
|
|
51427
|
+
"unlocked",
|
|
51428
|
+
"locking",
|
|
51429
|
+
"unlocking",
|
|
51430
|
+
"jammed",
|
|
51431
|
+
"on",
|
|
51432
|
+
"off",
|
|
51433
|
+
"home",
|
|
51434
|
+
"not_home",
|
|
51435
|
+
"matched",
|
|
51436
|
+
"diverged",
|
|
51437
|
+
"unknown",
|
|
51438
|
+
"latched",
|
|
51439
|
+
"live"
|
|
51440
|
+
]);
|
|
51054
51441
|
/**
|
|
51055
51442
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
51056
51443
|
*
|