@camstack/types 1.2.59 → 1.2.61
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/capabilities/index.d.ts +1 -1
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +18 -0
- package/dist/capabilities/recording-export.cap.d.ts +159 -0
- package/dist/capabilities/snapshot.cap.d.ts +18 -14
- package/dist/device/declared-device.d.ts +12 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +283 -23
- package/dist/index.mjs +277 -24
- package/dist/interfaces/camera-switches.d.ts +66 -2
- package/dist/notification/timelapse-rule.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -694,8 +694,31 @@ var DEFAULT_RETENTION = {
|
|
|
694
694
|
//#endregion
|
|
695
695
|
//#region src/interfaces/camera-switches.ts
|
|
696
696
|
/**
|
|
697
|
-
* Per-camera FUNCTION SWITCHES
|
|
698
|
-
*
|
|
697
|
+
* Per-camera FUNCTION SWITCHES.
|
|
698
|
+
*
|
|
699
|
+
* ## The aggregate group is being withdrawn — the BADGE is not (D113)
|
|
700
|
+
*
|
|
701
|
+
* This file shipped as "the one coherent on/off surface over the pipeline
|
|
702
|
+
* functions an operator thinks in terms of". The operator's verdict on
|
|
703
|
+
* 2026-08-12 was that the coherent surface bought complexity and no clarity:
|
|
704
|
+
* every function already had a settings page of its own, and a second place to
|
|
705
|
+
* turn it off is a second place to look. Each switch is going back to its own
|
|
706
|
+
* component's original options — detection to the detection-pipeline wrapper
|
|
707
|
+
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
708
|
+
* (which was always first-class; the switch was a veneer over
|
|
709
|
+
* `recording.setDeviceConfig`), notifications to a notification-center
|
|
710
|
+
* per-device setting, the two camera planes to their own components.
|
|
711
|
+
*
|
|
712
|
+
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
713
|
+
* thing that lets a status surface say DISABLED instead of BROKEN, recomposed
|
|
714
|
+
* straight from the authorities with no group in the middle. That rule was
|
|
715
|
+
* never about a control panel.
|
|
716
|
+
*
|
|
717
|
+
* Everything else here — {@link CAMERA_SWITCH_CATALOG}, {@link CameraSwitch},
|
|
718
|
+
* {@link deriveCameraSwitches}, the `pipelineOrchestrator.getCameraSwitches` /
|
|
719
|
+
* `setCameraSwitch` pair — is a COMPATIBILITY surface for as long as deployed
|
|
720
|
+
* viewers (v1.0.305) and the admin UI still call it. It is deleted when they
|
|
721
|
+
* stop; nothing new may be built on it.
|
|
699
722
|
*
|
|
700
723
|
* ## This file adds no state
|
|
701
724
|
*
|
|
@@ -1119,6 +1142,42 @@ function deriveCameraSwitches(input) {
|
|
|
1119
1142
|
function switchedOffIds(switches) {
|
|
1120
1143
|
return switches.filter((s) => CAMERA_SWITCH_CATALOG[s.id].countsAsSwitchedOff && s.available && !s.enabled).map((s) => s.id);
|
|
1121
1144
|
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Compose the `switchedOff` badge STRAIGHT from the authorities (D113).
|
|
1147
|
+
*
|
|
1148
|
+
* This is the half of this file that outlives the switch group.
|
|
1149
|
+
* {@link deriveCameraSwitches} exists to paint a control panel — labels, cost
|
|
1150
|
+
* lines, `available`/`unavailableReason` — and that panel is being dismantled:
|
|
1151
|
+
* each function is going back to its own component's settings. The BADGE is
|
|
1152
|
+
* not: "a switched-off camera must read as DISABLED, not broken" is a rule
|
|
1153
|
+
* about status, not about a control group, and it survives every surface change
|
|
1154
|
+
* underneath it.
|
|
1155
|
+
*
|
|
1156
|
+
* So the badge gets its own entry point over the same authority reads, and the
|
|
1157
|
+
* caller that only needs the badge never builds eight labelled rows to throw
|
|
1158
|
+
* seven of them away.
|
|
1159
|
+
*
|
|
1160
|
+
* `privacy-mask` appears in NEITHER list, whichever way it is sitting and
|
|
1161
|
+
* whether or not it could be read — its ON means "the mask is obscuring video",
|
|
1162
|
+
* not "this function works" ({@link CameraSwitchDescriptor.countsAsSwitchedOff}).
|
|
1163
|
+
* Counting it unreadable would be its own bug: the mask cannot contribute to
|
|
1164
|
+
* the badge, so failing to read it cannot make the badge incomplete.
|
|
1165
|
+
*/
|
|
1166
|
+
function composeSwitchedOff(input) {
|
|
1167
|
+
const switchedOff = [];
|
|
1168
|
+
const unreadable = [];
|
|
1169
|
+
for (const id of CAMERA_SWITCH_ORDER) {
|
|
1170
|
+
const descriptor = CAMERA_SWITCH_CATALOG[id];
|
|
1171
|
+
if (!descriptor.countsAsSwitchedOff) continue;
|
|
1172
|
+
const state = resolveState(descriptor, input);
|
|
1173
|
+
if (state.unavailableReason === "source-unreachable") unreadable.push(id);
|
|
1174
|
+
else if (state.available && !state.enabled) switchedOff.push(id);
|
|
1175
|
+
}
|
|
1176
|
+
return {
|
|
1177
|
+
switchedOff,
|
|
1178
|
+
unreadable
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1122
1181
|
//#endregion
|
|
1123
1182
|
//#region src/interfaces/device-capabilities/camera.ts
|
|
1124
1183
|
/** Friendly display labels for stream quality IDs. */
|
|
@@ -16812,9 +16871,16 @@ var CameraStatusSchema = z.object({
|
|
|
16812
16871
|
audio: CameraAudioStatusSchema.nullable(),
|
|
16813
16872
|
recording: CameraRecordingStatusSchema.nullable(),
|
|
16814
16873
|
/**
|
|
16815
|
-
* Per-camera
|
|
16874
|
+
* Per-camera functions an OPERATOR has turned off
|
|
16816
16875
|
* ([D61](../../../../docs/decisions/adr-0067.md)).
|
|
16817
16876
|
*
|
|
16877
|
+
* Composed from the AUTHORITIES themselves — the wrapper bindings,
|
|
16878
|
+
* `RecordingConfig.enabled`, the notification mute, the broker's audio
|
|
16879
|
+
* policy, the camera's own microphone — via `composeSwitchedOff`, not from
|
|
16880
|
+
* the deprecated `getCameraSwitches` group ([D113](../../../../docs/decisions/adr-0113.md)).
|
|
16881
|
+
* The badge outlives the control panel: the panel was a convenience, this is
|
|
16882
|
+
* the difference between a camera being off and a camera being dead.
|
|
16883
|
+
*
|
|
16818
16884
|
* This is the difference between DISABLED and BROKEN. A camera whose
|
|
16819
16885
|
* `detection` block reports zero fps and whose `switchedOff` contains
|
|
16820
16886
|
* `'object-detection'` was switched off by a person; the same camera with an
|
|
@@ -17253,6 +17319,10 @@ var pipelineOrchestratorCapability = {
|
|
|
17253
17319
|
agentNodeId: z.string().optional()
|
|
17254
17320
|
}), CameraPipelineConfigSchema),
|
|
17255
17321
|
/**
|
|
17322
|
+
* @deprecated The aggregate switch group is being withdrawn
|
|
17323
|
+
* ([D113](../../../../docs/decisions/adr-0113.md)). Build nothing new on
|
|
17324
|
+
* this pair; read the authority directly.
|
|
17325
|
+
*
|
|
17256
17326
|
* The whole per-camera function switch group, DERIVED — never a stored
|
|
17257
17327
|
* list ([D61](../../../../docs/decisions/adr-0067.md)).
|
|
17258
17328
|
*
|
|
@@ -17266,9 +17336,23 @@ var pipelineOrchestratorCapability = {
|
|
|
17266
17336
|
* `auth: 'view'` deliberately — a NON-admin must be able to see that a
|
|
17267
17337
|
* camera is quiet because somebody switched it off. Only the mutation is
|
|
17268
17338
|
* admin-gated.
|
|
17339
|
+
*
|
|
17340
|
+
* **Removal plan.** It stays and it KEEPS WORKING while shipped viewers
|
|
17341
|
+
* (v1.0.305) and the admin UI still call it — removing it now is a broken
|
|
17342
|
+
* app on a device nobody can redeploy from here. It is served by a thin
|
|
17343
|
+
* shim over the same authorities (`camera-switch-service.ts`), so the
|
|
17344
|
+
* behaviour of the pair is the behaviour of the authorities by
|
|
17345
|
+
* construction. It is deleted once every surface reaches its own
|
|
17346
|
+
* component's options and the last caller is gone. Nothing on this server
|
|
17347
|
+
* reads it: `CameraStatus.switchedOff` is composed from the authorities
|
|
17348
|
+
* directly via `composeSwitchedOff`.
|
|
17269
17349
|
*/
|
|
17270
17350
|
getCameraSwitches: method(z.object({ deviceId: z.number() }), CameraSwitchGroupSchema),
|
|
17271
17351
|
/**
|
|
17352
|
+
* @deprecated See {@link getCameraSwitches}. Write the authority — the
|
|
17353
|
+
* wrapper binding, `RecordingConfig.enabled`, the notification mute — not
|
|
17354
|
+
* this ([D113](../../../../docs/decisions/adr-0113.md)).
|
|
17355
|
+
*
|
|
17272
17356
|
* Flip ONE switch, routed to its existing authority.
|
|
17273
17357
|
*
|
|
17274
17358
|
* Never writes a parallel map: `recording` patches `RecordingConfig.enabled`
|
|
@@ -17814,24 +17898,28 @@ var snapshotCapability = {
|
|
|
17814
17898
|
*
|
|
17815
17899
|
* `getSnapshotOverview` is cache-only by contract: it answers from whatever
|
|
17816
17900
|
* the wrapper happens to hold and never captures. Under D93 the client
|
|
17817
|
-
* versions its image URL on that answer, and an image REQUEST
|
|
17818
|
-
*
|
|
17819
|
-
*
|
|
17820
|
-
*
|
|
17821
|
-
*
|
|
17822
|
-
*
|
|
17823
|
-
*
|
|
17824
|
-
*
|
|
17901
|
+
* versions its image URL on that answer, and an image REQUEST was the only
|
|
17902
|
+
* demand signal. Both of those are satisfiable by the client's own image
|
|
17903
|
+
* cache — `expo-image` is URL-keyed and never revalidates — so a URL painted
|
|
17904
|
+
* in a previous session comes off disk with no network, no demand, and no
|
|
17905
|
+
* capture. Measured on the live hub: reopening after two minutes idle
|
|
17906
|
+
* painted 15 of 16 tiles at **168 s old** with zero HTTP requests, and the
|
|
17907
|
+
* fleet only recovered because a later poll happened to observe a different
|
|
17908
|
+
* identity.
|
|
17825
17909
|
*
|
|
17826
17910
|
* ## The two properties that fix it
|
|
17827
17911
|
*
|
|
17828
17912
|
* **It is an RPC, so no client cache can answer it.** The demand signal
|
|
17829
|
-
* always reaches the wrapper. This method therefore
|
|
17830
|
-
*
|
|
17831
|
-
*
|
|
17832
|
-
*
|
|
17833
|
-
*
|
|
17834
|
-
*
|
|
17913
|
+
* always reaches the wrapper. This method therefore CAPTURES, where
|
|
17914
|
+
* `getSnapshotOverview` must never (D93) — the distinction is not "one is
|
|
17915
|
+
* newer" but that the overview poll is app-wide (a capturing overview would
|
|
17916
|
+
* dial every camera on the install) while this is called by a rendered
|
|
17917
|
+
* surface naming the tiles it is actually painting, at the width it is
|
|
17918
|
+
* painting them.
|
|
17919
|
+
*
|
|
17920
|
+
* Since 2026-08-11 this is the ONLY thing that refreshes a snapshot: the
|
|
17921
|
+
* server-side keep-warm loop was removed (operator directive — on-demand,
|
|
17922
|
+
* always), so a camera nobody is looking at costs nothing at all.
|
|
17835
17923
|
*
|
|
17836
17924
|
* **It waits, briefly and boundedly, for the capture it triggered.** The
|
|
17837
17925
|
* returned `capturedAt` is the frame the link will serve, not the frame the
|
|
@@ -25808,10 +25896,52 @@ var recordingCapability = {
|
|
|
25808
25896
|
*/
|
|
25809
25897
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25810
25898
|
var ExportSpeedSchema = z.number().min(.25).max(32);
|
|
25899
|
+
/**
|
|
25900
|
+
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25901
|
+
*
|
|
25902
|
+
* Relative and not absolute epoch on purpose: the renderer's frame-select
|
|
25903
|
+
* expression sees ffmpeg's `t`, which starts at 0 for the export's source
|
|
25904
|
+
* playlist. Handing it absolute epochs would make every call site responsible
|
|
25905
|
+
* for the same subtraction, and the one that forgot would emit a filter that
|
|
25906
|
+
* selects nothing — silently, as a uniform timelapse.
|
|
25907
|
+
*/
|
|
25908
|
+
var ExportDenseRangeSchema = z.object({
|
|
25909
|
+
fromSec: z.number().nonnegative(),
|
|
25910
|
+
toSec: z.number().nonnegative()
|
|
25911
|
+
}).refine((r) => r.toSec > r.fromSec, { message: "dense range must have toSec > fromSec" });
|
|
25912
|
+
/**
|
|
25913
|
+
* Hard ceiling on dense ranges in ONE render.
|
|
25914
|
+
*
|
|
25915
|
+
* The ranges become terms of a single ffmpeg `select` expression, so the count
|
|
25916
|
+
* is the length of a command-line argument. The producer (the timelapse
|
|
25917
|
+
* scheduler) coalesces and then falls back to the base cadence alone rather
|
|
25918
|
+
* than trimming — a truncated range list is a video that quietly omits the
|
|
25919
|
+
* evening.
|
|
25920
|
+
*/
|
|
25921
|
+
var EXPORT_DENSE_MAX_RANGES = 200;
|
|
25922
|
+
/**
|
|
25923
|
+
* Dense-interval overlay for a timelapse: sample at `dense.everyMs` INSIDE the
|
|
25924
|
+
* listed ranges and at the base `everyMs` everywhere else.
|
|
25925
|
+
*
|
|
25926
|
+
* `everyMs` must be strictly smaller than the base cadence — a dense rate that
|
|
25927
|
+
* is not denser renders a uniform timelapse the operator believes is two-rate.
|
|
25928
|
+
*/
|
|
25929
|
+
var ExportDenseSchema = z.object({
|
|
25930
|
+
everyMs: z.number().int().positive(),
|
|
25931
|
+
ranges: z.array(ExportDenseRangeSchema).min(1).max(200)
|
|
25932
|
+
});
|
|
25811
25933
|
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
25812
25934
|
var ExportTimelapseSchema = z.object({
|
|
25813
25935
|
everyMs: z.number().int().positive(),
|
|
25814
|
-
outputFps: z.number().int().min(1).max(60).optional()
|
|
25936
|
+
outputFps: z.number().int().min(1).max(60).optional(),
|
|
25937
|
+
/** Optional second, FASTER rate over the intervals that matter. */
|
|
25938
|
+
dense: ExportDenseSchema.optional()
|
|
25939
|
+
}).superRefine((v, ctx) => {
|
|
25940
|
+
if (v.dense !== void 0 && v.dense.everyMs >= v.everyMs) ctx.addIssue({
|
|
25941
|
+
code: z.ZodIssueCode.custom,
|
|
25942
|
+
message: "dense.everyMs must be strictly smaller than the base everyMs",
|
|
25943
|
+
path: ["dense", "everyMs"]
|
|
25944
|
+
});
|
|
25815
25945
|
});
|
|
25816
25946
|
/**
|
|
25817
25947
|
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
@@ -25869,6 +25999,38 @@ var ExportDownloadSchema = z.object({
|
|
|
25869
25999
|
url: z.string(),
|
|
25870
26000
|
endpoints: z.array(z.string())
|
|
25871
26001
|
});
|
|
26002
|
+
/**
|
|
26003
|
+
* Hard ceiling on ONE {@link recordingExportCapability} byte read — 50 MiB.
|
|
26004
|
+
*
|
|
26005
|
+
* Two independent reasons land on the same number, which is why it is this one
|
|
26006
|
+
* and not a rounder guess:
|
|
26007
|
+
*
|
|
26008
|
+
* - **Nobody would accept more.** The roomiest byte cap any notifier backend
|
|
26009
|
+
* declares is telegram's 50 MiB, and the degrade engine DROPS an over-cap
|
|
26010
|
+
* attachment outright rather than degrading it to a link. Bytes above this
|
|
26011
|
+
* are read, encoded and moved to be thrown away at the last step.
|
|
26012
|
+
* - **The envelope is unary.** A base64 payload is held whole, ~1.33× its
|
|
26013
|
+
* size, in the provider AND in the caller — on a hub this repo has already
|
|
26014
|
+
* OOM'd once (D9/D18). A bounded on-demand read at human speed is the shape
|
|
26015
|
+
* those records permit; an unbounded one is the shape they forbid.
|
|
26016
|
+
*
|
|
26017
|
+
* Above it the provider REFUSES with a log line rather than truncating: half a
|
|
26018
|
+
* video is worse than a notification that says there is no attachment.
|
|
26019
|
+
*/
|
|
26020
|
+
var RECORDING_EXPORT_MAX_READ_BYTES = 50 * 1024 * 1024;
|
|
26021
|
+
/**
|
|
26022
|
+
* A finished export's bytes, inline.
|
|
26023
|
+
*
|
|
26024
|
+
* `bytes` is the DECODED length — the number the caller bounds and logs
|
|
26025
|
+
* against, so nobody has to infer it from the base64 length.
|
|
26026
|
+
*/
|
|
26027
|
+
var ExportBytesSchema = z.object({
|
|
26028
|
+
base64: z.string(),
|
|
26029
|
+
contentType: z.string(),
|
|
26030
|
+
/** Suggested filename, extension included. */
|
|
26031
|
+
name: z.string(),
|
|
26032
|
+
bytes: z.number().int().nonnegative()
|
|
26033
|
+
});
|
|
25872
26034
|
var recordingExportCapability = {
|
|
25873
26035
|
name: "recordingExport",
|
|
25874
26036
|
scope: "system",
|
|
@@ -25908,6 +26070,27 @@ var recordingExportCapability = {
|
|
|
25908
26070
|
getDownloadUrl: method(z.object({ exportId: z.string() }), ExportDownloadSchema, {
|
|
25909
26071
|
kind: "query",
|
|
25910
26072
|
auth: "protected"
|
|
26073
|
+
}),
|
|
26074
|
+
/**
|
|
26075
|
+
* The finished file's BYTES, base64, for a caller that must republish them
|
|
26076
|
+
* somewhere a session-less fetcher can reach.
|
|
26077
|
+
*
|
|
26078
|
+
* `getDownloadUrl` is the right answer for a human: the download route is
|
|
26079
|
+
* served `access: 'authenticated'`, which a browser satisfies and a
|
|
26080
|
+
* notifier BACKEND does not. It answers a RELATIVE path, so it is not even
|
|
26081
|
+
* a URL an outside fetcher could try. This method exists for the one case
|
|
26082
|
+
* that needs the other thing — a scheduled timelapse whose video has to
|
|
26083
|
+
* become a public attachment on the notification artifact plane.
|
|
26084
|
+
*
|
|
26085
|
+
* Deliberately narrow: `ready` only (a queued, rendering, failed, expired
|
|
26086
|
+
* or deleted export has no file, and answering "0 bytes" for one is how a
|
|
26087
|
+
* caller ships an empty attachment), still inside its lifetime, and under
|
|
26088
|
+
* {@link RECORDING_EXPORT_MAX_READ_BYTES}. Every refusal throws with the
|
|
26089
|
+
* reason — none of them is silent.
|
|
26090
|
+
*/
|
|
26091
|
+
readExportBytes: method(z.object({ exportId: z.string() }), ExportBytesSchema, {
|
|
26092
|
+
kind: "query",
|
|
26093
|
+
auth: "protected"
|
|
25911
26094
|
})
|
|
25912
26095
|
}
|
|
25913
26096
|
};
|
|
@@ -29147,9 +29330,10 @@ var DeclaredDevices = class {
|
|
|
29147
29330
|
}
|
|
29148
29331
|
const integrationId = spec.integrationId ?? await this.ensureIntegration(spec.integrationName);
|
|
29149
29332
|
const index = await this.readIndex();
|
|
29333
|
+
const live = await this.readLiveByStableId();
|
|
29150
29334
|
const outcomes = [];
|
|
29151
29335
|
for (const declaration of spec.devices) {
|
|
29152
|
-
const outcome = await this.applyDeclaration(declaration, integrationId, index);
|
|
29336
|
+
const outcome = await this.applyDeclaration(declaration, integrationId, index, live);
|
|
29153
29337
|
if (outcome !== null) outcomes.push(outcome);
|
|
29154
29338
|
}
|
|
29155
29339
|
return {
|
|
@@ -29195,6 +29379,26 @@ var DeclaredDevices = class {
|
|
|
29195
29379
|
return new Map(rows.map((row) => [row.stableId, row]));
|
|
29196
29380
|
}
|
|
29197
29381
|
/**
|
|
29382
|
+
* Devices this kernel already has CONSTRUCTED, by stableId.
|
|
29383
|
+
*
|
|
29384
|
+
* Distinct from {@link readIndex}, and the distinction is the bug: the index
|
|
29385
|
+
* is persisted rows, this is live objects. A row without an object must be
|
|
29386
|
+
* adopted; an object must be left exactly as it is.
|
|
29387
|
+
*
|
|
29388
|
+
* Failure is non-fatal and deliberately so — an empty map degrades to the
|
|
29389
|
+
* previous behaviour (attempt the adopt) rather than skipping a device that
|
|
29390
|
+
* genuinely needs bringing up.
|
|
29391
|
+
*/
|
|
29392
|
+
async readLiveByStableId() {
|
|
29393
|
+
try {
|
|
29394
|
+
const devices = await this.ports.devices.getAll();
|
|
29395
|
+
return new Map(devices.map((device) => [device.stableId, device]));
|
|
29396
|
+
} catch (err) {
|
|
29397
|
+
this.ports.logger.warn("could not read live devices — falling back to adopt-by-row", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
29398
|
+
return /* @__PURE__ */ new Map();
|
|
29399
|
+
}
|
|
29400
|
+
}
|
|
29401
|
+
/**
|
|
29198
29402
|
* One declaration: adopt what exists, create what does not.
|
|
29199
29403
|
*
|
|
29200
29404
|
* The create branch is the destructive one — it seeds `initialMeta`, and
|
|
@@ -29203,8 +29407,15 @@ var DeclaredDevices = class {
|
|
|
29203
29407
|
* the declared name over the operator's rename. D49: that branch needs a
|
|
29204
29408
|
* second read to agree.
|
|
29205
29409
|
*/
|
|
29206
|
-
async applyDeclaration(declaration, integrationId, index) {
|
|
29410
|
+
async applyDeclaration(declaration, integrationId, index, live) {
|
|
29207
29411
|
try {
|
|
29412
|
+
const alreadyLive = live.get(declaration.stableId);
|
|
29413
|
+
if (alreadyLive !== void 0) return {
|
|
29414
|
+
stableId: declaration.stableId,
|
|
29415
|
+
deviceId: alreadyLive.id,
|
|
29416
|
+
device: alreadyLive,
|
|
29417
|
+
created: false
|
|
29418
|
+
};
|
|
29208
29419
|
let existing = index.get(declaration.stableId);
|
|
29209
29420
|
if (existing === void 0) {
|
|
29210
29421
|
existing = (await this.readIndex()).get(declaration.stableId);
|
|
@@ -35773,6 +35984,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
35773
35984
|
addonId: null,
|
|
35774
35985
|
access: "view"
|
|
35775
35986
|
},
|
|
35987
|
+
"recordingExport.readExportBytes": {
|
|
35988
|
+
capName: "recordingExport",
|
|
35989
|
+
capScope: "system",
|
|
35990
|
+
addonId: null,
|
|
35991
|
+
access: "view"
|
|
35992
|
+
},
|
|
35776
35993
|
"sceneMonitor.captureReference": {
|
|
35777
35994
|
capName: "scene-monitor",
|
|
35778
35995
|
capScope: "device",
|
|
@@ -37904,7 +38121,8 @@ function createSystemProxy(api) {
|
|
|
37904
38121
|
getExport: (input) => dispatch("recordingExport", "getExport", "query", input),
|
|
37905
38122
|
cancelExport: (input) => dispatch("recordingExport", "cancelExport", "mutation", input),
|
|
37906
38123
|
deleteExport: (input) => dispatch("recordingExport", "deleteExport", "mutation", input),
|
|
37907
|
-
getDownloadUrl: (input) => dispatch("recordingExport", "getDownloadUrl", "query", input)
|
|
38124
|
+
getDownloadUrl: (input) => dispatch("recordingExport", "getDownloadUrl", "query", input),
|
|
38125
|
+
readExportBytes: (input) => dispatch("recordingExport", "readExportBytes", "query", input)
|
|
37908
38126
|
},
|
|
37909
38127
|
serverManagement: {
|
|
37910
38128
|
getServerPackageStatus: (input) => dispatch("serverManagement", "getServerPackageStatus", "query", input),
|
|
@@ -38521,15 +38739,50 @@ var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
|
|
|
38521
38739
|
*/
|
|
38522
38740
|
ownerUserId: z.string().optional(),
|
|
38523
38741
|
/**
|
|
38524
|
-
* Epoch-ms of the
|
|
38525
|
-
*
|
|
38742
|
+
* Epoch-ms of the NEWEST successful generation across every camera of this
|
|
38743
|
+
* rule. What a UI shows, and the compatibility floor for
|
|
38744
|
+
* {@link readTimelapseGeneratedAt}. Absent = never generated.
|
|
38526
38745
|
*/
|
|
38527
38746
|
lastGeneratedAt: z.number().optional(),
|
|
38747
|
+
/**
|
|
38748
|
+
* PER-CAMERA generation state, keyed by `String(deviceId)` — the
|
|
38749
|
+
* re-generation guard's real durable state.
|
|
38750
|
+
*
|
|
38751
|
+
* One rule covers several cameras and each renders its own video, so a rule
|
|
38752
|
+
* -wide stamp is wrong in the direction that DESTROYS work: camera A
|
|
38753
|
+
* succeeding at 06:05 tells camera B, whose render failed, that it is
|
|
38754
|
+
* already done — and B's night is gone for good, because the window will not
|
|
38755
|
+
* come back.
|
|
38756
|
+
*
|
|
38757
|
+
* ADDITIVE, so the migration is free: a row written before this field simply
|
|
38758
|
+
* has no map, and {@link readTimelapseGeneratedAt} falls back to
|
|
38759
|
+
* {@link TimelapseRuleSchema.shape.lastGeneratedAt}. Reading an old row as
|
|
38760
|
+
* "never generated" would re-render and re-notify every camera of every rule
|
|
38761
|
+
* once, on the deploy that shipped the map.
|
|
38762
|
+
*/
|
|
38763
|
+
generatedByDevice: z.record(z.string(), z.number()).optional(),
|
|
38528
38764
|
/** userId of the caller who created the rule (server-stamped). */
|
|
38529
38765
|
createdBy: z.string(),
|
|
38530
38766
|
createdAt: z.number(),
|
|
38531
38767
|
updatedAt: z.number()
|
|
38532
38768
|
});
|
|
38769
|
+
/**
|
|
38770
|
+
* The last successful generation for ONE camera of a rule, epoch-ms.
|
|
38771
|
+
*
|
|
38772
|
+
* The per-device map wins; a rule with no map falls back to the rule-wide
|
|
38773
|
+
* `lastGeneratedAt` (the compatible-migration path — see
|
|
38774
|
+
* {@link TimelapseRuleSchema}); a rule with neither returns 0, which every
|
|
38775
|
+
* guard reads as "never generated".
|
|
38776
|
+
*
|
|
38777
|
+
* Read through this helper and never off the field directly: the fallback is
|
|
38778
|
+
* the whole migration, and a call site that forgot it would re-render an
|
|
38779
|
+
* entire rule set once.
|
|
38780
|
+
*/
|
|
38781
|
+
function readTimelapseGeneratedAt(rule, deviceId) {
|
|
38782
|
+
const map = rule.generatedByDevice;
|
|
38783
|
+
if (map !== void 0) return map[String(deviceId)] ?? 0;
|
|
38784
|
+
return rule.lastGeneratedAt ?? 0;
|
|
38785
|
+
}
|
|
38533
38786
|
//#endregion
|
|
38534
38787
|
//#region src/pipeline/detail-crop.ts
|
|
38535
38788
|
/**
|
|
@@ -40276,4 +40529,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
40276
40529
|
return out;
|
|
40277
40530
|
}
|
|
40278
40531
|
//#endregion
|
|
40279
|
-
export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, 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, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, 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, 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, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, 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, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, 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, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_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, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, 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_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcSystemEventConditionSchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationMoveSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, 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, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, conditionDepth, connectionTestCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
40532
|
+
export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, 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, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, 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, 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, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, 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, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, 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, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportBytesSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_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, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, 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_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcSystemEventConditionSchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_EXPORT_MAX_READ_BYTES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationMoveSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, 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, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, connectionTestCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Per-camera FUNCTION SWITCHES
|
|
3
|
-
*
|
|
2
|
+
* Per-camera FUNCTION SWITCHES.
|
|
3
|
+
*
|
|
4
|
+
* ## The aggregate group is being withdrawn — the BADGE is not (D113)
|
|
5
|
+
*
|
|
6
|
+
* This file shipped as "the one coherent on/off surface over the pipeline
|
|
7
|
+
* functions an operator thinks in terms of". The operator's verdict on
|
|
8
|
+
* 2026-08-12 was that the coherent surface bought complexity and no clarity:
|
|
9
|
+
* every function already had a settings page of its own, and a second place to
|
|
10
|
+
* turn it off is a second place to look. Each switch is going back to its own
|
|
11
|
+
* component's original options — detection to the detection-pipeline wrapper
|
|
12
|
+
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
13
|
+
* (which was always first-class; the switch was a veneer over
|
|
14
|
+
* `recording.setDeviceConfig`), notifications to a notification-center
|
|
15
|
+
* per-device setting, the two camera planes to their own components.
|
|
16
|
+
*
|
|
17
|
+
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
18
|
+
* thing that lets a status surface say DISABLED instead of BROKEN, recomposed
|
|
19
|
+
* straight from the authorities with no group in the middle. That rule was
|
|
20
|
+
* never about a control panel.
|
|
21
|
+
*
|
|
22
|
+
* Everything else here — {@link CAMERA_SWITCH_CATALOG}, {@link CameraSwitch},
|
|
23
|
+
* {@link deriveCameraSwitches}, the `pipelineOrchestrator.getCameraSwitches` /
|
|
24
|
+
* `setCameraSwitch` pair — is a COMPATIBILITY surface for as long as deployed
|
|
25
|
+
* viewers (v1.0.305) and the admin UI still call it. It is deleted when they
|
|
26
|
+
* stop; nothing new may be built on it.
|
|
4
27
|
*
|
|
5
28
|
* ## This file adds no state
|
|
6
29
|
*
|
|
@@ -421,3 +444,44 @@ export declare function deriveCameraSwitches(input: CameraSwitchDerivationInput)
|
|
|
421
444
|
* "switched off" badge, and the badge that matters would be lost in it.
|
|
422
445
|
*/
|
|
423
446
|
export declare function switchedOffIds(switches: readonly CameraSwitch[]): readonly CameraSwitchId[];
|
|
447
|
+
/**
|
|
448
|
+
* The badge, and whether the badge is a TOTAL.
|
|
449
|
+
*
|
|
450
|
+
* Two lists rather than one because an empty `switchedOff` means two opposite
|
|
451
|
+
* things depending on the second: with an empty `unreadable` it is the positive
|
|
452
|
+
* claim "the operator turned nothing off" (so a quiet camera is BROKEN); with a
|
|
453
|
+
* non-empty one it is a FLOOR, and a surface that renders it as the positive
|
|
454
|
+
* claim reproduces the 2026-08-08 inversion exactly.
|
|
455
|
+
*/
|
|
456
|
+
export interface SwitchedOffComposition {
|
|
457
|
+
/** Functions a person switched off, in {@link CAMERA_SWITCH_ORDER}. */
|
|
458
|
+
readonly switchedOff: readonly CameraSwitchId[];
|
|
459
|
+
/**
|
|
460
|
+
* Functions whose AUTHORITY did not answer. Non-empty ⇒ `switchedOff` is a
|
|
461
|
+
* floor, not a total, and the caller must say so (`CameraStatus.degraded`
|
|
462
|
+
* naming `'switches'`).
|
|
463
|
+
*/
|
|
464
|
+
readonly unreadable: readonly CameraSwitchId[];
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Compose the `switchedOff` badge STRAIGHT from the authorities (D113).
|
|
468
|
+
*
|
|
469
|
+
* This is the half of this file that outlives the switch group.
|
|
470
|
+
* {@link deriveCameraSwitches} exists to paint a control panel — labels, cost
|
|
471
|
+
* lines, `available`/`unavailableReason` — and that panel is being dismantled:
|
|
472
|
+
* each function is going back to its own component's settings. The BADGE is
|
|
473
|
+
* not: "a switched-off camera must read as DISABLED, not broken" is a rule
|
|
474
|
+
* about status, not about a control group, and it survives every surface change
|
|
475
|
+
* underneath it.
|
|
476
|
+
*
|
|
477
|
+
* So the badge gets its own entry point over the same authority reads, and the
|
|
478
|
+
* caller that only needs the badge never builds eight labelled rows to throw
|
|
479
|
+
* seven of them away.
|
|
480
|
+
*
|
|
481
|
+
* `privacy-mask` appears in NEITHER list, whichever way it is sitting and
|
|
482
|
+
* whether or not it could be read — its ON means "the mask is obscuring video",
|
|
483
|
+
* not "this function works" ({@link CameraSwitchDescriptor.countsAsSwitchedOff}).
|
|
484
|
+
* Counting it unreadable would be its own bug: the mask cannot contribute to
|
|
485
|
+
* the badge, so failing to read it cannot make the badge incomplete.
|
|
486
|
+
*/
|
|
487
|
+
export declare function composeSwitchedOff(input: CameraSwitchDerivationInput): SwitchedOffComposition;
|
|
@@ -129,8 +129,22 @@ export declare const TimelapseRuleSchema: z.ZodObject<{
|
|
|
129
129
|
id: z.ZodString;
|
|
130
130
|
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
131
131
|
lastGeneratedAt: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
generatedByDevice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
132
133
|
createdBy: z.ZodString;
|
|
133
134
|
createdAt: z.ZodNumber;
|
|
134
135
|
updatedAt: z.ZodNumber;
|
|
135
136
|
}, z.core.$strip>;
|
|
136
137
|
export type TimelapseRule = z.infer<typeof TimelapseRuleSchema>;
|
|
138
|
+
/**
|
|
139
|
+
* The last successful generation for ONE camera of a rule, epoch-ms.
|
|
140
|
+
*
|
|
141
|
+
* The per-device map wins; a rule with no map falls back to the rule-wide
|
|
142
|
+
* `lastGeneratedAt` (the compatible-migration path — see
|
|
143
|
+
* {@link TimelapseRuleSchema}); a rule with neither returns 0, which every
|
|
144
|
+
* guard reads as "never generated".
|
|
145
|
+
*
|
|
146
|
+
* Read through this helper and never off the field directly: the fallback is
|
|
147
|
+
* the whole migration, and a call site that forgot it would re-render an
|
|
148
|
+
* entire rule set once.
|
|
149
|
+
*/
|
|
150
|
+
export declare function readTimelapseGeneratedAt(rule: Pick<TimelapseRule, 'lastGeneratedAt' | 'generatedByDevice'>, deviceId: number): number;
|