@camstack/addon-export-hap 1.2.141 → 1.2.142
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/hap-export.addon.js +626 -239
- package/dist/hap-export.addon.mjs +626 -239
- package/package.json +2 -2
|
@@ -5409,7 +5409,7 @@ var ZodIssueCode = {
|
|
|
5409
5409
|
var ZodFirstPartyTypeKind;
|
|
5410
5410
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5411
5411
|
//#endregion
|
|
5412
|
-
//#region ../types/dist/sleep-
|
|
5412
|
+
//#region ../types/dist/sleep-gU6hqv4_.mjs
|
|
5413
5413
|
/**
|
|
5414
5414
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5415
5415
|
* window to float samples (D455).
|
|
@@ -9696,6 +9696,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
9696
9696
|
/** Max rows returned, newest-first. */
|
|
9697
9697
|
limit: number().int().min(1).max(1e3).optional()
|
|
9698
9698
|
});
|
|
9699
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
9700
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
9701
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
9702
|
+
var TrackRelationSchema = object({
|
|
9703
|
+
id: string(),
|
|
9704
|
+
deviceId: number().int(),
|
|
9705
|
+
leftTrackId: string(),
|
|
9706
|
+
rightTrackId: string(),
|
|
9707
|
+
leftSide: TrackSideSchema.nullable(),
|
|
9708
|
+
rightSide: TrackSideSchema.nullable(),
|
|
9709
|
+
relation: TrackRelationKindSchema,
|
|
9710
|
+
presence: literal("continuous").nullable(),
|
|
9711
|
+
leftStartedAt: number().int().nullable(),
|
|
9712
|
+
rightStartedAt: number().int().nullable(),
|
|
9713
|
+
createdAt: number().int(),
|
|
9714
|
+
updatedAt: number().int(),
|
|
9715
|
+
author: string().nullable()
|
|
9716
|
+
});
|
|
9717
|
+
var TrackPuritySchema = object({
|
|
9718
|
+
id: string(),
|
|
9719
|
+
deviceId: number().int(),
|
|
9720
|
+
sourceTrackId: string(),
|
|
9721
|
+
purity: TrackPurityValueSchema,
|
|
9722
|
+
switchAtMs: number().int().nullable(),
|
|
9723
|
+
startedAt: number().int().nullable(),
|
|
9724
|
+
createdAt: number().int(),
|
|
9725
|
+
updatedAt: number().int(),
|
|
9726
|
+
author: string().nullable()
|
|
9727
|
+
});
|
|
9728
|
+
var SetTrackRelationInputSchema = object({
|
|
9729
|
+
deviceId: number().int(),
|
|
9730
|
+
trackId: string().min(1),
|
|
9731
|
+
otherTrackId: string().min(1),
|
|
9732
|
+
relation: TrackRelationKindSchema,
|
|
9733
|
+
presence: literal("continuous").optional(),
|
|
9734
|
+
trackSide: TrackSideSchema.optional(),
|
|
9735
|
+
otherSide: TrackSideSchema.optional()
|
|
9736
|
+
});
|
|
9737
|
+
var ClearTrackRelationInputSchema = object({
|
|
9738
|
+
deviceId: number().int(),
|
|
9739
|
+
trackId: string().min(1),
|
|
9740
|
+
otherTrackId: string().min(1)
|
|
9741
|
+
});
|
|
9742
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9743
|
+
var SetTrackPurityInputSchema = object({
|
|
9744
|
+
deviceId: number().int(),
|
|
9745
|
+
trackId: string().min(1),
|
|
9746
|
+
purity: _enum([
|
|
9747
|
+
"pure",
|
|
9748
|
+
"mixed",
|
|
9749
|
+
"not-a-subject"
|
|
9750
|
+
]),
|
|
9751
|
+
switchAtMs: number().int().optional()
|
|
9752
|
+
});
|
|
9753
|
+
/** `null` when `pure` cleared the row. */
|
|
9754
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9755
|
+
var ListTrackRelationsInputSchema = object({
|
|
9756
|
+
deviceId: number().int(),
|
|
9757
|
+
trackId: string().optional(),
|
|
9758
|
+
since: number().int().optional(),
|
|
9759
|
+
until: number().int().optional(),
|
|
9760
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9761
|
+
});
|
|
9762
|
+
var ListTrackRelationsResultSchema = object({
|
|
9763
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9764
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9765
|
+
truncated: boolean()
|
|
9766
|
+
});
|
|
9767
|
+
_enum([
|
|
9768
|
+
"unknown-track",
|
|
9769
|
+
"cross-device",
|
|
9770
|
+
"self-relation",
|
|
9771
|
+
"contradiction",
|
|
9772
|
+
"switch-outside-track",
|
|
9773
|
+
"switch-needs-mixed"
|
|
9774
|
+
]);
|
|
9699
9775
|
/**
|
|
9700
9776
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
9701
9777
|
* recordings and events management surfaces.
|
|
@@ -12403,6 +12479,68 @@ method(object({
|
|
|
12403
12479
|
password: string()
|
|
12404
12480
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12405
12481
|
/**
|
|
12482
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
12483
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
12484
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
12485
|
+
* generous because a timeout fails the whole backup run.
|
|
12486
|
+
*/
|
|
12487
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
12488
|
+
/**
|
|
12489
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
12490
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
12491
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
12492
|
+
* owner's host.
|
|
12493
|
+
*/
|
|
12494
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
12495
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
12496
|
+
var DatabaseSnapshotTableSchema = object({
|
|
12497
|
+
name: string(),
|
|
12498
|
+
rows: number().int().nonnegative()
|
|
12499
|
+
});
|
|
12500
|
+
/**
|
|
12501
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
12502
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
12503
|
+
* that finds the path outside its own data root refuses it rather than
|
|
12504
|
+
* archiving something it cannot place.
|
|
12505
|
+
*/
|
|
12506
|
+
var DatabaseSnapshotResultSchema = object({
|
|
12507
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
12508
|
+
livePath: string(),
|
|
12509
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
12510
|
+
snapshotPath: string(),
|
|
12511
|
+
sizeBytes: number().int().nonnegative(),
|
|
12512
|
+
pageCount: number().int().nonnegative(),
|
|
12513
|
+
pageSize: number().int().positive(),
|
|
12514
|
+
/**
|
|
12515
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
12516
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
12517
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
12518
|
+
*/
|
|
12519
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
12520
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
12521
|
+
copyMs: number().nonnegative(),
|
|
12522
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
12523
|
+
verifyMs: number().nonnegative(),
|
|
12524
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
12525
|
+
takenAt: number()
|
|
12526
|
+
});
|
|
12527
|
+
/**
|
|
12528
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
12529
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
12530
|
+
* data dir), because an archive outlives the host that made it.
|
|
12531
|
+
*/
|
|
12532
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
12533
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
12534
|
+
livePath: string(),
|
|
12535
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
12536
|
+
snapshotPath: string()
|
|
12537
|
+
});
|
|
12538
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
12539
|
+
kind: "mutation",
|
|
12540
|
+
auth: "admin",
|
|
12541
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
12542
|
+
});
|
|
12543
|
+
/**
|
|
12406
12544
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12407
12545
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12408
12546
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -12513,7 +12651,12 @@ var ArchiveManifestSchema = object({
|
|
|
12513
12651
|
locations: array(string()),
|
|
12514
12652
|
entries: array(ArchiveEntrySchema),
|
|
12515
12653
|
totalBytes: number(),
|
|
12516
|
-
totalFiles: number()
|
|
12654
|
+
totalFiles: number(),
|
|
12655
|
+
/**
|
|
12656
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12657
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12658
|
+
*/
|
|
12659
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
12517
12660
|
});
|
|
12518
12661
|
var LocationStatSchema = object({
|
|
12519
12662
|
name: string(),
|
|
@@ -13937,6 +14080,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13937
14080
|
reason: string().optional(),
|
|
13938
14081
|
fields: array(CompositionFieldStateSchema)
|
|
13939
14082
|
});
|
|
14083
|
+
var ComposerBlockSchema = object({
|
|
14084
|
+
id: string().min(1),
|
|
14085
|
+
name: string().min(1).max(120),
|
|
14086
|
+
enabled: boolean(),
|
|
14087
|
+
updatedAt: number(),
|
|
14088
|
+
composition: CompositionSchema
|
|
14089
|
+
});
|
|
14090
|
+
/**
|
|
14091
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
14092
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14093
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14094
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14095
|
+
*/
|
|
14096
|
+
var ComposerUnreadableBlockSchema = object({
|
|
14097
|
+
id: string().min(1),
|
|
14098
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14099
|
+
name: string().nullable(),
|
|
14100
|
+
/** The parse error, in the operator's words. */
|
|
14101
|
+
error: string()
|
|
14102
|
+
});
|
|
14103
|
+
method(object({
|
|
14104
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14105
|
+
integrationId: string().nullable(),
|
|
14106
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14107
|
+
storeLoaded: boolean(),
|
|
14108
|
+
blocks: array(ComposerBlockSchema),
|
|
14109
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14110
|
+
restartBlockIds: array(string()),
|
|
14111
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14112
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14113
|
+
}), object({
|
|
14114
|
+
blocks: array(object({
|
|
14115
|
+
blockId: string(),
|
|
14116
|
+
status: CompositionRunStatusSchema,
|
|
14117
|
+
reason: string().optional()
|
|
14118
|
+
})),
|
|
14119
|
+
/**
|
|
14120
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14121
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
14122
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14123
|
+
*/
|
|
14124
|
+
acted: boolean()
|
|
14125
|
+
}), {
|
|
14126
|
+
kind: "mutation",
|
|
14127
|
+
auth: "admin"
|
|
14128
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14129
|
+
var NUMBER = {
|
|
14130
|
+
kind: "fixed",
|
|
14131
|
+
result: ["number"]
|
|
14132
|
+
};
|
|
14133
|
+
var BOOLEAN = {
|
|
14134
|
+
kind: "fixed",
|
|
14135
|
+
result: ["boolean"]
|
|
14136
|
+
};
|
|
14137
|
+
Object.freeze({
|
|
14138
|
+
min: NUMBER,
|
|
14139
|
+
max: NUMBER,
|
|
14140
|
+
abs: NUMBER,
|
|
14141
|
+
floor: NUMBER,
|
|
14142
|
+
ceil: NUMBER,
|
|
14143
|
+
sqrt: NUMBER,
|
|
14144
|
+
round: NUMBER,
|
|
14145
|
+
pow: NUMBER,
|
|
14146
|
+
clamp: NUMBER,
|
|
14147
|
+
avg: NUMBER,
|
|
14148
|
+
sum: NUMBER,
|
|
14149
|
+
age: NUMBER,
|
|
14150
|
+
convert: NUMBER,
|
|
14151
|
+
coalesce: { kind: "coalesce" },
|
|
14152
|
+
any: BOOLEAN,
|
|
14153
|
+
all: BOOLEAN,
|
|
14154
|
+
within: BOOLEAN,
|
|
14155
|
+
latest: {
|
|
14156
|
+
kind: "fixed",
|
|
14157
|
+
result: ["number", "null"]
|
|
14158
|
+
},
|
|
14159
|
+
number: {
|
|
14160
|
+
kind: "fixed",
|
|
14161
|
+
result: ["number", "null"]
|
|
14162
|
+
},
|
|
14163
|
+
rose: {
|
|
14164
|
+
kind: "fixed",
|
|
14165
|
+
result: ["number", "null"]
|
|
14166
|
+
},
|
|
14167
|
+
count: NUMBER
|
|
14168
|
+
});
|
|
14169
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
14170
|
+
/**
|
|
14171
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
14172
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
14173
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
14174
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
14175
|
+
* offer a feature the save would refuse for the same reason.
|
|
14176
|
+
*/
|
|
14177
|
+
var ComposableFieldSchema = object({
|
|
14178
|
+
path: string(),
|
|
14179
|
+
kind: CompositionFieldKindSchema,
|
|
14180
|
+
nullable: boolean(),
|
|
14181
|
+
required: boolean(),
|
|
14182
|
+
enumValues: array(string()).optional()
|
|
14183
|
+
});
|
|
14184
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
14185
|
+
cap: string(),
|
|
14186
|
+
fields: array(ComposableFieldSchema),
|
|
14187
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
14188
|
+
itemArray: object({
|
|
14189
|
+
path: string(),
|
|
14190
|
+
keyField: string()
|
|
14191
|
+
}).optional()
|
|
14192
|
+
})) });
|
|
13940
14193
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13941
14194
|
* agent is the reason placement is not fixed to the hub. */
|
|
13942
14195
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -14101,7 +14354,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
14101
14354
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
14102
14355
|
addonId: string().min(1),
|
|
14103
14356
|
stableId: string().min(1)
|
|
14104
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
14357
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
14105
14358
|
composition: CompositionSchema,
|
|
14106
14359
|
blockId: string().optional()
|
|
14107
14360
|
}), CompositionValidationSchema, {
|
|
@@ -14109,52 +14362,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
14109
14362
|
auth: "admin",
|
|
14110
14363
|
access: "view"
|
|
14111
14364
|
});
|
|
14112
|
-
var ComposerBlockSchema = object({
|
|
14113
|
-
id: string().min(1),
|
|
14114
|
-
name: string().min(1).max(120),
|
|
14115
|
-
enabled: boolean(),
|
|
14116
|
-
updatedAt: number(),
|
|
14117
|
-
composition: CompositionSchema
|
|
14118
|
-
});
|
|
14119
|
-
/**
|
|
14120
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
14121
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14122
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14123
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14124
|
-
*/
|
|
14125
|
-
var ComposerUnreadableBlockSchema = object({
|
|
14126
|
-
id: string().min(1),
|
|
14127
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14128
|
-
name: string().nullable(),
|
|
14129
|
-
/** The parse error, in the operator's words. */
|
|
14130
|
-
error: string()
|
|
14131
|
-
});
|
|
14132
|
-
method(object({
|
|
14133
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14134
|
-
integrationId: string().nullable(),
|
|
14135
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14136
|
-
storeLoaded: boolean(),
|
|
14137
|
-
blocks: array(ComposerBlockSchema),
|
|
14138
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14139
|
-
restartBlockIds: array(string()),
|
|
14140
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14141
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14142
|
-
}), object({
|
|
14143
|
-
blocks: array(object({
|
|
14144
|
-
blockId: string(),
|
|
14145
|
-
status: CompositionRunStatusSchema,
|
|
14146
|
-
reason: string().optional()
|
|
14147
|
-
})),
|
|
14148
|
-
/**
|
|
14149
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14150
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
14151
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14152
|
-
*/
|
|
14153
|
-
acted: boolean()
|
|
14154
|
-
}), {
|
|
14155
|
-
kind: "mutation",
|
|
14156
|
-
auth: "admin"
|
|
14157
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14158
14365
|
/**
|
|
14159
14366
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
14160
14367
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -16084,6 +16291,138 @@ method(object({
|
|
|
16084
16291
|
deviceIds: array(number()).readonly(),
|
|
16085
16292
|
caps: array(string()).readonly().optional()
|
|
16086
16293
|
}), record(string(), record(string(), unknown().nullable())));
|
|
16294
|
+
object({
|
|
16295
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16296
|
+
lastPressedAt: number().nullable(),
|
|
16297
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16298
|
+
pressCountSinceStart: number()
|
|
16299
|
+
});
|
|
16300
|
+
object({
|
|
16301
|
+
deviceId: number(),
|
|
16302
|
+
timestamp: number()
|
|
16303
|
+
});
|
|
16304
|
+
/**
|
|
16305
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16306
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16307
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16308
|
+
*/
|
|
16309
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16310
|
+
DeviceType.Camera;
|
|
16311
|
+
DeviceType.Button, DeviceType.Camera;
|
|
16312
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16313
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16314
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16315
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16316
|
+
DeviceType.Camera;
|
|
16317
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16318
|
+
state: literal("unreachable"),
|
|
16319
|
+
reason: string()
|
|
16320
|
+
})]);
|
|
16321
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16322
|
+
var ExtensionSourceSchema = object({
|
|
16323
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16324
|
+
source: string(),
|
|
16325
|
+
label: string(),
|
|
16326
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16327
|
+
addonId: string().optional(),
|
|
16328
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16329
|
+
});
|
|
16330
|
+
/**
|
|
16331
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16332
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16333
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16334
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16335
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16336
|
+
*/
|
|
16337
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16338
|
+
"ok",
|
|
16339
|
+
"missing",
|
|
16340
|
+
"foreign",
|
|
16341
|
+
"unavailable"
|
|
16342
|
+
]);
|
|
16343
|
+
var ExtensionSlotSourceSchema = object({
|
|
16344
|
+
deviceId: number().int(),
|
|
16345
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16346
|
+
name: string().nullable(),
|
|
16347
|
+
health: ExtensionSourceHealthSchema,
|
|
16348
|
+
detail: string().optional()
|
|
16349
|
+
});
|
|
16350
|
+
/**
|
|
16351
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16352
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16353
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16354
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16355
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16356
|
+
*/
|
|
16357
|
+
var ExtensionSlotActivationSchema = object({
|
|
16358
|
+
state: _enum([
|
|
16359
|
+
"active",
|
|
16360
|
+
"inactive",
|
|
16361
|
+
"unknown"
|
|
16362
|
+
]),
|
|
16363
|
+
authority: string(),
|
|
16364
|
+
detail: string().optional()
|
|
16365
|
+
});
|
|
16366
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16367
|
+
state: literal("ok"),
|
|
16368
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16369
|
+
slotRef: string(),
|
|
16370
|
+
slot: ExtensionSlotIdSchema,
|
|
16371
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16372
|
+
authority: string(),
|
|
16373
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16374
|
+
value: ExtensionSlotValueSchema,
|
|
16375
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16376
|
+
/**
|
|
16377
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16378
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16379
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16380
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16381
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16382
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16383
|
+
* older than D655.
|
|
16384
|
+
*/
|
|
16385
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16386
|
+
}), object({
|
|
16387
|
+
state: literal("unreachable"),
|
|
16388
|
+
addonId: string(),
|
|
16389
|
+
reason: string()
|
|
16390
|
+
})]);
|
|
16391
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16392
|
+
deviceId: number().int(),
|
|
16393
|
+
name: string(),
|
|
16394
|
+
type: string(),
|
|
16395
|
+
location: string().nullable(),
|
|
16396
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16397
|
+
parentName: string().nullable(),
|
|
16398
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16399
|
+
suggested: boolean(),
|
|
16400
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16401
|
+
reason: string().nullable()
|
|
16402
|
+
})) });
|
|
16403
|
+
/**
|
|
16404
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16405
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16406
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16407
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16408
|
+
*/
|
|
16409
|
+
var ExtensionSetResultSchema = object({
|
|
16410
|
+
applied: literal(true),
|
|
16411
|
+
reload: _enum([
|
|
16412
|
+
"none",
|
|
16413
|
+
"host",
|
|
16414
|
+
"parent"
|
|
16415
|
+
])
|
|
16416
|
+
});
|
|
16417
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16418
|
+
deviceId: number().int(),
|
|
16419
|
+
slotRef: string().min(1)
|
|
16420
|
+
});
|
|
16421
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16422
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16423
|
+
kind: "mutation",
|
|
16424
|
+
auth: "admin"
|
|
16425
|
+
});
|
|
16087
16426
|
/**
|
|
16088
16427
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
16089
16428
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -19056,17 +19395,25 @@ var NcScheduleSchema = object({
|
|
|
19056
19395
|
*/
|
|
19057
19396
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
19058
19397
|
/**
|
|
19398
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19399
|
+
* every section; `section` = one notification per section with something to
|
|
19400
|
+
* say (an unavailable section included), each titled by its section.
|
|
19401
|
+
*/
|
|
19402
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19403
|
+
/**
|
|
19059
19404
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
19060
19405
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
19061
19406
|
* (low batteries, consumables to replace, devices offline, updates
|
|
19062
|
-
* available, ...), after its own filters
|
|
19407
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19408
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
19063
19409
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
19064
19410
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
19065
19411
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
19066
19412
|
*/
|
|
19067
19413
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
19068
19414
|
mode: literal("summary"),
|
|
19069
|
-
schedule: NcScheduleSchema
|
|
19415
|
+
schedule: NcScheduleSchema,
|
|
19416
|
+
split: NcStateSummarySplitSchema.optional()
|
|
19070
19417
|
})]);
|
|
19071
19418
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
19072
19419
|
var NcPlateMatcherSchema = object({
|
|
@@ -19206,8 +19553,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
19206
19553
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
19207
19554
|
var NcZoneConditionSchema = object({
|
|
19208
19555
|
ids: array(string().min(1)).min(1),
|
|
19209
|
-
/**
|
|
19210
|
-
|
|
19556
|
+
/**
|
|
19557
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19558
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19559
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19560
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19561
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19562
|
+
*/
|
|
19563
|
+
match: _enum(["any", "all"]).optional()
|
|
19211
19564
|
});
|
|
19212
19565
|
/**
|
|
19213
19566
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19711,10 +20064,12 @@ var NcMediaPolicySchema = object({
|
|
|
19711
20064
|
/**
|
|
19712
20065
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19713
20066
|
* notification suppresses.
|
|
19714
|
-
* - `
|
|
19715
|
-
*
|
|
19716
|
-
*
|
|
19717
|
-
*
|
|
20067
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
20068
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
20069
|
+
* still waits.
|
|
20070
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
20071
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
20072
|
+
* longer what an unset rule means.
|
|
19718
20073
|
*
|
|
19719
20074
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19720
20075
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19729,8 +20084,11 @@ var NcThrottleSchema = object({
|
|
|
19729
20084
|
/**
|
|
19730
20085
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19731
20086
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19732
|
-
* rule authored before this field simply carries none
|
|
19733
|
-
*
|
|
20087
|
+
* rule authored before this field simply carries none. The engine used to
|
|
20088
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
20089
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
20090
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
20091
|
+
* engine, and D36's dated note.
|
|
19734
20092
|
*/
|
|
19735
20093
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19736
20094
|
});
|
|
@@ -20054,11 +20412,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20054
20412
|
reason: string().optional()
|
|
20055
20413
|
});
|
|
20056
20414
|
/**
|
|
20415
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20416
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20417
|
+
*/
|
|
20418
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20419
|
+
section: string().optional(),
|
|
20420
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20421
|
+
title: string(),
|
|
20422
|
+
text: string(),
|
|
20423
|
+
count: number().int().nonnegative()
|
|
20424
|
+
});
|
|
20425
|
+
/**
|
|
20057
20426
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
20058
20427
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
20059
20428
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
20060
20429
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
20061
|
-
* (backups & exports).
|
|
20430
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20431
|
+
* optional, so an older hub's answer still parses.
|
|
20062
20432
|
*/
|
|
20063
20433
|
var NcStateSummaryPreviewSchema = object({
|
|
20064
20434
|
empty: boolean(),
|
|
@@ -20066,7 +20436,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
20066
20436
|
text: string(),
|
|
20067
20437
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
20068
20438
|
dropped: record(string(), number().int().nonnegative()),
|
|
20069
|
-
excludedGroups: array(string())
|
|
20439
|
+
excludedGroups: array(string()),
|
|
20440
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20441
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
20070
20442
|
});
|
|
20071
20443
|
var NcTestResultSchema = object({
|
|
20072
20444
|
recordId: string(),
|
|
@@ -21082,7 +21454,7 @@ function cameraSensorRefKey(ref) {
|
|
|
21082
21454
|
}
|
|
21083
21455
|
/** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
|
|
21084
21456
|
var CameraSensorsModeSchema = _enum(["in-addition"]);
|
|
21085
|
-
object({
|
|
21457
|
+
var CameraSensorsConfigSchema = object({
|
|
21086
21458
|
mode: CameraSensorsModeSchema,
|
|
21087
21459
|
sensors: array(CameraSensorRefSchema).min(1).max(8)
|
|
21088
21460
|
}).superRefine((value, ctx) => {
|
|
@@ -22987,7 +23359,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22987
23359
|
trackIds: array(string()).min(1)
|
|
22988
23360
|
}), object({
|
|
22989
23361
|
deleted: number().int(),
|
|
22990
|
-
failed: array(string()).readonly()
|
|
23362
|
+
failed: array(string()).readonly(),
|
|
23363
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22991
23364
|
}), {
|
|
22992
23365
|
kind: "mutation",
|
|
22993
23366
|
auth: "admin"
|
|
@@ -22996,7 +23369,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22996
23369
|
deviceId: number(),
|
|
22997
23370
|
trackId: string(),
|
|
22998
23371
|
flags: TrackFlagsPatchSchema
|
|
22999
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
23372
|
+
}), 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, {
|
|
23000
23373
|
kind: "query",
|
|
23001
23374
|
auth: "admin"
|
|
23002
23375
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -25154,7 +25527,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
25154
25527
|
reachable: boolean(),
|
|
25155
25528
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
25156
25529
|
});
|
|
25157
|
-
|
|
25530
|
+
/**
|
|
25531
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25532
|
+
*
|
|
25533
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25534
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25535
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25536
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25537
|
+
* settings store so they survive hub restarts.
|
|
25538
|
+
*
|
|
25539
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25540
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25541
|
+
*/
|
|
25542
|
+
/**
|
|
25543
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25544
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25545
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25546
|
+
*/
|
|
25547
|
+
var SetCameraSensorsInputSchema = object({
|
|
25548
|
+
deviceId: number().int().nonnegative(),
|
|
25549
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25550
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25551
|
+
});
|
|
25552
|
+
/**
|
|
25553
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25554
|
+
*
|
|
25555
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25556
|
+
* node and no config to attach a burst with.
|
|
25557
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25558
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25559
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25560
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25561
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25562
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25563
|
+
* real session re-arms the budget.
|
|
25564
|
+
*/
|
|
25565
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25566
|
+
"unknown-camera",
|
|
25567
|
+
"out-of-range",
|
|
25568
|
+
"no-burst-producer",
|
|
25569
|
+
"already-looked"
|
|
25570
|
+
]);
|
|
25571
|
+
method(object({
|
|
25572
|
+
deviceId: number().int().nonnegative(),
|
|
25573
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25574
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25575
|
+
afterMs: number().finite(),
|
|
25576
|
+
/** Why, for the log. */
|
|
25577
|
+
reason: string()
|
|
25578
|
+
}), object({
|
|
25579
|
+
scheduled: boolean(),
|
|
25580
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25581
|
+
dueInMs: number().optional(),
|
|
25582
|
+
/** When not `scheduled`: why. */
|
|
25583
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25584
|
+
}), {
|
|
25585
|
+
kind: "mutation",
|
|
25586
|
+
auth: "admin"
|
|
25587
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
25158
25588
|
kind: "mutation",
|
|
25159
25589
|
auth: "admin"
|
|
25160
25590
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -25308,7 +25738,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
25308
25738
|
}), CameraSwitchGroupSchema, {
|
|
25309
25739
|
kind: "mutation",
|
|
25310
25740
|
auth: "admin"
|
|
25311
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25741
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25742
|
+
kind: "mutation",
|
|
25743
|
+
auth: "admin"
|
|
25744
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
25312
25745
|
kind: "mutation",
|
|
25313
25746
|
auth: "admin"
|
|
25314
25747
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -27677,138 +28110,6 @@ var videoclipsCapability = {
|
|
|
27677
28110
|
})
|
|
27678
28111
|
}
|
|
27679
28112
|
};
|
|
27680
|
-
object({
|
|
27681
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27682
|
-
lastPressedAt: number().nullable(),
|
|
27683
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27684
|
-
pressCountSinceStart: number()
|
|
27685
|
-
});
|
|
27686
|
-
object({
|
|
27687
|
-
deviceId: number(),
|
|
27688
|
-
timestamp: number()
|
|
27689
|
-
});
|
|
27690
|
-
/**
|
|
27691
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27692
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27693
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27694
|
-
*/
|
|
27695
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27696
|
-
DeviceType.Camera;
|
|
27697
|
-
DeviceType.Button, DeviceType.Camera;
|
|
27698
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27699
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27700
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27701
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27702
|
-
DeviceType.Camera;
|
|
27703
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27704
|
-
state: literal("unreachable"),
|
|
27705
|
-
reason: string()
|
|
27706
|
-
})]);
|
|
27707
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27708
|
-
var ExtensionSourceSchema = object({
|
|
27709
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27710
|
-
source: string(),
|
|
27711
|
-
label: string(),
|
|
27712
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27713
|
-
addonId: string().optional(),
|
|
27714
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27715
|
-
});
|
|
27716
|
-
/**
|
|
27717
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27718
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27719
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27720
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27721
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27722
|
-
*/
|
|
27723
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27724
|
-
"ok",
|
|
27725
|
-
"missing",
|
|
27726
|
-
"foreign",
|
|
27727
|
-
"unavailable"
|
|
27728
|
-
]);
|
|
27729
|
-
var ExtensionSlotSourceSchema = object({
|
|
27730
|
-
deviceId: number().int(),
|
|
27731
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27732
|
-
name: string().nullable(),
|
|
27733
|
-
health: ExtensionSourceHealthSchema,
|
|
27734
|
-
detail: string().optional()
|
|
27735
|
-
});
|
|
27736
|
-
/**
|
|
27737
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27738
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27739
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27740
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27741
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27742
|
-
*/
|
|
27743
|
-
var ExtensionSlotActivationSchema = object({
|
|
27744
|
-
state: _enum([
|
|
27745
|
-
"active",
|
|
27746
|
-
"inactive",
|
|
27747
|
-
"unknown"
|
|
27748
|
-
]),
|
|
27749
|
-
authority: string(),
|
|
27750
|
-
detail: string().optional()
|
|
27751
|
-
});
|
|
27752
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27753
|
-
state: literal("ok"),
|
|
27754
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27755
|
-
slotRef: string(),
|
|
27756
|
-
slot: ExtensionSlotIdSchema,
|
|
27757
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27758
|
-
authority: string(),
|
|
27759
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27760
|
-
value: ExtensionSlotValueSchema,
|
|
27761
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27762
|
-
/**
|
|
27763
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27764
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27765
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27766
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27767
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27768
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27769
|
-
* older than D655.
|
|
27770
|
-
*/
|
|
27771
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27772
|
-
}), object({
|
|
27773
|
-
state: literal("unreachable"),
|
|
27774
|
-
addonId: string(),
|
|
27775
|
-
reason: string()
|
|
27776
|
-
})]);
|
|
27777
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27778
|
-
deviceId: number().int(),
|
|
27779
|
-
name: string(),
|
|
27780
|
-
type: string(),
|
|
27781
|
-
location: string().nullable(),
|
|
27782
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27783
|
-
parentName: string().nullable(),
|
|
27784
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27785
|
-
suggested: boolean(),
|
|
27786
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27787
|
-
reason: string().nullable()
|
|
27788
|
-
})) });
|
|
27789
|
-
/**
|
|
27790
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27791
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27792
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27793
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27794
|
-
*/
|
|
27795
|
-
var ExtensionSetResultSchema = object({
|
|
27796
|
-
applied: literal(true),
|
|
27797
|
-
reload: _enum([
|
|
27798
|
-
"none",
|
|
27799
|
-
"host",
|
|
27800
|
-
"parent"
|
|
27801
|
-
])
|
|
27802
|
-
});
|
|
27803
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27804
|
-
deviceId: number().int(),
|
|
27805
|
-
slotRef: string().min(1)
|
|
27806
|
-
});
|
|
27807
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27808
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27809
|
-
kind: "mutation",
|
|
27810
|
-
auth: "admin"
|
|
27811
|
-
});
|
|
27812
28113
|
/**
|
|
27813
28114
|
* Optional client-side hints sent at session creation to help the provider
|
|
27814
28115
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -36463,47 +36764,6 @@ DeviceType.Camera, method(object({
|
|
|
36463
36764
|
detection: array(ZoneRuleSchema).readonly(),
|
|
36464
36765
|
package: array(ZoneRuleSchema).readonly()
|
|
36465
36766
|
});
|
|
36466
|
-
var NUMBER = {
|
|
36467
|
-
kind: "fixed",
|
|
36468
|
-
result: ["number"]
|
|
36469
|
-
};
|
|
36470
|
-
var BOOLEAN = {
|
|
36471
|
-
kind: "fixed",
|
|
36472
|
-
result: ["boolean"]
|
|
36473
|
-
};
|
|
36474
|
-
Object.freeze({
|
|
36475
|
-
min: NUMBER,
|
|
36476
|
-
max: NUMBER,
|
|
36477
|
-
abs: NUMBER,
|
|
36478
|
-
floor: NUMBER,
|
|
36479
|
-
ceil: NUMBER,
|
|
36480
|
-
sqrt: NUMBER,
|
|
36481
|
-
round: NUMBER,
|
|
36482
|
-
pow: NUMBER,
|
|
36483
|
-
clamp: NUMBER,
|
|
36484
|
-
avg: NUMBER,
|
|
36485
|
-
sum: NUMBER,
|
|
36486
|
-
age: NUMBER,
|
|
36487
|
-
convert: NUMBER,
|
|
36488
|
-
coalesce: { kind: "coalesce" },
|
|
36489
|
-
any: BOOLEAN,
|
|
36490
|
-
all: BOOLEAN,
|
|
36491
|
-
within: BOOLEAN,
|
|
36492
|
-
latest: {
|
|
36493
|
-
kind: "fixed",
|
|
36494
|
-
result: ["number", "null"]
|
|
36495
|
-
},
|
|
36496
|
-
number: {
|
|
36497
|
-
kind: "fixed",
|
|
36498
|
-
result: ["number", "null"]
|
|
36499
|
-
},
|
|
36500
|
-
rose: {
|
|
36501
|
-
kind: "fixed",
|
|
36502
|
-
result: ["number", "null"]
|
|
36503
|
-
},
|
|
36504
|
-
count: NUMBER
|
|
36505
|
-
});
|
|
36506
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
36507
36767
|
/**
|
|
36508
36768
|
* Accessory device helpers — shared across drivers.
|
|
36509
36769
|
*
|
|
@@ -38926,6 +39186,12 @@ Object.freeze({
|
|
|
38926
39186
|
addonId: null,
|
|
38927
39187
|
access: "view"
|
|
38928
39188
|
},
|
|
39189
|
+
"coreBlocks.listComposableCaps": {
|
|
39190
|
+
capName: "core-blocks",
|
|
39191
|
+
capScope: "system",
|
|
39192
|
+
addonId: null,
|
|
39193
|
+
access: "view"
|
|
39194
|
+
},
|
|
38929
39195
|
"coreBlocks.listCompositions": {
|
|
38930
39196
|
capName: "core-blocks",
|
|
38931
39197
|
capScope: "system",
|
|
@@ -39004,6 +39270,18 @@ Object.freeze({
|
|
|
39004
39270
|
addonId: null,
|
|
39005
39271
|
access: "view"
|
|
39006
39272
|
},
|
|
39273
|
+
"databaseSnapshot.listDatabases": {
|
|
39274
|
+
capName: "database-snapshot",
|
|
39275
|
+
capScope: "system",
|
|
39276
|
+
addonId: null,
|
|
39277
|
+
access: "view"
|
|
39278
|
+
},
|
|
39279
|
+
"databaseSnapshot.writeSnapshot": {
|
|
39280
|
+
capName: "database-snapshot",
|
|
39281
|
+
capScope: "system",
|
|
39282
|
+
addonId: null,
|
|
39283
|
+
access: "create"
|
|
39284
|
+
},
|
|
39007
39285
|
"dataStoreProvider.aggregate": {
|
|
39008
39286
|
capName: "data-store-provider",
|
|
39009
39287
|
capScope: "system",
|
|
@@ -41740,6 +42018,12 @@ Object.freeze({
|
|
|
41740
42018
|
addonId: null,
|
|
41741
42019
|
access: "create"
|
|
41742
42020
|
},
|
|
42021
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
42022
|
+
capName: "pipeline-analytics",
|
|
42023
|
+
capScope: "device",
|
|
42024
|
+
addonId: null,
|
|
42025
|
+
access: "delete"
|
|
42026
|
+
},
|
|
41743
42027
|
"pipelineAnalytics.clearTracks": {
|
|
41744
42028
|
capName: "pipeline-analytics",
|
|
41745
42029
|
capScope: "device",
|
|
@@ -41992,6 +42276,12 @@ Object.freeze({
|
|
|
41992
42276
|
addonId: null,
|
|
41993
42277
|
access: "view"
|
|
41994
42278
|
},
|
|
42279
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
42280
|
+
capName: "pipeline-analytics",
|
|
42281
|
+
capScope: "device",
|
|
42282
|
+
addonId: null,
|
|
42283
|
+
access: "view"
|
|
42284
|
+
},
|
|
41995
42285
|
"pipelineAnalytics.listTracks": {
|
|
41996
42286
|
capName: "pipeline-analytics",
|
|
41997
42287
|
capScope: "device",
|
|
@@ -42106,6 +42396,18 @@ Object.freeze({
|
|
|
42106
42396
|
addonId: null,
|
|
42107
42397
|
access: "create"
|
|
42108
42398
|
},
|
|
42399
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
42400
|
+
capName: "pipeline-analytics",
|
|
42401
|
+
capScope: "device",
|
|
42402
|
+
addonId: null,
|
|
42403
|
+
access: "create"
|
|
42404
|
+
},
|
|
42405
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
42406
|
+
capName: "pipeline-analytics",
|
|
42407
|
+
capScope: "device",
|
|
42408
|
+
addonId: null,
|
|
42409
|
+
access: "create"
|
|
42410
|
+
},
|
|
42109
42411
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
42110
42412
|
capName: "pipeline-analytics",
|
|
42111
42413
|
capScope: "device",
|
|
@@ -42544,6 +42846,12 @@ Object.freeze({
|
|
|
42544
42846
|
addonId: null,
|
|
42545
42847
|
access: "delete"
|
|
42546
42848
|
},
|
|
42849
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
42850
|
+
capName: "pipeline-orchestrator",
|
|
42851
|
+
capScope: "system",
|
|
42852
|
+
addonId: null,
|
|
42853
|
+
access: "create"
|
|
42854
|
+
},
|
|
42547
42855
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
42548
42856
|
capName: "pipeline-orchestrator",
|
|
42549
42857
|
capScope: "system",
|
|
@@ -42610,6 +42918,12 @@ Object.freeze({
|
|
|
42610
42918
|
addonId: null,
|
|
42611
42919
|
access: "create"
|
|
42612
42920
|
},
|
|
42921
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
42922
|
+
capName: "pipeline-orchestrator",
|
|
42923
|
+
capScope: "system",
|
|
42924
|
+
addonId: null,
|
|
42925
|
+
access: "create"
|
|
42926
|
+
},
|
|
42613
42927
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
42614
42928
|
capName: "pipeline-orchestrator",
|
|
42615
42929
|
capScope: "system",
|
|
@@ -46020,6 +46334,11 @@ Object.freeze({
|
|
|
46020
46334
|
form: "single",
|
|
46021
46335
|
optional: false
|
|
46022
46336
|
}],
|
|
46337
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
46338
|
+
name: "deviceId",
|
|
46339
|
+
form: "single",
|
|
46340
|
+
optional: false
|
|
46341
|
+
}],
|
|
46023
46342
|
"pipelineAnalytics.clearTracks": [{
|
|
46024
46343
|
name: "deviceId",
|
|
46025
46344
|
form: "single",
|
|
@@ -46170,6 +46489,11 @@ Object.freeze({
|
|
|
46170
46489
|
form: "single",
|
|
46171
46490
|
optional: false
|
|
46172
46491
|
}],
|
|
46492
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
46493
|
+
name: "deviceId",
|
|
46494
|
+
form: "single",
|
|
46495
|
+
optional: false
|
|
46496
|
+
}],
|
|
46173
46497
|
"pipelineAnalytics.listTracks": [{
|
|
46174
46498
|
name: "deviceId",
|
|
46175
46499
|
form: "single",
|
|
@@ -46240,6 +46564,16 @@ Object.freeze({
|
|
|
46240
46564
|
form: "single",
|
|
46241
46565
|
optional: false
|
|
46242
46566
|
}],
|
|
46567
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
46568
|
+
name: "deviceId",
|
|
46569
|
+
form: "single",
|
|
46570
|
+
optional: false
|
|
46571
|
+
}],
|
|
46572
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
46573
|
+
name: "deviceId",
|
|
46574
|
+
form: "single",
|
|
46575
|
+
optional: false
|
|
46576
|
+
}],
|
|
46243
46577
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
46244
46578
|
name: "deviceId",
|
|
46245
46579
|
form: "single",
|
|
@@ -46310,6 +46644,11 @@ Object.freeze({
|
|
|
46310
46644
|
form: "single",
|
|
46311
46645
|
optional: false
|
|
46312
46646
|
}],
|
|
46647
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
46648
|
+
name: "deviceId",
|
|
46649
|
+
form: "single",
|
|
46650
|
+
optional: false
|
|
46651
|
+
}],
|
|
46313
46652
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
46314
46653
|
name: "deviceId",
|
|
46315
46654
|
form: "single",
|
|
@@ -46320,6 +46659,11 @@ Object.freeze({
|
|
|
46320
46659
|
form: "single",
|
|
46321
46660
|
optional: false
|
|
46322
46661
|
}],
|
|
46662
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
46663
|
+
name: "deviceId",
|
|
46664
|
+
form: "single",
|
|
46665
|
+
optional: false
|
|
46666
|
+
}],
|
|
46323
46667
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
46324
46668
|
name: "deviceId",
|
|
46325
46669
|
form: "single",
|
|
@@ -47466,6 +47810,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
47466
47810
|
systemEventKinds: [...SUMMARISABLE],
|
|
47467
47811
|
systemEventDeliveries: ["summary"]
|
|
47468
47812
|
},
|
|
47813
|
+
{
|
|
47814
|
+
name: "summarySection",
|
|
47815
|
+
label: "Summary: this section",
|
|
47816
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
47817
|
+
example: "Batterie scariche",
|
|
47818
|
+
group: "system",
|
|
47819
|
+
families: ["rule"],
|
|
47820
|
+
fields: [...RULE_TEXT],
|
|
47821
|
+
kinds: ["system"],
|
|
47822
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
47823
|
+
systemEventDeliveries: ["summary"]
|
|
47824
|
+
},
|
|
47469
47825
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
47470
47826
|
name: v.name,
|
|
47471
47827
|
label: v.label,
|
|
@@ -47542,6 +47898,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
47542
47898
|
[...RULE_TEXT],
|
|
47543
47899
|
...STATE_SUMMARY_VARS
|
|
47544
47900
|
];
|
|
47901
|
+
new Set([
|
|
47902
|
+
"disarmed",
|
|
47903
|
+
"armed_home",
|
|
47904
|
+
"armed_away",
|
|
47905
|
+
"armed_night",
|
|
47906
|
+
"armed_vacation",
|
|
47907
|
+
"armed_custom_bypass",
|
|
47908
|
+
"arming",
|
|
47909
|
+
"disarming",
|
|
47910
|
+
"pending",
|
|
47911
|
+
"triggered",
|
|
47912
|
+
"open",
|
|
47913
|
+
"opening",
|
|
47914
|
+
"closing",
|
|
47915
|
+
"closed",
|
|
47916
|
+
"stopped",
|
|
47917
|
+
"locked",
|
|
47918
|
+
"unlocked",
|
|
47919
|
+
"locking",
|
|
47920
|
+
"unlocking",
|
|
47921
|
+
"jammed",
|
|
47922
|
+
"on",
|
|
47923
|
+
"off",
|
|
47924
|
+
"home",
|
|
47925
|
+
"not_home",
|
|
47926
|
+
"matched",
|
|
47927
|
+
"diverged",
|
|
47928
|
+
"unknown",
|
|
47929
|
+
"latched",
|
|
47930
|
+
"live"
|
|
47931
|
+
]);
|
|
47545
47932
|
/**
|
|
47546
47933
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
47547
47934
|
*
|