@camstack/types 1.2.260 → 1.2.262
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/base-addon.d.ts +9 -1
- package/dist/addon.js +4 -6
- package/dist/addon.mjs +4 -6
- package/dist/capabilities/capability-definition.d.ts +9 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +18 -0
- package/dist/capabilities/device-extension.cap.d.ts +408 -0
- package/dist/capabilities/device-manager.cap.d.ts +59 -6
- package/dist/capabilities/doorbell.cap.d.ts +41 -1
- package/dist/capabilities/embedding-encoder.cap.d.ts +175 -0
- package/dist/capabilities/index.d.ts +15 -12
- package/dist/capabilities/llm-runtime.cap.d.ts +4 -4
- package/dist/capabilities/llm-shared.d.ts +6 -6
- package/dist/capabilities/llm.cap.d.ts +6 -6
- package/dist/capabilities/model-convert.cap.d.ts +9 -0
- package/dist/capabilities/model-distributor.cap.d.ts +18 -0
- package/dist/capabilities/notification-rules.cap.d.ts +32 -14
- package/dist/capabilities/osd-manager.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-analytics.cap.d.ts +80 -2
- package/dist/capabilities/pipeline-executor.cap.d.ts +1 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +62 -1
- package/dist/capabilities/pipeline-runner.cap.d.ts +24 -0
- package/dist/capabilities/vector-store.cap.d.ts +14 -0
- package/dist/device-extension/index.d.ts +3 -0
- package/dist/device-extension/slot-descriptor.d.ts +62 -0
- package/dist/device-extension/slot-provider.d.ts +70 -0
- package/dist/generated/addon-api.d.ts +39 -31
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +8 -8
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/extension-slots.d.ts +40 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +4 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1483 -507
- package/dist/index.mjs +1422 -508
- package/dist/interfaces/addon.d.ts +41 -0
- package/dist/interfaces/event-bus.d.ts +10 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +73 -7
- package/dist/node.mjs +73 -8
- package/dist/pipeline/cluster-model-scope.d.ts +59 -3
- package/dist/pipeline/step-format-runnable.d.ts +31 -0
- package/dist/{sleep-BDYxE1ax.js → sleep-8K9gue-H.js} +56 -42
- package/dist/{sleep-BaRu0bS5.mjs → sleep-DC-wdyeS.mjs} +51 -43
- package/dist/storage/atomic-write.d.ts +25 -0
- package/dist/types/clip-model.d.ts +64 -0
- package/dist/types/models.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AudioStreamPickSchema, A as DeviceType, At as DATAPLANE_SECRET_HEADER, B as optionalMethod, Bt as
|
|
1
|
+
import { $ as AudioStreamPickSchema, A as DeviceType, At as DATAPLANE_SECRET_HEADER, B as optionalMethod, Bt as WELL_KNOWN_TABS, C as customAction, Ct as parseProfileBrokerId, D as ChargingStatus, Dt as PEER_BYTES_STALL_MS, E as deviceCustomAction, Et as PEER_BYTES_MAX_OUTSTANDING, F as PROVIDER_PIN_FIELD, Ft as normalizeNodeId, G as readNodePin, Gt as resolveHydratedFieldValue, H as systemMethod, Ht as collectHydratedFieldEntries, I as event, It as createDurableState, J as ReadinessTimeoutError, Jt as expandAudioChunkToF32le, K as toNodeId, Kt as AUDIO_CHUNK_FORMATS, L as expandCapMethods, Lt as createEvent, M as DEFAULT_RUNTIME_STATE_DURABILITY, Mt as DisposerChain, N as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Nt as BaseAddon, O as DeviceFeature, Ot as PEER_BYTES_TICKET_TTL_MS, P as DEVICE_STATUS_METHOD, Pt as normalizeAddonInitResult, Q as AudioChunkFormatSchema, R as isDeviceConfigCap, Rt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as makeSourceBrokerId, T as describeCustomActions, Tt as PEER_BYTES_CHUNK_BYTES, U as CAP_NODE_PIN_CONTEXT_KEY, Ut as collectHydratedFieldValues, V as resolveCapMount, Vt as WELL_KNOWN_TAB_MAP, W as nodePin, Wt as hydrateSchema, X as readinessKey, Y as emitDownForOwnedCaps, Yt as isAudioChunkFormat, Z as scopeKey, _ as createMirrorSource, _t as SubscribeAudioChunksInputSchema, a as asJsonObject, at as CamStreamResolutionSchema, b as deviceOpsCapability, bt as SubscribeFramesResultSchema, c as parseJsonArray, ct as DecodedFrameSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as FrameHandleSchema, et as BrokerStatsSchema, f as DEVICE_SCOPED_CAPS, ft as ProfileRtspEntrySchema, g as createLazyTrpcSource, gt as StreamSourceSchema, h as createEventBusSliceSource, ht as StreamSourceEntrySchema, i as asJsonArray, it as CamStreamKindSchema, j as adminUiCapability, jt as SHARE_VIEW_KINDS, k as DeviceRole, kt as PeerBytesTicketSchema, l as parseJsonObject, lt as EncodedPacketSchema, m as createDeviceProxy, mt as ProfileSlotStatusSchema, n as sleepCancellable, nt as CAM_PROFILE_ORDER, o as asNumber, ot as CameraStreamSchema, p as isDeviceScopedCap, pt as ProfileSlotSchema, q as ReadinessRegistry, qt as audioChunkBytesPerSample, r as asBoolean, rt as CamProfileSchema, s as asString, st as DecodedAudioChunkSchema, t as sleep, tt as BrokerStatusSchema, u as parseJsonUnknown, ut as FrameHandleFormatSchema, v as createSliceHandle, vt as SubscribeAudioChunksResultSchema, w as defineCustomActions, wt as selectAssignedProfileSlots, x as viewerUiCapability, xt as makeProfileBrokerId, y as RawStateResultSchema, yt as SubscribeFramesInputSchema, z as method, zt as isEvent } from "./sleep-DC-wdyeS.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-BVDXG4tB.mjs";
|
|
3
3
|
import { a as buildAudioArgs, c as buildVideoArgs, d as logBannerArgs, f as pickVideoEncoder, i as audioPlanFromEncodeProfile, l as invocationFromEncodeProfile, n as Fmp4BoxSplitter, o as buildFfmpegArgs, p as resolveStreamMaps, r as AUDIO_PRESETS, s as buildInputArgs, t as canonicalHash, u as isSoftwareDecode } from "./canonical-hash-CPK2Dy60.mjs";
|
|
4
4
|
import { EventSourceType } from "./enums.mjs";
|
|
@@ -5016,6 +5016,94 @@ function describeModelVariant(models, modelId) {
|
|
|
5016
5016
|
};
|
|
5017
5017
|
}
|
|
5018
5018
|
//#endregion
|
|
5019
|
+
//#region src/types/clip-model.ts
|
|
5020
|
+
/**
|
|
5021
|
+
* A CLIP model's feature-space contract — what every consumer of its vectors
|
|
5022
|
+
* must agree on, carried BY THE MODEL rather than re-derived by each consumer.
|
|
5023
|
+
*
|
|
5024
|
+
* ## Why this lives on the catalog entry
|
|
5025
|
+
*
|
|
5026
|
+
* Until 2026-09-26 each fact was hard-coded where it was used: the text window
|
|
5027
|
+
* (77) and pad id (0) in `text_encoder_inference.py`, the index name
|
|
5028
|
+
* (`object-clip`) in the object-embedding store, the "is this a CLIP vector"
|
|
5029
|
+
* test as `embeddingModelId.startsWith('mobileclip-')`, the search floor (0.2)
|
|
5030
|
+
* in the cap default, and the dimension (512) behind a `getModelMeta` that fell
|
|
5031
|
+
* back to MobileCLIP for any id it did not know. Every one of those is wrong for
|
|
5032
|
+
* the next model, and each one failed SILENTLY for SigLIP2 in the 2026-09-26
|
|
5033
|
+
* spike: vectors dropped before the store with no log, 768-d queries truncated
|
|
5034
|
+
* to 512 and ranked as garbage, 97% of true matches under the 0.2 floor (D649).
|
|
5035
|
+
*
|
|
5036
|
+
* A model now declares its own contract here, and a model with no `clip` block
|
|
5037
|
+
* is not a CLIP model to any consumer. That is also the seam Model Studio uses
|
|
5038
|
+
* for a user-supplied CLIP model: its registry row carries the same block.
|
|
5039
|
+
*/
|
|
5040
|
+
/**
|
|
5041
|
+
* `object-clip` (the historical MobileCLIP index, 512-d) or
|
|
5042
|
+
* `object-clip-<model>`. Lower-case and dash-only so the sqlite-vec table name
|
|
5043
|
+
* derived from it (`vec_` + non-word → `_`) cannot collide with another index's.
|
|
5044
|
+
*/
|
|
5045
|
+
var CLIP_VECTOR_INDEX_PATTERN = /^object-clip(-[a-z0-9][a-z0-9-]*)?$/;
|
|
5046
|
+
var ClipModelMetaSchema = z.object({
|
|
5047
|
+
/** The paired text encoder's catalog id (the embedding-encoder's text catalog). */
|
|
5048
|
+
textModelId: z.string().min(1),
|
|
5049
|
+
/** Output dimension of BOTH towers. A vector of any other length is refused. */
|
|
5050
|
+
embeddingDim: z.number().int().positive(),
|
|
5051
|
+
/**
|
|
5052
|
+
* The `vector-store` index this model's vectors live in. ONE feature space
|
|
5053
|
+
* per index: two models share an index only when their vectors are ranked
|
|
5054
|
+
* against each other, which for CLIP means never across families. MobileCLIP
|
|
5055
|
+
* S1 and S2 share `object-clip` for history (separated by the row's
|
|
5056
|
+
* `modelId`); any other model gets its own.
|
|
5057
|
+
*/
|
|
5058
|
+
vectorIndex: z.string().regex(CLIP_VECTOR_INDEX_PATTERN),
|
|
5059
|
+
/**
|
|
5060
|
+
* The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
|
|
5061
|
+
* must be unique per tokenizer: every model's siblings land in ONE flat
|
|
5062
|
+
* models directory, so two different tokenizers under the same name would
|
|
5063
|
+
* silently overwrite each other (whichever model downloaded last wins, and
|
|
5064
|
+
* the other one tokenises with the wrong vocabulary).
|
|
5065
|
+
*/
|
|
5066
|
+
tokenizerFile: z.string().min(1),
|
|
5067
|
+
/** Token window the text graph takes (SigLIP2: 64; CLIP BPE: 77). */
|
|
5068
|
+
contextLength: z.number().int().positive(),
|
|
5069
|
+
/** Id the tokenizer pads with. */
|
|
5070
|
+
padId: z.number().int().nonnegative(),
|
|
5071
|
+
/**
|
|
5072
|
+
* The search cosine floor at `strictness: 'loose'` — calibrated per model,
|
|
5073
|
+
* because cosine bands are a property of the model: 0.2 keeps 96% of matched
|
|
5074
|
+
* COCO caption-image pairs on MobileCLIP S1 and 2.7% on SigLIP2.
|
|
5075
|
+
*/
|
|
5076
|
+
searchMinScore: z.number().min(0).max(1)
|
|
5077
|
+
});
|
|
5078
|
+
/**
|
|
5079
|
+
* Model-relative search strictness. The operator picks how picky, the model
|
|
5080
|
+
* says what that means in its own cosine band. On MobileCLIP (floor 0.2) these
|
|
5081
|
+
* reproduce the admin UI's historical absolute presets 0.20 / 0.25 / 0.30.
|
|
5082
|
+
*/
|
|
5083
|
+
var CLIP_SEARCH_STRICTNESS = [
|
|
5084
|
+
"loose",
|
|
5085
|
+
"balanced",
|
|
5086
|
+
"strict"
|
|
5087
|
+
];
|
|
5088
|
+
var ClipSearchStrictnessSchema = z.enum(CLIP_SEARCH_STRICTNESS);
|
|
5089
|
+
var CLIP_STRICTNESS_FACTOR = {
|
|
5090
|
+
loose: 1,
|
|
5091
|
+
balanced: 1.25,
|
|
5092
|
+
strict: 1.5
|
|
5093
|
+
};
|
|
5094
|
+
/**
|
|
5095
|
+
* The cosine floor a search runs with.
|
|
5096
|
+
*
|
|
5097
|
+
* An explicit `minScore` is honoured verbatim: it is a number a caller chose,
|
|
5098
|
+
* and silently rescaling it would make the same URL mean different things on
|
|
5099
|
+
* two installs. Everything else is relative to the model.
|
|
5100
|
+
*/
|
|
5101
|
+
function resolveClipSearchMinScore(meta, request) {
|
|
5102
|
+
if (request.minScore !== void 0) return request.minScore;
|
|
5103
|
+
const factor = CLIP_STRICTNESS_FACTOR[request.strictness ?? "loose"];
|
|
5104
|
+
return Math.min(1, Math.round(meta.searchMinScore * factor * 1e3) / 1e3);
|
|
5105
|
+
}
|
|
5106
|
+
//#endregion
|
|
5019
5107
|
//#region src/types/models.ts
|
|
5020
5108
|
var MODEL_FORMATS = [
|
|
5021
5109
|
"onnx",
|
|
@@ -5240,7 +5328,14 @@ var ModelCatalogEntrySchema = z.object({
|
|
|
5240
5328
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
5241
5329
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
5242
5330
|
*/
|
|
5243
|
-
classMap: DetectionCatalogClassMapSchema.optional()
|
|
5331
|
+
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
5332
|
+
/**
|
|
5333
|
+
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
5334
|
+
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
5335
|
+
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
5336
|
+
* embedding encoder and the semantic-search store (D649).
|
|
5337
|
+
*/
|
|
5338
|
+
clip: ClipModelMetaSchema.optional()
|
|
5244
5339
|
});
|
|
5245
5340
|
var ConvertTargetSchema = z.discriminatedUnion("format", [z.object({
|
|
5246
5341
|
format: z.literal("openvino"),
|
|
@@ -12410,6 +12505,42 @@ var LinkedDeviceSchema = z.object({
|
|
|
12410
12505
|
features: z.array(z.string()),
|
|
12411
12506
|
producesTrackedEvents: z.boolean().optional()
|
|
12412
12507
|
});
|
|
12508
|
+
/**
|
|
12509
|
+
* The `linked-devices` extension slot's editable value (D648): the operator's
|
|
12510
|
+
* pick list, exactly what `_linkedDeviceIds` persists. Tree children are NOT
|
|
12511
|
+
* in it — they are always linked and are not a pick.
|
|
12512
|
+
*
|
|
12513
|
+
* `trackedDeviceIds` (D655) is the tracked-event opt-in, exactly what
|
|
12514
|
+
* `_linkedDeviceTrackedIds` persists: which linked devices materialize a
|
|
12515
|
+
* synthetic tracked event on the camera. A read always carries it AS STORED
|
|
12516
|
+
* (an absent key reads as `[]`, which is what the resolver makes of it —
|
|
12517
|
+
* NONE). On a write it is optional: absent leaves the opt-in untouched, so a
|
|
12518
|
+
* card built before D655 cannot erase it by saving the pick list. A present
|
|
12519
|
+
* list REPLACES the opt-in; each id must be a pick, a device the camera links
|
|
12520
|
+
* by structure (the row's `impliedSources`: tree children, a picked
|
|
12521
|
+
* container's child) or already stored — so what was read can always be
|
|
12522
|
+
* written back unchanged, and a NEW opt-in outside the linked set is refused.
|
|
12523
|
+
*/
|
|
12524
|
+
var LinkedDevicesSlotValueSchema = z.object({
|
|
12525
|
+
deviceIds: z.array(z.number().int().positive()),
|
|
12526
|
+
trackedDeviceIds: z.array(z.number().int().positive()).optional()
|
|
12527
|
+
});
|
|
12528
|
+
/**
|
|
12529
|
+
* The `linked-devices` slot — a camera's companion devices, owned by the
|
|
12530
|
+
* device manager over `_linkedDeviceIds` (D648, D356). Any device may be a
|
|
12531
|
+
* source except a container (its children are picked in its place) and the
|
|
12532
|
+
* camera itself.
|
|
12533
|
+
*/
|
|
12534
|
+
var LINKED_DEVICES_SLOT = {
|
|
12535
|
+
id: "linked-devices",
|
|
12536
|
+
label: "Linked devices",
|
|
12537
|
+
description: "Companion devices of this camera: their controls appear with it, and the ones you opt in produce tracked events on it.",
|
|
12538
|
+
shape: "association",
|
|
12539
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
12540
|
+
sourceCaps: "any",
|
|
12541
|
+
cardinality: "many",
|
|
12542
|
+
value: LinkedDevicesSlotValueSchema
|
|
12543
|
+
};
|
|
12413
12544
|
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12414
12545
|
* The batch answer needs the tag; the single-device answer already has it
|
|
12415
12546
|
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
@@ -12559,7 +12690,7 @@ var deviceManagerCapability = {
|
|
|
12559
12690
|
name: "device-manager",
|
|
12560
12691
|
scope: "system",
|
|
12561
12692
|
mode: "singleton",
|
|
12562
|
-
|
|
12693
|
+
extensionSlots: [LINKED_DEVICES_SLOT],
|
|
12563
12694
|
methods: {
|
|
12564
12695
|
/** Reserve (or re-resolve) a progressive numeric id for `(addonId, stableId)`.
|
|
12565
12696
|
* Idempotent: returns the existing id if one is already persisted for the
|
|
@@ -13062,11 +13193,12 @@ var deviceManagerCapability = {
|
|
|
13062
13193
|
/**
|
|
13063
13194
|
* Resolve the devices LINKED to a camera — the single policy authority
|
|
13064
13195
|
* both consumers call (viewer devices panel + pipeline-analytics event
|
|
13065
|
-
* kinds/ingest). Device-tree children are ALWAYS included
|
|
13066
|
-
*
|
|
13067
|
-
*
|
|
13068
|
-
* camera itself; deduped.
|
|
13069
|
-
*
|
|
13196
|
+
* kinds/ingest). Device-tree children are ALWAYS included, plus the
|
|
13197
|
+
* operator's persisted pick list (`mode` is always `manual` since D356:
|
|
13198
|
+
* same-location devices are suggested by the picker, never linked on
|
|
13199
|
+
* their own). Excludes the camera itself; deduped. The list is written by
|
|
13200
|
+
* the `linked-devices` extension slot over `_linkedDeviceIds` (see the
|
|
13201
|
+
* module docblock).
|
|
13070
13202
|
*/
|
|
13071
13203
|
getLinkedDevices: method(z.object({ deviceId: z.number() }), z.object({
|
|
13072
13204
|
mode: LinkedDevicesModeSchema,
|
|
@@ -13615,11 +13747,143 @@ var EmbeddingResultSchema = z.object({
|
|
|
13615
13747
|
embedding: z.array(z.number()),
|
|
13616
13748
|
inferenceMs: z.number()
|
|
13617
13749
|
});
|
|
13750
|
+
/** The two CLIP towers the encoder runs; a crash budget is kept per tower. */
|
|
13751
|
+
var EmbeddingTowerSchema = z.enum(["image", "text"]);
|
|
13752
|
+
/**
|
|
13753
|
+
* A tower in the terminal `failed` state (D649, D6): it crashed or failed to
|
|
13754
|
+
* load `crashes` times within `windowMs`, and is refused by name until an
|
|
13755
|
+
* operator `resetFailedModels` or a model change — never on a timer.
|
|
13756
|
+
*
|
|
13757
|
+
* `nodeId` is the node whose tower failed. The state lives in THAT node's
|
|
13758
|
+
* encoder process (in memory — a runner respawn clears it), and one node's
|
|
13759
|
+
* answer says nothing about another's.
|
|
13760
|
+
*/
|
|
13761
|
+
var EmbeddingFailedModelSchema = z.object({
|
|
13762
|
+
modelId: z.string(),
|
|
13763
|
+
tower: EmbeddingTowerSchema,
|
|
13764
|
+
nodeId: z.string(),
|
|
13765
|
+
crashes: z.number(),
|
|
13766
|
+
windowMs: z.number(),
|
|
13767
|
+
sinceMs: z.number(),
|
|
13768
|
+
lastReason: z.string()
|
|
13769
|
+
});
|
|
13770
|
+
/**
|
|
13771
|
+
* A model whose REQUIREMENTS can never be met on this node (D649 round 5):
|
|
13772
|
+
* an id the catalog does not know, a model URL answering 404/410, a declared
|
|
13773
|
+
* sibling (the tokenizer) that is not there. After `attempts` failed builds
|
|
13774
|
+
* it is terminally `requirements-failed`, refused by name until an operator
|
|
13775
|
+
* `resetFailedModels` or a model change — the same exits as a crashed tower.
|
|
13776
|
+
*/
|
|
13777
|
+
var EmbeddingFailedRequirementSchema = z.object({
|
|
13778
|
+
modelId: z.string(),
|
|
13779
|
+
tower: EmbeddingTowerSchema,
|
|
13780
|
+
nodeId: z.string(),
|
|
13781
|
+
attempts: z.number(),
|
|
13782
|
+
sinceMs: z.number(),
|
|
13783
|
+
lastReason: z.string()
|
|
13784
|
+
});
|
|
13618
13785
|
var EmbeddingInfoSchema = z.object({
|
|
13619
13786
|
modelId: z.string(),
|
|
13620
13787
|
embeddingDim: z.number(),
|
|
13621
|
-
ready: z.boolean()
|
|
13622
|
-
|
|
13788
|
+
ready: z.boolean(),
|
|
13789
|
+
/**
|
|
13790
|
+
* The node that answered. Absent only from an encoder older than D649's
|
|
13791
|
+
* crash budget — whose `failedModels` is then UNKNOWN (D315), never "none".
|
|
13792
|
+
*/
|
|
13793
|
+
nodeId: z.string().optional(),
|
|
13794
|
+
/**
|
|
13795
|
+
* Towers in `failed` on the answering node, each row naming it. `undefined`
|
|
13796
|
+
* means the node could not say (pre-budget encoder); a node that has the
|
|
13797
|
+
* budget always answers an array, empty included.
|
|
13798
|
+
*/
|
|
13799
|
+
failedModels: z.array(EmbeddingFailedModelSchema).optional(),
|
|
13800
|
+
/** Models terminally `requirements-failed` on the answering node; same reading as above. */
|
|
13801
|
+
failedRequirements: z.array(EmbeddingFailedRequirementSchema).optional()
|
|
13802
|
+
});
|
|
13803
|
+
/**
|
|
13804
|
+
* The THREE codes an encoder refusal can carry (D649, D6). Same shape as
|
|
13805
|
+
* `VECTOR_INDEX_DIM_CONFLICT`: the code rides in the MESSAGE, because an
|
|
13806
|
+
* Error's own properties do not survive the UDS/tRPC hop and its message does,
|
|
13807
|
+
* and both sides go through the helpers below — the encoder builds the
|
|
13808
|
+
* refusal, the live detail plane classifies on it to count refusals per
|
|
13809
|
+
* camera instead of logging one warning per track. The bracketed token
|
|
13810
|
+
* carries the code, the model, the tower and the node so a consumer never
|
|
13811
|
+
* parses prose.
|
|
13812
|
+
*
|
|
13813
|
+
* - `EMBEDDING_MODEL_FAILED`: the tower crashed / failed to load past the crash
|
|
13814
|
+
* budget — terminal until `resetFailedModels` or a model change.
|
|
13815
|
+
* - `EMBEDDING_REQUIREMENTS_UNAVAILABLE`: files or runtime not there right now
|
|
13816
|
+
* (a download or Python that failed, or the cooldown after one) — the next
|
|
13817
|
+
* request past the cooldown tries again.
|
|
13818
|
+
* - `EMBEDDING_REQUIREMENTS_FAILED`: the requirements can never be met (unknown
|
|
13819
|
+
* id, 404/410, missing sibling) and the bounded attempts are spent —
|
|
13820
|
+
* terminal, same exits as a crashed tower.
|
|
13821
|
+
*/
|
|
13822
|
+
var EMBEDDING_MODEL_FAILED = "embedding-model-failed";
|
|
13823
|
+
var EMBEDDING_REQUIREMENTS_UNAVAILABLE = "embedding-requirements-unavailable";
|
|
13824
|
+
var EMBEDDING_REQUIREMENTS_FAILED = "embedding-requirements-failed";
|
|
13825
|
+
var EmbeddingRefusalCodeSchema = z.enum([
|
|
13826
|
+
EMBEDDING_MODEL_FAILED,
|
|
13827
|
+
EMBEDDING_REQUIREMENTS_UNAVAILABLE,
|
|
13828
|
+
EMBEDDING_REQUIREMENTS_FAILED
|
|
13829
|
+
]);
|
|
13830
|
+
function embeddingRefusalToken(code, on) {
|
|
13831
|
+
return `[${code} model=${on.modelId} tower=${on.tower} node=${on.nodeId}]`;
|
|
13832
|
+
}
|
|
13833
|
+
/** The encoder's refusal for a crashed tower, carrying {@link EMBEDDING_MODEL_FAILED}. */
|
|
13834
|
+
function embeddingModelFailedError(row) {
|
|
13835
|
+
return /* @__PURE__ */ new Error(`${embeddingRefusalToken(EMBEDDING_MODEL_FAILED, row)} ${row.modelId} (${row.tower} tower) crashed ${String(row.crashes)} times in ${String(Math.round(row.windowMs / 1e3))}s on ${row.nodeId} — ${row.lastReason}. Cleared by embeddingEncoder.resetFailedModels({ modelId: "${row.modelId}", nodeId: "${row.nodeId}" }) or a model change.`);
|
|
13836
|
+
}
|
|
13837
|
+
/** The requirements refusal for THIS request, carrying {@link EMBEDDING_REQUIREMENTS_UNAVAILABLE}. */
|
|
13838
|
+
function embeddingRequirementsUnavailableError(on, reason) {
|
|
13839
|
+
return /* @__PURE__ */ new Error(`${embeddingRefusalToken(EMBEDDING_REQUIREMENTS_UNAVAILABLE, on)} ${on.modelId} (${on.tower} tower) on ${on.nodeId}: ${reason}`);
|
|
13840
|
+
}
|
|
13841
|
+
/** The terminal requirements refusal, carrying {@link EMBEDDING_REQUIREMENTS_FAILED}. */
|
|
13842
|
+
function embeddingRequirementsFailedError(row) {
|
|
13843
|
+
return /* @__PURE__ */ new Error(`${embeddingRefusalToken(EMBEDDING_REQUIREMENTS_FAILED, row)} ${row.modelId} (${row.tower} tower) on ${row.nodeId}: requirements can never be met — ${String(row.attempts)} attempts, last: ${row.lastReason}. Cleared by embeddingEncoder.resetFailedModels({ modelId: "${row.modelId}", nodeId: "${row.nodeId}" }) or a model change.`);
|
|
13844
|
+
}
|
|
13845
|
+
var EMBEDDING_REFUSAL_TOKEN = new RegExp(`\\[(${EMBEDDING_MODEL_FAILED}|${EMBEDDING_REQUIREMENTS_UNAVAILABLE}|${EMBEDDING_REQUIREMENTS_FAILED}) model=([^\\s\\]]+) tower=(image|text) node=([^\\s\\]]+)\\]`);
|
|
13846
|
+
/** The refusal `err` (possibly re-wrapped by a transport) carries, or `null` for any other error. */
|
|
13847
|
+
function embeddingRefusalOf(err) {
|
|
13848
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
13849
|
+
const match = EMBEDDING_REFUSAL_TOKEN.exec(message);
|
|
13850
|
+
if (match === null) return null;
|
|
13851
|
+
const code = EmbeddingRefusalCodeSchema.safeParse(match[1]);
|
|
13852
|
+
const tower = EmbeddingTowerSchema.safeParse(match[3]);
|
|
13853
|
+
if (!code.success || !tower.success || match[2] === void 0 || match[4] === void 0) return null;
|
|
13854
|
+
return {
|
|
13855
|
+
code: code.data,
|
|
13856
|
+
modelId: match[2],
|
|
13857
|
+
tower: tower.data,
|
|
13858
|
+
nodeId: match[4]
|
|
13859
|
+
};
|
|
13860
|
+
}
|
|
13861
|
+
/** True when `err` is the crashed-tower refusal. */
|
|
13862
|
+
function isEmbeddingModelFailed(err) {
|
|
13863
|
+
return embeddingModelFailedOf(err) !== null;
|
|
13864
|
+
}
|
|
13865
|
+
/** The model, tower and node a crashed-tower refusal names, or `null` for any other error. */
|
|
13866
|
+
function embeddingModelFailedOf(err) {
|
|
13867
|
+
const refusal = embeddingRefusalOf(err);
|
|
13868
|
+
if (refusal === null || refusal.code !== "embedding-model-failed") return null;
|
|
13869
|
+
const { modelId, tower, nodeId } = refusal;
|
|
13870
|
+
return {
|
|
13871
|
+
modelId,
|
|
13872
|
+
tower,
|
|
13873
|
+
nodeId
|
|
13874
|
+
};
|
|
13875
|
+
}
|
|
13876
|
+
/**
|
|
13877
|
+
* ONE provider per node (`placement: any-node`), addressed like every global
|
|
13878
|
+
* collection: the codegen injects a `{ nodeId?, addonId? }` selector on the
|
|
13879
|
+
* void methods and lifts a top-level `nodeId` off the object ones. A call
|
|
13880
|
+
* that names no node is answered by the HUB's provider — never by a merge
|
|
13881
|
+
* across nodes, because no global collection fans out across nodes (only the
|
|
13882
|
+
* providers of one node are `concatCollection`-fanned). So a fleet view of
|
|
13883
|
+
* `failedModels` is one `getInfo({ nodeId })` per node, and every answer
|
|
13884
|
+
* names the node it came from (D649 round 4); a node that cannot be asked is
|
|
13885
|
+
* UNKNOWN to the reader, never "no failures" (D315).
|
|
13886
|
+
*/
|
|
13623
13887
|
var embeddingEncoderCapability = {
|
|
13624
13888
|
name: "embedding-encoder",
|
|
13625
13889
|
scope: "system",
|
|
@@ -13638,8 +13902,30 @@ var embeddingEncoderCapability = {
|
|
|
13638
13902
|
width: z.number(),
|
|
13639
13903
|
height: z.number()
|
|
13640
13904
|
}), EmbeddingResultSchema, { auth: "admin" }),
|
|
13641
|
-
|
|
13642
|
-
|
|
13905
|
+
/**
|
|
13906
|
+
* `modelId` (a CLIP IMAGE model id, whose catalog `clip.textModelId` names
|
|
13907
|
+
* the text tower) encodes in that model's space; absent, the cluster row's
|
|
13908
|
+
* `clip-embedding` model — the space every writer is in (D649).
|
|
13909
|
+
*/
|
|
13910
|
+
encodeText: method(z.object({
|
|
13911
|
+
text: z.string(),
|
|
13912
|
+
modelId: z.string().min(1).optional()
|
|
13913
|
+
}), EmbeddingResultSchema, { auth: "admin" }),
|
|
13914
|
+
/** Answers for ONE node — the `nodeId` selector's, else the hub's. */
|
|
13915
|
+
getInfo: method(z.void(), EmbeddingInfoSchema, { auth: "admin" }),
|
|
13916
|
+
/**
|
|
13917
|
+
* The operator's explicit clear of the `failed` state (one model, or all)
|
|
13918
|
+
* on ONE node — pass `nodeId` for an agent; the result names the node it
|
|
13919
|
+
* cleared. The only way out besides a model change: a crashing tower is
|
|
13920
|
+
* not retried on a timer.
|
|
13921
|
+
*/
|
|
13922
|
+
resetFailedModels: method(z.object({ modelId: z.string().min(1).optional() }), z.object({
|
|
13923
|
+
cleared: z.array(z.string()),
|
|
13924
|
+
nodeId: z.string()
|
|
13925
|
+
}), {
|
|
13926
|
+
kind: "mutation",
|
|
13927
|
+
auth: "admin"
|
|
13928
|
+
})
|
|
13643
13929
|
}
|
|
13644
13930
|
};
|
|
13645
13931
|
//#endregion
|
|
@@ -18029,6 +18315,24 @@ var NcMediaFrameSchema = z.enum([
|
|
|
18029
18315
|
* sensor linked to one camera ships that camera's plain snapshot either way.
|
|
18030
18316
|
*/
|
|
18031
18317
|
var NcLinkedCameraModeSchema = z.enum(["mosaic", "each"]);
|
|
18318
|
+
/**
|
|
18319
|
+
* The clip window a rule gets when it stores no `clipPreRollSec` /
|
|
18320
|
+
* `clipPostRollSec` (D654): 4 s before the moment, 6 s after.
|
|
18321
|
+
*
|
|
18322
|
+
* THE one owner. The Notification Center resolves an absent roll to these at
|
|
18323
|
+
* dispatch and sizes the broker's clip ring from them (`clip-retention-ask`).
|
|
18324
|
+
* The admin editor does not author the roll; the viewer editor still keeps its
|
|
18325
|
+
* own 3 / 7 until it imports these (viewer follow-up). A second copy is how the
|
|
18326
|
+
* viewer came to display 3 / 7 — copied from a stale comment on the schema
|
|
18327
|
+
* below — while the hub cut 4 / 6, and to prune a typed 3 back to "absent",
|
|
18328
|
+
* which the hub then read as 4.
|
|
18329
|
+
*
|
|
18330
|
+
* A product decision of the notification, not the broker's history window
|
|
18331
|
+
* (D381/D382): the clip is cut from the broker's per-camera clip ring, which
|
|
18332
|
+
* the rules size, not from a pre-roll dial.
|
|
18333
|
+
*/
|
|
18334
|
+
var NC_CLIP_PRE_ROLL_DEFAULT_SEC = 4;
|
|
18335
|
+
var NC_CLIP_POST_ROLL_DEFAULT_SEC = 6;
|
|
18032
18336
|
var NcMediaPolicySchema = z.object({
|
|
18033
18337
|
attach: z.enum([
|
|
18034
18338
|
"best",
|
|
@@ -18056,7 +18360,12 @@ var NcMediaPolicySchema = z.object({
|
|
|
18056
18360
|
* the degrade engine, which drops the video and keeps the still.
|
|
18057
18361
|
*/
|
|
18058
18362
|
clip: z.boolean().optional(),
|
|
18059
|
-
/**
|
|
18363
|
+
/**
|
|
18364
|
+
* Seconds of footage BEFORE / AFTER the event instant. Absent =
|
|
18365
|
+
* {@link NC_CLIP_PRE_ROLL_DEFAULT_SEC} / {@link NC_CLIP_POST_ROLL_DEFAULT_SEC}
|
|
18366
|
+
* (4 / 6), resolved by the Notification Center at dispatch — deliberately not
|
|
18367
|
+
* a Zod default, so a rule that never chose keeps following the hub's.
|
|
18368
|
+
*/
|
|
18060
18369
|
clipPreRollSec: z.number().int().min(0).max(30).optional(),
|
|
18061
18370
|
clipPostRollSec: z.number().int().min(0).max(30).optional(),
|
|
18062
18371
|
/**
|
|
@@ -20210,6 +20519,275 @@ var oauthIntegrationCapability = {
|
|
|
20210
20519
|
getDescriptor: method(z.void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
|
|
20211
20520
|
};
|
|
20212
20521
|
//#endregion
|
|
20522
|
+
//#region src/pipeline/cluster-model-scope.ts
|
|
20523
|
+
/**
|
|
20524
|
+
* A model choice has a SCOPE, and a scope change has a workflow.
|
|
20525
|
+
*
|
|
20526
|
+
* ## The two scopes
|
|
20527
|
+
*
|
|
20528
|
+
* Almost every pipeline step's model is a **node** question: which build runs
|
|
20529
|
+
* fastest on THIS accelerator. Two nodes may legitimately answer differently —
|
|
20530
|
+
* a Coral runs the tflite SSD, a Mac runs the coreml YOLO — because the answers
|
|
20531
|
+
* are compared against nothing. They produce boxes, and a box is a box.
|
|
20532
|
+
*
|
|
20533
|
+
* Two steps are not like that. `face-embedding` and `clip-embedding` produce
|
|
20534
|
+
* **vectors that land in ONE shared index** (`identity_samples`,
|
|
20535
|
+
* `vec_object_clip`) and are ranked against each other by cosine similarity.
|
|
20536
|
+
* Cosine similarity between two encoders is not a weak signal, it is a
|
|
20537
|
+
* meaningless number — and nothing inside a vector can tell you it happened.
|
|
20538
|
+
* So for those two steps the model is a **cluster** question with exactly one
|
|
20539
|
+
* answer, stored in exactly one row.
|
|
20540
|
+
*
|
|
20541
|
+
* That is the same argument [D52](../../../../docs/decisions/adr-0052.md) makes
|
|
20542
|
+
* for the crop convention (`detail-crop.ts`), one level up: the crop decides
|
|
20543
|
+
* WHAT pixels the encoder sees, this decides WHICH encoder sees them. Both are
|
|
20544
|
+
* cluster-wide for the same reason and neither may become per-node.
|
|
20545
|
+
*
|
|
20546
|
+
* ## Why the registry lives here and not in the step catalog
|
|
20547
|
+
*
|
|
20548
|
+
* The scope itself is declared on the step, in
|
|
20549
|
+
* `detection-pipeline/registry/step-definitions.ts` (`StepDefinition.modelScope`)
|
|
20550
|
+
* — that is where a new step declares what kind of choice its model is. But the
|
|
20551
|
+
* catalog lives inside `addon-pipeline`, and three packages that must NOT
|
|
20552
|
+
* import an addon need to know the set: the orchestrator (which renders and
|
|
20553
|
+
* stores the row), post-analysis (which pins the row for a re-embed pass) and
|
|
20554
|
+
* admin-ui (which mirrors it). So the set is mirrored here, and
|
|
20555
|
+
* `scripts/check-cluster-model-scope.ts` fails the build when the two disagree.
|
|
20556
|
+
* A hand-copied key that stops matching is exactly how a setting silently stops
|
|
20557
|
+
* arriving while both sides still look correct.
|
|
20558
|
+
*
|
|
20559
|
+
* ## The defaults ARE today's behaviour
|
|
20560
|
+
*
|
|
20561
|
+
* {@link DEFAULT_CLUSTER_STEP_MODELS} reproduces the catalog `defaultModelId`
|
|
20562
|
+
* of both steps. Declaring the scope therefore changes nothing on the day it
|
|
20563
|
+
* ships: the cluster row starts out saying what every node was already doing.
|
|
20564
|
+
* Changing it is legitimate — that is what the knob is for — but it invalidates
|
|
20565
|
+
* the stored vectors of that surface, and must be followed by a re-embed pass
|
|
20566
|
+
* (`face-reembed-pass.ts`, `embedding-rebuild.ts`).
|
|
20567
|
+
*/
|
|
20568
|
+
/**
|
|
20569
|
+
* Why the orchestrator cannot say which model the operator chose for a
|
|
20570
|
+
* cluster-scoped step (D651).
|
|
20571
|
+
*/
|
|
20572
|
+
var CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS = [
|
|
20573
|
+
"owner-not-ready",
|
|
20574
|
+
"store-read-failed",
|
|
20575
|
+
"three-way-read-unavailable",
|
|
20576
|
+
"invalid-stored",
|
|
20577
|
+
"not-cluster-scoped"
|
|
20578
|
+
];
|
|
20579
|
+
/**
|
|
20580
|
+
* The cluster-scoped steps. Mirrored from the catalog's `modelScope: 'cluster'`
|
|
20581
|
+
* declarations and guarded by `scripts/check-cluster-model-scope.ts`.
|
|
20582
|
+
*/
|
|
20583
|
+
var CLUSTER_MODEL_SCOPED_STEPS = [{
|
|
20584
|
+
stepId: "face-embedding",
|
|
20585
|
+
label: "Face recognition model",
|
|
20586
|
+
defaultModelId: "auraface-r100",
|
|
20587
|
+
indexName: "the enrolled face gallery",
|
|
20588
|
+
options: [
|
|
20589
|
+
{
|
|
20590
|
+
id: "auraface-r100",
|
|
20591
|
+
label: "AuraFace R100"
|
|
20592
|
+
},
|
|
20593
|
+
{
|
|
20594
|
+
id: "arcface-r100",
|
|
20595
|
+
label: "ArcFace (ResNet34)"
|
|
20596
|
+
},
|
|
20597
|
+
{
|
|
20598
|
+
id: "inception-resnet-v1",
|
|
20599
|
+
label: "Inception ResNet V1"
|
|
20600
|
+
}
|
|
20601
|
+
]
|
|
20602
|
+
}, {
|
|
20603
|
+
stepId: "clip-embedding",
|
|
20604
|
+
label: "Semantic search model",
|
|
20605
|
+
defaultModelId: "mobileclip-s1",
|
|
20606
|
+
indexName: "the object semantic-search index",
|
|
20607
|
+
options: [
|
|
20608
|
+
{
|
|
20609
|
+
id: "mobileclip-s1",
|
|
20610
|
+
label: "MobileCLIP S1"
|
|
20611
|
+
},
|
|
20612
|
+
{
|
|
20613
|
+
id: "mobileclip-s2",
|
|
20614
|
+
label: "MobileCLIP S2"
|
|
20615
|
+
},
|
|
20616
|
+
{
|
|
20617
|
+
id: "siglip2-b16-224",
|
|
20618
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
20619
|
+
}
|
|
20620
|
+
]
|
|
20621
|
+
}];
|
|
20622
|
+
/**
|
|
20623
|
+
* Store identity of the cluster row inside `pipeline-orchestrator`'s GLOBAL
|
|
20624
|
+
* (cluster-wide) settings — the same owner, and for the same reason, as the
|
|
20625
|
+
* detail-crop convention: hub-resident and neutral between the addons that
|
|
20626
|
+
* read it.
|
|
20627
|
+
*/
|
|
20628
|
+
var CLUSTER_MODEL_SECTION_ID = "cluster-step-models";
|
|
20629
|
+
/**
|
|
20630
|
+
* The settings key holding one step's cluster model choice.
|
|
20631
|
+
*
|
|
20632
|
+
* Step-qualified so the keys stay unique across the addon's whole schema, which
|
|
20633
|
+
* is what lets {@link pickClusterStepModels} walk every section instead of
|
|
20634
|
+
* trusting the section id.
|
|
20635
|
+
*/
|
|
20636
|
+
function clusterModelSettingKey(stepId) {
|
|
20637
|
+
return `clusterModel:${stepId}`;
|
|
20638
|
+
}
|
|
20639
|
+
/** True when this step's model is a cluster-wide choice rather than a per-node one. */
|
|
20640
|
+
function isClusterScopedStep(stepId) {
|
|
20641
|
+
return CLUSTER_MODEL_SCOPED_STEPS.some((s) => s.stepId === stepId);
|
|
20642
|
+
}
|
|
20643
|
+
/** The cluster row when nobody has configured one — today's catalog defaults. */
|
|
20644
|
+
var DEFAULT_CLUSTER_STEP_MODELS = Object.freeze(Object.fromEntries(CLUSTER_MODEL_SCOPED_STEPS.map((s) => [s.stepId, s.defaultModelId])));
|
|
20645
|
+
function interpretStoredClusterModel(raw) {
|
|
20646
|
+
if (raw === void 0 || raw === null || raw === "") return { kind: "absent" };
|
|
20647
|
+
if (typeof raw === "string") return {
|
|
20648
|
+
kind: "chosen",
|
|
20649
|
+
modelId: raw
|
|
20650
|
+
};
|
|
20651
|
+
return {
|
|
20652
|
+
kind: "invalid",
|
|
20653
|
+
value: raw
|
|
20654
|
+
};
|
|
20655
|
+
}
|
|
20656
|
+
/**
|
|
20657
|
+
* The cluster-scoped steps whose stored value is `invalid` under
|
|
20658
|
+
* {@link interpretStoredClusterModel} — for the runtime's log line, so the
|
|
20659
|
+
* default it runs on such a row is never run in silence.
|
|
20660
|
+
*/
|
|
20661
|
+
function invalidClusterStepModelEntries(config) {
|
|
20662
|
+
const out = [];
|
|
20663
|
+
for (const step of CLUSTER_MODEL_SCOPED_STEPS) {
|
|
20664
|
+
const read = interpretStoredClusterModel(config[clusterModelSettingKey(step.stepId)]);
|
|
20665
|
+
if (read.kind === "invalid") out.push({
|
|
20666
|
+
stepId: step.stepId,
|
|
20667
|
+
value: read.value
|
|
20668
|
+
});
|
|
20669
|
+
}
|
|
20670
|
+
return out;
|
|
20671
|
+
}
|
|
20672
|
+
/**
|
|
20673
|
+
* Narrow a FLAT settings record to the cluster row.
|
|
20674
|
+
*
|
|
20675
|
+
* Per-FIELD fallback, deliberately (same rule as `readDetailCropConvention`): a
|
|
20676
|
+
* junk face model must not also discard a valid clip model. An `absent` or
|
|
20677
|
+
* `invalid` value ({@link interpretStoredClusterModel}) resolves to the step's
|
|
20678
|
+
* catalog default — never to a blank id, because a blank id downstream becomes
|
|
20679
|
+
* "substitute the format default", which is precisely the substitution this
|
|
20680
|
+
* scope exists to forbid.
|
|
20681
|
+
*/
|
|
20682
|
+
function readClusterStepModels(config) {
|
|
20683
|
+
const out = {};
|
|
20684
|
+
for (const step of CLUSTER_MODEL_SCOPED_STEPS) {
|
|
20685
|
+
const read = interpretStoredClusterModel(config[clusterModelSettingKey(step.stepId)]);
|
|
20686
|
+
out[step.stepId] = read.kind === "chosen" ? read.modelId : step.defaultModelId;
|
|
20687
|
+
}
|
|
20688
|
+
return out;
|
|
20689
|
+
}
|
|
20690
|
+
function isHydratedField$2(entry) {
|
|
20691
|
+
return typeof entry === "object" && entry !== null && "key" in entry;
|
|
20692
|
+
}
|
|
20693
|
+
/**
|
|
20694
|
+
* Extract the cluster row from an `addon-settings.getGlobalSettings` payload.
|
|
20695
|
+
*
|
|
20696
|
+
* Walks EVERY section rather than looking inside {@link CLUSTER_MODEL_SECTION_ID}
|
|
20697
|
+
* alone: the keys are unique across the addon's schema, and a section rename
|
|
20698
|
+
* must not silently revert the whole cluster to the defaults. A `null` payload
|
|
20699
|
+
* (addon mid-boot) is the defaults.
|
|
20700
|
+
*/
|
|
20701
|
+
function pickClusterStepModels(view) {
|
|
20702
|
+
if (view === null) return DEFAULT_CLUSTER_STEP_MODELS;
|
|
20703
|
+
return readClusterStepModels(flattenHydratedView(view, clusterModelKeys()));
|
|
20704
|
+
}
|
|
20705
|
+
/**
|
|
20706
|
+
* The `invalid` stored cluster model values a hydrated view carries — what the
|
|
20707
|
+
* runtime logs when it runs a default on a row it could not read as a choice.
|
|
20708
|
+
* A `null` view (owner mid-boot) carries nothing to judge.
|
|
20709
|
+
*/
|
|
20710
|
+
function pickInvalidClusterStepModels(view) {
|
|
20711
|
+
if (view === null) return [];
|
|
20712
|
+
return invalidClusterStepModelEntries(flattenHydratedView(view, clusterModelKeys()));
|
|
20713
|
+
}
|
|
20714
|
+
function clusterModelKeys() {
|
|
20715
|
+
return new Set(CLUSTER_MODEL_SCOPED_STEPS.map((s) => clusterModelSettingKey(s.stepId)));
|
|
20716
|
+
}
|
|
20717
|
+
/** The `wanted` keys of a hydrated view as one flat record, every section walked. */
|
|
20718
|
+
function flattenHydratedView(view, wanted) {
|
|
20719
|
+
const flat = {};
|
|
20720
|
+
for (const section of view.sections) for (const entry of section.fields) {
|
|
20721
|
+
if (!isHydratedField$2(entry) || typeof entry.key !== "string") continue;
|
|
20722
|
+
if (wanted.has(entry.key)) flat[entry.key] = entry.value;
|
|
20723
|
+
}
|
|
20724
|
+
return flat;
|
|
20725
|
+
}
|
|
20726
|
+
/**
|
|
20727
|
+
* The cluster model for `stepId`, or `null` when the step is node-scoped.
|
|
20728
|
+
*
|
|
20729
|
+
* `null` is the signal to LEAVE THE CALLER'S RESOLUTION ALONE — it is not "no
|
|
20730
|
+
* model". Returning a default here for a node-scoped step would quietly
|
|
20731
|
+
* override every per-(node,device) selection in the fleet.
|
|
20732
|
+
*/
|
|
20733
|
+
function resolveClusterStepModelId(stepId, models) {
|
|
20734
|
+
const step = CLUSTER_MODEL_SCOPED_STEPS.find((s) => s.stepId === stepId);
|
|
20735
|
+
if (step === void 0) return null;
|
|
20736
|
+
const chosen = models[stepId];
|
|
20737
|
+
return chosen !== void 0 && chosen !== "" ? chosen : step.defaultModelId;
|
|
20738
|
+
}
|
|
20739
|
+
/** Must match `DEFAULT_LANDMARK_PRECISION_FLOOR_PX` in the runner. */
|
|
20740
|
+
var DEFAULT_MIN_LANDMARK_FACE_SIZE_PX = 24;
|
|
20741
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
20742
|
+
stepId: "face-embedding",
|
|
20743
|
+
key: "minLandmarkFaceSize",
|
|
20744
|
+
label: "Min face size for recognition (detection px)",
|
|
20745
|
+
description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
|
|
20746
|
+
type: "slider",
|
|
20747
|
+
min: 0,
|
|
20748
|
+
max: 64,
|
|
20749
|
+
step: 2,
|
|
20750
|
+
default: 24
|
|
20751
|
+
}];
|
|
20752
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
20753
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
20754
|
+
}
|
|
20755
|
+
function clusterStepSettingFieldsFor(stepId) {
|
|
20756
|
+
return CLUSTER_STEP_SETTING_FIELDS.filter((field) => field.stepId === stepId);
|
|
20757
|
+
}
|
|
20758
|
+
var ClusterSettingNumberSchema = z.number().finite();
|
|
20759
|
+
function readClusterStepSettings(config) {
|
|
20760
|
+
const out = {};
|
|
20761
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
20762
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
20763
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
20764
|
+
const existing = out[field.stepId] ?? {};
|
|
20765
|
+
out[field.stepId] = {
|
|
20766
|
+
...existing,
|
|
20767
|
+
[field.key]: value
|
|
20768
|
+
};
|
|
20769
|
+
}
|
|
20770
|
+
return out;
|
|
20771
|
+
}
|
|
20772
|
+
var DEFAULT_CLUSTER_STEP_SETTINGS = readClusterStepSettings({});
|
|
20773
|
+
function pickClusterStepSettings(view) {
|
|
20774
|
+
if (view === null) return DEFAULT_CLUSTER_STEP_SETTINGS;
|
|
20775
|
+
return readClusterStepSettings(flattenHydratedView(view, new Set(CLUSTER_STEP_SETTING_FIELDS.map((field) => clusterStepSettingKey(field.stepId, field.key)))));
|
|
20776
|
+
}
|
|
20777
|
+
/**
|
|
20778
|
+
* Cluster knobs win over leftover per-device values. The cluster row is the
|
|
20779
|
+
* authority; a device-local copy is a leftover of the old per-node editor.
|
|
20780
|
+
*/
|
|
20781
|
+
function overlayClusterStepSettings(stepId, deviceSettings, cluster) {
|
|
20782
|
+
const overlay = cluster[stepId];
|
|
20783
|
+
if (overlay === void 0 || Object.keys(overlay).length === 0) return deviceSettings === void 0 ? void 0 : { ...deviceSettings };
|
|
20784
|
+
if (deviceSettings === void 0) return { ...overlay };
|
|
20785
|
+
return {
|
|
20786
|
+
...deviceSettings,
|
|
20787
|
+
...overlay
|
|
20788
|
+
};
|
|
20789
|
+
}
|
|
20790
|
+
//#endregion
|
|
20213
20791
|
//#region src/capabilities/pipeline-analytics.cap.ts
|
|
20214
20792
|
/**
|
|
20215
20793
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
@@ -21062,7 +21640,8 @@ var MediaFileKindEnum = z.enum([
|
|
|
21062
21640
|
"thumbnailSmall",
|
|
21063
21641
|
"confirmationCrop",
|
|
21064
21642
|
"debugCrop",
|
|
21065
|
-
"sceneFrame"
|
|
21643
|
+
"sceneFrame",
|
|
21644
|
+
"lastSceneFrame"
|
|
21066
21645
|
]);
|
|
21067
21646
|
/**
|
|
21068
21647
|
* One media row's IDENTITY and shape, with no representation of its bytes.
|
|
@@ -21651,7 +22230,23 @@ var SearchObjectEventsInput = z.object({
|
|
|
21651
22230
|
until: z.number().optional(),
|
|
21652
22231
|
classFilter: z.string().optional(),
|
|
21653
22232
|
limit: z.number().default(50),
|
|
21654
|
-
|
|
22233
|
+
/**
|
|
22234
|
+
* An ABSOLUTE cosine floor. Optional since D649: a floor is a property of the
|
|
22235
|
+
* model (0.2 kept 96% of matched pairs on MobileCLIP S1 and 2.7% on SigLIP2),
|
|
22236
|
+
* so an absent one resolves to the searched model's own `searchMinScore`
|
|
22237
|
+
* scaled by `strictness`. A number sent here is honoured verbatim.
|
|
22238
|
+
*/
|
|
22239
|
+
minScore: z.number().min(0).max(1).optional(),
|
|
22240
|
+
/** Model-relative floor — see `resolveClipSearchMinScore`. Default `loose`. */
|
|
22241
|
+
strictness: ClipSearchStrictnessSchema.optional(),
|
|
22242
|
+
/**
|
|
22243
|
+
* Search THIS CLIP model's index instead of the cluster row's. Every index a
|
|
22244
|
+
* model ever wrote stays searchable until it is wiped (the MobileCLIP index
|
|
22245
|
+
* through a SigLIP2 cutover and its rollback window). An id with no CLIP
|
|
22246
|
+
* metadata is refused; an id other than the cluster row's is ADMIN-only
|
|
22247
|
+
* (`model-override-requires-admin`).
|
|
22248
|
+
*/
|
|
22249
|
+
modelId: z.string().min(1).optional()
|
|
21655
22250
|
});
|
|
21656
22251
|
var TrackCascadeCountsSchema = z.object({
|
|
21657
22252
|
/** Persisted track roots deleted (authoritative). */
|
|
@@ -21786,7 +22381,41 @@ var RebuildObjectEmbeddingsInput = z.object({
|
|
|
21786
22381
|
* comparable, so wiping and rebuilding is the only way to be sure every vector
|
|
21787
22382
|
* means the same thing.
|
|
21788
22383
|
*/
|
|
21789
|
-
var WipeObjectEmbeddingsResultSchema = z.object({
|
|
22384
|
+
var WipeObjectEmbeddingsResultSchema = z.object({
|
|
22385
|
+
deleted: z.number(),
|
|
22386
|
+
/**
|
|
22387
|
+
* CLIP indexes that could NOT be emptied (unreachable, or refused at their
|
|
22388
|
+
* dimension) — not a clean slate. Additive and optional (D649).
|
|
22389
|
+
*/
|
|
22390
|
+
failedIndexes: z.array(z.string()).optional()
|
|
22391
|
+
});
|
|
22392
|
+
/**
|
|
22393
|
+
* Why a rebuild did not start, BY NAME — ONE vocabulary for both gates in front
|
|
22394
|
+
* of a pass (D649 over D651). A bare `started: false` read the same for "the
|
|
22395
|
+
* stores are booting" and "the cluster row names a model with no CLIP
|
|
22396
|
+
* metadata", which need different fixes.
|
|
22397
|
+
* - `stores-unavailable` — the analytics stores or the API are not up yet.
|
|
22398
|
+
* - the owner's confirmation of the cluster model (D651, `ClusterPinConfirmer`):
|
|
22399
|
+
* a pass that rewrites an index needs two agreeing reads of the OWNER's
|
|
22400
|
+
* answer (`pipelineOrchestrator.getClusterModelChoice`) — a pass that cannot
|
|
22401
|
+
* name its model does not run (D54):
|
|
22402
|
+
* - the owner's own `unreadable` reasons (`owner-not-ready`,
|
|
22403
|
+
* `store-read-failed`, `three-way-read-unavailable`, `invalid-stored`,
|
|
22404
|
+
* `not-cluster-scoped`);
|
|
22405
|
+
* - `method-unavailable` — the orchestrator predates the method;
|
|
22406
|
+
* - `read-failed` — the call failed or answered something unparseable;
|
|
22407
|
+
* - `reads-disagree` — the two reads named different choices.
|
|
22408
|
+
* - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
|
|
22409
|
+
* index to fill and no dimension to check against (D649).
|
|
22410
|
+
*/
|
|
22411
|
+
var RebuildObjectEmbeddingsRefusalSchema = z.enum([
|
|
22412
|
+
"stores-unavailable",
|
|
22413
|
+
...CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS,
|
|
22414
|
+
"method-unavailable",
|
|
22415
|
+
"read-failed",
|
|
22416
|
+
"reads-disagree",
|
|
22417
|
+
"not-a-clip-model"
|
|
22418
|
+
]);
|
|
21790
22419
|
/**
|
|
21791
22420
|
* Acknowledgement that a rebuild STARTED.
|
|
21792
22421
|
*
|
|
@@ -21799,7 +22428,12 @@ var WipeObjectEmbeddingsResultSchema = z.object({ deleted: z.number() });
|
|
|
21799
22428
|
var RebuildObjectEmbeddingsResultSchema = z.object({
|
|
21800
22429
|
started: z.boolean(),
|
|
21801
22430
|
/** True when a pass was already running; the new request is ignored. */
|
|
21802
|
-
alreadyRunning: z.boolean()
|
|
22431
|
+
alreadyRunning: z.boolean(),
|
|
22432
|
+
/** Present when the pass refused to start — see `RebuildObjectEmbeddingsRefusalSchema`. */
|
|
22433
|
+
refusal: RebuildObjectEmbeddingsRefusalSchema.optional(),
|
|
22434
|
+
/** The CLIP model the pass pinned, and the index it fills (when it started). */
|
|
22435
|
+
modelId: z.string().optional(),
|
|
22436
|
+
index: z.string().optional()
|
|
21803
22437
|
});
|
|
21804
22438
|
var RebuildStatusSchema = z.object({
|
|
21805
22439
|
running: z.boolean(),
|
|
@@ -21833,7 +22467,11 @@ var RebuildStatusSchema = z.object({
|
|
|
21833
22467
|
startedAtMs: z.number().nullable(),
|
|
21834
22468
|
finishedAtMs: z.number().nullable(),
|
|
21835
22469
|
/** Present when the pass ended by throwing. */
|
|
21836
|
-
error: z.string().nullable()
|
|
22470
|
+
error: z.string().nullable(),
|
|
22471
|
+
/** The CLIP model the current / last pass pinned (D54), `null` before any. */
|
|
22472
|
+
modelId: z.string().nullable(),
|
|
22473
|
+
/** The index that pass fills — `ClipModelMeta.vectorIndex` of `modelId` (D649). */
|
|
22474
|
+
index: z.string().nullable()
|
|
21837
22475
|
});
|
|
21838
22476
|
/**
|
|
21839
22477
|
* Acknowledgement that a debug-media reclaim STARTED.
|
|
@@ -22811,7 +23449,7 @@ var pipelineAnalyticsCapability = {
|
|
|
22811
23449
|
* ObjectEvents by trackId. Returns up to `limit` events scored ≥
|
|
22812
23450
|
* `minScore`, sorted descending by score.
|
|
22813
23451
|
*/
|
|
22814
|
-
searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly()),
|
|
23452
|
+
searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly(), { caller: "required" }),
|
|
22815
23453
|
wipeObjectEmbeddings: method(z.object({}), WipeObjectEmbeddingsResultSchema, {
|
|
22816
23454
|
kind: "mutation",
|
|
22817
23455
|
auth: "admin"
|
|
@@ -23455,7 +24093,14 @@ var pipelineExecutorCapability = {
|
|
|
23455
24093
|
*/
|
|
23456
24094
|
inferCached: method(z.object({
|
|
23457
24095
|
stepId: z.string(),
|
|
23458
|
-
frameId: z.number().int()
|
|
24096
|
+
frameId: z.number().int(),
|
|
24097
|
+
/**
|
|
24098
|
+
* The model to time — REQUIRED (D658). Without it the pool answered the
|
|
24099
|
+
* step's ACTIVE variant (the first loaded after boot), so a benchmark
|
|
24100
|
+
* of model B silently timed model A. Callers pass the `rootModelId`
|
|
24101
|
+
* their warmup `runPipeline` reported: the model that actually ran.
|
|
24102
|
+
*/
|
|
24103
|
+
modelId: z.string().min(1)
|
|
23459
24104
|
}), z.record(z.string(), z.unknown()), { kind: "mutation" }),
|
|
23460
24105
|
/**
|
|
23461
24106
|
* Release a cached frame from the Python pool's memory.
|
|
@@ -24114,6 +24759,17 @@ var RunnerFrameSourceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.l
|
|
|
24114
24759
|
hubHostnameOverride: z.string().optional()
|
|
24115
24760
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
24116
24761
|
/**
|
|
24762
|
+
* What ONE step runs with on ONE roster device for THIS camera (D650): the
|
|
24763
|
+
* device's per-(node,device) base with the camera's override for that device
|
|
24764
|
+
* on top — the same `override ?? base` merge the orchestrator applies to the
|
|
24765
|
+
* elected device (`applyDeviceProvisioning`). Absent `modelId` ⇒ the executor
|
|
24766
|
+
* resolves the device format's default, exactly as on the elected device.
|
|
24767
|
+
*/
|
|
24768
|
+
var RunnerJumpStepProvisioningSchema = z.object({
|
|
24769
|
+
modelId: z.string().optional(),
|
|
24770
|
+
settings: z.record(z.string(), z.unknown()).optional()
|
|
24771
|
+
});
|
|
24772
|
+
/**
|
|
24117
24773
|
* One ENABLED inference device on the runner's node, as the step-tree
|
|
24118
24774
|
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
24119
24775
|
* roster on the attach payload whenever the camera is elected onto a specific
|
|
@@ -24125,7 +24781,16 @@ var RunnerFrameSourceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.l
|
|
|
24125
24781
|
var RunnerInferenceDeviceSchema = z.object({
|
|
24126
24782
|
deviceKey: z.string(),
|
|
24127
24783
|
weight: z.number().positive().default(1),
|
|
24128
|
-
maxSessions: z.number().int().positive().nullable().default(null)
|
|
24784
|
+
maxSessions: z.number().int().positive().nullable().default(null),
|
|
24785
|
+
/**
|
|
24786
|
+
* Per-step provisioning for this camera on THIS device (D650), keyed by step
|
|
24787
|
+
* id. A step the runner jumps here runs with these fields, never with the
|
|
24788
|
+
* elected device's: `modelId` / `settings` are REPLACED on the jumped subtree
|
|
24789
|
+
* (a step absent from the map runs with neither — the target format default).
|
|
24790
|
+
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
24791
|
+
* the elected device's provisioning, as before.
|
|
24792
|
+
*/
|
|
24793
|
+
steps: z.record(z.string(), RunnerJumpStepProvisioningSchema).optional()
|
|
24129
24794
|
});
|
|
24130
24795
|
/**
|
|
24131
24796
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -25437,6 +26102,28 @@ var NodeInferenceDeviceSchema = z.object({
|
|
|
25437
26102
|
*/
|
|
25438
26103
|
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
25439
26104
|
});
|
|
26105
|
+
/**
|
|
26106
|
+
* The operator's model choice for one cluster-scoped step, answered by the
|
|
26107
|
+
* addon that OWNS the `clusterModel:*` settings (D651). Three answers, never
|
|
26108
|
+
* folded: a written choice, a key nobody wrote (the cluster runs the default
|
|
26109
|
+
* BY ABSENCE), or no answer. A caller that rewrites an index acts only on the
|
|
26110
|
+
* first two, read twice and agreeing.
|
|
26111
|
+
*/
|
|
26112
|
+
var ClusterModelChoiceSchema = z.discriminatedUnion("kind", [
|
|
26113
|
+
z.object({
|
|
26114
|
+
kind: z.literal("stored"),
|
|
26115
|
+
modelId: z.string()
|
|
26116
|
+
}),
|
|
26117
|
+
z.object({
|
|
26118
|
+
kind: z.literal("absent"),
|
|
26119
|
+
defaultModelId: z.string()
|
|
26120
|
+
}),
|
|
26121
|
+
z.object({
|
|
26122
|
+
kind: z.literal("unreadable"),
|
|
26123
|
+
reason: z.enum(CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS),
|
|
26124
|
+
error: z.string().optional()
|
|
26125
|
+
})
|
|
26126
|
+
]);
|
|
25440
26127
|
var NodeInferenceDevicesSchema = z.object({
|
|
25441
26128
|
nodeId: z.string(),
|
|
25442
26129
|
/** False when the node's platform-probe was unreachable (no live device set). */
|
|
@@ -25533,9 +26220,19 @@ var pipelineOrchestratorCapability = {
|
|
|
25533
26220
|
* Trigger a full rebalance pass. Iterates over all assigned cameras,
|
|
25534
26221
|
* recomputes the optimal agent for each one based on current load +
|
|
25535
26222
|
* hardware affinity, and migrates cameras whose current agent is no
|
|
25536
|
-
* longer optimal. Pinned cameras are never migrated.
|
|
26223
|
+
* longer optimal. Pinned cameras are never migrated. `skipped` names the
|
|
26224
|
+
* cameras the pass wanted to move and could not, with why — a target node
|
|
26225
|
+
* that has not answered its catalog / device health yet, or a device that
|
|
26226
|
+
* cannot run the camera's root (D650).
|
|
25537
26227
|
*/
|
|
25538
|
-
rebalance: method(z.void(), z.object({
|
|
26228
|
+
rebalance: method(z.void(), z.object({
|
|
26229
|
+
migrated: z.number(),
|
|
26230
|
+
skipped: z.array(z.object({
|
|
26231
|
+
deviceId: z.number(),
|
|
26232
|
+
targetNodeId: z.string(),
|
|
26233
|
+
reason: z.string()
|
|
26234
|
+
})).default([])
|
|
26235
|
+
}), {
|
|
25539
26236
|
kind: "mutation",
|
|
25540
26237
|
auth: "admin"
|
|
25541
26238
|
}),
|
|
@@ -25545,6 +26242,13 @@ var pipelineOrchestratorCapability = {
|
|
|
25545
26242
|
getPipelineAssignment: method(z.object({ deviceId: z.number() }), PipelineAssignmentSchema.nullable()),
|
|
25546
26243
|
/** Get per-agent load summaries used by the load balancer + dashboards. */
|
|
25547
26244
|
getAgentLoad: method(z.void(), z.array(AgentLoadSummarySchema).readonly()),
|
|
26245
|
+
/**
|
|
26246
|
+
* The operator's STORED model choice for one cluster-scoped step (D651).
|
|
26247
|
+
* Read three-way from this addon's own store, only once its boot has
|
|
26248
|
+
* settled. Unlike `addonSettings.getGlobalSettings`, it never answers a
|
|
26249
|
+
* default as though someone chose it.
|
|
26250
|
+
*/
|
|
26251
|
+
getClusterModelChoice: method(z.object({ stepId: z.string() }), ClusterModelChoiceSchema),
|
|
25548
26252
|
/** Aggregate global metrics across the whole detection cluster. */
|
|
25549
26253
|
getGlobalMetrics: method(z.void(), GlobalMetricsSchema),
|
|
25550
26254
|
/**
|
|
@@ -28073,6 +28777,24 @@ var VectorScanResultSchema = z.object({
|
|
|
28073
28777
|
*/
|
|
28074
28778
|
nextCursor: z.number().int().nonnegative().nullable()
|
|
28075
28779
|
});
|
|
28780
|
+
/**
|
|
28781
|
+
* The ONE error code for "this index exists at another dimension; refusing to
|
|
28782
|
+
* redeclare it" (D649). It rides in the MESSAGE — an Error's own properties do
|
|
28783
|
+
* not survive the UDS/tRPC hop, its message does — and both sides go through
|
|
28784
|
+
* the helpers below, never a copied phrase: a consumer that must tell "this
|
|
28785
|
+
* index can never hold my vectors" from "the provider is unreachable" (a
|
|
28786
|
+
* delete counts the first as nothing-to-delete and the second as still
|
|
28787
|
+
* present) otherwise breaks silently the day the wording changes.
|
|
28788
|
+
*/
|
|
28789
|
+
var VECTOR_INDEX_DIM_CONFLICT = "vector-index-dim-conflict";
|
|
28790
|
+
/** The provider's refusal, carrying {@link VECTOR_INDEX_DIM_CONFLICT}. */
|
|
28791
|
+
function vectorIndexDimConflictError(index, declaredDim, requestedDim) {
|
|
28792
|
+
return /* @__PURE__ */ new Error(`[${VECTOR_INDEX_DIM_CONFLICT}] vector-store: index "${index}" is declared with dim ${String(declaredDim)}; refusing to redeclare as ${String(requestedDim)}`);
|
|
28793
|
+
}
|
|
28794
|
+
/** True when `err` (possibly re-wrapped by a transport) is that refusal. */
|
|
28795
|
+
function isVectorIndexDimConflict(err) {
|
|
28796
|
+
return (err instanceof Error ? err.message : String(err)).includes(`[${VECTOR_INDEX_DIM_CONFLICT}]`);
|
|
28797
|
+
}
|
|
28076
28798
|
var VectorStatsInputSchema = z.object({ index: z.string() });
|
|
28077
28799
|
var VectorStatsResultSchema = z.object({
|
|
28078
28800
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -29253,6 +29975,496 @@ var CLIP_PLAYBACK_OPTIONS = {
|
|
|
29253
29975
|
}
|
|
29254
29976
|
};
|
|
29255
29977
|
//#endregion
|
|
29978
|
+
//#region src/catalogs/sensor-active-state.ts
|
|
29979
|
+
/**
|
|
29980
|
+
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
29981
|
+
* valutatore puro del suo FRONTE.
|
|
29982
|
+
*
|
|
29983
|
+
* Viveva dentro il builtin virtual-doorbell
|
|
29984
|
+
* (`@camstack/system` — `builtins/doorbell/trigger-engine.ts`) e i suoi
|
|
29985
|
+
* predicati erano privati al modulo. Il recorder ne ha bisogno per il trigger
|
|
29986
|
+
* `RecordingTriggers.sensorDeviceIds`: copiarla avrebbe creato la SECONDA
|
|
29987
|
+
* tabella, che diverge alla prima cap aggiunta e il cui sintomo — "il sensore
|
|
29988
|
+
* fa suonare il campanello ma non registra" — è esattamente D62. Quindi si
|
|
29989
|
+
* SPOSTA qui e il doorbell la ri-esporta.
|
|
29990
|
+
*
|
|
29991
|
+
* ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
|
|
29992
|
+
* due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
|
|
29993
|
+
* regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
|
|
29994
|
+
* booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
|
|
29995
|
+
*/
|
|
29996
|
+
/**
|
|
29997
|
+
* Known binary / switch source caps → the boolean slice field whose
|
|
29998
|
+
* false→true rise counts as ACTIVE. Every entry is "fire on active".
|
|
29999
|
+
* Sensors whose "active" reading is not a plain boolean (presence's string
|
|
30000
|
+
* state, connectivity's connected flag) are deliberately excluded — a
|
|
30001
|
+
* reconnect is not a doorbell press, and it is not a recording either.
|
|
30002
|
+
*/
|
|
30003
|
+
var SOURCE_CAP_ACTIVE_FIELD = {
|
|
30004
|
+
contact: "entryOpen",
|
|
30005
|
+
binary: "on",
|
|
30006
|
+
switch: "on",
|
|
30007
|
+
motion: "detected",
|
|
30008
|
+
flood: "flooded",
|
|
30009
|
+
gas: "detected",
|
|
30010
|
+
smoke: "detected",
|
|
30011
|
+
"carbon-monoxide": "detected",
|
|
30012
|
+
vibration: "detected",
|
|
30013
|
+
tamper: "tampered"
|
|
30014
|
+
};
|
|
30015
|
+
/**
|
|
30016
|
+
* The same caps → the slice field carrying the ms-epoch timestamp of the
|
|
30017
|
+
* last transition. Every source cap MUST appear here (guarded by a spec):
|
|
30018
|
+
* without a transition timestamp the evaluator cannot tell a genuine rise
|
|
30019
|
+
* from a boot-time hydration when the FIRST slice it ever sees is already
|
|
30020
|
+
* active, and errs towards silence — swallowing the rise.
|
|
30021
|
+
*
|
|
30022
|
+
* These timestamps are UPSTREAM ones, not ingest ones: the Home Assistant
|
|
30023
|
+
* provider derives them from `state.last_changed`, so they survive our own
|
|
30024
|
+
* restarts and correctly read as "hours ago" for a state that has been
|
|
30025
|
+
* active for hours. `motion` names its rise timestamp `lastDetectedAt`.
|
|
30026
|
+
*/
|
|
30027
|
+
var SOURCE_CAP_CHANGED_AT_FIELD = {
|
|
30028
|
+
contact: "lastChangedAt",
|
|
30029
|
+
binary: "lastChangedAt",
|
|
30030
|
+
switch: "lastChangedAt",
|
|
30031
|
+
motion: "lastDetectedAt",
|
|
30032
|
+
flood: "lastChangedAt",
|
|
30033
|
+
gas: "lastChangedAt",
|
|
30034
|
+
smoke: "lastChangedAt",
|
|
30035
|
+
"carbon-monoxide": "lastChangedAt",
|
|
30036
|
+
vibration: "lastChangedAt",
|
|
30037
|
+
tamper: "lastChangedAt"
|
|
30038
|
+
};
|
|
30039
|
+
/** Cap names whose presence in a device's bindings qualify it as a source. */
|
|
30040
|
+
var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
|
|
30041
|
+
/**
|
|
30042
|
+
* Device `type` values (from `DeviceType`) that can host a binary/switch
|
|
30043
|
+
* source cap. Used by the camera's `device-multiselect` picker as the
|
|
30044
|
+
* CLIENT-SIDE filter, alongside `SOURCE_CAPS`.
|
|
30045
|
+
*
|
|
30046
|
+
* Why types and not caps alone: the shared picker filters
|
|
30047
|
+
* `deviceManager.listAll` rows client-side, and those rows carry only the
|
|
30048
|
+
* device's advertised `features` — NOT its registered cap list. On the live
|
|
30049
|
+
* cluster binary sensors and switches advertise EMPTY features (features
|
|
30050
|
+
* mirror only a handful of caps like `motion-trigger`), so a caps-only
|
|
30051
|
+
* filter matched against `features` would list nothing (the very bug this
|
|
30052
|
+
* replaced, which relied on the now-empty `getAllBindings`). Matching by
|
|
30053
|
+
* `type` is the reliable client-side signal; the union with `SOURCE_CAPS`
|
|
30054
|
+
* still captures any device that DOES advertise a source-cap feature.
|
|
30055
|
+
* `sensor` covers contact/motion/flood/gas/smoke/CO/vibration/tamper,
|
|
30056
|
+
* `switch` covers switches, `control` covers generic binary actuators.
|
|
30057
|
+
*/
|
|
30058
|
+
var SOURCE_DEVICE_TYPES = [
|
|
30059
|
+
"sensor",
|
|
30060
|
+
"switch",
|
|
30061
|
+
"control"
|
|
30062
|
+
];
|
|
30063
|
+
/** True when a cap is a recognised binary/switch source. */
|
|
30064
|
+
function isSourceCap(capName) {
|
|
30065
|
+
return Object.prototype.hasOwnProperty.call(SOURCE_CAP_ACTIVE_FIELD, capName);
|
|
30066
|
+
}
|
|
30067
|
+
/** Extract the "active" boolean a source cap's slice carries, or null when
|
|
30068
|
+
* the cap is unknown or the field is missing / non-boolean. */
|
|
30069
|
+
function sliceActiveValue(capName, slice) {
|
|
30070
|
+
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
30071
|
+
if (field === void 0) return null;
|
|
30072
|
+
const raw = slice[field];
|
|
30073
|
+
return typeof raw === "boolean" ? raw : null;
|
|
30074
|
+
}
|
|
30075
|
+
/** Ms-epoch transition timestamp a source cap's slice carries, or null when
|
|
30076
|
+
* it is absent, non-numeric or the zero "never observed" sentinel. */
|
|
30077
|
+
function sliceChangedAt(capName, slice) {
|
|
30078
|
+
const field = SOURCE_CAP_CHANGED_AT_FIELD[capName];
|
|
30079
|
+
if (field === void 0) return null;
|
|
30080
|
+
const raw = slice[field];
|
|
30081
|
+
if (typeof raw !== "number" || !Number.isFinite(raw) || raw <= 0) return null;
|
|
30082
|
+
return raw;
|
|
30083
|
+
}
|
|
30084
|
+
/**
|
|
30085
|
+
* How recent a source's own transition timestamp must be for a FIRST
|
|
30086
|
+
* sighting that is already active to count as a genuine rise rather than a
|
|
30087
|
+
* hydration of long-standing state.
|
|
30088
|
+
*/
|
|
30089
|
+
var DEFAULT_FIRST_SIGHTING_FRESHNESS_MS = 3e4;
|
|
30090
|
+
/**
|
|
30091
|
+
* IL fronte. Puro: nessun orologio proprio, nessuna memoria — il chiamante
|
|
30092
|
+
* porta `prior`, `nowMs` e il proprio `startedAtMs`.
|
|
30093
|
+
*
|
|
30094
|
+
* Il caso della PRIMA slice già attiva è trattato esplicitamente e vale come
|
|
30095
|
+
* fronte solo se il timestamp UPSTREAM della transizione è posteriore a
|
|
30096
|
+
* `startedAtMs` **e** entro `firstSightingFreshnessMs`. Entrambe le metà
|
|
30097
|
+
* servono: la sola freschezza scatterebbe su un'idratazione al boot di uno
|
|
30098
|
+
* stato flippato pochi secondi prima del riavvio, e il solo "dopo che abbiamo
|
|
30099
|
+
* iniziato" scatterebbe, su un processo di lunga vita, per una sorgente
|
|
30100
|
+
* adottata oggi il cui stato è cambiato ieri. Il caso ambiguo ERRA VERSO IL
|
|
30101
|
+
* SILENZIO e lo dichiara (`baseline-seeded-stale-active`).
|
|
30102
|
+
*/
|
|
30103
|
+
function evaluateSensorEdge(input) {
|
|
30104
|
+
const value = sliceActiveValue(input.capName, input.slice);
|
|
30105
|
+
if (value === null) return {
|
|
30106
|
+
edge: "none",
|
|
30107
|
+
value: null,
|
|
30108
|
+
reason: isSourceCap(input.capName) ? "non-boolean-value" : "unknown-cap"
|
|
30109
|
+
};
|
|
30110
|
+
if (input.prior === void 0) {
|
|
30111
|
+
if (!value) return {
|
|
30112
|
+
edge: "none",
|
|
30113
|
+
value,
|
|
30114
|
+
reason: "baseline-seeded-inactive"
|
|
30115
|
+
};
|
|
30116
|
+
const changedAt = sliceChangedAt(input.capName, input.slice);
|
|
30117
|
+
const floor = Math.max(input.startedAtMs, input.nowMs - input.firstSightingFreshnessMs);
|
|
30118
|
+
if (changedAt === null || changedAt < floor) return {
|
|
30119
|
+
edge: "none",
|
|
30120
|
+
value,
|
|
30121
|
+
reason: "baseline-seeded-stale-active"
|
|
30122
|
+
};
|
|
30123
|
+
return {
|
|
30124
|
+
edge: "rising",
|
|
30125
|
+
value: true
|
|
30126
|
+
};
|
|
30127
|
+
}
|
|
30128
|
+
if (input.prior === value) return {
|
|
30129
|
+
edge: "none",
|
|
30130
|
+
value,
|
|
30131
|
+
reason: "no-change"
|
|
30132
|
+
};
|
|
30133
|
+
if (!value) return {
|
|
30134
|
+
edge: "none",
|
|
30135
|
+
value,
|
|
30136
|
+
reason: "falling-edge"
|
|
30137
|
+
};
|
|
30138
|
+
return {
|
|
30139
|
+
edge: "rising",
|
|
30140
|
+
value: true
|
|
30141
|
+
};
|
|
30142
|
+
}
|
|
30143
|
+
//#endregion
|
|
30144
|
+
//#region src/capabilities/doorbell.cap.ts
|
|
30145
|
+
/**
|
|
30146
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
30147
|
+
* name (same pattern as `snapshot`):
|
|
30148
|
+
*
|
|
30149
|
+
* - **Native** providers: registered per-device by device-driver
|
|
30150
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
30151
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
30152
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
30153
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
30154
|
+
* ring; status tracks the last press and a pressCount since start
|
|
30155
|
+
* (diagnostic).
|
|
30156
|
+
*
|
|
30157
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
30158
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
30159
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
30160
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
30161
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
30162
|
+
* device + trigger in the per-device settings.
|
|
30163
|
+
*
|
|
30164
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
30165
|
+
* — subscribers listening at the camera level receive ring events
|
|
30166
|
+
* with `via[]` populated. No code on the parent needed.
|
|
30167
|
+
*/
|
|
30168
|
+
var DoorbellStatusSchema = z.object({
|
|
30169
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
30170
|
+
lastPressedAt: z.number().nullable(),
|
|
30171
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
30172
|
+
pressCountSinceStart: z.number()
|
|
30173
|
+
});
|
|
30174
|
+
var DoorbellPressEventSchema = z.object({
|
|
30175
|
+
deviceId: z.number(),
|
|
30176
|
+
timestamp: z.number()
|
|
30177
|
+
});
|
|
30178
|
+
/**
|
|
30179
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
30180
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
30181
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
30182
|
+
*/
|
|
30183
|
+
var DoorbellSourceSlotValueSchema = z.object({ deviceIds: z.array(z.number().int().positive()) });
|
|
30184
|
+
/**
|
|
30185
|
+
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
30186
|
+
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
30187
|
+
* `doorbellSources` store (D648). A source rings when one of its
|
|
30188
|
+
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
30189
|
+
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
30190
|
+
* reports it, it never writes it.
|
|
30191
|
+
*/
|
|
30192
|
+
var DOORBELL_SOURCE_SLOT = {
|
|
30193
|
+
id: "doorbell-source",
|
|
30194
|
+
label: "Doorbell trigger devices",
|
|
30195
|
+
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.",
|
|
30196
|
+
shape: "association",
|
|
30197
|
+
hostDeviceTypes: [DeviceType.Camera],
|
|
30198
|
+
sourceCaps: SOURCE_CAPS,
|
|
30199
|
+
cardinality: "many",
|
|
30200
|
+
value: DoorbellSourceSlotValueSchema
|
|
30201
|
+
};
|
|
30202
|
+
var doorbellCapability = {
|
|
30203
|
+
name: "doorbell",
|
|
30204
|
+
scope: "device",
|
|
30205
|
+
deviceNative: true,
|
|
30206
|
+
mode: "singleton",
|
|
30207
|
+
kind: "wrapper",
|
|
30208
|
+
defaultActive: false,
|
|
30209
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
30210
|
+
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
30211
|
+
methods: {},
|
|
30212
|
+
events: {
|
|
30213
|
+
/**
|
|
30214
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
30215
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
30216
|
+
* release/duration — it's a pulse.
|
|
30217
|
+
*/
|
|
30218
|
+
onPressed: { data: DoorbellPressEventSchema } },
|
|
30219
|
+
status: {
|
|
30220
|
+
schema: DoorbellStatusSchema,
|
|
30221
|
+
kind: "push"
|
|
30222
|
+
},
|
|
30223
|
+
/**
|
|
30224
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
30225
|
+
* Mirrored by the kernel and readable via
|
|
30226
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
30227
|
+
* without subscribing.
|
|
30228
|
+
*/
|
|
30229
|
+
runtimeState: DoorbellStatusSchema,
|
|
30230
|
+
/**
|
|
30231
|
+
* 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.
|
|
30232
|
+
*
|
|
30233
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30234
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30235
|
+
*/
|
|
30236
|
+
durability: "restored"
|
|
30237
|
+
};
|
|
30238
|
+
//#endregion
|
|
30239
|
+
//#region src/generated/extension-slots.ts
|
|
30240
|
+
/**
|
|
30241
|
+
* AUTO-GENERATED by scripts/generate-extension-slots.ts — DO NOT EDIT.
|
|
30242
|
+
*
|
|
30243
|
+
* Every extension slot declared by a capability (`extensionSlots` in its
|
|
30244
|
+
* `*.cap.ts`, D648), folded into one typed table. Imports ONLY the declaring
|
|
30245
|
+
* caps' descriptors and value schemas — never the caps barrel — so
|
|
30246
|
+
* `device-extension.cap.ts` can import this module without a cycle.
|
|
30247
|
+
*
|
|
30248
|
+
* Coverage: 2 slot(s).
|
|
30249
|
+
*/
|
|
30250
|
+
/** Every declared slot id, in table order. */
|
|
30251
|
+
var EXTENSION_SLOT_IDS = ["doorbell-source", "linked-devices"];
|
|
30252
|
+
var ExtensionSlotIdSchema = z.enum(EXTENSION_SLOT_IDS);
|
|
30253
|
+
var EXTENSION_SLOTS = {
|
|
30254
|
+
"doorbell-source": {
|
|
30255
|
+
descriptor: DOORBELL_SOURCE_SLOT,
|
|
30256
|
+
declaringCap: "doorbell",
|
|
30257
|
+
hostDeviceTypes: [DeviceType.Camera]
|
|
30258
|
+
},
|
|
30259
|
+
"linked-devices": {
|
|
30260
|
+
descriptor: LINKED_DEVICES_SLOT,
|
|
30261
|
+
declaringCap: "device-manager",
|
|
30262
|
+
hostDeviceTypes: [DeviceType.Camera]
|
|
30263
|
+
}
|
|
30264
|
+
};
|
|
30265
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
30266
|
+
var ExtensionSlotValueSchema = z.discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: z.literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: z.literal("linked-devices") })]);
|
|
30267
|
+
/** Every device type at least one slot is offered on — `device-extension`'s `deviceTypes`. */
|
|
30268
|
+
var EXTENSION_HOST_DEVICE_TYPES = [DeviceType.Camera];
|
|
30269
|
+
//#endregion
|
|
30270
|
+
//#region src/capabilities/device-extension.cap.ts
|
|
30271
|
+
/**
|
|
30272
|
+
* `device-extension` — ONE place to see and author what a device is extended
|
|
30273
|
+
* with by OTHER devices (D648).
|
|
30274
|
+
*
|
|
30275
|
+
* **A contract, not a store.** Every slot (`linked-devices`,
|
|
30276
|
+
* `doorbell-source`, later `consumables-graft`) is declared by the cap that
|
|
30277
|
+
* owns the function (`extensionSlots` in its `*.cap.ts`, D4) and SERVED by the
|
|
30278
|
+
* addon that already owns its store, over that store and its existing write
|
|
30279
|
+
* path. This cap persists nothing and has no config method (guarded by
|
|
30280
|
+
* `scripts/check-extension-slots.ts`): D62 applied to the whole feature, and
|
|
30281
|
+
* D3 — no shadow registry.
|
|
30282
|
+
*
|
|
30283
|
+
* **Shape.** A device-scoped wrapper COLLECTION, the D554 shape `videoclips`
|
|
30284
|
+
* uses: `resolveCapMount` gives it the `device-scoped` mount and
|
|
30285
|
+
* `requireDeviceCollection` dispatches it. Its providers are the slot owners
|
|
30286
|
+
* (device-manager, virtual-doorbell, …), and a device's sources are its
|
|
30287
|
+
* bindings (step 0 of `getBindings`, derived, persisted nowhere).
|
|
30288
|
+
*
|
|
30289
|
+
* - `listSources` — one row per provider, the D554 source-listing convention
|
|
30290
|
+
* that lets a scalar call be routed by the prefix of its `slotRef`.
|
|
30291
|
+
* - `listSlots` — fan-out, concatenated. A provider that throws becomes ONE
|
|
30292
|
+
* `unreachable` row naming it, never an absence (D554.4, D315): "no
|
|
30293
|
+
* extensions" is claimed only from an answer.
|
|
30294
|
+
* - `listCandidates` / `setSlot` — scalar, routed by `slotRef`
|
|
30295
|
+
* (`<source>:<slotId>`). An unclaimed ref is refused by name (D554.5).
|
|
30296
|
+
*
|
|
30297
|
+
* The slot's value travels as the generated discriminated union
|
|
30298
|
+
* (`ExtensionSlotValue`, keyed on `slot`), so a value under the wrong slot is
|
|
30299
|
+
* a schema error before it reaches any owner.
|
|
30300
|
+
*/
|
|
30301
|
+
/** Separator between the source and the slot id in a `slotRef`. It is the
|
|
30302
|
+
* D554 routing separator: the dispatcher matches `<source>:` prefixes. */
|
|
30303
|
+
var EXTENSION_SLOT_REF_SEPARATOR = ":";
|
|
30304
|
+
/** The contract method whose failure BECOMES a row, like `listSources`'s. */
|
|
30305
|
+
var EXTENSION_SLOT_LISTING_METHOD = "listSlots";
|
|
30306
|
+
var ExtensionSourceAvailabilitySchema = z.discriminatedUnion("state", [z.object({ state: z.literal("ok") }), z.object({
|
|
30307
|
+
state: z.literal("unreachable"),
|
|
30308
|
+
reason: z.string()
|
|
30309
|
+
})]);
|
|
30310
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
30311
|
+
var ExtensionSourceSchema = z.object({
|
|
30312
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
30313
|
+
source: z.string(),
|
|
30314
|
+
label: z.string(),
|
|
30315
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
30316
|
+
addonId: z.string().optional(),
|
|
30317
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
30318
|
+
});
|
|
30319
|
+
/**
|
|
30320
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
30321
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
30322
|
+
* (slice 2's cross-owner graft source); `unavailable` — it exists but is not a
|
|
30323
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
30324
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
30325
|
+
*/
|
|
30326
|
+
var ExtensionSourceHealthSchema = z.enum([
|
|
30327
|
+
"ok",
|
|
30328
|
+
"missing",
|
|
30329
|
+
"foreign",
|
|
30330
|
+
"unavailable"
|
|
30331
|
+
]);
|
|
30332
|
+
var ExtensionSlotSourceSchema = z.object({
|
|
30333
|
+
deviceId: z.number().int(),
|
|
30334
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
30335
|
+
name: z.string().nullable(),
|
|
30336
|
+
health: ExtensionSourceHealthSchema,
|
|
30337
|
+
detail: z.string().optional()
|
|
30338
|
+
});
|
|
30339
|
+
/**
|
|
30340
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
30341
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
30342
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
30343
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
30344
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
30345
|
+
*/
|
|
30346
|
+
var ExtensionSlotActivationSchema = z.object({
|
|
30347
|
+
state: z.enum([
|
|
30348
|
+
"active",
|
|
30349
|
+
"inactive",
|
|
30350
|
+
"unknown"
|
|
30351
|
+
]),
|
|
30352
|
+
authority: z.string(),
|
|
30353
|
+
detail: z.string().optional()
|
|
30354
|
+
});
|
|
30355
|
+
/** One slot of one device, as its owner reads it from its own store. */
|
|
30356
|
+
var ExtensionSlotStateSchema = z.object({
|
|
30357
|
+
state: z.literal("ok"),
|
|
30358
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
30359
|
+
slotRef: z.string(),
|
|
30360
|
+
slot: ExtensionSlotIdSchema,
|
|
30361
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
30362
|
+
authority: z.string(),
|
|
30363
|
+
/** graft: its switch. association: null — removing every source is "off". */
|
|
30364
|
+
enabled: z.boolean().nullable(),
|
|
30365
|
+
/** graft: the cap registered on the host. association: null. */
|
|
30366
|
+
projects: z.string().nullable(),
|
|
30367
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
30368
|
+
value: ExtensionSlotValueSchema,
|
|
30369
|
+
sources: z.array(ExtensionSlotSourceSchema),
|
|
30370
|
+
/**
|
|
30371
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
30372
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
30373
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
30374
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
30375
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
30376
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
30377
|
+
* older than D655.
|
|
30378
|
+
*/
|
|
30379
|
+
impliedSources: z.array(ExtensionSlotSourceSchema).optional()
|
|
30380
|
+
});
|
|
30381
|
+
/**
|
|
30382
|
+
* A provider that could not answer `listSlots` at all. It could not name its
|
|
30383
|
+
* own slots, so the row names the ADDON and carries the refusal verbatim.
|
|
30384
|
+
* Written by the dispatcher, never by a provider.
|
|
30385
|
+
*/
|
|
30386
|
+
var ExtensionSlotUnreachableSchema = z.object({
|
|
30387
|
+
state: z.literal("unreachable"),
|
|
30388
|
+
addonId: z.string(),
|
|
30389
|
+
reason: z.string()
|
|
30390
|
+
});
|
|
30391
|
+
var ExtensionSlotRowSchema = z.discriminatedUnion("state", [ExtensionSlotStateSchema, ExtensionSlotUnreachableSchema]);
|
|
30392
|
+
/** The row the dispatcher writes for a provider whose `listSlots` threw. */
|
|
30393
|
+
function unreachableExtensionSlotRow(addonId, reason) {
|
|
30394
|
+
return {
|
|
30395
|
+
state: "unreachable",
|
|
30396
|
+
addonId,
|
|
30397
|
+
reason
|
|
30398
|
+
};
|
|
30399
|
+
}
|
|
30400
|
+
/** One device the slot's editor may offer as a source. */
|
|
30401
|
+
var ExtensionCandidateSchema = z.object({
|
|
30402
|
+
deviceId: z.number().int(),
|
|
30403
|
+
name: z.string(),
|
|
30404
|
+
type: z.string(),
|
|
30405
|
+
location: z.string().nullable(),
|
|
30406
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
30407
|
+
parentName: z.string().nullable(),
|
|
30408
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
30409
|
+
suggested: z.boolean(),
|
|
30410
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
30411
|
+
reason: z.string().nullable()
|
|
30412
|
+
});
|
|
30413
|
+
var ExtensionCandidatesSchema = z.object({ candidates: z.array(ExtensionCandidateSchema) });
|
|
30414
|
+
/**
|
|
30415
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
30416
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
30417
|
+
* write changed what the host REGISTERS (a graft switched on or off, slice 2).
|
|
30418
|
+
*/
|
|
30419
|
+
var ExtensionSetResultSchema = z.object({
|
|
30420
|
+
applied: z.literal(true),
|
|
30421
|
+
reload: z.enum([
|
|
30422
|
+
"none",
|
|
30423
|
+
"host",
|
|
30424
|
+
"parent"
|
|
30425
|
+
])
|
|
30426
|
+
});
|
|
30427
|
+
var ExtensionSlotRefInputSchema = z.object({
|
|
30428
|
+
deviceId: z.number().int(),
|
|
30429
|
+
slotRef: z.string().min(1)
|
|
30430
|
+
});
|
|
30431
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
30432
|
+
var deviceExtensionCapability = {
|
|
30433
|
+
name: "device-extension",
|
|
30434
|
+
scope: "device",
|
|
30435
|
+
mode: "collection",
|
|
30436
|
+
kind: "wrapper",
|
|
30437
|
+
defaultActive: true,
|
|
30438
|
+
deviceTypes: EXTENSION_HOST_DEVICE_TYPES,
|
|
30439
|
+
deviceConfig: { ui: {
|
|
30440
|
+
kind: "widget",
|
|
30441
|
+
widgetId: "host/extensions-panel",
|
|
30442
|
+
tab: "general",
|
|
30443
|
+
label: "Extensions",
|
|
30444
|
+
order: 72
|
|
30445
|
+
} },
|
|
30446
|
+
methods: {
|
|
30447
|
+
/** One row per slot owner — the D554 source listing `slotRef` routes by. */
|
|
30448
|
+
listSources: method(z.object({ deviceId: z.number().int() }), z.array(ExtensionSourceSchema)),
|
|
30449
|
+
/**
|
|
30450
|
+
* Every slot this device is offered, read by each owner from its own
|
|
30451
|
+
* store. A provider that throws is ONE `unreachable` row (D554.4).
|
|
30452
|
+
*/
|
|
30453
|
+
listSlots: method(z.object({ deviceId: z.number().int() }), z.array(ExtensionSlotRowSchema)),
|
|
30454
|
+
/** The devices the slot's editor may offer, suggestions pre-marked (D356). */
|
|
30455
|
+
listCandidates: method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema),
|
|
30456
|
+
/**
|
|
30457
|
+
* Write one slot through its owner's EXISTING write path. The owner
|
|
30458
|
+
* validates (a container is never a linked device, a camera is never its
|
|
30459
|
+
* own source) and refuses by name before persisting.
|
|
30460
|
+
*/
|
|
30461
|
+
setSlot: method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
30462
|
+
kind: "mutation",
|
|
30463
|
+
auth: "admin"
|
|
30464
|
+
})
|
|
30465
|
+
}
|
|
30466
|
+
};
|
|
30467
|
+
//#endregion
|
|
29256
30468
|
//#region src/capabilities/webrtc-session.cap.ts
|
|
29257
30469
|
/**
|
|
29258
30470
|
* Optional client-side hints sent at session creation to help the provider
|
|
@@ -32288,77 +33500,6 @@ onStatusChanged: { data: z.object({
|
|
|
32288
33500
|
volatileStateFields: ["lastChangedAt"]
|
|
32289
33501
|
};
|
|
32290
33502
|
//#endregion
|
|
32291
|
-
//#region src/capabilities/doorbell.cap.ts
|
|
32292
|
-
/**
|
|
32293
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
32294
|
-
* name (same pattern as `snapshot`):
|
|
32295
|
-
*
|
|
32296
|
-
* - **Native** providers: registered per-device by device-driver
|
|
32297
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
32298
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
32299
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
32300
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
32301
|
-
* ring; status tracks the last press and a pressCount since start
|
|
32302
|
-
* (diagnostic).
|
|
32303
|
-
*
|
|
32304
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
32305
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
32306
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
32307
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
32308
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
32309
|
-
* device + trigger in the per-device settings.
|
|
32310
|
-
*
|
|
32311
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
32312
|
-
* — subscribers listening at the camera level receive ring events
|
|
32313
|
-
* with `via[]` populated. No code on the parent needed.
|
|
32314
|
-
*/
|
|
32315
|
-
var DoorbellStatusSchema = z.object({
|
|
32316
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
32317
|
-
lastPressedAt: z.number().nullable(),
|
|
32318
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
32319
|
-
pressCountSinceStart: z.number()
|
|
32320
|
-
});
|
|
32321
|
-
var DoorbellPressEventSchema = z.object({
|
|
32322
|
-
deviceId: z.number(),
|
|
32323
|
-
timestamp: z.number()
|
|
32324
|
-
});
|
|
32325
|
-
var doorbellCapability = {
|
|
32326
|
-
name: "doorbell",
|
|
32327
|
-
scope: "device",
|
|
32328
|
-
deviceNative: true,
|
|
32329
|
-
mode: "singleton",
|
|
32330
|
-
kind: "wrapper",
|
|
32331
|
-
defaultActive: false,
|
|
32332
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
32333
|
-
exposesDeviceSettings: true,
|
|
32334
|
-
methods: {},
|
|
32335
|
-
events: {
|
|
32336
|
-
/**
|
|
32337
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
32338
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
32339
|
-
* release/duration — it's a pulse.
|
|
32340
|
-
*/
|
|
32341
|
-
onPressed: { data: DoorbellPressEventSchema } },
|
|
32342
|
-
status: {
|
|
32343
|
-
schema: DoorbellStatusSchema,
|
|
32344
|
-
kind: "push"
|
|
32345
|
-
},
|
|
32346
|
-
/**
|
|
32347
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
32348
|
-
* Mirrored by the kernel and readable via
|
|
32349
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
32350
|
-
* without subscribing.
|
|
32351
|
-
*/
|
|
32352
|
-
runtimeState: DoorbellStatusSchema,
|
|
32353
|
-
/**
|
|
32354
|
-
* 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.
|
|
32355
|
-
*
|
|
32356
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
32357
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
32358
|
-
*/
|
|
32359
|
-
durability: "restored"
|
|
32360
|
-
};
|
|
32361
|
-
//#endregion
|
|
32362
33503
|
//#region src/capabilities/enum-sensor.cap.ts
|
|
32363
33504
|
/**
|
|
32364
33505
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -43395,6 +44536,91 @@ var PIPELINE_OWNER_CAPABILITY_NAMES = [
|
|
|
43395
44536
|
"pipeline-runner"
|
|
43396
44537
|
];
|
|
43397
44538
|
//#endregion
|
|
44539
|
+
//#region src/device-extension/slot-provider.ts
|
|
44540
|
+
function isValueOf(slot, value) {
|
|
44541
|
+
return value.slot === slot;
|
|
44542
|
+
}
|
|
44543
|
+
/** Bind slot `slot` to its owner's functions. See the module docblock. */
|
|
44544
|
+
function defineExtensionSlotProvider(slot, impl) {
|
|
44545
|
+
return {
|
|
44546
|
+
slot,
|
|
44547
|
+
list: async (deviceId) => {
|
|
44548
|
+
const listing = await impl.list(deviceId);
|
|
44549
|
+
if (listing === null) return null;
|
|
44550
|
+
const value = listing.value;
|
|
44551
|
+
return {
|
|
44552
|
+
...listing,
|
|
44553
|
+
value
|
|
44554
|
+
};
|
|
44555
|
+
},
|
|
44556
|
+
set: async (deviceId, value) => {
|
|
44557
|
+
if (!isValueOf(slot, value)) throw new Error(`device-extension: a "${value.slot}" value was sent to slot "${slot}" — refused`);
|
|
44558
|
+
return await impl.set(deviceId, value);
|
|
44559
|
+
},
|
|
44560
|
+
candidates: (deviceId) => impl.candidates(deviceId)
|
|
44561
|
+
};
|
|
44562
|
+
}
|
|
44563
|
+
/** `<source>:<slotId>`. */
|
|
44564
|
+
function extensionSlotRef(source, slot) {
|
|
44565
|
+
return `${source}:${slot}`;
|
|
44566
|
+
}
|
|
44567
|
+
/** Build the `device-extension` provider one owner registers. */
|
|
44568
|
+
function createDeviceExtensionProvider(options) {
|
|
44569
|
+
const { source, label, slots, hostTypeOf, logger } = options;
|
|
44570
|
+
const offered = (slot, hostType) => hostType !== null && EXTENSION_SLOTS[slot].hostDeviceTypes.some((t) => t === hostType);
|
|
44571
|
+
const resolve = async (deviceId, slotRef) => {
|
|
44572
|
+
const prefix = `${source}:`;
|
|
44573
|
+
const slot = slotRef.startsWith(prefix) ? slots.find((s) => s.slot === slotRef.slice(prefix.length)) : void 0;
|
|
44574
|
+
if (slot === void 0) throw new Error(`device-extension: "${slotRef}" is not a slot of "${source}" — it serves ${slots.map((s) => extensionSlotRef(source, s.slot)).join(", ") || "(none)"}`);
|
|
44575
|
+
const hostType = await hostTypeOf(deviceId);
|
|
44576
|
+
if (!offered(slot.slot, hostType)) throw new Error(`device-extension: slot "${slot.slot}" is not offered on device ${deviceId} (type ${hostType ?? "unknown"}; offered on ${EXTENSION_SLOTS[slot.slot].hostDeviceTypes.join(", ")})`);
|
|
44577
|
+
return slot;
|
|
44578
|
+
};
|
|
44579
|
+
return {
|
|
44580
|
+
listSources: async () => [{
|
|
44581
|
+
source,
|
|
44582
|
+
label,
|
|
44583
|
+
availability: { state: "ok" }
|
|
44584
|
+
}],
|
|
44585
|
+
listSlots: async (input) => {
|
|
44586
|
+
const hostType = await hostTypeOf(input.deviceId);
|
|
44587
|
+
const rows = [];
|
|
44588
|
+
for (const slot of slots) {
|
|
44589
|
+
if (!offered(slot.slot, hostType)) continue;
|
|
44590
|
+
const listing = await slot.list(input.deviceId);
|
|
44591
|
+
if (listing === null) continue;
|
|
44592
|
+
rows.push({
|
|
44593
|
+
state: "ok",
|
|
44594
|
+
slotRef: extensionSlotRef(source, slot.slot),
|
|
44595
|
+
slot: slot.slot,
|
|
44596
|
+
authority: listing.authority,
|
|
44597
|
+
enabled: listing.enabled,
|
|
44598
|
+
projects: EXTENSION_SLOTS[slot.slot].descriptor.projects ?? null,
|
|
44599
|
+
activation: listing.activation,
|
|
44600
|
+
value: listing.value,
|
|
44601
|
+
sources: [...listing.sources],
|
|
44602
|
+
...listing.impliedSources !== void 0 ? { impliedSources: [...listing.impliedSources] } : {}
|
|
44603
|
+
});
|
|
44604
|
+
}
|
|
44605
|
+
return rows;
|
|
44606
|
+
},
|
|
44607
|
+
listCandidates: async (input) => {
|
|
44608
|
+
return { candidates: [...await (await resolve(input.deviceId, input.slotRef)).candidates(input.deviceId)] };
|
|
44609
|
+
},
|
|
44610
|
+
setSlot: async (input) => {
|
|
44611
|
+
const result = await (await resolve(input.deviceId, input.slotRef)).set(input.deviceId, input.value);
|
|
44612
|
+
logger.info("device-extension: slot written", {
|
|
44613
|
+
tags: { deviceId: input.deviceId },
|
|
44614
|
+
meta: {
|
|
44615
|
+
slotRef: input.slotRef,
|
|
44616
|
+
reload: result.reload
|
|
44617
|
+
}
|
|
44618
|
+
});
|
|
44619
|
+
return result;
|
|
44620
|
+
}
|
|
44621
|
+
};
|
|
44622
|
+
}
|
|
44623
|
+
//#endregion
|
|
43398
44624
|
//#region src/catalogs/device-state-vocabulary.ts
|
|
43399
44625
|
/**
|
|
43400
44626
|
* Most specific first. Extending this list is how a new device kind becomes
|
|
@@ -43466,172 +44692,6 @@ function stateVocabularyFor(runtimeState, alarmStates = []) {
|
|
|
43466
44692
|
return [];
|
|
43467
44693
|
}
|
|
43468
44694
|
//#endregion
|
|
43469
|
-
//#region src/catalogs/sensor-active-state.ts
|
|
43470
|
-
/**
|
|
43471
|
-
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
43472
|
-
* valutatore puro del suo FRONTE.
|
|
43473
|
-
*
|
|
43474
|
-
* Viveva dentro il builtin virtual-doorbell
|
|
43475
|
-
* (`@camstack/system` — `builtins/doorbell/trigger-engine.ts`) e i suoi
|
|
43476
|
-
* predicati erano privati al modulo. Il recorder ne ha bisogno per il trigger
|
|
43477
|
-
* `RecordingTriggers.sensorDeviceIds`: copiarla avrebbe creato la SECONDA
|
|
43478
|
-
* tabella, che diverge alla prima cap aggiunta e il cui sintomo — "il sensore
|
|
43479
|
-
* fa suonare il campanello ma non registra" — è esattamente D62. Quindi si
|
|
43480
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
43481
|
-
*
|
|
43482
|
-
* ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
|
|
43483
|
-
* due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
|
|
43484
|
-
* regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
|
|
43485
|
-
* booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
|
|
43486
|
-
*/
|
|
43487
|
-
/**
|
|
43488
|
-
* Known binary / switch source caps → the boolean slice field whose
|
|
43489
|
-
* false→true rise counts as ACTIVE. Every entry is "fire on active".
|
|
43490
|
-
* Sensors whose "active" reading is not a plain boolean (presence's string
|
|
43491
|
-
* state, connectivity's connected flag) are deliberately excluded — a
|
|
43492
|
-
* reconnect is not a doorbell press, and it is not a recording either.
|
|
43493
|
-
*/
|
|
43494
|
-
var SOURCE_CAP_ACTIVE_FIELD = {
|
|
43495
|
-
contact: "entryOpen",
|
|
43496
|
-
binary: "on",
|
|
43497
|
-
switch: "on",
|
|
43498
|
-
motion: "detected",
|
|
43499
|
-
flood: "flooded",
|
|
43500
|
-
gas: "detected",
|
|
43501
|
-
smoke: "detected",
|
|
43502
|
-
"carbon-monoxide": "detected",
|
|
43503
|
-
vibration: "detected",
|
|
43504
|
-
tamper: "tampered"
|
|
43505
|
-
};
|
|
43506
|
-
/**
|
|
43507
|
-
* The same caps → the slice field carrying the ms-epoch timestamp of the
|
|
43508
|
-
* last transition. Every source cap MUST appear here (guarded by a spec):
|
|
43509
|
-
* without a transition timestamp the evaluator cannot tell a genuine rise
|
|
43510
|
-
* from a boot-time hydration when the FIRST slice it ever sees is already
|
|
43511
|
-
* active, and errs towards silence — swallowing the rise.
|
|
43512
|
-
*
|
|
43513
|
-
* These timestamps are UPSTREAM ones, not ingest ones: the Home Assistant
|
|
43514
|
-
* provider derives them from `state.last_changed`, so they survive our own
|
|
43515
|
-
* restarts and correctly read as "hours ago" for a state that has been
|
|
43516
|
-
* active for hours. `motion` names its rise timestamp `lastDetectedAt`.
|
|
43517
|
-
*/
|
|
43518
|
-
var SOURCE_CAP_CHANGED_AT_FIELD = {
|
|
43519
|
-
contact: "lastChangedAt",
|
|
43520
|
-
binary: "lastChangedAt",
|
|
43521
|
-
switch: "lastChangedAt",
|
|
43522
|
-
motion: "lastDetectedAt",
|
|
43523
|
-
flood: "lastChangedAt",
|
|
43524
|
-
gas: "lastChangedAt",
|
|
43525
|
-
smoke: "lastChangedAt",
|
|
43526
|
-
"carbon-monoxide": "lastChangedAt",
|
|
43527
|
-
vibration: "lastChangedAt",
|
|
43528
|
-
tamper: "lastChangedAt"
|
|
43529
|
-
};
|
|
43530
|
-
/** Cap names whose presence in a device's bindings qualify it as a source. */
|
|
43531
|
-
var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
|
|
43532
|
-
/**
|
|
43533
|
-
* Device `type` values (from `DeviceType`) that can host a binary/switch
|
|
43534
|
-
* source cap. Used by the camera's `device-multiselect` picker as the
|
|
43535
|
-
* CLIENT-SIDE filter, alongside `SOURCE_CAPS`.
|
|
43536
|
-
*
|
|
43537
|
-
* Why types and not caps alone: the shared picker filters
|
|
43538
|
-
* `deviceManager.listAll` rows client-side, and those rows carry only the
|
|
43539
|
-
* device's advertised `features` — NOT its registered cap list. On the live
|
|
43540
|
-
* cluster binary sensors and switches advertise EMPTY features (features
|
|
43541
|
-
* mirror only a handful of caps like `motion-trigger`), so a caps-only
|
|
43542
|
-
* filter matched against `features` would list nothing (the very bug this
|
|
43543
|
-
* replaced, which relied on the now-empty `getAllBindings`). Matching by
|
|
43544
|
-
* `type` is the reliable client-side signal; the union with `SOURCE_CAPS`
|
|
43545
|
-
* still captures any device that DOES advertise a source-cap feature.
|
|
43546
|
-
* `sensor` covers contact/motion/flood/gas/smoke/CO/vibration/tamper,
|
|
43547
|
-
* `switch` covers switches, `control` covers generic binary actuators.
|
|
43548
|
-
*/
|
|
43549
|
-
var SOURCE_DEVICE_TYPES = [
|
|
43550
|
-
"sensor",
|
|
43551
|
-
"switch",
|
|
43552
|
-
"control"
|
|
43553
|
-
];
|
|
43554
|
-
/** True when a cap is a recognised binary/switch source. */
|
|
43555
|
-
function isSourceCap(capName) {
|
|
43556
|
-
return Object.prototype.hasOwnProperty.call(SOURCE_CAP_ACTIVE_FIELD, capName);
|
|
43557
|
-
}
|
|
43558
|
-
/** Extract the "active" boolean a source cap's slice carries, or null when
|
|
43559
|
-
* the cap is unknown or the field is missing / non-boolean. */
|
|
43560
|
-
function sliceActiveValue(capName, slice) {
|
|
43561
|
-
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
43562
|
-
if (field === void 0) return null;
|
|
43563
|
-
const raw = slice[field];
|
|
43564
|
-
return typeof raw === "boolean" ? raw : null;
|
|
43565
|
-
}
|
|
43566
|
-
/** Ms-epoch transition timestamp a source cap's slice carries, or null when
|
|
43567
|
-
* it is absent, non-numeric or the zero "never observed" sentinel. */
|
|
43568
|
-
function sliceChangedAt(capName, slice) {
|
|
43569
|
-
const field = SOURCE_CAP_CHANGED_AT_FIELD[capName];
|
|
43570
|
-
if (field === void 0) return null;
|
|
43571
|
-
const raw = slice[field];
|
|
43572
|
-
if (typeof raw !== "number" || !Number.isFinite(raw) || raw <= 0) return null;
|
|
43573
|
-
return raw;
|
|
43574
|
-
}
|
|
43575
|
-
/**
|
|
43576
|
-
* How recent a source's own transition timestamp must be for a FIRST
|
|
43577
|
-
* sighting that is already active to count as a genuine rise rather than a
|
|
43578
|
-
* hydration of long-standing state.
|
|
43579
|
-
*/
|
|
43580
|
-
var DEFAULT_FIRST_SIGHTING_FRESHNESS_MS = 3e4;
|
|
43581
|
-
/**
|
|
43582
|
-
* IL fronte. Puro: nessun orologio proprio, nessuna memoria — il chiamante
|
|
43583
|
-
* porta `prior`, `nowMs` e il proprio `startedAtMs`.
|
|
43584
|
-
*
|
|
43585
|
-
* Il caso della PRIMA slice già attiva è trattato esplicitamente e vale come
|
|
43586
|
-
* fronte solo se il timestamp UPSTREAM della transizione è posteriore a
|
|
43587
|
-
* `startedAtMs` **e** entro `firstSightingFreshnessMs`. Entrambe le metà
|
|
43588
|
-
* servono: la sola freschezza scatterebbe su un'idratazione al boot di uno
|
|
43589
|
-
* stato flippato pochi secondi prima del riavvio, e il solo "dopo che abbiamo
|
|
43590
|
-
* iniziato" scatterebbe, su un processo di lunga vita, per una sorgente
|
|
43591
|
-
* adottata oggi il cui stato è cambiato ieri. Il caso ambiguo ERRA VERSO IL
|
|
43592
|
-
* SILENZIO e lo dichiara (`baseline-seeded-stale-active`).
|
|
43593
|
-
*/
|
|
43594
|
-
function evaluateSensorEdge(input) {
|
|
43595
|
-
const value = sliceActiveValue(input.capName, input.slice);
|
|
43596
|
-
if (value === null) return {
|
|
43597
|
-
edge: "none",
|
|
43598
|
-
value: null,
|
|
43599
|
-
reason: isSourceCap(input.capName) ? "non-boolean-value" : "unknown-cap"
|
|
43600
|
-
};
|
|
43601
|
-
if (input.prior === void 0) {
|
|
43602
|
-
if (!value) return {
|
|
43603
|
-
edge: "none",
|
|
43604
|
-
value,
|
|
43605
|
-
reason: "baseline-seeded-inactive"
|
|
43606
|
-
};
|
|
43607
|
-
const changedAt = sliceChangedAt(input.capName, input.slice);
|
|
43608
|
-
const floor = Math.max(input.startedAtMs, input.nowMs - input.firstSightingFreshnessMs);
|
|
43609
|
-
if (changedAt === null || changedAt < floor) return {
|
|
43610
|
-
edge: "none",
|
|
43611
|
-
value,
|
|
43612
|
-
reason: "baseline-seeded-stale-active"
|
|
43613
|
-
};
|
|
43614
|
-
return {
|
|
43615
|
-
edge: "rising",
|
|
43616
|
-
value: true
|
|
43617
|
-
};
|
|
43618
|
-
}
|
|
43619
|
-
if (input.prior === value) return {
|
|
43620
|
-
edge: "none",
|
|
43621
|
-
value,
|
|
43622
|
-
reason: "no-change"
|
|
43623
|
-
};
|
|
43624
|
-
if (!value) return {
|
|
43625
|
-
edge: "none",
|
|
43626
|
-
value,
|
|
43627
|
-
reason: "falling-edge"
|
|
43628
|
-
};
|
|
43629
|
-
return {
|
|
43630
|
-
edge: "rising",
|
|
43631
|
-
value: true
|
|
43632
|
-
};
|
|
43633
|
-
}
|
|
43634
|
-
//#endregion
|
|
43635
44695
|
//#region src/constants.ts
|
|
43636
44696
|
var HF_REPO = "camstack/camstack-models";
|
|
43637
44697
|
var HF_BASE_URL = `https://huggingface.co/${HF_REPO}/resolve/main`;
|
|
@@ -48677,6 +49737,7 @@ var CAPABILITY_NAMES = {
|
|
|
48677
49737
|
deviceAdoption: "device-adoption",
|
|
48678
49738
|
deviceDiscovery: "device-discovery",
|
|
48679
49739
|
deviceExport: "device-export",
|
|
49740
|
+
deviceExtension: "device-extension",
|
|
48680
49741
|
deviceManager: "device-manager",
|
|
48681
49742
|
deviceOps: "device-ops",
|
|
48682
49743
|
deviceProvider: "device-provider",
|
|
@@ -48984,6 +50045,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
48984
50045
|
key: "deviceExport",
|
|
48985
50046
|
name: "device-export"
|
|
48986
50047
|
},
|
|
50048
|
+
{
|
|
50049
|
+
key: "deviceExtension",
|
|
50050
|
+
name: "device-extension"
|
|
50051
|
+
},
|
|
48987
50052
|
{
|
|
48988
50053
|
key: "deviceManager",
|
|
48989
50054
|
name: "device-manager"
|
|
@@ -49491,6 +50556,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
49491
50556
|
deviceAdoptionCapability,
|
|
49492
50557
|
deviceDiscoveryCapability,
|
|
49493
50558
|
deviceExportCapability,
|
|
50559
|
+
deviceExtensionCapability,
|
|
49494
50560
|
deviceManagerCapability,
|
|
49495
50561
|
deviceOpsCapability,
|
|
49496
50562
|
deviceProviderCapability,
|
|
@@ -51041,6 +52107,30 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51041
52107
|
addonId: null,
|
|
51042
52108
|
access: "create"
|
|
51043
52109
|
},
|
|
52110
|
+
"deviceExtension.listCandidates": {
|
|
52111
|
+
capName: "device-extension",
|
|
52112
|
+
capScope: "device",
|
|
52113
|
+
addonId: null,
|
|
52114
|
+
access: "view"
|
|
52115
|
+
},
|
|
52116
|
+
"deviceExtension.listSlots": {
|
|
52117
|
+
capName: "device-extension",
|
|
52118
|
+
capScope: "device",
|
|
52119
|
+
addonId: null,
|
|
52120
|
+
access: "view"
|
|
52121
|
+
},
|
|
52122
|
+
"deviceExtension.listSources": {
|
|
52123
|
+
capName: "device-extension",
|
|
52124
|
+
capScope: "device",
|
|
52125
|
+
addonId: null,
|
|
52126
|
+
access: "view"
|
|
52127
|
+
},
|
|
52128
|
+
"deviceExtension.setSlot": {
|
|
52129
|
+
capName: "device-extension",
|
|
52130
|
+
capScope: "device",
|
|
52131
|
+
addonId: null,
|
|
52132
|
+
access: "create"
|
|
52133
|
+
},
|
|
51044
52134
|
"deviceManager.addLocation": {
|
|
51045
52135
|
capName: "device-manager",
|
|
51046
52136
|
capScope: "system",
|
|
@@ -51113,12 +52203,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51113
52203
|
addonId: null,
|
|
51114
52204
|
access: "create"
|
|
51115
52205
|
},
|
|
51116
|
-
"deviceManager.applyDeviceSettingsPatch": {
|
|
51117
|
-
capName: "device-manager",
|
|
51118
|
-
capScope: "system",
|
|
51119
|
-
addonId: null,
|
|
51120
|
-
access: "create"
|
|
51121
|
-
},
|
|
51122
52206
|
"deviceManager.applyInitialMeta": {
|
|
51123
52207
|
capName: "device-manager",
|
|
51124
52208
|
capScope: "system",
|
|
@@ -51221,12 +52305,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51221
52305
|
addonId: null,
|
|
51222
52306
|
access: "view"
|
|
51223
52307
|
},
|
|
51224
|
-
"deviceManager.getDeviceLiveContribution": {
|
|
51225
|
-
capName: "device-manager",
|
|
51226
|
-
capScope: "system",
|
|
51227
|
-
addonId: null,
|
|
51228
|
-
access: "view"
|
|
51229
|
-
},
|
|
51230
52308
|
"deviceManager.getDeviceLiveInfoAggregate": {
|
|
51231
52309
|
capName: "device-manager",
|
|
51232
52310
|
capScope: "system",
|
|
@@ -51239,12 +52317,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51239
52317
|
addonId: null,
|
|
51240
52318
|
access: "view"
|
|
51241
52319
|
},
|
|
51242
|
-
"deviceManager.getDeviceSettingsContribution": {
|
|
51243
|
-
capName: "device-manager",
|
|
51244
|
-
capScope: "system",
|
|
51245
|
-
addonId: null,
|
|
51246
|
-
access: "view"
|
|
51247
|
-
},
|
|
51248
52320
|
"deviceManager.getDeviceStatusAggregate": {
|
|
51249
52321
|
capName: "device-manager",
|
|
51250
52322
|
capScope: "system",
|
|
@@ -51749,24 +52821,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51749
52821
|
addonId: null,
|
|
51750
52822
|
access: "view"
|
|
51751
52823
|
},
|
|
51752
|
-
"doorbell.applyDeviceSettingsPatch": {
|
|
51753
|
-
capName: "doorbell",
|
|
51754
|
-
capScope: "device",
|
|
51755
|
-
addonId: null,
|
|
51756
|
-
access: "create"
|
|
51757
|
-
},
|
|
51758
|
-
"doorbell.getDeviceLiveContribution": {
|
|
51759
|
-
capName: "doorbell",
|
|
51760
|
-
capScope: "device",
|
|
51761
|
-
addonId: null,
|
|
51762
|
-
access: "view"
|
|
51763
|
-
},
|
|
51764
|
-
"doorbell.getDeviceSettingsContribution": {
|
|
51765
|
-
capName: "doorbell",
|
|
51766
|
-
capScope: "device",
|
|
51767
|
-
addonId: null,
|
|
51768
|
-
access: "view"
|
|
51769
|
-
},
|
|
51770
52824
|
"doorbell.getStatus": {
|
|
51771
52825
|
capName: "doorbell",
|
|
51772
52826
|
capScope: "device",
|
|
@@ -51791,6 +52845,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
51791
52845
|
addonId: null,
|
|
51792
52846
|
access: "view"
|
|
51793
52847
|
},
|
|
52848
|
+
"embeddingEncoder.resetFailedModels": {
|
|
52849
|
+
capName: "embedding-encoder",
|
|
52850
|
+
capScope: "system",
|
|
52851
|
+
addonId: null,
|
|
52852
|
+
access: "delete"
|
|
52853
|
+
},
|
|
51794
52854
|
"enumSensor.getStatus": {
|
|
51795
52855
|
capName: "enum-sensor",
|
|
51796
52856
|
capScope: "device",
|
|
@@ -54125,6 +55185,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
54125
55185
|
addonId: null,
|
|
54126
55186
|
access: "view"
|
|
54127
55187
|
},
|
|
55188
|
+
"pipelineOrchestrator.getClusterModelChoice": {
|
|
55189
|
+
capName: "pipeline-orchestrator",
|
|
55190
|
+
capScope: "system",
|
|
55191
|
+
addonId: null,
|
|
55192
|
+
access: "view"
|
|
55193
|
+
},
|
|
54128
55194
|
"pipelineOrchestrator.getDeviceLiveContribution": {
|
|
54129
55195
|
capName: "pipeline-orchestrator",
|
|
54130
55196
|
capScope: "system",
|
|
@@ -56726,6 +57792,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
56726
57792
|
"device-adoption",
|
|
56727
57793
|
"device-discovery",
|
|
56728
57794
|
"device-export",
|
|
57795
|
+
"device-extension",
|
|
56729
57796
|
"device-manager",
|
|
56730
57797
|
"device-ops",
|
|
56731
57798
|
"device-provider",
|
|
@@ -56868,6 +57935,7 @@ var DEVICE_CAP_NAMES = [
|
|
|
56868
57935
|
"detection-pipeline",
|
|
56869
57936
|
"device-admin-link",
|
|
56870
57937
|
"device-discovery",
|
|
57938
|
+
"device-extension",
|
|
56871
57939
|
"device-ops",
|
|
56872
57940
|
"device-status",
|
|
56873
57941
|
"doorbell",
|
|
@@ -57281,6 +58349,26 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
57281
58349
|
form: "single",
|
|
57282
58350
|
optional: false
|
|
57283
58351
|
}],
|
|
58352
|
+
"deviceExtension.listCandidates": [{
|
|
58353
|
+
name: "deviceId",
|
|
58354
|
+
form: "single",
|
|
58355
|
+
optional: false
|
|
58356
|
+
}],
|
|
58357
|
+
"deviceExtension.listSlots": [{
|
|
58358
|
+
name: "deviceId",
|
|
58359
|
+
form: "single",
|
|
58360
|
+
optional: false
|
|
58361
|
+
}],
|
|
58362
|
+
"deviceExtension.listSources": [{
|
|
58363
|
+
name: "deviceId",
|
|
58364
|
+
form: "single",
|
|
58365
|
+
optional: false
|
|
58366
|
+
}],
|
|
58367
|
+
"deviceExtension.setSlot": [{
|
|
58368
|
+
name: "deviceId",
|
|
58369
|
+
form: "single",
|
|
58370
|
+
optional: false
|
|
58371
|
+
}],
|
|
57284
58372
|
"deviceManager.adoptionRelease": [{
|
|
57285
58373
|
name: "camDeviceId",
|
|
57286
58374
|
form: "single",
|
|
@@ -59842,6 +60930,7 @@ function createSystemProxy(api) {
|
|
|
59842
60930
|
stop: (input) => dispatch("deviceProvider", "stop", "mutation", input),
|
|
59843
60931
|
getStatus: (input) => dispatch("deviceProvider", "getStatus", "query", input),
|
|
59844
60932
|
getDevices: (input) => dispatch("deviceProvider", "getDevices", "query", input),
|
|
60933
|
+
reloadDevice: (input) => dispatch("deviceProvider", "reloadDevice", "mutation", input),
|
|
59845
60934
|
supportsDiscovery: (input) => dispatch("deviceProvider", "supportsDiscovery", "query", input),
|
|
59846
60935
|
discoverDevices: (input) => dispatch("deviceProvider", "discoverDevices", "mutation", input),
|
|
59847
60936
|
getDiscoveryParamsSchema: (input) => dispatch("deviceProvider", "getDiscoveryParamsSchema", "query", input),
|
|
@@ -59987,6 +61076,29 @@ function createSystemProxy(api) {
|
|
|
59987
61076
|
deleteTarget: (input) => dispatch("notificationOutput", "deleteTarget", "mutation", input),
|
|
59988
61077
|
setTargetEnabled: (input) => dispatch("notificationOutput", "setTargetEnabled", "mutation", input)
|
|
59989
61078
|
},
|
|
61079
|
+
notificationRules: {
|
|
61080
|
+
listRules: (input) => dispatch("notificationRules", "listRules", "query", input),
|
|
61081
|
+
getRule: (input) => dispatch("notificationRules", "getRule", "query", input),
|
|
61082
|
+
createRule: (input) => dispatch("notificationRules", "createRule", "mutation", input),
|
|
61083
|
+
updateRule: (input) => dispatch("notificationRules", "updateRule", "mutation", input),
|
|
61084
|
+
deleteRule: (input) => dispatch("notificationRules", "deleteRule", "mutation", input),
|
|
61085
|
+
setRuleEnabled: (input) => dispatch("notificationRules", "setRuleEnabled", "mutation", input),
|
|
61086
|
+
getClipRetentionAsks: (input) => dispatch("notificationRules", "getClipRetentionAsks", "query", input),
|
|
61087
|
+
listDeviceMutes: (input) => dispatch("notificationRules", "listDeviceMutes", "query", input),
|
|
61088
|
+
testRule: (input) => dispatch("notificationRules", "testRule", "mutation", input),
|
|
61089
|
+
previewStateSummary: (input) => dispatch("notificationRules", "previewStateSummary", "mutation", input),
|
|
61090
|
+
getConditionCatalog: (input) => dispatch("notificationRules", "getConditionCatalog", "query", input),
|
|
61091
|
+
getTemplateCatalog: (input) => dispatch("notificationRules", "getTemplateCatalog", "query", input),
|
|
61092
|
+
previewTemplate: (input) => dispatch("notificationRules", "previewTemplate", "mutation", input),
|
|
61093
|
+
getHistory: (input) => dispatch("notificationRules", "getHistory", "query", input),
|
|
61094
|
+
getRuleLastRuns: (input) => dispatch("notificationRules", "getRuleLastRuns", "query", input),
|
|
61095
|
+
resolveArtifactUrl: (input) => dispatch("notificationRules", "resolveArtifactUrl", "query", input),
|
|
61096
|
+
listSnoozes: (input) => dispatch("notificationRules", "listSnoozes", "query", input),
|
|
61097
|
+
createSnooze: (input) => dispatch("notificationRules", "createSnooze", "mutation", input),
|
|
61098
|
+
cancelSnooze: (input) => dispatch("notificationRules", "cancelSnooze", "mutation", input),
|
|
61099
|
+
getAlarmConfig: (input) => dispatch("notificationRules", "getAlarmConfig", "query", input),
|
|
61100
|
+
setAlarmConfig: (input) => dispatch("notificationRules", "setAlarmConfig", "mutation", input)
|
|
61101
|
+
},
|
|
59990
61102
|
osdManager: {
|
|
59991
61103
|
getConditionSupport: (input) => dispatch("osdManager", "getConditionSupport", "query", input),
|
|
59992
61104
|
copyDeviceConfiguration: (input) => dispatch("osdManager", "copyDeviceConfiguration", "mutation", input)
|
|
@@ -60035,11 +61147,13 @@ function createSystemProxy(api) {
|
|
|
60035
61147
|
rebalance: (input) => dispatch("pipelineOrchestrator", "rebalance", "mutation", input),
|
|
60036
61148
|
getPipelineAssignments: (input) => dispatch("pipelineOrchestrator", "getPipelineAssignments", "query", input),
|
|
60037
61149
|
getAgentLoad: (input) => dispatch("pipelineOrchestrator", "getAgentLoad", "query", input),
|
|
61150
|
+
getClusterModelChoice: (input) => dispatch("pipelineOrchestrator", "getClusterModelChoice", "query", input),
|
|
60038
61151
|
getGlobalMetrics: (input) => dispatch("pipelineOrchestrator", "getGlobalMetrics", "query", input),
|
|
60039
61152
|
getCapabilityBindings: (input) => dispatch("pipelineOrchestrator", "getCapabilityBindings", "query", input),
|
|
60040
61153
|
setCapabilityBinding: (input) => dispatch("pipelineOrchestrator", "setCapabilityBinding", "mutation", input),
|
|
60041
61154
|
getIngestOwner: (input) => dispatch("pipelineOrchestrator", "getIngestOwner", "query", input),
|
|
60042
61155
|
getAudioNodeLoad: (input) => dispatch("pipelineOrchestrator", "getAudioNodeLoad", "query", input),
|
|
61156
|
+
getAudioAssignments: (input) => dispatch("pipelineOrchestrator", "getAudioAssignments", "query", input),
|
|
60043
61157
|
getAgentSettings: (input) => dispatch("pipelineOrchestrator", "getAgentSettings", "query", input),
|
|
60044
61158
|
listAgentSettings: (input) => dispatch("pipelineOrchestrator", "listAgentSettings", "query", input),
|
|
60045
61159
|
removeAgentSettings: (input) => dispatch("pipelineOrchestrator", "removeAgentSettings", "mutation", input),
|
|
@@ -63431,221 +64545,21 @@ function readTimelapseGeneratedAt(rule, deviceId) {
|
|
|
63431
64545
|
return rule.lastGeneratedAt ?? 0;
|
|
63432
64546
|
}
|
|
63433
64547
|
//#endregion
|
|
63434
|
-
//#region src/pipeline/
|
|
63435
|
-
/**
|
|
63436
|
-
|
|
63437
|
-
|
|
63438
|
-
* ## The two scopes
|
|
63439
|
-
*
|
|
63440
|
-
* Almost every pipeline step's model is a **node** question: which build runs
|
|
63441
|
-
* fastest on THIS accelerator. Two nodes may legitimately answer differently —
|
|
63442
|
-
* a Coral runs the tflite SSD, a Mac runs the coreml YOLO — because the answers
|
|
63443
|
-
* are compared against nothing. They produce boxes, and a box is a box.
|
|
63444
|
-
*
|
|
63445
|
-
* Two steps are not like that. `face-embedding` and `clip-embedding` produce
|
|
63446
|
-
* **vectors that land in ONE shared index** (`identity_samples`,
|
|
63447
|
-
* `vec_object_clip`) and are ranked against each other by cosine similarity.
|
|
63448
|
-
* Cosine similarity between two encoders is not a weak signal, it is a
|
|
63449
|
-
* meaningless number — and nothing inside a vector can tell you it happened.
|
|
63450
|
-
* So for those two steps the model is a **cluster** question with exactly one
|
|
63451
|
-
* answer, stored in exactly one row.
|
|
63452
|
-
*
|
|
63453
|
-
* That is the same argument [D52](../../../../docs/decisions/adr-0052.md) makes
|
|
63454
|
-
* for the crop convention (`detail-crop.ts`), one level up: the crop decides
|
|
63455
|
-
* WHAT pixels the encoder sees, this decides WHICH encoder sees them. Both are
|
|
63456
|
-
* cluster-wide for the same reason and neither may become per-node.
|
|
63457
|
-
*
|
|
63458
|
-
* ## Why the registry lives here and not in the step catalog
|
|
63459
|
-
*
|
|
63460
|
-
* The scope itself is declared on the step, in
|
|
63461
|
-
* `detection-pipeline/registry/step-definitions.ts` (`StepDefinition.modelScope`)
|
|
63462
|
-
* — that is where a new step declares what kind of choice its model is. But the
|
|
63463
|
-
* catalog lives inside `addon-pipeline`, and three packages that must NOT
|
|
63464
|
-
* import an addon need to know the set: the orchestrator (which renders and
|
|
63465
|
-
* stores the row), post-analysis (which pins the row for a re-embed pass) and
|
|
63466
|
-
* admin-ui (which mirrors it). So the set is mirrored here, and
|
|
63467
|
-
* `scripts/check-cluster-model-scope.ts` fails the build when the two disagree.
|
|
63468
|
-
* A hand-copied key that stops matching is exactly how a setting silently stops
|
|
63469
|
-
* arriving while both sides still look correct.
|
|
63470
|
-
*
|
|
63471
|
-
* ## The defaults ARE today's behaviour
|
|
63472
|
-
*
|
|
63473
|
-
* {@link DEFAULT_CLUSTER_STEP_MODELS} reproduces the catalog `defaultModelId`
|
|
63474
|
-
* of both steps. Declaring the scope therefore changes nothing on the day it
|
|
63475
|
-
* ships: the cluster row starts out saying what every node was already doing.
|
|
63476
|
-
* Changing it is legitimate — that is what the knob is for — but it invalidates
|
|
63477
|
-
* the stored vectors of that surface, and must be followed by a re-embed pass
|
|
63478
|
-
* (`face-reembed-pass.ts`, `embedding-rebuild.ts`).
|
|
63479
|
-
*/
|
|
63480
|
-
/**
|
|
63481
|
-
* The cluster-scoped steps. Mirrored from the catalog's `modelScope: 'cluster'`
|
|
63482
|
-
* declarations and guarded by `scripts/check-cluster-model-scope.ts`.
|
|
63483
|
-
*/
|
|
63484
|
-
var CLUSTER_MODEL_SCOPED_STEPS = [{
|
|
63485
|
-
stepId: "face-embedding",
|
|
63486
|
-
label: "Face recognition model",
|
|
63487
|
-
defaultModelId: "arcface-r100",
|
|
63488
|
-
indexName: "the enrolled face gallery",
|
|
63489
|
-
options: [
|
|
63490
|
-
{
|
|
63491
|
-
id: "arcface-r100",
|
|
63492
|
-
label: "ArcFace (ResNet34)"
|
|
63493
|
-
},
|
|
63494
|
-
{
|
|
63495
|
-
id: "auraface-r100",
|
|
63496
|
-
label: "AuraFace R100"
|
|
63497
|
-
},
|
|
63498
|
-
{
|
|
63499
|
-
id: "inception-resnet-v1",
|
|
63500
|
-
label: "Inception ResNet V1"
|
|
63501
|
-
}
|
|
63502
|
-
]
|
|
63503
|
-
}, {
|
|
63504
|
-
stepId: "clip-embedding",
|
|
63505
|
-
label: "Semantic search model",
|
|
63506
|
-
defaultModelId: "mobileclip-s1",
|
|
63507
|
-
indexName: "the object semantic-search index",
|
|
63508
|
-
options: [{
|
|
63509
|
-
id: "mobileclip-s1",
|
|
63510
|
-
label: "MobileCLIP S1"
|
|
63511
|
-
}, {
|
|
63512
|
-
id: "mobileclip-s2",
|
|
63513
|
-
label: "MobileCLIP S2"
|
|
63514
|
-
}]
|
|
63515
|
-
}];
|
|
63516
|
-
/**
|
|
63517
|
-
* Store identity of the cluster row inside `pipeline-orchestrator`'s GLOBAL
|
|
63518
|
-
* (cluster-wide) settings — the same owner, and for the same reason, as the
|
|
63519
|
-
* detail-crop convention: hub-resident and neutral between the addons that
|
|
63520
|
-
* read it.
|
|
63521
|
-
*/
|
|
63522
|
-
var CLUSTER_MODEL_SECTION_ID = "cluster-step-models";
|
|
63523
|
-
/**
|
|
63524
|
-
* The settings key holding one step's cluster model choice.
|
|
63525
|
-
*
|
|
63526
|
-
* Step-qualified so the keys stay unique across the addon's whole schema, which
|
|
63527
|
-
* is what lets {@link pickClusterStepModels} walk every section instead of
|
|
63528
|
-
* trusting the section id.
|
|
63529
|
-
*/
|
|
63530
|
-
function clusterModelSettingKey(stepId) {
|
|
63531
|
-
return `clusterModel:${stepId}`;
|
|
63532
|
-
}
|
|
63533
|
-
/** True when this step's model is a cluster-wide choice rather than a per-node one. */
|
|
63534
|
-
function isClusterScopedStep(stepId) {
|
|
63535
|
-
return CLUSTER_MODEL_SCOPED_STEPS.some((s) => s.stepId === stepId);
|
|
63536
|
-
}
|
|
63537
|
-
/** The cluster row when nobody has configured one — today's catalog defaults. */
|
|
63538
|
-
var DEFAULT_CLUSTER_STEP_MODELS = Object.freeze(Object.fromEntries(CLUSTER_MODEL_SCOPED_STEPS.map((s) => [s.stepId, s.defaultModelId])));
|
|
63539
|
-
/** A stored choice is a non-empty model id, or it is not a choice. */
|
|
63540
|
-
var ChosenModelIdSchema = z.string().min(1);
|
|
63541
|
-
/**
|
|
63542
|
-
* Narrow a FLAT settings record to the cluster row.
|
|
63543
|
-
*
|
|
63544
|
-
* Per-FIELD fallback, deliberately (same rule as `readDetailCropConvention`): a
|
|
63545
|
-
* junk face model must not also discard a valid clip model. An absent, empty or
|
|
63546
|
-
* non-string value resolves to the step's catalog default — the historical
|
|
63547
|
-
* behaviour — never to a blank id, because a blank id downstream becomes
|
|
63548
|
-
* "substitute the format default", which is precisely the substitution this
|
|
63549
|
-
* scope exists to forbid.
|
|
63550
|
-
*/
|
|
63551
|
-
function readClusterStepModels(config) {
|
|
63552
|
-
const out = {};
|
|
63553
|
-
for (const step of CLUSTER_MODEL_SCOPED_STEPS) {
|
|
63554
|
-
const parsed = ChosenModelIdSchema.safeParse(config[clusterModelSettingKey(step.stepId)]);
|
|
63555
|
-
out[step.stepId] = parsed.success ? parsed.data : step.defaultModelId;
|
|
63556
|
-
}
|
|
63557
|
-
return out;
|
|
63558
|
-
}
|
|
63559
|
-
function isHydratedField$2(entry) {
|
|
63560
|
-
return typeof entry === "object" && entry !== null && "key" in entry;
|
|
63561
|
-
}
|
|
63562
|
-
/**
|
|
63563
|
-
* Extract the cluster row from an `addon-settings.getGlobalSettings` payload.
|
|
63564
|
-
*
|
|
63565
|
-
* Walks EVERY section rather than looking inside {@link CLUSTER_MODEL_SECTION_ID}
|
|
63566
|
-
* alone: the keys are unique across the addon's schema, and a section rename
|
|
63567
|
-
* must not silently revert the whole cluster to the defaults. A `null` payload
|
|
63568
|
-
* (addon mid-boot) is the defaults.
|
|
63569
|
-
*/
|
|
63570
|
-
function pickClusterStepModels(view) {
|
|
63571
|
-
if (view === null) return DEFAULT_CLUSTER_STEP_MODELS;
|
|
63572
|
-
const flat = {};
|
|
63573
|
-
const wanted = new Set(CLUSTER_MODEL_SCOPED_STEPS.map((s) => clusterModelSettingKey(s.stepId)));
|
|
63574
|
-
for (const section of view.sections) for (const entry of section.fields) {
|
|
63575
|
-
if (!isHydratedField$2(entry) || typeof entry.key !== "string") continue;
|
|
63576
|
-
if (wanted.has(entry.key)) flat[entry.key] = entry.value;
|
|
63577
|
-
}
|
|
63578
|
-
return readClusterStepModels(flat);
|
|
64548
|
+
//#region src/pipeline/step-format-runnable.ts
|
|
64549
|
+
/** True when `model` ships a build for `format`. */
|
|
64550
|
+
function hasBuild(model, format) {
|
|
64551
|
+
return Boolean(model.formats[format]);
|
|
63579
64552
|
}
|
|
63580
64553
|
/**
|
|
63581
|
-
*
|
|
63582
|
-
*
|
|
63583
|
-
* `null` is the signal to LEAVE THE CALLER'S RESOLUTION ALONE — it is not "no
|
|
63584
|
-
* model". Returning a default here for a node-scoped step would quietly
|
|
63585
|
-
* override every per-(node,device) selection in the fleet.
|
|
64554
|
+
* Can a pool of `format` run a step whose catalog is `models`, given the model
|
|
64555
|
+
* the step names (`null`/absent = unpinned, the format default)?
|
|
63586
64556
|
*/
|
|
63587
|
-
function
|
|
63588
|
-
|
|
63589
|
-
|
|
63590
|
-
|
|
63591
|
-
return chosen !== void 0 && chosen !== "" ? chosen : step.defaultModelId;
|
|
63592
|
-
}
|
|
63593
|
-
/** Must match `DEFAULT_LANDMARK_PRECISION_FLOOR_PX` in the runner. */
|
|
63594
|
-
var DEFAULT_MIN_LANDMARK_FACE_SIZE_PX = 24;
|
|
63595
|
-
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
63596
|
-
stepId: "face-embedding",
|
|
63597
|
-
key: "minLandmarkFaceSize",
|
|
63598
|
-
label: "Min face size for recognition (detection px)",
|
|
63599
|
-
description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
|
|
63600
|
-
type: "slider",
|
|
63601
|
-
min: 0,
|
|
63602
|
-
max: 64,
|
|
63603
|
-
step: 2,
|
|
63604
|
-
default: 24
|
|
63605
|
-
}];
|
|
63606
|
-
function clusterStepSettingKey(stepId, fieldKey) {
|
|
63607
|
-
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
63608
|
-
}
|
|
63609
|
-
function clusterStepSettingFieldsFor(stepId) {
|
|
63610
|
-
return CLUSTER_STEP_SETTING_FIELDS.filter((field) => field.stepId === stepId);
|
|
63611
|
-
}
|
|
63612
|
-
var ClusterSettingNumberSchema = z.number().finite();
|
|
63613
|
-
function readClusterStepSettings(config) {
|
|
63614
|
-
const out = {};
|
|
63615
|
-
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
63616
|
-
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
63617
|
-
const value = parsed.success ? parsed.data : field.default;
|
|
63618
|
-
const existing = out[field.stepId] ?? {};
|
|
63619
|
-
out[field.stepId] = {
|
|
63620
|
-
...existing,
|
|
63621
|
-
[field.key]: value
|
|
63622
|
-
};
|
|
64557
|
+
function stepModelRunsOnFormat(models, modelId, format) {
|
|
64558
|
+
if (modelId !== void 0 && modelId !== null) {
|
|
64559
|
+
const named = models.find((m) => m.id === modelId);
|
|
64560
|
+
if (named !== void 0 && hasBuild(named, format)) return true;
|
|
63623
64561
|
}
|
|
63624
|
-
return
|
|
63625
|
-
}
|
|
63626
|
-
var DEFAULT_CLUSTER_STEP_SETTINGS = readClusterStepSettings({});
|
|
63627
|
-
function pickClusterStepSettings(view) {
|
|
63628
|
-
if (view === null) return DEFAULT_CLUSTER_STEP_SETTINGS;
|
|
63629
|
-
const flat = {};
|
|
63630
|
-
const wanted = new Set(CLUSTER_STEP_SETTING_FIELDS.map((field) => clusterStepSettingKey(field.stepId, field.key)));
|
|
63631
|
-
for (const section of view.sections) for (const entry of section.fields) {
|
|
63632
|
-
if (!isHydratedField$2(entry) || typeof entry.key !== "string") continue;
|
|
63633
|
-
if (wanted.has(entry.key)) flat[entry.key] = entry.value;
|
|
63634
|
-
}
|
|
63635
|
-
return readClusterStepSettings(flat);
|
|
63636
|
-
}
|
|
63637
|
-
/**
|
|
63638
|
-
* Cluster knobs win over leftover per-device values. The cluster row is the
|
|
63639
|
-
* authority; a device-local copy is a leftover of the old per-node editor.
|
|
63640
|
-
*/
|
|
63641
|
-
function overlayClusterStepSettings(stepId, deviceSettings, cluster) {
|
|
63642
|
-
const overlay = cluster[stepId];
|
|
63643
|
-
if (overlay === void 0 || Object.keys(overlay).length === 0) return deviceSettings === void 0 ? void 0 : { ...deviceSettings };
|
|
63644
|
-
if (deviceSettings === void 0) return { ...overlay };
|
|
63645
|
-
return {
|
|
63646
|
-
...deviceSettings,
|
|
63647
|
-
...overlay
|
|
63648
|
-
};
|
|
64562
|
+
return models.some((m) => m.legacy !== true && hasBuild(m, format));
|
|
63649
64563
|
}
|
|
63650
64564
|
//#endregion
|
|
63651
64565
|
//#region src/pipeline/detail-crop.ts
|
|
@@ -66074,4 +66988,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
66074
66988
|
return out;
|
|
66075
66989
|
}
|
|
66076
66990
|
//#endregion
|
|
66077
|
-
export { ACCESSORY_LABEL, ACCESS_ROLES, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, ApiKeyRecordSchema, ApiKeySummarySchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BackgroundRunRegistry, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, BulkRecordSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CLASS_MAP_MACRO_TARGETS, CLIP_BROKER_PACED_RATES, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DAYS_PER_WEEK, DAY_NAMES, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CHILDREN_BATCH_MAX, DEVICE_PROFILES, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DISPLAY_ICON_GROUPS, DISPLAY_ICON_KEYS, DISPLAY_ICON_OFFERED_KEYS, DISPLAY_ICON_VOCABULARY, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DeviceAdminLinkSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRuntimeState, DeviceSelectorSchema, DeviceStatusSchema, DeviceType, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiskReconcileJobSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EffectiveTuningSchema, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportFootageSubjectSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FIRST_LEVEL_MACRO_CLASSES, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HOURS_PER_DAY, HWACCEL_OPTIONS, HealthStatusSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LEGACY_READ_ONLY_CONFIG_KEY, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOCATION_ICON_IDS, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyStorageLocationDefaultSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationIconIdSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_KEYS, MAX_REASONS_PER_KEY, MAX_SENSOR_TRIGGER_DEVICES, MAX_TRACK_DEBUG_NOTE_LEN, MEDIA_OWNER_TYPES, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MINUTES_PER_DAY, MODEL_FORMATS, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_SYSTEM_RULE_KINDS, NC_TANK_SYSTEM_EVENT_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcStateSummaryPreviewSchema, NcStateSummaryPreviewSectionSchema, NcSystemEventConditionSchema, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, REDACTED_SECRET, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESTORED_CAP_NAMES, ROOT_BUCKET_KEY, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordTriggerSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RenderedAsSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCOPE_PRESETS, SENSOR_FEATURES, SENSOR_MAP, SHARE_VIEW_KINDS, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, STATIONARY_OVERLAY_STYLE, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SummarySchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VISIT_MERGE_GAP_MS, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetLogChannelRegistryForTests, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, assertTimelapseCadences, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildDeviceAdminUrl, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildRoleScopes, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, clipExportFailure, clipExportFailureOf, clipReasonHeaderValue, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, codecIsAccepted, collectHydratedFieldEntries, collectHydratedFieldValues, collectSecretConfigKeys, colorCapability, colorForKind, commitWatchdogRestart, compareToTarget, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, conditionExclusionReason, conditionVisibleForKind, connectionTestCapability, connectivityCapability, consumableLowPercentOf, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declareLogChannel, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defineCustomActions, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeCustomActions, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeSystemEventDeliveryProblem, describeSystemEventFamilyProblem, detectAccessRole, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, displayIconEntry, displayIconsInGroup, doorbellCapability, droppedConditionsForKind, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluatePoolMemory, evaluateSensorEdge, evaluateZoneRules, event, eventEmitterCapability, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, exportSubjectOf, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, foldSnapshotByFunction, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatParkedFor, gasCapability, gbToBytes, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getLogChannelRegistry, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, inferModelProvider, initialPoolMemoryState, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isAudioChunkFormat, isAudioLabelSelected, isAudioRule, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDisplayIconKey, isEvent, isEventOwnerType, isFirstLevelMacroClass, isHeldBackTemplateVar, isIsolatedBuiltin, isKnownTemplateVar, isLocationEnabled, isMediaOwnerType, isNode, isObjectInput, isOccupancyRule, isRestoredCap, isSameAddonId, isScheduleActive, isSecretConfigField, isSoftwareDecode, isSourceCap, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemEventSummaryRule, isSystemRuleKind, isVoidInput, ituDbfsFromPreEpoch, jobKindSchema, kebabToCamel, kindsForDiscriminator, knownValues, lawnMowerControlCapability, legacyAutoLinkIds, legacyModeOf, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, loadContributionCapability, localNetworkCapability, locationIconKey, locationSimilarity, lockControlCapability, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mayReadLocation, mayWriteToLocation, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, migrateLegacyDeviceSignalConfig, minutesToTimeOfDay, modeMayRead, modeMayWrite, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, networkAccessCapability, networkLinkCapability, networkQualityCapability, nodePickerItems, nodePin, nodesCapability, normalizeAddonInitResult, normalizeAudioLabel, normalizeTokenScopes, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, occupancyScope, optionalMethod, osdCapability, osdManagerCapability, overlayClusterStepSettings, packagePickerItems, parseAdminBase, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRuleSection, parseStreamParamsFormPatch, patchAudio, petFeederCapability, pickAccessoryControl, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, poolMemoryThreshold, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, rankStreams, readClusterStepModels, readClusterStepSettings, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, rectsToCells, reducePoints, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveBucketMs, resolveCapMount, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCreateExportSubject, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHydratedFieldValue, resolveLocationIcon, resolveLocationMode, resolveMethodAuth, resolveMutate, resolvePoolMemoryPolicy, resolveRecordingProfiles, resolveRunnerId, resolveStreamMaps, resolveVariantModelId, resolveViewableDeviceIds, roleSpec, ruleBelongsToAlarm, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, runInferenceStep, runtimeDevices, runtimeStatePolicyFor, sceneMonitorCapability, scheduleForSendTimes, schemaDeclaresAnyField, scopeInherits, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, searchDisplayIcons, selectAssignedProfileSlots, sendTimesOfSchedule, sensorRaisedOf, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, setByPath, settingsStoreCapability, signalPercentFromBars, signalPercentFromRssi, siteZoneKey, sleep, sleepCancellable, sliceActiveValue, sliceChangedAt, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subKindsOf, summarisePrivacyAudio, summarizeEffectiveScope, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, systemEventDeliveryProblems, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemEventSummaryScheduleOf, systemFamilyOfKind, systemRuleKindOf, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, timeOfDayToMinutes, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, toggleAudioLabel, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withLocationMode, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
66991
|
+
export { ACCESSORY_LABEL, ACCESS_ROLES, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, ApiKeyRecordSchema, ApiKeySummarySchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BackgroundRunRegistry, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, BulkRecordSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CLASS_MAP_MACRO_TARGETS, CLIP_BROKER_PACED_RATES, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_SEARCH_STRICTNESS, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLIP_STRICTNESS_FACTOR, CLIP_VECTOR_INDEX_PATTERN, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipModelMetaSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSearchStrictnessSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, ClusterModelChoiceSchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DAYS_PER_WEEK, DAY_NAMES, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CHILDREN_BATCH_MAX, DEVICE_PROFILES, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DISPLAY_ICON_GROUPS, DISPLAY_ICON_KEYS, DISPLAY_ICON_OFFERED_KEYS, DISPLAY_ICON_VOCABULARY, DOORBELL_SOURCE_SLOT, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DeviceAdminLinkSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRuntimeState, DeviceSelectorSchema, DeviceStatusSchema, DeviceType, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiskReconcileJobSchema, DisposerChain, DoorbellPressEventSchema, DoorbellSourceSlotValueSchema, DoorbellStatusSchema, EMBEDDING_MODEL_FAILED, EMBEDDING_REQUIREMENTS_FAILED, EMBEDDING_REQUIREMENTS_UNAVAILABLE, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EXTENSION_HOST_DEVICE_TYPES, EXTENSION_SLOTS, EXTENSION_SLOT_IDS, EXTENSION_SLOT_LISTING_METHOD, EXTENSION_SLOT_REF_SEPARATOR, EffectiveTuningSchema, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingFailedModelSchema, EmbeddingFailedRequirementSchema, EmbeddingInfoSchema, EmbeddingRefusalCodeSchema, EmbeddingResultSchema, EmbeddingTowerSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportFootageSubjectSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, ExtensionCandidateSchema, ExtensionCandidatesSchema, ExtensionSetResultSchema, ExtensionSetSlotInputSchema, ExtensionSlotActivationSchema, ExtensionSlotIdSchema, ExtensionSlotRefInputSchema, ExtensionSlotRowSchema, ExtensionSlotSourceSchema, ExtensionSlotStateSchema, ExtensionSlotUnreachableSchema, ExtensionSlotValueSchema, ExtensionSourceAvailabilitySchema, ExtensionSourceHealthSchema, ExtensionSourceSchema, FIRST_LEVEL_MACRO_CLASSES, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HOURS_PER_DAY, HWACCEL_OPTIONS, HealthStatusSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LEGACY_READ_ONLY_CONFIG_KEY, LINKED_DEVICES_SLOT, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOCATION_ICON_IDS, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyStorageLocationDefaultSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LinkedDevicesSlotValueSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationIconIdSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_KEYS, MAX_REASONS_PER_KEY, MAX_SENSOR_TRIGGER_DEVICES, MAX_TRACK_DEBUG_NOTE_LEN, MEDIA_OWNER_TYPES, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MINUTES_PER_DAY, MODEL_FORMATS, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_SYSTEM_RULE_KINDS, NC_TANK_SYSTEM_EVENT_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcStateSummaryPreviewSchema, NcStateSummaryPreviewSectionSchema, NcSystemEventConditionSchema, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, REDACTED_SECRET, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESTORED_CAP_NAMES, ROOT_BUCKET_KEY, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RebuildObjectEmbeddingsRefusalSchema, RecentTracksPageSchema, RecentTracksQueryInput, RecordTriggerSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RenderedAsSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerJumpStepProvisioningSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCOPE_PRESETS, SENSOR_FEATURES, SENSOR_MAP, SHARE_VIEW_KINDS, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, STATIONARY_OVERLAY_STYLE, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SummarySchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VECTOR_INDEX_DIM_CONFLICT, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VISIT_MERGE_GAP_MS, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetLogChannelRegistryForTests, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, assertTimelapseCadences, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildDeviceAdminUrl, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildRoleScopes, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, clipExportFailure, clipExportFailureOf, clipReasonHeaderValue, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, codecIsAccepted, collectHydratedFieldEntries, collectHydratedFieldValues, collectSecretConfigKeys, colorCapability, colorForKind, commitWatchdogRestart, compareToTarget, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, conditionExclusionReason, conditionVisibleForKind, connectionTestCapability, connectivityCapability, consumableLowPercentOf, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceExtensionProvider, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declareLogChannel, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defineCustomActions, defineExtensionSlotProvider, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeCustomActions, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeSystemEventDeliveryProblem, describeSystemEventFamilyProblem, detectAccessRole, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceExtensionCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, displayIconEntry, displayIconsInGroup, doorbellCapability, droppedConditionsForKind, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, embeddingModelFailedError, embeddingModelFailedOf, embeddingRefusalOf, embeddingRequirementsFailedError, embeddingRequirementsUnavailableError, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluatePoolMemory, evaluateSensorEdge, evaluateZoneRules, event, eventEmitterCapability, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, exportSubjectOf, extensionSlotRef, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, foldSnapshotByFunction, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatParkedFor, gasCapability, gbToBytes, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getLogChannelRegistry, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, inferModelProvider, initialPoolMemoryState, integrationsCapability, intercomCapability, interpretStoredClusterModel, invalidClusterStepModelEntries, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isAudioChunkFormat, isAudioLabelSelected, isAudioRule, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDisplayIconKey, isEmbeddingModelFailed, isEvent, isEventOwnerType, isFirstLevelMacroClass, isHeldBackTemplateVar, isIsolatedBuiltin, isKnownTemplateVar, isLocationEnabled, isMediaOwnerType, isNode, isObjectInput, isOccupancyRule, isRestoredCap, isSameAddonId, isScheduleActive, isSecretConfigField, isSoftwareDecode, isSourceCap, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemEventSummaryRule, isSystemRuleKind, isVectorIndexDimConflict, isVoidInput, ituDbfsFromPreEpoch, jobKindSchema, kebabToCamel, kindsForDiscriminator, knownValues, lawnMowerControlCapability, legacyAutoLinkIds, legacyModeOf, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, loadContributionCapability, localNetworkCapability, locationIconKey, locationSimilarity, lockControlCapability, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mayReadLocation, mayWriteToLocation, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, migrateLegacyDeviceSignalConfig, minutesToTimeOfDay, modeMayRead, modeMayWrite, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, networkAccessCapability, networkLinkCapability, networkQualityCapability, nodePickerItems, nodePin, nodesCapability, normalizeAddonInitResult, normalizeAudioLabel, normalizeNodeId, normalizeTokenScopes, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, occupancyScope, optionalMethod, osdCapability, osdManagerCapability, overlayClusterStepSettings, packagePickerItems, parseAdminBase, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRuleSection, parseStreamParamsFormPatch, patchAudio, petFeederCapability, pickAccessoryControl, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickInvalidClusterStepModels, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, poolMemoryThreshold, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, rankStreams, readClusterStepModels, readClusterStepSettings, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, rectsToCells, reducePoints, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveBucketMs, resolveCapMount, resolveClipSearchMinScore, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCreateExportSubject, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHydratedFieldValue, resolveLocationIcon, resolveLocationMode, resolveMethodAuth, resolveMutate, resolvePoolMemoryPolicy, resolveRecordingProfiles, resolveRunnerId, resolveStreamMaps, resolveVariantModelId, resolveViewableDeviceIds, roleSpec, ruleBelongsToAlarm, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, runInferenceStep, runtimeDevices, runtimeStatePolicyFor, sceneMonitorCapability, scheduleForSendTimes, schemaDeclaresAnyField, scopeInherits, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, searchDisplayIcons, selectAssignedProfileSlots, sendTimesOfSchedule, sensorRaisedOf, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, setByPath, settingsStoreCapability, signalPercentFromBars, signalPercentFromRssi, siteZoneKey, sleep, sleepCancellable, sliceActiveValue, sliceChangedAt, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, stepModelRunsOnFormat, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subKindsOf, summarisePrivacyAudio, summarizeEffectiveScope, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, systemEventDeliveryProblems, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemEventSummaryScheduleOf, systemFamilyOfKind, systemRuleKindOf, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, timeOfDayToMinutes, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, toggleAudioLabel, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, unreachableExtensionSlotRow, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorIndexDimConflictError, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withLocationMode, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|